OSDN Git Service

* config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
2
3         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
4         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
5         EQ/NE comparisons against +/-1 in the case of unused-after,
6         non-ld-regs target.
7
8 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
9
10         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
11         gctx.into_ssa after push_gimplify_context.
12
13         * gimple.c (gimple_build_call_valist): New function.
14         * gimple.h (gimple_build_call_valist): New prototype.
15         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
16         (update_gimple_call): Likewise.
17         (update_call_from_tree): Use finish_update_gimple_call.
18         * tree-ssa-propagate.h (update_gimple_call): New prototype.
19
20 2011-09-26  Richard Guenther  <rguenther@suse.de>
21
22         PR tree-optimization/50472
23         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
24         volatile references.
25
26 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
27
28         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
29         * target.def: (addr_space_subset_p): Likewise.
30
31 2011-09-26  Tom de Vries  <tom@codesourcery.com>
32
33         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
34         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
35         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
36         of new var.
37
38 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
39
40         PR target/50465
41         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
42         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
43         output_reload_insisf.
44         (adjust_len): Set default to "no".
45         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
46         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
47         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
48         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
49         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
50         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
51         *lshrsi3_const): Set attribute "adjust_len".
52         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
53         (output_movsisf): Don't pass insn to output_reload_insisf.
54         (adjust_insn_length): Handle new alternatives to adjust_len.
55         Remove handling of ADJUST_LEN_YES.  Clean-up code.
56
57 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
58
59         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
60         may_trap_p to detect loads that may trap of fault.
61
62 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
63
64         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
65         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
66         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
67         prototype.
68         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
69         * config/avr/avr.c: Rename output_reload_insisf_1 to
70         output_reload_in_const.
71         (avr_popcount_each_byte): Handle SFmode, too.
72         (output_reload_in_const): Change so it can handle HI loads, too.
73         Use avr_popcount_each_byte to work out if scratch register must be
74         created on the fly.
75         (output_reload_inhi): Rewrite using output_reload_in_const and...
76         (output_movhi): ...use it to print constants' loads.
77         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
78
79 2011-09-25  David S. Miller  <davem@davemloft.net>
80
81         * config/sparc/constraints.md (C, P, Z): New constraints for
82         const_doube, const_int, and const_vector "all ones" values.
83         Make unused constraint letters comment match reality.
84         * config/sparc/predicates.md (const_all_ones_operand,
85         register_or_zero_or_all_ones_operand): New predicates.
86         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
87         as well as zero constants when VIS.
88         (sparc_legitimate_constant_p): Likewise.
89         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
90         (movsf_insn): Likewise
91         (movdi_insn_sp64): Add fone alternative.
92         (movdf_insn_sp32_v9): Likewise.
93         (movdf_insn_sp64): Likewise.
94
95         * configure.ac: Add feature check to make sure the assembler
96         supports the FMAF, HPC, and VIS 3.0 instructions found on
97         Niagara-3 and later cpus.
98         * configure: Rebuild.
99         * config.in: Likewise.
100         * config/sparc/sparc.opt: New option '-mfmaf'.
101         * config/sparc/sparc.md: Add float fused multiply-add patterns.
102         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
103         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
104         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
105         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
106         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
107         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
108         disabled.
109         (sparc_rtx_costs): Handle 'FMA'.
110         * doc/invoke.texi: Document -mfmaf.
111
112 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
113
114         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
115         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
116         DECL_BY_REFERENCE parameters.
117
118 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
119
120         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
121         if there is no outgoing edge.
122
123         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
124         integral types.
125
126 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
127
128         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
129         of vect_analyze_bb here.
130         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
131
132 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
133
134         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
135         Allow not simple iv if analyzing basic block.
136         (create_data_ref): Update call to dr_analyze_innermost.
137         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
138         * tree-loop-distribution.c (generate_memset_zero): Likewise.
139         * tree-predcom.c (find_looparound_phi): Likewise.
140         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
141
142 2011-09-24  David S. Miller  <davem@davemloft.net>
143
144         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
145         (SPARC_GSR_REG): Define.
146         (FIXED_REGISTERS): Mark GSR as fixed.
147         (CALL_USED_REGISTERS): Mark GSR as call used.
148         (HARD_REGNO_NREGS): GSR is always 1 register.
149         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
150         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
151         (REGISTER_NAMES): Add "%gsr".
152         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL):
153         Delete.
154         (UNSPEC_WRGSR): New unspec.
155         (GSR_REG): New constant.
156         (type): Add new insn type 'gsr'.
157         (fpack16_vis, fpackfix_vis, fpack32_vis,
158         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
159         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
160         rdgsr_v8plus): New expanders and insns.
161         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
162         using patterns which show that this is a plus in addition to a
163         modification of GSR_REG, instead of an unspec.
164         * config/sparc/ultra1_2.md: Handle 'gsr'.
165         * config/sparc/ultra3.md: Likewise.
166         * config/sparc/niagara.md: Likewise.
167         * config/sparc/niagara2.md: Likewise.
168         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
169         end of table.
170         (sparc_option_override): Make -mvis imply -mv8plus.
171         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
172         for %gsr.
173         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
174         __builtin_vis_read_gsr.
175         (sparc_expand_buildin): Handle builtins that take one argument and
176         return void.
177         (sparc_fold_builtin): Never fold writes to %gsr.
178         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
179         * doc/extend.texi: Document new VIS intrinsics.
180
181 2011-09-23  Jan Hubicka  <jh@suse.cz>
182
183         * ipa-inline-transform.c (inline_call): Add comment.
184         * ipa-inline.h (inline_param_summary): New structure and vector.
185         (struct inline_edge_summary): Add param field.
186         * ipa-inline-analysis.c (CHANGED): New constant.
187         (add_clause): Handle CHANGED and NOT_CONSTANT.
188         (predicate_probability): New function.
189         (dump_condition): Dump CHANGED predicate.
190         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
191         of unknown function wide invariant.
192         (evaluate_conditions_for_edge): Handle change probabilities.
193         (inline_edge_duplication_hook): Copy param summaries.
194         (inline_edge_removal_hook): Free param summaries.
195         (dump_inline_edge_summary): Fix dumping of indirect edges and callee sizes;
196         dump param summaries.
197         (will_be_nonconstant_predicate): Use CHANGED predicate.
198         (record_modified_bb_info): New structure.
199         (record_modified): New function.
200         (param_change_prob): New function.
201         (estimate_function_body_sizes): Compute param summaries.
202         (estimate_edge_size_and_time): Add probability argument.
203         (estimate_node_size_and_time): Add inline_param_summary argument;
204         handle predicate probabilities.
205         (remap_predicate): Fix formating.
206         (remap_edge_change_prob): New function.
207         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
208         (remap_edge_predicates): ... this one.
209         (inline_merge_summary): Remap edge summaries; handle predicate probabilities;
210         remove param summaries after we are done.
211         (do_estimate_edge_time): Update.
212         (do_estimate_edge_growth): Update.
213         (read_inline_edge_summary): Read param info.
214         (inline_read_summary): Fix formating.
215         (write_inline_edge_summary): Write param summaries.
216
217 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
218
219         * config/i386/i386.c (ix86_print_operand): Handle %~.
220         (ix86_print_operand_punct_valid_p): Return true also for '~'.
221         * config/i386/sse.md (i128): New mode_attr.
222         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
223         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
224         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>, 
225         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
226         patterns, use "<sseinsnmode>" for "mode" attribute.
227         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
228         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
229         %~128 in the patterns, use "OI" for "mode" attribute.
230
231 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
232
233         PR target/50447
234         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
235         "tstsi", "compare".
236         (*cmpqi_sign_extend): Use s8_operand.
237         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
238         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
239         prototypes.
240         (out_tsthi, out_tstsi): Remove prototypes.
241         (avr_out_tsthi, avr_out_tstsi): New prototypes.
242         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
243         (avr_asm_len): Negative length now sets *plen to -length.
244         (compare_sign_p): Return bool instead of int.
245         (compare_diff_p, compare_eq_p): Ditto and make static.
246         (avr_out_tsthi): New function.
247         (avr_out_tstsi): New function.
248         (avr_out_compare): New function.
249         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
250         ADJUST_LEN_COMPARE.
251
252 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
253
254         PR target/50447
255         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
256         (addsi3): Rewrite using QI scratch register.  Adjust text
257         peepholes using plus:SI.
258         (*addsi3_zero_extend.hi): New insn.
259         (*subsi3_zero_extend.hi): New insn.
260         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
261         (*subsi3_zero_extend): Ditto.
262         (subsi3): Change predicate #2 to register_operand.
263         * config/avr/avr-protos.h (avr_out_plus): New prototype.
264         (avr_out_plus_1): New static function.
265         (avr_out_plus): New function.
266         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
267
268 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
269
270         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
271         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
272
273 2011-09-23  Ian Lance Taylor  <iant@google.com>
274
275         * godump.c (go_define): Treat a single character in single quotes,
276         or a string, as an operand.
277
278 2011-09-23  Martin Jambor  <mjambor@suse.cz>
279
280         * ipa-prop.h (jump_func_type): Updated comments.
281         (ipa_known_type_data): New type.
282         (ipa_jump_func): Use it to describe known type jump functions.
283         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
284         reflect the new known type jump function contents.
285         (compute_known_type_jump_func): Likewise.
286         (combine_known_type_and_ancestor_jfs): Likewise.
287         (try_make_edge_direct_virtual_call): Likewise.
288         (ipa_write_jump_function): Likewise.
289         (ipa_read_jump_function): Likewise.
290         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
291         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
292         (propagate_accross_jump_function): Likewise.
293
294 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
295
296         PR target/50446
297         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
298         (rotlqi3_4): Turn insn into expander.
299         (*rotlqi3): New insn.
300         (rotlhi3, rotlsi3): Support rotate left/right by 1.
301         (*rotlhi2.1, *rotlhi2.15): New insns.
302         (*rotlsi2.1, *rotlsi2.31): New insns.
303         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
304
305 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
306
307         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch 
308         and processors.
309
310 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
311
312         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
313
314 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
315
316         * reload.c (find_reloads): Set operand_mode to Pmode for address
317         operands consisting of just a CONST_INT.
318
319 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
320
321         PR target/50482
322         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
323         blendv, force op_true to register if it doesn't satisfy
324         nonimmediate_operand predicate.
325
326 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
327
328         PR middle-end/50113
329         PR middle-end/50061
330         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
331         get the locate.where_pad value for register-only arguments.
332         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
333         (arm_pad_reg_upward): Handle null types.
334
335 2011-09-22  Jan Hubicka  <jh@suse.cz>
336
337         * ipa-inline-analysis.c: Fix overly long lines.
338
339 2011-09-22  Jan Hubicka  <jh@suse.cz>
340
341         * ipa-inline-transform.c (inline_call): Always update jump functions
342         after inlining.
343         * ipa-inline.c (ipa_inline): Likewise; do not call
344         ipa_create_all_structures_for_iinln.
345         (ipa_inline): Always free jump functions.
346         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
347         (remap_edge_predicates): Fix pasto.
348         (inline_merge_summary): Remove nlined edge predicate; remove hack.
349         (inline_analyze_function): Always initialize jump functions.
350         (inline_generate_summary): Likewise.
351         (inline_write_summary): Always write jump functions when ipa-cp
352         is not doing that.
353         (inline_read_summary): Always read jump functions when ipa-cp
354         is not doing that.
355         * ipa-prop.c (iinlining_processed_edges): Remove.
356         (update_indirect_edges_after_inlining): Do not use
357         iinlining_processed_edges; instead set param_index to -1.
358         (propagate_info_to_inlined_callees): Only try to indirect inlining
359         when asked to do so; update jump functions of indirect calls, too;
360         remove jump functions of the inlined edge.
361         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
362         (ipa_create_all_structures_for_iinln): Remove.
363         (ipa_free_all_structures_after_iinln): Do not free
364         iinlining_processed_edges.
365         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
366
367 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
368
369         * config/arm/predicates.md (expandable_comparison_operator): New
370         predicate, extracted from...
371         (arm_comparison_operator): ...here.
372         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
373         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
374         (movdfcc): Use expandable_comparison_operator.
375
376 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
377
378         PR target/50447
379         PR target/50465
380         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
381         (avr_popcount_each_byte): New prototype.
382         * config/avr/avr.c (avr_popcount): New static function.
383         (avr_popcount_each_byte): New function.
384         (avr_out_bitop): New function.
385         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
386         avr_out_bitop.  Cleanup code.
387         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
388         (Ca4, Co4, Cx4): New constraints.
389         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
390         alternative.
391         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
392         (andsi3, iorsi3, xorsi3): Ditto.
393         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
394
395 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
396
397         PR tree-optimization/50451
398         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
399         constant operands in reduction.
400         (vect_get_slp_defs): Don't create vector operand for NULL scalar
401         operand.
402
403 2011-09-22  David S. Miller  <davem@davemloft.net>
404
405         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
406         fpack16, fpack32, fpackfix as const.
407
408         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
409         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
410         constants.  Use them everywhere.
411
412 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
413
414         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
415         Added AND special case.  Adapted comments.
416         (sh_rtx_costs): Added XOR and IOR case.
417
418 2011-09-21  Jan Hubicka  <jh@suse.cz>
419
420         * ipa-inline-analsis.c (compute_inline_parameters): Set
421         cfun and current_function_decl.
422
423 2011-09-21  Jan Hubicka  <jh@suse.cz>
424
425         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
426         handled components in parameter of builtin_constant_p.
427         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
428
429 2011-09-21  Jan Hubicka  <jh@suse.cz>
430
431         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
432         * ipa-inline.h (estimate_edge_time): Fix pasto.
433         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
434
435 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
436
437         * config/i386/i386.c (ix86_expand_sse_movcc): Use
438         blendvps, blendvpd and pblendvb if possible.
439
440 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
441
442         PR target/50464
443         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
444         operand 1 predicate to register_operand and operand 2 predicate
445         to nonimmediate_operand.
446         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
447         xop_pcmov, force op_true to register.  Also, force op_false to
448         register if it doesn't satisfy nonimmediate_operand predicate.
449
450 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
451
452         * config/i386/bmi2intrin.h (_mulx_u64): New.
453         (_mulx_u32): Ditto.
454
455 2011-09-21  Jan Hubicka  <jh@suse.cz>
456
457         PR tree-optimization/50433
458         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
459         Use get_base_address.
460
461 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
462
463         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
464         nonimmediate_operand instead of register_operand predicate for operands
465         1 and 2, force them into registers if expanding them as comparison.
466         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
467         V8HImode force into register just operand 1.
468
469 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
470
471         PR target/45099
472         * config/avr/avr.c (avr_function_arg_advance): Change error to
473         warning if a fixed register is needed as function argument.
474
475 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
476
477         PR target/50449
478         PR target/50465
479         * config/avr/avr.md (adjust_len): New insn attribute.
480         (*reload_insi, *reload_insf): Use it.
481         (*movsi, *movsf): Use new interface of output_movsisf.
482         * config/avr/avr-protos.h (output_movsisf): Change prototype.
483         * config/avr/avr.c (output_movsisf): Ditto.
484         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
485         lengths of insns *reload_insi, *reload_insf.
486         (output_reload_insisf_1): New static function.
487         (output_reload_insisf): Use it.
488
489 2011-09-21  David S. Miller  <davem@davemloft.net>
490
491         * config/sparc/sparc.c (def_builtin): Change from macro into function.
492         (def_builtin_const): New.
493         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
494         other than alignaddr and falignaddr.
495
496         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
497         UNSPEC_FCMPEQ): New unspec codes.
498         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
499         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
500         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
501         new pixel compare VIS patterns.
502         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
503         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
504         __vis_fcmpeq16, __vis_fcmpeq32): New.
505         * doc/extend.texi: Document new pixel compare VIS intrinsics.
506
507 2011-09-21  Tom de Vries  <tom@codesourcery.com>
508
509         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
510
511 2011-09-20  David S. Miller  <davem@davemloft.net>
512
513         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
514         (aligneddrl<P:mode>_vis): New pattern.
515         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
516         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
517         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
518         alignaddrl insn, and adjust edge operations for updated types.
519         * config/sparc/visintrin.h: Likewise.
520         * doc/extend.texi: Make typing in VIS documentation match reality.
521
522 2011-09-20  Terry Guo  <terry.guo@arm.com>
523
524         * config/arm/arm-arches.def: Add armv6s-m.
525         * config/arm/arm-tables.opt: Regenerate.
526
527 2011-09-20  Wei Guozhi  <carrot@google.com>
528
529         PR rtl-optimization/49452
530         * postreload.c (reload_combine): Invalidate use information when across
531         volatile insn.
532
533 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
534
535         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
536         Remove maintenance overhead.
537         (haifa_sched_init, sched_finish): Update.
538
539 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
540
541         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
542         to calculate unit, prefix_rep and prefix_data16 attributes.
543         (*mov<mode>_internal): Ditto for unit attribute.
544         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
545         (*movv2sf_internal): Ditto.
546         * config/i386/sse.md (VI1248_256): Remove mode iterator.
547         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
548         (*avx2_eq<mode>3): Ditto.
549         (avx2_gt<mode>3): Ditto.
550
551 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
552
553         * config/i386/i386.md (maxmin): New code iterator.
554         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
555         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
556         code iterator.
557         (*avx2_<maxmin:code><mode>3): Macroize isn from
558         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
559         maxmin code iterator.
560         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
561         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
562         <umaxmin:code>v16qi3.
563
564 2011-09-19  Alan Modra  <amodra@gmail.com>
565             Michael Meissner  <meissner@linux.vnet.ibm.com>
566
567         PR target/50341
568         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
569         split the load of the indirect function's TOC from the call to
570         prevent the compiler from moving the load of the new TOC above
571         code that references the current function's TOC.
572         (call_indirect_aix<ptrsize>_internal): Ditto.
573         (call_indirect_aix<ptrsize>_nor11): Ditto.
574         (call_indirect_aix<ptrsize>_internal2): Ditto.
575         (call_value_indirect_aix<ptrsize>): Ditto.
576         (call_value_indirect_aix<ptrsize>_internal): Ditto.
577         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
578         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
579
580 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
581
582         * config/i386/sse.md (*sse4_1_extractps): Change into
583         define_insn_and_split, add =x 0 n and =x x n alternatives
584         and split them after reload.
585
586 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
587
588         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
589
590 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
591
592         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
593
594 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
595
596         PR tree-optimization/50413
597         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
598         a basic block if one of its data-refs can't be analyzed.
599
600 2011-09-19  Paul Brook  <paul@codesourcery.com>
601
602         * config/arm/predicates.md (shift_amount_operand): Check constant
603         shift count is in range.
604         (const_shift_operand): Remove.
605
606 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
607             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
608
609         PR target/50091
610         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
611         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
612
613 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
614
615         * config/i386/bmiintrin.h: Remove tmp.
616         * config/i386/tbmintrin.h: Likewise.
617
618 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
619
620         PR tree-optimization/50414
621         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
622         MIN_EXPR.
623
624 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
625
626         PR tree-optimization/50412
627         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
628         acceses that require epilogue loop if vectorizing outer loop.
629
630 2011-09-17  David S. Miller  <davem@davemloft.net>
631
632         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
633         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
634         New unspecs.
635         (define_attr type): New type 'edge'.
636         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
637         edge32l_vis): New patterns.
638         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
639         * config/sparc/ultra3.md: Likewise.
640         * config/sparc/niagara.md: Likewise.
641         * config/sparc/niagara2.md: Likewise.
642         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
643         builtins for VIS edge instructions.
644         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
645         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
646         intrinsics.
647         (__v8qi, __v4qi): Make unsigned.
648         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
649         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
650         __vis_fpack32): Fix types.
651         * doc/extend.texi: Document new 'edge' VIS intrinsics.
652
653         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
654         divide costs.
655         (niagara3_costs): New.
656         (sparc_option_override): Use it.
657         * gcc/config/sparc/niagara2.md: Adjust with more accurate
658         Niagara-3 reservations.
659
660 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
661
662         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
663         (sse2_avx, sseinsnmode): Add V2TI.
664         (REDUC_SMINMAX_MODE): New mode iterator.
665         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
666         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
667         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
668         (sse2_lshrv1ti3): Rename to...
669         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
670         iterator.  Move before umaxmin expanders.
671         * config/i386/i386.h (VALID_AVX256_REG_MODE,
672         SSE_REG_MODE_P): Accept V2TImode.
673         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
674         V16HImode, V8SImode and V4DImode.
675
676         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
677         and V4DImode.
678         (ix86_build_signbit_mask): Likewise.
679         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
680         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
681         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
682         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
683         (<code><mode>3) ... this.
684         (avx2_<code><mode>3 smaxmin expand): Rename to...
685         (<code><mode>3) ... this.
686         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
687         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
688         VI8_AVX2 mode iterator.
689         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
690         VI8_AVX2 mode iterator.
691         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
692         New expanders.
693
694 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
695
696         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
697         throughout file.
698
699 2011-09-16  David S. Miller  <davem@davemloft.net>
700
701         * config/sparc/visintrin.h: New file.
702         * config.gcc: Add it to extra_headers on sparc.
703
704 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
705
706         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
707         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
708         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
709         reduc_smin_v4sf): Adjust callers.
710         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
711         New expanders.
712
713         * config/i386/sse.md (vec_extract_hi_<mode>,
714         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
715         vextracti128 instead of vextractf128 for -mavx2 and
716         integer vectors.  For V4DFmode fix up mode attribute.
717         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
718         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
719         instead of V8SF mode attribute.
720         (avx2_extracti128): Change into define_expand.
721         * config/i386/i386.c (ix86_expand_vector_extract): Handle
722         32-byte vector modes if TARGET_AVX.
723
724 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
725
726         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
727         (umulqi3_highpart, smulqi3_highpart): Ditto.
728         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
729         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
730         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
731
732 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
733
734         PR target/50358
735         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
736         (*maddqi4, *maddqi4.const): New insns.
737         (*msubqi4, *msubqi4.const): New insns.
738         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
739         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
740         HImode by 1 in the case of multiplying with a CONST_INT.
741         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
742
743 2011-09-15   Jan Hubicka  <jh@suse.cz>
744
745         PR lto/50430
746         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
747         error_mark_node in the DECL_INITIAL of vtable.
748
749 2011-09-15   Diego Novillo  <dnovillo@google.com>
750
751         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
752         @SYSROOT_CFLAGS_FOR_TARGET@.
753         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
754         * configure: Regenerate.
755         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
756         Remove setting of GCC_UNDER_TEST.
757
758 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
759
760         * config/i386/i386.c (output_fp_compare): Return %v prefixed
761         instruction mnemonics for TARGET_AVX.
762
763         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
764         "type" attribute calculation.
765         (*movdf_internal): Ditto.
766         (*movsf_internal): Ditto.
767
768 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
769
770         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
771
772 2011-09-15  Jason Merrill  <jason@redhat.com>
773
774         PR c++/50361
775         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
776
777 2011-09-15  Jan Hubicka  <jh@suse.cz>
778
779         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
780         simplify obviously true clauses.
781         (and_predicates, or_predicates): Add conditions parameter.
782         (inline_duplication_hoook): Update.
783         (mark_modified): New function.
784         (unmodified_parm): New function.
785         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
786         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
787         Use unmodified_parm.
788         (estimate_function_body_sizes): Update.
789         (remap_predicate): Update.
790
791 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
792
793         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
794         read-after-read dependencies in basic block SLP.
795
796 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
797
798         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
799         throughout file.
800
801 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
802
803         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
804         throughout file.
805
806 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
807
808         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
809         throughout file.
810
811 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
812
813         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
814         throughout file.
815         * config/rs6000/constraints.md: Likewise.
816
817 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
818
819         * config/microblaze/microblaze.md: Use match_test rather than
820         eq/ne symbol_ref throughout file.
821
822 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
823
824         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
825         throughout file.
826
827 2011-09-14  Tom de Vries  <tom@codesourcery.com>
828
829         PR middle-end/50251
830         * explow.c (emit_stack_restore): Set crtl->need_drap if
831         stack_restore is emitted.
832
833 2011-09-14  Julian Brown  <julian@codesourcery.com>
834
835         * config/arm/arm.c (arm_override_options): Add unaligned_access
836         support.
837         (arm_file_start): Emit attribute for unaligned access as appropriate.
838         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
839         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
840         (insv, extzv): Add unaligned-access support.
841         (extv): Change to expander. Likewise.
842         (extzv_t1, extv_regsi): Add helpers.
843         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
844         (unaligned_storesi, unaligned_storehi): New.
845         (*extv_reg): New (previous extv implementation).
846         * config/arm/arm.opt (munaligned_access): Add option.
847         * config/arm/constraints.md (Uw): New constraint.
848         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
849         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
850         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
851         volatile accesses when -fstrict-volatile-bitfields is in effect.
852         (extract_bit_field_1): Likewise.
853
854 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
855
856         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
857         a scalar integer before applying integer-only optimisations to
858         inner arithmetic.
859
860 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
861
862         * config/mips/mips.c (mips_expand_epilogue): Generate a
863         simple_return only if the return address is in r31.
864
865 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
866
867         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
868         NULL for a jump that is a cc0 insn, pick the previous insn for
869         move_before.
870
871 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
872
873         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
874         throughout file.
875
876 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
877
878         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
879         throughout file.
880
881 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
882
883         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
884         symbol_ref throughout file.
885
886 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
887
888         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
889         throughout file.
890
891 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
892
893         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
894         throughout file.
895
896 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
897
898         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
899         throughout file.
900         * config/arm/neon.md: Likewise.
901         * config/arm/vfp.md: Likewise.
902         * config/arm/thumb2.md: Likewise.
903         * config/arm/cortex-m4.md: Likewise.
904
905 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
906
907         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
908         define_insn patterns for combine.
909
910 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
911
912         * reorg.c: Always define make_return_insns.
913
914 2011-09-13  Jan Hubicka  <jh@suse.cz>
915
916         PR other/49533
917         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
918
919 2011-09-13  Jan Hubicka  <jh@suse.cz>
920
921         PR other/49533
922         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
923
924 2011-09-13  Paul Brook  <paul@codesourcery.com>
925
926         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
927         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
928         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
929         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
930         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
931         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
932         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
933         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
934         enabling unwind tables.
935         (c6x_debug_unwind_info): New function.
936         (TARGET_ARM_EABI_UNWINDER): Define.
937         (TARGET_DEBUG_UNWIND_INFO): Define.
938         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
939         (TARGET_EXTRA_CFI_SECTION): Remove.
940         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
941         * ginclude/unwind-arm-common.h: New file.
942
943 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
944
945         PR target/50358
946         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
947         * config/avr/avr.md: (extend_s): New code attribute.
948         (mul_r_d): New code attribute.
949         (*maddqihi4, *umaddqihi4): New insns.
950         (*msubqihi4, *umsubqihi4): New insns.
951         (*usmaddqihi4, *sumaddqihi4): New insns.
952         (*usmsubqihi4, *susubdqihi4): New insns.
953         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
954         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
955         (*umsubqihi4.uconst.ashift): New insn-and-split.
956         (*msubqihi4.sconst.ashift): New insn-and-split.
957         (*sumaddqihi4.uconst): New insn-and-split.
958         (*sumsubqihi4.uconst): New insn-and-split.
959         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
960         PLUS:HI and MINUS:HI.
961
962 2011-09-13  Revital Eres  <revital.eres@linaro.org>
963
964         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
965         (optimize_sc): Adjust call to remove_node_from_ps.
966         (sms_schedule): Add print info.
967
968 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
969
970         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
971         flags specially.
972
973 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
974
975         PR bootstrap/50010
976         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
977         NOTE_INSN_CFI notes, with the exception of
978         NOTE_INSN_SWITCH_TEXT_SECTIONS.
979
980 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
981             Richard Sandiford  <rdsandiford@googlemail.com>
982
983         * config/mips/mips.c (mips_epilogue): New structure.
984         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
985         restoring registers.
986         (mips_epilogue_emit_cfa_restores): New function.
987         (mips_epilogue_set_cfa): Likewise.
988         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
989         the current CFA register from the stack, redefine the CFA in terms
990         of the stack pointer.
991         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
992         to the epilogue instructions.
993
994 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
995
996         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
997         argument.
998         (mips16e_build_save_restore): Update accordingly.
999
1000 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1001
1002         PR rtl-optimization/50212
1003         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1004         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1005
1006         PR debug/50299
1007         * calls.c (load_register_parameters): Use use_reg_mode instead
1008         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1009         entry.
1010         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1011         for stack CALL_INSN_FUNCTION_USAGE uses.
1012         * expr.h (use_reg_mode): New prototype.
1013         (use_reg): Changed into inline around use_reg_mode.
1014         * expr.c (use_reg): Renamed to...
1015         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
1016         mode to that mode instead of VOIDmode.
1017         * var-tracking.c (prepare_call_arguments): Don't track parameters
1018         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1019         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
1020         EXPR_LIST mode.
1021
1022 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
1023
1024         PR target/43746
1025         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1026         (progmem_section): New Variable.
1027         (avr_asm_init_sections): Initialize it.
1028         (TARGET_ASM_SELECT_SECTION): Define to...
1029         (avr_asm_select_section): ... this new Function.
1030         (avr_replace_prefix): New Function.
1031         (avr_asm_function_rodata_section): Use it.
1032         (avr_insert_attributes): Don't add section attribute for PROGMEM.
1033         (avr_section_type_flags): Use avr_progmem_p instead of section
1034         name to detect if object is in PROGMEM.
1035         (avr_asm_named_section): Set section name prefix for objects in
1036         PROGMEM.
1037
1038 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1039
1040         PR bootstrap/50352
1041         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1042         sprintf format string.
1043
1044 2011-09-12  Richard Guenther  <rguenther@suse.de>
1045
1046         PR tree-optimization/50343
1047         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1048         that the reduction is over an SSA name before checking its definition.
1049
1050 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1051
1052         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1053         throughout file.
1054
1055 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1056
1057         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1058         throughout file.
1059         * config/mips/sb1.md: Likewise.
1060         * config/mips/predicates.md: Replace (match_test "!...")
1061         with (not (match_test "..."))
1062         * config/mips/constraints.md: Likewise.
1063
1064 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
1065
1066         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1067         * config/arm/arm-tables.opt: Regenerate.
1068         * config/arm/arm-tune.md: Regenerate.
1069         * config/arm/arm.c (arm_file_start): Output .arch directive when
1070         user passes -mcpu=generic-*.
1071         (arm_issue_rate): Add genericv7a support.
1072         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1073         (ASM_CPU_SPEC): New define.
1074         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1075         * config/arm/semi.h (ASM_SPEC): Likewise.
1076         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1077         and -mtune=generic-*.
1078
1079 2011-09-09  Richard Guenther  <rguenther@suse.de>
1080
1081         PR tree-optimization/50328
1082         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1083         constant or default-def operand.
1084
1085 2011-09-09  Richard Guenther  <rguenther@suse.de>
1086
1087         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1088         last statement.
1089
1090 2011-09-09  Richard Guenther  <rguenther@suse.de>
1091
1092         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1093         instead of a statement.
1094         * gimple-fold.c (fold_stmt_inplace): Likewise.
1095         * sese.c (graphite_copy_stmts_from_block): Adjust.
1096         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1097         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1098         fold_stmt.
1099         (forward_propagate_addr_into_variable_array_index): Likewise.
1100         (forward_propagate_addr_expr_1): adjust.
1101         (associate_plusminus): Likewise.
1102         (ssa_forward_propagate_and_combine): Likewise.
1103         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1104         (execute_cse_reciprocals): Likewise.
1105         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1106
1107 2011-09-09  Nick Clifton  <nickc@redhat.com>
1108
1109         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1110         Return a positive value to indicate that the bits at the
1111         bottom of the register should be cleared.
1112
1113 2011-09-09  Richard Guenther  <rguenther@suse.de>
1114
1115         * tree-ssa-operands.c (swap_tree_operands): Always adjust
1116         existing operand positions.
1117
1118 2011-09-09  Richard Guenther  <rguenther@suse.de>
1119
1120         PR middle-end/50333
1121         * tree-data-ref.c (split_constant_offset): Do not try to handle
1122         ternary ops.
1123
1124 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
1125
1126         PR tree-optimization/50318
1127         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1128         typo in use of mult_rhs1 and mult_rhs2.
1129
1130 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
1131
1132         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1133         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1134
1135 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
1136
1137         * config/arm/arm.md (push_multi): Emit predicates.
1138         (push_fp_multi): Likewise.
1139         * config/arm/arm.c (vfp_output_fstmd): Likewise.
1140
1141 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
1142
1143         PR c++/33255 - Support -Wunused-local-typedefs warning
1144         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1145         (pushdecl): Use the new record_locally_defined_typedef.
1146         (store_parm_decls): Allocate cfun->language.
1147         (finish_function): Use the new maybe_warn_unused_local_typedefs,
1148         and free cfun->language.
1149         (c_push_function_context): Allocate cfun->language here only if needed.
1150         (c_pop_function_context): Likewise, mark cfun->language
1151         for collection only when it should be done.
1152         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1153         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1154         maybe_record_local_typedef_use.
1155         * doc/invoke.texi: Update documentation for
1156         -Wunused-local-typedefs.
1157
1158 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
1159
1160         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1161         (ix86_avoid_lea_for_add): Likewise.
1162         (ix86_avoid_lea_for_addr): Likewise.
1163         (ix86_split_lea_for_addr): Likewise.
1164
1165         * config/i386/i386.c (LEA_MAX_STALL): New.
1166         (increase_distance): Likewise.
1167         (insn_defines_reg): Likewise.
1168         (insn_uses_reg_mem): Likewise.
1169         (distance_non_agu_define_in_bb): Likewise.
1170         (distance_agu_use_in_bb): Likewise.
1171         (ix86_lea_outperforms): Likewise.
1172         (ix86_ok_to_clobber_flags): Likewise.
1173         (ix86_avoid_lea_for_add): Likewise.
1174         (ix86_avoid_lea_for_addr): Likewise.
1175         (ix86_split_lea_for_addr): Likewise.
1176         (distance_non_agu_define): Search in pred BBs added.
1177         (distance_agu_use): Search in succ BBs added.
1178         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1179         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1180         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1181
1182         * config/i386/i386.md: Split added to transform non destructive
1183         add into move and add.
1184         (lea_1): transformed into insn_and_split to avoid AGU stalls.
1185         (lea<mode>_2): Likewise.
1186
1187 2011-09-08  Martin Jambor  <mjambor@suse.cz>
1188
1189         PR tree-optimization/50287
1190         * ipa-split.c (split_function): Do not create SSA names for
1191         non-gimple-registers.
1192
1193 2011-09-08  Richard Guenther  <rguenther@suse.de>
1194
1195         PR tree-optimization/19831
1196         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1197         skip builtins with vdefs that do not really store something.
1198         (propagate_necessity): For calls to free that we can associate
1199         with an allocation function do not mark the freed pointer
1200         definition necessary.
1201         (eliminate_unnecessary_stmts): Remove a call to free if
1202         the associated call to an allocation function is not necessary.
1203
1204 2011-09-08  Richard Guenther  <rguenther@suse.de>
1205
1206         PR tree-optimization/19831
1207         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1208         allocation functions as necessary.
1209
1210 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
1211
1212         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1213         cut from ...
1214         (darwin_default_min_version): Amended to provide defaults
1215         for the cross directory case.
1216         (darwin_driver_init): call darwin_default_min_version unconditionally.
1217         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1218         * config/darwin9.h: Likewise.
1219         * config/darwin10.h: Likewise.
1220         * config/rs6000/darwin7.h: Likewise.
1221
1222 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
1223
1224         PR target/50310
1225         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1226         code early if TARGET_AVX.
1227         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1228
1229 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1230
1231         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1232         duplicates.
1233
1234         PR target/50310
1235         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1236         "mode" attribute computation.
1237
1238 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1239
1240         * regrename.c (struct du_head): Make nregs signed.
1241         (closed_chains): Remove.
1242         (create_new_chain): Return the new chain.
1243         (chain_from_id): New static function.
1244         (dump_def_use_chain): Change argument to be an int, indicating
1245         the first ID to print.  All callers changed.
1246         (merge_overlapping_regs): Use chain_from_id.  Assert that
1247         chains don't conflict with themselves.
1248         (rename_chains): Take no argument.  Iterate over id_to_chain
1249         rather to find chains to rename.  Clear tick before the main loop.
1250         (struct incoming_reg_info): New struct.
1251         (struct bb_rename_info): New struct.
1252         (init_rename_info, set_incoming_from_chain, merge_chains): New
1253         static functions.
1254         (regrename_analyze): New static function, broken out of
1255         regrename_optimize.  Record and make use of open chain information
1256         at basic block boundaries, and merge chains where possible.
1257         (scan_rtx_reg): Make this_nregs signed.  Don't update
1258         closed_chains.
1259         (build_def_use): Return a bool to indicate success.  All callers
1260         changed.  Don't initialize global data here.
1261         (regrename_optimize): Move most code out of here into
1262         regrename_analyze.
1263         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1264         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1265         static inline functions.
1266         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1267
1268         * bb-reorder.c (insert_section_boundary_note): Don't check
1269         optimize_function_for_speed_p.
1270         (gate_handle_partition_blocks): Do it here instead.
1271         (gate_handle_reorder_blocks): Move preliminary checks here ...
1272         (rest_of_handle_reorder_blocks): ... from here.
1273
1274 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1275
1276         PR middle-end/50301
1277         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1278         function index bounds.
1279         (perhaps_add_new_callers): Likewise.
1280
1281 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1282
1283         PR tree-optimization/49911
1284         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1285         enumerations to the corresponding plain integer type.
1286
1287 2011-09-07  Richard Guenther  <rguenther@suse.de>
1288
1289         PR tree-optimization/50319
1290         * tree-if-conv.c (set_bb_predicate): Assert we only set
1291         canonical predicates.
1292         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
1293         around canonical predicates.
1294         (predicate_bbs): Do not re-gimplify already canonical
1295         predicates.  Properly unshare them though.
1296         (find_phi_replacement_condition): Simplify.
1297
1298 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
1299
1300         PR target/49030
1301         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1302         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1303         reusing the old code from get_arm_condition_code.  Return ARM_NV
1304         for invalid comparison codes.
1305         (get_arm_condition_code): Redefine in terms of
1306         maybe_get_arm_condition_code.
1307         * config/arm/predicates.md (arm_comparison_operator): Use
1308         maybe_get_arm_condition_code.
1309
1310 2011-09-07  Richard Guenther  <rguenther@suse.de>
1311
1312         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1313         Canonicalize negated predicates by swapping edges.
1314         (forward_propagate_into_cond): Likewise.
1315
1316 2011-09-07  Richard Guenther  <rguenther@suse.de>
1317
1318         PR tree-optimization/50213
1319         * tree-flow.h (simple_iv_increment_p): Declare.
1320         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
1321         POINTER_PLUS_EXPR.
1322         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1323         not propagate simple IV counter increments.
1324
1325 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1326             Iain Sandoe  <iains@gcc.gnu.org>
1327
1328         * config/rs6000/rs6000.c (compute_save_world_info): Test
1329         cfun->has_nonlocal_label to determine if the out-of-line save
1330         world call may be used.
1331
1332 2011-09-07  Nick Clifton  <nickc@redhat.com>
1333
1334         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1335         label on the parallel part of the insn.
1336
1337 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1338
1339         PR debug/50191
1340         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
1341         avoid_constant_pool_reference first instead of last.
1342
1343 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1344
1345         * doc/configfiles.texi (Configuration Files): Update documentation
1346         about tm_p.h and remove FIXME comment.
1347
1348 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
1349
1350         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
1351         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
1352
1353 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1354
1355         * config/darwin10.h Remove duplicate LIB_SPEC.
1356
1357 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
1358
1359         PR middle-end/44382
1360         * target.def (reassociation_width): New hook.
1361
1362         * doc/tm.texi.in (reassociation_width): Likewise.
1363
1364         * doc/tm.texi (reassociation_width): Likewise.
1365
1366         * doc/invoke.texi (tree-reassoc-width): New param documented.
1367
1368         * hooks.h (hook_int_uint_mode_1): New default hook.
1369
1370         * hooks.c (hook_int_uint_mode_1): Likewise.
1371
1372         * config/i386/i386.h (ix86_tune_indices): Add
1373         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1374
1375         (TARGET_REASSOC_INT_TO_PARALLEL): New.
1376         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
1377
1378         * config/i386/i386.c (initial_ix86_tune_features): Add
1379         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1380
1381         (ix86_reassociation_width): New function.
1382
1383         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
1384
1385         * tree-ssa-reassoc.c (get_required_cycles): New function.
1386         (get_reassociation_width): Likewise.
1387         (swap_ops_for_binary_stmt): Likewise.
1388         (rewrite_expr_tree_parallel): Likewise.
1389
1390         (rewrite_expr_tree): Refactored.  Part of code moved into
1391         swap_ops_for_binary_stmt.
1392
1393         (reassociate_bb): Now checks reassociation width to be used and
1394         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
1395
1396 2011-09-06  Richard Guenther  <rguenther@suse.de>
1397
1398         PR tree-optimization/47025
1399         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
1400         uses nothing.
1401         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
1402         BUILT_IN_FREE.
1403         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
1404         definitely points to.
1405         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1406         BUILT_IN_VA_START doesn't let its va_list argument escape.
1407         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
1408         not make any previous stores necessary.
1409
1410 2011-09-06  Martin Jambor  <mjambor@suse.cz>
1411
1412         * ipa-inline.h (struct inline_summary): Move versionable flag...
1413         * cgraph.h (struct cgraph_local_info): ...here
1414         * ipa-cp.c (determine_versionability): Use the new versionable flag.
1415         (determine_versionability): Likewise.
1416         (ipcp_versionable_function_p): Likewise.
1417         (ipcp_generate_summary): Likewise.
1418         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
1419         versionable flag.
1420         (compute_inline_parameters): Do not clear the versionable flag.
1421         (inline_read_section): Do not stream the versionable flag.
1422         (inline_write_summary): Likewise.
1423         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
1424         (input_overwrite_node): Likewise.
1425
1426 2011-09-06  Richard Guenther  <rguenther@suse.de>
1427
1428         PR tree-optimization/48149
1429         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
1430         (vn_valueize): Move earlier.
1431         (valueize_expr): Use vn_valueize.
1432         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
1433         operands.
1434         (simplify_unary_expression): Simplify.
1435
1436 2011-09-06  Richard Guenther  <rguenther@suse.de>
1437
1438         PR tree-optimization/48317
1439         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
1440         trailing array.
1441         (sizeof_vn_nary_op): New inline function.
1442         (vn_nary_op_lookup_pieces): Adjust.
1443         (vn_nary_op_insert_pieces): Likewise.
1444         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
1445         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
1446         any number of operands.
1447         (vn_nary_length_from_stmt): New function.
1448         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
1449         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
1450         sized temporary.
1451         (vn_nary_op_lookup): Likewise.
1452         (vn_nary_op_lookup_stmt): Likewise.
1453         (vn_nary_op_insert_into): Likewise.
1454         (vn_nary_op_insert_stmt): Likewise.
1455         (visit_use): Handle CONSTRUCTOR as nary.
1456         * tree-ssa-pre.c (phi_translate_1): Adjust.
1457         (create_expression_by_pieces): Likewise.
1458         (compute_avail): Likewise.
1459
1460 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
1461
1462          * config/arm/arm.c (arm_preferred_simd_mode): Check
1463         TARGET_NEON_VECTORIZE_DOUBLE instead of
1464         TARGET_NEON_VECTORIZE_QUAD.
1465         (arm_autovectorize_vector_sizes): Likewise.
1466         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
1467         mask of mvectorize-with-neon-double.  Add RejectNegative.
1468         (mvectorize-with-neon-double): New.
1469
1470 2011-09-06  Richard Guenther  <rguenther@suse.de>
1471
1472         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
1473
1474 2011-09-06  Tom de Vries  <tom@codesourcery.com>
1475
1476         * recog.c (asm_labels_ok): New function.
1477         (check_asm_operands): Use asm_labels_ok.
1478
1479 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
1480
1481         PR target/49606
1482         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
1483         (PMODE_INSN): New macro.
1484         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
1485         (mips_got_load, mips_expand_synci_loop): Likewise.
1486         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
1487         cprestore patterns.
1488         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
1489         copygp_mips16 patterns.
1490         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
1491         and use_cprestore patterns.
1492         (mips_override_options): Check for incompatible -mabi and -mlong
1493         combinations.
1494         * config/mips/mips.md (unspec_got<mode>): Rename to...
1495         (unspec_got_<mode>): ...this.
1496         (copygp_mips16): Use the Pmode iterator.
1497         (potential_cprestore, cprestore, use_cprestore): Likewise.
1498         (clear_cache, indirect_jump): Use PMODE_INSN.
1499         (indirect_jump<mode>): Rename to...
1500         (indirect_jump_<mode>): ...this.
1501         (tablejump): Use PMODE_INSN.
1502         (tablejump<mode>): Rename to...
1503         (tablejump_<mode>): ...this.
1504         (exception_receiver): Handle restore_gp_si and restore_gp_di.
1505         (restore_gp): Use the Pmode iterator.
1506         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
1507         PMODE_INSN.
1508
1509 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
1510
1511         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
1512         Fix the type of the BIT_AND_EXPR.
1513
1514 2011-09-05  David S. Miller  <davem@davemloft.net>
1515
1516         * config.host: Add driver-sparc.o and sparc/x-sparc on
1517         native sparc*-*-linux* builds.
1518         * config/sparc/driver-sparc.c: Correct Linux strings.
1519         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
1520         * config/sparc/linux64.h: Likewise.
1521         * doc/invoke.texi: Document that Linux also supports
1522         -mcpu=native and -mtune=native on sparc.
1523
1524         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
1525         PROCESSOR_NIAGARA4): New.
1526         * config/sparc/sparc.opt: Handle new processor types.
1527         * config/sparc/sparc.md: Add to "cpu" attribute.
1528         * config/sparc/sparc.h (TARGET_CPU_niagara3,
1529         TARGET_CPU_niagara4): New, treat as niagara2.
1530         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
1531         * config/sparc/sol2.h: Likewise.
1532         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
1533         * config/sparc/sparc.c (sparc_option_override): Add
1534         niagara3 and niagara4 handling.
1535         (sparc32_initialize_trampoline): Likewise.
1536         (sparc64_initialize_trampoline): Likewise.
1537         (sparc_use_sched_lookahead): Likewise.
1538         (sparc_issue_rate): Likewise.
1539         (sparc_register_move_cost): Likewise.
1540         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
1541         and niagara4 as appropriate.
1542         * doc/invoke.texi: Document new processor types.
1543         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
1544         and --with-tune options.
1545
1546         * config/sparc/sol2-64.h: Move ...
1547         * config/sparc/default-64.h: ... to here.  Update comment.
1548         * config.gcc: Update Solaris sparc to use default-64.h, also
1549         prefix this header into the list on sparc64-*-linux.
1550         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
1551         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
1552         to MASK_HARD_QUAD.
1553
1554 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
1555
1556         PR target/50289
1557         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1558         that contain global register variable.
1559
1560 2011-09-05  Richard Guenther  <rguenther@suse.de>
1561
1562         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
1563
1564 2011-09-05  Richard Guenther  <rguenther@suse.de>
1565
1566         * stor-layout.c (layout_type): Use size_binop for array size
1567         calculations.
1568
1569 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
1570
1571         * config/avr/avr.h (progmem_section): Remove Declaration.
1572         * config/avr/avr.c (progmem_section): Make static and rename to
1573         progmem_swtable_section.
1574         (avr_output_addr_vec_elt): No need to switch sections.
1575         (avr_asm_init_sections): Use output_section_asm_op as section
1576         callback for progmem_swtable_section.
1577         (avr_output_progmem_section_asm_op): Remove Function.
1578         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
1579         (avr_asm_function_rodata_section): New static Function.
1580         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
1581         alignment 2**1 for jump tables.
1582
1583 2011-09-04  Jan Hubicka  <jh@suse.cz>
1584
1585         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
1586         parameter is SSA name.
1587
1588 2011-09-04  Richard Guenther  <rguenther@suse.de>
1589
1590         Revert
1591         2011-08-31  Richard Guenther  <rguenther@suse.de>
1592
1593         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1594         special-casing.
1595
1596 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
1597
1598         PR debug/49901
1599         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
1600
1601 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
1602             Ira Rosen  <ira.rosen@linaro.org>
1603
1604         PR tree-optimization/50208
1605         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
1606         argument.  Check that def_stmt is inside the loop.
1607         (vect_recog_widen_mult_pattern): Update calls to
1608         vect_handle_widen_mult_by_cons.
1609         (vect_operation_fits_smaller_type): Check that def_stmt is
1610         inside the loop.
1611
1612 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
1613
1614         * tree-vectorizer.c (vect_print_dump_info): Print line
1615         number when dumping to a file.
1616         (vectorize_loops): Add new messages to dump file.
1617
1618 2011-09-03  Martin Jambor  <mjambor@suse.cz>
1619
1620         * ipa-prop.h (ipa_jump_func_t): New typedef.
1621         (struct ipa_edge_args): Removed field argument_count, field
1622         jump_functions turned into a vector.
1623         (ipa_set_cs_argument_count): Removed.
1624         (ipa_get_cs_argument_count): Updated to work on vectors.
1625         (ipa_get_ith_jump_func): Likewise.
1626         * ipa-prop.c (ipa_count_arguments): Removed.
1627         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
1628         jump functions.  Update caller.
1629         (compute_pass_through_member_ptrs): Likewise.
1630         (compute_cst_member_ptr_arguments): Likewise.
1631         (ipa_compute_jump_functions_for_edge): Get number of arguments from
1632         the statement, allocate vector.
1633         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
1634         (duplicate_ipa_jump_func_array): Removed.
1635         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
1636         (ipa_read_node_info): Allocate vector.
1637
1638 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1639
1640         PR middle-end/50232
1641         * config/pa/pa.md (return): Define "return" insn pattern.
1642         (epilogue): Use it when no epilogue is needed.
1643         * config/pa/pa.c (pa_can_use_return_insn): New function.
1644         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
1645
1646 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
1647
1648         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
1649         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
1650         Force at least BITS_PER_UNIT alignment on the new variable.
1651
1652 2011-09-02  Gary Funck <gary@intrepid.com>
1653
1654         * opts.c (print_specific_help): Fix off-by-one compare in
1655         assertion check.
1656         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1657         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
1658         Increase by +5 to allow for more languages.
1659         * optc-gen.awk: Generate #if that ensures that the number of
1660         languages is within the implementation-defined limit.
1661
1662 2011-09-02  Michael Matz  <matz@suse.de>
1663
1664         PR middle-end/50260
1665         * ipa-split.c (split_function): Call add_referenced_var.
1666
1667         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
1668         (cond_if_else_store_replacement_1): Ditto.
1669         * tree-ssa-pre.c (get_representative_for): Ditto.
1670         (create_expression_by_pieces): Ditto.
1671         (insert_into_preds_of_block): Ditto.
1672         * tree-sra.c (create_access_replacement): Ditto.
1673         (get_replaced_param_substitute): Ditto.
1674
1675 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
1676
1677         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1678         automata_options.
1679         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1680         (l1w, s1w, l2w, s2w): Define in the main automaton.
1681         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1682         units.
1683         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1684         (c6x_unit_names): Add the new units.
1685         (c6x_unit_codes): New static array.
1686         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1687         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1688         UNIT_QID_SIDE_OFFSET): New macros.
1689         (RESERVATION_S2): Adjust value.
1690         (c6x_option_override): Compute c6x_unit_codes.
1691         (assign_reservations): Take the unit_mask of the last instruction
1692         into account.  Detect floating point reservations by looking for
1693         the new units.  Don't assign reservations if the field is already
1694         nonzero.
1695         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1696         (init_sched_state): Initialize it.
1697         (c6x_clear_sched_context): Free it.
1698         (insn_set_clock): Clear reservation.
1699         (prev_cycle_state): New static variable.
1700         (c6x_init_sched_context): Save it.
1701         (c6x_sched_init): Allocate space for it and clear it.
1702         (c6x_sched_dfa_pre_cycle_insn): New static function.
1703         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1704         (c6x_variable_issue): Only record units in the unit_mask that
1705         were not set at the start of the cycle.
1706         (c6x_variable_issue): Compute and store the unit_mask from the
1707         current state.
1708         (reorg_split_calls): Ensure the new information remains correct.
1709         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1710         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1711         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1712         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1713         Add special reservations.
1714         * config/c6x/c6x-sched.md: Regenerate.
1715
1716 2011-09-02  Martin Jambor  <mjambor@suse.cz>
1717
1718         * ipa-prop.h (ipa_node_params): Removed fields
1719         called_with_var_arguments and node_versionable.
1720         (ipa_set_called_with_variable_arg): Removed.
1721         (ipa_is_called_with_var_arguments): Likewise.
1722         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1723         (determine_versionability): Do not check for type attributes and va
1724         builtins.  Record versionability into inline summary.
1725         (initialize_node_lattices): Do not check
1726         ipa_is_called_with_var_arguments.
1727         (propagate_constants_accross_call): Likewise, ignore arguments we do
1728         not have PARM_DECLs for, set variable flag for parameters that were
1729         not passed a value.
1730         (create_specialized_node): Dump info that we cannot change signature.
1731         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1732         number of arguments.
1733         (ipa_make_edge_direct_to_target): Likewise.
1734         (ipa_update_after_lto_read): Likewise.
1735         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1736         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1737         they were remapped.
1738
1739 2011-09-02  Richard Guenther  <rguenther@suse.de>
1740
1741         PR tree-optimization/27460
1742         PR middle-end/29269
1743         * doc/md.texi (vcond): Document.
1744         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1745         optab with two modes.
1746         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1747         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1748         (vcond_optab): Adjust.
1749         (vcondu_optab): Likewise.
1750         (expand_vec_cond_expr_p): Adjust prototype.
1751         * optabs.c (get_vcond_icode): Adjust.
1752         (expand_vec_cond_expr_p): Likewise.
1753         (expand_vec_cond_expr): Likewise.
1754         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1755         vector type.
1756         (vectorizable_condition): Allow differing types for comparison
1757         and result.
1758         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1759         for the comparison.
1760         * config/i386/sse.md (vcond<mode>): Split to
1761         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1762         vcond<V_128:mode><VI124_128:mode> and
1763         vcondu<V_128:mode><VI124_128:mode>.
1764         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1765         (vconduv2di): Likewise.
1766         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1767         (vcondu<mode>): Likewise.
1768         * config/ia64/vect.md (vcond<mode>): Likewise.
1769         (vcondu<mode>): Likewise.
1770         (vcondv2sf): Likewise.
1771         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1772         * config/rs6000/paired.md (vcondv2sf): Likewise.
1773         * config/rs6000/vector.md (vcond<mode>): Likewise.
1774         (vcondu<mode>): Likewise.
1775         * config/spu/spu.md (vcond<mode>): Likewise.
1776         (vcondu<mode>): Likewise.
1777
1778 2011-09-02  Richard Guenther  <rguenther@suse.de>
1779
1780         * pretty-print.h (pp_unsigned_wide_integer): New.
1781         * tree-pretty-print.c (dump_generic_node): Print unsigned
1782         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1783
1784 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
1785
1786         PR target/49987
1787         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1788         valid CONST_VECTOR operands.
1789         (rs6000_expand_vector_init): Likewise.
1790
1791 2011-09-02  Martin Jambor  <mjambor@suse.cz>
1792
1793         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1794         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1795         BINFO_VTABLE.  Parameter delta removed, all callers updated.
1796         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1797         BINFO_VTABLE.
1798         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1799         all calls.
1800         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1801         handling of thunk_delta.
1802         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1803         (devirtualization_time_bonus): Do not handle thunk deltas.
1804         (ipcp_discover_new_direct_edges): Likewise.
1805         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1806         (try_make_edge_direct_simple_call): Likewise.
1807         (try_make_edge_direct_virtual_call): Likewise.
1808         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
1809         parameter set as unused.
1810         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
1811         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
1812         parameter set as unused.
1813         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
1814         (input_edge_opt_summary): Likewise.
1815         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1816         BINFO_VIRTUALS at all.
1817         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1818
1819 2011-09-02  Richard Guenther  <rguenther@suse.de>
1820
1821         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1822         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1823
1824 2011-08-31  Richard Guenther  <rguenther@suse.de>
1825
1826         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1827         handling here, from ...
1828         (expand_expr_real_1): ... here.
1829         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1830         and VEC_COND_EXPR.
1831         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1832         a GIMPLE_TERNARY_RHS.
1833         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1834         and VEC_COND_EXPR here ...
1835         (verify_gimple_assign_single): ... not here.
1836         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1837         * tree-object-size.c (cond_expr_object_size): Adjust.
1838         (collect_object_sizes_for): Likewise.
1839         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1840         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1841         (ssa_forward_propagate_and_combine): Adjust.
1842         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1843         as ternary.
1844         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1845         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1846         * tree-vect-stmt.c (vectorizable_condition): Likewise.
1847         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1848         (extract_range_from_assignment): Likewise.
1849
1850 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1851
1852         * config/i386/i386.md: Use (match_test ...) for attribute tests.
1853         * config/i386/mmx.md: Likewise.
1854         * config/i386/sse.md: Likewise.
1855         * config/i386/predicates.md (call_insn_operand): Use
1856         (not (match_test "...")) instead of (match_test "!...")
1857         * config/i386/constraints.md (w): Likewise.
1858
1859 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1860
1861         * doc/md.texi: Describe the use of match_tests in attribute tests.
1862         * rtl.def (MATCH_TEST): Update commentary.
1863         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1864         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1865
1866 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
1867
1868         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1869         (attr_string): Use copy_md_ptr_loc.
1870
1871 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1872
1873         PR middle-end/49886
1874         * ipa-inline-analysis.c (compute_inline_parameters): Set
1875         can_change_signature of noes with typde attributes.
1876         * ipa-split.c (split_function): Do not skip any arguments if
1877         can_change_signature is set.
1878
1879 2011-08-31  Martin Jambor  <mjambor@suse.cz>
1880
1881         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1882         check removed.
1883
1884 2011-08-31  Richard Guenther  <rguenther@suse.de>
1885
1886         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1887         special-casing.
1888
1889 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
1890
1891         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1892
1893 2011-08-31  Tom de Vries  <tom@codesourcery.com>
1894
1895         PR middle-end/43513
1896         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1897         * tree-ssa-ccp.c (params.h): Include.
1898         (fold_builtin_alloca_for_var): New function.
1899         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1900
1901 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
1902
1903         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1904         Handle FMA option.
1905
1906 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1907
1908         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1909         b3 and b4 unsigned.
1910
1911 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
1912
1913         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1914         when code is SET.
1915
1916 2011-08-30  Richard Guenther  <rguenther@suse.de>
1917
1918         PR middle-end/48571
1919         * gimple.h (maybe_fold_offset_to_address): Remove.
1920         (maybe_fold_offset_to_reference): Likewise.
1921         (maybe_fold_stmt_addition): Likewise.
1922         (may_propagate_address_into_dereference): Likewise.
1923         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1924         array references.
1925         * gimple-fold.c (canonicalize_constructor_val): Likewise.
1926         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1927         addresses instead.
1928         (may_propagate_address_into_dereference): Remove.
1929         (maybe_fold_offset_to_array_ref): Likewise.
1930         (maybe_fold_offset_to_reference): Likewise.
1931         (maybe_fold_offset_to_address): Likewise.
1932         (maybe_fold_stmt_addition): Likewise.
1933         (fold_gimple_assign): Do not reconstruct array references but
1934         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1935         MEM_REF addresses.
1936         (gimple_fold_stmt_to_constant_1): Likewise.
1937         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1938         * gimplify.c (gimplify_conversion): Likewise.
1939         (gimplify_expr): Likewise.
1940
1941 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
1942
1943         * config/i386/fmaintrin.h: New.
1944         * config.gcc: Add fmaintrin.h.
1945         * config/i386/i386.c
1946         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1947         <IX86_BUILTIN_VFMADDSD3>: Likewise.
1948         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1949         (*fmai_fmadd_<mode>): Likewise.
1950         (*fmai_fmsub_<mode>): Likewise.
1951         (*fmai_fnmadd_<mode>): Likewise.
1952         (*fmai_fnmsub_<mode>): Likewise.
1953         * config/i386/immintrin.h: Add fmaintrin.h.
1954
1955 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
1956
1957         * genautomata.c (NO_COMB_OPTION): New macro.
1958         (no_comb_flag): New static variable.
1959         (gen_automata_option): Handle NO_COMB_OPTION.
1960         (comb_vect_p): False if no_comb_flag.
1961         (add_vect): Move computation of min/max values.  Return early if
1962         no_comb_flag.
1963         * doc/md.texi (automata_option): Document no-comb-vect.
1964
1965         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1966         "__x86.get_pc_thunk".
1967
1968         * bb-reorder.c (insert_section_boundary_note): Only do it if
1969         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1970
1971 2011-08-30  Christian Bruel  <christian.bruel@st.com>
1972
1973         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1974         flag_profile_use.
1975
1976 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
1977
1978         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1979         to off.  Document switch.
1980         * doc/invoke.texi (-msave-toc-indirect): Ditto.
1981
1982 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
1983
1984         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1985         conditionals and comments inside macro arguments.
1986
1987 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
1988             Richard Guenther  <rguenther@suse.de>
1989
1990         * tree.h (constant_boolean_node): Adjust prototype.
1991         * fold-const.c (fold_convert_loc): Move aggregate conversion
1992         leeway down.
1993         (constant_boolean_node): Make value parameter boolean, add
1994         vector type handling.
1995         (fold_unary_loc): Use constant_boolean_node.
1996         (fold_binary_loc): Preserve types properly when folding
1997         COMPLEX_EXPR <__real x, __imag x>.
1998         * gimplify.c (gimplify_expr): Handle vector comparison.
1999         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2000         comparison.
2001         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2002         comparisons.
2003
2004 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2005
2006         PR middle-end/48722
2007         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2008         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2009         (verify_rtl_sharing): Likewise and verify_rtx_sharing
2010         in there too.
2011         (unshare_all_rtl_in_chain): For CALL_INSNs
2012         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2013
2014 2011-08-29  Richard Guenther  <rguenther@suse.de>
2015
2016         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2017         on the built ADDR_EXPR.
2018
2019 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2020
2021         PR debug/50215
2022         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2023         before adding ENTRY_VALUE to val->locs.
2024
2025 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
2026
2027         PR bootstrap/50218
2028         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2029         comp.
2030
2031 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
2032
2033         * doc/rtl.texi (simple_return): Document.
2034         (parallel, PATTERN): Here too.
2035         * doc/md.texi (return): Mention it's allowed to expand to simple_return
2036         in some cases.
2037         (simple_return): Document standard pattern.
2038         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2039         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2040         * reorg.c (function_return_label, function_simple_return_label):
2041         New static variables, replacing...
2042         (end_of_function_label): ... this.
2043         (simplejump_or_return_p): New static function.
2044         (optimize_skip, steal_delay_list_from_fallthrough,
2045         fill_slots_from_thread): Use it.
2046         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
2047         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2048         (find_end_label): Take a new arg which is one of the two return
2049         rtxs.  Depending on which, set either function_return_label or
2050         function_simple_return_label.  All callers changed.
2051         (make_return_insns): Make both kinds.
2052         (dbr_schedule): Adjust for two kinds of end labels.
2053         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2054         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2055         (gen_expand, gen_split): Use ANY_RETURN_P.
2056         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2057         * rtl.def (SIMPLE_RETURN): New code.
2058         * ifcvt.c (find_if_case_1): Be more careful about
2059         redirecting jumps to the EXIT_BLOCK.
2060         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2061         returnjump_p_1): Handle SIMPLE_RETURNs.
2062         * print-rtl.c (print_rtx): Likewise.
2063         * rtl.c (copy_rtx): Likewise.
2064         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2065         * combine.c (simplify_set): Likewise.
2066         * resource.c (find_dead_or_set_registers, mark_set_resources):
2067         Likewise.
2068         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2069         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2070         (init_emit_regs): Initialize simple_return_rtx.
2071         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2072         force_nonfallthru_and_redirect.
2073         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2074         (GR_SIMPLE_RETURN): New enum value.
2075         (simple_return_rtx): New macro.
2076         * basic-block.h (force_nonfallthru_and_redirect): Adjust
2077         declaration.
2078         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2079         argument.  All callers changed.  Be careful about what kinds of
2080         returnjumps to generate.
2081         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2082         ix86_pad_short_function): Likewise.
2083         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2084         of return.
2085         * config/mips/mips.md (any_return): New code_iterator.
2086         (optab): Add cases for return and simple_return.
2087         (return): Expand to a simple_return.
2088         (simple_return): New pattern.
2089         (*<optab>, *<optab>_internal for any_return): New patterns.
2090         (return_internal): Remove.
2091         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2092         a simple_return_internal.
2093
2094 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2095
2096         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2097         (vec_extract_lo_<mode>): Prevent both operands in memory.
2098         (vec_extract_lo_v16hi): Ditto.
2099         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2100
2101 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2102
2103         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2104         (*sse2_mulv4si3): Ditto.
2105         (mulv2di3): Ditto.
2106         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2107         notes to REG_EQUAL.
2108
2109 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2110
2111         PR target/50202
2112         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2113         when all outputs are unused.
2114         (sse4_2_pcmpistr): Ditto.
2115
2116 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2117
2118         * config/i386/i386.md (round<mode>2): New expander.
2119         * config/i386/i386.c (enum ix86_builtins): Add
2120         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2121         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2122         descriptions.
2123         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2124         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2125
2126 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2127
2128         PR middle-end/50083
2129         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2130         only when TARGET_C99_FUNCTIONS.
2131         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2132         <BUILT_IN_RINT{,F,L}>: Ditto.
2133
2134 2011-08-26  Michael Matz  <matz@suse.de>
2135             Jakub Jelinek  <jakub@redhat.com>
2136
2137         PR lto/50165
2138         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2139         don't call strlen twice, use memcpy.
2140
2141 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2142
2143         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2144         * config/i386/bmiintrin.h: Likewise.
2145         * config/i386/lzcntintrin.h: Likewise.
2146
2147         * config/i386/immintrin.h: Include <lzcntintrin.h>,
2148         <bmiintrin.h> and <bmi2intrin.h>.
2149
2150 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2151
2152         PR target/50166
2153         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2154         * configure: Regenerate.
2155
2156 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2157
2158         PR c/50179
2159         * c-typeck.c (c_process_expr_stmt): Skip over nops and
2160         call mark_exp_read even if exprv is ADDR_EXPR.
2161
2162 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
2163
2164         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2165         to df_set_dead_notes_for_mw.
2166
2167 2011-08-26  Richard Guenther  <rguenther@suse.de>
2168
2169         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2170
2171 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
2172             Tom de Vries  <tom@codesourcery.com>
2173
2174         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2175         (struct ivopts_data): Add loop_single_exit_p field.
2176         (niter_for_exit): Change parameter desc_p into return value.  Return
2177         desc if desc->may_be_zero.  Free desc if unused.
2178         (niter_for_single_dom_exit): Change return type.
2179         (find_induction_variables): Handle changed return type of
2180         niter_for_single_dom_exit.  Dump may_be_zero.
2181         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2182         (set_use_iv_cost): Add and handle comp parameter.
2183         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2184         comp argument to set_use_iv_cost.
2185         (strip_wrap_conserving_type_conversions, expr_equal_p)
2186         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2187         (may_eliminate_iv): Add comp parameter.  Handle new return type of
2188         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
2189         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2190         and may_eliminate_iv.
2191         (rewrite_use_compare): Move call to iv_elimination_compare to ...
2192         (may_eliminate_iv): Here.
2193         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2194
2195 2011-08-26  Tom de Vries  <tom@codesourcery.com>
2196
2197         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2198         accessing TREE_TYPE.
2199
2200 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
2201
2202         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2203         (*ior_scc_scc_cmp): Likewise
2204         (*and_scc_scc): Likewise.
2205         (*and_scc_scc_cmp): Likewise.
2206         (*and_scc_scc_nodom): Likewise.
2207         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2208
2209 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2210
2211         * rtlanal.c (nonzero_bits1): Handle CLRSB.
2212
2213 2011-08-26  Richard Guenther  <rguenther@suse.de>
2214
2215         * expr.c (string_constant): Handle &MEM_REF.
2216
2217 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2218
2219         * config/arm/arm.c (struct four_ints): New type.
2220         (count_insns_for_constant): Delete function.
2221         (find_best_start): Delete function.
2222         (optimal_immediate_sequence): New function.
2223         (optimal_immediate_sequence_1): New function.
2224         (arm_gen_constant): Move constant splitting code to
2225         optimal_immediate_sequence.
2226         Rewrite constant negation/invertion code.
2227
2228 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2229
2230         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2231         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2232         Remove prototype. Remove static function type.
2233         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2234         Add arch attribute.
2235         * config/arm/constraints.md (Pj, PJ): New constraints.
2236
2237 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2238
2239         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2240         ("cortex_a9_multiply_long"): New and use above.  Handle all
2241         long multiply cases.
2242         ("cortex_a9_multiply"): Handle smmul and smmulr.
2243         ("cortex_a9_mac"): Handle smmla.
2244
2245 2011-08-25  Richard Henderson  <rth@redhat.com>
2246
2247         PR 50132
2248         PR 49864
2249         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2250         non-constant stack adjutment.
2251         * expr.c (find_args_size_adjust): Break out from ...
2252         (fixup_args_size_notes): ... here.
2253         * rtl.h (find_args_size_adjust): Declare.
2254
2255 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
2256
2257         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2258         sse4 and sse4_noavx.
2259         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2260         (*pushdf_rex64): Change Y2 register constraint to x.
2261         (*movdf_internal_rex64): Ditto.
2262         (*zero_extendsidi2_rex64): Ditto.
2263         (*movdi_internal): Change Y2 register constraint to x
2264         and update "isa" attribute.
2265         (*pushdf): Ditto.
2266         (*movdf internal): Ditto.
2267         (zero_extendsidi2_1): Ditto.
2268         (*truncdfdf_mixed): Ditto.
2269         (*truncxfdf2_mixed): Ditto.
2270         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2271         register constraint to x.
2272         (*movv2sf_internal_rex64): Ditto.
2273         (*mov<mode>_internal): Change Y2 register constraint to x
2274         and add "isa" attribute.
2275         (*movv2sf_internal): Ditto.
2276         (*vec_extractv2si_1): Ditto.
2277         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2278         constraints to x and update "isa" attribute.
2279         (*vec_interleave_highv2df): Change Y3 registerconstraint
2280         to x and update "isa" attribute.
2281         (*vec_interleave_lowv2df): Ditto.
2282         (*vec_concatv2df): Change Y2 register constraint to x and
2283         update "isa" attribute.
2284         (sse2_loadld): Ditto.
2285         (*vec_extractv2di_1): Ditto.
2286         (*vec_dupv4si): Ditto.
2287         (*vec_dupv2di): Ditto.
2288         (*vec_concatv4si): Ditto.
2289         (vec_concatv2di): Ditto.
2290         * config/i386/constraints.md (Y2): Remove.
2291         (Y3): Ditto.
2292         (Y4): Ditto.
2293
2294 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2295
2296         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2297         dump_def_use_chain): Don't declare.
2298         (mark_conflict, create_new_chain): Move before users.
2299         (regrename_optimize): Move to near end of file.
2300
2301 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2302
2303         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2304         (secondary_input_reload_class): Remove Prototype.
2305         * config/avr/avr.c (byte_immediate_operand): Remove Function.
2306         * config/avr/avr.md (setmemhi): Use u8_operand.
2307         (strlenhi): Use const0_rtx for comparison.
2308         * config/avr/avr.h (avr_reg_order): Remove Declaration.
2309
2310 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2311
2312         * config/avr/avr.c (reg_class_tab): Make local to
2313         avr_regno_reg_class.  Return smallest register class available.
2314
2315 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2316
2317         * config/avr/avr.c (STR_PREFIX_P): New Define.
2318         (avr_asm_declare_function_name): Use it.
2319         (avr_asm_named_section): Use it.
2320         (avr_section_type_flags): Use it.
2321
2322 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2323
2324         * doc/md.texi (automata_option): Document collapse-ndfa.
2325         * genautomata.c (COLLAPSE_OPTION): New macro.
2326         (collapse_flag): New static variable.
2327         (struct description): New member normal_decls_num.
2328         (struct automaton): New members advance_ainsn and collapse_ainsn.
2329         (gen_automata_option): Check for COLLAPSE_OPTION.
2330         (collapse_ndfa_insn_decl): New static variable.
2331         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2332         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2333         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2334         necessary.  Use normal_decls_num rather than decls_num, remove
2335         test for special decls.
2336         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2337         (make_automaton); Likewise.  Use the new advance_cycle_insn member
2338         of struct automaton.
2339         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
2340         is set.
2341         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
2342         transition.  Create the necessary transitions for it.
2343         (create_ainsns): Return void.  Take an automaton_t argument, and
2344         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
2345         callers changed.
2346         (COLLAPSE_NDFA_VALUE_NAME): New macro.
2347         (output_tables): Output code to define it.
2348         (output_internal_insn_code_evaluation): Output code to accept
2349         const0_rtx as collapse-ndfa transition.
2350         (output_default_latencies, output_print_reservation_func,
2351         output_print_description): Reorganize loops to use normal_decls_num
2352         as loop bound; remove special case for advance_cycle_insn_decl.
2353         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
2354         (check_automata_insn_issues): Check for collapse_ainsn.
2355         (expand_automate): Allocate sufficient space.  Initialize
2356         normal_decls_num.
2357
2358 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2359
2360         * config/avr/avr.md: Fix indentation from r177991.
2361
2362 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2363
2364         * regrename.c (struct du_head): Remove member terminated.
2365         (create_new_chain): Don't initialize it.
2366         (scan_rtx_reg): Don't set or test it, test the open_chains_set
2367         bitmap instead.
2368         (tick, this_tick): New global variables, moved out of
2369         regrename_optimize.
2370         (current_id, open_chains, closed_chains, open_chains_set,
2371         live_in_chains, live_hard_regs): Reorder declarations.
2372         (dump_def_use_chain): Move function earlier in the file.
2373         (rename_chains): New static function, broken out of
2374         regrename_optimize.
2375         (regrename_optimize): Use it.  Remove #if 0'ed code.
2376
2377 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2378
2379         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
2380
2381 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         PR target/50172
2384         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
2385
2386 2011-08-24  Richard Guenther  <rguenther@suse.de>
2387
2388         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
2389         ref in the basic-block case.  Move stripping array-refs
2390         to the place we create an access-function for it.  Remove
2391         bogus stripping down a MEM_REF to its base.
2392
2393 2011-08-24  Richard Guenther  <rguenther@suse.de>
2394
2395         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
2396         with -fno-strict-overflow.
2397
2398 2011-08-24  Richard Guenther  <rguenther@suse.de>
2399
2400         * tree-vectorizer.c (vect_print_dump_info): Avoid the
2401         file and location clutter when dumping to dump files.
2402
2403 2011-08-24  Simon Baldwin  <simonb@google.com>
2404
2405         * gengtype-state.c (write_state): Remove timestamped header line.
2406
2407 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2408
2409         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
2410         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
2411         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
2412         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
2413         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
2414         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
2415         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
2416         rules.
2417         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
2418
2419 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2420
2421         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
2422
2423 2011-08-24  Richard Guenther  <rguenther@suse.de>
2424
2425         PR tree-optimization/50067
2426         * tree-data-ref.c (dr_analyze_indices): Do not add an access
2427         function for a MEM_REF base that has no evolution in the loop
2428         nest or that is not analyzable.
2429
2430 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
2431
2432         * ira.c (ira_init_register_move_cost): Check small subclasses
2433         through ira_reg_class_max_nregs and ira_available_class_regs.
2434
2435 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2436
2437         * config/i386/constraints.md (Yp): New register constraint.
2438         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
2439         Yp register constraint.
2440         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
2441         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
2442         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
2443
2444 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2445
2446         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
2447
2448 2011-08-23  Mark Heffernan  <meheff@google.com>
2449
2450         PR middle-end/38509
2451         * common.opt (Wfree-nonheap-object): New option.
2452         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
2453         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
2454         to warning.
2455         (expand_builtin): Make warning conditional.
2456
2457 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2458
2459         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
2460         (length_immediate): Handle imulx, ishiftx and rotatex.
2461         (imm_disp): Ditto.
2462         (isa): Add bmi2.
2463         (enabled): Handle bmi2.
2464         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
2465         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
2466         (*bmi2_umulditi3_1): New insn pattern.
2467         (*bmi2_umulsidi3_1): Ditto.
2468         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
2469         (*bmi2_ashl<mode>3_1): New insn pattern.
2470         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
2471         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
2472         (*bmi2_ashlsi3_1_zext): New insn pattern.
2473         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
2474         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
2475         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
2476         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
2477         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
2478         flags dependency.
2479         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
2480         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
2481         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
2482         flags dependency.
2483         (*bmi2_rorx<mode>3_1): New insn pattern.
2484         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
2485         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
2486         (*rotatert<mode>3_1 splitter): Ditto.
2487         (*bmi2_rorxsi3_1_zext): New insn pattern.
2488         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
2489         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
2490         (*rotatertsi3_1_zext splitter): Ditto.
2491
2492 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2493
2494         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
2495         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
2496         (ix86_handle_option): Handle OPT_mbmi2 case.
2497         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
2498         (x86_64-*-*): Likewise.
2499         * config/i386/bmi2intrin.h: New file.
2500         * config/i386/cpuid.h (bit_BMI2): New.
2501         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2502         BMI2 feature.
2503         * config/i386/i386-c.c (ix86_target_macros_internal):
2504         Conditionally define __BMI2__.
2505         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
2506         Handle BMI2 option.
2507         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
2508         (print_reg): New code.
2509         (ix86_print_operand): Likewise.
2510         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2511         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2512         IX86_BUILTIN_PEXT64.
2513         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2514         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2515         IX86_BUILTIN_PEXT64.
2516         * config/i386/i386.h (TARGET_BMI2): New.
2517         * config/i386/i386.md (UNSPEC_PDEP): New.
2518         (UNSPEC_PEXT): Likewise.
2519         (*bmi2_bzhi_<mode>3): Likewise.
2520         (*bmi2_pdep_<mode>3): Likewise.
2521         (*bmi2_pext_<mode>3): Likewise.
2522         * config/i386/i386.opt (mbmi2): New.
2523         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
2524         is defined.
2525         * doc/extend.texi: Document BMI2 built-in functions.
2526         * doc/invoke.texi: Document -mbmi2.
2527
2528 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
2529
2530         PR middle-end/50161
2531         * simplify-rtx.c (simplify_const_unary_operation): If
2532         op is CONST_INT, don't look at op_mode, but use instead mode.
2533         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
2534         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
2535         operation and TRUNCATE/ZERO_EXTEND if needed.
2536         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
2537         Document that operand mode must be same as operation mode,
2538         or VOIDmode.
2539         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
2540         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
2541         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
2542         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
2543         use the mode of operand for the operation and add truncate
2544         or zero_extend around if needed.
2545         * config/c6x/c6x.md (ctzdi2): Likewise.
2546         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
2547
2548 2011-08-12  Michael Matz  <matz@suse.de>
2549
2550         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
2551         (gimple_expand_cfg): Merge alignment info for coalesced pointer
2552         SSA names.
2553
2554 2011-08-23  Richard Guenther  <rguenther@suse.de>
2555
2556         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
2557         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
2558         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
2559         from ...
2560         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
2561         (mem_refs_may_alias_p): Adjust.
2562         * tree-data-ref.h (dr_may_alias_p): Adjust.
2563         * tree-data-ref.c: Include tree-affine.h.
2564         (dr_analyze_indices): Do nothing for the non-loop case.
2565         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
2566         more cases in the non-loop case.
2567         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
2568         calls to dr_may_alias_p.
2569         (write_alias_graph_to_ascii_ecc): Likewise.
2570         (write_alias_graph_to_ascii_dot): Likewise.
2571         (build_alias_set_optimal_p): Likewise.
2572
2573 2011-08-23  Richard Guenther  <rguenther@suse.de>
2574
2575         PR tree-optimization/50162
2576         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
2577
2578 2011-08-23  Richard Guenther  <rguenther@suse.de>
2579
2580         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
2581         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
2582         (create_data_ref): Also dump access functions for the created data-ref.
2583
2584 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
2585             Kirill Yukhin  <kirill.yukhin@intel.com>
2586
2587         PR target/50155
2588         * config/i386/sse.md (VI_AVX2): New.
2589         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
2590         (*<plusminus_insn><mode>3): Ditto.
2591         (<sse2_avx2>_andnot<mode>3): Ditto.
2592         (*andnot<mode>3): Fix order of cond operands.
2593         Add asserts for correct TARGET_xxx.
2594         (*<any_logic:code><mode>3): Ditto.
2595
2596 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
2597
2598         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
2599         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
2600         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
2601         regclass argument type to reg_class_t. Change 'max' and 'v' vars
2602         and return types to unsigned char. Use reg_class_contents instead
2603         of class_contents.
2604         (TARGET_CLASS_MAX_NREGS): Define.
2605
2606 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
2607
2608         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
2609         to make computed_jump_p return true.
2610
2611 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2612
2613         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
2614         (PICFLAG_FOR_TARGET): Substitute.
2615         * aclocal.m4: Regenerate.
2616         * configure: Regenerate.
2617
2618 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
2619
2620         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
2621         after reading in the pch.
2622
2623 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2624
2625         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
2626         * configure: Regenerated.
2627
2628 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
2629
2630         PR tree-optimization/50133
2631         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
2632         from stmt instead of some statement around gsi.
2633
2634         PR middle-end/50141
2635         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
2636         innerdecl is a VAR_DECL.
2637
2638 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2639
2640         * config/i386/avx2intrin.h: New file.
2641         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
2642         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
2643         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
2644         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
2645         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
2646         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
2647         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
2648         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
2649         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
2650         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
2651         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
2652         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
2653         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
2654         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
2655         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
2656         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
2657         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
2658         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
2659         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
2660         VOID_FTYPE_PV8SI_V8SI_V8SI,
2661         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
2662         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
2663         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
2664         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
2665         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
2666         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
2667         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
2668         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
2669         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2670         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2671         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2672         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2673         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2674         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2675         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2676         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2677         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2678         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2679         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2680         V4DI_FTYPE_V4DI_INT_CONVERT,
2681         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2682         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2683         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2684         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2685         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2686         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2687         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2688         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2689         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2690         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2691         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2692         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2693         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2694         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2695         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2696         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2697         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2698         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2699         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2700         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2701         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2702         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2703         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2704         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2705         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2706         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2707         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2708         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2709         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2710         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2711         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2712         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2713         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2714         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2715         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2716         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2717         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2718         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2719         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2720         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2721         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2722         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2723         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2724         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2725         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2726         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2727         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2728         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2729         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2730         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2731         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2732         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2733         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2734         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2735         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2736         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2737         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2738         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2739         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2740         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2741         IX86_BUILTIN_VBROADCASTSS_PS256,
2742         IX86_BUILTIN_VBROADCASTSD_PD256,
2743         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2744         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2745         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2746         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2747         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2748         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2749         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2750         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2751         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2752         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2753         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2754         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2755         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2756         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2757         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2758         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2759         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2760         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2761         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2762         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2763         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2764         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2765         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2766         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2767         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2768         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2769         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2770         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2771         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2772         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2773         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2774         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
2775         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2776         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2777         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2778         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2779         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2780         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2781         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2782         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2783         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2784         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2785         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2786         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2787         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2788         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2789         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2790         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2791         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2792         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2793         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2794         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2795         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2796         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2797         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2798         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2799         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2800         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2801         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2802         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2803         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2804         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2805         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2806         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2807         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2808         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2809         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2810         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2811         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2812         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2813         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2814         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2815         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2816         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2817         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2818         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2819         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2820         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2821         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2822         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2823         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2824         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2825         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2826         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2827         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2828         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2829         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2830         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2831         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2832         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2833         IX86_BUILTIN_VBROADCASTSD_PD256,
2834         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2835         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2836         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2837         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2838         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2839         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2840         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2841         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2842         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2843         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2844         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2845         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2846         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2847         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2848         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2849         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2850         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2851         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2852         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2853         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2854         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2855         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2856         IX86_BUILTIN_GATHERDIV8SI.
2857         (ix86_preferred_simd_mode): Support AVX2 modes.
2858         (ix86_expand_args_builtin): Support AVX2 builtins.
2859         (ix86_expand_special_args_builtin): Likewise.
2860         (ix86_expand_builtin): Likewise.
2861         * config/i386/i386.md (UNSPEC_VPERMSI): New.
2862         (UNSPEC_VPERMDF): Likewise.
2863         (UNSPEC_VPERMSF): Likewise.
2864         (UNSPEC_VPERMDI): Likewise.
2865         (UNSPEC_VPERMTI): Likewise.
2866         (UNSPEC_GATHER): Likewise.
2867         (ssemodesuffix): Extend.
2868         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2869         is defined.
2870         * config/i386/predicates.md (const1248_operand): New.
2871         * config/i386/sse.md (VI1_AVX2): New mode iterator.
2872         (VI2_AVX2): Likewise.
2873         (VI4_AVX2): Likewise.
2874         (VI8_AVX2): Likewise.
2875         (VIMAX_AVX2): Likewise.
2876         (SSESCALARMODE): Likewise.
2877         (VI12_AVX2): Likewise.
2878         (VI24_AVX2): Likewise.
2879         (VI124_AVX2): Likewise.
2880         (VI248_AVX2): Likewise.
2881         (VI48_AVX2): Likewise.
2882         (VI4SD_AVX2): Likewise.
2883         (V48_AVX2): Likewise.
2884         (AVX256MODE2P): Likewise.
2885         (AVXMODE48P_DI): Likewise.
2886         (sse2_avx2): New mode attribute.
2887         (ssse3_avx2): Likewise.
2888         (sse4_1_avx2): Likewise.
2889         (avx_avx2): Likewise.
2890         (ssebytemode): Likewise.
2891         (AVXTOSSEMODE): Likewise.
2892         (AVXMODE48P_DI): Likewise.
2893         (gthrfirstp): Likewise.
2894         (gthrlastp): Likewise.
2895         (lshift): New code_iterator
2896         (lshift): New code attribute.
2897         (lshift): Likewise.
2898         (ssescalarmodesuffix): Update.
2899         (sseunpackmode): Likewise.
2900         (ssepackmode): Likewise.
2901         (avx2_vec_dupv4sf): New insn pattern.
2902         (avx2_vec_dupv8sf): Likewise.
2903         (avx2_interleave_highv4di): Likewise.
2904         (avx2_interleave_lowv4di): Likewise.
2905         (avx2_umulv4siv4di3): Likewise
2906         (*avx2_umulv4siv4di3): Likewise
2907         (avx2_pmaddwd): Likewise.
2908         (*avx2_pmaddwd): Likewise.
2909         (avx2_lshrqv4di3): Likewise.
2910         (avx2_lshlqv4di3): Likewise.
2911         (avx2_lshl<mode>3): Likewise.
2912         (avx2_<umaxmin:code><mode>3): Likewise.
2913         (*avx2_<umaxmin:code><mode>3): Likewise.
2914         (avx2_<smaxmin:code><mode>3): Likewise.
2915         (*avx2_<smaxmin:code><mode>3): Likewise.
2916         (avx2_eq<mode>3): Likewise.
2917         (*avx2_eq<mode>3): Likewise.
2918         (avx2_gt<mode>3): Likewise.
2919         (avx2_interleave_highv32qi): New.
2920         (avx2_interleave_lowv32qi): Likewise.
2921         (avx2_interleave_highv16hi): Likewise.
2922         (avx2_interleave_lowv16hi): Likewise.
2923         (avx2_interleave_highv8si): Likewise.
2924         (avx2_interleave_lowv8si): Likewise.
2925         (avx2_pshufd): Likewise.
2926         (avx2_pshufd_1): Likewise.
2927         (avx2_pshuflwv3): Likewise.
2928         (avx2_pshuflw_1): Likewise.
2929         (avx2_pshufhwv3): Likewise.
2930         (avx2_pshufhw_1): Likewise.
2931         (avx2_uavgv32qi3): Likewise.
2932         (*avx2_uavgv32qi3): Likewise.
2933         (avx2_uavgv16hi3): Likewise.
2934         (*avx2_uavgv16hi3): Likewise.
2935         (avx2_pmovmskb): Likewise.
2936         (avx2_phaddwv16hi3): Likewise.
2937         (avx2_phadddv8si3): Likewise.
2938         (avx2_phaddswv16hi3): Likewise.
2939         (avx2_phsubwv16hi3): Likewise.
2940         (avx2_phsubdv8si3): Likewise.
2941         (avx2_phsubswv16hi3): Likewise.
2942         (avx2_pmaddubsw256): Likewise.
2943         (avx2_umulhrswv16hi3): Likewise.
2944         (*avx2_umulhrswv16hi3): Likewise.
2945         (avx2_packusdw): Likewise.
2946         (avx2_pblendd<mode>): Likewise.
2947         (avx2_<code>v16qiv16hi2): Likewise.
2948         (avx2_<code>v8qiv8si2): Likewise.
2949         (avx2_<code>v8hiv8si2): Likewise.
2950         (avx2_<code>v4qiv4di2): Likewise.
2951         (avx2_<code>v4hiv4di2): Likewise.
2952         (avx2_<code>v4siv4di2): Likewise.
2953         (avx2_pbroadcast<mode>): Likewise.
2954         (avx2_permvarv8si): Likewise.
2955         (avx2_permv4df): Likewise.
2956         (avx2_permvarv8sf): Likewise.
2957         (avx2_permv4di): Likewise.
2958         (avx2_permv2ti): Likewise.
2959         (avx2_vec_dupv4df): Likewise.
2960         (avx2_vbroadcasti128_<mode>): Likewise.
2961         (avx2_vec_set_lo_v4di): Likewise.
2962         (avx2_vec_set_hi_v4di): Likewise.
2963         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2964         (avx2_extracti128): Likewise.
2965         (avx2_inserti128): Likewise.
2966         (avx2_ashrvv8si): Likewise.
2967         (avx2_ashrvv4si): Likewise.
2968         (avx2_<lshift>vv8si): Likewise.
2969         (avx2_<lshift>v<mode>): Likewise.
2970         (avx2_<lshift>vv2di): Likewise.
2971         (avx2_gathersi<mode>): Likewise.
2972         (*avx2_gathersi<mode>): Likewise.
2973         (avx2_gatherdi<mode>): Likewise.
2974         (*avx2_gatherdi<mode>): Likewise.
2975         (avx2_gatherdi<mode>256): Likewise.
2976         (*avx2_gatherdi<mode>256): Likewise.
2977         (<plusminus_insn><mode>3): Use VI mode iterator.
2978         (*<plusminus_insn><mode>3): Use VI mode iterator.
2979         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2980         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2981         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2982         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
2983         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
2984         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
2985         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2986         Use VI2_AVX2 mode iterator.
2987         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2988         Use VI2_AVX2 mode iterator.
2989         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
2990         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
2991         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2992         Use VI4_AVX2 mode iterator.
2993         (ashr<mode>3): Use VI24_AVX2 mode iterator.
2994         (lshr<mode>3): Use VI248_AVX2 mode iterator.
2995         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2996         Use VIMAX_AVX2 mode iterator.
2997         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2998         Use VI mode iterator.
2999         (*andnot<mode>3): Update for AVX2.
3000         (*<any_logic:code><mode>3): Likewise.
3001         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3002         Use VI1_AVX mode iterator.
3003         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
3004         Use VI2_AVX mode iterator.
3005         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3006         Use VI1_AVX mode iterator.
3007         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3008         Use VI8_AVX2 mode iterator.
3009         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3010         Use VI1_AVX2 mode iterator.
3011         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3012         Use VI124_AVX2 mode iterator.
3013         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3014         Use SSESCALARMODE mode iterator.
3015         (abs<mode>2): Use VI124_AVX2 mode iterator.
3016         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3017         Use VI8_AVX2 mode iterator.
3018         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3019         Use VI1_AVX2 mode iterator.
3020         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3021         Use VI1_AVX2 mode iterator.
3022         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3023         Use VI2_AVX2 mode iterator.
3024         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3025         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3026         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3027         avx_maskstore<ssemodesuffix><avxsizesuffix>.
3028         Use V48_AVX2 mode iterator.
3029         * doc/extend.texi: Document AVX2 built-in functions.
3030         * doc/invoke.texi: Document -mavx2.
3031
3032 2011-08-22  Matthias Klose <doko@debian.org>
3033
3034         Revert:
3035         2011-07-11  Arthur Loiret  <aloiret@debian.org>
3036                     Matthias Klose <doko@debian.org>
3037         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3038         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3039         convention.
3040         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3041
3042 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
3043
3044         PR bootstrap/50146
3045         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3046         to #ifndef HONOR_REG_ALLOC_ORDER block.
3047
3048 2011-08-21  Richard Henderson  <rth@redhat.com>
3049
3050         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3051         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3052         * resource.c (next_insn_no_annul): Likewise.
3053         (mark_set_resources): Likewise.
3054         * reorg.c (delete_from_delay_slot): Likewise.
3055         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3056         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3057
3058 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
3059
3060         * config/i386/i386.md (any_div): Remove.
3061         (sgnprefix): Update for removal.
3062         (u): Ditto.
3063
3064 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
3065
3066         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3067         for ira_reg_class_max_nregs.  Increase pressure by 1.
3068         (mark_pseudo_regno_subword_dead): Use allocno class
3069         for ira_reg_class_max_nregs.
3070
3071 2011-08-20  Richard Henderson  <rth@redhat.com>
3072
3073         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3074         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3075         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3076         config/c6x/ltf.c: Adjust include path for soft-fp.
3077
3078 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3079
3080         PR other/46770
3081         * config.gcc (tm_file): Add initfini-array.h if
3082         .init_arrary/.fini_array are supported.
3083
3084         * crtstuff.c: Don't generate .ctors nor .dtors sections if
3085         USE_INITFINI_ARRAY is defined.
3086
3087         * output.h (default_elf_init_array_asm_out_constructor): New.
3088         (default_elf_fini_array_asm_out_destructor): Likewise.
3089         * varasm.c (elf_init_array_section): Likewise.
3090         (elf_fini_array_section): Likewise.
3091         (get_elf_initfini_array_priority_section): Likewise.
3092         (default_elf_init_array_asm_out_constructor): Likewise.
3093         (default_elf_fini_array_asm_out_destructor): Likewise.
3094
3095         * config/initfini-array.h: New.
3096
3097 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3098
3099         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3100         OK for ST_REGS and FP_REGS before taking those classes into account.
3101
3102 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3103
3104         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3105         before checking for annulled branches.
3106
3107 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/i386.c (ix86_binary_operator_ok): Use
3110         satisfies_constraint_L.
3111
3112 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3113             Michael Matz  <matz@suse.de>
3114
3115         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3116         trunc (a + copysign (nextafter (0.5, 0.0), a)).
3117
3118 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
3119
3120         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3121         * doc/tm.texi: Regenerate.
3122         * targhooks.c (default_preferred_output_reload_class): Don't use
3123         PREFERRED_OUTPUT_RELOAD_CLASS macro.
3124         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3125
3126 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
3127
3128         PR tree-optimization/48739
3129         * tree-ssa.c: Include cfgloop.h.
3130         (execute_update_addresses_taken): When updating ssa, if in loop closed
3131         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3132         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3133
3134 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
3135
3136         PR rtl-optimization/49936
3137         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3138         for calculation of max register move costs.
3139
3140 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3141
3142         * c-parser.c (c_parser_postfix_expression): Convert operands of
3143         __builtin_complex to their semantic types.
3144
3145 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3146
3147         PR middle-end/49721
3148         * explow.c (convert_memory_address_addr_space): Also permute the
3149         conversion and addition of constant for zero-extend.
3150
3151 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3152
3153         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3154         * doc/extend.texi (__builtin_complex): Document.
3155
3156 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3157
3158         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3159         beyond conversions.
3160         (convert_mult_to_widen): Convert constant inputs to the right type.
3161         (convert_plusminus_to_widen): Don't automatically reject inputs that
3162         are not an SSA_NAME.
3163         Convert constant inputs to the right type.
3164
3165 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3166
3167         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3168         to the correct type.
3169
3170 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3171
3172         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3173         unsigned inputs of different modes.
3174         (convert_plusminus_to_widen): Likewise.
3175
3176 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3177
3178         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3179         'type'.
3180         Use 'type' from caller, not inferred from 'rhs'.
3181         Don't reject non-conversion statements. Do return lhs in this case.
3182         (is_widening_mult_p): Add new argument 'type'.
3183         Use 'type' from caller, not inferred from 'stmt'.
3184         Pass type to is_widening_mult_rhs_p.
3185         (convert_mult_to_widen): Pass type to is_widening_mult_p.
3186         (convert_plusminus_to_widen): Likewise.
3187
3188 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3189
3190         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3191         Ensure the the larger type is the first operand.
3192
3193 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3194
3195         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3196         unsupported unsigned multiplies to signed.
3197         (convert_plusminus_to_widen): Likewise.
3198
3199 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3200
3201         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3202         conversion statement separating multiply-and-accumulate.
3203
3204 2011-08-19  Richard Guenther  <rguenther@suse.de>
3205
3206         PR tree-optimization/50067
3207         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3208         offset only if we accounted for it.
3209
3210 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3211
3212         * config/arm/arm.md (maddhidi4): Remove '*' from name.
3213         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3214         * optabs.c (find_widening_optab_handler_and_mode): New function.
3215         (expand_widen_pattern_expr): Use find_widening_optab_handler.
3216         (expand_binop_directly): Likewise.
3217         (expand_binop): Likewise.
3218         * optabs.h (find_widening_optab_handler): New macro define.
3219         (find_widening_optab_handler_and_mode): New prototype.
3220         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3221         type precision rules.
3222         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3223         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3224         (is_widening_mult_rhs_p): Allow widening by more than one mode.
3225         Explicitly disallow mis-matched input types.
3226         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3227         input types to fit the new handler.
3228         (convert_plusminus_to_widen): Likewise.
3229
3230 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3231
3232         * expr.c (expand_expr_real_2): Use widening_optab_handler.
3233         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3234         (gen_insn): $N now means $a must be wider than $b, not consecutive.
3235         * optabs.c (widened_mode): New function.
3236         (expand_widen_pattern_expr): Use widening_optab_handler.
3237         (expand_binop_directly): Likewise.
3238         (expand_binop): Likewise.
3239         * optabs.h (widening_optab_handlers): New struct.
3240         (optab_d): New member, 'widening'.
3241         (widening_optab_handler): New function.
3242         (set_widening_optab_handler): New function.
3243         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3244         widening_optab_handler.
3245         (convert_plusminus_to_widen): Likewise.
3246
3247 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3248
3249         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3250         pedantic.
3251         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3252         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3253
3254 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3255
3256         * opth-gen.awk: Do not declare target save/restore structures and
3257         functions if IN_RTS defined.
3258
3259 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3260
3261         PR target/49437
3262         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3263         when stack was realigned in interrupt handler prologue.
3264
3265 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3266
3267         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3268         (quals_from_declspecs): Assert _Noreturn not present.
3269         (grokdeclarator): Handle _Noreturn.
3270         (build_null_declspecs): Initialize noreturn_p.
3271         (declspecs_add_scspec): Handle RID_NORETURN.
3272         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3273         (c_parser_attributes): Handle RID_NORETURN.
3274         * c-tree.h (struct c_declspecs): Add noreturn_p.
3275         * ginclude/stdnoreturn.h: New.
3276         * Makefile.in (USER_H): Add stdnoreturn.h.
3277
3278 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3279
3280         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3281         (OPTION_MASK_ISA_AVX_UNSET): Update.
3282         (OPTION_MASK_ISA_AVX2_UNSET): New.
3283         (ix86_handle_option): Handle OPT_mavx2 case.
3284         * config/i386/cpuid.h (bit_AVX2): New.
3285         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3286         AVX2 feature.
3287         * config/i386/i386-c.c (ix86_target_macros_internal):
3288         Conditionally define __AVX2__.
3289         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3290         Define "core-avx2" processor alias.  Handle avx2 option.
3291         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3292         * config/i386/i386.h (TARGET_AVX2): New.
3293         * config/i386/i386.opt (mavx2): New.
3294         * doc/invoke.texi: Document -mavx2.
3295
3296 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
3297
3298         PR rtl-optimization/49890
3299         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3300         subclasses of class which is superset of a pressure class.
3301
3302 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3303             Igor Zamyatin <igor.zamyatin@intel.com>
3304
3305         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3306         with HOST_WIDE_INT for isa_flag.
3307         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3308         isa variables.
3309
3310         * config/i386/i386.c (ix86_target_string): Replace int with
3311         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
3312         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3313         (pta_flags): Removed.
3314         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3315         (pta): Use HOST_WIDE_INT on flags.
3316         (builtin_isa): Use HOST_WIDE_INT on isa.
3317         (ix86_add_new_builtins): Likewise.
3318         (def_builtin): Use HOST_WIDE_INT on mask.
3319         (def_builtin_const): Likewise.
3320         (builtin_description): Likewise.
3321
3322         * config/i386/i386.opt (ix86_isa_flags): Replace int with
3323         HOST_WIDE_INT.
3324         (ix86_isa_flags_explicit): Likewise.
3325         (x_ix86_isa_flags_explicit): Likewise.
3326
3327 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
3328
3329         PR rtl-optimization/50107
3330         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3331         (ira_hard_reg_in_set_p): New.
3332
3333         * ira-color.c (calculate_saved_nregs): New.
3334         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
3335         hard regs.
3336         (allocno_reload_assign, fast_allocation): Use
3337         ira_hard_reg_set_intersection_p instead of
3338         ira_hard_reg_not_in_set_p.
3339
3340         * ira.c (setup_reg_renumber): Use
3341         ira_hard_reg_set_intersection_p instead of
3342         ira_hard_reg_not_in_set_p.
3343         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
3344         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
3345
3346         * ira-costs.c (ira_tune_allocno_costs): Use
3347         ira_hard_reg_set_intersection_p instead of
3348         ira_hard_reg_not_in_set_p.
3349
3350 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3351             Igor Zamyatin <igor.zamyatin@intel.com>
3352
3353         * hwint.h (HOST_WIDE_INT_1): New.
3354
3355         * opt-functions.awk (switch_bit_fields): Initialize the
3356         host_wide_int field.
3357         (host_wide_int_var_name): New.
3358         (var_type_struct): Check and return HOST_WIDE_INT.
3359
3360         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
3361
3362         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
3363
3364         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
3365         check masks for HOST_WIDE_INT.
3366
3367         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
3368         (option_enabled): Likewise.
3369         (get_option_state): Likewise.
3370
3371         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
3372         to HOST_WIDE_INT.
3373
3374 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3375             Marc Glisse  <marc.glisse@normalesup.org>
3376
3377         PR libstdc++-v3/1773
3378         * target.def (decl_mangling_context): New C++ hook.
3379         * doc/tm.texi: Regenerate.
3380         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
3381         * config/sol2-protos.h: Group by source file.
3382         (solaris_cxx_decl_mangling_context): Declare.
3383         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
3384         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
3385         Use $<.
3386         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
3387         Add sol2-stubs.o to extra_objs.
3388
3389 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
3390
3391         PR target/50009
3392         * stor-layout.c (update_alignment_for_field): Don't ICE on
3393         packed flexible array members if ms_bitfield_layout_p.
3394
3395         PR target/50092
3396         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
3397         on the result before returning it.
3398
3399         PR debug/50017
3400         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
3401         is a debug stmt, use location of the first non-debug stmt after it.
3402
3403 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3404
3405         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
3406         (arm_size_rtx_costs): Likewise.
3407
3408 2011-08-18  Richard Guenther  <rguenther@suse.de>
3409
3410         * tree.h (tree_int_cst_msb): Remove.
3411         * tree.c (tree_int_cst_msb): Likewise.
3412         (tree_int_cst_sign_bit): Move from ...
3413         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
3414
3415 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3416
3417         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
3418         * doc/tm.texi: Regenerate.
3419         * target.def (rtx_costs): Add an opno parameter.
3420         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3421         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3422         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3423         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3424         * cse.c (COST_IN): Add an opno parameter.
3425         (notreg_cost): Likewise.  Update call to rtx_cost.
3426         (COST, fold_rtx): Update accordingly.
3427         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
3428         * expmed.c (emit_store_flag): Likewise.
3429         * optabs.c (avoid_expensive_constant): Add an opno parameter.
3430         Update call to rtx_cost.
3431         (expand_binop_directly, expand_binop): Likewise.
3432         (expand_twoval_binop, prepare_cmp_insn): Likewise.
3433         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
3434         (set_src_cost, get_full_set_src_cost): Update accordingly.
3435         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
3436         to target hook.
3437         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
3438         (default_adress_cost): Update calls to rtx_cost.
3439
3440         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
3441         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
3442         (arm_rtx_costs): Add an opno parameter.
3443         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
3444         adjust any recursive rtx-cost calls.
3445         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
3446         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3447         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
3448         * config/cris/cris.c (cris_rtx_costs): Likewise.
3449         * config/frv/frv.c (frv_rtx_costs): Likewise.
3450         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
3451         * config/i386/i386.c (ix86_rtx_costs): Likewise.
3452         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
3453         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
3454         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
3455         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
3456         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
3457         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
3458         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
3459         * config/mep/mep.c (mep_rtx_cost): Likewise.
3460         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
3461         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
3462         (mips_zero_extend_cost): Add an opno parameter.
3463         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
3464         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
3465         to rtx_cost.
3466         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
3467         rtx-cost calls.
3468         * config/pa/pa.c (hppa_rtx_costs): Likewise.
3469         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
3470         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
3471         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
3472         (rs6000_debug_rtx_costs): Likewise.
3473         * config/s390/s390.c (s390_rtx_costs): Likewise.
3474         * config/score/score-protos.h (score_rtx_costs): Likewise.
3475         * config/score/score.c (score_rtx_costs): Likewise.
3476         * config/sh/sh.c (andcosts): Update call to rtx_cost.
3477         (sh_rtx_costs): Add an opno parameter.
3478         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
3479         * config/spu/spu.c (spu_rtx_costs): Likewise.
3480         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
3481         * config/v850/v850.c (v850_rtx_costs): Likewise.
3482         * config/vax/vax.c (vax_rtx_costs): Likewise.
3483         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
3484
3485 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3486
3487         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
3488         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
3489         rtx_cost.
3490         * calls.c (precompute_register_parameters): Likewise.
3491         * combine.c (expand_compound_operation, make_extraction): Likewise.
3492         (force_to_mode, distribute_and_simplify_rtx): Likewise.
3493         * dse.c (find_shift_sequence): Likewise.
3494         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
3495         * expr.c (compress_float_constant): Likewise.
3496         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
3497         * gcse.c (want_to_gcse_p): Likewise.
3498         * ifcvt.c (noce_try_sign_mask): Likewise.
3499         * loop-doloop.c (doloop_optimize): Likewise.
3500         * loop-invariant.c (create_new_invariant): Likewise.
3501         * optabs.c (avoid_expensive_constant): Likewise.
3502         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
3503         (try_replace_in_use, reload_cse_move2add): Likewise.
3504         * reload1.c (calculate_elim_costs_all_insns): Likewise.
3505         (note_reg_elim_costly): Likewise.
3506         * rtlanal.c (insn_rtx_cost): Likewise.
3507         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3508         * stmt.c (lshift_cheap_p): Likewise.
3509         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
3510         * config/avr/avr.c (final_prescan_insn): Likewise.
3511         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3512         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
3513
3514 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3515
3516         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
3517         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
3518         * cfgloopanal.c (seq_cost): Likewise.
3519         * loop-invariant.c (create_new_invariant): Likewise.
3520         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
3521         (reload_cse_move2add): Use get_full_set_rtx_cost.
3522
3523 2011-08-18  Richard Guenther  <rguenther@suse.de>
3524
3525         * expr.c (get_inner_reference): Fix typo in last change.
3526
3527 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3528             Joseph Myers  <joseph@codesourcery.com>
3529
3530         PR tree-optimization/49963
3531         * hwint.c (absu_hwi): Define.
3532         * hwint.h (absu_hwi): Declare.
3533         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
3534         of abs_hwi.
3535         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3536         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3537
3538 2011-08-18  Richard Guenther  <rguenther@suse.de>
3539
3540         * expr.c (get_inner_reference): Sign-extend the constant
3541         twos-complement offset before doing arbitrary precision
3542         arithmetic on it.
3543         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
3544         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
3545         to get_constraint_for_ptr_offset.
3546
3547 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3548
3549         PR target/50068
3550         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
3551
3552 2011-08-17  Richard Guenther  <rguenther@suse.de>
3553
3554         * tree.h (convert_to_ptrofftype_loc): New function.
3555         (convert_to_ptrofftype): Define.
3556         * builtins.c (expand_builtin_bzero): Use size_type_node.
3557         (fold_builtin_bzero): Likewise.
3558         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
3559         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
3560         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
3561         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
3562         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
3563         * fold-const.c (build_range_check): Negate using the original type.
3564         (fold_unary_loc): Use fold_build_pointer_plus_loc.
3565         * gimple-fold.c (gimple_adjust_this_by_delta): Use
3566         convert_to_ptrofftype.
3567         * gimplify.c (gimplify_self_mod_expr): Likewise.
3568         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
3569         (graphite_create_new_loop_guard): Likewise.
3570         * graphite-sese-to-poly.c (my_long_long): Remove.
3571         (scop_ivs_can_be_represented): Adjust.
3572         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
3573         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
3574         * tree-loop-distribution.c (build_size_arg_loc): Use
3575         size_type_node.
3576         (generate_memset_zero): Simplify.
3577         * tree-mudflap.c: Use fold_convert, not convert.
3578         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
3579         its own type.
3580         (determine_offset): Likewise for DR_STEP.
3581         (valid_initializer_p): Likewise.
3582         * tree-profile.c (prepare_instrumented_value): Convert the pointer
3583         to an integer type of same size.
3584         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
3585         to sizetype without need.
3586         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3587         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
3588         * tree-ssa-loop-manip.c (create_iv): Likewise.
3589         (determine_exit_conditions): Adjust comment.
3590         * tree-ssa-pre.c (create_expression_by_pieces): Use
3591         convert_to_ptrofftype.
3592         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
3593         * varasm.c (array_size_for_constructor): Compute using double_ints.
3594
3595 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3596
3597         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
3598         when generating an integer result where possible.  Short-cut
3599         comparison against 0 also for QImode.
3600
3601 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3602
3603         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
3604         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
3605         prototype.
3606         * config/spu/spu.c (spu_legitimize_reload_address): New function.
3607         (spu_legitimate_address_p): Do not check displacement if the base
3608         is an eliminable stack register.
3609
3610 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
3611
3612         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
3613         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3614         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
3615         m32c_preferred_output_reload_class): Remove.
3616         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
3617         Change rclass argument and return types to reg_class_t. Use
3618         reg_class_subset_p instead of class_sizes.
3619         (m32c_preferred_output_reload_class): Make static. Change rclass
3620         argument and return types to reg_class_t.
3621         (TARGET_PREFERRED_RELOAD_CLASS,
3622         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3623
3624 2011-08-16  Kai Tietz  <ktietz@redhat.com>
3625
3626         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
3627
3628 2011-08-16  Richard GUenther  <rguenther@suse.de>
3629
3630         PR tree-optimization/50082
3631         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
3632         warnings here, instead of ...
3633         (ssa_forward_propagate_and_combine): ... here.
3634         (forward_propagate_into_comparison_1): Adjust.
3635         (forward_propagate_into_comparison): Likewise.
3636         (forward_propagate_into_gimple_cond): Likewise.
3637         (forward_propagate_into_cond): Likewise.
3638
3639 2011-08-16  Andreas Schwab  <schwab@redhat.com>
3640
3641         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
3642         instead of ggc_alloc_zone_vec_rtvec_def.
3643
3644 2011-08-16  Richard Guenther  <rguenther@suse.de>
3645
3646         * tree.h (ptrofftype_p): New helper function.
3647         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
3648         offset verification.
3649         (verify_gimple_assign_binary): Likewise.
3650         * tree.c (build2_stat): Likewise.
3651         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
3652         (reset_evolution_in_loop): Likewise.
3653         * tree-chrec.h (build_polynomial_chrec): Likewise.
3654
3655 2011-08-16  Liang Wang  <lwang1@marvell.com>
3656
3657         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
3658         ggc_alloc_zone_vec_rtvec_def.
3659
3660 2011-08-16  Richard Guenther  <rguenther@suse.de>
3661
3662         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
3663         helper factored out from ...
3664         (extract_range_from_binary_expr_1): ... here.  Re-structure
3665         to not glob handling too different tree codes.
3666
3667 2011-08-15  Richard Henderson  <rth@redhat.com>
3668
3669         PR middle-end/50006
3670         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3671         setting out to include allocate_stack named pattern as well.
3672         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3673         * stmt.c (expand_stack_restore): Likewise.
3674
3675 2011-08-15  Richard Guenther  <rguenther@suse.de>
3676
3677         PR middle-end/50082
3678         * fold-const.c (maybe_canonicalize_comparison_1): Properly
3679         convert the modified operand to the other operand type.
3680         (fold_comparison): Call maybe_canonicalize_comparison_1 with
3681         useless conversions stripped from comparison operands.
3682
3683 2011-08-15  Richard Guenther  <rguenther@suse.de>
3684
3685         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3686         (extract_range_from_unary_expr_1): Restructure.
3687
3688 2011-08-15  Richard Guenther  <rguenther@suse.de>
3689
3690         PR tree-optimization/50058
3691         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3692         copy matching.
3693
3694 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3695
3696         PR target/50022
3697         * config/arm/arm.c (output_move_double): Add 2 parameters
3698         to count the number of insns emitted and whether to emit or not.
3699         Use the flag to decide when to emit and count number of instructions
3700         that will be emitted.
3701         Handle case where output_move_double might be called for calculating
3702         lengths with an invalid constant.
3703         (arm_count_output_move_double_insns): Define.
3704         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3705         (output_move_double): Adjust prototype.
3706         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3707         output_move_double.
3708         ("*movdi_vfp_cortexa8"): Likewise and add attribute
3709         for ce_count.
3710         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3711         ("*movdf_soft_insn"): Likewise.
3712         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3713         ("*cirrus_thumb2_movdi"): Likewise.
3714         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3715         ("*cirrus_movdf_hard_insn"): Likewise.
3716         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3717         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3718         ("mov<mode>_internal VMMX"): Likewise.
3719         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3720
3721 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
3722
3723         * config/i386/i386.c (ix86_expand_round_sse4): New function.
3724         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3725         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3726         for TARGET_ROUND.
3727
3728         (rint<mode>2): Simplify TARGET_ROUND check.
3729         (floor<mode>2): Ditto.
3730         (ceil<mode>2): Ditto.
3731         (btrunc<mode>2): Ditto.
3732
3733 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
3734
3735         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3736         as mmix_preferred_output_reload_class.
3737
3738 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
3739
3740         * PR target/49903
3741         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3742         (branch_unspec): New insn.
3743         (branch): Beauty farm.
3744         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
3745         to be IF_THEN_ELSE.
3746         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3747         New static functions.
3748         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
3749         Use CONST_INT_P.  Beauty.
3750
3751 2011-08-12  Richard Henderson  <rth@redhat.com>
3752
3753         PR rtl-opt/49994
3754         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3755         * sched-deps.c (init_deps): Clear it.
3756         (deps_analyze_insn): Consume it.
3757         (sched_analyze_insn): Fill it.
3758
3759 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3760
3761         PR target/48328
3762         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3763         for tbh instructions.
3764
3765 2011-08-12  Diego Novillo  <dnovillo@google.com>
3766
3767         * data-streamer.h (streamer_write_zero): Rename from output_zero.
3768         (streamer_write_uhwi): Rename from lto_output_uleb128.
3769         (streamer_write_hwi): Rename from output_sleb128.
3770         (streamer_write_string): Rename from lto_output_string.
3771         (streamer_string_index): Rename from lto_string_index.
3772         (streamer_write_string_with_length): Rename from
3773         lto_output_string_with_length.
3774         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3775         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3776         (streamer_read_string): Rename from lto_input_string.
3777         (streamer_read_indexed_string): Rename from input_string_internal.
3778         (streamer_read_uhwi): Rename from lto_input_uleb128.
3779         (streamer_read_hwi): Rename from lto_input_sleb128.
3780         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3781         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3782         (streamer_write_enum): Rename from lto_output_enum.
3783         (streamer_read_enum): Rename from lto_input_enum.
3784         (streamer_write_record_start): Rename from output_record_start.
3785         (streamer_read_record_start): Rename from input_record_start.
3786         (streamer_write_bitpack): Rename from lto_output_bitpack.
3787         (streamer_read_bitpack): Rename from lto_input_bitpack.
3788         (streamer_write_char_stream): Rename from lto_output_1_stream.
3789         (streamer_read_uchar): Rename from lto_input_1_unsigned.
3790         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3791         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3792         (streamer_read_string_cst): Rename from input_string_cst.
3793         (streamer_read_chain): Rename from lto_input_chain.
3794         (streamer_alloc_tree): Rename from lto_materialize_tree.
3795         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3796         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3797         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3798         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3799         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3800         (streamer_write_chain): Rename from lto_output_chain.
3801         (streamer_write_tree_header): Rename from lto_output_tree_header.
3802         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3803         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3804         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3805         (streamer_write_builtin): Rename from lto_output_builtin_tree.
3806         (streamer_check_handled_ts_structures): Rename from
3807         check_handled_ts_structures.
3808         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3809         (streamer_tree_cache_insert_at): Rename from
3810         lto_streamer_cache_insert_at.
3811         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3812         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3813         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3814         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3815         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3816         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3817         (write_identifier): Rename from output_identifier.
3818         (write_ts_common_tree_pointers): Rename from
3819         lto_output_ts_common_tree_pointers.
3820         (write_ts_vector_tree_pointers): Rename from
3821         lto_output_ts_vector_tree_pointers.
3822         (write_ts_complex_tree_pointers): Rename from
3823         lto_output_ts_complex_tree_pointers.
3824         (write_ts_decl_minimal_tree_pointers): Rename from
3825         lto_output_ts_decl_minimal_tree_pointers.
3826         (write_ts_decl_common_tree_pointers): Rename from
3827         lto_output_ts_decl_common_tree_pointers.
3828         (write_ts_decl_non_common_tree_pointers): Rename from
3829         lto_output_ts_decl_non_common_tree_pointers.
3830         (write_ts_decl_with_vis_tree_pointers): Rename from
3831         lto_output_ts_decl_with_vis_tree_pointers.
3832         (write_ts_field_decl_tree_pointers): Rename from
3833         lto_output_ts_field_decl_tree_pointers.
3834         (write_ts_function_decl_tree_pointers): Rename from
3835         lto_output_ts_function_decl_tree_pointers.
3836         (write_ts_type_common_tree_pointers): Rename from
3837         lto_output_ts_type_common_tree_pointers.
3838         (write_ts_type_non_common_tree_pointers): Rename from
3839         lto_output_ts_type_non_common_tree_pointers.
3840         (write_ts_list_tree_pointers): Rename from
3841         lto_output_ts_list_tree_pointers.
3842         (write_ts_vec_tree_pointers): Rename from
3843         lto_output_ts_vec_tree_pointers.
3844         (write_ts_exp_tree_pointers): Rename from
3845         lto_output_ts_exp_tree_pointers.
3846         (write_ts_block_tree_pointers): Rename from
3847         lto_output_ts_block_tree_pointers.
3848         (write_ts_binfo_tree_pointers): Rename from
3849         lto_output_ts_binfo_tree_pointers.
3850         (write_ts_constructor_tree_pointers): Rename from
3851         lto_output_ts_constructor_tree_pointers.
3852         (write_ts_target_option): Rename from lto_output_ts_target_option.
3853         (write_ts_translation_unit_decl_tree_pointers): Rename from
3854         lto_output_ts_translation_unit_decl_tree_pointers.
3855         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3856         Rename from lto_streamer_cache_add_to_node_array.
3857         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3858         (record_common_node): Rename from lto_record_common_node.
3859
3860         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3861         declarations.
3862         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3863         function.
3864         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3865         unused function.
3866         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3867         (ipa-reference.o): Likewise.
3868         * lto-section-out.c: Include data-streamer.h.
3869         * ipa-reference.c: Include data-streamer.h.
3870
3871 2011-08-12  Nick Clifton  <nickc@redhat.com>
3872
3873         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3874         * doc/md.texi (cmpstrn): Note that the comparison stops if both
3875         fetched bytes are zero.
3876         (cmpstr): Likewise.
3877         (cmpmem): Note that the comparison does not stop if both of the
3878         fetched bytes are zero.
3879
3880 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
3881
3882         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3883         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3884         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3885         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3886         to integer_type_node.
3887         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3888         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3889         * builtins.c (expand_builtin_in): Ditto.
3890         (mathfn_built_in_1): Ditto.
3891         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3892         BUILT_IN_IFLOOR.
3893         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3894         BUILT_IN_IROUND.
3895         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3896         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3897         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3898
3899 2011-08-12  Richard Guenther  <rguenther@suse.de>
3900
3901         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3902
3903 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
3904
3905         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3906
3907 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
3908
3909         * config/arm/arm.c (get_label_padding): New function.
3910         (create_fix_barrier, arm_reorg): Use it.
3911
3912 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
3913
3914         PR target/49781
3915         * config/i386/i386.md (*lea_5_zext): New.
3916         (*lea_6_zext): Ditto.
3917         * config/i386/predicates.md (const_32bit_mask): New predicate.
3918         (lea_address_operand): Reject AND.
3919         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3920         const_32bit_mask immediate.
3921         (ix86_print_operand_address): Handle AND.
3922         (memory_address_length): Ditto.
3923
3924 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
3925             Brian Hackett  <bhackett1024@gmail.com>
3926
3927         * plugin.def: Add event for finish_decl.
3928         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3929         * c-decl.c (finish_decl): Invoke callbacks on above event.
3930         * doc/plugins.texi: Document above event.
3931
3932 2011-08-11  Richard Guenther  <rguenther@suse.de>
3933
3934         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3935         lookups, make looking through aggregate copies stronger.
3936
3937 2011-08-11  Richard Henderson  <rth@redhat.com>
3938
3939         PR bootstrap/50018
3940         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3941
3942 2011-08-11  Richard Guenther  <rguenther@suse.de>
3943
3944         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3945         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3946         (vrp_visit_stmt): Likewise.
3947
3948 2011-08-11  Richard Guenther  <rguenther@suse.de>
3949
3950         PR middle-end/50040
3951         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3952         load of the other piece with TREE_NO_WARNING.
3953         * tree-flow.h (warn_uninit): Adjust prototype.
3954         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3955         the base variable and the expression that is used separately.
3956         Properly query all TREE_NO_WARNING flags.
3957         (struct walk_data): Remove.
3958         (warn_uninitialized_var): Likewise.
3959         (warn_uninitialized_vars): Do not walk gimple pieces but simply
3960         look at all SSA uses of the statement.  Handle unused memory
3961         separately.
3962         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3963
3964 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
3965
3966         * config/rx/rx.md (movsicc): Allow register to register transfers.
3967         (*movsicc): Likewise.
3968         (*stcc): Restrict this pattern to EQ and NE compares.
3969         (*stcc_reg): New pattern.  Works for any comparison but only for
3970         register transfers.
3971
3972 2011-08-11   Diego Novillo  <dnovillo@google.com>
3973
3974         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3975         Call stream_write_tree instead of output_record_start.
3976         (lto_output_ts_binfo_tree_pointers): Likewise.
3977
3978         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3979         Convert it to a macro.
3980         (stream_read_tree): Likewise.
3981
3982         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3983         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3984
3985         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3986         and tree_read_bitfields.
3987         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3988         (lto_write_tree): Call it.
3989         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3990         * streamer-hooks.h (struct streamer_hooks): Remove fields
3991         name, is_streamable and alloc_tree. Update all users.
3992         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3993         (lto_materialize_tree): ... here.
3994         Handle CALL_EXPR codes.
3995         Remove call to lto_streamer_cache_append.
3996         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3997         * tree-streamer.h (tree_read_bitfields): Declare.
3998
3999         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4000         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4001         * tree-streamer.h (stream_read_tree): New.  Replace all calls
4002         to lto_input_tree with it.
4003         (stream_write_tree): New.  Replace all calls to lto_output_tree,
4004         lto_output_tree_ref and lto_output_tree_or_ref with it.
4005         * lto-streamer-in.c (lto_read_tree): Inline code from
4006         lto_streamer_read_tree.
4007         (lto_input_tree): Move from tree-streamer-in.c.
4008         * lto-streamer-out.c (lto_output_tree_ref): Make static.
4009         Remove handling of NULL values for EXPR.
4010         Do not handle EXPRs that are not indexable.
4011         (lto_write_tree): Move from tree-streamer-out.c.
4012         Inline lto_streamer_write_tree.
4013         (lto_output_tree): Move from tree-streamer-out.c.
4014         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4015         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4016         (lto_preload_common_nodes): Likewise.
4017         Remove assertions and adjustments for nodes
4018         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4019         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4020         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4021         * lto-streamer.h (lto_input_tree): Declare.
4022         (lto_output_tree_ref): Remove.
4023         * streamer-hooks.h (struct streamer_hooks): Remove fields
4024         preload_common_nodes, indexable_with_decls_p,
4025         pack_value_fields, unpack_value_fields and output_tree_header.
4026         Update all users.
4027         * tree-streamer-in.c (lto_materialize_tree): Make extern.
4028         (lto_input_tree_pointers): Likewise.
4029         (lto_read_tree): Move to lto-streamer-in.c.
4030         (lto_input_integer_cst): Make extern.
4031         (lto_get_pickled_tree): Likewise.
4032         (lto_get_builtin_tree): Likewise.
4033         (lto_input_tree): Move to lto-streamer-in.c.
4034         * tree-streamer-out.c (pack_value_fields): Make extern.
4035         (lto_output_tree_or_ref): Remove.  Replace all callers with
4036         calls to stream_write_tree.
4037         (lto_output_builtin_tree): Make extern.
4038         (lto_streamer_write_tree): Inline into lto_write_tree.
4039         (lto_output_tree_pointers): Make extern.
4040         (lto_output_tree_header): Likewise.
4041         (lto_output_integer_cst): Likewise.
4042         (lto_write_tree): Move to lto-streamer-out.c.
4043         (lto_output_tree): Likewise.
4044         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4045         (preload_common_nodes): Likewise.
4046         (lto_streamer_cache_create): Call it.
4047         * tree-streamer.h: Include streamer-hooks.h.
4048         (stream_write_tree): New.
4049         (stream_read_tree): New.
4050         (lto_input_tree): Remove.
4051         (lto_materialize_tree): Declare.
4052         (lto_input_tree_pointers): Declare.
4053         (lto_get_pickled_tree): Declare.
4054         (lto_get_builtin_tree): Declare.
4055         (lto_input_integer_cst): Declare.
4056         (lto_output_tree_header): Declare.
4057         (pack_value_fields): Declare.
4058         (lto_output_tree_pointers): Declare.
4059         (lto_output_integer_cst): Declare.
4060         (lto_output_builtin_tree): Declare.
4061
4062 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4063
4064         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4065         only if producer writes to the register given by regno.
4066
4067 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4068             Alexander Monakov  <amonakov@ispras.ru>
4069
4070         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4071         (sched_get_condition_with_rev_uncached): ... this.  Factor out
4072         condition caching logic into ...
4073         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
4074         attempt to use cache for instructions with zero luid.
4075         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4076         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4077
4078 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4079
4080         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4081         get_seqno_for_a_jump.  Update the caller.
4082         (get_seqno_by_succs): New.  Use it ...
4083         (get_seqno_for_a_jump): ... here to find a seqno if looking at
4084         predecessors was not sufficient.
4085         (get_seqno_by_preds): Include head in iteration range, exclude insn.
4086
4087 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4088
4089         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4090
4091 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4092
4093         * sel-sched-ir.h (register_unavailable_p): Declare.
4094         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
4095         (set_unavailable_target_for_expr): ... here to properly test
4096         availability of a register.
4097         (speculate_expr): Ditto.
4098         * sel-sched.c (substitute_reg_in_expr): Ditto.
4099         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4100
4101 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4102
4103         * sel-sched.c (verify_target_availability): Fix usage of
4104         hard_regno_nregs.
4105
4106 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4107
4108         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4109         recognized by cannot_copy_insn_p hook and volatile instructions.
4110
4111 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4112
4113         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4114
4115 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
4116
4117         * doc/md.texi (define_bypass): Say that the instruction names can
4118         be filename-style globs.
4119         * Makefile.in (FNMATCH_H): Define.
4120         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4121         * genattrtab.c: Include fnmatch.h.
4122         (bypass_list): Change field name from "insn" to "pattern".
4123         (gen_bypass_1): Update accordingly.
4124         (process_bypasses): Use fnmatch to check for matches between
4125         insn reservations and define_bypasses.
4126         * genautomata.c: Include fnmatch.h.
4127         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4128         and out_pattern respectively.
4129         (gen_bypass, insert_bypass): Update accordingly.
4130         (for_each_matching_insn, process_bypass_2, process_bypass_1)
4131         (process_bypass): New functions.
4132         (process_decls): Use process_bypass.  Update after field name changes.
4133
4134 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
4135
4136         PR target/49687
4137         * config/avr/avr.md (smulqi3_highpart): New insn.
4138         (umulqi3_highpart): New insn.
4139         (*subqi3.ashiftrt7): New insn.
4140         (smulhi3_highpart): New expander.
4141         (umulhi3_highpart): Nex expander.
4142         (*smulhi3_highpart_call): New insn.
4143         (*umulhi3_highpart_call): New insn.
4144         (extend_u): New code attribute.
4145         (extend_prefix): Rename code attribute to extend_su.
4146         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4147         widening QI/HI multiply.
4148
4149 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
4150
4151         PR tree-optimization/50039
4152         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4153         that DEF_STMT has a stmt_vec_info.
4154
4155 2011-08-10  Richard Guenther  <rguenther@suse.de>
4156
4157         * tree.h (can_trust_pointer_alignment): Remove.
4158         * builtins.c (can_trust_pointer_alignment): Remove.
4159
4160 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4161
4162         * c-typeck.c (scalar_to_vector): New function. Try scalar to
4163         vector conversion.
4164         (stv_conv): New enum for scalar_to_vector return type.
4165         (build_binary_op): Adjust.
4166         * doc/extend.texi: Description of scalar to vector expansion.
4167
4168 2011-08-10  Richard Guenther  <rguenther@suse.de>
4169
4170         * tree.h (get_pointer_alignment): Remove max-align argument.
4171         (get_object_alignment): Likewise.
4172         * builtins.c (get_object_alignment_1): Adjust.
4173         (get_object_alignment): Remove max-align argument.
4174         (get_pointer_alignment): Likewise.
4175         (expand_builtin_strlen): Adjust.
4176         (expand_builtin_memcpy): Likewise.
4177         (expand_builtin_mempcpy_args): Likewise.
4178         (expand_builtin_strncpy): Likewise.
4179         (expand_builtin_memset_args): Likewise.
4180         (expand_builtin_memcmp): Likewise.
4181         (expand_builtin_strcmp): Likewise.
4182         (expand_builtin_strncmp): Likewise.
4183         (get_builtin_sync_mem): Likewise.
4184         (fold_builtin_memset): Likewise.
4185         (fold_builtin_memory_op): Likewise.
4186         (expand_builtin_memory_chk): Likewise.
4187         * emit-rtl.c (get_mem_align_offset): Likewise.
4188         (set_mem_attributes_minus_bitpos): Likewise.
4189         * expr.c (expand_assignment): Likewise.
4190         (expand_expr_real_1): Likewise.
4191         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4192         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4193         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4194         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4195         * value-prof.c (gimple_stringops_transform): Likewise.
4196
4197 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
4198
4199         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4200         * doc/tm.texi: Regenerate.
4201
4202 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
4203
4204         PR target/29560
4205         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4206         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4207         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4208         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4209         shift target is unused.
4210
4211 2011-08-10  Richard Guenther  <rguenther@suse.de>
4212
4213         PR tree-optimization/49937
4214         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4215         using get_object_alignment_1.
4216
4217 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4218
4219         * config/i386/i386.c (ix86_emit_i387_round): New function.
4220         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4221         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4222         Use ix86_emit_i387_round to expand round function for i387 math.
4223         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4224         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4225
4226 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4227
4228         * config/sync.c: Move to ../libgcc.
4229         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4230         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4231         Remove.
4232
4233 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4234
4235         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4236         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4237         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4238         Change 'from' and 'to' arguments type to reg_class_t.
4239         (TARGET_REGISTER_MOVE_COST): Define.
4240
4241 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
4242
4243         PR target/50026
4244         Revert:
4245         PR rtl-optimization/49990
4246         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4247         ignore classes which can not change mode.
4248         (find_costs_and_classes): Ditto.
4249
4250 2011-08-09  Richard Guenther  <rguenther@suse.de>
4251
4252         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4253         information for ranges with only negative values.
4254         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4255         BIT_AND_EXPR handling to handle ranges with negative values.
4256
4257 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
4258
4259         * config/i386/i386.c: Remove traling spaces.
4260         * config/i386/sse.md: Likewise.
4261         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4262         (*fma_fmsub_<mode>): Likewise.
4263         (*fma_fnmadd_<mode>): Likewise.
4264         (*fma_fnmsub_<mode>): Likewise.
4265
4266 2011-08-09  Nick Clifton  <nickc@redhat.com>
4267
4268         * config/rx/rx.md: Disable extender peepholes at -O3.
4269
4270 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4271
4272         PR target/49781
4273         * config/i386/i386.md (reload_noff_load): New.
4274         (reload_noff_store): Ditto.
4275         * config/i386/i386.c (ix86_secondary_reload): Use
4276         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4277         double-word moves from/to non-offsetable addresses instead of
4278         generating XMM temporary.
4279
4280 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4281
4282         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4283
4284 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
4285
4286         PR tree-optimization/50014
4287         * tree-vect-loop.c (vectorizable_reduction): Get def type before
4288         calling vect_get_vec_def_for_stmt_copy ().
4289
4290 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
4291
4292         PR rtl-optimization/49990
4293         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4294         ignore classes which can not change mode.
4295         (find_costs_and_classes): Ditto.
4296
4297 2011-08-08  Richard Henderson  <rth@redhat.com>
4298
4299         PR middle-end/49990
4300         * config/i386/i386.c (ix86_expand_prologue): Call
4301         for SEH target gen_prologue_use instead of gen_blockage
4302         at prologue's end.
4303
4304 2011-08-08  Martin Jambor  <mjambor@suse.cz>
4305
4306         PR middle-end/49923
4307         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4308         memory alignment.
4309
4310 2011-08-08   Diego Novillo  <dnovillo@google.com>
4311
4312         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4313         (DATA_STREAMER_H): New.
4314         (GIMPLE_STREAMER_H): New.
4315         (TREE_STREAMER_H): New.
4316         (STREAMER_HOOKS_H): New.
4317         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4318         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4319         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4320         (data-streamer.o): New.
4321         (data-streamer-in.o): New.
4322         (data-streamer-out.o): New.
4323         (gimple-streamer-in.o): New.
4324         (gimple-streamer-out.o): New.
4325         (streamer-hooks.o): New.
4326         (tree-streamer.o): New.
4327         (tree-streamer-in.o): New.
4328         (tree-streamer-out.o): New.
4329         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4330         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4331         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4332         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4333         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4334         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4335         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4336         (ipa-inline-analysis.o): Likewise.
4337         (ipa-pure-const.o): Likewise.
4338         * data-streamer-in.c: New.
4339         * data-streamer-out.c: New.
4340         * data-streamer.c: New.
4341         * data-streamer.h: New.
4342         * gimple-streamer-in.c: New.
4343         * gimple-streamer-out.c: New.
4344         * gimple-streamer.h: New.
4345         * ipa-inline-analysis.c: Include data-streamer.h.
4346         * ipa-prop.c: Include data-streamer.h.
4347         * ipa-pure-const.c: Include data-streamer.h.
4348         * lto-cgraph.c: Include data-streamer.h.
4349         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
4350         (lto_input_widest_uint_uleb128): Likewise.
4351         (lto_input_sleb128): Likewise.
4352         (bp_unpack_var_len_unsigned): Likewise.
4353         (bp_unpack_var_len_int): Likewise.
4354         * lto-section-out.c (lto_output_uleb128_stream): Move to
4355         data-streamer-out.c.
4356         (lto_output_widest_uint_uleb128_stream): Likewise.
4357         (lto_output_sleb128_stream): Likewise.
4358         (bp_pack_var_len_unsigned): Likewise.
4359         (bp_pack_var_len_int): Likewise.
4360         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
4361         (struct string_slot): Remove.  Update all users.
4362         (lto_tag_check_set): Make extern.
4363         (lto_tag_check_range): Move to lto-streamer.h.
4364         (lto_tag_check): Likewise.
4365         (hash_string_slot_node): Remove.  Update all users.
4366         (eq_string_slot_node): Remove.  Update all users.
4367         (string_for_index): Move to data-streamer-in.c
4368         (input_string_internal): Likewise.
4369         (input_string_cst): Move to tree-streamer-in.c.
4370         (input_identifier): Likewise.
4371         (lto_input_string): Move to data-streamer-in.c
4372         (input_record_start): Move to data-streamer.h
4373         (canon_file_name): Use new definition of struct string_slot
4374         from data-streamer.h.  Set S_SLOT.LEN.
4375         (lto_input_location): Make extern.
4376         (lto_input_chain): Move to tree-streamer-in.c.
4377         (lto_init_eh): Make extern.
4378         (input_phi): Move to gimple-streamer-in.c.
4379         (input_gimple_stmt): Likewise.
4380         (input_bb): Likewise.
4381         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
4382         (unpack_ts_real_cst_value_fields): Likewise.
4383         (unpack_ts_fixed_cst_value_fields): Likewise.
4384         (unpack_ts_decl_common_value_fields): Likewise.
4385         (unpack_ts_decl_wrtl_value_fields): Likewise.
4386         (unpack_ts_decl_with_vis_value_fields): Likewise.
4387         (unpack_ts_function_decl_value_fields): Likewise.
4388         (unpack_ts_type_common_value_fields): Likewise.
4389         (unpack_ts_block_value_fields): Likewise.
4390         (unpack_ts_translation_unit_decl_value_fields): Likewise.
4391         (unpack_value_fields): Likewise.
4392         (lto_materialize_tree): Likewise.
4393         (lto_input_ts_common_tree_pointers): Likewise.
4394         (lto_input_ts_vector_tree_pointers): Likewise.
4395         (lto_input_ts_complex_tree_pointers): Likewise.
4396         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
4397         (lto_input_ts_decl_common_tree_pointers): Likewise.
4398         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
4399         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
4400         (lto_input_ts_field_decl_tree_pointers): Likewise.
4401         (lto_input_ts_function_decl_tree_pointers): Likewise.
4402         (lto_input_ts_type_common_tree_pointers): Likewise.
4403         (lto_input_ts_type_non_common_tree_pointers): Likewise.
4404         (lto_input_ts_list_tree_pointers): Likewise.
4405         (lto_input_ts_vec_tree_pointers): Likewise.
4406         (lto_input_ts_exp_tree_pointers): Likewise.
4407         (lto_input_ts_block_tree_pointers): Likewise.
4408         (lto_input_ts_binfo_tree_pointers): Likewise.
4409         (lto_input_ts_constructor_tree_pointers): Likewise.
4410         (lto_input_ts_target_option): Likewise.
4411         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
4412         (lto_input_tree_pointers): Likewise.
4413         (lto_get_pickled_tree): Likewise.
4414         (lto_get_builtin_tree): Likewise.
4415         (lto_read_tree): Likewise.
4416         (lto_input_integer_cst): Likewise.
4417         (lto_input_tree): Likewise.
4418         * lto-streamer-out.c: Include data-streamer.h,
4419         gimple-streamer.h and streamer-hooks.h.
4420         (struct string_slot): Move to data-streamer.h.
4421         (hash_string_slot_node): Likewise.
4422         (eq_string_slot_node): Likewise.
4423         (lto_string_index): Move to data-streamer-out.c.
4424         (lto_output_string_with_length): Likewise.
4425         (lto_output_string): Likewise.
4426         (output_string_cst): Move to tree-streamer-out.c.
4427         (output_identifier): Likewise.
4428         (output_zero): Move to data-streamer-out.c
4429         (output_uleb128): Likewise.
4430         (output_sleb128): Likewise.
4431         (output_record_start): Move to data-streamer.h
4432         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
4433         (pack_ts_real_cst_value_fields): Likewise.
4434         (pack_ts_fixed_cst_value_fields): Likewise.
4435         (pack_ts_decl_common_value_fields): Likewise.
4436         (pack_ts_decl_wrtl_value_fields): Likewise.
4437         (pack_ts_decl_with_vis_value_fields): Likewise.
4438         (pack_ts_function_decl_value_fields): Likewise.
4439         (pack_ts_type_common_value_fields): Likewise.
4440         (pack_ts_block_value_fields): Likewise.
4441         (pack_ts_translation_unit_decl_value_fields): Likewise.
4442         (pack_value_fields): Likewise.
4443         (lto_output_chain): Likewise.
4444         (lto_output_ts_common_tree_pointers): Likewise.
4445         (lto_output_ts_vector_tree_pointers): Likewise.
4446         (lto_output_ts_complex_tree_pointers): Likewise.
4447         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
4448         (lto_output_ts_decl_common_tree_pointers): Likewise.
4449         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
4450         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
4451         (lto_output_ts_field_decl_tree_pointers): Likewise.
4452         (lto_output_ts_function_decl_tree_pointers): Likewise.
4453         (lto_output_ts_type_common_tree_pointers): Likewise.
4454         (lto_output_ts_type_non_common_tree_pointers): Likewise.
4455         (lto_output_ts_list_tree_pointers): Likewise.
4456         (lto_output_ts_vec_tree_pointers): Likewise.
4457         (lto_output_ts_exp_tree_pointers): Likewise.
4458         (lto_output_ts_block_tree_pointers): Likewise.
4459         (lto_output_ts_binfo_tree_pointers): Likewise.
4460         (lto_output_ts_constructor_tree_pointers): Likewise.
4461         (lto_output_ts_target_option): Likewise.
4462         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
4463         (lto_output_tree_pointers): Likewise.
4464         (lto_output_tree_header): Likewise.
4465         (lto_output_builtin_tree): Likewise.
4466         (lto_write_tree): Likewise.
4467         (lto_output_integer_cst): Likewise.
4468         (lto_output_tree): Likewise.
4469         (output_phi): Move to gimple-streamer-out.c.
4470         (output_gimple_stmt): Likewise.
4471         (output_bb): Likewise.
4472         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
4473         (streamer_hooks): Move to streamer-hooks.c.
4474         (check_handled_ts_structures): Move to tree-streamer.c
4475         (lto_streamer_cache_add_to_node_array): Likewise.
4476         (lto_streamer_cache_insert_1): Likewise.
4477         (lto_streamer_cache_insert): Likewise.
4478         (lto_streamer_cache_insert_at): Likewise.
4479         (lto_streamer_cache_append): Likewise.
4480         (lto_streamer_cache_lookup): Likewise.
4481         (lto_streamer_cache_get): Likewise.
4482         (lto_record_common_node): Likewise.
4483         (lto_preload_common_nodes): Likewise.
4484         (lto_streamer_cache_create): Likewise.
4485         (lto_streamer_cache_delete): Likewise.
4486         (streamer_hooks_init): Move to streamer-hooks.c.
4487         * lto-streamer.h: Include diagnostic.h
4488         (struct output_block, struct lto_input_block,
4489         struct data_in, struct bitpack_d): Remove forward declarations.
4490         (struct bitpack_d): Move to data-streamer.h.
4491         (struct lto_streamer_cache_d): Move to tree-streamer.h.
4492         (struct streamer_hooks): Move to streamer-hooks.h.
4493         (bp_pack_var_len_unsigned): Move to data-streamer.h.
4494         (bp_pack_var_len_int): Likewise.
4495         (bp_unpack_var_len_unsigned): Likewise.
4496         (bp_unpack_var_len_int): Likewise.
4497         (lto_input_location): Declare.
4498         (lto_tag_check_set): Declare.
4499         (lto_init_eh): Declare.
4500         (lto_output_tree_ref): Declare.
4501         (lto_output_location): Declare.
4502         (bitpack_create): Move to data-streamer.h.
4503         (bp_pack_value): Likewise.
4504         (lto_output_bitpack): Likewise.
4505         (lto_input_bitpack): Likewise.
4506         (bp_unpack_value): Likewise.
4507         (lto_output_1_stream): Likewise.
4508         (lto_input_1_unsigned): Likewise.
4509         (lto_output_int_in_range): Likewise.
4510         (lto_input_int_in_range): Likewise.
4511         (bp_pack_int_in_range): Likewise.
4512         (bp_unpack_int_in_range): Likewise.
4513         (lto_output_enum): Likewise.
4514         (lto_input_enum): Likewise.
4515         (bp_pack_enum): Likewise.
4516         (bp_unpack_enum): Likewise.
4517         * streamer-hooks.c: New.
4518         * streamer-hooks.h: New.
4519         * tree-streamer-in.c: New.
4520         * tree-streamer-out.c: New.
4521         * tree-streamer.c: New.
4522         * tree-streamer.h: New.
4523
4524 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4525
4526         * gthr-posix95.h: Remove.
4527         * gthr.h [_PTHREADS95]: Remove.
4528         * configure.ac (enable_threads): Remove posix95.
4529         * configure: Regenerate.
4530         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
4531
4532 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
4533
4534         PR target/49781
4535         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
4536         SImode addresses.
4537         (ix86_print_operand_address): Handle zero-extended addresses.
4538         (memory_address_length): Add length of addr32 prefix for
4539         zero-extended addresses.
4540         (ix86_secondary_reload): Handle moves to/from double-word general
4541         registers from/to zero-extended addresses.
4542         * config/i386/predicates.md (lea_address_operand): Reject
4543         zero-extended operands.
4544
4545 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4546
4547         PR other/48007
4548         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
4549
4550         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
4551         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
4552
4553         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
4554         (_Unwind_Context_Reg_Val): Likewise.
4555         (_Unwind_Get_Unwind_Word): Likewise.
4556         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
4557         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
4558         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
4559         for EXTENDED_CONTEXT_BIT.
4560         (__frame_state_for): Likewise.
4561         (uw_init_context_1): Likewise.
4562         (_Unwind_GetGR): Updated.
4563         (_Unwind_SetGR): Likewise.
4564         (_Unwind_GetGRPtr): Likewise.
4565         (_Unwind_SetGRPtr): Likewise.
4566         (_Unwind_SetGRValue): Likewise.
4567         (_Unwind_GRByValue): Likewise.
4568         (uw_install_context_1): Likewise.
4569
4570         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
4571         ASSUME_EXTENDED_UNWIND_CONTEXT.
4572         * doc/tm.texi: Regenerated.
4573
4574 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4575
4576         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
4577
4578 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4579
4580         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
4581         Linux/GNU-specific.
4582         (DEC Alpha Options, -mtune): Likewise.
4583         (MIPS Options, -march): native is supported on IRIX.
4584
4585 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4586
4587         * config/sparc/driver-sparc.c: New file.
4588         * config/sparc/x-sparc: New file.
4589         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
4590         * config/sparc/sparc.opt (native): New value for enum processor_type.
4591         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
4592         * config/sparc/sparc.c (sparc_option_override): Abort if
4593         PROCESSOR_NATIVE gets here.
4594         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
4595         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
4596         DRIVER_SELF_SPECS): Define.
4597         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
4598         (SPARC Options, -mtune): Likewise.
4599         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
4600         Substitute result.
4601         * configure: Regenerate.
4602         * Makefile.in (EXTRA_GCC_LIBS): Set.
4603         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
4604         (cpp$(exeext)): Likewise.
4605
4606 2011-08-08  Richard Guenther  <rguenther@suse.de>
4607
4608         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
4609         split out from ...
4610         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
4611         by composition.
4612
4613 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
4614
4615         PR tree-optimization/50005
4616         * ipa-inline-analysis (remap_predicate): Add cast to
4617         silence signed/unsigned comparison warning.
4618
4619 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
4620
4621         * modulo-sched.c (get_sched_window): Use a table for the debug output.
4622         Print the current ii.
4623         (sms_schedule_by_order): Reduce whitespace in dump line.
4624
4625 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
4626
4627         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
4628         and one loop for successors.  Fix upper bound of memory range.
4629
4630 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4631
4632         PR target/50001
4633         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
4634         (TARGET_INSTANTIATE_DECLS): New define.
4635
4636 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
4637             Mikael Morin   <mikael.morin@sfr.fr>
4638
4639         * Makefile.in (INCLUDES_FOR_TARGET): New.
4640         (LIBGCC2_CFLAGS): Use it.
4641         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
4642
4643 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4644
4645         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
4646         frame->save_regs_using_mov calculation.
4647
4648 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4649
4650         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
4651         * config/i386/sse.md (castmode): New mode attribute.
4652         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
4653         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
4654
4655 2011-08-05  Jan Hubicka  <jh@suse.cz>
4656
4657         PR middle-end/49494
4658         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
4659
4660 2011-08-05  Jan Hubicka  <jh@suse.cz>
4661
4662         PR middle-end/49500
4663         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
4664         handle aliases.
4665         (create_emultls_var):New function.
4666         (ipa_lower_emutls): Handle aliases correctly.
4667
4668 2011-08-05  Jan Hubicka  <jh@suse.cz>
4669
4670         PR middle-end/49735
4671         * ipa-inline.c (recursive_inlining): Look through aliases.
4672
4673 2011-08-05  Jason Merrill  <jason@redhat.com>
4674
4675         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4676         declarations to beginning of function.
4677
4678 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4679
4680         PR rtl-optimization/49900
4681         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4682         ensure basic blocks stay in the same order.
4683
4684 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
4685
4686         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4687         store_bit_field.
4688         (s390_expand_atomic): Same.
4689
4690 2011-08-05  Richard Henderson  <rth@redhat.com>
4691
4692         PR rtl-opt/49977
4693         * dwarf2cfi.c (scan_insn_after): Split out of ...
4694         (scan_trace): ... here.  Correctly place notes wrt sequences.
4695
4696 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4697             Richard Henderson  <rth@redhat.com>
4698
4699         PR rtl-opt/49982
4700         * expr.c (fixup_args_size_notes): Look through no-op moves.
4701
4702 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4703
4704         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4705         of "m" for operand 0.  Add type and mode attribute.
4706         (*pushxf_nointeger"): Use "<" constraint for operand 0.
4707         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
4708         constraint instead of "o" for opreand 1.
4709         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
4710         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4711         operand 0, alternative 4.
4712         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4713
4714 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4715
4716         * config/i386/predicates.md (lea_address_operand): Rename from
4717         no_seg_address_operand.
4718         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4719         (*lea_1_zext): Ditto.
4720         (*lea_2): Ditto.
4721         (*lea_2_zext): Ditto.
4722
4723 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4724
4725         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4726         parts.base and parts.index.
4727         * config/i386/predicates.md (aligned_operand): Ditto.
4728         (cmpxchg8b_pic_memory_operand): Ditto.
4729
4730 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4731
4732         * config/soft-fp: Move to ../libgcc.
4733         * Makefile.in (SFP_MACHINE): Remove.
4734         (libgcc-support): Remove $(SFP_MACHINE) dependency.
4735         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4736         * config/arm/t-arm-softfp: Move to
4737         ../libgcc/config/arm/t-softfp.
4738         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4739         * config/c6x/t-c6x-softfp: Remove.
4740         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4741         * config/i386/t-fprules-softfp: Move to
4742         ../libgcc/config/t-softfp-tf.
4743         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4744         * config/ia64/t-fprules-softfp: Remove.
4745         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4746         * config/lm32/t-fprules-softfp: Remove.
4747         * config/moxie/sfp-machine.h: Remove.
4748         * config/moxie/t-moxie-softfp: Remove.
4749         * config/rs6000/darwin-ldouble-format: Move to
4750         ../libgcc/config/rs6000/ibm-ldouble-format.
4751         * config/rs6000/darwin-ldouble.c: Move to
4752         ../libgcc/config/rs6000/ibm-ldouble.c
4753         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4754         * config/rs6000/libgcc-ppc64.ver: Likewise.
4755         * config/rs6000/sfp-machine.h: Likewise.
4756         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4757         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4758         (LIB2FUNCS_EXTRA): Remove.
4759         (TARGET_LIBGCC2_CFLAGS): Remove.
4760         * config/rs6000/t-aix52: Likewise
4761         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4762         $(srcdir)/config/rs6000/darwin-ldouble.c.
4763         (SHLIB_MAPFILES): Remove.
4764         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4765         $(srcdir)/config/rs6000/darwin-ldouble.c.
4766         * config/rs6000/t-fprules-softfp: Move to
4767         ../libgcc/config/t-softfp-sfdf.
4768         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4769         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4770         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4771         $(srcdir)/config/rs6000/darwin-ldouble.c.
4772         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4773         * config/score/t-score-softfp: Remove.
4774         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4775         soft-fp/t-softfp from tmake_file.
4776         (arm*-*-uclinux*): Likewise.
4777         (arm*-*-ecos-elf): Likewise.
4778         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4779         (arm*-*-rtems*): Likewise.
4780         (arm*-*-elf): Likewise.
4781         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4782         tmake_file.
4783         (moxie-*-uclinux*): Likewise.
4784         (moxie-*-rtems*): Likewise.
4785         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4786         tmake_file.
4787         (lm32-*-rtems*): Likewise.
4788         (lm32-*-uclinux*): Likewise.
4789         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4790         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4791         (powerpc-*-linux*, powerpc64-*-linux*): Remove
4792         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4793         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4794         tmake_file.
4795         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4796         tmake_file.
4797         (tic6x-*-uclinux): Likewise.
4798         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4799         soft-fp/t-softfp from tmake_file.
4800         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4801         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4802         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4803         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4804         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4805
4806 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4807
4808         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4809         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4810         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4811         TPBIT, TPBIT_FUNCS.
4812         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4813         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4814         Remove.
4815         * config/arm/t-vxworks: Likewise.
4816         * config/arm/t-wince-pe: Likewise.
4817         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4818         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4819         * config/bfin/t-bfin-elf: Likewise.
4820         * config/bfin/t-bfin-linux: Likewise.
4821         * config/bfin/t-bfin-uclinux: Likewise.
4822         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4823         Remove.
4824         * config/fr30/t-fr30: Likewise.
4825         * config/frv/t-frv: Likewise.
4826         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4827         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4828         * config/m32c/t-m32c: Likewise.
4829         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4830         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4831         * config/mcore/t-mcore: Likewise.
4832         * config/mep/t-mep: Likewise.
4833         * config/microblaze/t-microblaze: Likewise.
4834         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4835         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4836         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4837         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4838         * config/mn10300/t-linux: Remove.
4839         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4840         * config/pdp11/t-pdp11: Likewise.
4841         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4842         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4843         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4844         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4845         * config/rs6000/t-aix52: Likewise.
4846         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4847         $(srcdir)/config/rs6000/ppc64-fp.c.
4848         * config/rs6000/t-fprules-fpbit: Remove.
4849         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4850         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4851         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4852         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4853         * config/sparc/t-elf: Likewise.
4854         * config/sparc/t-leon: Likewise.
4855         * config/sparc/t-leon3: Likewise.
4856         * config/spu/t-spu-elf: Likewise.
4857         (DPBIT_FUNCS): Remove.
4858         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4859         * config/v850/t-v850: Likewise.
4860         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4861         (avr-*-*): Likewise.
4862         (h8300-*-rtems*): Set libgcc_tm_file.
4863         (h8300-*-elf*): Likewise.
4864         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4865         tmake_file.
4866         (powerpc-*-eabisim*): Likewise.
4867         (powerpc-*-elf*): Likewise.
4868         (powerpc-*-eabialtivec*): Likewise.
4869         (powerpc-xilinx-eabi*): Likewise.
4870         (powerpc-*-eabi*): Likewise.
4871         (powerpc-*-rtems*): Likewise.
4872         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4873         (powerpcle-*-elf*): Likewise.
4874         (powerpcle-*-eabisim*): Likewise.
4875         (powerpcle-*-eabi*): Likewise.
4876         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4877         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4878         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4879         Remove.
4880
4881 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4882
4883         * Makefile.in (UNWIND_H): Remove.
4884         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4885         ../libgcc/Makefile.in.
4886         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4887         (LIBUNWINDDEP): Remove.
4888         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4889         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4890         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4891         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4892         Don't copy $(UNWIND_H).
4893         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4894         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4895         * aclocal.m4: Regenerate.
4896         * configure: Regenerate.
4897         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4898         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4899         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4900         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4901         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4902         * config/arm/libunwind.S, config/arm/pr-support.c,
4903         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4904         ../libgcc/config/arm.
4905         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4906         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4907         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4908         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4909         ($(T)frvend$(objext)): Likewise.
4910         * config/ia64/t-glibc (LIB2ADDEH): Remove.
4911         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4912         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4913         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4914         ../libgcc/config/ia64.
4915         * config/ia64/t-hpux (LIB2ADDEH): Remove.
4916         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4917         * config/ia64/t-vms (LIB2ADDEH): Remove.
4918         * config/ia64/vms.h (UNW_IVMS_MODE,
4919         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4920         * config/picochip/t-picochip (LIB2ADDEH): Remove.
4921         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4922         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4923         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4924         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4925         $(srcdir)/../libgcc to refer to unwinder sources.
4926         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4927         * config/t-darwin (LIB2ADDEH): Remove.
4928         * config/t-freebsd (LIB2ADDEH): Remove.
4929         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4930         * config/t-libunwind-elf: Move to ../libgcc/config.
4931         * config/t-linux (LIB2ADDEH): Remove.
4932         * config/t-sol2 (LIB2ADDEH): Remove.
4933         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4934         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4935
4936 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
4937
4938         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4939
4940         * doc/invoke.texi: Document core-avx-i.
4941
4942 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4943
4944         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4945
4946 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
4947
4948         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4949         result of multiple results reduction when extracting the final
4950         value using scalar code.
4951
4952 2011-08-05  Richard Guenther  <rguenther@suse.de>
4953
4954         PR tree-optimization/49984
4955         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4956
4957 2011-08-05  Richard Guenther  <rguenther@suse.de>
4958
4959         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4960         return true for constant integer ranges.
4961         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4962         BIT_IOR_EXPR handling.
4963
4964 2011-08-04  Kai Tietz  <ktietz@redhat.com>
4965
4966         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4967         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4968
4969 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
4970
4971         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4972         pattern def statement, and its access macro.
4973         (NUM_PATTERNS): Set to 5.
4974         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4975         pattern def statement.
4976         (vect_transform_loop): Likewise.
4977         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4978         function vect_recog_over_widening_pattern ().
4979         (vect_operation_fits_smaller_type): New function.
4980         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4981         Likewise.
4982         (vect_pattern_recog_1): Move the code that marks pattern
4983         statements to vect_mark_pattern_stmts (), and call it.  Update
4984         documentation.
4985         * tree-vect-stmts.c (vect_supportable_shift): New function.
4986         (vect_analyze_stmt): Handle pattern def statement.
4987         (new_stmt_vec_info): Initialize pattern def statement.
4988
4989 2011-08-04  Richard Henderson  <rth@redhat.com>
4990
4991         PR target/49964
4992         * config/i386/i386.c (ix86_expand_call): Don't create nested
4993         PARALLELs for TARGET_VZEROUPPER.
4994         (ix86_split_call_vzeroupper): Fix extraction of the original call.
4995         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4996         recognize nested PARALLELs.
4997         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4998         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4999         *sibcall_value_pop_vzeroupper): Likewise.
5000
5001 2011-08-04  Richard Henderson  <rth@redhat.com>
5002
5003         PR middle-end/49968
5004         * calls.c (expand_call): Use fixup_args_size_notes for
5005         emit_stack_restore.
5006         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5007         in non-standard modes.
5008
5009 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5010
5011         * gcc.c (self_spec): New variable.
5012         (static_specs): Add self_spec.
5013         (main): Call do_self_spec on "self_spec" specs after reading
5014         user specs files.  Move compare_debug handling right after that.
5015
5016 2011-08-04  Richard Guenther  <rguenther@suse.de>
5017
5018         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5019         (value_range_nonnegative_p): New function.
5020         (ssa_name_nonnegative_p): Use it.
5021         (value_range_constant_singleton): New function.
5022         (op_with_constant_singleton_value_range): Use it.
5023         (extract_range_from_binary_expr_1): New function, split out from ...
5024         (extract_range_from_binary_expr): ... this.  Remove fallback
5025         constant folding done here.
5026
5027 2011-08-04  Richard Guenther  <rguenther@suse.de>
5028
5029         PR tree-optimization/49806
5030         * tree-vrp.c (op_with_boolean_value_range_p): New function.
5031         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
5032         a new statement for a final conversion to bool.
5033
5034 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
5035
5036         * gengtype-state.c: Include "bconfig.h" if
5037         GENERATOR_FILE is defined, "config.h" otherwise.
5038         * gengtype.c: Likewise.
5039         * gengtype-lex.l: Likewise.
5040         * gengtype-parse.c: Likewise.
5041         * Makefile.in (gengtype-lex.o-warn): New variable.
5042         (plugin_resourcesdir): Likewise.
5043         (plugin_bindir): Likewise.
5044         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5045         (MOSTLYCLEANFILES): Add gengtype$(exeext).
5046         (native): Depend on gengtype$(exeext) is $enable_plugin
5047         is set to "yes".
5048         (gtype.state): Depend on s-gtype. Use temporary file.
5049         (gengtype-lex.o): New rule.
5050         (gengtype-parse.o): Likewise.
5051         (gengtype-state.o): Likewise.
5052         (gengtype$(exeext)): Likewise.
5053         (install-gengtype): Likewise.
5054         (gengtype.o): Likewise.
5055         (build/gengtype.o): Depend on version.h.
5056         (build/gengtype-state): Depend on double-int.h, version.h,
5057         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5058         (install-plugin): Depend on install-gengtype.
5059
5060 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5061
5062         PR middle-end/49905
5063         * tree.h (init_attributes): New prototype.
5064         * attribs.c (init_attributes): No longer static.
5065
5066 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5067
5068         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5069         maybe_suffix.
5070
5071 2011-08-03   David Li  <davidxl@google.com>
5072
5073         * tree-optimize.c (execute_fixup_cfg): Fix up entry
5074         outgoing edge counts after inlining.
5075
5076 2011-08-03   David Li  <davidxl@google.com>
5077
5078         * profile.c (compute_branch_probabilities): Compute
5079         function frequency after profile annotation.
5080
5081 2011-08-04  Alan Modra  <amodra@gmail.com>
5082
5083         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5084         use_backchain_to_restore_sp initialisation.
5085         (rs6000_legitimate_offset_address_p): Simplify offset test.
5086
5087 2011-08-03  Richard Henderson  <rth@redhat.com>
5088
5089         * config/spu/spu.md: Use define_c_enum instead of define_constants.
5090         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5091         (UNSPECV_NOP): New.
5092
5093 2011-08-03  Richard Henderson  <rth@redhat.com>
5094
5095         PR target/34888
5096         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5097
5098 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
5099
5100         PR tree-optimization/49948
5101         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5102
5103 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
5104
5105         * config/m32c/m32c.c (class_sizes): Remove.
5106         (reduce_class): Change arguments and return type to reg_class_t.
5107         Change type cc var to HARD_REG_SET. Change type best var to
5108         reg_class_t. Change type best_size var to unsigned int. Remove
5109         initialization class_sizes var. Use reg_class_size array instead
5110         of class_sizes. Use reg_class_contents array instead
5111         of class_contents.
5112
5113 2011-08-03  Richard Guenther  <rguenther@suse.de>
5114
5115         PR middle-end/49958
5116         * fold-const.c (fold_binary_loc): Only associate
5117         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5118         overflow wraps.
5119
5120 2011-08-03  Alan Modra  <amodra@gmail.com>
5121
5122         PR rtl-optimization/49941
5123         * jump.c (mark_jump_label): Comment.
5124         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5125         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5126         (mark_used_flags): Don't mark RETURN.
5127
5128 2011-08-03  Richard Guenther  <rguenther@suse.de>
5129
5130         PR tree-optimization/49938
5131         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5132         deal with a POLYNOMIAL_CHREC.
5133
5134 2011-08-03  Revital Eres  <revital.eres@linaro.org>
5135
5136         * modulo-sched.c (calculate_stage_count,
5137         calculate_must_precede_follow, get_sched_window,
5138         try_scheduling_node_in_cycle, remove_node_from_ps): Add
5139         declaration.
5140         (update_node_sched_params, set_must_precede_follow, optimize_sc):
5141         New functions.
5142         (reset_sched_times): Call update_node_sched_params.
5143         (sms_schedule): Call optimize_sc.
5144         (get_sched_window): Change function arguments.
5145         (sms_schedule_by_order): Update call to get_sched_window.
5146         Call set_must_precede_follow.
5147         (calculate_stage_count): Add function argument.
5148
5149 2011-08-02  Richard Henderson  <rth@redhat.com>
5150
5151         PR target/49864
5152         PR target/49879
5153         * reg-notes.def (REG_ARGS_SIZE): New.
5154         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5155         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5156         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5157         different stack levels.
5158         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5159         (maybe_move_args_size_note): New.
5160         (combine_stack_adjustments_for_block): Use it.
5161         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5162         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5163         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5164         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5165         (cur_cfa): New.
5166         (queued_args_size): Remove.
5167         (add_cfi_args_size): Assert size is non-negative.
5168         (stack_adjust_offset, dwarf2out_args_size): Remove.
5169         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5170         (notice_args_size, notice_eh_throw): New.
5171         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5172         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5173         (dwarf2out_frame_debug_cfa_offset): Likewise.
5174         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
5175         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5176         (change_cfi_row): Don't emit args_size.
5177         (maybe_record_trace_start_abnormal): Split out from ...
5178         (maybe_record_trace_start): Here.  Set args_size_undefined.
5179         (create_trace_edges): Update to match.
5180         (scan_trace): Handle REG_ARGS_SIZE.
5181         (connect_traces): Connect args_size between EH insns.
5182         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5183         * explow.c (suppress_reg_args_size): New.
5184         (adjust_stack_1): Split out from ...
5185         (adjust_stack): ... here.
5186         (anti_adjust_stack): Use it.
5187         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5188         * expr.c (mem_autoinc_base): New.
5189         (fixup_args_size_notes): New.
5190         (emit_single_push_insn_1): Rename from emit_single_push_insn.
5191         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
5192         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5193         * reload1.c (reload_as_needed): Likewise.
5194         * rtl.h (fixup_args_size_notes): Declare.
5195
5196 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
5197
5198         PR bootstrap/49914
5199         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5200         of abs.
5201         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5202         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5203
5204 2011-08-02  Richard Henderson  <rth@redhat.com>
5205
5206         * config/h8300/h8300.c (push, pop): Return the insn.
5207         (h8300_swap_into_er6): Generate correct unwind info.
5208         (h8300_swap_out_of_er6): Likewise.
5209         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5210         complex cfa expression.
5211         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5212
5213 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5216
5217 2011-08-02  Richard Henderson  <rth@redhat.com>
5218
5219         PR target/49878
5220         * config/h8300/h8300.c (h8300_move_ok): New.
5221         * config/h8300/h8300-protos.h: Declare it.
5222         * config/h8300/h8300.md (P): New mode iterator.
5223         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5224         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5225         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5226         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5227         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5228         and pushqi1_h8300hs_normal; use PRE_MODIFY and
5229         register_no_sp_elim_operand.
5230         (*pushhi1_h8300hs_<P>): Similarly.
5231         (pushqi1, pushhi1, pushhi1_h8300): Remove.
5232         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5233
5234 2011-08-02  Richard Henderson  <rth@redhat.com>
5235
5236         PR target/49881
5237         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5238
5239 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
5240
5241         * c-parser.c (enum c_parser_prec): New enum, moved from within
5242         c_parser_binary_expression.
5243         (c_parser_binary_expression): Add PREC argument.  Stop parsing
5244         if operator has lower or equal precedence than PREC.
5245         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5246         callers.
5247         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5248         Adjust c_finish_omp_atomic caller.
5249         (c_parser_omp_taskyield): New function.
5250         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5251         (c_parser_omp_clause_name): Handle final and mergeable clauses.
5252         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5253         functions.
5254         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5255         and PRAGMA_OMP_CLAUSE_MERGEABLE.
5256         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5257         (c_parser_omp_clause_reduction): Handle min and max.
5258         * c-typeck.c (c_finish_omp_clauses): Don't complain about
5259         const qualified predetermined vars in firstprivate clause.
5260         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5261         Handle MIN_EXPR and MAX_EXPR.
5262         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5263         and OMP_CLAUSE_MERGEABLE.
5264         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5265         and OMP_ATOMIC_CAPTURE_NEW.
5266         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5267         OMP_CLAUSE_MERGEABLE.
5268         (omp_clause_code_name): Likewise.
5269         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5270         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5271         and OMP_CLAUSE_MERGEABLE.
5272         (OMP_CLAUSE_FINAL_EXPR): Define.
5273         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5274         OMP_CLAUSE_MERGEABLE.
5275         (expand_task_call): Likewise.
5276         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5277         (expand_omp_atomic_fetch_op): Handle cases where old or new
5278         value is needed afterwards.
5279         (expand_omp_atomic): Call expand_omp_atomic_load resp.
5280         expand_omp_atomic_store.
5281         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5282         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5283         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5284         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5285         * tree-nested.c (convert_nonlocal_omp_clauses,
5286         convert_local_omp_clauses): Likewise.
5287         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5288         OMP_ATOMIC_CAPTURE_NEW): New.
5289         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5290         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5291         New inlines.
5292         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5293         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5294         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5295
5296 2011-08-02  Kai Tietz  <ktietz@redhat.com>
5297
5298         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5299         boolean-type.
5300         (ssa_forward_propagate_and_combine): Interprete result of
5301         forward_propagate_comparison.
5302         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5303         boolean-typed operands for comparisons.
5304
5305 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
5306
5307         * config/avr/libgcc.S: Gather related function in the
5308         same input section.
5309         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5310         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5311         references.
5312         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5313         __udivmodsi4, __divmodsi4, __prologue_saves__,
5314         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5315         __do_copy_data, __do_clear_bss, __do_global_ctors,
5316         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5317
5318 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
5319
5320         PR target/47766
5321         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5322         (stack_protect_test): The pattern compares ptr_mode value.
5323
5324 2011-08-02  Alan Modra  <amodra@gmail.com>
5325
5326         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5327         note for save_LR_around_toc_setup sequence.
5328
5329 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5330
5331         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5332
5333 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
5334             Joseph Myers  <joseph@codesourcery.com>
5335
5336         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5337         * hwint.c: Include diagnostic-core.h.
5338         (abs_hwi): New.
5339         (gcd): Moved here...
5340         (pos_mul_hwi): New.
5341         (mul_hwi): New.
5342         (least_common_multiple): Moved here...
5343         * hwint.h (gcd): ... from here.
5344         (least_common_multiple): ... from here.
5345         (HOST_WIDE_INT_MIN): New.
5346         (HOST_WIDE_INT_MAX): New.
5347         (abs_hwi): Declared.
5348         (gcd): Declared.
5349         (pos_mul_hwi): Declared.
5350         (mul_hwi): Declared.
5351         (least_common_multiple): Declared.
5352         * omega.c (check_pos_mul): Removed.
5353         (check_mul): Removed.
5354         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
5355         mul_hwi instead of check_mul.
5356
5357 2011-08-01  Richard Henderson  <rth@redhat.com>
5358
5359         PR target/49881
5360         * config/avr/avr.h (PUSH_ROUNDING): New.
5361         * config/avr/avr.md (pushqi1): Rename from *pushqi.
5362         (*pushhi, *pushsi, *pushsf): Remove.
5363         (MPUSH): New mode iterator.
5364         (push<MPUSH>1): New expander.
5365
5366 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
5367
5368         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
5369         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5370         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
5371         mmix_preferred_output_reload_class): Remove.
5372         * config/mmix/mmix.c (mmix_preferred_reload_class,
5373         mmix_preferred_output_reload_class): Make static. Change rclass
5374         argument and return type to reg_class_t.
5375         (TARGET_PREFERRED_RELOAD_CLASS,
5376         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5377
5378 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5379
5380         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
5381         handling.
5382
5383 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5384
5385         PR target/47766
5386         * config/i386/i386.md (PTR): New.
5387         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
5388         (stack_protect_test): Likewise.
5389         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
5390         (stack_tls_protect_set_<mode>): Likewise.
5391         (stack_tls_protect_test_<mode>): Likewise.
5392
5393 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
5394
5395         PR target/49927
5396         * config/i386/i386.c (ix86_address_subreg_operand): New.
5397         (ix86_decompose_address): Use ix86_address_subreg_operand.
5398         (ix86_legitimate_address_p): Do not assert that subregs satisfy
5399         register_no_elim_operand in DImode.
5400
5401 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
5402
5403         PR tree-optimization/49926
5404         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
5405         in a chain doesn't have uses both inside and outside the loop.
5406
5407 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5408
5409         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
5410         * config/avr/avr-devices.c (avr_mcu_types): Use it.
5411         * config/avr/avr-mcus.def (AVR_MCU): Use it.
5412         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
5413         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
5414         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
5415         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
5416         to detect if XJMP must not be skipped.
5417
5418 2011-08-02  Alan Modra  <amodra@gmail.com>
5419
5420         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
5421         Delete.
5422         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
5423         (rs6000_emit_prologue): Don't prematurely return when
5424         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
5425         save_toc_in_prologue case.
5426         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
5427         calls_alloca.
5428
5429 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5430
5431         * config/avr/avr-devices.c: Delete SVN property svn:executable.
5432         * config/avr/predicates.md: Ditto.
5433         * config/avr/driver-avr.c: Ditto.
5434         * config/avr/genopt.sh: Set SVN property svn:executable to *.
5435
5436 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * calls.c (emit_library_call_value_1): Declare size only if
5439         BLOCK_REG_PADDING is defined.
5440
5441 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
5442
5443         PR target/49547
5444         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5445         (x86_64-*-*): Likewise.
5446         * config/i386/i386.opt (mlzcnt): New.
5447         * config/i386/abmintrin.h: File removed.
5448         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
5449         * config/i386/lzcntintrin.h: ... here.  New file.
5450         (__lzcnt): Rename to ...
5451         (__lzcnt32): ... this.
5452         * config/i386/bmiintrin.h (head): Update copyright year.
5453         (__lzcnt_u16): Removed.
5454         (__lzcnt_u32): Likewise.
5455         (__lzcnt_u64): Likewise.
5456         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
5457         is defined, remove abmintrin.h.
5458         * config/i386/cpuid.h (bit_LZCNT): New.
5459         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5460         LZCNT feature.
5461         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5462         __LZCNT__ if needed.
5463         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
5464         (ix86_option_override_internal): Handle LZCNT option.
5465         (ix86_valid_target_attribute_inner_p): Likewise.
5466         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
5467         * config/i386/i386.h (TARGET_LZCNT): New.
5468         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
5469         * config/i386/i386.md (clz<mode>2): Update insn constraint.
5470         (clz<mode>2_lzcnt): Likewise.
5471         * doc/invoke.texi: Mention -mlzcnt option.
5472         * doc/extend.texi: Likewise.
5473
5474 2011-08-01  Julian Brown  <julian@codesourcery.com>
5475
5476         * configure.ac (fixed-point): Add ARM support.
5477         * configure: Regenerate.
5478         * config/arm/arm.c (arm_fixed_mode_set): New struct.
5479         (arm_set_fixed_optab_libfunc): New.
5480         (arm_set_fixed_conv_libfunc): New.
5481         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
5482         ARM-specific names.
5483         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
5484         return values in SImode.
5485         (arm_return_in_msb): Return fixed-point types in the msb.
5486         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
5487         upwards.
5488         (arm_scalar_mode_supported_p): Support fixed-point modes.
5489         (arm_vector_mode_supported_p): Support vector fixed-point modes.
5490         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
5491         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
5492         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
5493         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
5494         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
5495         New mode iterators.
5496         (qaddsub_suf): New mode attribute.
5497         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
5498         vector modes.
5499         * config/arm/predicates.md (sat_shift_operator): New predicate.
5500         * config/arm/arm-fixed.md: New.
5501         * config/arm/arm.md: Include arm-fixed.md.
5502         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
5503
5504 2011-08-01  Julian Brown  <julian@codesourcery.com>
5505
5506         * calls.c (emit_library_call_value_1): Support padding for libcall
5507         arguments and return values.
5508         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
5509         downwards in big-endian mode.
5510
5511 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5512
5513         PR debug/49887
5514         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
5515         * config/sol2-protos.h: Likewise.
5516         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
5517         solaris_code_end.
5518         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
5519         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
5520         solaris_file_end.
5521         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
5522
5523 2011-08-01  Julian Brown  <julian@codesourcery.com>
5524
5525         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
5526
5527 2011-08-01  Julian Brown  <julian@codesourcery.com>
5528
5529         * final.c (output_addr_const): Print fixed-point constants as
5530         decimal not hex.
5531
5532 2011-08-01  Richard Guenther  <rguenther@suse.de>
5533
5534         * stor-layout.c (initialize_sizetypes): Properly sign-extend
5535         bitsiztype TYPE_MAX_VALUE.
5536
5537 2011-08-01  Julian Brown  <julian@codesourcery.com>
5538
5539         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
5540         comparison helpers.
5541
5542 2011-07-31  Richard Henderson  <rth@redhat.com>
5543
5544         * config/h8300/crti.asm: Add flags to .section directive.
5545         * config/h8300/crtn.asm: Likewise.
5546
5547 2011-07-31  Richard Henderson  <rth@redhat.com>
5548
5549         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
5550         * tree.c (build_common_tree_nodes): Likewise.
5551
5552 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5553
5554         PR target/49880
5555         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
5556         (divsi3_i1): Likewise.
5557
5558 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5559
5560         PR tree-optimization/49749
5561         * tree-ssa-reassoc.c (get_rank): New forward declaration.
5562         (PHI_LOOP_BIAS): New macro.
5563         (phi_rank): New function.
5564         (loop_carried_phi): Likewise.
5565         (propagate_rank): Likewise.
5566         (get_rank): Add calls to phi_rank and propagate_rank.
5567
5568 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5569
5570         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
5571         of TARGET_64BIT.
5572         (PTRDIFF_TYPE): Likewise.
5573
5574 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
5575
5576         PR target/49920
5577         * config/i386/i386.md (strset): Do not expand strset_singleop
5578         when %eax or $edi are fixed.
5579         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
5580         (*strsetsi_1): Ditto.
5581         (*strsethi_1): Ditto.
5582         (*strsetqi_1): Ditto.
5583         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
5584         (*rep_stossi): Ditto.
5585         (*rep_stosqi): Ditto.
5586         (*strlenqi_1): Ditto.
5587         (cmpstrnsi): Also fail when %ecx is fixed.
5588         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
5589         (*cmpstrnqi_1): Ditto.
5590         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
5591         (*strmovsi_1): Ditto.
5592         (*strmovhi_1): Ditto.
5593         (*strmovqi_1): Ditto.
5594         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
5595         (*rep_movsi): Ditto.
5596         (*rep_movqi): Ditto.
5597
5598 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
5599
5600         PR target/47908
5601         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
5602         Disable instruction scheduling for non-ColdFire targets.
5603         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5604
5605 2011-07-31  Revital Eres  <revital.eres@linaro.org>
5606
5607         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
5608         of anti-dep edge from a branch.
5609         (add_cross_iteration_register_deps): Create anti-dep edge from
5610         a branch.
5611
5612 2011-07-31  Revital Eres  <revital.eres@linaro.org>
5613
5614         * modulo-sched.c: Change comment.
5615         (reset_sched_times): Fix print message.
5616         (print_partial_schedule): Add print info.
5617
5618 2011-07-31  Tom de Vries  <tom@codesourcery.com>
5619
5620         PR middle-end/43513
5621         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
5622         get_object_alignment and TYPE_ALIGN.
5623
5624 2011-07-30  Tom de Vries  <tom@codesourcery.com>
5625
5626         PR middle-end/43513
5627         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
5628         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
5629
5630 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5631
5632         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
5633         <sys/sbd.h>.
5634         (cpu_types): New array.
5635         (cputype): New function.
5636         (host_detect_local_cpu): Only define buf, f if !__sgi__.
5637         Use scaninvent instead of /proc/cpuinfo if __sgi__.
5638         * config.host: Also use driver-native.o, mips/x-native on
5639         mips-sgi-irix*.
5640         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
5641         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
5642         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
5643
5644 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
5645
5646         PR middle-end/49897
5647         PR middle-end/49898
5648         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
5649         in nested parallel and outer is a gimple_reg, mark it as addressable
5650         and set its bit in task_shared_vars bitmap too.
5651
5652 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
5653
5654         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
5655
5656 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5657
5658         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
5659         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
5660         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
5661         AMASK_LOCKPFTCHOK): Define.
5662         (host_detect_local_cpu): Remove buf, f, cpu_names.
5663         Define cpu_types, implver, amask.
5664         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
5665         native CPU.
5666         * config.host: Also use driver-alpha.o, alpha/x-alpha on
5667         alpha*-dec-osf*.
5668         * config/alpha/osf5.h [__alpha__ || __alpha]
5669         (host_detect_local_cpu): Declare.
5670         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5671         (DRIVER_SELF_SPECS): Define.
5672
5673 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
5674
5675         PR target/47715
5676         * config/i386/i386.md (*load_tp_x32): New.
5677         (*load_tp_x32_zext): Ditto.
5678         (*add_tp_x32): Ditto.
5679         (*add_tp_x32_zext): Ditto.
5680         (*load_tp_<mode>): Disable for TARGET_X32 targets.
5681         (*add_tp_<mode>): Ditto.
5682         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5683         ptr_mode and convert to Pmode if needed.
5684
5685 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
5686
5687         PR target/49687
5688         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5689         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5690         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5691         Add X to register footprint: Clobber r26/r27.
5692
5693 2011-07-29  Richard Guenther  <rguenther@suse.de>
5694
5695         * builtins.c (fold_builtin_signbit): Build the comparison
5696         with a proper type.
5697
5698 2011-07-29  Richard Guenther  <rguenther@suse.de>
5699
5700         PR tree-optimization/49893
5701         * tree-predcom.c (suitable_reference_p): Volatile references
5702         are not suitable.
5703
5704 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
5705
5706         PR target/49313
5707         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5708         (__ctzsi2): Result for 0 may be undefined.
5709         (__ctzhi2): Result for 0 may be undefined.
5710         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5711         (__popcountsi2): Ditto. And don't clobber r26.
5712         (__popcountdi2): Ditto. And don't clobber r27.
5713         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5714         (parityhi2): New expand.
5715         (paritysi2): New expand.
5716         (popcounthi2): New expand.
5717         (popcountsi2): New expand.
5718         (clzhi2): New expand.
5719         (clzsi2): New expand.
5720         (ctzhi2): New expand.
5721         (ctzsi2): New expand.
5722         (ffshi2): New expand.
5723         (ffssi2): New expand.
5724         (copysignsf3): New insn.
5725         (bswapsi2): New expand.
5726         (*parityhi2.libgcc): New insn.
5727         (*parityqihi2.libgcc): New insn.
5728         (*paritysihi2.libgcc): New insn.
5729         (*popcounthi2.libgcc): New insn.
5730         (*popcountsi2.libgcc): New insn.
5731         (*popcountqi2.libgcc): New insn.
5732         (*popcountqihi2.libgcc): New insn-and-split.
5733         (*clzhi2.libgcc): New insn.
5734         (*clzsihi2.libgcc): New insn.
5735         (*ctzhi2.libgcc): New insn.
5736         (*ctzsihi2.libgcc): New insn.
5737         (*ffshi2.libgcc): New insn.
5738         (*ffssihi2.libgcc): New insn.
5739         (*bswapsi2.libgcc): New insn.
5740
5741 2011-07-29  Richard Guenther  <rguenther@suse.de>
5742
5743         * tree-vrp.c (get_value_range): Only set parameter default
5744         definitions to varying, leave others at undefined.
5745         (extract_range_from_binary_expr): Fix undefined handling.
5746         (vrp_visit_phi_node): Handle merged undefined state.
5747
5748 2011-07-29  Wei Guozhi  <carrot@google.com>
5749
5750         PR rtl-optimization/49799
5751         * combine.c (make_compound_operation): Check if the bit field is valid
5752         before change it to bit field extraction.
5753
5754 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5755
5756         PR rtl-optimization/49891
5757         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5758         newly created returnjumps.
5759
5760 2011-07-28  DJ Delorie  <dj@redhat.com>
5761
5762         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5763         local frame in a naked function, and produce a suitable error for
5764         that specific case.
5765
5766         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5767         registers to be reloaded in HI classes when the target is HI.
5768
5769 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
5770
5771         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5772         bound_one, bound_two.
5773
5774 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
5775
5776         PR middle-end/48648
5777         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5778         CLAST assignments.
5779         (translate_clast): Same.
5780         (translate_clast_assignment): New.
5781
5782 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
5783
5784         PR tree-optimization/49876
5785         * sese.c (rename_uses): Do not return false on gloog_error: set
5786         the new_expr to integer_zero_node and continue code generation.
5787         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5788
5789 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
5790
5791         PR debug/49846
5792         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5793         arguments also check if they aren't initialized with a MODE_INT
5794         mode of the same size.
5795
5796 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
5797
5798         * expr.c (get_bit_range): Handle *MEM_REF's.
5799
5800 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
5801
5802         * rtlanal.c (tablejump_p): False for returns.
5803         * reorg.c (first_active_target_insn): New static function.
5804         (find_end_label): Set JUMP_LABEL for a new returnjump.
5805         (optimize_skip, get_jump_flags, rare_destination,
5806         mostly_true_jump, get_branch_condition,
5807         steal_delay_list_from_target, own_thread_p,
5808         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5809         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5810         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5811         * jump.c (delete_related_insns): Likewise.
5812         (jump_to_label_p): New function.
5813         (redirect_target): New static function.
5814         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
5815         (redirect_jump_1): Assert that the new label is nonnull.
5816         (redirect_jump): Likewise.
5817         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5818         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5819         exit block.
5820         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
5821         changed.  Ensure that the right label is passed to redirect_jump.
5822         * function.c (emit_return_into_block,
5823         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5824         ret_rtx in their JUMP_LABEL.
5825         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5826         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5827         pass ret_rtx as label.
5828         * cfglayout.c (fixup_reorder_chain): Use
5829         force_nonfallthru_and_redirect rather than force_nonfallthru.
5830         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5831         * rtl.h (ANY_RETURN_P): New macro.
5832         (jump_to_label_p): Declare.
5833         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5834         JUMP_LABELs.
5835         (mark_target_live_regs): Likewise.
5836         * basic-block.h (force_nonfallthru_and_redirect): Declare.
5837         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5838         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5839         alpha_tablejump_best_label): Remove functions.
5840         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5841         alpha_tablejump_best_label): Remove declarations.
5842         * config/sh/sh.c (barrier_align, split_branches): Adjust for
5843         ret_rtx in JUMP_LABELs.
5844         * config/arm/arm.c (is_jump_table): Likewise.
5845
5846 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5847
5848         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5849         special predicate.  Remove explicit mode checks.
5850
5851 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
5852
5853         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5854         DW_AT_data_member_location containing just DW_OP_plus_uconst.
5855
5856         PR debug/49871
5857         * dwarf2out.c (size_of_die, value_format, output_die): Use
5858         DW_FORM_udata instead of DW_FORM_data[48] for
5859         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5860
5861 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5862
5863         * config/i386/i386.md (*tls_global_dynamic_64): Update
5864         length attribute.
5865
5866 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5867
5868         PR target/47715
5869         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5870         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
5871         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5872         (tls_dynamic_gnu2_64): Ditto.
5873         (*tls_dynamic_gnu2_lea_64): Ditto.
5874         (*tls_dynamic_gnu2_call_64): Ditto.
5875         (*tls_dynamic_gnu2_combine_64): Ditto.
5876
5877 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5880
5881 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         PR target/47364
5884         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5885
5886 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5887
5888         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5889         before the core constraints. Adjust attributes.
5890         ("*thumb2_movdf_vfp"): Likewise.
5891
5892 2011-07-28  Kai Tietz  <ktietz@redhat.com>
5893
5894         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5895         (simplify_truth_ops_using_ranges): Likewise.
5896         (build_assert_expr_for): Likewise.
5897         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5898         and handle BIT_NOT_EXPR for truth-operation.
5899
5900 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5901
5902         PR target/49313
5903         Undo r176835 from trunk
5904         2011-07-27  Georg-Johann Lay
5905
5906 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
5907
5908         PR target/49687
5909         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5910         Add _muluhisi3, _mulshisi3, _usmulhisi3.
5911         * config/avr/libgcc.S (__mulsi3): Rewrite.
5912         (__mulhisi3): Rewrite.
5913         (__umulhisi3): Rewrite.
5914         (__usmulhisi3): New.
5915         (__muluhisi3): New.
5916         (__mulshisi3): New.
5917         (__mulohisi3): New.
5918         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5919         declare.
5920         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5921         (pseudo_register_or_const_int_operand): New.
5922         (combine_pseudo_register_operand): New.
5923         (u16_operand): New.
5924         (s16_operand): New.
5925         (o16_operand): New.
5926         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5927         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5928         (any_extend, any_extend2): New code iterators.
5929         (extend_prefix): New code attribute.
5930         (mulsi3): Rewrite. Turn insn to expander.
5931         (mulhisi3): Ditto.
5932         (umulhisi3): Ditto.
5933         (usmulhisi3): New expander.
5934         (*mulsi3): New insn-and-split.
5935         (mulu<mode>si3): New insn-and-split.
5936         (muls<mode>si3): New insn-and-split.
5937         (mulohisi3): New insn-and-split.
5938         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5939         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5940         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5941         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5942         insn-and-split.
5943         (*mulsi3_call): Rewrite.
5944         (*mulhisi3_call): Rewrite.
5945         (*umulhisi3_call): Rewrite.
5946         (*usmulhisi3_call): New insn.
5947         (*muluhisi3_call): New insn.
5948         (*mulshisi3_call): New insn.
5949         (*mulohisi3_call): New insn.
5950         (extendqihi2): Use combine_pseudo_register_operand as predicate
5951         for operand 1.
5952         (extendqisi2): Ditto.
5953         (zero_extendqihi2): Ditto.
5954         (zero_extendqisi2): Ditto.
5955         (zero_extendhisi2): Ditto.
5956         (extendhisi2): Ditto. Don't early-clobber operand 0.
5957
5958 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
5959
5960         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5961
5962 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5963
5964         PR tree-optimization/49471
5965         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5966         iv only when the largest type is unsigned.  Do not call
5967         lang_hooks.types.type_for_size.
5968
5969 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5970
5971         PR middle-end/45450
5972         * graphite-poly.c (apply_poly_transforms): Disable legality check
5973         after an openscop read.
5974
5975 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
5976
5977         PR middle-end/47691
5978         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5979         copy_bb_and_scalar_dependences.
5980         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
5981         (graphite_copy_stmts_from_block): Update call to rename_uses.
5982         (copy_bb_and_scalar_dependences): Update call to
5983         graphite_copy_stmts_from_block.
5984         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5985
5986 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
5987
5988         PR target/49313
5989         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5990         (__ctzsi2): Result for 0 may be undefined.
5991         (__ctzhi2): Result for 0 may be undefined.
5992         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5993         (__popcountsi2): Ditto. And don't clobber r26.
5994         (__popcountdi2): Ditto. And don't clobber r27.
5995         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5996         (parityhi2): New expand.
5997         (paritysi2): New expand.
5998         (popcounthi2): New expand.
5999         (popcountsi2): New expand.
6000         (clzhi2): New expand.
6001         (clzsi2): New expand.
6002         (ctzhi2): New expand.
6003         (ctzsi2): New expand.
6004         (ffshi2): New expand.
6005         (ffssi2): New expand.
6006         (copysignsf3): New insn.
6007         (bswapsi2): New expand.
6008         (*parityhi2.libgcc): New insn.
6009         (*parityqihi2.libgcc): New insn.
6010         (*paritysihi2.libgcc): New insn.
6011         (*popcounthi2.libgcc): New insn.
6012         (*popcountsi2.libgcc): New insn.
6013         (*popcountqi2.libgcc): New insn.
6014         (*popcountqihi2.libgcc): New insn-and-split.
6015         (*clzhi2.libgcc): New insn.
6016         (*clzsihi2.libgcc): New insn.
6017         (*ctzhi2.libgcc): New insn.
6018         (*ctzsihi2.libgcc): New insn.
6019         (*ffshi2.libgcc): New insn.
6020         (*ffssihi2.libgcc): New insn.
6021         (*bswapsi2.libgcc): New insn.
6022
6023 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6024
6025         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6026         the mode of symbolic_opreand RTXes.
6027
6028 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6029
6030         * config/i386/predicates.md (x86_64_movabs_operand): Return false
6031         for pic_32bit_operand RTXes.
6032         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6033         in DImode.
6034
6035 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6036
6037         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6038         for 32-bit, too.
6039         (ix86_handle_abi_attribute): Allow function attributes
6040         ms_abi/sysv_abi in 32-bit mode, too.
6041         * doc/extend.texi: Adjust attribute documentation.
6042
6043         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6044         expression handling.
6045         (and_var_with_comparison_1): Likewise.
6046
6047 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
6048
6049         * params.h (ALLOW_STORE_DATA_RACES): New.
6050         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6051         * Makefile.in (expr.o): Depend on PARAMS_H.
6052         * machmode.h (get_best_mode): Add argument.
6053         * fold-const.c (optimize_bit_field_compare): Add argument to
6054         get_best_mode.
6055         (fold_truthop): Same.
6056         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6057         * expr.c (emit_group_store): Same.
6058         (copy_blkmode_from_reg): Same.
6059         (write_complex_part): Same.
6060         (optimize_bitfield_assignment_op): Add argument.
6061         Add argument to get_best_mode.
6062         (get_bit_range): New.
6063         (expand_assignment): Calculate maxbits and pass it down accordingly.
6064         (store_field): New argument.
6065         (expand_expr_real_2): New argument to store_field.  Include params.h.
6066         * expr.h (store_bit_field): New argument.
6067         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6068         into account maxbits.
6069         * calls.c (store_unaligned_arguments_into_pseudos): New argument
6070         to store_bit_field.
6071         * expmed.c (store_bit_field_1): New argument.  Use it.
6072         (store_bit_field): Same.
6073         (store_fixed_bit_field): Same.
6074         (store_split_bit_field): Same.
6075         (extract_bit_field_1): Pass new argument to get_best_mode.
6076         (extract_bit_field): Same.
6077         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6078         * doc/invoke.texi: Document parameter allow-store-data-races.
6079
6080 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
6081
6082         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6083
6084 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6085
6086         * tree-vrp.c (extract_range_from_binary_expr): Remove
6087         TRUTH-binary cases and add new bitwise-cases.
6088         (extract_range_from_assignment): Likewise.
6089         (register_edge_assert_for_1): Likeiwise.
6090         (register_edge_assert_for): Likewise.
6091         (simplify_truth_ops_using_ranges): Likewise.
6092         (simplify_stmt_using_ranges): Likewise.
6093
6094 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
6095
6096         PR target/47372
6097         * config/i386/i386.c (ix86_delegitimize_address): Call
6098         simplify_gen_subreg for PIC with mode of x only if modes of
6099         x and orig_x are different.
6100
6101 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
6102
6103         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6104         to GC allocated copy of the string.
6105         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6106         before .debug_line, not after it.
6107
6108 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6109
6110         PR middle-end/47046
6111         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6112         evolution_function_is_affine_p on CHREC_RIGHT.
6113
6114 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6115
6116         * tree-data-ref.c (max_stmt_executions_tree): Do not call
6117         lang_hooks.types.type_for_size.
6118
6119 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6120
6121         PR middle-end/47653
6122         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6123         loops using wrapping semantics.
6124
6125 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6126
6127         PR middle-end/48805
6128         * tree-scalar-evolution.c (instantiate_scev_r): Return
6129         chrec_dont_know for ADDR_EXPR.
6130
6131 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6132             H.J. Lu  <hongjiu.lu@intel.com>
6133
6134         PR target/47369
6135         PR target/49853
6136         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6137         if legitimize_tls_address returned operand in wrong mode. Allow
6138         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
6139         if legitimize_pic_address returned operand in wrong mode.
6140
6141 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6142
6143         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6144         return false for invariants.
6145
6146 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6147
6148         * config/i386/i386.md (add->lea splitter): Implement using SWI
6149         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
6150         (add->lea zext splitter): Change operand 2 predicate to
6151         x86_64_nonmemory_operand.
6152
6153 2011-07-26  Richard Guenther  <rguenther@suse.de>
6154
6155         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6156         frequency makes everything hot.
6157
6158 2011-07-26  Richard Guenther  <rguenther@suse.de>
6159
6160         PR tree-optimization/49840
6161         * tree-vrp.c (range_fits_type_p): Properly handle full
6162         double-int precision.
6163
6164 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6165
6166         PR bootstrap/49786
6167         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6168         counts.
6169         (update_specialized_profile): Likewise.
6170
6171 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6172             H.J. Lu  <hongjiu.lu@intel.com>
6173
6174         PR target/47381
6175         PR target/49832
6176         PR target/49833
6177         * config/i386/i386.md (i): Change SImode attribute to "e".
6178         (g): Change SImode attribute to "rme".
6179         (di): Change SImode attribute to "nF".
6180         (general_operand): Change SImode attribute to x86_64_general_operand.
6181         (general_szext_operand): Change SImode attribute to
6182         x86_64_szext_general_operand.
6183         (immediate_operand): Change SImode attribute to
6184         x86_64_immediate_operand.
6185         (nonmemory_operand): Change SImode attribute to
6186         x86_64_nonmemory_operand.
6187         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6188         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
6189         (*lea_1): Use SWI48 mode iterator.
6190         (*lea_1_zext): New insn pattern.
6191         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6192         (*bt<mode>): Ditto.
6193         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6194         Update operand constraints.
6195         (addsi_1_zext): Ditto.
6196         (*add<mode>2): Ditto.
6197         (*addsi_3_zext): Ditto.
6198         (*subsi_1_zext): Ditto.
6199         (*subsi_2_zext): Ditto.
6200         (*subsi_3_zext): Ditto.
6201         (*addsi3_carry_zext): Ditto.
6202         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6203         (*mulsi3_1_zext): Ditto.
6204         (*andsi_1): Ditto.
6205         (*andsi_1_zext): Ditto.
6206         (*andsi_2_zext): Ditto.
6207         (*<any_or:code>si_1_zext): Ditto.
6208         (*<any_or:code>si_2_zext): Ditto.
6209         (*test<mode>_1): Use <general_operand> predicate for operand 1.
6210         (*and<mode>_2): Ditto.
6211         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
6212         (add->lea splitter): Check operand modes in insn constraint.  Extend
6213         operands less than SImode wide to SImode.
6214         (add->lea zext splitter): Do not extend input operands to DImode.
6215         (*lea_general_1): Handle only QImode and HImode operands.
6216         (*lea_general_2): Ditto.
6217         (*lea_general_3): Ditto.
6218         (*lea_general_1_zext): Remove.
6219         (*lea_general_2_zext): Ditto.
6220         (*lea_general_3_zext): Ditto.
6221         (*lea_general_4): Check operand modes in insn constraint.  Extend
6222         operands less than SImode wide to SImode.
6223         (ashift->lea splitter): Ditto.
6224         * config/i386/i386.c (ix86_print_operand_address): Print address
6225         registers with 'q' modifier on 64bit targets.
6226         * config/i386/predicates.md (pic_32bit_opreand): Define as special
6227         predicate.  Reject non-SI and non-DI modes.
6228
6229 2011-07-25  Andrew Pinski  <apinski@cavium.com>
6230
6231         PR tree-opt/49671
6232         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6233         TREE_THIS_NOTRAP into the inner most MEM_REF.
6234         Always copy TREE_THIS_VOLATILE.
6235         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6236         arguments are not volatile references.
6237
6238 2011-07-25  Richard Henderson  <rth@redhat.com>
6239
6240         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6241         * final.c (final_scan_insn): Don't test for it.
6242         (rest_of_clean_state): Likewise.
6243
6244 2011-07-25  Richard Henderson  <rth@redhat.com>
6245
6246         PR debug/49841
6247         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6248         (emit_frame_save): Likewise.
6249         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6250         insn onto a dummy blockage insn after the join label.
6251
6252 2011-07-25  Richard Henderson  <rth@redhat.com>
6253
6254         * dwarf2cfi.c (dw_trace_info): Add ID member.
6255         (get_trace_index): Remove.  Change users to use ID member.
6256         (before_next_cfi_note): New.
6257         (connect_traces): Remove unreachable traces before the main loop.
6258         Look across one trace and generate remember/restore_state if needed.
6259
6260 2011-07-25  Richard Henderson  <rth@redhat.com>
6261
6262         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6263
6264 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
6265
6266         * genattr.c (write_upcase, gen_attr <enum definition writing>):
6267         Move to ...
6268         * genattr-common.c ... here.
6269         (main): Call gen_attr.
6270         * optc-gen.awk: Make generated program include insn-attr-common.h .
6271         * Makefile.in (oprions.o): Depend on insn-attr-common.h
6272
6273 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6274
6275         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6276         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6277         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6278         m32c_print_operand, m32c_print_operand_address): Remove.
6279         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6280         Change return type to bool. Change argument type to bool.
6281         (m32c_print_operand, m32c_print_operand_address): Make static.
6282         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6283         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6284
6285 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6286
6287         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6288         attributes): Document mmap.
6289
6290 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6291
6292         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6293         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6294         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6295         mmix_print_operand, mmix_print_operand_address): Remove.
6296         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6297         Change return type to bool. Change argument type to bool.
6298         (mmix_print_operand, mmix_print_operand_address): Make static.
6299         (mmix_intval, mmix_output_condition): Change 'x' argument type
6300         to const_rtx.
6301         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6302         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6303
6304 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
6305
6306         PR target/39386
6307         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6308         shift counter for x << x and x >> x shifts.
6309
6310 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6311
6312         PR target/47124
6313         * config.gcc: Reject *-*-solaris2 configuration.
6314
6315 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
6316
6317         PR tree-optimization/49809
6318         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6319         gimple_get_lhs instead of gimple_assign_lhs.
6320
6321 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6322
6323         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6324
6325 2011-07-25  Richard Guenther  <rguenther@suse.de>
6326
6327         PR tree-optimization/49822
6328         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6329         more.  Make sure to preserve stmts with side-effects.  Properly
6330         handle virtual defs, follow a longer def chain.
6331
6332 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
6333
6334         PR plugins/45348
6335         PR plugins/48425
6336         PR plugins/46577
6337         * Makefile.in: Do not flatten c-family directory when installing
6338         plugin headers.
6339
6340 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6341
6342         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
6343         original nodes if we are dealing with virtual clones.
6344
6345 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
6346
6347         * common/config/c6x/c6x-common.c: New file.
6348
6349 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
6350
6351         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
6352
6353 2011-07-25  Richard Guenther  <rguenther@suse.de>
6354
6355         PR tree-optimization/49715
6356         * tree-vrp.c: Include expr.h and optabs.h.
6357         (range_fits_type_): New function.
6358         (simplify_float_conversion_using_ranges): Likewise.
6359         (simplify_stmt_using_ranges): Call it.
6360         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
6361         * optabs.c (can_float_p): Export.
6362         * optabs.h (can_float_p): Declare.
6363
6364 2011-07-25  Richard Guenther  <rguenther@suse.de>
6365
6366         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
6367         (get_value_range): For out-of-range SSA names or names created
6368         after propagation return a read-only varying range.
6369         (dump_all_value_ranges): Adjust.
6370         (vrp_initialize): Likewise.
6371         (vrp_finalize): Likewise.
6372
6373 2011-07-24  Richard Henderson  <rth@redhat.com>
6374
6375         PR debug/49831
6376         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
6377         them entirely.
6378
6379 2011-07-24  Richard Henderson  <rth@redhat.com>
6380
6381         PR debug/49825
6382         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
6383         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
6384
6385 2011-07-24  Richard Henderson  <rth@redhat.com>
6386
6387         PR debug/49827
6388         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
6389
6390 2011-07-24  Richard Henderson  <rth@redhat.com>
6391
6392         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
6393         Zero args_size for abnormal edges.  Adjust all callers.
6394
6395 2011-07-24  Richard Henderson  <rth@redhat.com>
6396
6397         PR debug/49825
6398         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
6399
6400 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
6401
6402         PR bootstrap/49835
6403         * collect2.c (demangle_flag): Removed.
6404
6405 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
6406
6407         * configure.ac (demangler_in_ld): Default to yes.
6408         * configure: Regenerated.
6409         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
6410         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
6411         --no-demangle options straight through to ld.  When
6412         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
6413         way that has the intended effect on Windows.
6414
6415 2011-07-23  Richard Henderson  <rth@redhat.com>
6416
6417         * dwarf2cfi.c: Include basic-block.h.
6418         (dw_label_info): Remove.
6419         (trace_work_list, trace_index): New.
6420         (remember_row, emit_cfa_remember): Remove.
6421         (dw_trace_info_hash, dw_trace_info_eq): New.
6422         (get_trace_index, get_trace_info): New.
6423         (save_point_p): New.
6424         (free_cfi_row): Remove.
6425         (add_cfi): Do not emit DW_CFA_remember_state.
6426         (cfa_row_equal_p): New.
6427         (barrier_args_size): Remove.
6428         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
6429         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
6430         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
6431         (dwarf2out_cfi_begin_epilogue): Remove.
6432         (dwarf2out_frame_debug_restore_state): Remove.
6433         (connect_traces, create_pseudo_cfg): New.
6434         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
6435         * Makefile.in (dwarf2cfi.o): Update.
6436
6437 2011-07-23  Richard Henderson  <rth@redhat.com>
6438
6439         * dwarf2cfi.c (dw_trace_info): New.
6440         (dw_label_info): New.
6441         (cie_return_save): New.
6442         (cur_trace): New.
6443         (queued_args_size): Rename from args_size.  Update all users.
6444         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
6445         (def_cfa_1): Use cur_trace instead of cfa_*.
6446         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
6447         (clobbers_queued_reg_save, reg_saved_in): Likewise.
6448         (dwarf2out_frame_debug_expr): Likewise.
6449         (create_cie_data): Split out from ...
6450         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
6451
6452 2011-07-23  Richard Henderson  <rth@redhat.com>
6453
6454         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
6455         Update all users to match.
6456         (execute_dwarf2_frame): Free reg_saved_in_data.
6457
6458 2011-07-23  Richard Henderson  <rth@redhat.com>
6459
6460         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
6461         (queued_reg_saves): Don't GTY.  Change to a VEC.
6462         (queue_reg_save): Update to match.
6463         (dwarf2out_flush_queued_reg_saves): Likewise.
6464         (clobbers_queued_reg_save): Likewise.
6465         (reg_saved_in): Likewise.
6466         (execute_dwarf2_frame): Free queued_reg_saves.
6467
6468 2011-07-23  Richard Henderson  <rth@redhat.com>
6469
6470         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
6471
6472 2011-07-23  Richard Henderson  <rth@redhat.com>
6473
6474         * dwarf2cfi.c (add_cfi_args_size): Split out from...
6475         (dwarf2out_args_size): ... here.
6476         (add_cfi_restore): Split out from ...
6477         (dwarf2out_frame_debug_cfa_restore): ... here.
6478         (def_cfa_0): Split out from ...
6479         (def_cfa_1): ... here.
6480         (cfi_oprnd_equal_p, cfi_equal_p): New.
6481         (change_cfi_row): New.
6482         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
6483         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
6484         (output_cfis): Remove.
6485         * dwarf2out.c (output_fde): Simplify output_cfi loop.
6486         (dwarf2out_switch_text_section): Don't call output_cfis.
6487         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
6488         * dwarf2out.h: Update decls.
6489         (enum dw_val_class): Add dw_val_class_none.
6490
6491 2011-07-23  Richard Henderson  <rth@redhat.com>
6492
6493         * dwarf2cfi.c (update_row_reg_save): New.
6494         (dwarf2out_frame_debug_cfa_expression): Use it.
6495         (dwarf2out_frame_debug_cfa_restore): Likewise.
6496         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
6497
6498 2011-07-23  Richard Henderson  <rth@redhat.com>
6499
6500         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
6501
6502 2011-07-23  Richard Henderson  <rth@redhat.com>
6503
6504         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
6505         (cie_cfi_row): New.
6506         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
6507         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
6508         (cur_row, remember_row): New.
6509         (def_cfa_1): Use cur_row instead of the old_* variables.
6510         (dwarf2out_frame_debug_restore_state): Similarly.
6511         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
6512         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
6513         (dwarf2out_frame_debug_adjust_cfa): Likewise.
6514         (dwarf2out_frame_debug_cfa_offset): Likewise.
6515         (dwarf2out_frame_debug_expr): Likewise.
6516         (execute_dwarf2_frame): Set up cur_row.
6517         * dwarf2out.h (struct cfa_loc): Mark for GTY.
6518
6519 2011-07-23  Richard Henderson  <rth@redhat.com>
6520
6521         * basic-block.h (EDGE_PRESERVE): New.
6522         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
6523         * bb-reorder.c: Include except.h.
6524         (fix_up_crossing_landing_pad): New.
6525         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
6526         landing pads in the right partition.  Duplicate as necessary.
6527         (partition_hot_cold_basic_blocks): Fix up DF info after
6528         duplicating landing pads.
6529         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
6530         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
6531         is set properly.  Validate that EH edges are not CROSSING.
6532         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
6533         (dw2_build_landing_pads): ... here.
6534         (convert_to_eh_region_ranges): Remove code to fixup crossing
6535         landing pads.
6536         * except.h (expand_dw2_landing_pad_for_region): Declare.
6537         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
6538
6539 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
6540
6541         PR target/49816
6542         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
6543
6544 2011-07-22  Jason Merrill  <jason@redhat.com>
6545
6546         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
6547
6548 2011-07-22  Richard Henderson  <rth@redhat.com>
6549
6550         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
6551
6552 2011-07-22  Richard Henderson  <rth@redhat.com>
6553
6554         * jump.c (maybe_propagate_label_ref): Split out of...
6555         (mark_all_labels): ... here.  Do not attempt label_ref
6556         propagation while in cfglayout mode.
6557
6558 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
6559
6560         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
6561         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
6562         (dwarf_attr_name): Handle DW_AT_GNU_macros.
6563         (dwarf2out_define): If the vector is empty and
6564         lineno is 0, emit a dummy entry first.
6565         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
6566         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
6567         optimize_macinfo_range): New functions.
6568         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
6569         mergeable, optimize longer strings using
6570         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
6571         optimize longer sequences of define/undef ops from headers
6572         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
6573         emit a section headers.
6574         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
6575         and macinfo_section_label to DEBUG_MACRO_SECTION
6576         resp. DEBUG_MACRO_SECTION_LABEL.
6577         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
6578         instead of DW_AT_macro_info.
6579
6580         PR other/32998
6581         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
6582         options.
6583         * dwarf2out.c: Include opts.h.
6584         (dchar_p): New typedef.  Define heap VEC for it.
6585         (producer_string): New variable.
6586         (gen_producer_string): New function.
6587         (gen_compile_unit_die): Use it.
6588         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
6589         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
6590         * doc/invoke.texi: Document -grecord-gcc-switches and
6591         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
6592         to -frecord-gcc-switches description.
6593
6594 2011-07-22  Jason Merrill  <jason@redhat.com>
6595
6596         PR c++/30112
6597         * c-decl.c (c_linkage_bindings): Define.
6598
6599 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
6600
6601         PR debug/49815
6602         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
6603
6604 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
6605
6606         * config/i386/i386.c (ix86_option_override_internal): Disallow
6607         MS ABI in x32 mode.
6608         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
6609         only for TARGET_LP64.
6610         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
6611
6612 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6613
6614         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
6615         avoid warnings when GCC is built with a C++ compiler.
6616
6617 2011-07-22  Martin Jambor  <mjambor@suse.cz>
6618
6619         PR lto/49796
6620         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
6621         if decl node is in another partition, call cgraph_get_node only once.
6622
6623 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
6624
6625         * config.gcc (x86_64-*-linux*): Set
6626         default_gnu_indirect_function to yes.
6627
6628 2011-07-22  Richard Guenther  <rguenther@suse.de>
6629
6630         PR tree-optimization/45819
6631         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6632         preserve volatile and notrap flags.
6633
6634 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6635             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6636
6637         PR bootstrap/49794
6638         * configure.ac: Test AM_ICONV with CXX.
6639         * configure: Regenerate.
6640         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
6641
6642 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6643
6644         PR bootstrap/49797
6645         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
6646         (set_cloog_options): Use it.
6647
6648 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
6649
6650         PR c++/49756
6651         * gcc.c (main): Call stack_limit_increase (64MB).
6652         * toplev.c (toplev_main): Likewise.
6653
6654 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6655
6656         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
6657         instead of force_reg.
6658
6659 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6660
6661         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
6662         needed and use force_reg after convert.
6663         (ix86_expand_call): Likewise.
6664         (ix86_expand_special_args_builtin): Likewise.
6665         (ix86_expand_builtin): Likewise.
6666
6667 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6668
6669         PR middle-end/47654
6670         PR middle-end/49649
6671         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6672         in parameter.  Initialize v1 and v2 based on the values returned
6673         by clast_name_to_lb_ub.
6674         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6675         values.
6676         (type_for_clast_bin): Same.
6677         (type_for_clast_expr): Same.
6678         (type_for_clast_eq): Update calls to type_for_clast_expr.
6679         (type_for_clast_for): Same.
6680         (build_iv_mapping): Same.
6681         * graphite-ppl.h (value_min): New.
6682
6683 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6684
6685         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6686         types whenever possible.
6687
6688 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6689
6690         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6691         and ub fields.
6692         (new_clast_name_index): Add lb and ub parameters.
6693         (free_clast_name_index): New.
6694         (clast_name_to_lb_ub): New.
6695         (save_clast_name_index): Add lb and ub parameters.
6696         (compute_bounds_for_param): New.
6697         (type_for_level): Removed.
6698         (type_for_clast_for): Removed level parameter.  Do not call
6699         type_for_level.
6700         (graphite_create_new_loop): Store the lb and ub for the clast_name
6701         of the iterator of the loop that has been generated.
6702         (graphite_create_new_loop_guard): Remove parameter level.
6703         (create_params_index): Store the lb and ub of each parameter.
6704         (gloog): Use free_clast_name_index.  Pass to create_params_index
6705         the current scop.
6706
6707 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6708
6709         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6710         (max_precision_type): Inline max_signed_precision_type.
6711         (type_for_clast_red): Use max_precision_type.
6712         (type_for_clast_bin): Same.
6713         (type_for_clast_for): Same.
6714
6715 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6716
6717         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6718         type_for_interval.
6719         (gcc_type_for_value): Renamed type_for_value.
6720         (gcc_type_for_clast_term): Renamed type_for_clast_term.
6721         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6722         (gcc_type_for_clast_red): Renamed type_for_clast_red.
6723         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6724         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6725         (graphite_translate_clast_equation): Update calls.
6726         (compute_type_for_level): Renamed type_for_level.
6727         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6728         (build_iv_mapping): Update calls.
6729         (graphite_create_new_loop_guard): Same.
6730
6731 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6732
6733         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6734         comment.
6735
6736 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6737
6738         * graphite-clast-to-gimple.c (struct ivs_params): New.
6739         (clast_name_to_gcc): Use ivs_params to pass around parameters.
6740         (clast_to_gcc_expression): Same.
6741         (clast_to_gcc_expression_red): Same.
6742         (gcc_type_for_clast_term): Same.
6743         (gcc_type_for_clast_expr): Same.
6744         (gcc_type_for_clast_red): Same.
6745         (gcc_type_for_clast_bin): Same.
6746         (gcc_type_for_clast_eq): Same.
6747         (graphite_translate_clast_equation): Same.
6748         (graphite_create_guard_cond_expr): Same.
6749         (graphite_create_new_guard): Same.
6750         (graphite_create_new_loop): Same.
6751         (build_iv_mapping): Same.
6752         (translate_clast_user): Same.
6753         (graphite_create_new_loop_guard): Same.
6754         (translate_clast): Same.
6755         (translate_clast_for_loop): Same.
6756         (translate_clast_for): Same.
6757         (translate_clast_guard): Same.
6758         (initialize_cloog_names): Fix typo.
6759         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6760
6761 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6762
6763         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6764         (new_clast_name_index): Add level parameter.
6765         (clast_name_to_level): New.
6766         (save_clast_name_index): Add level parameter.
6767         (newivs_to_depth_to_newiv): Removed.
6768         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6769         (graphite_create_new_loop): Add level parameter.  Pass level to
6770         save_clast_name_index.
6771         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6772         (create_params_index): Pass level to save_clast_name_index.
6773
6774 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6775
6776         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6777         recompute type, lb, and ub.  Get them from...
6778         (graphite_create_new_loop_guard): ...here.  Pass in parameter
6779         pointers to type, lb, and ub.
6780         (translate_clast_for_loop): Update function calls.
6781         (translate_clast_for): Same.
6782
6783 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6784
6785         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6786         psct_dynamic_dim.
6787         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6788         (gcc_type_for_iv_of_clast_loop): Update use of level.
6789         (gloog): Start counting nesting level from 0.
6790         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6791         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6792         psct_dynamic_dim on level.
6793
6794 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6795
6796         * config/i386/i386.c (ix86_legitimize_address): Convert to
6797         Pmode if needed.
6798
6799 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6800
6801         * config/i386/i386.c (function_value_64): Always return pointers
6802         in Pmode.
6803         (ix86_promote_function_mode): New.
6804         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6805
6806 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6807
6808         PR tree-optimization/49749
6809         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6810         remove no-longer-used maxrank variable.
6811
6812 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
6813
6814         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6815
6816 2011-07-21  Jason Merrill  <jason@redhat.com>
6817
6818         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6819         * recog.h (struct insn_data_d): Check it instead of
6820         HAVE_DESIGNATED_INITIALIZERS.
6821         * genoutput.c (output_insn_data): Likewise.
6822
6823 2011-07-21  Richard Guenther  <rguenther@suse.de>
6824
6825         PR tree-optimization/49770
6826         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6827         valueized any operand.  Renamed from ...
6828         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
6829         (valueize_shared_reference_ops_from_ref): Return whether we
6830         valueized any operand.
6831         (vn_reference_lookup): Only when we valueized any operand
6832         use the valueized reference for alias analysis.  Do not preserve
6833         the original reference tree in this case.
6834
6835 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
6836
6837         * config/i386/i386.c (ix86_decompose_address): Reject all but
6838         register operands and subregs of DImode hard registers in index.
6839
6840 2011-07-21  Kai Tietz  <ktietz@redhat.com>
6841
6842         * fold-const.c (fold_unary_loc): Preserve indirect
6843         comparison cast to none-boolean type.
6844         * tree-ssa.c (useless_type_conversion_p): Preserve cast
6845         from/to boolean-type.
6846         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6847         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6848         * tree-cfg.c (verify_gimple_comparison): Check result
6849         type of comparison expression.
6850         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6851         of condition result and disallow type-cast sinking into comparison.
6852
6853 2011-07-21  Richard Guenther  <rguenther@suse.de>
6854
6855         * tree-ssa-forwprop.c (combine_conversions): Return whether
6856         we have to run cfg-cleanup.  Properly remove dead stmts.
6857         (ssa_forward_propagate_and_combine): Adjust.
6858
6859 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
6860
6861         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6862
6863 2011-07-21  Kai Tietz  <ktietz@redhat.com>
6864
6865         * tree-ssa-propagate.c (substitute_and_fold): Use
6866         do_dce flag to deside, if BB's statements are scanned
6867         in last to first, or first to last order.
6868
6869 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
6870
6871         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6872
6873 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
6874             Uros Bizjak  <ubizjak@gmail.com>
6875             Richard Henderson  <rth@redhat.com>
6876
6877         * config/i386/constraints.md (w): New.
6878
6879         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6880         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6881
6882         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6883         instead of TARGET_64BIT.
6884
6885         * config/i386/i386.md (indirect_jump): Replace
6886         nonimmediate_operand with indirect_branch_operand.
6887         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
6888         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6889         Convert operand 0 to Pmode for x32 if not PIC.
6890         (*tablejump_1): Replace nonimmediate_operand with
6891         indirect_branch_operand.  Replace constraint "m" with "w".
6892         (*call_vzeroupper): Replace constraint "m" with "w".
6893         (*call): Likewise.
6894         (*call_rex64_ms_sysv_vzeroupper): Likewise.
6895         (*call_rex64_ms_sysv): Likewise.
6896         (*call_value_vzeroupper): Likewise.
6897         (*call_value): Likewise.
6898         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6899         (*call_value_rex64_ms_sysv): Likewise.
6900         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6901
6902         * config/i386/predicates.md (indirect_branch_operand): New.
6903         (call_insn_operand): Support x32.
6904
6905 2011-07-20  Michael Eager  <eager@eagercon.com>
6906
6907         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6908
6909 2011-07-20  Richard Henderson  <rth@redhat.com>
6910
6911         * cfg.c (dump_bb_info): Dump basic_block->flags.
6912         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6913
6914 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
6915
6916         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6917         of DImode hard registers in index.
6918         (ix86_legitimate_address_p): Allow subregs of base and index to span
6919         more than a word.  Assert that subregs of base and index satisfy
6920         register_no_elim_operand predicates.  Reject addresses where
6921         base and index have different modes.
6922
6923 2011-07-20  Robert Millan  <rmh@gnu.org>
6924
6925         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6926
6927 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6928
6929         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6930         removing now-unnecessary assignment.
6931
6932 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6933
6934         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6935         memory address space to the type's address space.
6936
6937 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
6938
6939         PR target/36467
6940         PR target/49687
6941         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6942         and expand appropriately if there is a CONST_INT in operand2.
6943         (usmulqihi3): New insn.
6944         (*sumulqihi3): New insn.
6945         (*osmulqihi3): New insn.
6946         (*oumulqihi3): New insn.
6947         (*muluqihi3.uconst): New insn_and_split.
6948         (*muluqihi3.sconst): New insn_and_split.
6949         (*mulsqihi3.sconst): New insn_and_split.
6950         (*mulsqihi3.uconst): New insn_and_split.
6951         (*mulsqihi3.oconst): New insn_and_split.
6952         (*ashifthi3.signx.const): New insn_and_split.
6953         (*ashifthi3.signx.const7): New insn_and_split.
6954         (*ashifthi3.zerox.const): New insn_and_split.
6955         (mulsqihi3): New insn.
6956         (muluqihi3): New insn.
6957         (muloqihi3): New insn.
6958         * config/avr/predicates.md (const_2_to_7_operand): New.
6959         (const_2_to_6_operand): New.
6960         (u8_operand): New.
6961         (s8_operand): New.
6962         (o8_operand): New.
6963         (s9_operand): New.
6964         (register_or_s9_operand): New.
6965
6966 2011-07-20  Kai Tietz  <ktietz@redhat.com>
6967
6968         * builtins.c (fold_builtin_expect): See through the cast
6969         from truthvalue_type_node to long.
6970
6971 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
6972
6973         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6974         where we can use them from the standard and altivec instruction
6975         sets, instead of always using the 3 operand VSX forms that require
6976         the destination to overlap one of the inputs.
6977         (vsx_fms*): Ditto.
6978         (vsx_fnma*): Ditto.
6979         (vsx_fnms*): Ditto.
6980
6981         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6982         for DF types.
6983         (fmsdf4_fpr): Ditto.
6984         (nfmadf4_fpr): Ditto.
6985         (nfmsdf4_fpr): Ditto.
6986
6987 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
6988
6989         * genrecog.c (make_insn_sequence): Correct position numbering
6990         when filtering out match_scratch and match_dup.
6991
6992 2011-07-20  Richard Guenther  <rguenther@suse.de>
6993
6994         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6995         against already removed statements.
6996         (forward_propagate_into_comparison): Remove dead defining stmts.
6997         (forward_propagate_into_gimple_cond): Likewise.
6998         (forward_propagate_into_cond): Simplify.
6999         (ssa_forward_propagate_and_combine): Handle changed cfg from
7000         forward_propagate_into_comparison.
7001         * tree-ssa-phiopt.c (conditional_replacement): Use proper
7002         locations for newly built statements.
7003
7004 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7005
7006         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7007
7008 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7009
7010         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7011         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7012
7013 2011-07-20  Richard Guenther  <rguenther@suse.de>
7014
7015         PR middle-end/18908
7016         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7017         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7018         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
7019
7020 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
7021
7022         * config/frv/frv.c (frv_register_move_cost): Define explicitly
7023         costs for subclasses of GR_REGS.
7024
7025 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7026
7027         PR target/49780
7028         * config/i386/predicates.md (no_seg_addres_operand): No more special.
7029         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7030         of DImode hard registers in base.
7031         (ix86_legitimate_address_p): Allow SImode and DImode base and index
7032         registers.
7033
7034 2011-07-20  Richard Guenther  <rguenther@suse.de>
7035
7036         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7037         (unify_nodes): Deal with that.
7038         (solve_graph): Likewise.
7039
7040 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
7041
7042         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7043         canonicalize left operand from ZERO_EXTEND to AND.
7044
7045 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
7046
7047         * target.def (class_max_nregs): New hook.
7048         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7049         * doc/tm.texi: Regenerate.
7050         * targhooks.c (default_class_max_nregs): New function.
7051         * targhooks.h (default_class_max_nregs): Declare.
7052         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7053         x_ira_reg_class_min_nregs arrays to unsigned char.
7054         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7055         hook instead of CLASS_MAX_NREGS macro.
7056         * reginfo.c (restore_register_info): Ditto.
7057         * ira-conflicts.c (process_regs_for_copy): Use
7058         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7059         Change type rclass and aclass vars to reg_class_t.
7060         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7061         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7062         reg_class_t.
7063         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7064         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7065
7066         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7067         * config/i386/i386.c (ix86_class_max_nregs): New function.
7068         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7069         instead of CLASS_MAX_NREGS macro.
7070         (TARGET_CLASS_MAX_NREGS): Define.
7071         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7072         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7073         * config/avr/avr.c (class_max_nregs): Remove function.
7074         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7075         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7076         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7077         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7078         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7079         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7080         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7081         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7082         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7083         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7084         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7085         * config/score/score.h (CLASS_MAX_NREGS): Remove.
7086         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7087         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7088         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7089
7090 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7091
7092         * cif-code.def (OVERWRITABLE): Fix typo and move around.
7093         (TARGET_OPTIMIZATION_MISMATCH): Delete.
7094         (EH_PERSONALITY): Fix typo.
7095         (NON_CALL_EXCEPTIONS): Fix message.
7096         (OPTIMIZATION_MISMATCH): Adjust message.
7097         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7098
7099 2011-07-19  Ian Lance Taylor  <iant@google.com>
7100
7101         * doc/install.texi (Configuration): Document
7102         --enable-build-poststage1-with-cxx.
7103
7104 2011-07-19  Robert Millan  <rmh@gnu.org>
7105
7106         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
7107         (GLIBC_DYNAMIC_LINKER): Remove.
7108
7109         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
7110         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7111         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7112         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7113         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7114         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7115
7116         * config/mips/linux.h: Remove everything except for ...
7117         (GLIBC_DYNAMIC_LINKER): ... this macro.
7118
7119         * config/mips/linux64.h: Remove everything except for ...
7120         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7121         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7122         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7123         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7124         (GNU_USER_LINK_EMULATIONN32): New macros.
7125
7126         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7127         Use the new headers.
7128
7129 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7130
7131         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7132         Add offset_known_p and size_known_p fields.
7133         (MEM_OFFSET_KNOWN_P): Update accordingly.
7134         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7135         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7136         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7137         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7138         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7139         (init_emit_regs): Likewise.
7140
7141 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7142
7143         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7144         (MEM_OFFSET): Change from returning an rtx to returning a
7145         HOST_WIDE_INT.
7146         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7147         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7148         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7149         (clear_mem_offset): Declare.
7150         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7151         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7152         MEM_OFFSET to get a HOST_WIDE_INT offset.
7153         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
7154         (adjust_offset_for_component_ref): Take a bool "known_p"
7155         parameter and a HOST_WIDE_INT "offset" parameter.
7156         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7157         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7158         than an rtx.  Use clear_mem_offset to clear the offset.
7159         * cfgcleanup.c (merge_memattrs): Likewise.
7160         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7161         * function.c (assign_parm_find_stack_rtl): Likewise.
7162         (assign_parm_setup_stack): Likewise.
7163         * print-rtl.c (print_rtx): Likewise.
7164         * reload.c (find_reloads_subreg_address): Likewise.
7165         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7166         * var-tracking.c (INT_MEM_OFFSET): Likewise.
7167         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7168         (get_mem_align_offset): Likewise.
7169         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7170         (clear_mem_offset): New function.
7171         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7172         offset rather than an rtx.  Assume both the expressio and offset
7173         are available.
7174         (r10k_needs_protection_p_1): Update accordingly, checking the
7175         expression and offset availability here instead.
7176
7177 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7178
7179         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7180         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7181         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7182         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7183         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7184         (clear_mem_size): Declare.
7185         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7186         (clear_mem_size): New function.
7187         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7188         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7189         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
7190         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
7191         to clear the size.
7192         (nonoverlapping_memrefs_p): Likewise.
7193         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7194         (expand_builtin_init_trampoline): Likewise.
7195         * calls.c (compute_argument_addresses): Likewise.
7196         * cfgcleanup.c (merge_memattrs): Likewise.
7197         * dce.c (find_call_stack_args): Likewise.
7198         * dse.c (record_store, scan_insn): Likewise.
7199         * dwarf2out.c (dw_sra_loc_expr): Likewise.
7200         * expr.c (emit_block_move_hints): Likewise.
7201         * function.c (assign_parm_find_stack_rtl): Likewise.
7202         * print-rtl.c (print_rtx): Likewise.
7203         * reload.c (find_reloads_subreg_address): Likewise.
7204         * rtlanal.c (may_trap_p_1): Likewise.
7205         * var-tracking.c (track_expr_p): Likewise.
7206         * varasm.c (assemble_trampoline_template): Likewise.
7207         * config/arm/arm.c (arm_print_operand): Likewise.
7208         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7209         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7210         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7211         (expand_constant_setmem_prologue): Likewise.
7212         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7213         * config/rs6000/rs6000.c (expand_block_move): Likewise.
7214         (adjacent_mem_locations): Likewise.
7215         * config/s390/s390.c (s390_expand_setmem): Likewise.
7216         (s390_expand_insv): Likewise.
7217         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7218         (*extendqi<mode>2_short_displ): Likewise.
7219         * config/sh/sh.c (expand_block_move): Likewise.
7220         * config/sh/sh.md (extv, extzv): Likewise.
7221
7222 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7223
7224         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7225         (mem_attrs_htab_eq): ...here.
7226         (find_mem_attrs): Replace with...
7227         (set_mem_attrs): ...this function.  Take a mem_attrs structure
7228         rather than individual fields.
7229         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7230         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7231         (set_mem_size, change_address, adjust_address_1, offset_address)
7232         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7233         Update accordingly.
7234
7235 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7236
7237         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7238         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7239         Provide a dummy definition of MEM_ADDR_SPACE for generators.
7240         (target_rtl): Add x_mode_mem_attrs.
7241         (mode_mem_attrs): New macro.
7242         (get_mem_attrs): New function.
7243         * emit-rtl.c (get_mem_attrs): Rename to...
7244         (find_mem_attrs): ...this.
7245         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7246         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7247         (set_mem_size, change_address, adjust_address_1, offset_address)
7248         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7249         Update accordingly.
7250         (init_emit_regs): Initialize mode_mem_attrs.
7251
7252 2011-07-19  Richard Guenther  <rguenther@suse.de>
7253
7254         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7255         TRUTH_*_EXPR handling.
7256         * tree-ssa-operands.c (get_expr_operands): Likewise.
7257         * tree-ssa-pre.c (fully_constant_expression): Likewise.
7258         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7259         Likewise.
7260         (is_and_or_or): Likewise.
7261         (is_norm_cond_subset_of): Likewise.
7262
7263 2011-07-19  Richard Guenther  <rguenther@suse.de>
7264
7265         * tree.h (fold_build_pointer_plus_loc): New helper function.
7266         (fold_build_pointer_plus_hwi_loc): Likewise.
7267         (fold_build_pointer_plus): Define.
7268         (fold_build_pointer_plus_hwi): Likewise.
7269         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7270         (fold_builtin_memory_op): Likewise.
7271         (fold_builtin_stpcpy): Likewise.
7272         (fold_builtin_memchr): Likewise.
7273         (fold_builtin_strstr): Likewise.
7274         (fold_builtin_strchr): Likewise.
7275         (fold_builtin_strrchr): Likewise.
7276         (fold_builtin_strpbrk): Likewise.
7277         (fold_builtin_strcat): Likewise.
7278         (expand_builtin_memory_chk): Likewise.
7279         (fold_builtin_memory_chk): Likewise.
7280         * c-typeck.c (build_unary_op): Likewise.
7281         * cgraphunit.c (thunk_adjust): Likewise.
7282         * fold-const.c (build_range_check): Likewise.
7283         (fold_binary_loc): Likewise.
7284         * omp-low.c (extract_omp_for_data): Likewise.
7285         (expand_omp_for_generic): Likewise.
7286         (expand_omp_for_static_nochunk): Likewise.
7287         (expand_omp_for_static_chunk): Likewise.
7288         * tree-affine.c (add_elt_to_tree): Likewise.
7289         * tree-data-ref.c (split_constant_offset_1): Likewise.
7290         * tree-loop-distribution.c (generate_memset_zero): Likewise.
7291         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7292         * tree-predcom.c (ref_at_iteration): Likewise.
7293         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7294         (add_to_parts): Likewise.
7295         (create_mem_ref): Likewise.
7296         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7297         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7298         (number_of_iterations_le): Likewise.
7299         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7300         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7301         (vect_create_addr_base_for_vector_ref): Likewise.
7302         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7303         (vect_create_cond_for_alias_checks): Likewise.
7304         * tree-vrp.c (extract_range_from_assert): Likewise.
7305         * config/alpha/alpha.c (alpha_va_start): Likewise.
7306         (alpha_gimplify_va_arg_1): Likewise.
7307         * config/i386/i386.c (ix86_va_start): Likewise.
7308         (ix86_gimplify_va_arg): Likewise.
7309         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7310         * config/mep/mep.c (mep_expand_va_start): Likewise.
7311         (mep_gimplify_va_arg_expr): Likewise.
7312         * config/mips/mips.c (mips_va_start): Likewise.
7313         (mips_gimplify_va_arg_expr): Likewise.
7314         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7315         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7316         (rs6000_gimplify_va_arg): Likewise.
7317         * config/s390/s390.c (s390_va_start): Likewise.
7318         (s390_gimplify_va_arg): Likewise.
7319         * config/sh/sh.c (sh_va_start): Likewise.
7320         (sh_gimplify_va_arg_expr): Likewise.
7321         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7322         * config/spu/spu.c (spu_va_start): Likewise.
7323         (spu_gimplify_va_arg_expr): Likewise.
7324         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7325         Likewise.
7326         (xstormy16_gimplify_va_arg_expr): Likewise.
7327         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7328         (xtensa_gimplify_va_arg_expr): Likewise.
7329
7330 2011-07-19  Richard Guenther  <rguenther@suse.de>
7331
7332         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7333         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7334         handling.
7335
7336         PR middle-end/18908
7337         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7338         result of BIT_*_EXPR to bitfield precision.
7339
7340 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
7341
7342         PR tree-optimization/49742
7343         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
7344         as a potential write.
7345
7346 2011-07-19  Richard Guenther  <rguenther@suse.de>
7347
7348         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
7349         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
7350         (forward_propagate_comparison): Simplify, remove obsolete code.
7351
7352 2011-07-19  Richard Guenther  <rguenther@suse.de>
7353
7354         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
7355         BIT_XOR_EXPR, same as the RTL expander does.
7356         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
7357         (verify_gimple_assign_unary): Likewise.
7358         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
7359         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
7360         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
7361
7362 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
7363
7364         PR tree-optimization/49768
7365         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
7366         if offset is smaller than bitoffset, but offset+size is bigger
7367         than bitoffset.
7368
7369 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
7370
7371         PR tree-optimization/49771
7372         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
7373         zero step, set segment length to the size of the data-ref's type.
7374
7375 2011-07-18  Martin Jambor  <mjambor@suse.cz>
7376
7377         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
7378         comments.
7379         (ipcp_values_pool): Declare.
7380         (ipcp_sources_pool): Likewise.
7381         (ipcp_lattice): Changed to forward declaration.
7382         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
7383         cannot_devirtualize.
7384         (ipa_node_params): New fields descriptors, lattices, known_vals,
7385         clone_for_all_contexts and node dead, removed fields params and
7386         count_scale.
7387         (ipa_set_param_count): Removed.
7388         (ipa_get_param_count): Made to work with descriptors vector.
7389         (ipa_get_param): Updated.
7390         (ipa_param_cannot_devirtualize_p): Removed.
7391         (ipa_param_types_vec_empty): Likewise.
7392         (ipa_set_param_used): New function.
7393         (ipa_get_param_used): Updated to use descriptors vector.
7394         (ipa_func_list): Removed.
7395         (ipa_init_func_list): Removed declaration.
7396         (ipa_push_func_to_list_1): Likewise.
7397         (ipa_pop_func_from_list): Likewise.
7398         (ipa_push_func_to_list): Removed.
7399         (ipa_lattice_from_jfunc): Remove declaration.
7400         (ipa_get_jf_pass_through_result): Declare.
7401         (ipa_get_jf_ancestor_result): Likewise.
7402         (ipa_value_from_jfunc): Likewise.
7403         (ipa_get_lattice): Update.
7404         (ipa_lat_is_single_const): New function.
7405         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
7406         (ipa_init_func_list): Likewise.
7407         (ipa_pop_func_from_list): Likewise.
7408         (ipa_get_param_decl_index): Fix coding style.
7409         (count_formal_params): Removed.
7410         (count_formal_params_1): Renamed to count_formal_params.
7411         (ipa_populate_param_decls): Update to use descriptors vector.
7412         (ipa_initialize_node_params): Likewise.
7413         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
7414         (ipa_analyze_params_uses): Likewise.
7415         (ipa_free_node_params_substructures): Likewise and free also lattices
7416         and known values.
7417         (duplicate_array): Removed.
7418         (ipa_edge_duplication_hook): Add the new edge to the list of edge
7419         clones.
7420         (ipa_node_duplication_hook): Update to use new lattices.
7421         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
7422         (ipa_free_all_structures_after_iinln): Likewise.
7423         (ipa_write_node_info): Update to use new lattices.
7424         (ipa_read_node_info): Likewise.
7425         (ipa_get_jf_pass_through_result): New function.
7426         (ipa_get_jf_ancestor_result): Likewise.
7427         (ipa_value_from_jfunc): Likewise.
7428         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
7429         * ipa-cp.c: Reimplemented.
7430         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
7431         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
7432         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
7433         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
7434         * doc/invoke.texi (devirt-type-list-size): Removed description.
7435         (ipa-cp-value-list-size): Added description.
7436
7437 2011-07-18  Richard Henderson  <rth@redhat.com>
7438
7439         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
7440         before calling create_basic_block.
7441
7442 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
7443
7444         PR middle-end/49675
7445         * tree.c (build_common_builtin_nodes): Register
7446         __builtin_return_address, __cyg_profile_func_enter
7447         and __cyg_profile_func_exit.
7448
7449 2011-07-18  Richard Henderson  <rth@redhat.com>
7450
7451         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
7452         (add_labels_and_missing_jumps): ... here.
7453         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
7454
7455 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
7456
7457         PR target/47744
7458         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7459         of DImode hard registers in PLUS address chains.
7460
7461 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7462
7463         PR bootstrap/49769
7464         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
7465         (alpha*-*-freebsd*): Likewise.
7466         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7467         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7468         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
7469         crtprec80.o, crtfastmath.o to extra_parts for all targets.
7470         (ia64*-*-elf*): Remove extra_parts.
7471         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
7472         (sparc64-*-linux*): Likewise.
7473         (sparc64-*-freebsd*): Likewise.
7474
7475         Revert:
7476         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
7477         (ia64*-*-linux*): Likewise.
7478         (mips64*-*-linux*): Likewise.
7479         (mips*-*-linux*): Likewise.
7480
7481 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
7482
7483         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
7484
7485 2011-07-18  Richard Guenther  <rguenther@suse.de>
7486
7487         * gimplify.c (gimplify_expr): Use input_location, not saved_location
7488         when building new trees.
7489
7490 2011-07-18  Richard Guenther  <rguenther@suse.de>
7491
7492         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
7493         expansion result to bitfield precision if required.
7494
7495 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7496
7497         * config.gcc (i[3456x]86-*-netware*): Remove.
7498
7499         * gthr-nks.h: Remove.
7500         * configure.ac (enable_threads): Remove nks.
7501         * configure: Regenerate.
7502
7503         * config/i386/i386.c (ix86_encode_section_info): Remove netware
7504         reference.
7505         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
7506         <netware.h> reference.
7507
7508         * config/i386/netware-libgcc.c,
7509         gcc/config/i386/netware-libgcc.def,
7510         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
7511         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
7512         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
7513         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
7514
7515         * doc/extend.texi (Function Attributes,
7516         callee_pop_aggregate_return): Remove i?86-netware reference.
7517         * doc/install.texi (Configuration, --enable-threads): Remove nks.
7518
7519 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7520
7521         PR target/49746
7522         Revert:
7523         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7524
7525         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
7526         patterns.
7527
7528 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
7529
7530         PR middle-end/49732
7531         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
7532
7533 2011-07-16  Matthias Klose  <doko@ubuntu.com>
7534
7535         * doc/install.texi: Document --enable-static-libjava.
7536
7537 2011-07-15  Richard Henderson  <rth@redhat.com>
7538
7539         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7540         Replace all three arguments by returning a VEC of edges.
7541         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
7542         pointers and counts.
7543         (fix_edges_for_rarely_executed_code): Merge ...
7544         (rest_of_handle_partition_blocks): ... into...
7545         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
7546         any work was performed.
7547         (pass_partition_blocks): Clear todo_flags_finish.
7548
7549 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
7550             Jakub Jelinek  <jakub@redhat.com>
7551             Jonathan Wakely  <jwakely.gcc@gmail.com>
7552
7553         PR libstdc++/49745
7554         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
7555         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
7556
7557 2011-07-15  Jason Merrill  <jason@redhat.com>
7558
7559         PR testsuite/49741
7560         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
7561         rather than --tool_opts.
7562
7563 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
7564
7565         * doc/plugins.texi (Building GCC plugins): gengtype needs its
7566         corresponding gtype.state.
7567
7568 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7569
7570         PR target/49723
7571         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
7572
7573 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
7574
7575         PR target/48220
7576         * doc/md.texi (Standard Names): Document window_save.
7577         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
7578         expand_debug_expr and expand_debug_source_expr.  If the target has
7579         a window_save instruction, adjust the ENTRY_VALUE_EXP.
7580         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
7581         SSA_NAME_VAR is a parameter.
7582         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
7583         * var-tracking.c (parm_reg_t): New type and associated vector type.
7584         (windowed_parm_regs): New variable.
7585         (adjust_insn): If the target has a window_save instruction and this
7586         is the instruction, make its effect on parameter registers explicit.
7587         (next_non_note_insn_var_location): New function.
7588         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
7589         (vt_add_function_parameter): If the target has a window_save insn,
7590         adjust the incoming RTL and record that in windowed_parm_regs.
7591         (vt_finalize): Free windowed_parm_regs.
7592
7593 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
7594
7595         * doc/invoke.texi (C6X Options): New section.
7596         * doc/md.texi (TI C6X family): New section.
7597         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
7598         tic6x-*-uclinux.
7599         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
7600         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
7601         Provide C6X definitions.
7602         * config/c6x/c6x.md: New file.
7603         * config/c6x/constraints.md: New file.
7604         * config/c6x/predicates.md: New file.
7605         * config/c6x/c6x-sched.md.in: New file.
7606         * config/c6x/c6x-sched.md: New file.
7607         * config/c6x/gensched.sh: New file.
7608         * config/c6x/c6x-mult.md.in: New file.
7609         * config/c6x/genmult.sh: New file.
7610         * config/c6x/c6x-mult.md: New file.
7611         * config/c6x/sync.md: New file.
7612         * config/c6x/c6x-protos.h: New file.
7613         * config/c6x/sfp-machine.h: New file.
7614         * config/c6x/c6x.c: New file.
7615         * config/c6x/c6x.h: New file.
7616         * config/c6x/crti.s: New file.
7617         * config/c6x/crtn.s: New file.
7618         * config/c6x/lib1funcs.asm: New file.
7619         * config/c6x/c6x-modes.def: New file.
7620         * config/c6x/genopt.sh: New file.
7621         * config/c6x/c6x.opt: New file.
7622         * config/c6x/c6x-tables.opt: New file.
7623         * config/c6x/c6x-opts.h: New file.
7624         * config/c6x/c6x-isas.def: New file.
7625         * config/c6x/elf.h: New file.
7626         * config/c6x/elf-common.h: New file.
7627         * config/c6x/uclinux-elf.h: New file.
7628         * config/c6x/t-c6x: New file.
7629         * config/c6x/t-c6x-elf: New file.
7630         * config/c6x/t-c6x-uclinux: New file.
7631         * config/c6x/t-c6x-softfp: New file.
7632         * config/c6x/gtd.c: New file.
7633         * config/c6x/gtf.c: New file.
7634         * config/c6x/ltd.c: New file.
7635         * config/c6x/ltf.c: New file.
7636         * config/c6x/ged.c: New file.
7637         * config/c6x/gef.c: New file.
7638         * config/c6x/led.c: New file.
7639         * config/c6x/lef.c: New file.
7640         * config/c6x/eqd.c: New file.
7641         * config/c6x/eqf.c: New file.
7642         * config/c6x/libgcc-c6xeabi.ver: New file.
7643
7644         Revert
7645         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
7646         PR rtl-optimization/11320
7647         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
7648         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
7649         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
7650         current_sched_info->compute_jump_reg_dependencies. Record which
7651         registers are used and which registers are set by the jump.
7652         Clear deps->reg_conditional_sets after a barrier.
7653         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
7654         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
7655         (init_deps): Initialize reg_conditional_sets.
7656         (free_deps): Clear reg_conditional_sets.
7657         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
7658         Mark registers live on entry of the fallthrough block and conditionally
7659         set as set by the jump. Mark registers live on entry of non-fallthrough
7660         blocks as used by the jump.
7661         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
7662         Mark new parameters as unused.
7663
7664 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
7665
7666         PR tree-opt/49309
7667         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
7668         Use fold_build2_loc instead of build2.
7669         Use the correct type for the new tree.
7670
7671 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7672
7673         PR rtl-optimization/11320
7674         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7675         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7676
7677 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
7678
7679         PR target/49487
7680         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7681         of REG.
7682         (*rotw<mode>): Use const_int_operand for operand2.
7683         Use match_scatch for operand3.
7684         (*rotb<mode>): Ditto
7685         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7686
7687 2011-07-14  Richard Guenther  <rguenther@suse.de>
7688
7689         PR tree-optimization/49651
7690         * tree-ssa-structalias.c (get_constraint_for_1): Properly
7691         handle dereferences with subvariables.
7692
7693 2011-07-14  Richard Guenther  <rguenther@suse.de>
7694
7695         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7696         (fold_stmt_1): Do it here directly on gimple and as a first thing.
7697
7698 2011-07-14  Richard Guenther  <rguenther@suse.de>
7699
7700         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7701         not bool_var when folding bool_var != 1 or bool_var == 0.
7702
7703 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7704
7705         * haifa-sched.c (schedule_insns): Remove outdated comment.
7706         (schedule_block): When computing a known value for TODO_SPEC,
7707         just set it rather than using logical operations.
7708         (try_ready): Likewise.  Use a local variable rather than a
7709         pointer to TODO_SPEC.  Reorder an if statement to move the
7710         easy case to the then block.
7711         * sched-deps.c (dep_spec_p): New static function.
7712         (update_dep): Use it to decide whether to call
7713         change_spec_dep_to_hard.
7714         (get_back_and_forw_lists): Use it.
7715         (sd_resolve_dep): Likewise.
7716         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7717         (haifa_note_mem_dep): Likewise.
7718         (check_dep): Likewise.
7719         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7720         (sched_free_deps): Free in two passes.
7721
7722 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
7723
7724         PR middle-end/49736
7725         * expr.c (all_zeros_p): Undo bogus part of last change.
7726
7727 2011-07-14  Matthias Klose <doko@ubuntu.com>
7728
7729         * doc/extend.texi (optimize attribute): Fix typo.
7730
7731 2011-07-14  Richard Guenther  <rguenther@suse.de>
7732
7733         * gimplify.c (gimplify_expr): Only do required conversions.
7734
7735 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
7736
7737         PR target/43746
7738         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7739         i.e. use default_elf_select_section.
7740         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7741         (READONLY_DATA_SECTION_ASM_OP): Remove.
7742         (TARGET_ASM_NAMED_SECTION): Move from here...
7743         * config/avr/avr.c: ...to here.
7744         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7745         (avr_asm_named_section): Make static.
7746
7747 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7748
7749         PR bootstrap/49739
7750         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7751         and crtfastmath.o for Linux/x86.
7752
7753 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7754
7755         * haifa-sched.c: Include "hashtab.h"
7756         (sched_no_dce): New global variable.
7757         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7758         SHADOW_P): New macros.
7759         (last_clock_var, cycle_issued_insns): Move declarations.
7760         (must_backtrack): New static variable.
7761         (struct delay_pair): New structure.
7762         (delay_htab, delay_htab_i2): New static variables.
7763         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7764         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7765         functions.
7766         (dep_cost_1): If delay pairs exist, try to look up the insns and
7767         use the correct pair delay if we find them.
7768         (rank-for_schedule): Tweak priority for insns that must be scheduled
7769         soon to avoid backtracking.
7770         (queue_insn): Detect conditions which force backtracking.
7771         (ready_add): Likewise.
7772         (struct sched_block_state): Add member shadows_only_p.
7773         (struct haifa_save_data): New structure.
7774         (backtrack_queue): New static variable.
7775         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7776         unschedule_insns_until, restore_last_backtrack_point,
7777         free_topmost_backtrack_point, free_backtrack_queue,
7778         estimate_insn_tick, estimate_shadow_tick): New functions.
7779         (prune_ready_list): New arg shadows_only_p.  All callers changed.
7780         If true, remove everything that isn't SHADOW_P.  Look up delay
7781         pairs and estimate ticks to avoid scheduling the first insn too early.
7782         (verify_shadows): New function.
7783         (schedule_block): Add machinery to enable backtracking.
7784         (sched_init): Take sched_no_dce into account when setting
7785         DF_LR_RUN_DCE.
7786         (free_delay_pairs): New function.
7787         (init_h_i_d): Initialize INSN_EXACT_TICK.
7788         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7789         * sched-deps.c (sd_unresolve_dep): New function.
7790         * sched-int. (struct haifa_sched_info): New fields save_state
7791         and restore_state.
7792         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7793         feeds_backtrack_insn and shadow_p.
7794         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7795         (sched_no_dce): Declare variable.
7796         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7797         sd_unresolve_dep): Declare functions.
7798         * modulo-sched.c (sms_sched_info): Clear the two new fields.
7799         * sched-rgn.c (rgn_const_sched_info): Likewise.
7800         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7801         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7802         (ebb_sched_info): Add them for the two new fields.
7803         (add_deps_for_risky_insns): Call add_delay_dependencies.
7804
7805 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
7806
7807         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7808         Rename -mr11.
7809         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7810         (rs6000_call_indirect_aix): Ditto.
7811         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7812         (call_indirect_aix<ptrsize>_internal): Ditto.
7813         (call_indirect_aix<ptrsize>_nor11): Ditto.
7814         (call_indirect_aix<ptrsize>_internal2): Ditto.
7815         (call_value_indirect_aix<ptrsize>): Ditto.
7816         (call_value_indirect_aix<ptrsize>_internal): Ditto.
7817         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7818         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7819         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7820
7821 2011-07-13  Jason Merrill  <jason@redhat.com>
7822
7823         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7824
7825 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7826
7827         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7828         * config/spu/spu.md ("clrsb<mode>2"): New expander.
7829
7830 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
7831
7832         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7833         * configure: Regenerate.
7834
7835 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7836
7837         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7838         (asm_file_start): Remove.
7839         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7840         free_bb_for_insn around code that modifies insns before
7841         restarting df analysis.
7842
7843 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7844
7845         PR target/49541
7846         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
7847         (LINK_SPEC): ... here.
7848
7849 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7850
7851         * haifa-sched.c (struct sched_block_state): New.
7852         (schedule_block): Move some local variables into such a structure.
7853
7854 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7855
7856         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7857         * config/i386/t-crtpc: Remove.
7858         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7859         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7860         tmake_file.
7861         (x86_64-*-darwin*): Likewise.
7862         (i[34567]86-*-linux*): Likewise.
7863         (x86_64-*-linux*): Likewise.
7864
7865         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7866         Handle -mpc32, -mpc64, -mpc80.
7867
7868 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7869
7870         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7871         * config/alpha/t-crtfm: Remove.
7872         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7873         * config/i386/t-crtfm: Remove.
7874         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7875         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7876         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7877         * config/sparc/t-crtfm: Remove.
7878
7879         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7880         (alpha*-*-freebsd*): Likewise.
7881         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7882         (x86_64-*-darwin*): Likewise.
7883         (i[34567]86-*-linux*): Likewise.
7884         (x86_64-*-linux*): Likewise.
7885         (x86_64-*-mingw*): Likewise.
7886         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7887         (ia64*-*-freebsd*): Likewise.
7888         (ia64*-*-linux*): Likewise.
7889         (mips64*-*-linux*): Likewise.
7890         (mips*-*-linux*): Likewise.
7891         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7892         (sparc64-*-linux*): Likewise.
7893         (sparc64-*-freebsd*): Likewise.
7894
7895 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7896
7897         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7898         * config/darwin-crt3.c: Move to ../libgcc/config.
7899         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7900         ($(T)crt3$(objext)): Remove.
7901         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7902         ($(T)crt2$(objext)): Remove.
7903         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7904         (powerpc64-*-darwin*): Likewise.
7905
7906 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7907
7908         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7909
7910         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7911         (addsi_1_zext): This.
7912
7913 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7914
7915         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7916         * doc/tm.texi: Regenerate.
7917         * target.def (mergeable_rodata_prefix): New defhookpod.
7918         * varasm.c (mergeable_string_section, mergeable_constant_section):
7919         Use it. Allocate name with alloca.
7920
7921 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
7922
7923         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7924
7925 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7926
7927         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7928         overlap check.
7929
7930 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
7931
7932         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
7933         (count_type_elements): Delete.
7934         (complete_ctor_at_level_p): Declare.
7935         * expr.c (flexible_array_member_p): New function, split out from...
7936         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
7937         parameter with for_ctor_p.  When for_ctor_p is true, return the
7938         number of elements that should appear in the top-level constructor,
7939         otherwise return an estimate of the number of scalars.
7940         (categorize_ctor_elements): Replace p_must_clear with p_complete.
7941         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
7942         (complete_ctor_at_level_p): New function, borrowing union logic
7943         from old categorize_ctor_elements_1.
7944         (mostly_zeros_p): Return true if the constructor is not complete.
7945         (all_zeros_p): Update call to categorize_ctor_elements.
7946         * gimplify.c (gimplify_init_constructor): Update call to
7947         categorize_ctor_elements.  Don't call count_type_elements.
7948         Unconditionally prevent clearing for variable-sized types,
7949         otherwise rely on categorize_ctor_elements to detect
7950         incomplete initializers.
7951
7952 2011-07-13  Richard Guenther  <rguenther@suse.de>
7953
7954         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7955         the final type is integral.
7956
7957 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
7958
7959         * sched-int.h (struct _dep): Add member cost.
7960         (DEP_COST, UNKNOWN_DEP_COST): New macros.
7961         * sched-deps.c (init_dep_1): Initialize DEP_COST.
7962         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7963         (sched_change_pattern): Reset it for dependent insns.
7964
7965 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7966
7967         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7968         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7969         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7970         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7971         (CRT0_S, MCRT0_S): Remove.
7972         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7973         Remove.
7974         (s-crt0): Remove.
7975         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7976
7977 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
7978
7979         * cse.c (insert_with_costs): Put semi-colon after empty loop body
7980         on the next line.
7981         * emit-rtl.c (push_to_sequence): Likewise.
7982         * haifa-sched.c (max_issue): Likewise.
7983         * matrix-reorg.c (add_allocation_site): Likewise.
7984         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7985         * reload.c (alternative_allows_const_pool_ref): Likewise.
7986         * sched-rgn.c (rgn_add_block): Likewise.
7987         (rgn_fix_recovery_cfg): Likewise.
7988         * tree.c (attribute_list_contained): Likewise.
7989
7990 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
7991
7992         * config/i386/i386.c: Tidy processor feature bitmasks.
7993         (m_P4_NOCONA): New.
7994
7995 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
7996
7997         PR rtl-opt/49474
7998         * cprop.c (find_implicit_sets): Correct the condition.
7999
8000 2011-07-12  Richard Henderson  <rth@redhat.com>
8001
8002         PR target/49713
8003         * dwarf2out.h (dwarf_frame_regnum): Remove.
8004         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
8005         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
8006         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8007         (execute_dwarf2_frame): Initialize them.
8008         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8009         users of the macros with the variables.
8010         (expand_builtin_dwarf_sp_column): Revert last change.
8011         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
8012         result of DWARF_FRAME_REGNUM into a local variable.
8013
8014 2011-07-12  Richard Henderson  <rth@redhat.com>
8015
8016         PR target/49714
8017         * config/i386/i386.c (x86_output_mi_thunk): Use
8018         machopic_indirect_call_target instead of machopic_indirection_name
8019         directly.
8020
8021 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
8022             Eric Botcazou  <ebotcazou@adacore.com>
8023
8024         * prefix.h: Wrap up in extern "C" block.
8025
8026 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
8027
8028         AMD bdver2 Enablement
8029         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8030         (case ${target}): Add bdver2.
8031         * config/i386/driver-i386.c (host_detect_local_cpu): Let
8032         -march=native recognize bdver2 processors.
8033         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8034         bdver2 def_and_undef
8035         * config/i386/i386.c (struct processor_costs bdver2_cost): New
8036         bdver2 cost table.
8037         (m_BDVER2): New definition.
8038         (m_AMD_MULTIPLE): Includes m_BDVER2.
8039         (initial_ix86_tune_features): Add bdver2 tuning.
8040         (processor_target_table): Add bdver2 entry.
8041         (static const char *const cpu_names): Add bdver2 entry.
8042         (ix86_option_override_internal): Add bdver2 instruction sets.
8043         (ix86_issue_rate): Add bdver2.
8044         (ix86_adjust_cost): Add bdver2.
8045         (has_dispatch): Add bdver2.
8046         * config/i386/i386.h (TARGET_BDVER2): New definition.
8047         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8048         (enum processor_type): Add PROCESSOR_BDVER2.
8049         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8050         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8051         description.
8052
8053 2011-07-12  Richard Henderson  <rth@redhat.com>
8054
8055         PR target/49714
8056         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8057         destination address in memory on some paths.
8058
8059 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
8060
8061         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8062         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8063         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8064         * function.c (locate_and_pad_parm): Take it into account.
8065         * target.def (function_arg_round_boundary): New hook.
8066         * targhooks.c (default_function_arg_round_boundary): New function.
8067         * targhooks.h (default_function_arg_round_boundary): Declare.
8068         * doc/tm.texi: Regenerate.
8069
8070 2011-07-12  Richard Guenther  <rguenther@suse.de>
8071
8072         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8073         Do not perform no-op changes.
8074
8075 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
8076
8077         * config/arm/predicates.md (neon_struct_operand): Make a normal
8078         predicate.
8079         (neon_struct_or_register_operand): New predicate.
8080         * config/arm/neon.md (movmisalign<mode>): Replace predicates
8081         with neon_struct_or_register_operand.
8082         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8083         neon_struct_operand instead of memory_operand.
8084
8085 2011-07-12  Martin Jambor  <mjambor@suse.cz>
8086
8087         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8088         * cgraph.c (cgraph_get_node_or_alias): Removed.
8089         (change_decl_assembler_name): Changed all calls to
8090         cgraph_get_node_or_alias to a call to cgraph_get_node.
8091         (cgraph_make_decl_local): Likewise.
8092         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8093         * varasm.c (default_binds_local_p_1): Likewise.
8094         (decl_binds_to_current_def_p): Likewise.
8095
8096 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
8097
8098         PR tree-optimization/49712
8099         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8100
8101 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
8102
8103         * genautomata.c (add_arc): Return void.  All callers changed.
8104         (make_automaton): Remove dead code.
8105
8106 2011-07-11  Richard Henderson  <rth@redhat.com>
8107
8108         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8109         (DW_FRAME_POINTER_REGNUM): New.
8110         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8111         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8112         (dwf_regno): New.
8113         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8114         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8115         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8116         Use it.
8117         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8118         * dwarf2out.h (dwarf_frame_regnum): New.
8119         (struct cfa_loc): Document the domain of the reg member.
8120
8121 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
8122
8123         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8124         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
8125
8126 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
8127
8128         PR debug/49676
8129         * dwarf2out.c (int_shift_loc_descriptor): New function.
8130         (int_loc_descriptor): If shorter, emit i as
8131         (i >> shift), shift, DW_OP_shl for suitable shift value.
8132         Similarly, try to optimize large negative values using
8133         DW_OP_neg of a positive value if shorter.
8134         (size_of_int_shift_loc_descriptor): New function.
8135         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8136         changes.
8137         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8138         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8139         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8140         is shorter.
8141         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8142         addend as added DW_OP_plus if it is shorter.
8143
8144 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8145
8146         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8147         (DTORS_SECTION_ASM_OP): Define.
8148
8149 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8150
8151         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8152         * config/t-dfprules: Move to ../libgcc/config.
8153         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8154         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8155         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8156         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8157         Likewise.
8158         (i[34567]86-*-cygwin*): Likewise.
8159         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
8160         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8161         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8162         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8163         D64PBIT_FUNCS, D128PBIT_FUNCS.
8164
8165 2011-07-11  Richard Guenther  <rguenther@suse.de>
8166
8167         * tree-vrp.c (simplify_conversion_using_ranges): Manually
8168         translate the source value-range through the conversion chain.
8169
8170 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
8171
8172         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8173
8174 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8175
8176         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8177         a bi-arch compiler defaulting to 31-bit. In this case:
8178         (tmake_file): Add s390/t-linux64.
8179         * doc/install.texi: Add s390-linux to the list of targets supporting
8180         --enable-targets=all.
8181
8182 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8183             Matthias Klose <doko@debian.org>
8184
8185         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8186         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8187         (tm_file): Add mips/linux64.h.
8188         (tmake_file): Add mips/t-linux64.
8189         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8190         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8191         instead of hardcoded mabi=n32.
8192         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8193         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8194         convention.
8195
8196 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8197
8198         * passes.c (init_optimization_passes): Add invariant motion pass
8199         after induction variable optimization.
8200
8201 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
8202
8203         PR target/39633
8204         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8205         offsets 1..5 set cc0 in a usable way.
8206
8207 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
8208
8209         * tree.h (call_expr_arg): Remove.
8210         (call_expr_argp): Likewise.
8211
8212 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8213
8214         * config/sparc/sparc.md (save_register_window_1): Rename to...
8215         (window_save): ...this.
8216         * config/sparc/sparc.c (emit_save_register_window): Rename to...
8217         (emit_window_save): ...this.
8218         (sparc_expand_prologue): Adjust to above renaming.
8219
8220 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8221
8222         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8223         of movabs for x32.
8224
8225 2011-07-10  Richard Henderson  <rth@redhat.com>
8226
8227         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8228         run final, instead of emitting text directly.
8229
8230 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8231
8232         * config/i386/i386.c (ix86_option_override_internal): Turn on
8233         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
8234         small PIC models for TARGET_X32.
8235
8236 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
8237
8238         PR target/49684
8239         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8240         $(LIBGCC2_CFLAGS).
8241
8242         PR bootstrap/49680
8243         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8244         stray notes and debug insns by using prev_nonnote_nondebug_insn
8245         instead of PREV_INSN.
8246
8247 2011-07-09  Richard Henderson  <rth@redhat.com>
8248
8249         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8250         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8251         * dwarf2out.c: ... here.
8252         (output_all_cfis): Remove.
8253         (dwarf2out_switch_text_section): Use output_cfis directly.
8254         (size_of_locs): Export.
8255         (output_loc_sequence, output_loc_sequence_raw): Export.
8256         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8257         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8258         output_cfa_loc_raw): Move to ...
8259         * dwarfcfi.c: ... here.
8260         * dwarf2out.h: Update decls.
8261
8262 2011-07-09  Richard Henderson  <rth@redhat.com>
8263
8264         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8265         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8266         * dwarf2cfi.c: ... here.
8267         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8268         (DWARF_ROUND, DWARF_CIE_ID): Remove.
8269         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8270         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8271         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8272
8273 2011-07-09  Richard Henderson  <rth@redhat.com>
8274
8275         * dwarf2cfi.c (cie_return_save): New.
8276         (queue_reg_save): Use compare_reg_or_pc.
8277         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8278         (dwarf2out_frame_debug_expr): Likewise.
8279         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8280         (initial_return_save): Likewise.
8281         (execute_dwarf2_frame): Save and restore initial return save from
8282         the cie to the fde.
8283         * config/mips/mips.c (mips_frame_set): Remove special case for
8284         DWARF_FRAME_RETURN_COLUMN.
8285
8286 2011-07-09  Richard Henderson  <rth@redhat.com>
8287
8288         * dwarf2cfi.c (lookup_cfa): Remove.
8289         (execute_dwarf2_frame): Assert queues are empty on entry.
8290         Setup initial cfa directly, not via lookup_cfa.
8291         Don't clear args_size state here.
8292
8293 2011-07-09  Richard Henderson  <rth@redhat.com>
8294
8295         * dwarf2cfi.c (add_cfi_vec): New.
8296         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
8297         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
8298         (execute_dwarf2_frame): Set add_cfi_vec.
8299
8300 2011-07-09  Richard Henderson  <rth@redhat.com>
8301
8302         * defaults.h (ASM_COMMENT_START): Move here...
8303         * dwarf2asm.c: ... from here.
8304         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8305         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8306         * varasm.c: Likewise.
8307
8308 2011-07-09  Richard Henderson  <rth@redhat.com>
8309
8310         PR debug/49686
8311         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8312         (create_cfi_notes): ... do it here instead.
8313
8314 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
8315
8316         PR debug/49676
8317         * dwarf2out.c (size_of_int_loc_descriptor): New function.
8318         (address_of_int_loc_descriptor): Use it.
8319         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8320
8321 2011-07-09  Richard Henderson  <rth@redhat.com>
8322
8323         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8324         (prologue, epilogue): New.
8325         (return, *rts): New.
8326         (blockage, setd, seti): New.
8327         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8328         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8329         (pdp11_saved_regno): New.
8330         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8331         generate rtl instead of text.
8332         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8333         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
8334         * config/pdp11/pdp11-protos.h: Update.
8335
8336 2011-07-09  Richard Henderson  <rth@redhat.com>
8337
8338         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8339         try to insert an rtl prologue here.
8340         (rs6000_output_function_epilogue): Similarly.
8341         * config/rs6000/rs6000.md (prologue): Emit a barrier to
8342         satisfy !TARGET_SCHED_PROLOG.
8343         (epilogue, sibcall_epilogue): Likewise.
8344
8345 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
8346
8347         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
8348         (FP_REG_P): Delete.
8349         (IN_OR_GLOBAL_P): Likewise.
8350
8351 2011-07-08  Jason Merrill  <jason@redhat.com>
8352
8353         PR c++/45437
8354         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
8355         compound assignment.
8356
8357         * cgraph.c (cgraph_add_to_same_comdat_group): New.
8358         * cgraph.h: Declare it.
8359         * ipa.c (function_and_variable_visibility): Make sure thunks
8360         have the right visibility.
8361
8362 2011-07-08  Richard Henderson  <rth@redhat.com>
8363
8364         PR bootstrap/49680
8365         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8366         any tablejump vector.
8367
8368         PR bootstrap/49680
8369         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
8370         end of the prologue.
8371
8372 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
8373
8374         PR target/49621
8375         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
8376         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
8377         * config/rs6000/vector.md (vector_select_<mode>,
8378         vector_select_<mode>_uns): Change second operand of NE to
8379         CONST0_RTX (<MODE>mode) instead of const0_rtx.
8380         * config/rs6000/altivec.md (*altivec_vsel<mode>,
8381         *altivec_vsel<mode>_uns): Expect second operand of NE to be
8382         zero_constant of the corresponding vector mode.
8383         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
8384         Likewise.
8385
8386 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8387
8388         * graphite-dependences.c (build_alias_set_powerset): Remove
8389         continue from loop, add one more assert.
8390
8391 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8392
8393         PR target/46779
8394         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
8395         In particular, allow 8-bit values in r28 and r29.
8396         (avr_hard_regno_scratch_ok): Disallow any register that might be
8397         part of the frame pointer.
8398         (avr_hard_regno_rename_ok): Same.
8399         (avr_legitimate_address_p): Don't allow SUBREGs.
8400
8401 2011-07-08  Julian Brown  <julian@codesourcery.com>
8402
8403         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
8404         big-endian mode.
8405         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
8406         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
8407         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
8408         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
8409         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
8410         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
8411         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
8412         registers in big-endian mode.
8413
8414 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8415
8416         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
8417         in terms of another.
8418         (write_attr_value): Write a cast if necessary.
8419
8420         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
8421         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
8422         (REG_WORDS_BIG_ENDIAN): Document.
8423         * doc/tm.texi: Regenerate.
8424         * reload.c (operands_match_p): Take it into account.
8425         (reload_adjust_reg_for_mode): Likewise.
8426         * rtlanal.c (subreg_get_info): Likewise.
8427
8428 2011-07-08  Richard Guenther  <rguenther@suse.de>
8429
8430         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
8431         folding.
8432
8433 2011-07-08  Kai Tietz  <ktietz@redhat.com>
8434
8435         * fold-const.c (fold_truth_andor): Factored out truth_andor
8436         label from fold_binary as function.
8437         (fold_binary_loc): Replace truth_andor lable
8438         by function fold_truth_andor.
8439
8440 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
8441
8442         PR middle-end/49519
8443         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
8444         check if address is stored in register. If so - give up.
8445         (check_sibcall_argument_overlap_1): Do not perform check of
8446         overlapping when it is call to address.
8447
8448 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8449
8450         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
8451         of magic '31'.
8452
8453 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8454
8455         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
8456         GET_MODE_BITSIZE where appropriate.
8457         (widen_leading, expand_parity, expand_ctz, expand_ffs,
8458         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
8459         expand_float, expand_fix): Likewise.
8460         * expr.c (convert_move, convert_modes, expand_expr_real_2,
8461         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8462         * stor-layout.c (get_mode_bounds): Likewise.
8463         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
8464         Likewise.
8465         * convert.c (convert_to_integer): Likewise.
8466         * expmed.c (expand_shift_1): Likewise.
8467
8468         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
8469         a bitsize.
8470
8471         * optabs.c (expand_binop): Tighten conditions for doubleword
8472         expansions.
8473         (widen_bswap): Assert that mode bitsize and precision are the same.
8474         * stor-layout.c (get_best_mode): Skip modes that have lower
8475         precision than bitsize.
8476         * recog.c (simplify_while_replacing): Assert that bitsize and
8477         precision are the same.
8478
8479 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8480
8481         * Makefile.in (LIBGCOV): Remove.
8482         (libgcc.mvars): Remove LIBGCOV.
8483         * libgov.c: Move to ../libgcc.
8484
8485 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8486
8487         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
8488
8489 2011-07-08  Martin Jambor  <mjambor@suse.cz>
8490
8491         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
8492         is too big for total scalarization.
8493
8494 2011-07-07  Richard Henderson  <rth@redhat.com>
8495
8496         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
8497         (DBX_DEBUGGING_INFO): Undef.
8498
8499 2011-07-07  Richard Henderson  <rth@redhat.com>
8500
8501         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
8502         Handle some opcodes specially for debugging.
8503         * print-rtl.c: Include dwarf2out.h
8504         (print_rtx): Handle NOTE_INSN_CFI.
8505         * Makefile.in (print-rtl.o): Update.
8506
8507 2011-07-07  Richard Henderson  <rth@redhat.com>
8508
8509         * tree-pass.h (pass_dwarf2_frame): Declare.
8510         * passes.c (init_optimization_passes): Add it.
8511         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
8512         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
8513         make static, do not call add_cfis_to_fde.
8514         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
8515         dwarf2out_frame_init): Merge into...
8516         (execute_dwarf2_frame): ... here.  New function.
8517         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
8518         saved_do_cfi_asm to a tri-state variable.
8519         (gate_dwarf2_frame, pass_dwarf2_frame): New.
8520         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
8521         if it has yet to be done.  Don't call dwarf2cfi_function_init.
8522         * dwarf2out.h, debug.h: Update decls.
8523         * final.c (final_start_function): Don't call
8524         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
8525         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
8526         * toplev.c (lang_dependent_init): Likewise.
8527
8528 2011-07-07  Richard Henderson  <rth@redhat.com>
8529
8530         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
8531         FDE_TABLE_INCREMENT): Replace with...
8532         (fde_vec): ... this, a new vector.
8533         (current_fde): Remove.  Replace all users with cfun->fde.
8534         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
8535         (size_of_aranges, dwarf2out_finish): Likewise.
8536         (dwarf2out_alloc_current_fde): Break out from ...
8537         (dwarf2out_begin_prologue): ... here.
8538         (dwarf2out_frame_init): Remove.
8539         * dwarf2cfi.c: Update all users of current_fde.
8540         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
8541         * dwarf2out.h: Update decls.
8542         (dw_fde_node): Add fde_index member.
8543         * function.h (struct function): Add fde member.
8544
8545 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8546             Richard Henderson  <rth@redhat.com>
8547
8548         * dwarf2cfi.c (add_cfi): Remove.
8549         (dwarf2out_cfi_label): Remove force argument.  Only generate the
8550         label name.
8551         (add_fde_cfi): Simplify the different code paths.
8552         (add_cie_cfi): New.
8553         (old_cfa, old_cfa_remember): New.
8554         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
8555         (last_reg_save_label): Remove.
8556         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
8557         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8558         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8559         dwarf2out_frame_debug_cfa_expression,
8560         dwarf2out_frame_debug_cfa_restore,
8561         dwarf2out_frame_debug_cfa_window_save,
8562         dwarf2out_frame_debug_expr): Remove label parameter.
8563         (cfi_label_required_p, add_cfis_to_fde): New.
8564         (dwarf2out_frame_debug_after_prologue): New.
8565         (dwarf2cfi_frame_init): Initialize old_cfa.
8566         (dwarf2out_frame_debug_restore_state): Likewise.
8567         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
8568         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
8569         * final.c (final_start_function): Call
8570         dwarf2out_frame_debug_after_prologue.
8571
8572 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8573             Richard Henderson  <rth@redhat.com>
8574
8575         * dwarf2cfi.c (cfi_insn): New.
8576         (dwarf2out_cfi_label): Don't emit cfi label here.
8577         (add_fde_cfi): Create a NOTE_INSN_CFI.
8578         (dwarf2out_frame_debug): Setup cfi_insn.
8579         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
8580         (dwarf2out_cfi_begin_epilogue): Make static.
8581         (dwarf2out_frame_debug_restore_state): Make static.
8582         * dwarf2out.c (output_cfi_directive): Make static.
8583         (dwarf2out_emit_cfi): New.
8584         * dwarf2out.h: Update.
8585         * final.c (final): Remove CFI notes.
8586         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
8587         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
8588         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
8589         * insn-notes.def (NOTE_INSN_CFI): New.
8590         (NOTE_INSN_CFI_LABEL): New.
8591         * rtl.h (union rtunion_def): Add rt_cfi member.
8592         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
8593
8594 2011-07-07  Richard Henderson  <rth@redhat.com>
8595
8596         * dwarf2cfi.c: New file.
8597         * Makefile.in (OBJS): Add it.
8598         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
8599         * gengtype.c (open_base_files): Include dwarf2out.h.
8600         * coretypes.h (enum var_init_status): Move from ...
8601         * rtl.h: ... here.
8602         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
8603         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
8604         expand_builtin_dwarf_sp_column, init_return_column_size,
8605         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
8606         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
8607         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
8608         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
8609         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
8610         compute_barrier_args_size, dwarf2out_args_size,
8611         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
8612         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
8613         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
8614         queue_reg_save, dwarf2out_flush_queued_reg_saves,
8615         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
8616         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8617         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8618         dwarf2out_frame_debug_cfa_expression,
8619         dwarf2out_frame_debug_cfa_restore,
8620         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
8621         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
8622         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
8623         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
8624         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
8625         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
8626         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
8627         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
8628         dw_loc_descr_node): Move to dwarf2out.h.
8629         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
8630         mem_loc_descriptor): Export.
8631         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
8632         (dwarf2out_frame_init): Extract CIE generation code to
8633         dwarf2cfi_frame_init.
8634
8635 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
8636
8637         PR target/49660
8638         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
8639         MASK_V8PLUS, remove commented out flag and reorder.
8640
8641 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
8642
8643         PR c/49644
8644         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
8645         one non-complex and one complex argument, call c_save_expr on both
8646         operands.
8647
8648 2011-07-07  Martin Jambor  <mjambor@suse.cz>
8649
8650         PR middle-end/49495
8651         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
8652         (verify_cgraph_node): Some functinality moved to
8653         verify_edge_corresponds_to_fndecl, call it.
8654
8655 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * config.gcc (*local*): Remove.
8658         * doc/install-old.texi: Don't mention local configurations.
8659
8660 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
8661
8662         PR debug/49522
8663         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
8664         referencing debug insns that have been reset.
8665         (dead_debug_insert_before): Don't assert reg is non-NULL,
8666         instead return immediately if it is NULL.
8667
8668 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8669
8670         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8671
8672 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8673
8674         * hw-doloop.c: New file.
8675         * hw-doloop.h: New file.
8676         * Makefile.in (OBJS): Add hw-doloop.o.
8677         (hw-doloop.o): New rule.
8678         ($(obj_out_file)): Add hw-doloop.h dependency.
8679         * config/bfin/bfin.c: Include "hw-doloop.h".
8680         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8681         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8682         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
8683         type changed to hwloop_info.  Return bool, true if the loop was
8684         successfully optimized.  Remove code that was moved to
8685         hw-doloop.c, and adjust other parts.
8686         (hwloop_fail): New static function, containing parts that used
8687         to be in bfin_optimize_loop.
8688         (bfin_discover_loop, bfin_discover_loops, free_loops,
8689         bfin_reorder_loops): Remove.
8690         (hwloop_pattern_reg): New static function.
8691         (bfin_doloop_hooks): New variable.
8692         (bfin_reorg_loops): Remove most code, call reorg_loops.
8693         * config/bfin/bfin.md (doloop_end splitter): Also enable if
8694         loop counter is a memory_operand.
8695
8696 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8697
8698         * config.gcc: Support --with-multilib-list for x86 Linux targets.
8699
8700         * configure.ac: Mention x86-64 for --with-multilib-list.
8701         * configure: Regenerated.
8702
8703         * config/i386/gnu-user64.h (SPEC_64): Support x32.
8704         (SPEC_32): Likewise.
8705         (ASM_SPEC): Likewise.
8706         (LINK_SPEC): Likewise.
8707         (TARGET_THREAD_SSP_OFFSET): Likewise.
8708         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8709         (SPEC_X32): New.
8710
8711         * config/i386/i386.h (TARGET_X32): New.
8712         (TARGET_LP64): New.
8713         (LONG_TYPE_SIZE): Likewise.
8714         (POINTER_SIZE): Likewise.
8715         (POINTERS_EXTEND_UNSIGNED): Likewise.
8716         (OPT_ARCH64): Support x32.
8717         (OPT_ARCH32): Likewise.
8718
8719         * config/i386/i386.opt (mx32): New.
8720
8721         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8722         (GLIBC_DYNAMIC_LINKERX32): Likewise.
8723         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8724         (GLIBC_DYNAMIC_LINKERX32): Likewise.
8725
8726         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8727         (BIONIC_DYNAMIC_LINKERX32): Likewise.
8728         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8729
8730         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8731
8732         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8733
8734         * doc/invoke.texi: Document -mx32.
8735
8736 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
8737
8738         * doc/invoke.texi (mwords-little-endian): Deprecate.
8739         * config/arm/arm.opt (mwords-little-endian): Likewise.
8740         * config/arm/arm.c (arm_option_override): Warn about the deprecation
8741         of -mwords-little-endian.
8742
8743 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
8744
8745         * reload1.c (choose_reload_regs): Use mode sizes to check whether
8746         an old reload register completely defines the required value.
8747
8748 2011-07-07  Richard Guenther  <rguenther@suse.de>
8749
8750         * fold-const.c (fold_unary_loc): Do not strip sign-changes
8751         for NEGATE_EXPR.
8752
8753 2011-07-07  Richard Guenther  <rguenther@suse.de>
8754
8755         * tree-vrp.c (simplify_conversion_using_ranges): New function.
8756         (simplify_stmt_using_ranges): Call it.
8757
8758 2011-07-07  Kai Tietz  <ktietz@redhat.com>
8759
8760         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8761         (lookup_logical_inverted_value): Likewise.
8762         (simplify_bitwise_binary_1): Likewise.
8763         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8764
8765 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8766
8767         * gcc.c (%[Spec]): Don't document.
8768         (struct spec_list): Update comment.
8769         (do_spec_1): Don't handle %[Spec].
8770         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8771
8772 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8773
8774         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8775         default based on TARGET_ASM_NAMED_SECTION.
8776         * common/common-target.def (have_named_sections): Default to true.
8777         * common/config/default-common.c: Don't include tm.h.
8778         * common/config/picochip/picochip-common.c
8779         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8780         * common/config/m32c/m32c-common.c: Remove.
8781         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8782         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8783         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8784         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8785         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8786         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8787         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8788
8789 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
8790
8791         PR middle-end/49640
8792         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8793         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8794
8795 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8796
8797         PR libmudflap/49550
8798         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8799
8800 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8801
8802         PR target/39150
8803         * configure.ac (gcc_cv_as_hidden): Also accept
8804         x86_64-*-solaris2.1[0-9]*.
8805         (gcc_cv_as_cfi_directive): Likewise.
8806         (gcc_cv_as_comdat_group_group): Likewise.
8807         (set_have_as_tls): Likewise.
8808         * configure: Regenerate.
8809         * config.gcc (i[34567]86-*-solaris2*): Also handle
8810         x86_64-*-solaris2.1[0-9]*.
8811         * config.host (i[34567]86-*-solaris2*): Likewise.
8812         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8813         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8814         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8815         (TARGET_LD_EMULATION): Use it.
8816         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8817         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8818         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8819         (ASM_CPU64_DEFAULT_SPEC): Define.
8820         (ASM_CPU_SPEC): Use %(asm_cpu_default).
8821         (ASM_SPEC): Redefine.
8822         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8823         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8824         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8825         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8826         configuration.
8827         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8828
8829 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8830
8831         * config/sol2.h (ASM_SPEC): Split into ...
8832         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8833         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8834         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8835         (ASM_SPEC): Use ASM_SPEC_BASE.
8836         * config/sparc/sol2.h (ASM_SPEC): Redefine.
8837
8838 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
8839
8840         * config/avr/avr.md (*reload_insi): Change predicate #1 to
8841         const_int_operand.  Ditto for peep2 producing this insn.
8842         Add argument to output_reload_insisf call.
8843         (*movsi,*movsf): Add argument to output_movsisf call.
8844         (*reload_insf): New insn and new peep2 to produce it.
8845         * config/avr/avr-protos.h (output_movsisf): Change prototype.
8846         (output_reload_insisf): Change prototype.
8847         * config/avr/avr.c (avr_asm_len): New function.
8848         (output_reload_insisf): Rewrite.
8849         (output_movsisf): Change prototype.  output_reload_insisf for
8850         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
8851         (adjust_insn_length): Add argument to output_movsisf and
8852         output_reload_insisf call.
8853
8854 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8855
8856         * emit-rtl.c (paradoxical_subreg_p): New function.
8857         * rtl.h (paradoxical_subreg_p): Declare.
8858         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8859         apply_distributive_law, simplify_comparison, simplify_set): Use it.
8860         * cse.c (record_jump_cond, cse_insn): Likewise.
8861         * expr.c (force_operand): Likewise.
8862         * rtlanal.c (num_sign_bit_copies1): Likewise.
8863         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8864         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8865         (push_reload): Use precision to check for paradoxical subregs.
8866         * expmed.c (extract_bit_field_1): Likewise.
8867
8868         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8869         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8870         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8871         simplify_set, simplify_logical, expand_compound_operation,
8872         make_extraction, force_to_mode, if_then_else_cond, extended_count,
8873         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8874         record_value_for_reg): Likewise.
8875         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8876         * simplify-rtx. c (simplify_unary_operation_1,
8877         simplify_binary_operation_1, simplify_const_relational_operation):
8878         Likewise.
8879
8880         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8881         instead of GET_MODE_BITSIZE where appropriate.
8882         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8883         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8884         init_num_sign_bit_copies_in_rep): Likewise.
8885         * cse.c (fold_rtx, cse_insn): Likewise.
8886         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8887         * simplify-rtx.c (simplify_unary_operation_1,
8888         simplify_const_unary_operation, simplify_binary_operation_1,
8889         simplify_const_binary_operation, simplify_ternary_operation,
8890         simplify_const_relational_operation, simplify_subreg): Likewise.
8891         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8892         simplify_if_then_else, simplify_set, expand_compound_operation,
8893         expand_field_assignment, make_extraction, if_then_else_cond,
8894         make_compound_operation, force_to_mode, make_field_assignment,
8895         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8896         extended_count, try_widen_shift_mode, simplify_shift_const_1,
8897         simplify_comparison, record_promoted_value, simplify_compare_const,
8898         record_dead_and_set_regs_1): Likewise.
8899
8900         Revert:
8901         * simplify-rtx.c (simplify_const_binary_operation): Use the
8902         shift_truncation_mask hook instead of performing modulo by width.
8903         Compare against mode precision, not bitsize.
8904         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8905         Use shift_truncation_mask instead of constructing the value manually.
8906
8907 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8908
8909         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8910         declaration.
8911         (rs6000_save_toc_in_prologue_p): Ditto.
8912
8913         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8914         up the static chain (r11) during indirect function calls.
8915         (-msave-toc-indirect): New undocumented debug switch.
8916
8917         * config/rs6000/rs6000.c (struct machine_function): Add
8918         save_toc_in_prologue field to note whether the prologue needs to
8919         save the TOC value in the reserved stack location.
8920         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
8921         to save the TOC in the prologue, do so.
8922         (rs6000_trampoline_init): Don't allow creating AIX style
8923         trampolines if -mno-r11 is in effect.
8924         (rs6000_call_indirect_aix): New function to create AIX style
8925         indirect calls, adding support for -mno-r11 to suppress loading
8926         the static chain, and saving the TOC in the prologue instead of
8927         the call body.
8928         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8929         TOC in the prologue.
8930
8931         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8932         register numbers.
8933         (TOC_REGNUM): Ditto.
8934         (STATIC_CHAIN_REGNUM): Ditto.
8935         (ARG_POINTER_REGNUM): Ditto.
8936         (SFP_REGNO): Delete, unused.
8937         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8938         function descriptor offsets.
8939         (TOC_SAVE_OFFSET_64BIT): Ditto.
8940         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8941         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8942         (AIX_FUNC_DESC_SC_32BIT): Ditto.
8943         (AIX_FUNC_DESC_SC_64BIT): Ditto.
8944         (ptrload): New mode attribute for the appropriate load of a pointer.
8945         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8946         (call_indirect_aix64): Ditto.
8947         (call_value_indirect_aix32): Ditto.
8948         (call_value_indirect_aix64): Ditto.
8949         (call_indirect_nonlocal_aix32_internal): Ditto.
8950         (call_indirect_nonlocal_aix32): Ditto.
8951         (call_indirect_nonlocal_aix64_internal): Ditto.
8952         (call_indirect_nonlocal_aix64): Ditto.
8953         (call): Rewrite AIX indirect function calls.  Add support for
8954         eliminating the static chain, and for moving the save of the TOC
8955         to the function prologue.
8956         (call_value): Ditto.
8957         (call_indirect_aix<ptrsize>): Ditto.
8958         (call_indirect_aix<ptrsize>_internal): Ditto.
8959         (call_indirect_aix<ptrsize>_internal2): Ditto.
8960         (call_indirect_aix<ptrsize>_nor11): Ditto.
8961         (call_value_indirect_aix<ptrsize>): Ditto.
8962         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8963         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8964         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8965         (call_nonlocal_aix32): Relocate in the rs6000.md file.
8966         (call_nonlocal_aix64): Ditto.
8967
8968         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8969         -mno-r11 documentation.
8970
8971 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8972
8973         PR other/49658
8974         * doc/extend.texi (Compound Literals): Fix typo.
8975
8976 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
8977
8978         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8979
8980 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
8981
8982         * configure.ac (plugin-version.h): Generate
8983         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8984         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8985         macros.
8986
8987         * configure: Regenerate.
8988
8989         * doc/plugins.texi (Building GCC plugins): Mention
8990         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8991
8992 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8993
8994         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8995         * combine.c (make_extraction, gen_lowpart_or_truncate,
8996         apply_distributive_law, simplify_comparison,
8997         reg_truncated_to_mode, record_truncated_value): Use it.
8998         * cse.c (notreg_cost): Likewise.
8999         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9000         * expr.c (convert_move, convert_modes): Likewise.
9001         * optabs.c (expand_binop, expand_unop): Likewise.
9002         * postreload.c (move2add_last_label): Likewise.
9003         * regmove.c (optimize_reg_copy_3): Likewise.
9004         * rtlhooks.c (gen_lowpart_general): Likewise.
9005         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9006
9007 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
9008
9009         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9010
9011 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9012
9013         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9014         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9015         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9016         (simplify_const_unary_operation, simplify_binary_operation_1,
9017         simplify_const_binary_operation, simplify_const_relational_operation):
9018         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
9019         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9020         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9021         simplify_shift_const_1, simplify_comparison): Likewise.
9022         * expr.c (convert_modes): Likewise.
9023         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9024         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9025         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9026
9027         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9028
9029 2011-07-06  Richard Guenther  <rguenther@suse.de>
9030
9031         PR tree-optimization/49645
9032         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9033         register variables.
9034         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9035         in type qualification here ...
9036         (copy_reference_ops_from_ref): ... not here.
9037         (vn_reference_lookup_3): ... or here.
9038         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9039         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9040
9041 2011-07-06  Ian Lance Taylor  <iant@google.com>
9042
9043         * doc/install.texi (Configuration): It's
9044         --enable-gnu-indirect-function, not --enable-indirect-function.
9045
9046 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9047
9048         * simplify-rtx.c (simplify_const_binary_operation): Use the
9049         shift_truncation_mask hook instead of performing modulo by width.
9050         Compare against mode precision, not bitsize.
9051         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9052         Use shift_truncation_mask instead of constructing the value manually.
9053
9054 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9055
9056         PR middle-end/47383
9057         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9058         address computation and convert to address_mode if needed.
9059
9060 2011-07-06  Richard Guenther  <rguenther@suse.de>
9061
9062         * tree.c (build_common_tree_nodes_2): Merge with
9063         build_common_tree_nodes.
9064         * tree.h (build_common_tree_nodes): Adjust prototype.
9065         (build_common_tree_nodes_2): Remove.
9066         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9067         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9068
9069 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
9070
9071         PR tree-optimization/49618
9072         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9073         t recurse on the decl.
9074         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9075         return true if expr isn't known to be defined in current
9076         TU or some other LTO partition.
9077
9078 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9079
9080         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9081         override CASE_VALUES_THRESHOLD.
9082
9083         * stmt.c (toplevel): Include params.h.
9084         (case_values_threshold): Use the --param case-values-threshold
9085         value if non-zero, otherwise use machine dependent value.
9086         (expand_case): Use case_values_threshold.
9087
9088         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9089
9090         * doc/invoke.texi (--param case-values-threshold): Document.
9091
9092 2011-07-05  Richard Henderson  <rth@redhat.com>
9093
9094         * dwarf2out.c (dwarf2out_cfi_label): Make static.
9095         (dwarf2out_flush_queued_reg_saves): Make static.
9096         (dwarf2out_reg_save): Remove.
9097         (dwarf2out_return_save): Remove.
9098         (dwarf2out_return_reg): Remove.
9099         (dwarf2out_reg_save_reg): Remove.
9100         (dwarf2out_def_cfa): Merge into ...
9101         (dwarf2out_frame_init): ... here.
9102         * dwarf2out.h, tree.h: Remove declarations as necessary.
9103
9104 2011-07-05  Richard Henderson  <rth@redhat.com>
9105
9106         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9107         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9108         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9109         the alloc insn.
9110
9111         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9112         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9113         (process_epilogue): Don't call dwarf2out_def_cfa.
9114
9115         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9116         indicate the return address save.
9117         (process_cfa_register): Likewise.
9118
9119         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9120         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9121
9122         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9123         for ar.pfs save at alloc insn.
9124
9125 2011-07-05  Richard Henderson  <rth@redhat.com>
9126
9127         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9128         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9129         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9130         stack pointer save.
9131         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9132         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
9133         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9134         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9135
9136 2011-07-05  Richard Henderson  <rth@redhat.com>
9137
9138         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
9139         VUNSPEC_* constants here instead of via define_constants.
9140         (VUNSPEC_PEM): New constant.
9141         (procedure_entry_mask): New insn.
9142         (prologue): New expander.
9143         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9144         (vax_expand_prologue): Rename from vax_output_function_prologue;
9145         emit rtl instead of text.
9146         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9147         (print_operand): Add 'x' prefix.
9148
9149 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9150
9151         PR middle-end/47715
9152         * calls.c (precompute_register_parameters): Promote the function
9153         argument before checking non-legitimate constant.
9154
9155 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9156
9157         PR tree-optimization/47654
9158         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9159         (lst_do_strip_mine_loop): Return an int.
9160         (lst_do_strip_mine): Same.
9161         (scop_do_strip_mine): Same.
9162         (scop_do_block): Loop blocking should strip-mine at least two loops.
9163         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9164         (scop_do_interchange): Same.
9165         * graphite-poly.h (scop_do_interchange): Update declaration.
9166         (scop_do_strip_mine): Same.
9167
9168 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9169
9170         * graphite-clast-to-gimple.c (precision_for_value): Removed.
9171         (precision_for_interval): Removed.
9172         (gcc_type_for_interval): Use mpz_sizeinbase.
9173
9174 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9175
9176         * graphite-ppl.h (value_max): Correct computation of max.
9177
9178 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9179
9180         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9181
9182 2011-07-05  Richard Guenther  <rguenther@suse.de>
9183
9184         * c-decl.c (c_init_decl_processing): Defer building common
9185         tree nodes to c_common_nodes_and_builtins.
9186
9187 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
9188
9189         PR tree-optimization/49580
9190         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9191         the loop's number of iterations.
9192         * tree-parloops.c (transform_to_exit_first_loop): Add the
9193         handling of the loop's number of iterations before the call
9194         to gimple_duplicate_sese_tail.
9195         Insert the stmt caclculating the new rhs of the loop's
9196         condition stmt to the preheader instead of iters_bb.
9197
9198 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9199
9200         PR rtl-optimization/47449
9201         * fwprop.c (forward_propagate_subreg): Don't propagate hard
9202         register nor zero/sign extended hard register.
9203
9204 2011-07-05  Richard Guenther  <rguenther@suse.de>
9205
9206         PR tree-optimization/49518
9207         PR tree-optimization/49628
9208         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9209         irrelevant and invariant data-references.
9210         (vect_analyze_data_ref_access): For invariant loads clear the
9211         group association.
9212
9213 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
9214
9215         PR rtl-optimization/49619
9216         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9217         pass VOIDmode as op0_mode to recursive call, and return temp even
9218         when different from tor, just if it is not IOR of the original
9219         PLUS arguments.
9220
9221         PR rtl-optimization/49472
9222         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9223         negating MULT, negate the second operand instead of first.
9224         (simplify_binary_operation_1) <case MULT>: If one operand is
9225         a NEG and the other is MULT, don't attempt to optimize by negation
9226         of the MULT operand if it only moves the NEG operation around.
9227
9228         PR debug/49602
9229         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9230         get_current_def return value if it can't be trusted to be
9231         the current value of the variable in the current bb.
9232
9233 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
9234
9235         PR target/49600
9236         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9237         general register to memory for !TARGET_INTER_UNIT_MOVES.
9238
9239 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9240
9241         PR target/44643
9242         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9243         instead of TREE_READONLY.
9244
9245 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9246
9247         * doc/extend.texi (AVR Built-in Functions): Update documentation
9248         of __builtin_avr_fmul*.
9249         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9250         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9251         * config/avr/avr.md (fmul): Rename to fmul_insn.
9252         (fmuls): Rename to fmuls_insn.
9253         (fmulsu): Rename to fmulsu_insn.
9254         (fmul,fmuls,fmulsu): New expander.
9255         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9256         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9257         * config/avr/libgcc.S (__fmul): New function.
9258         (__fmuls): New function.
9259         (__fmulsu,__fmulsu_exit): New function.
9260
9261 2011-07-04  Richard Guenther  <rguenther@suse.de>
9262
9263         PR tree-optimization/49615
9264         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9265         basic-block index check.
9266
9267 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9268
9269         * longlong.h (count_leading_zeros, count_trailing_zeros,
9270         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9271         resp. 64.
9272
9273 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
9274
9275         PR tree-optimization/49610
9276         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9277         a basic block.
9278
9279 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9280             Olivier Hainque  <hainque@adacore.com>
9281             Nicolas Setton  <setton@adacore.com>
9282
9283         * tree.h (TYPE_ARTIFICIAL): New flag.
9284         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9285         the DIE of the type if it is artificial.
9286         (gen_array_type_die): Likewise.
9287         (gen_enumeration_type_die): Likewise.
9288         (gen_struct_or_union_type_die): Likewise.
9289         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9290         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9291
9292 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9293
9294         * tree-object-size.c (pass_through_call): Handle
9295         BUILT_IN_ASSUME_ALIGNED.
9296
9297 2011-07-01  Martin Jambor  <mjambor@suse.cz>
9298
9299         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9300
9301 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
9302
9303         PR middle-end/48016
9304         * explow.c (update_nonlocal_goto_save_area): Use proper mode
9305         for stack save area.
9306         * function.c (expand_function_start): Likewise.
9307
9308 2011-07-01  Richard Guenther  <rguenther@suse.de>
9309
9310         PR middle-end/49596
9311         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9312         may have unknown refs.
9313
9314 2011-07-01  Kai Tietz  <ktietz@redhat.com>
9315
9316         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9317
9318 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9319
9320         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9321         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9322         (Specific, mips-sgi-irix6): Likewise.
9323
9324 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9325
9326         PR libmudflap/49549
9327         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9328
9329 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9330
9331         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9332         [idx]= and [idx1 ... idx2]= before initializers if needed for
9333         array initializers.
9334
9335 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
9336
9337         * config.gcc (score-*-elf): Remove score7.o.
9338         * config/score/t-score-elf: Likewise.
9339         * config/score/score.c: Merge score7 to score.c and
9340         remove forwarding functions.
9341         * config/score/score7.c: Deleted.
9342         * config/score/score7.h: Deleted.
9343
9344 2011-07-01  Richard Guenther  <rguenther@suse.de>
9345
9346         PR tree-optimization/49603
9347         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
9348
9349 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9350
9351         * tree-sra.c (struct access): Rename total_scalarization to
9352         grp_total_scalarization
9353         (completely_scalarize_var): New function.
9354         (sort_and_splice_var_accesses): Set total_scalarization in the
9355         representative access.
9356         (analyze_access_subtree): Propagate total scalarization accross the
9357         tree, no holes in totally scalarized trees, simplify coverage
9358         computation.
9359         (analyze_all_variable_accesses): Call completely_scalarize_var instead
9360         of completely_scalarize_record.
9361
9362 2011-06-30  Richard Henderson  <rth@redhat.com>
9363
9364         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
9365         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
9366         * config/i386/i386.c: Don't include dwarf2out.h.
9367         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
9368         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
9369         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
9370         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
9371         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
9372
9373 2011-06-30  Richard Henderson  <rth@redhat.com>
9374
9375         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
9376         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9377         * final.c (final_scan_insn): Look for it, and invoke
9378         dwarf2out_frame_debug before the insn if found.
9379
9380 2011-06-30  Richard Henderson  <rth@redhat.com>
9381
9382         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
9383         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
9384
9385 2011-06-30  Richard Henderson  <rth@redhat.com>
9386
9387         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
9388         Define a vector of this type.
9389         (regs_saved_in_regs): Use a VEC.
9390         (num_regs_saved_in_regs): Remove.
9391         (compare_reg_or_pc): New.
9392         (record_reg_saved_in_reg): Split out from...
9393         (dwarf2out_flush_queued_reg_saves): ... here.
9394         (clobbers_queued_reg_save): Update for VEC.
9395         (reg_saved_in): Likewise.
9396         (dwarf2out_frame_debug_init): Likewise.
9397         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
9398         (dwarf2out_frame_debug_cfa_register): Likewise.
9399
9400 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9401
9402         PR tree-optimization/49572
9403         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
9404         type of the RHS instead of that of the LHS for the expression type.
9405
9406 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9407
9408         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
9409         unconditionally.
9410
9411 2011-06-30  Richard Guenther  <rguenther@suse.de>
9412
9413         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
9414         * tree-ssa-structalias.c (create_variable_info_for): Do not
9415         add initial constraints for non-var-decls.  Properly handle
9416         globals in other ltrans partitions.
9417         (intra_create_variable_infos): Manually create constraints for
9418         the fake no-alias parameter.
9419         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
9420         and assert there are no clones.
9421
9422 2011-06-30  Richard Guenther  <rguenther@suse.de>
9423
9424         PR tree-optimization/46787
9425         * tree-data-ref.c (dr_address_invariant_p): Remove.
9426         (find_data_references_in_stmt): Invariant accesses are ok now.
9427         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
9428         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9429         invariant loads.
9430
9431 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9432
9433         PR tree-optimization/49094
9434         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
9435         (build_accesses_from_assign): Use it.
9436
9437 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9438
9439         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9440         handling of BUILT_IN_ASSUME_ALIGNED.
9441
9442         PR debug/49364
9443         * dwarf2out.c (output_abbrev_section): Don't return early
9444         if abbrev_die_table_in_use is 1.
9445         (dwarf2out_finish): Instead don't call output_abbrev_section
9446         nor emit abbrev_section_label in that case.
9447
9448 2011-06-30  Nick Clifton  <nickc@redhat.com>
9449
9450         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
9451         for the V850E.
9452
9453 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9454
9455         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9456         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
9457
9458 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
9459
9460         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9461         both pattern and original statements if necessary.
9462         (vect_transform_loop): Likewise.
9463         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
9464         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
9465         Mark the pattern statement only if the original statement doesn't
9466         have its own uses.
9467         (process_use): Call vect_mark_relevant with additional parameter.
9468         (vect_mark_stmts_to_be_vectorized): Likewise.
9469         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
9470         (vect_analyze_stmt): Handle both pattern and original statements
9471         if necessary.
9472         (vect_transform_stmt): Don't store vectorized pattern statement
9473         in the original statement.
9474         (vect_is_simple_use_1): Use related pattern statement only if the
9475         original statement is irrelevant.
9476         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9477
9478 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
9479
9480         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
9481         option.
9482         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
9483         entry.
9484         (TARGET_AVX128_OPTIMAL): New definition.
9485         * config/i386/i386.c (initial_ix86_tune_features): Initialize
9486         X86_TUNE_AVX128_OPTIMAL entry.
9487         (ix86_option_override_internal): Enable the generation
9488         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
9489         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
9490         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
9491
9492 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9493
9494         PR tree-optimization/49539
9495         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
9496         names by means of stmt_references_abnormal_ssa_name.
9497         (associate_plusminus): Call can_propagate_from before propagating
9498         from definition statements.
9499         (ssa_forward_propagate_and_combine): Remove superfluous newline.
9500
9501 2011-06-29  Richard Guenther  <rguenther@suse.de>
9502
9503         * doc/invoke.texi: Document -scev dump modifier.
9504         * tree-pass.h (TDF_SCEV): New dump flag.
9505         * tree-dump.c (dump_option_value_in): Add scev.
9506         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
9507         * tree-scalar-evolution.c: Likewise.
9508
9509 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
9510
9511         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
9512         (cxa_type_match): Correct declaration.
9513         (__gnu_unwind_pr_common): Reconstruct additional indirection
9514         when __cxa_type_match returns succeeded_with_ptr_to_base.
9515
9516 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9517
9518         PR rtl-optimization/49114
9519         * reload.c (struct replacement): Remove SUBREG_LOC member.
9520         (push_reload): Do not set it.
9521         (push_replacement): Likewise.
9522         (subst_reload): Remove dead code.
9523         (copy_replacements): Remove assertion.
9524         (copy_replacements_1): Do not handle SUBREG_LOC.
9525         (move_replacements): Likewise.
9526         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
9527         Detect subregs via recursive descent instead of via SUBREG_LOC.
9528
9529 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9530
9531         * config/avr/avr.c (avr_encode_section_info): Dispatch to
9532         default_encode_section_info.
9533
9534 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
9535
9536         PR tree-optimization/49545
9537         * builtins.c (get_object_alignment_1): Update function comment.
9538         Do not use DECL_ALIGN for functions, but test
9539         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
9540         * fold-const.c (get_pointer_modulus_and_residue): Don't check
9541         for functions here.
9542         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9543
9544 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
9545
9546         PR debug/49567
9547         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
9548         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
9549
9550 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9551
9552         PR target/34734
9553         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
9554         about uninitialized data attributed 'progmem' from here...
9555         (avr_encode_section_info): ...to this new function.
9556         (TARGET_ENCODE_SECTION_INFO): New define.
9557         (avr_section_type_flags): For data in ".progmem.data", remove
9558         section flag SECTION_WRITE.
9559
9560 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9561
9562         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
9563         _xmulhisi3_exit.
9564         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
9565         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
9566         (__umulhisi3): Ditto.
9567         * config/avr/avr.md (mulhisi3): New insn expender.
9568         (umulhisi3): New insn expender.
9569         (*mulhisi3_call): New insn.
9570         (*umulhisi3_call): New insn.
9571
9572 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9573
9574         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
9575
9576 2011-06-28  Richard Henderson  <rth@redhat.com>
9577
9578         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
9579         all code and arguments that handled pushes.  Update all callers.
9580
9581 2011-06-28  Richard Henderson  <rth@redhat.com>
9582
9583         * config/arm/arm.c (arm_output_function_prologue): Don't call
9584         thumb1_output_function_prologue.
9585         (arm_expand_prologue): Avoid dead store.
9586         (number_of_first_bit_set): Use ctz_hwi.
9587         (thumb1_emit_multi_reg_push): New.
9588         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
9589         to emit the entire prologue as rtl.
9590         (thumb1_output_interwork): Split out from
9591         thumb1_output_function_prologue.
9592         (thumb1_output_function_prologue): Remove.
9593         (arm_attr_length_push_multi): Handle thumb1.
9594         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
9595         (prologue_thumb1_interwork): New.
9596         (*push_multi): Allow thumb1; use push_mult_memory_operand.
9597         * config/arm/predicates.md (push_mult_memory_operand): New.
9598
9599 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9600
9601         * config/sparc/sync.md (*stbar): Delete.
9602         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
9603
9604 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9605
9606         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
9607
9608 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9609
9610         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
9611         (TARGET_64BIT_DEFAULT): Define.
9612         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
9613         of tm_file.
9614         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
9615
9616 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9617
9618         * common.opt (in_lto_p): New Variable entry.
9619         * flags.h (in_lto_p): Move to common.opt.
9620         * gcc.c: Include params.h.
9621         (set_option_handlers): Also use common_handle_option and
9622         target_handle_option.
9623         (main): Call global_init_params, finish_params and init_options_struct.
9624         * opts.c (debug_type_names): Move from toplev.c.
9625         (print_filtered_help): Access quiet_flag through opts pointer.
9626         (common_handle_option): Return early in the driver for some options.
9627         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
9628         opts pointer.
9629         * toplev.c (in_lto_p): Move to common.opt.
9630         (debug_type_names): Move to opts.c.
9631         * Makefile.in (OBJS): Remove opts.o.
9632         (OBJS-libcommon-target): Add opts.o.
9633         (gcc.o): Update dependencies.
9634
9635 2011-06-28  Kai Tietz  <ktietz@redhat.com>
9636
9637         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
9638
9639 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9640
9641         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9642         with '=' constraint modifier.
9643         (*divdf3_vfp): Likewise.
9644         ("*mulsf3_vfp"): Likewise.
9645         ("*muldf3_vfp"): Likewise.
9646         ("*mulsf3negsf_vfp"): Likewise.
9647         ("*muldf3negdf_vfp"): Likewise.
9648
9649 2011-06-28  Nick Clifton  <nickc@redhat.com>
9650
9651         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
9652         relaxation when performing an incremental link.
9653
9654 2011-06-28  Kai Tietz  <ktietz@redhat.com>
9655
9656         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9657         within BB from last to first.
9658
9659 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9660
9661         * genattr-common.c: New.  Based on genattr.c.
9662         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
9663         (MOSTLYCLEANFILES): Add insn-attr-common.h.
9664         (opts.o): Update dependencies.
9665         (.PRECIOUS): Add insn-attr-common.h.
9666         (simple_rtl_generated_h): Add insn-attr-common.h.
9667         (build/genattr-common.o): New.
9668         (genprogrtl): Add attr-common.
9669         * genattr.c (main): Include insn-attr-common.h.  Don't generate
9670         definitions of DELAY_SLOTS or INSN_SCHEDULING.
9671         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9672
9673 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
9674
9675         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9676         avr-*-* and avr-*-rtems* targets.
9677
9678         * config/avr/elf.h: New file.
9679         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9680         (TARGET_ASM_SELECT_SECTION): Define.
9681         (INIT_SECTION_ASM_OP): Undefine.
9682         (FINI_SECTION_ASM_OP): Undefine.
9683         (READONLY_DATA_SECTION_ASM_OP): Undefine.
9684         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9685         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9686         * config/avr/avr.h:
9687         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9688         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9689         (MAX_OFILE_ALIGNMENT): Move to elf.h.
9690         (STRING_LIMIT): Move to elf.h.
9691         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9692         (ASM_DECLARE_OBJECT_NAME): Remove.
9693         (ESCAPES): Remove.
9694         (ASM_OUTPUT_SKIP): Remove.
9695         (DWARF2_DEBUGGING_INFO): Remove.
9696         (OBJECT_FORMAT_ELF): Remove.
9697         (USER_LABEL_PREFIX): Remove.
9698         (ASM_OUTPUT_EXTERNAL): Remove.
9699         (ASM_OUTPUT_ASCII): Remove.
9700         (TYPE_ASM_OP): Remove.
9701         (SIZE_ASM_OP): Remove.
9702         (WEAK_ASM_OP): Remove.
9703         (STRING_ASM_OP): Remove.
9704         (SET_ASM_OP): Remove.
9705         (ASM_WEAKEN_LABEL): Remove.
9706         (TYPE_OPERAND_FMT): Remove.
9707         (ASM_DECLARE_FUNCTION_SIZE): Remove.
9708         (ASM_FINISH_DECLARE_OBJECT): Remove.
9709         (NO_DOLLAR_IN_LABEL): Remove.
9710         (ASM_GENERATE_INTERNAL_LABEL): Remove.
9711         (ASM_OUTPUT_CASE_LABEL): Remove.
9712         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9713         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9714         (gas_output_ascii): Remove.
9715         (gas_output_limited_string): Remove.
9716         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9717         * config/avr/avr-protos.h
9718         (gas_output_ascii): Remove prototye.
9719         (gas_output_limited_string): Remove prototype.
9720
9721 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
9722
9723         PR target/48637
9724         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
9725         asm operands.
9726
9727 2011-06-27  Jan Hubicka  <jh@suse.cz>
9728
9729         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9730         node instead of references in node.
9731
9732 2011-06-27  Richard Henderson  <rth@redhat.com>
9733
9734         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9735         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9736         inside ifdef.
9737
9738 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
9739
9740         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9741
9742         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9743         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9744         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9745         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9746         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9747         (evaluate_stmt, execute_fold_all_builtins): Handle
9748         BUILT_IN_ASSUME_ALIGNED.
9749         * tree-ssa-dce.c (propagate_necessity): Likewise.
9750         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9751         call_may_clobber_ref_p_1): Likewise.
9752         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9753         (expand_builtin_assume_aligned): New function.
9754         * doc/extend.texi (__builtin_assume_aligned): Document.
9755
9756         PR debug/49544
9757         * cselib.c (promote_debug_loc): If cselib_preserve_constants
9758         and l has two DEBUG_INSN owned locs instead of just one, adjust
9759         the second location's setting_insn too.
9760
9761 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9762
9763         PR libmudflap/38738
9764         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9765
9766 2011-06-27  Nick Clifton  <nickc@redhat.com>
9767
9768         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9769         bit position of highest bit set into a count of the high zero bits.
9770
9771 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
9772
9773         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9774
9775 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
9776
9777         PR lto/48492
9778         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9779         to a NULL parent.
9780
9781 2011-06-27  Richard Guenther  <rguenther@suse.de>
9782
9783         PR tree-optimization/49394
9784         * passes.c (execute_one_pass): Restore current_pass after
9785         applying IPA transforms.
9786
9787 2011-06-27  Kai Tietz  <ktietz@redhat.com>
9788
9789         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9790         out of type precision after operation.
9791         (find_bswap): Take for limit value the integer auto-promotion
9792         into account.
9793
9794 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
9795
9796         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9797         forward scan as well.
9798
9799 2011-06-27  Tristan Gingold  <gingold@adacore.com>
9800
9801         PR target/44241
9802         * config/vms/vms-protos.h: New file.
9803         * config/vms/vms-crtlmap.map: New file.
9804         * config/vms/vms.c: New file.
9805         * config/vms/make-crtlmap.awk: New file.
9806         * config/vms/vms-crtl.h: File removed.
9807         * config/vms/vms-crtl-64.h: File removed.
9808         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9809         * config/alpha/vms64.h: Do not include vms-crtl-64.h
9810         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9811         clear some builtins on VMS.  Calls vms_patch_builtins.
9812         (avms_asm_output_external): Remove.
9813         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9814         (struct crtl_name_spec): Remove
9815         (DO_CTRL_NAMES): Remove.
9816         * config/ia64/vms.h (struct crtl_name_spec): Remove
9817         (DO_CTRL_NAMES): Remove.
9818         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9819         clear some builtins on VMS.  Calls vms_patch_builtins.
9820         (ia64_asm_output_external): Remove DO_CRTL_NAME.
9821         * config/ia64/vms64.h: Do not include vms-crtl-64.h
9822         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9823
9824 2011-06-27  Tristan Gingold  <gingold@adacore.com>
9825
9826         * config/alpha/alpha.c (alpha_end_function): Always generate .end
9827         directive on VMS.
9828
9829 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
9830
9831         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9832         the function receives nonlocal gotos.
9833
9834 2011-06-27  Richard Guenther  <rguenther@suse.de>
9835
9836         PR tree-optimization/49536
9837         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9838         For non-scalar inner types use a scalar type according to
9839         the scalar inner mode.
9840
9841 2011-06-27  Richard Guenther  <rguenther@suse.de>
9842
9843         PR tree-optimization/49365
9844         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9845
9846 2011-06-27  Richard Guenther  <rguenther@suse.de>
9847
9848         PR tree-optimization/49169
9849         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9850         the alignment of function decls.
9851
9852 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
9853
9854         PR target/47997
9855         * config/darwin.c (darwin_mergeable_string_section): Place string
9856         constants in '.cstring' rather than '.const' when CF/NSStrings are
9857         active.
9858
9859 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
9860
9861         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9862         (emit_save_register_window): Likewise.
9863         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9864         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
9865         Swap back %o7/%i7 in register naming.
9866
9867 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
9868
9869         PR driver/49371
9870         * config/darwin.c (darwin_override_options): Improve warning when
9871         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9872         is given with fpie/fPIE.
9873         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9874         * config/darwin9.h (PIE_SPEC): New.
9875
9876 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
9877
9878         * timevar.c (timevar_print): Increase width for display of timevar
9879         name.
9880
9881 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
9882
9883         PR c++/46400
9884         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9885         instead of TYPE_CHAIN for chain_next for types.
9886
9887 2011-06-24  Richard Henderson  <rth@redhat.com>
9888
9889         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9890         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9891         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9892         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9893         (sparc_flat_expand_prologue): Emit individual instructions
9894         instead of one of the above.
9895
9896 2011-06-24  Easwaran Raman  <eraman@google.com>
9897
9898         PR rtl-optimization/49429
9899         PR target/49454
9900         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
9901         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9902         used to copy y into x.
9903         * calls.c (initialize_argument_information): Mark
9904         an argument addressable if it is passed by invisible reference.
9905         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
9906         if it is passed by reference.
9907
9908 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9909
9910         PR rtl-optimization/49504
9911         * rtlanal.c (nonzero_bits1): Properly handle addition or
9912         subtraction of a pointer in Pmode if pointers extend unsigned.
9913         (num_sign_bit_copies1): Likewise.
9914
9915 2011-06-24  Martin Jambor  <mjambor@suse.cz>
9916
9917         PR tree-optimizations/49516
9918         * tree-sra.c (sra_modify_assign): Choose the safe path for
9919         aggregate copies if we also did scalar replacements.
9920
9921 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9922
9923         PR target/49335
9924         * config/arm/predicates.md (add_operator): New.
9925         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9926
9927 2011-06-24  Andi Kleen  <ak@linux.intel.com>
9928
9929         * tree-sra.c (type_internals_preclude_sra_p): Add msg
9930         parameter. Split up ifs and report reason in *msg.
9931         (reject): Add.
9932         (find_var_candiate): Add msg variable.
9933         Split up ifs and report reason to reject.
9934         (find_param_candidates): Add msg variable.
9935         Pass msg to type_internals_preclude_sra_p.
9936
9937 2011-06-23  Jeff Law  <law@redhat.com>
9938
9939         PR middle-end/48770
9940         * reload.h (reload): Change to return a bool.
9941         * ira.c (ira): If requested by reload, run a fast DCE pass after
9942         reload has completed.  Fix comment typo.
9943         * reload1.c (need_dce): New file scoped static.
9944         (reload): Set reload_completed here.  Return whether or not a DCE
9945         pass after reload is needed.
9946         (delete_dead_insn): Set need_dce as needed.
9947
9948         PR middle-end/49465
9949         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9950         to detect threading through joiner block.  If there was already
9951         an edge to the new target, then do not change the PHI nodes.
9952
9953 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
9954
9955         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9956         get_pointer_alignment to see if base isn't sufficiently aligned.
9957
9958 2011-06-23  Jan Hubicka  <jh@suse.cz>
9959
9960         PR tree-optimize/49373
9961         * tree-pass.h (all_late_ipa_passes): Declare.
9962         * cgraphunit.c (init_lowered_empty_function): Fix properties.
9963         (cgraph_optimize): Execute late passes; remove unreachable funcions
9964         after materialization.
9965         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9966         LTOing.
9967         * passes.c (all_late_ipa_passes): Declare.
9968         (dump_passes, register_pass): Handle late ipa passes.
9969         (init_optimization_passes): Move ipa_pta to late passes; schedule
9970         fixup_cfg at beggining of all_passes.
9971         (apply_ipa_transforms): New function.
9972         (execute_one_pass): When doing simple ipa pass, apply all transforms.
9973
9974 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
9975
9976         * params.c: Include common/common-target.h.  Don't include tm.h.
9977         (lang_independent_params): Move from toplev.c.
9978         (global_init_params): New.
9979         * params.h (global_init_params): Declare.
9980         * target.def (default_params): Move to common-target.def.
9981         * toplev.c (lang_independent_options): Remove.
9982         (lang_independent_params): Move to params.c.
9983         (general_init): Use global_init_params.
9984         * common/common-target.def (option_default_params): Move from
9985         target.def.
9986         * common/config/ia64/ia64-common.c: Include params.h.
9987         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9988         from ia64.c.
9989         * common/config/rs6000/rs6000-common.c: Include params.h.
9990         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9991         from rs6000.c.
9992         * common/config/sh/sh-common.c: Include params.h.
9993         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9994         from sh.c.
9995         * common/config/spu/spu-common.c: Include params.h.
9996         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9997         from spu.c.
9998         * config/ia64/ia64.c (ia64_option_default_params,
9999         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10000         * config/rs6000/rs6000.c (rs6000_option_default_params,
10001         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10002         * config/sh/sh.c (sh_option_default_params,
10003         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10004         * config/spu/spu.c (spu_option_default_params,
10005         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10006         * Makefile.in (OBJS): Remove params.o.
10007         (OBJS-libcommon-target): Add params.o.
10008         (params.o, $(common_out_object_file)): Update dependencies.
10009         * doc/tm.texi: Regenerate.
10010
10011 2011-06-23  Alan Modra  <amodra@gmail.com>
10012
10013         PR bootstrap/49383
10014         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10015         invocation for 2011-06-09 changes.
10016
10017 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10018
10019         PR libgomp/49490
10020         * omp-low.c (expand_omp_for_static_nochunk): Only
10021         use n ceil/ nthreads size for the first n % nthreads threads in the
10022         team instead of all threads except for the last few ones which
10023         get less work or none at all.
10024
10025         PR debug/49496
10026         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10027         uses.
10028
10029 2011-06-22  Richard Guenther  <rguenther@suse.de>
10030
10031         PR tree-optimization/49493
10032         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10033         Refer to the alias target of variables.
10034         (associate_varinfo_to_alias_1): Remove.
10035         (ipa_pta_execute): Do not associate aliases with anything.
10036         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10037         (cgraph_function_node): Likewise.
10038         (cgraph_function_or_thunk_node): Likewise.
10039         (varpool_variable_node): Likewise.
10040
10041 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10042
10043         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10044         * config.gcc (arm*-*-linux*): Default to gnu tls.
10045         (arm*-*-*): Add --with-tls option.
10046         (all_defaults): Add 'tls'.
10047
10048 2011-06-22  Richard Henderson  <rth@redhat.com>
10049
10050         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10051         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10052         (dwarf2out_frame_debug_cfa_window_save): Rename from
10053         dwarf2out_window_save; make static.
10054         * tree.h (dwarf2out_window_save): Don't declare.
10055
10056         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10057         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10058         (emit_save_register_window): Rename from gen_save_register_window;
10059         emit the insn and add REG_CFA_* notes.
10060         (sparc_expand_prologue): Update to match.
10061         * config/sparc/sparc.md (save_register_window_1): Simplify from
10062         save_register_window<P:mode>.
10063
10064 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10065
10066         PR target/49497
10067         * config/i386/i386.md (*lea_general_2): Always allow SImode.
10068         (*lea_general_2_zext): Likewise.
10069         (imul to lea peepholes): Use const359_operand and check
10070         TARGET_PARTIAL_REG_STALL.
10071
10072         * config/i386/predicates.md (const359_operand): New.
10073
10074 2011-06-22  Michael Matz  <matz@suse.de>
10075
10076         * cgraphunit.c (assemble_thunk): Use correct return type.
10077
10078 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
10079             Dmitry Melnik  <dm@ispras.ru>
10080
10081         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10082         (neon_output_shift_immediate): Ditto.
10083         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10084         prototype.
10085         (neon_output_shift_immediate): Ditto.
10086         * config/arm/neon.md (vashl<mode>3): Modified constraint.
10087         (vashr<mode>3_imm): New insn pattern.
10088         (vlshr<mode>3_imm): Ditto.
10089         (vashr<mode>3): Modified constraint.
10090         (vlshr<mode>3): Ditto.
10091         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10092         predicate.
10093         (imm_for_neon_rshift_operand): Ditto.
10094         (imm_lshift_or_reg_neon): Ditto.
10095         (imm_rshift_or_reg_neon): Ditto.
10096
10097         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10098
10099 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10100
10101         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10102         builtin calls even if likelyvalue is not CONSTANT.
10103         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10104         Return get_value_for_expr of first operand
10105         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10106         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10107         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10108         their non-checking counterparts.
10109         (call_may_clobber_ref_p_1): Likewise.
10110         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10111         like their non-checking counterparts.
10112         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10113         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10114         like their non-checking counterparts.
10115         (find_func_clobbers): Likewise.
10116         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10117         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10118
10119         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10120         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10121         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10122         of base type reference as argument.
10123         (resolve_addr_in_expr): Likewise.  Fix keep computation.
10124         (convert_descriptor_to_signed): Renamed to...
10125         (convert_descriptor_to_mode): ... this.  For wider types convert to
10126         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10127         (typed_binop): New function.
10128         (scompare_loc_descriptor, ucompare_loc_descriptor,
10129         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10130         default to unsigned type instead of signed.
10131
10132         PR debug/47858
10133         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10134         (gimple_build_debug_source_bind_stat): New prototype.
10135         (gimple_build_debug_source_bind): Define.
10136         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10137         gimple_debug_source_bind_get_value,
10138         gimple_debug_source_bind_get_value_ptr,
10139         gimple_debug_source_bind_set_var,
10140         gimple_debug_source_bind_set_value): New inlines.
10141         * gimple.c (gimple_build_debug_source_bind_stat): New function.
10142         * gimple-pretty-print.c (dump_gimple_debug): Handle
10143         GIMPLE_DEBUG_SOURCE_BIND.
10144         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10145         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10146         * tree-parloops.c (eliminate_local_variables,
10147         separate_decls_in_region): Likewise.
10148         (separate_decls_in_region_debug): Renamed from
10149         separate_decls_in_region_debug_bind.  Handle
10150         gimple_debug_source_bind_p.
10151         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10152         prototypes.
10153         (DECL_HAS_DEBUG_ARGS_P): Define.
10154         (struct tree_function_decl): Add has_debug_args_flag field.
10155         * tree.c (debug_args_for_decl): New variable.
10156         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10157         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10158         (rewrite_debug_stmt_uses): New function.
10159         (rewrite_stmt): Use it to rewrite debug stmt uses.
10160         * rtl.def (DEBUG_PARAMETER_REF): New.
10161         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10162         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10163         DEBUG_PARAMETER_REF.
10164         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10165         * print-rtl.c (print_rtx): Likewise.
10166         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10167         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10168         debug stmts in the first bb.
10169         * tree-inline.c (remap_ssa_name): If remapping default def
10170         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10171         a source bind debug stmt.
10172         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10173         (maybe_move_debug_stmts_to_successors): Likewise.
10174         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
10175         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10176         debug args vector from old_decl to new_decl.
10177         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10178         or modified parameters, add debug bind stmts before call
10179         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10180         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10181         on DECL_DEBUG_EXPRs from debug args vector.
10182         (expand_debug_source_expr): New function.
10183         (expand_debug_locations): Use it for source bind insns.
10184         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10185         * var-tracking.c (prepare_call_arguments): Add debug args
10186         to call_arguments if any.
10187         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10188         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10189         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10190         (get_ref_die_offset, parameter_ref_descriptor): New functions.
10191         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10192         (gen_subprogram_die): Handle parameters identified by
10193         DEBUG_PARAMETER_REF.
10194
10195 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10196
10197         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10198         * doc/install.texi (Configuration): Document --with-tls.
10199         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10200         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10201         (arm_tls_descseq_addr): New.
10202         (legitimize_tls_address): Add tlsdesc support.
10203         (arm_cannot_copy_insn_p): Check for tlscall.
10204         (arm_emit_tls_decoration): Likewise.
10205         * config/arm/arm.h (TARGET_GNU2_TLS): New.
10206         (OPTION_DEFAULT_SPECS): Add with-tls support.
10207         * config/arm/arm.md (R1_REGNUM): Define.
10208         (tlscall): New.
10209         * config/arm/arm.opt (tls_type): New enumeration type and values.
10210         (mtls-dialect): New switch.
10211         * config/arm/arm-opts.h (enum tls_type): New.
10212
10213 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10214
10215         * attribs.c (register_attribute): Added assert to check that all
10216         attribute specs are registered with a name that is not empty and
10217         does not start with '_'.
10218         (decl_attributes): Avoid the lookup of the "naked" attribute spec
10219         if the function has no attributes.
10220         * tree.c (is_attribute_with_length_p): Removed.
10221         (is_attribute_p): Removed.
10222         (private_is_attribute_p): New.
10223         (private_lookup_attribute): New.
10224         (lookup_attribute): Removed.
10225         (lookup_ident_attribute): New.
10226         (remove_attribute): Require the first argument to be in the form
10227         'text', not '__text__'.  Updated asserts.
10228         (merge_attributes): Use lookup_ident_attributes instead of
10229         lookup_attribute.
10230         (merge_dllimport_decl_attributes): Use remove_attribute.
10231         (attribute_list_contained): Likewise.
10232         (attribute_list_equal): Immediately return 1 if the arguments are
10233         identical pointers.
10234         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
10235         'int'.  Require the first argument to be in the form 'text', not
10236         '__text__'.  Require the second argument to be an identifier.
10237         (lookup_attribute): Made inline.  Require the first argument to be
10238         in the form 'text', not '__text__'.
10239         (private_is_attribute_p, private_lookup_attribute): New.
10240         Updated comments.
10241
10242 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
10243
10244         * builtins.c: Add sync_ or SYNC__ to builtin names.
10245         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10246         * omp-low.c: Add sync_ or SYNC__ to builtin names.
10247
10248 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10249
10250         PR target/33049
10251         * config/avr/avr.md (extzv): New expander.
10252         (*extzv): New insn.
10253         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10254         * config/avr/constraints.md (C04): New constraint.
10255         * doc/md.texi (Machine Constraints): Document it.
10256
10257 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10258
10259         PR middle-end/49489
10260         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10261         unsignedp argument instead of 1 for clrsb_optab.
10262         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10263         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
10264         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10265         * optabs.c (widen_leading): Call widen_operand and expand_unop
10266         with 0 as unsignedp argument instead of 1 for clrsb_optab.
10267         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10268
10269 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10270
10271         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10272
10273 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
10274
10275         * gensupport.c (add_define_attr): New static function.
10276         (is_predicable): Allow multi-alternative lists for the "predicable"
10277         attribute.
10278         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10279         (process_one_cond_exec): Call alter_attrs_for_insn.
10280         * doc/md.texi (Defining Attributes): Mention some standard names.
10281         (Conditional Execution): Update documentation for "predicable".
10282
10283         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10284         __builtin_clrsbll): Document.
10285         * doc/rtl.texi (clrsb): New entry.
10286         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
10287         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
10288         (expand_unop): Handle clrsb_optab.
10289         (init_optabs): Initialize it.
10290         * optabs.h (enum optab_index): New entry OTI_clrsb.
10291         (clrsb_optab): Define.
10292         * genopinit.c (optabs): Add an entry for it.
10293         * builtins.c (expand_builtin): Handle clrsb builtin functions.
10294         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10295         BUILT_IN_CLRSBLL): New.
10296         * rtl.def (CLRSB): New code.
10297         * dwarf2out.c (mem_loc_descriptor): Handle it.
10298         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10299         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10300         and popcount.
10301         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10302         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10303         (__ctzDI2): Move declaration.
10304         * config/bfin/bfin.md (clrsbsi2): New expander.
10305         (signbitssi2): Use the CLRSB rtx.
10306         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
10307         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10308
10309 2011-06-21  Richard Guenther  <rguenther@suse.de>
10310
10311         * ipa-inline-transform.c (inline_transform): Fix previous change.
10312
10313 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
10314
10315         PR tree-optimization/49478
10316         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10317         with constant operand.
10318
10319 2011-06-21  Richard Guenther  <rguenther@suse.de>
10320
10321         * ipa-inline-transform.c (inline_transform): Fix typo.
10322
10323 2011-06-21  Richard Guenther  <rguenther@suse.de>
10324
10325         PR tree-optimization/49483
10326         * tree-vect-stmts.c (vectorizable_assignment): Also handle
10327         VIEW_CONVERT_EXPR conversions.
10328
10329 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
10330
10331         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10332         * config/avr/avr-tables.opt: New file (generated).
10333         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10334         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10335         avr-mcus.def.
10336         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10337         (avr_option_override): Don't process -mmcu= argument here.  Set
10338         avr_current_device using avr_mcu_index.
10339         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
10340         * config/avr/avr.opt (mmcu=): Use Enum.
10341         * config/avr/t-avr (avr-devices.o): Update dependencies.
10342         ($(srcdir)/config/avr/avr-tables.opt): New.
10343         * target.def (help): Remove.
10344         * doc/tm.texi.in (TARGET_HELP): Remove.
10345         * doc/tm.texi: Regenerate.
10346         * opts.c: Don't include target.h.
10347         (common_handle_option): Don't call targetm.help.
10348         * system.h (TARGET_HELP): Poison.
10349         * Makefile.in (opts.o): Update dependencies.
10350
10351 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10352
10353         * config/usegld.h: New file.
10354         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
10355         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
10356         (LIB_SPEC): Likewise.  Search /lib.
10357         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
10358         (RDYNAMIC_SPEC): Handle GNU ld.
10359         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
10360         Define.
10361         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
10362         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
10363         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
10364         (STACK_CHECK_STATIC_BUILTIN): Define.
10365         * config/sol2.opt (compat-bsd): Remove.
10366         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
10367         * config/sol2-bi.h: New file.
10368         * config/sol2-gld.h: Remove.
10369         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
10370         (NO_DBX_BNSYM_ENSYM): Remove.
10371         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10372         (STACK_CHECK_STATIC_BUILTIN): Remove.
10373         Test USE_GLD instead of TARGET_GNU_LD.
10374         * config/i386/sol2-10.h: Rename to ...
10375         * config/i386/sol2-bi.h .. this.
10376         (SUBTARGET_EXTRA_SPECS): Redefine.
10377         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
10378         (MULTILIB_DEFAULTS): Remove.
10379         (DEFAULT_ARCH32_P): Define.
10380         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
10381         (ARCH64_SUBDIR): Define.
10382         Test USE_GLD instead of TARGET_GNU_LD.
10383         (I386_EMULATION): Rename to ...
10384         (ARCH32_EMULATION): ... this.
10385         (X86_64_EMULATION): Rename to ...
10386         (ARCH64_EMULATION): ... this.
10387         (TARGET_LD_EMULATION): Remove.
10388         (LINK_ARCH_SPEC): Remove.
10389         * config/i386/sol2-gas.h: Remove.
10390         * config/i386/t-sol2-10: Rename to ...
10391         * config/i386/t-sol2-64: ... this.
10392         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
10393         (AS_SPARC64_FLAG): Define.
10394         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
10395         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
10396         depending on TARGET_CPU_DEFAULT.
10397         (CPP_CPU_SPEC): Redefine.
10398         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
10399         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
10400         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
10401         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
10402         ASM_ARCH_DEFAULT_SPEC): Redefine.
10403         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10404         LINK_ARCH_DEFAULT_SPEC.
10405         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
10406         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
10407         (ARCH64_SUBDIR): Define.
10408         (LINK_ARCH64_SPEC): Redefine.
10409         (CC1_SPEC): Redefine.
10410         (OPTION_DEFAULT_SPECS): Redefine.
10411         (MULTILIB_DEFAULTS): Define.
10412         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
10413         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
10414         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
10415         (NO_DBX_BNSYM_ENSYM): Remove.
10416         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10417         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
10418         (TARGET_ASM_NAMED_SECTION): Likewise.
10419         (STACK_CHECK_STATIC_BUILTIN): Remove.
10420         * config/sparc/sol2-bi.h: Remove.
10421         * config/sparc/sol2-gas-bi.h: Remove.
10422         * config/sparc/sol2-gas.h: Remove.
10423         * config/sparc/sol2-gld-bi.h: Remove.
10424         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
10425         common parts ...
10426         (*-*-solaris2*): ... here.
10427
10428 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10429
10430         PR other/43564
10431         * ipa-inline.c (can_inline_edge_p): Check
10432         !DECL_DISREGARD_INLINE_LIMITS.
10433
10434 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10435
10436         PR middle-end/49139
10437         * cgraphunit.c (process_function_and_variable_attributes): warn when
10438         always_inline functions that are not inline.
10439         * ipa-inline-transform.c (inline_transform): Always call
10440         optimize_inline.
10441         * tree-inline.c (tree_inlinable_function_p): Use error instead
10442         of sorry.
10443         (expand_call_inline): Likewise.
10444
10445 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10446
10447         * Makefile.in (dg_target_exps): Set.
10448         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
10449         instead of 7, try to divide it more evenly.
10450
10451 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
10452
10453         PR target/49089
10454         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
10455         (avx256_split_unaligned_store): New definition.
10456         (ix86_option_override_internal): Enable avx256 unaligned load/store
10457         splitting only when avx256_split_unaligned_load/store is set.
10458
10459 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
10460
10461         * regrename.c (scan_rtx_reg): Handle the case where we write to an
10462         open chain in a smaller mode without failing the entire block.
10463
10464 2011-06-21  Alan Modra  <amodra@gmail.com>
10465
10466         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
10467         CONST high part large-toc address.
10468         (rs6000_tls_referenced_p): Make static.
10469         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
10470
10471 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10472
10473         PR target/49385
10474         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
10475         one of the operands is a register.
10476
10477 2011-06-20  Kai Tietz  <ktietz@redhat.com>
10478
10479         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
10480         operations in combination with binary and.
10481
10482 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
10483
10484         * regrename.c (do_replace): Don't update notes.
10485
10486 2011-06-20  Alan Modra  <amodra@gmail.com>
10487
10488         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
10489         of toc-relative address in CONST.
10490         (rs6000_delegitimize_address): Recognize changed address.
10491         (rs6000_legitimize_reload_address): Likewise.
10492         (rs6000_emit_move): Don't force these constants to memory.
10493         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
10494         toc-relative address in CONST.
10495         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
10496         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
10497
10498 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10499
10500         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10501         (count_trailing_zeros): Likewise.
10502
10503 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10504
10505         PR other/49325
10506         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
10507         .init_array can be used with .ctors on targets.
10508         * configure: Regenerated.
10509
10510 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10511
10512         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
10513         if the element type is volatile.
10514
10515 2011-06-18  Jan Hubicka  <jh@suse.cz>
10516
10517         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
10518         extra name aliases.
10519         (lto_symtab_resolve_can_prevail_p): Likewise.
10520         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
10521         * cgraphbuild.c (record_reference): Remove extra body alias code.
10522         (mark_load): Likewise.
10523         (mark_store): Likewise.
10524         * cgraph.h (varpool_node): Remove extra_name filed;
10525         add alias_of and extraname_alias.
10526         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
10527         (varpool_alias_aliased_node): New inline function.
10528         (varpool_variable_node): New function.
10529         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
10530         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
10531         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
10532         (input_varpool_node): Likewise.
10533         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
10534         (varpool_externally_visible_p): Remove extra body alias code.
10535         (function_and_variable_visibility): Likewise.
10536         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
10537         (ipa_pta_execute): Use it.
10538         * varpool.c (varpool_remove_node): Remove extra name alias code.
10539         (varpool_mark_needed_node): Likewise.
10540         (varpool_analyze_pending_decls): Analyze aliases.
10541         (assemble_aliases): New functoin.
10542         (varpool_assemble_decl): Use it.
10543         (varpool_create_variable_alias): New function.
10544         (varpool_extra_name_alias): Rewrite.
10545         (varpool_for_node_and_aliases): New function.
10546
10547 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
10548
10549         PR target/49411
10550         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
10551         last_arg_constant and last argument doesn't match its predicate,
10552         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
10553         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
10554         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
10555         spelling of error message.
10556         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
10557         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
10558         const_0_to_255_operand instead of const_int_operand.
10559
10560         Revert:
10561         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10562
10563         * config/i386/sse.md (blendbits): Remove mode attribute.
10564         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10565         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10566         Check integer value of operand 3 in insn constraint.
10567
10568 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
10569
10570         PR rtl-optimization/48542
10571         * reload.c (find_equiv_reg): Stop looking when finding a
10572         setjmp-type call.
10573         * reload1.c (reload_as_needed): Invalidate all reload
10574         registers when crossing a setjmp-type call.
10575
10576 2011-06-16  Jeff Law  <law@redhat.com>
10577
10578         * tree-ssa-threadupdate.c (struct redirection_data): New field
10579         intermediate_edge.
10580         (THREAD_TARGET2): Define.
10581         (redirection_data_eq): Also check that the intermediate edge is equal.
10582         (lookup_redirection_data): Drop useless argument.  Extract the
10583         outgoing_edge and intermediate edge from E.  Callers updated.
10584         (copy_phi_args, update_destination_phis): New functions.
10585         (fix_duplicate_block_edges): Likewise.
10586         (create_edge_and_update_destination_phis): Duplicate all the edges
10587         hung off e->aux.  Use copy_phi_args.
10588         (create_duplicates): Use fix_duplicate_block_edges.
10589         (fixup_template_block): Likewise.
10590         (redirect_edges): If necessary, redirect the joiner block's incoming
10591         edge to the duplicate of the joiner block.
10592         (thread_block): Don't muck up loops when threading through a joiner
10593         block.
10594         (thread_through_loop_header): Handle threading through a joiner block.
10595         (mark_threaded_blocks, register_jump_thread): Likewise.
10596         * tree-flow.h (register_jump_thread): Add new argument.  Callers
10597         updated.
10598         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
10599         (thread_across_edge): Handle threading through a joiner block.
10600
10601 2011-06-16  Martin Jambor  <mjambor@suse.cz>
10602
10603         PR tree-optimization/49343
10604         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
10605         calculate offset, provide 2nd operand for the new COMPONENT_REF.
10606
10607 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
10608
10609         * config/darwin-protos.h (machopic_select_rtx_section): Move to
10610         inside RTX_CODE ifdef.
10611
10612 2011-06-16  Tom de Vries  <tom@codesourcery.com>
10613
10614         PR target/45098
10615         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
10616         Disallow NULL pointer for pointer arithmetic.
10617
10618 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10619
10620         PR target/49398
10621         Revert.
10622         2011-06-10  Wei Guozhi  <carrot@google.com>
10623
10624         PR target/45335
10625         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10626         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10627         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10628         related peephole2.
10629         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10630         related peephole2.
10631         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10632         (arm_legitimate_ldrd_p): New prototype.
10633         (arm_output_ldrd): New prototype.
10634         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10635         (arm_legitimate_ldrd_p): New function.
10636         (arm_output_ldrd): New function.
10637
10638 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10639
10640         PR middle-end/46500
10641         * doc/tm.texi.in: Update Copyright date.
10642         * doc/tm.texi: Regenerate.
10643         * targhooks.c (default_setup_incoming_varargs): Replace
10644         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10645         (default_pretend_outgoing_varargs_named): Likewise.
10646         (hook_pass_by_reference_must_pass_in_stack): Likewise.
10647         (hook_callee_copies_named): Likewise.
10648         (default_function_arg_advance): Likewise.
10649         (default_function_arg): Likewise.
10650         (default_function_incoming_arg): Likewise.
10651         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10652         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10653         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10654         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10655         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10656         * targhooks.h (default_setup_incoming_varargs): Likewise.
10657         (default_pretend_outgoing_varargs_named): Likewise.
10658         (hook_pass_by_reference_must_pass_in_stack): Likewise.
10659         (hook_callee_copies_named): Likewise.
10660         (default_function_arg_advance): Likewise.
10661         (default_function_arg): Likewise.
10662         (default_function_incoming_arg): Likewise.
10663         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10664         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10665         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10666         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10667         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10668         * target.def (pass_by_reference): Likewise.
10669         (setup_incoming_varargs, strict_argument_naming): Likewise.
10670         (pretend_outgoing_varargs_named, callee_copies): Likewise.
10671         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10672         (function_incoming_arg): Likewise.
10673         * target.h: Don't include "tm.h" .
10674         (cumulative_args_t): New typedef.
10675         [GCC_TM_H] (get_cumulative_args): New static inline function.
10676         [GCC_TM_H] (pack_cumulative_args): Likewise.
10677         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10678         argument type with cumulative_args_t.
10679         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10680         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10681         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10682         (frv_arg_partial_bytes, frv_function_arg): Likewise.
10683         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10684         (frv_function_arg_1): Likewise.
10685         * config/s390/s390.c (s390_pass_by_reference): Likewise.
10686         (s390_function_arg_advance, s390_function_arg): Likewise.
10687         * config/m32c/m32c.c (m32c_function_arg): Likewise.
10688         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10689         (m32c_strict_argument_naming): Likewise.
10690         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10691         (spu_function_arg_advance): Likewise.
10692         (spu_setup_incoming_varargs): Likewise.  Make static.
10693         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10694         Remove prototype.
10695         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10696         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10697         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10698         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10699         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10700         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10701         (mep_pass_by_reference, mep_function_arg): Likewise.
10702         (mep_function_arg_advance): Likewise.
10703         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10704         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10705         (m32r_function_arg, m32r_function_arg_advance): Likewise.
10706         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10707         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10708         (ix86_function_arg, ix86_pass_by_reference): Likewise.
10709         (ix86_setup_incoming_varargs): Likewise.
10710         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10711         (sh_strict_argument_naming): Likewise.
10712         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10713         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10714         (sh_function_arg_advance, sh_function_arg): Likewise.
10715         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10716         (pdp11_function_arg_advance): Likewise.
10717         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10718         Likewise.
10719         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10720         * config/avr/avr.c (avr_function_arg): Likewise.
10721         (avr_function_arg_advance): Likewise.
10722         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10723         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10724         (xtensa_function_arg_1): Likewise.
10725         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10726         Likewise.
10727         (xstormy16_function_arg): Likewise.
10728         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10729         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10730         (fr30_function_arg_advance): Likewise.
10731         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10732         (lm32_function_arg, lm32_function_arg_advance): Likewise.
10733         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10734         (moxie_function_arg, moxie_function_arg_advance): Likewise.
10735         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10736         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10737         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10738         (cris_function_arg, cris_function_incoming_arg): Likewise.
10739         (cris_function_arg_advance, cris_function_arg_1): Likewise.
10740         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10741         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10742         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10743         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10744         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10745         (mn10300_arg_partial_bytes): Likewise.
10746         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10747         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10748         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10749         (ia64_function_arg_1): Likewise.
10750         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10751         (m68k_function_arg): Likewise.
10752         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10753         (rs6000_function_arg, setup_incoming_varargs): Likewise.
10754         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10755         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10756         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10757         (picochip_arg_advance): Likewise.
10758         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10759         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10760         (mcore_function_arg_advance): Likewise.
10761         * config/score/score.c (score_pass_by_reference): Likewise.
10762         (score_function_arg_advance): Likewise.
10763         (score_arg_partial_bytes): Likewise.  Make static.
10764         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10765         * config/arm/arm.c (arm_arg_partial_bytes): Replace
10766         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10767         (arm_function_arg, arm_function_arg_advance): Likewise.
10768         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10769         * config/pa/pa.c (pa_pass_by_reference): Likewise.
10770         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10771         (pa_function_arg): Likewise.
10772         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10773         (mips_function_arg, mips_function_arg_advance): Likewise.
10774         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10775         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10776         * config/vax/vax.c (vax_function_arg): Likewise.
10777         (vax_function_arg_advance): Likewise.
10778         * config/h8300/h8300.c (h8300_function_arg): Likewise.
10779         (h8300_function_arg_advance): Likewise.
10780         * config/v850/v850.c (v850_pass_by_reference): Likewise.
10781         (v850_strict_argument_naming, v850_function_arg): Likewise.
10782         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10783         (v850_setup_incoming_varargs): Likewise.
10784         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10785         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10786         (mmix_function_arg, mmix_pass_by_reference): Likewise.
10787         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10788         with const void *.
10789         * config/bfin/bfin.c (setup_incoming_varargs): Replace
10790         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10791         (bfin_function_arg_advance, bfin_function_arg): Likewise.
10792         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10793         * calls.c (emit_call_1): Change type of args_so_far to
10794         cumulative_args_t.  Changed all callers.
10795         (initialize_argument_information): Likewise.
10796         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10797         * dse.c (get_call_args): Likewise.
10798         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10799         * function.c (pass_by_reference, reference_callee_copied): Likewise.
10800         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10801         New member args_so_far_v.  Changed all users.
10802         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10803         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10804         * config/mips/mips.c (mips_output_args_xfer): Likewise.
10805         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10806         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10807         * config/microblaze/microblaze.c (microblaze_expand_prologue):
10808         Likewise.
10809         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10810         m32r_pass_by_reference.
10811
10812 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
10813
10814         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10815         argument to be a VEC of statements.
10816         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10817         assert that pattern statements have to have their vector type set.
10818         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10819         Change the first argument to be a VEC of statements.  Update
10820         documentation.
10821         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10822         (vect_handle_widen_mult_by_const): New function.
10823         (vect_recog_widen_mult_pattern):  Change the first argument to be a
10824         VEC of statements.  Update documentation.  Check that the constant is
10825         INTEGER_CST.  Support multiplication by a constant that fits an
10826         intermediate type - call vect_handle_widen_mult_by_const.
10827         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10828         call.  Handle additional pattern statements if necessary.
10829
10830 2011-06-16  Nick Clifton  <nickc@redhat.com>
10831
10832         PR target/49427
10833         * config.gcc: Set cpu_type to v850 for any V850 architecture.
10834         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10835         md_file, extra_modes, out_file and extra_options are these are all
10836         deduced from cpu_type.
10837
10838 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
10839
10840         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10841         truncation mask to 63.
10842
10843 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
10844
10845         PR target/49313
10846         PR target/29524
10847         * longlong.h: Add AVR support:
10848         (count_leading_zeros): New macro.
10849         (count_trailing_zeros): New macro.
10850         (COUNT_LEADING_ZEROS_0): New macro.
10851         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10852         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10853         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10854         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10855         (LIB2FUNCS_EXCLUDE): Add _clz.
10856         * config/avr/libgcc.S (XCALL): Move up in file.
10857         (XJMP): New C Macro.
10858         (DEFUN): New asm macro.
10859         (ENDF): New asm macro.
10860         (__ffssi2): New function.
10861         (__ffshi2): New function.
10862         (__loop_ffsqi2): New function.
10863         (__ctzsi2): New function.
10864         (__ctzhi2): New function.
10865         (__clzdi2): New function.
10866         (__clzsi2): New function.
10867         (__clzhi2): New function.
10868         (__paritydi2): New function.
10869         (__paritysi2): New function.
10870         (__parityhi2): New function.
10871         (__parityqi2): New function.
10872         (__popcounthi2): New function.
10873         (__popcountsi2): New function.
10874         (__popcountdi2): New function.
10875         (__popcountqi2): New function.
10876         (__bswapsi2): New function.
10877         (__bswapdi2): New function.
10878         (__ashldi3): New function.
10879         (__ashrdi3): New function.
10880         (__lshrdi3): New function.
10881         Fix suspicous lines.
10882
10883 2011-06-16  Richard Guenther  <rguenther@suse.de>
10884
10885         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10886         the same as x != 0.
10887         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10888         to (bool) X & 1.
10889         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10890         equality compares against zero for the lower bit.
10891
10892 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
10893
10894         PR tree-optimization/49419
10895         * tree-vrp.c (execute_vrp): Call init_range_assertions
10896         before estimate_numbers_of_iterations, call
10897         free_number_of_iterations_estimates before calling
10898         remove_range_assertions.
10899
10900 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10901
10902         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10903         (struct partial_schedule): Add rows_length field.
10904         (verify_partial_schedule): Check rows_length.
10905         (ps_insert_empty_row): Handle rows_length.
10906         (create_partial_schedule): Likewise.
10907         (free_partial_schedule): Likewise.
10908         (reset_partial_schedule): Likewise.
10909         (create_ps_insn): Remove rest_count argument.
10910         (remove_node_from_ps): Update rows_length.
10911         (add_node_to_ps): Update rows_length and call create_ps_insn
10912         without passing row_rest_count.
10913         (rotate_partial_schedule): Update rows_length.
10914
10915 2011-06-16  Revital Eres  <revital.eres@linaro.org>
10916
10917         * ddg.c (add_intra_loop_mem_dep): New function.
10918         (build_intra_loop_deps): Call it.
10919
10920 2011-06-13  Jeff Law  <law@redhat.com>
10921
10922         * df-problems.c (df_lr_local_compute): Manually CSE
10923         PIC_OFFSET_TABLE_REGNUM.
10924         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10925         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10926
10927 2011-06-13  Jan Hubicka  <jh@suse.cz>
10928
10929         * cgraphunit.c (handle_alias_pairs): New function.
10930         (cgraph_finalize_compilation_unit): Use it.
10931         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10932         as externally visible.
10933
10934 2011-06-15  Richard Guenther  <rguenther@suse.de>
10935
10936         * expr.c (expand_expr_real_2): Reduce all integral types to
10937         bitfield precision.
10938         (expand_expr_real_1): Likewise.
10939
10940 2011-06-15  Martin Jambor  <mjambor@suse.cz>
10941
10942         PR tree-optimization/48613
10943         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10944         ipa_node_params_vector is NULL.
10945
10946 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
10947
10948         PR debug/49382
10949         * dwarf2out.c (dw_loc_list_node): Add force field.
10950         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10951         location in the list, even if it is modified before first real insn.
10952         (output_loc_list): Emit empty ranges with force flag set.
10953         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10954
10955 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
10956
10957         PR target/49349
10958         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10959         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
10960         above a fence.  Update comments.
10961         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10962         placed just above it.  Do not allow NULL place_to_insert.
10963
10964 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
10965
10966         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10967         (slpeel_tree_peel_loop_to_edge): Don't call
10968         remove_dead_stmts_from_loop.
10969         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10970         remove irrelevant pattern statements.  For irrelevant statements
10971         check if it is the last statement of a detected pattern, use
10972         corresponding pattern statement instead.
10973         (destroy_loop_vec_info): No need to remove pattern statements,
10974         only free stmt_vec_info.
10975         (vect_transform_loop): For irrelevant statements check if it is
10976         the last statement of a detected pattern, use corresponding
10977         pattern statement instead.
10978         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10979         pattern statements.  Set basic block for the new statement.
10980         (vect_pattern_recog): Update documentation.
10981         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10982         operands of pattern statements.
10983         (vectorizable_call): Fix printing.  In case of a pattern statement
10984         use the lhs of the original statement when creating a dummy
10985         statement to replace the original call.
10986         (vect_analyze_stmt): For irrelevant statements check if it is
10987         the last statement of a detected pattern, use corresponding
10988         pattern statement instead.
10989         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10990         statements use gsi of the original statement.
10991
10992 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
10993
10994         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10995         common/common-target-def.h.
10996         * target.def (default_target_flags, handle_option,
10997         supports_split_stack, optimization_table, init_struct,
10998         except_unwind_info, unwind_tables_default, have_named_sections):
10999         Move to common/common-target.def.
11000         * target.h (enum opt_levels, struct default_options): Move to
11001         common/common-target.h.
11002         * targhooks.c (default_except_unwind_info,
11003         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11004         default_target_handle_option, empty_optimization_table): Move to
11005         common/common-targhooks.c.
11006         * targhooks.h (default_except_unwind_info,
11007         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11008         default_target_handle_option, empty_optimization_table): Move to
11009         common/common-targhooks.h.
11010         * common/common-target-def.h: Include common/common-targhooks.h.
11011         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11012         defined.
11013         * common/common-target.def (handle_option, option_init_struct,
11014         option_optimization_table, default_target_flags,
11015         except_unwind_info, supports_split_stack, unwind_tables_default,
11016         have_named_sections): Move from target.def.
11017         (HOOK_PREFIX): Undefine at end of file.
11018         * common/common-target.h: Include input.h.
11019         (enum opt_levels, struct default_options): Move from target.h.
11020         * common/common-targhooks.c, common/common-targhooks.h: New.
11021         * config.gcc (target_has_targetm_common): Default to yes.
11022         (moxie*): Set target_has_targetm_common=no.
11023         (hppa*-*-*): Don't set target_has_targetm_common=yes.
11024         * doc/tm.texi: Regenerate.
11025         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11026         (C_TARGET_DEF_H): Add common/common-targhooks.h.
11027         (GCC_OBJS): Remove vec.o.
11028         (OBJS): Remove hooks.o and vec.o.
11029         (OBJS-libcommon-target): Add vec.o, hooks.o and
11030         common/common-targhooks.o.
11031         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11032         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11033         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11034         cfglayout.o, $(out_object_file), $(common_out_object_file)):
11035         Update dependencies.
11036         (common/common-targhooks.o): New.
11037         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
11038         * common/config/pa/pa-common.c: Include more headers.  Take
11039         copyright dates from pa.c.
11040         (pa_option_optimization_table, pa_handle_option,
11041         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11042         TARGET_HANDLE_OPTION): Move from pa.c.
11043         * common/config/alpha/alpha-common.c,
11044         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11045         common/config/bfin/bfin-common.c,
11046         common/config/cris/cris-common.c,
11047         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11048         common/config/h8300/h8300-common.c,
11049         common/config/i386/i386-common.c,
11050         common/config/ia64/ia64-common.c,
11051         common/config/iq2000/iq2000-common.c,
11052         common/config/lm32/lm32-common.c,
11053         common/config/m32c/m32c-common.c,
11054         common/config/m32r/m32r-common.c,
11055         common/config/m68k/m68k-common.c,
11056         common/config/mcore/mcore-common.c,
11057         common/config/mep/mep-common.c,
11058         common/config/microblaze/microblaze-common.c,
11059         common/config/mips/mips-common.c,
11060         common/config/mmix/mmix-common.c,
11061         common/config/mn10300/mn10300-common.c,
11062         common/config/pdp11/pdp11-common.c,
11063         common/config/picochip/picochip-common.c,
11064         common/config/rs6000/rs6000-common.c,
11065         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11066         common/config/score/score-common.c, common/config/sh/sh-common.c,
11067         common/config/sparc/sparc-common.c,
11068         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11069         common/config/vax/vax-common.c,
11070         common/config/xstormy16/xstormy16-common.c,
11071         common/config/xtensa/xtensa-common.c: New.
11072         * config/alpha/alpha.c: Include common/common-target.h.
11073         (alpha_option_optimization_table, alpha_handle_option,
11074         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11075         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11076         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11077         * config/arm/arm.c (arm_option_optimization_table,
11078         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11079         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11080         arm-common.c.
11081         * config/avr/avr.c (avr_option_optimization_table,
11082         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11083         to avr-common.c.
11084         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11085         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11086         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11087         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11088         * config/cris/cris.c (cris_option_optimization_table,
11089         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11090         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11091         cris-common.c.
11092         * config/fr30/fr30.c (fr30_option_optimization_table,
11093         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11094         to fr30-common.c.
11095         * config/frv/frv.c (frv_option_optimization_table,
11096         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11097         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11098         * config/h8300/h8300.c (h8300_option_optimization_table,
11099         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11100         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11101         * config/i386/i386-protos.h (ix86_handle_option): Declare.
11102         * config/i386/i386.c: Include common/common-target.h.
11103         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11104         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11105         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11106         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11107         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11108         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11109         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11110         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11111         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11112         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11113         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11114         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11115         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11116         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11117         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11118         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11119         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11120         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11121         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11122         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11123         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11124         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11125         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11126         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11127         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11128         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11129         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11130         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11131         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11132         ix86_option_optimization_table, ix86_option_init_struct,
11133         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11134         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11135         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11136         i386-common.c.
11137         * config/i386/t-i386 (i386.o): Update dependencies.
11138         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11139         * config/ia64/ia64.c (ia64_option_optimization_table,
11140         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11141         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11142         ia64_handle_option): Move to ia64-common.c.
11143         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11144         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11145         * config/lm32/lm32.c (lm32_option_optimization_table,
11146         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11147         to lm32-common.c.
11148         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11149         m32c-common.c.
11150         * config/m32r/m32r.c (m32r_option_optimization_table,
11151         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11152         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11153         m32r_handle_option): Move to m32r-common.c.
11154         (m32r_memory_move_cost): Remove comment referring to
11155         TARGET_HANDLE_OPTION.
11156         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11157         Move to m68k-common.c.
11158         * config/mcore/mcore.c (mcore_option_optimization_table,
11159         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11160         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11161         * config/mep/mep.c (mep_option_optimization_table,
11162         mep_handle_option, TARGET_HANDLE_OPTION,
11163         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11164         Move to mep-common.c.
11165         * config/microblaze/microblaze.c
11166         (microblaze_option_optimization_table,
11167         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11168         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11169         * config/mips/mips.c (mips_handle_option,
11170         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11171         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11172         mips-common.c.
11173         * config/mmix/mmix.c (mmix_option_optimization_table,
11174         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11175         Move to mmix-common.c.
11176         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11177         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11178         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11179         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11180         * config/pa/pa.c: Include common/common-target.h.
11181         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11182         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11183         pa_handle_option): Move to pa-common.c.
11184         (pa_option_override): Use targetm_common.except_unwind_info.
11185         (pa_asm_output_mi_thunk, pa_function_section): Use
11186         targetm_common.have_named_sections.
11187         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11188         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11189         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11190         pdp11_handle_option, pdp11_option_init_struct): Move to
11191         pdp11-common.c.
11192         * config/picochip/picochip.c (picochip_option_optimization_table,
11193         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11194         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11195         * config/rs6000/rs6000.c: Include common/common-target.h.
11196         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11197         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11198         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11199         rs6000_handle_option): Move to rs6000-common.c.
11200         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11201         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11202         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11203         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11204         * config/s390/s390.c (processor_flags_table,
11205         s390_option_optimization_table, s390_option_init_struct,
11206         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11207         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11208         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11209         * config/s390/s390.h (processor_flags_table): Declare.
11210         * config/score/score.c (score_option_optimization_table,
11211         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11212         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11213         score_handle_option): Move to score-common.c.
11214         * config/sh/sh.c (sh_option_optimization_table,
11215         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11216         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11217         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11218         * config/sparc/sparc.c: Include common/common-target.h.
11219         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11220         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11221         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11222         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11223         spu_option_init_struct): Move to spu-common.c.
11224         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11225         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11226         * config/v850/v850.c (small_memory_physical_max,
11227         v850_handle_memory_optionn v850_handle_option,
11228         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11229         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11230         v850-common.c.
11231         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11232         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11233         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11234         Move to xtensa-common.c.
11235         * cfglayout.c: Include common/common-target.h.
11236         (fixup_reorder_chain): Use targetm_common.have_named_sections.
11237         * cfgrtl.c: Include common/common-target.h.
11238         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11239         targetm_common.have_named_sections.
11240         * dbxout.c: Include common/common-target.h.
11241         (dbxout_function_end): Use targetm_common.have_named_sections.
11242         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11243         targetm_common.except_unwind_info.
11244         * dwarf2out.c: Include common/common-target.h.
11245         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11246         dwarf2out_begin_prologue, dwarf2out_frame_init,
11247         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11248         targetm_common.except_unwind_info.
11249         * except.c: Include common/common-target.h.
11250         (init_eh, finish_eh_generation,
11251         output_one_function_exception_table): Use
11252         targetm_common.except_unwind_info.
11253         (switch_to_exception_section): Use targetm_common.have_named_sections.
11254         * explow.c: Include common/common-target.h.
11255         * expr.c: Include common/common-target.h.
11256         (build_personality_function): Use targetm_common.except_unwind_info.
11257         * function.c: Include common/common-target.h.
11258         (expand_function_end): Use targetm_common.except_unwind_info.
11259         * haifa-sched.c: Include common/common-target.h.
11260         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11261         * lto-opts.c: Include common/common-target.h instead of target.h.
11262         (lto_reissue_options): Use targetm_common.handle_option.
11263         * opts.c: Include common/common-target.h.
11264         (target_handle_option): Use targetm_common.handle_option.
11265         (init_options_struct): Update comment referring to
11266         targetm.target_option.optimization.  Use
11267         targetm_common.default_target_flags,
11268         targetm_common.unwind_tables_default and
11269         targetm_common.option_init_struct.
11270         (default_options_optimization): Use
11271         targetm_common.option_optimization_table.
11272         (finish_options): Use targetm_common.except_unwind_info,
11273         targetm_common.unwind_tables_default,
11274         targetm_common.have_named_sections and
11275         targetm_common.supports_split_stack.
11276         * toplev.c: Include common/common-target.h.
11277         (process_options): Use targetm_common.have_named_sections.
11278         * tree-tailcall.c: Include common/common-target.h.
11279         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11280         * tree.c: Include common/common-target.h.
11281         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11282         * varasm.c: Include common/common-target.h.
11283         (resolve_unique_section, hot_function_section,
11284         default_function_section): Use targetm_common.have_named_sections.
11285
11286 2011-06-14  Easwaran Raman  <eraman@google.com>
11287
11288         PR rtl-optimization/44194
11289         * dse.c: Include tree-flow.h
11290         (insn_info): Add new field non_frame_wild_read.
11291         (group_info): Add new fields escaped_n and escaped_p.
11292         (kill_on_calls): New variable.
11293         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11294         (dse_step0): Initialize kill_on_calls.
11295         (can_escape): New function.
11296         (set_usage_bits): Add additional parameter; record information
11297         about escaped locations.
11298         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11299         (dse_step2_nospill): Set kill_on_calls based on
11300         group->escaped_n and group->escaped_n.
11301         (add_wild_read): Refactor into...
11302         (reset_active_stores): ... New function, and
11303         (free_read_records): ... New function.
11304         (add_non_frame_wild_read): New function.
11305         (scan_insn): Call add_non_frame_wild_read on non-const calls.
11306         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11307         (dse_step5_nospill): Call scan_reads_nospill for instructions
11308         marked as non_frame_wild_read.
11309         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11310
11311 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11312
11313         * common/common-target-def.h, common/common-target.def,
11314         common/common-target.h, common/config/default-common.c,
11315         common/config/pa/pa-common.c: New files.
11316         * Makefile.in (common_out_file, common_out_object_file,
11317         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11318         (OBJS-libcommon-target): Include $(common_out_object_file).
11319         (prefix.o): Update dependencies.
11320         ($(common_out_object_file), common/common-target-hooks-def.h,
11321         s-common-target-hooks-def-h): New.
11322         (s-tm-texi): Also check timestamp on common-target.def.
11323         (build/genhooks.o): Update dependencies.
11324         * config.gcc (common_out_file, target_has_targetm_common): Define.
11325         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11326         TARGET_ALWAYS_STRIP_DOTDOT.
11327         * configure.ac (common_out_object_file): Define.
11328         (common_out_file, common_out_object_file): Substitute.
11329         (common): Create directory.
11330         * configure: Regenerate.
11331         * doc/tm.texi.in (targetm_common): Document.
11332         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11333         * doc/tm.texi: Regenerate.
11334         * genhooks.c (hook_array): Also include common/common-target.def.
11335         * prefix.c (tm.h): Don't include.
11336         (common/common-target.h): Include.
11337         (ALWAYS_STRIP_DOTDOT): Don't define.
11338         (update_path): Use targetm_common.always_strip_dotdot instead of
11339         ALWAYS_STRIP_DOTDOT.
11340         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
11341
11342 2011-06-14  David Li  <davidxl@google.com>
11343
11344         * passes.c (execute_function_todo): Remove TODO_dump_func.
11345         (execute_one_pass): Remove TODO_dump_func.
11346         (execute_function_dump): New function.
11347         * tree-vrp.c: Remove TODO_dump_func.
11348         * regrename.c: Remove TODO_dump_func.
11349         * fwprop.c: Remove TODO_dump_func.
11350         * tree-into-ssa.c: Remove TODO_dump_func.
11351         * tree-complex.c: Remove TODO_dump_func.
11352         * tracer.c: Remove TODO_dump_func.
11353         * tree-loop-distribution.c: Remove TODO_dump_func.
11354         * postreload-gcse.c: Remove TODO_dump_func.
11355         * postreload.c: Remove TODO_dump_func.
11356         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
11357         * tree-tailcall.c: Remove TODO_dump_func.
11358         * ipa-cp.c: Remove TODO_dump_func.
11359         * final.c: Remove TODO_dump_func.
11360         * tree-emutls.c: Remove TODO_dump_func.
11361         * omp-low.c: Remove TODO_dump_func.
11362         * tree-ssa-dse.c: Remove TODO_dump_func.
11363         * tree-ssa-uncprop.c: Remove TODO_dump_func.
11364         * auto-inc-dec.c: Remove TODO_dump_func.
11365         * reorg.c: Remove TODO_dump_func.
11366         * tree-ssa-copyrename.c: Remove TODO_dump_func.
11367         * tree-ssa-ccp.c: Remove TODO_dump_func.
11368         * compare-elim.c: Remove TODO_dump_func.
11369         * mode-switching.c: Remove TODO_dump_func.
11370         * modulo-sched.c: Remove TODO_dump_func.
11371         * tree-call-cdce.c: Remove TODO_dump_func.
11372         * cse.c: Remove TODO_dump_func.
11373         * web.c: Remove TODO_dump_func.
11374         * tree-stdarg.c: Remove TODO_dump_func.
11375         * lto-streamer-out.c: Remove TODO_dump_func.
11376         * tree-ssa-math-opts.c: Remove TODO_dump_func.
11377         * tree-ssa-dom.c: Remove TODO_dump_func.
11378         * tree-nrv.c: Remove TODO_dump_func.
11379         * loop-init.c: Remove TODO_dump_func.
11380         * gimple-low.c: Remove TODO_dump_func.
11381         * ipa-inline.c: Remove TODO_dump_func.
11382         * tree-ssa-sink.c: Remove TODO_dump_func.
11383         * jump.c: Remove TODO_dump_func.
11384         * ifcvt.c: Remove TODO_dump_func.
11385         * tree-ssa-loop.c: Remove TODO_dump_func.
11386         * recog.c: Remove TODO_dump_func.
11387         * dse.c: Remove TODO_dump_func.
11388         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
11389         * matrix-reorg.c: Remove TODO_dump_func.
11390         * tree-eh.c: Remove TODO_dump_func.
11391         * regmove.c: Remove TODO_dump_func.
11392         * function.c: Remove TODO_dump_func.
11393         * tree-vectorizer.c: Remove TODO_dump_func.
11394         * ipa-split.c: Remove TODO_dump_func.
11395         * gcse.c: Remove TODO_dump_func.
11396         * tree-if-conv.c: Remove TODO_dump_func.
11397         * init-regs.c: Remove TODO_dump_func.
11398         * tree-ssa-phiopt.c: Remove TODO_dump_func.
11399         * implicit-zee.c: Remove TODO_dump_func.
11400         * lower-subreg.c: Remove TODO_dump_func.
11401         * bt-load.c: Remove TODO_dump_func.
11402         * tree-dfa.c: Remove TODO_dump_func.
11403         * except.c: Remove TODO_dump_func.
11404         * emit-rtl.c: Remove TODO_dump_func.
11405         * store-motion.c: Remove TODO_dump_func.
11406         * cfgexpand.c: Remove TODO_dump_func.
11407         * tree-cfgcleanup.c: Remove TODO_dump_func.
11408         * cfgcleanup.c: Remove TODO_dump_func.
11409         * tree-ssa-pre.c: Remove TODO_dump_func.
11410         * tree-sra.c: Remove TODO_dump_func.
11411         * tree-mudflap.c: Remove TODO_dump_func.
11412         * tree-ssa-copy.c: Remove TODO_dump_func.
11413         * cfglayout.c: Remove TODO_dump_func.
11414         * tree-ssa-forwprop.c: Remove TODO_dump_func.
11415         * tree-ssa-dce.c: Remove TODO_dump_func.
11416         * ira.c: Remove TODO_dump_func.
11417         * tree-ssa.c: Remove TODO_dump_func.
11418         * integrate.c: Remove TODO_dump_func.
11419         * tree-optimize.c: Remove TODO_dump_func.
11420         * tree-ssa-phiprop.c: Remove TODO_dump_func.
11421         * tree-object-size.c: Remove TODO_dump_func.
11422         * combine.c: Remove TODO_dump_func.
11423         * bb-reorder.c: Remove TODO_dump_func.
11424         * cprop.c: Remove TODO_dump_func.
11425         * var-tracking.c: Remove TODO_dump_func.
11426         * tree-profile.c: Remove TODO_dump_func.
11427         * tree-vect-generic.c: Remove TODO_dump_func.
11428         * reg-stack.c: Remove TODO_dump_func.
11429         * sched-rgn.c: Remove TODO_dump_func.
11430         * tree-ssa-structalias.c: Remove TODO_dump_func.
11431         * tree-switch-conversion.c: Remove TODO_dump_func.
11432         * tree-cfg.c: Remove TODO_dump_func.
11433         * tree-ssa-reassoc.c: Remove TODO_dump_func.
11434         * combine-stack-adj.c: Remove TODO_dump_func.
11435         * dce.c: Remove TODO_dump_func.
11436         * tree-ssanames.c: Remove TODO_dump_func.
11437         * regcprop.c: Remove TODO_dump_func.
11438
11439 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11440
11441         PR middle-end/47364
11442         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
11443         and properly handle result not in Pmode.
11444
11445 2011-06-14  Robert Millan  <rmh@gnu.org>
11446
11447         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
11448         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
11449         `config/linux.h'.
11450
11451         * config/i386/kfreebsd-gnu64.h: New file.
11452         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
11453         with `i386/kfreebsd-gnu64.h'.
11454
11455         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
11456         (GNU_USER_LINK_EMULATION64): New macros.
11457         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
11458         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
11459         of hardcoding `elf_i386' and `elf_x86_64'.
11460
11461 2011-06-14  Nick Clifton  <nickc@redhat.com>
11462
11463         PR target/49403
11464         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
11465
11466         PR target/49402
11467         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
11468
11469 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
11470
11471         PR fortran/49103
11472         * tree.h (DECL_NONSHAREABLE): Define.
11473         (struct tree_decl_common): Change decl_common_unused to
11474         decl_nonshareable_flag.
11475         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
11476         Ignore vars with DECL_NONSHAREABLE bit set.
11477         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
11478         on stores to automatic aggregate vars.
11479
11480         PR rtl-optimization/49390
11481         Revert:
11482         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
11483
11484         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
11485         MEM_ALIAS_SET.
11486
11487 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
11488             Tom de Vries  <tom@codesourcery.com>
11489
11490         PR target/45098
11491         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
11492         Document changed semantics.
11493         (max_stmt_executions, max_stmt_executions_int): Declare.
11494         * tree-data-ref.c (estimated_loop_iterations)
11495         (estimated_loop_iterations_int): Move functions...
11496         * tree-ssa-loop-niter.c (estimated_loop_iterations)
11497         (estimated_loop_iterations_int): here.
11498         (record_estimate): Change nb_iterations_upper_bound and
11499         nb_iterations_estimate semantics.
11500         (max_stmt_executions, max_stmt_executions_int): New function.
11501         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
11502         (max_stmt_executions_tree): this.
11503         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
11504         estimated_loop_iterations_tree.
11505         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
11506         max_stmt_executions_int instead of estimated_loop_iterations_int.
11507         * predict.c (predict_loops): Idem.
11508         * tree-parloops.c (parallelize_loops): Idem.
11509         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
11510         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
11511         (init_omega_for_ddr_1): Idem.
11512         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
11513         (loop_prefetch_arrays): Idem
11514         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
11515         max_stmt_executions instead of estimated_loop_iterations.
11516         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
11517         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
11518         instead of nb_iterations_upper_bound.
11519
11520 2011-06-13  Jan Hubicka  <jh@suse.cz>
11521
11522         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
11523
11524 2011-06-14  Richard Henderson  <rth@redhat.com>
11525
11526         PR debug/48459
11527         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
11528         (based_loc_descr): Assert it's true.
11529         (compute_frame_pointer_to_fb_displacement): Set it, rather than
11530         aborting immediately.
11531
11532 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
11533             Mingfeng Wu  <mingfeng@faraday-tech.com>
11534
11535         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
11536
11537 2011-06-13  Jan Hubicka  <jh@suse.cz>
11538
11539         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
11540
11541 2011-06-13  Jan Hubicka  <jh@suse.cz>
11542
11543         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
11544         similarly to DECL_COMDAT.
11545         * cgraphunit.c (cgraph_analyze_function): Likewise.
11546         * ipa.c (function_and_variable_visibility): Likewise.
11547
11548 2011-06-13  Jan Hubicka  <jh@suse.cz>
11549
11550         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
11551         BINFO_VIRTUALS when streaming for ltrans unit.
11552
11553 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
11554
11555         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
11556         (movdi_internal64): Same.
11557
11558 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
11559
11560         PR target/44618
11561         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
11562         a set of similar patterns, where the MATCH_OPERAND for the function
11563         argument is replaced with individual references to hardware registers.
11564         (save_fpregs_<mode>): Ditto
11565         (restore_gpregs_<mode>): Ditto
11566         (return_and_restore_gpregs_<mode>): Ditto
11567         (return_and_restore_fpregs_<mode>): Ditto
11568         (return_and_restore_fpregs_aix_<mode>): Ditto
11569
11570 2011-06-13  Jan Hubicka  <jh@suse.cz>
11571
11572         * ipa-utils.c (postorder_stack): New structure.
11573         (ipa_reverse_postorder): Handle aliases.
11574
11575 2011-06-13  Jan Hubicka  <jh@suse.cz>
11576
11577         * ipa-inline.c (reset_edge_caches): Walk aliases.
11578         (update_caller_keys): Do not test inlinability of aliases.
11579         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
11580         (do_estimate_growth): Fix typo.
11581
11582 2011-06-13  Jan Hubicka  <jh@suse.cz>
11583
11584         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
11585         (can_remove_node_now_p): ... here; handle same comdat groups.
11586         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
11587         (inline_call): Update use of can_remove_node_now_p.
11588
11589 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11590
11591         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
11592         condition to disallow non-identical memory locations.
11593         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
11594         preference to bit manipulation instructions.
11595
11596 2011-06-13  Jan Hubicka  <jh@suse.cz>
11597
11598         * cgraph.c (cgraph_for_node_thunks_and_aliases,
11599         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
11600         (nonremovable_p): New function.
11601         (cgraph_can_remove_if_no_direct_calls_p): New function.
11602         (used_from_object_file_p): New functoin.
11603         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
11604         references from aliases.
11605         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
11606         * ipa-inline.c (check_caller_edge): New function.
11607         (want_inline_function_called_once_p): Use it; accept aliases called
11608         once, too.
11609         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
11610
11611 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11612
11613         PR target/48454
11614         * config/arm/neon.md (vec_pack_trunc): Set the lengths
11615         correctly for the case with Quad vectors.
11616
11617 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
11618            Ira Rosen  <ira.rosen@linaro.org>
11619
11620         PR tree-optimization/49352
11621         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
11622         all, make sure loop_use_stmt after the loop is a def stmt of a used
11623         SSA_NAME that is the only one defined inside of the loop.  Don't
11624         check for COND_EXPR and GIMPLE_BINARY_RHS.
11625         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
11626         check_reduction is true.
11627
11628 2011-06-11  Jan Hubicka  <jh@suse.cz>
11629
11630         PR middle-end/49373
11631         * ipa.c (cgraph_externally_visible_p): Check resolution info.
11632
11633 2011-06-11  Jan Hubicka  <jh@suse.cz>
11634
11635         PR middle-end/48836
11636         * ipa-inline-transform.c: Include tree-pass.h
11637         (inline_transform): Set TODO_update_ssa_only_virtuals.
11638         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
11639
11640 2011-06-11  Jan Hubicka  <jh@suse.cz>
11641
11642         PR middle-end/49378
11643         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
11644         aliases and thunks.
11645
11646 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
11647
11648         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
11649         Take number of iterations to peel into account for equally frequent
11650         misalignment values.
11651
11652 2011-06-11  Jan Hubicka  <jh@suse.cz>
11653
11654         * lto-streamer-out.c (produce_symtab): Stream out the newly
11655         represented aliases.
11656
11657 2011-06-11  Jan Hubicka  <jh@suse.cz>
11658
11659         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
11660         varying args.
11661         (ipa_update_after_lto_read): Likewise.
11662         (ipa_write_node_info): Do not sream call_with_var_arguments.
11663         (ipa_read_node_info): Likewise.
11664
11665 2011-06-11  Jan Hubicka  <jh@suse.cz>
11666
11667         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
11668
11669 2011-06-11  Jan Hubicka  <jh@suse.cz>
11670
11671         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11672         (lto_symtab_resolve_can_prevail_p): Likewise.
11673         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11674         * cgraph.c (same_body_aliases_done): New global var.
11675         (cgraph_same_body_alias_1): Rename to ...
11676         (cgraph_create_function_alias): ... this one; reorg to new
11677         representation.
11678         (cgraph_same_body_alias): Use cgraph_create_function_alias;
11679         record references when asked to.
11680         (cgraph_add_thunk): Fix formating.
11681         (cgraph_get_node): Kill same body alias code.
11682         (cgraph_node_for_asm): Likewise.
11683         (cgraph_remove_same_body_alias): Remove.
11684         (cgraph_remove_node): Kill same body alias code.
11685         (cgraph_mark_address_taken_node): Mark also the aliased function
11686         as having address taken.
11687         (dump_cgraph_node): Dump same body aliases.
11688         (cgraph_for_node_thunks_and_aliases): Update for new alias
11689         representation.
11690         (cgraph_for_node_and_aliases): Likewise.
11691         * cgraph.h (same_body): Kll pointer.
11692         (same_body_alias): Update comment.
11693         (same_body_aliases_done): Declare.
11694         (cgraph_remove_same_body_alias): Remove declaration.
11695         (cgraph_create_function_alias): Declare.
11696         (cgraph_process_same_body_aliases): Declare.
11697         (cgraph_function_with_gimple_body_p): Check for alias.
11698         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11699         (cgraph_alias_aliased_node): New function.
11700         (cgraph_function_node): Update for new aliases.
11701         (cgraph_function_or_thunk_node): Likewise.
11702         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11703         (inline_call): Remove dead aliases.
11704         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11705         name hack for same body aliases.
11706         (clone_of_p): Look through aliases.
11707         (verify_cgraph_node): Verify aliases.
11708         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11709         (cgraph_process_same_body_aliases): New function.
11710         (process_function_and_variable_attributes): Disable weakref warning on
11711         alias.
11712         (cgraph_analyze_functions): Handle aliases.
11713         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11714         (assemble_thunks): Rename to ...
11715         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11716         (cgraph_expand_function): Remove alias output code.
11717         (cgraph_output_in_order): Skip aliases.
11718         (cgraph_preserve_function_body_p): Aliases don't need preserving.
11719         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11720         (ipa_record_reference): Do not assert on alias references.
11721         (ipa_ref_has_aliases_p): New function.
11722         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11723         (ipa_ref_has_aliases_p): Declare.
11724         * lto-cgraph.c (lto_output_node): Handle aliases.
11725         (input_node): Likewise.
11726         * lto-streamer-out.c (lto_output): Skip aliases.
11727         (produce_symtab): Kill same_body_alias code.
11728         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11729         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11730         * ipa-inline.c (update_caller_keys): Walk aliases.
11731         (inline_small_functions): Fix thinko in previous patch.
11732         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11733         (function_and_variable_visibility): Do not walk same body aliases.
11734         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11735         (ipa_pta_execute): Use it.
11736
11737 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11738
11739         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11740         (*vec_dupv2df): Rename from vec_dupv2df.
11741         (vec_dupv2df): New expander.
11742
11743 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11744
11745         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11746
11747 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11748
11749         * config/i386/i386.md: Use default value in "isa" attribute.
11750         * config/i386/sse.md: Ditto.
11751         * config/i386/mmx.md: Ditto.
11752
11753 2011-06-10  Wei Guozhi  <carrot@google.com>
11754
11755         PR target/45335
11756         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11757         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11758         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11759         related peephole2.
11760         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11761         related peephole2.
11762         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11763         (arm_legitimate_ldrd_p): New prototype.
11764         (arm_output_ldrd): New prototype.
11765         * config/arm/arm.c (arm_check_ldrd_operands): New function.
11766         (arm_legitimate_ldrd_p): New function.
11767         (arm_output_ldrd): New function.
11768
11769 2011-06-10  David Li  <davidxl@google.com>
11770
11771         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11772         * passes.c (passr_eq): New function.
11773         (create_pass_tab): New function.
11774         (pass_traverse): New function.
11775         (dump_one_pass): New function.
11776         (dump_pass_list): New function.
11777         (dump_passes): New function.
11778
11779 2011-06-10  Jan Hubicka  <jh@suse.cz>
11780
11781         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11782         setting the nothrow flag.
11783         * ipa-reference.c (propagate): Skip aliases.
11784         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11785         (propagate_nothrow): Skip aliases; do not update cgraph.
11786         (local_pure_const): Do not update cgraph.
11787         * tree-profile.c (tree_profiling): Do fixup_cfg.
11788
11789 2011-06-10  Jan Hubicka  <jh@suse.cz>
11790
11791         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11792         (cgraph_local_node_p): ... here; handle aliases.
11793         (has_addr_references_p): Break out from ...;
11794         (cgraph_remove_unreachable_nodes) ... here.
11795
11796 2011-06-10  Jan Hubicka  <jh@suse.cz>
11797
11798         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11799         * common.opt (flag_inline_functions_called_once): Do not
11800         initialize to 1.
11801
11802 2011-06-10  Jan Hubicka  <jh@suse.cz>
11803
11804         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11805         (ipcp_initialize_node_lattices): Do not deal with aliases;
11806         Do not try to propagate through thunks.
11807         (ipcp_change_tops_to_bottom): Do not deal with aliases.
11808
11809 2011-06-10  Jan Hubicka  <jh@suse.cz>
11810
11811         * ipa-prop.c (ipa_write_node_info): Stream jump functions
11812         for indirect calls.
11813         (ipa_read_node_info): Likewise.
11814
11815 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11816
11817         PR lto/49302
11818         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11819         (build_and_insert_call): Likewise.
11820         (build_and_insert_ref): New.
11821         (gimple_expand_builtin_pow): Minor cleanup.
11822         (gimple_expand_builtin_cabs): New.
11823         (execute_cse_sincos): Add case for BUILT_IN_CABS.
11824
11825 2011-06-10  Jan Hubicka  <jh@suse.cz>
11826
11827         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11828         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11829         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11830         (ipcp_propagate_stage): Skip aliases when propagating.
11831         (ipcp_need_redirect_p): Skip aliases.
11832         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11833         collect_callers_of_node.
11834         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11835         for aliases.
11836         (ipa_compute_jump_functions): Look through aliases.
11837
11838 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11839
11840         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11841
11842 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
11843
11844         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11845         Adjust comments.
11846         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11847
11848 2011-06-10  Jan Hubicka  <jh@suse.cz>
11849
11850         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11851         Update call of gimple_get_virt_method_for_binfo.
11852         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11853         refuse_thunks parameter.
11854         (gimple_fold_call): Update.
11855         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11856
11857 2011-06-10  Jan Hubicka  <jh@suse.cz>
11858
11859         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11860         (not_all_callers_have_enough_arguments_p): ... this one; turn into
11861         worker for cgraph_for_node_and_aliases.
11862         (convert_callers_for_node): Break out from ...
11863         (convert_callers): ... here.
11864         (modify_function): Use collect_callers_of_node.
11865         (ipa_early_sra): Use cgraph_for_node_and_aliases.
11866
11867 2011-06-10  Richard Guenther  <rguenther@suse.de>
11868
11869         PR tree-optimization/49361
11870         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11871         when not already in gimple form.
11872
11873 2011-06-10  Richard Guenther  <rguenther@suse.de>
11874
11875         PR bootstrap/49344
11876         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11877         FOR_EACH_PHI_OR_STMT_USE.
11878
11879 2011-06-10  Jan Hubicka  <jh@suse.cz>
11880
11881         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11882         (clone_inlined_nodes): ... here.
11883         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11884         to real destination prior inlining.
11885         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11886         can_early_inline_edge_p, want_early_inline_function_p,
11887         want_early_inline_function_p, want_inline_small_function_p,
11888         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11889         edge_badness, update_all_callee_keys, lookup_recursive_calls,
11890         add_new_edges_to_heap, inline_small_functions, flatten_function,
11891         inline_always_inline_functions, early_inline_small_functions): Use
11892         cgraph_function_or_thunk_node.
11893         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11894         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11895         (do_estimate_edge_growth_1): Break out from ...
11896         (do_estimate_growth) ... here; walk aliases.
11897         (inline_generate_summary): Skip aliases.
11898
11899 2011-06-10  Richard Guenther  <rguenther@suse.de>
11900
11901         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11902         forward when combining, visit inserted stmts when a stmt was changed.
11903
11904 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
11905
11906         * tree.h (error_operand_p): Add.
11907         * dbxout.c (dbxout_type_fields): Use the latter.
11908         * c-decl.c (add_stmt): Likewise.
11909         * gimplify.c (omp_add_variable, omp_notice_variable,
11910         gimplify_scan_omp_clauses): Likewise.
11911
11912 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
11913
11914         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11915         when a value is actually passed in regs.
11916
11917 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
11918             Laurent Rougé  <laurent.rouge@menta.fr>
11919
11920         * doc/invoke.texi (SPARC options): Add -mflat.
11921         * config/sparc/sparc.opt: Likewise.
11922         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11923         (sparc_flat_expand_prologue): Declare.
11924         (sparc_flat_expand_epilogue): Likewise.
11925         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11926         (CPP_ENDIAN_SPEC): Replace with...
11927         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
11928         (CPP_SPEC): Adjust to above change.
11929         (EXTRA_SPECS): Likewise.
11930         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11931         (INCOMING_REGNO): Likewise.
11932         (OUTGOING_REGNO): Likewise.
11933         (LOCAL_REGNO): Likewise.
11934         (SETUP_FRAME_ADDRESSES): Likewise.
11935         (FIXED_REGISTERS): Set 0 for %fp.
11936         (CALL_USED_REGISTERS): Likewise.
11937         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11938         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11939         (RETURN_ADDR_REGNUM): Define.
11940         (RETURN_ADDR_RTX): Use it.
11941         (INCOMING_RETURN_ADDR_REGNUM): Define.
11942         (INCOMING_RETURN_ADDR_RTX): Use it.
11943         (DWARF_FRAME_RETURN_COLUMN): Likewise.
11944         (EH_RETURN_REGNUM): Define.
11945         (EH_RETURN_STACKADJ_RTX): Use it.
11946         (EH_RETURN_HANDLER_RTX): Delete.
11947         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11948         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11949         Delete.
11950         (struct machine_function): Add frame_size, apparent_frame_size,
11951         frame_base_reg, frame_base_offset, n_global_fp_regs and
11952         save_local_in_regs_p fields.
11953         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11954         sparc_frame_base_offset, sparc_n_global_fp_regs,
11955         sparc_save_local_in_regs_p): New macros.
11956         (sparc_option_override): Error out if -fcall-saved-REG is specified
11957         for Out registers.
11958         (eligible_for_restore_insn): Fix formatting.
11959         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
11960         (eligible_for_sibcall_delay): Likewise.
11961         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11962         (sparc_legitimate_address_p): Adjust to above change.
11963         (save_global_or_fp_reg_p): New predicate.
11964         (return_addr_reg_needed_p): Likewise.
11965         (save_local_or_in_reg_p): Likewise.
11966         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
11967         (SORR_SAVE, SORR_RESTORE): Delete.
11968         (sorr_pred_t): New typedef.
11969         (sorr_act_t): New enum.
11970         (save_or_restore_regs): Rename to...
11971         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
11972         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11973         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
11974         mechanism.  Add CFI information for double-word saves in 32-bit mode.
11975         (emit_adjust_base_to_offset): New function extracted from...
11976         (emit_save_or_restore_regs): ...this.  Rename the rest to...
11977         (emit_save_or_restore_regs_global_fp_regs): ...this.
11978         (emit_save_or_restore_regs_local_in_regs): New function.
11979         (gen_create_flat_frame_[123]): New functions.
11980         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
11981         (sparc_flat_expand_prologue): New function.
11982         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11983         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
11984         (sparc_flat_expand_epilogue): New function.
11985         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11986         (output_return): Likewise.
11987         (output_sibcall): Likewise.
11988         (sparc_output_mi_thunk): Likewise.
11989         (sparc_frame_pointer_required): Likewise.
11990         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11991         function optimization.
11992         * config/sparc/sparc.md (flat): New attribute.
11993         (prologue): Add TARGET_FLAT handling.
11994         (save_register_window): Disable if TARGET_FLAT.
11995         (create_flat_frame_[123]): New patterns.
11996         (epilogue): Add TARGET_FLAT handling.
11997         (sibcall_epilogue): Likewise.
11998         (eh_return): New expander.
11999         (eh_return_internal): New insn and splitter.
12000         (return_internal): Add TARGET_FLAT handling.
12001         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12002         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12003         (nonlocal_goto): Add TARGET_FLAT handling.
12004         * config/sparc/t-elf: Add -mflat multilib.
12005         * config/sparc/t-leon: Likewise.
12006
12007 2011-06-10  Jan Hubicka  <jh@suse.cz>
12008
12009         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12010         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12011         (self_recursive_p): Use cgraph_function_node.
12012         (propagate_pure_const): Likewise.
12013         (propagate_nothrow): Likewise.
12014         * ipa-reference.c (ipa_reference_get_not_read_global): Use
12015         cgraph_function_node.
12016         (propagate_bits): Likewise.
12017         (propagate): Likewise.
12018
12019 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12020             Richard Earnshaw  <rearnsha@arm.com>
12021
12022         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12023         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12024         (*thumb2_movdi_vfp): Delete.
12025         (*arm_movdi_vfp_cortexa8): Delete.
12026         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12027         (*movdi_vfp_cortexa8): Likewise.
12028
12029 2011-06-10  Richard Guenther  <rguenther@suse.de>
12030
12031         * stor-layout.c (initialize_sizetypes): Give names to all
12032         sizetype kinds.
12033
12034 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
12035
12036         PR tree-optimization/49318
12037         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12038         irrelevant pattern statements.
12039
12040 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12041
12042         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12043
12044         PR bootstrap/49354
12045         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12046         to last assignment.
12047
12048 2011-06-09  Jan Hubicka  <jh@suse.cz>
12049
12050         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12051         do not recompute reachable flag.
12052         (cgraph_finalize_function, cgraph_analyze_functions): Set
12053         redefined_extern_inline here.
12054
12055 2011-06-09  Jan Hubicka  <jh@suse.cz>
12056
12057         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12058         (cgraph_only_called_directly_p): ... this one; bring offline.
12059         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12060         varpool_used_from_object_file_p): Drop names from the declaratoin.
12061         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12062         collect_callers_of_node): New.
12063         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12064         (cgraph_edge_recursive_p): Use cgraph_function_node.
12065         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12066         (cgraph_node_cannot_be_local_p_1): Break out from ...
12067         (cgraph_node_can_be_local_p): ... here; walk aliases.
12068         (cgraph_for_node_thunks_and_aliases): New function.
12069         (cgraph_for_node_and_aliases): New function.
12070         (cgraph_make_node_local_1): Break out from ...
12071         (cgraph_make_node_local) ... here; use
12072         cgraph_for_node_thunks_and_aliases.
12073         (cgraph_set_nothrow_flag_1): Break out from ...
12074         (cgraph_set_nothrow_flag) ... here;
12075         use cgraph_for_node_thunks_and_aliases.
12076         (cgraph_set_const_flag_1): Break out from ...
12077         (cgraph_set_const_flag) ... here;
12078         use cgraph_for_node_thunks_and_aliases.
12079         (cgraph_set_pure_flag_1): Break out from ...
12080         (cgraph_set_pure_flag) ... here;
12081         use cgraph_for_node_thunks_and_aliases.
12082         (cgraph_propagate_frequency_1): Break out from ...
12083         (cgraph_propagate_frequency) ... here; use
12084         cgraph_for_node_thunks_and_aliases.
12085         (cgraph_used_from_object_file_p): Do not care about aliases.
12086         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12087         New functions.
12088         (collect_callers_of_node_1, collect_callers_of_node): New functions.
12089
12090 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12091
12092         PR rtl-optimization/49154
12093         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12094         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12095         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12096         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12097         * config/cris/cris.h (cris_register_move_cost): Remove
12098         !TARGET_V32 code.  Tweak comments.
12099
12100 2011-06-09  Jan Hubicka  <jh@suse.cz>
12101
12102         * cgraphbuild.c (record_eh_tables): Mark personality function as having
12103         address taken.
12104
12105 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12106
12107         PR rtl-optimization/49154
12108         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12109         is a matching slot in the hashtable, assign it to classes_ptr.
12110
12111         PR rtl-optimization/49154
12112         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12113         register classes.
12114         * doc/tm.texi: Regenerate.
12115
12116 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
12117
12118         PR target/49307
12119         * config/sh/sh.md (UNSPEC_CHKADD): New.
12120         (chk_guard_add): New define_insn_and_split.
12121         (symGOT_load): Use chk_guard_add instead of blockage.
12122
12123 2011-06-09  Kai Tietz  <ktietz@redhat.com>
12124
12125         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12126
12127 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12128
12129         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12130
12131 2011-06-09  Wei Guozhi  <carrot@google.com>
12132
12133         PR target/46975
12134         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12135         (peephole2 for conditional move): Generate 16 bit instructions.
12136
12137 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
12138
12139         * config/i386/i386.md (*movdi_internal_rex64): Merge
12140         alternatives 6 and 8.
12141
12142 2011-06-09  David Li  <davidxl@google.com>
12143
12144         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12145         * passes.c (passr_eq): New function.
12146         (create_pass_tab): New function.
12147         (pass_traverse): New function.
12148         (dump_one_pass): New function.
12149         (dump_pass_list): New function.
12150         (dump_passes): New function.
12151
12152 2011-06-09  David Li  <davidxl@google.com>
12153
12154         * tree-complex.c (tree_lower_complex): Gate cleanup.
12155         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12156         (execute_optimize_stdarg): Ditto.
12157         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12158         (execute_cleanup_eh_1): Ditto.
12159         (execute_cleanup_eh): Ditto.
12160         * gcse.c (gate_rtl_pre): Ditto.
12161         (execute_rtl_pre): Ditto.
12162         * except.c (finish_eh_generation): Ditto.
12163         (convert_to_eh_region_ranges): Ditto.
12164         * cprop.c (one_cprop_pass): Ditto.
12165
12166 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12167
12168         PR target/48673
12169         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12170         in all basic blocks.
12171
12172 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12173
12174         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12175         (HAVE_ENABLE_EXECUTE_STACK): Define.
12176         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12177         (HAVE_ENABLE_EXECUTE_STACK): Define.
12178         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12179         (HAVE_ENABLE_EXECUTE_STACK): Define.
12180         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12181         (ENABLE_EXECUTE_STACK): Remove.
12182         (HAVE_ENABLE_EXECUTE_STACK): Define.
12183         [IN_LIBGCC2]: Don't include <windows.h>.
12184         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12185         (HAVE_ENABLE_EXECUTE_STACK): Define.
12186         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12187         (HAVE_ENABLE_EXECUTE_STACK): Define.
12188         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12189         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12190         (HAVE_ENABLE_EXECUTE_STACK): Define.
12191         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12192         (HAVE_ENABLE_EXECUTE_STACK): Define.
12193         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12194         (HAVE_ENABLE_EXECUTE_STACK): Define.
12195         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12196         (HAVE_ENABLE_EXECUTE_STACK): Define.
12197         * config/alpha/alpha.c (alpha_trampoline_init): Test
12198         HAVE_ENABLE_EXECUTE_STACK.
12199         * config/i386/i386.c (ix86_trampoline_init): Likewise.
12200         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12201         (sparc64_initialize_trampoline): Likewise.
12202         * libgcc2.c [L_enable_execute_stack]: Remove.
12203         * system.h (ENABLE_EXECUTE_STACK): Poison.
12204         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12205         * doc/tm.texi: Regenerate.
12206         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12207
12208 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
12209
12210         PR middle-end/49308
12211         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12212         variable.  After resetting and rescanning insn continue with previous
12213         statement.
12214
12215 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12216
12217         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12218         (gcc_cv_ld_hidden): Likewise.
12219         * configure: Regenerate.
12220         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12221         (ix86_stack_protect_fail): Mark unused.
12222         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12223         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12224         [TARGET_MACHO]: Don't define.
12225         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12226         (TARGET_STACK_PROTECT_FAIL): Likewise.
12227         (rs6000_stack_protect_fail): Mark unused.
12228         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12229         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
12230
12231 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12232
12233         * varasm.c (get_section): Print location of other conflict
12234         for section conflicts.
12235
12236 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12237
12238         * config/i386/driver-i386.c (host_detect_local_cpu):
12239         Add model 0x2d Intel CPU.
12240
12241 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12242
12243         * reginfo.c (global_regs_decl): Add.
12244         (globalize_reg): Add decl parameter. Compute location.  Pass location
12245         to warnings and add inform. Store decl in global_regs_decl.
12246         * rtl.h (globalize_reg): Update prototype.
12247         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12248
12249 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
12250
12251         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12252
12253 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12254
12255         PR target/49305
12256         * config/sh/predicates.md (general_movsrc_operand): Check
12257         mode for memory with indexed address for QI and HImode.
12258         (general_movdst_operand): Likewise.
12259
12260 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
12261
12262         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12263
12264 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
12265
12266         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12267         (num_ssa_operands): Likewise.
12268         (op_iter_init_phiuse): Forward-declare.
12269         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12270
12271 2011-06-08  Nick Clifton  <nickc@redhat.com>
12272
12273         * doc/invoke.texi (ARM Options): Update description of
12274         -mthumb-interwork.
12275
12276 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
12277
12278         * config/i386/driver-i386.c (host_detect_local_cpu): Support
12279         unknown Intel family 0x6 CPUs.
12280
12281 2011-06-08  Martin Jambor  <mjambor@suse.cz>
12282
12283         * tree-sra.c (mark_rw_status): Removed.
12284         (analyze_access_subtree): New parameter parent instead of
12285         mark_read and mark_write, propagate from that.
12286
12287 2011-06-08  Julian Brown  <julian@codesourcery.com>
12288
12289         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12290         for double-precision helper functions in hard-float mode if only
12291         single-precision arithmetic is supported in hardware.
12292
12293 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
12294
12295         PR rtl-optimization/49303
12296         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
12297         code_motion_path_driver returned 0 or 1.
12298         (sel_region_finish): Clear h_d_i_d.
12299
12300 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12301
12302         * config/sh/sh.c (prepare_move_operands): Set pic register
12303         appropriately for global and local dynamic tls models even
12304         if flag_pic is unset.
12305
12306 2011-06-07  Jason Merrill  <jason@redhat.com>
12307
12308         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12309
12310 2011-06-07  Xinliang David Li  <davidxl@google.com>
12311         * passes.c (enable_disable_pass): Handle assembler name.
12312         (is_pass_explicitly_enabled_or_disabled): Ditto.
12313
12314 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12315
12316         PR tree-optimization/48497
12317         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12318
12319 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12320
12321         PR tree-optimization/46728
12322         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12323         to use gimple_val_nonnegative_real_p.
12324         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12325         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12326
12327 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
12328
12329         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12330
12331 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
12332
12333         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12334         constant vectors.
12335
12336 2011-06-07  Richard Guenther  <rguenther@suse.de>
12337
12338         * stor-layout.c (initialize_sizetypes): Initialize all
12339         sizetypes based on target definitions.
12340         (set_sizetype): Remove.
12341         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
12342         * tree.h (set_sizetype): Remove.
12343
12344 2011-06-07  Nick Clifton  <nickc@redhat.com>
12345
12346         * config.gcc: Unify V850 architecture options and add support for
12347         newer V850 architectures.
12348         * config/v850/t-v850e: Delete.
12349
12350 2011-06-07  Richard Guenther  <rguenther@suse.de>
12351
12352         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
12353         Call set_sizetype from here.
12354
12355 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
12356
12357         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
12358         (*maddhisi4tb, *maddhisi4tt): New define_insns.
12359
12360 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
12361             Andrew Stubbs  <ams@codesourcery.com>
12362
12363         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
12364         multiplies.
12365         * doc/md.texi (Canonicalization of Instructions): Document widening
12366         multiply canonicalization.
12367
12368 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
12369
12370         PR gcov-profile/49299
12371         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
12372
12373 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
12374
12375         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
12376         a pointer.
12377         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
12378         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
12379         vect_recog_pow_pattern): Likewise.
12380         (vect_pattern_recog_1): Remove declaration.
12381         (widened_name_p): Remove declaration.  Add new argument to specify
12382         whether to check that both types are either signed or unsigned.
12383         (vect_recog_widen_mult_pattern): Update documentation.  Handle
12384         unsigned patterns and multiplication by constants.
12385         (vect_pattern_recog_1): Update vect_recog_func references.  Use
12386         statement information from the statement returned from pattern
12387         detection functions.
12388         (vect_pattern_recog): Update vect_recog_func reference.
12389         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
12390         multiplication by a constant use the type of the other operand.
12391
12392 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
12393
12394         PR rtl-optimization/49145
12395         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
12396
12397 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
12398
12399         PR debug/49262
12400         * dwarf2out.c (native_encode_initializer): Decrement count in each
12401         iteration.
12402
12403         PR debug/49294
12404         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
12405         non-MODE_INT modes.
12406
12407         PR c++/49264
12408         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
12409         if stmt folded into nothing.
12410         * tree-inline.c (fold_marked_statements): If a builtin at the end of
12411         a bb folded into nothing, just update cgraph edges and move to next bb.
12412         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
12413         to be NULL.  Don't compute count and frequency if new_call is NULL.
12414
12415 2011-06-04  Diego Novillo  <dnovillo@google.com>
12416
12417         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
12418         (cgraph.o): Likewise.
12419         (cgraphunit.o): Likewise.
12420         * cgraphunit.c: Include lto-streamer.h
12421         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
12422         if LTO is enabled.
12423         * lto-streamer-in.c (unpack_value_fields): Call
12424         streamer_hooks.unpack_value_fields if set.
12425         (lto_materialize_tree): For unhandled nodes, first try to
12426         call lto_streamer_hooks.alloc_tree, if it exists.
12427         (lto_input_ts_decl_common_tree_pointers): Move reading of
12428         DECL_INITIAL to lto_streamer_read_tree.
12429         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
12430         (lto_streamer_read_tree): New.
12431         (lto_reader_init): Rename from lto_init_reader.
12432         Move initialization code to lto/lto.c.
12433         * lto-streamer-out.c (pack_value_fields): Call
12434         streamer_hooks.pack_value_fields if set.
12435         (lto_output_tree_ref): For tree nodes that are not normally indexable,
12436         call streamer_hooks.indexable_with_decls_p before giving up.
12437         (lto_output_ts_decl_common_tree_pointers): Move handling
12438         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
12439         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
12440         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
12441         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
12442         (lto_streamer_write_tree): New.
12443         (lto_output): Call lto_streamer_init directly.
12444         (lto_writer_init): Remove.
12445         * lto-streamer.c (streamer_hooks): New.
12446         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
12447         instead of lto_preload_common_nodes.
12448         (lto_is_streamable): Move from lto-streamer.h
12449         (lto_streamer_hooks_init): New.
12450         (streamer_hooks): New.
12451         (streamer_hooks_init): New.
12452         * lto-streamer.h (struct output_block): Forward declare.
12453         (struct lto_input_block): Likewise.
12454         (struct data_in): Likewise.
12455         (struct bitpack_d): Likewise.
12456         (struct streamer_hooks): Declare.
12457         (streamer_hooks): Declare.
12458         (lto_streamer_hooks_init): Declare.
12459         (lto_streamer_write_tree): Declare.
12460         (lto_streamer_read_tree): Declare.
12461         (streamer_hooks_init): Declare.
12462         (lto_is_streamable): Move to lto-streamer.c
12463
12464 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12465
12466         * longlong.h (smul_ppmm): The resulting register pair contains the
12467         higher order word first.
12468
12469 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12470
12471         PR tree-optimization/46728
12472         * builtins.c (powi_table): Remove.
12473         (powi_lookup_cost): Remove.
12474         (powi_cost): Remove.
12475         (expand_powi_1): Remove.
12476         (expand_powi): Remove.
12477         (expand_builtin_pow_root): Remove.
12478         (expand_builtin_pow): Remove.
12479         (expand_builtin_powi): Eliminate handling of constant exponent.
12480         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
12481
12482 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12483
12484         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
12485
12486 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12487
12488         * dce.c (reset_unmarked_insns_debug_uses): New.
12489         (delete_unmarked_insns): Skip debug insns.
12490         (prescan_insns_for_dce): Likewise.
12491         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
12492         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
12493         active reg can be found.
12494         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
12495         (convert_regs_1): Use it.
12496
12497 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12498
12499         * tree-pretty-print.c (dump_function_header): Add flags.
12500         Don't dump decl_uid with nouid.
12501         * tree-pretty-print.h (dump_function_header): Adjust.
12502         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
12503         * passes.c (pass_init_dump_file): Pass dump_flags on.
12504         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
12505
12506 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12507
12508         PR bootstrap/49270
12509         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
12510
12511 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
12512
12513         PR tree-optimization/49243
12514         * calls.c (setjmp_call_p): Also check if fndecl has the
12515         returns_twice attribute.
12516
12517 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12518
12519         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
12520         -ffast-math etc.
12521
12522 2011-06-06  Richard Henderson  <rth@redhat.com>
12523             Georg-Johann Lay  <avr@gjlay.de>
12524
12525         PR target/42210
12526         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
12527         New predicates.
12528         * config/avr/avr.md ("insv"): New insn expander.
12529         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
12530         "*insv.not.io", "*insv.reg"): New insns.
12531
12532 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
12533
12534         PR target/49285
12535         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
12536         to nonimmediate_operand from memory_operand for the operand that is to
12537         be forced to memory by the expander.  Lose the constraints.
12538
12539 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12540
12541         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
12542         EH return when delayed branches are disabled.
12543
12544 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
12545
12546         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
12547         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
12548         calculation.
12549         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
12550         Simplify MODE_V1DF and MODE_V2SF handling.
12551         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
12552         Simplify MODE_SF handling.
12553
12554 2011-06-04  Jan Hubicka  <jh@suse.cz>
12555
12556         PR tree-optimization/48893
12557         PR tree-optimization/49091
12558         PR tree-optimization/49179
12559         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
12560         Bounds check.
12561
12562 2011-06-04  Jan Hubicka  <jh@suse.cz>
12563
12564         PR lto/48954
12565         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
12566         bitmaps.
12567
12568 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
12569
12570         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
12571
12572 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12573
12574         PR target/49281
12575         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
12576         to be strictly smaller than 1 << shiftcount.
12577
12578 2011-06-04  Jan Hubicka  <jh@suse.cz>
12579
12580         PR tree-optimize/48929
12581         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
12582         of empty predicate.
12583
12584 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
12585
12586         PR debug/48333
12587         * calls.c (emit_call_1): Prefer the __builtin declaration of
12588         builtin functions.
12589
12590 2011-06-03   Diego Novillo  <dnovillo@google.com>
12591
12592         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
12593         (lto_input_tree_pointers): Likewise.
12594         * lto-streamer-out.c (pack_value_fields): Likewise.
12595         (lto_output_tree_pointers): Likewise.
12596         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
12597         and OPTIMIZATION_NODE.
12598
12599 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12600
12601         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
12602         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
12603         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
12604         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
12605         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
12606         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
12607         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
12608         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
12609         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
12610         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
12611         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
12612         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
12613         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
12614         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
12615         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
12616         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
12617         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
12618         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
12619         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
12620         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
12621         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
12622         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
12623         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
12624         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
12625         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
12626         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
12627         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
12628         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
12629         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
12630         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
12631         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
12632         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
12633         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
12634         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
12635         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
12636         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
12637         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
12638         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
12639         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
12640         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
12641         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
12642         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
12643         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
12644         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
12645         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
12646         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
12647         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
12648         * system.h (MD_UNWIND_SUPPORT): Poison.
12649         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
12650         * doc/tm.texi: Regenerate.
12651         * unwind-dw2.c: Include md-unwind-support.h instead of
12652         MD_UNWIND_SUPPORT.
12653         * config/ia64/unwind-ia64.c: Likewise.
12654         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
12655
12656 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
12657
12658         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
12659
12660 2011-06-03  Richard Henderson  <rth@redhat.com>
12661             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12662
12663         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
12664         (sigill_hdlr): Correct insn, insn size.
12665         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12666
12667 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12668
12669         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12670         t-slibgcc-dummy.
12671         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12672         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12673         * config/mips/t-iris: Remove.
12674         * config/mips/t-irix6: New file.
12675         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12676
12677 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12678
12679         * Makefile.in (LIB2ADDEHDEP): Remove.
12680         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12681         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12682         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12683         * config/t-darwin (LIB2ADDEHDEP): Remove.
12684         * config/t-freebsd (LIB2ADDEHDEP): Remove.
12685         * config/t-linux (LIB2ADDEHDEP): Remove.
12686
12687 2011-06-03  Diego Novillo  <dnovillo@google.com>
12688
12689         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12690         (lto_register_var_decl_in_symtab): Likewise.
12691         (lto_register_function_decl_in_symtab): Likewise.
12692         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12693         logic to uniquify_nodes.
12694
12695 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12696
12697         * config/alpha/t-osf5: Remove.
12698         * config/alpha/t-osf-pthread: Remove.
12699         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12700         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12701
12702 2011-06-03  Julian Brown  <julian@codesourcery.com>
12703
12704         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12705         (strongarm1110): Use strongarm tuning.
12706         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12707         * config/arm/arm.c (arm_strongarm_tune): New.
12708         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12709         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12710         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12711         setting, using previous defaults or 1 for Cortex-A5.
12712         (arm_option_override): Set max_insns_skipped from current tuning.
12713
12714 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
12715
12716         * doc/install.texi (Options specification): Document --with-specs.
12717
12718 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12719
12720         * config/arm/neon.md (orndi3_neon): Actually split it.
12721
12722 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
12723
12724         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12725         * var-tracking.c (reverse_op): Limite recurse depth to 5.
12726
12727 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
12728
12729         PR debug/47590
12730         * target.def (delay_sched2, delay_vartrack): New.
12731         * doc/tm.texi.in: Update.
12732         * doc/tm.texi: Rebuild.
12733         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12734         * var-tracking.c (gate_handle_var_tracking): Likewise.
12735         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12736         (bfin_flag_var_tracking): Drop.
12737         (output_file_start): Don't save and override flag_var_tracking.
12738         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12739         (bfin_reorg): Test original variables.
12740         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12741         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12742         (ia64_flag_var_tracking): Drop.
12743         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12744         (ia64_file_start): Don't save and override flag_var_tracking.
12745         (ia64_override_options_after_change): Ditto
12746         flag_schedule_insns_after_reload.
12747         (ia64_reorg): Test original variables.
12748         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12749         (picochip_flag_var_tracking): Drop.
12750         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12751         (picochip_option_override): Don't save and override
12752         flag_schedule_insns_after_reload.
12753         (picochip_asm_file_start): Ditto flag_var_tracking.
12754         (picochip_reorg): Test original variables.
12755         * config/spu/spu.c (spu_flag_var_tracking): Drop.
12756         (TARGET_DELAY_VARTRACK): Define.
12757         (spu_var_tracking): New.
12758         (spu_machine_dependent_reorg): Call it.
12759         (asm_file_start): Don't save and override flag_var_tracking.
12760
12761 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
12762
12763         PR target/49163
12764         * config/sh/predicates.md (general_movsrc_operand): Return 0
12765         for memory and memory subreg of which address is an invalid
12766         indexed address for QI and HImode.
12767         (general_movdst_operand): Likewise.
12768
12769 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12770
12771         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12772         edges only, when there is a non-local label in the function.
12773         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12774
12775 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
12776
12777         * config/i386/constraints.md (Y3): New register constraint.
12778         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12779         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12780         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12781         *sse2_interleave_lowv2df.
12782
12783 2011-06-02  Julian Brown  <julian@codesourcery.com>
12784
12785         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12786         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12787         (arm_cortex_a5_tune): New.
12788
12789 2011-06-02  Julian Brown  <julian@codesourcery.com>
12790
12791         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12792         * config/arm/arm.c (arm_default_branch_cost): New.
12793         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12794         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12795         (arm_fa726_tune): Set branch_cost field using
12796         arm_default_branch_cost.
12797         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12798         current_tune structure.
12799         * dojump.c (tm_p.h): Include file.
12800
12801 2011-06-02  Julian Brown  <julian@codesourcery.com>
12802
12803         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12804         tuning.
12805         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12806         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12807         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12808         field.
12809         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12810         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12811         (arm_fa726te_tune): Add prefer_constant_pool setting.
12812         (arm_v6t2_tune, arm_cortex_tune): New.
12813         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12814         prefer_constant_pool setting.
12815
12816 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
12817
12818         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12819         switch statement.
12820         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12821         (*movdf_internal) <case 6,7,8>: Ditto.
12822
12823         * config/i386/constraints.md (Y4): New register constraint.
12824         * config/i386/sse.md (vec_set<mode>_0): Merge with
12825         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12826         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12827         *vec_extractv2di_1_sse.
12828         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12829         and *vec_concatv2di_rex64_sse.
12830
12831 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
12832
12833         PR target/48807
12834         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12835         of cgraph_local_info for null before attempting to use it.
12836
12837 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
12838
12839         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12840         (current_function_dynamic_alloc_count): Delete.
12841         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12842         (expand_builtin_nonlocal_goto): Remove obsolete comment.
12843         (expand_builtin_update_setjmp_buf): Remove dead code.
12844         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12845         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12846         support.
12847         * function.c (instantiate_virtual_regs): Likewise.
12848         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12849         for a block with a single abnormal incoming edge.
12850         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12851         (SETJMP_VIA_SAVE_AREA): Delete.
12852         * config/sparc/sparc-protos.h (load_got_register): Declare.
12853         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12854         (load_got_register): Make global.
12855         (sparc_frame_pointer_required): Add 'static'.
12856         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
12857         (sparc_builtin_setjmp_frame_value): New function.
12858         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12859         (save_stack_nonlocal): New expander.
12860         (restore_stack_nonlocal): Likewise.
12861         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12862         (nonlocal_goto_internal): New insn.
12863         (goto_handler_and_restore): Delete.
12864         (builtin_setjmp_setup): Likewise.
12865         (do_builtin_setjmp_setup): Likewise.
12866         (setjmp): Likewise.
12867         (builtin_setjmp_receiver): New expander.
12868
12869 2011-06-01  David Li  <davidxl@google.com>
12870
12871         PR middle-end/49261
12872         * tree-pretty-print.c (dump_function_header): Format cleanup.
12873
12874 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
12875
12876         PR target/49238
12877         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12878         needed when original operands are used for msw_skip comparison.
12879
12880 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12881
12882         PR debug/49250
12883         * var-tracking.c (add_uses, add_stores): Don't call
12884         cselib_subst_to_values on ENTRY_VALUE.
12885
12886 2011-06-01  Diego Novillo  <dnovillo@google.com>
12887
12888         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12889         output_record_start with LTO_null instead of output_zero.
12890         (lto_output_ts_binfo_tree_pointers): Likewise.
12891         (lto_output_tree): Likewise.
12892         (output_eh_try_list): Likewise.
12893         (output_eh_region): Likewise.
12894         (output_eh_lp): Likewise.
12895         (output_eh_regions): Likewise.
12896         (output_bb): Likewise.
12897         (output_function): Likewise.
12898         (output_unreferenced_globals): Likewise.
12899         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12900         instead of NUM_TREE_CODES.
12901         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12902         (lto_output_int_in_range): Change << to >> when shifting VAL.
12903
12904 2011-06-01  Diego Novillo  <dnovillo@google.com>
12905
12906         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12907         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12908
12909 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12910
12911         PR target/45074
12912         * optabs.h (valid_multiword_target_p): Declare.
12913         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12914         doing multi-word operations.
12915         * optabs.c (expand_binop): Likewise.
12916         (expand_doubleword_bswap): Likewise.
12917         (expand_absneg_bit): Likewise.
12918         (expand_unop): Likewise.
12919         (expand_copysign_bit): Likewise.
12920         (multiword_target_p): New function.
12921
12922 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12923
12924         PR rtl-optimization/48830
12925         PR rtl-optimization/48808
12926         PR rtl-optimization/48792
12927         * reload.c (push_reload): Check contains_reg_of_mode.
12928         * reload1.c (strip_paradoxical_subreg): New function.
12929         (gen_reload_chain_without_interm_reg_p): Use it to handle
12930         paradoxical subregs.
12931         (emit_output_reload_insns, gen_reload): Likewise.
12932
12933 2011-06-01  David Li  <davidxl@google.com>
12934
12935         * predict.c : Change pass name
12936         * ipa.c: Ditto.
12937         * dce.c: Ditto.
12938         * tree-profile.c: Ditto.
12939         * except.c: Ditto.
12940
12941 2011-06-01  David Li  <davidxl@google.com>
12942
12943         * tree-pretty-print.c (dump_function_header): New function.
12944         * final.c (rest_of_clean_state): Use header dumper.
12945         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12946         * passes.c (pass_init_dump_file): Use header dumper.
12947
12948 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
12949
12950         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12951         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12952         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12953         New functions.
12954         (mem_loc_descriptor): Use them.
12955
12956         * var-tracking.c (create_entry_value): New function.
12957         (vt_add_function_parameter): Use it.
12958
12959 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12960
12961         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12962         Include <signal.h>, <ucontext.h>.
12963         (sigill_caught): Define.
12964         (sigill_hdlr): New function.
12965         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12966         insns can be executed.
12967         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12968         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12969
12970 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12971
12972         * config/t-slibgcc-darwin: Move to ...
12973         * config/t-slibgcc-dummy: ... this.  Clarify comments.
12974         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12975         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12976         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12977         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
12978         Remove i386/t-crtstuff from tmake_file.
12979         (i[34567]86-*-solaris2*): Remove t-svr4,
12980         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12981         t-slibgcc-dummy.
12982         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12983         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12984         sparc/t-crtfm from tmake_file.
12985         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12986         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12987         Remove extra_parts.
12988         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12989         * config/i386/t-nwld (SHLIB_LINK): Remove.
12990         * config/i386/t-rtems-i386: Rename to ...
12991         * config/i386/t-rtems: ... this.
12992         ($(T)crti.o, $(T)crtn.o): Remove.
12993         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12994         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12995         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12996         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12997         EXTRA_MULTILIB_PARTS): Remove.
12998         * config/sparc/t-sol2-64: Likewise.
12999         * config/sparc/t-sol2: Remove.
13000         * config/sparc/t-crtin: Remove.
13001         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13002         * config/i386/gmon-sol2.c: Remove.
13003         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13004         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13005         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13006         * config/i386/sol2-gc1.asm: Remove.
13007         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13008         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13009         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13010         * config/t-slibgcc-sld: Remove.
13011
13012 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13013
13014         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13015         base_type_for_mode with op_mode instead of mode.
13016
13017 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
13018
13019         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
13020         Cortex-A15.
13021         * config/arm/arm-tune.md: Regenerate.
13022         * config/arm/arm-tables.opt: Regenerate.
13023         * config/arm/arm.c (FL_DIV): Rename...
13024         (FL_THUMB_DIV): ... to this.
13025         (FL_ARM_DIV): Define.
13026         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13027         (arm_arch_hwdiv): Remove.
13028         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13029         (arm_issue_rate): Add cortexr5.
13030         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13031         __ARM_ARCH_EXT_IDIV__.
13032         (TARGET_IDIV): Define.
13033         (arm_arch_hwdiv): Remove.
13034         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13035         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13036         (divsi3, udivsi3): New patterns.
13037         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13038         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13039
13040 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13041
13042         * ipa-utils.c (ipa_dfs_info): New field scc_no.
13043         * ipa-utils.c (searchc): Set scc_no.
13044
13045 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13046
13047         * ipa-utils.c (searchc_env): New field allow_overwritable.
13048         (searchc): do not ignore edges to overwritable nodes if indicated
13049         by env->allow_overwritable.
13050         (ipa_reduced_postorder): Set env.allow_overwritable.
13051
13052 2011-06-01  Richard Guenther  <rguenther@suse.de>
13053
13054         * tree.c (free_lang_data): Do not reset boolean_type_node nor
13055         char_type_node.
13056         * lto-streamer.c (lto_record_common_node): Take node pointer,
13057         do not register types.
13058         (lto_preload_common_nodes): Explicitly skip preloading nodes
13059         that differ between frontends.
13060
13061 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13062
13063         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13064         NON_FLOAT_REGS.
13065
13066 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13067
13068         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13069         parameter value for dump. Dump cost on outermost call only.
13070         (rs6000_memory_move_cost): Dump cost on outermost call only.
13071
13072 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13073
13074         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13075         DW_OP_GNU_convert ops.
13076
13077         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13078         cselib_preserve_constants.
13079         (cselib_lookup_1): If cselib_preserve_constants,
13080         a new VALUE is being created for REG and there is a VALUE for the
13081         same register in wider mode, add another loc with lowpart SUBREG of
13082         the wider VALUE.
13083         (cselib_subst_to_values): Handle ENTRY_VALUE.
13084         * var-tracking.c  (replace_expr_with_values): Return NULL for
13085         ENTRY_VALUE too.
13086         * dwarf2out.c (convert_descriptor_to_signed): New function.
13087         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13088         instead of two shifts.
13089         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13090         the right mode if needed.
13091         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13092         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13093         convert_descriptor_to_signed.
13094         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13095         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13096
13097         PR target/48688
13098         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13099
13100 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13101
13102         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13103         of X87MODEI12 and SWI48x instead of SSEMODEI24.
13104         (SWI248x): New mode iterator, rename from X87MODEI.
13105         (X87MODEI): Remove mode iterator.
13106         (X87MODEI12): Ditto.
13107         (SSEMODEI24): Ditto.
13108
13109 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13110
13111         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13112         * doc/invoke.texi: Document max-vartrack-expr-depth.
13113         * var-tracking.c (EXPR_DEPTH): New.
13114         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13115
13116 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13117
13118         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13119         * config/i386/sse.md: Add n to negated FMA pattern names.
13120
13121 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13122
13123         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13124
13125 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13126
13127         * gengtype-state.c (read_state_params_structs): Initialize previous.
13128
13129 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13130
13131         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13132         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13133
13134 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13135
13136         * config/i386/i386.md (*movtf_internal): Avoid allocating general
13137         registers.  Penalize F*r->o alternative to prevent partial memory
13138         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
13139         CONST_DOUBLE immediates when optimizing function for size.  Do not move
13140         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13141         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13142         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13143         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13144         alternatives.
13145         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13146
13147         (fp_register_operand splitters): Use fp_register_operand
13148         constraint.  Do not use FP_REG_P in insn condition.
13149         (any_fp_register_operand splitters): Use any_fp_register_operand
13150         constraint.  Do not use ANY_FP_REG_P in insn condition.
13151
13152 2011-05-31  Jan Hubicka  <jh@suse.cz>
13153
13154         * cgraph.h (cgraph_inline_failed_t): Give enum a name
13155         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13156         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13157         (lto_output_edge): Use output_enum and var_len_unsigned.
13158         (lto_output_varpool_node): Likewise.
13159         (input_overwrite_node): Do not take resolution parameter;
13160         extract it from a bitpack.
13161         (input_node): Do not read resolution; use input_enum and
13162         var_len_unsigned.
13163         (input_varpool_node): Likewise.
13164         (input_edge): Likewise.
13165         (input_cgraph_1): Likewise.
13166
13167 2011-05-31  Richard Guenther  <rguenther@suse.de>
13168
13169         * gimple.c (gimple_register_canonical_type): Do not register
13170         any types via gimple_register_type.
13171
13172 2011-05-31  Jan Hubicka  <jh@suse.cz>
13173
13174         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13175         of thunks.
13176
13177 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13178
13179         PR rtl-optimization/49235
13180         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13181         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13182
13183 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
13184
13185         PR tree-optimization/49093
13186         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13187         data references.
13188
13189 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
13190
13191         PR debug/49047
13192         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13193         for concrete functions containing the code of cloned functions.
13194
13195 2011-05-31  Richard Guenther  <rguenther@suse.de>
13196
13197         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13198         to ...
13199         (forward_propagate_into_comparison_1): ... this.
13200         (forward_propagate_comparison): Rename to ...
13201         (forward_propagate_into_comparison): ... this.  Split out
13202         real forward propagation code to ...
13203         (forward_propagate_comparison): ... this.
13204         (forward_propagate_into_gimple_cond): Remove looping.
13205         (forward_propagate_into_cond): Likewise.
13206         (simplify_not_neg_expr): Return whether we have done something.
13207         (simplify_gimple_switch): Likewise.
13208         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13209         (ssa_forward_propagate_and_combine): ... this.  Re-structure
13210         to do a forward forward-propagation walk on BBs and a backward
13211         stmt combining walk on BBs.  Consistently re-scan changed statements.
13212         (pass_forwprop): Adjust.
13213
13214 2011-05-30  Ian Lance Taylor  <iant@google.com>
13215
13216         * godump.c (go_format_type): Correct length of name added to
13217         obstack for anonymous field.
13218
13219 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13220
13221         PR target/49186
13222         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13223         part of the second operand is 0.
13224
13225 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
13226
13227         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13228         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
13229         to memory for !TARGET_MEMORY_MISMATCH_STALL.
13230         (*movdf_internal_rex64): Do not penalize F->r alternative.
13231         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13232         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
13233         when optimizing function for size.  Do not move CONST_DOUBLEs
13234         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13235         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
13236         SUBREGs.  Do not check for MEM_P operands in the insn condition,
13237         check for ANY_FP_REGNO_P instead.
13238         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13239         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13240         function for speed.
13241         * config/i386/i386.c (ix86_option_override_internal): Do not
13242         set TARGET_INTEGER_DFMODE_MOVES here.
13243
13244 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13245
13246         PR target/49168
13247         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13248
13249 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13250
13251         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13252         DW_TAG_rvalue_reference_type even for
13253         -gdwarf-4 -fno-debug-types-section.
13254
13255 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13256
13257         PR tree-optimization/46728
13258         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13259         (build_and_insert_binop): New.
13260         (gimple_expand_builtin_pow): Reorder args for
13261         build_and_insert_call; use build_and_insert_binop; add more
13262         optimizations for fractional exponents.
13263
13264 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13265
13266         PR bootstrap/49190
13267
13268         Revert:
13269         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13270
13271         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13272         tree_common.
13273         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13274         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13275         TS_BASE instead of TS_COMMON.
13276         * varasm.c (assemble_name): Remove assert.
13277
13278 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13279
13280         * config.gcc: Keep obselete list sorted.
13281
13282 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13283             Eric Botcazou  <ebotcazou@adacore.com>
13284
13285         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13286         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13287         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13288         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13289         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13290
13291 2011-05-30  Richard Guenther  <rguenther@suse.de>
13292
13293         * gimple.c (gimple_types_compatible_p_1): Compare record
13294         and union type members properly.
13295
13296 2011-05-30  Richard Guenther  <rguenther@suse.de>
13297
13298         PR tree-optimization/49210
13299         * ipa-split.c (split_function): Care for the case where the call
13300         result is not trivially convertible to the result holding variable.
13301
13302 2011-05-30  Richard Guenther  <rguenther@suse.de>
13303
13304         PR tree-optimization/49218
13305         * tree-vrp.c (adjust_range_with_scev): Properly check whether
13306         overflow occured.
13307
13308 2011-05-30  Richard Guenther  <rguenther@suse.de>
13309
13310         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13311         New function split out from ...
13312         (forward_propagate_into_gimple_cond): ... here.  Adjust.
13313         (forward_propagate_into_cond): Likewise.
13314         (forward_propagate_comparison): Also propagate into
13315         comparisons on assignment RHS.  Change return value to
13316         behave similar to forward_propagate_into_cond.
13317         (tree_ssa_forward_propagate_single_use_vars): Handle
13318         strict-overflow warnings properly for forward_propagate_comparison.
13319
13320 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13321
13322         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13323         from plugin linker.
13324         * configure: Regenerate.
13325
13326 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
13327
13328         PR tree-optimization/49199
13329         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13330         non-reduction operands are either defined in the loop or by induction.
13331
13332 2011-05-29  Xinliang David Li  <davidxl@google.com>
13333
13334         * opts-global.c (handle_common_deferred_options): Handle new options.
13335         * passes.c (register_one_dump_file): Call register_pass_name.
13336         (execute_one_pass): Check explicit enable/disable flag.
13337         (passr_hash): New function.
13338         (passr_eq): Ditto.
13339         (register_pass_name): Ditto.
13340         (get_pass_by_name): Ditto.
13341         (pass_hash): Ditto.
13342         (pass_eq): Ditto.
13343         (enable_pass): Ditto.
13344         (disable_pass): Ditto.
13345         (is_pass_explicitly_enabled_or_disabled): Ditto.
13346
13347 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
13348
13349         * config/i386/i386.md (*movoi_internal_avx): Use
13350         standard_sse_constant_opcode for alternative 0.
13351         (*movti_internal_sse): Ditto.
13352         (*movti_internal_rex64): Use standard_sse_constant_opcode for
13353         alternative 2.
13354         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
13355         sselog1 type moves.
13356         (*movsi_internal): Ditto.
13357         (*movdi_internal): Ditto.  Add ssecvt type moves.
13358
13359 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13360
13361         PR target/48830
13362         * rtlanal.c (simplify_subreg_regno): Adjust comment.
13363
13364 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
13365
13366         PR rtl-optimization/49095
13367         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
13368         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
13369
13370 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13371
13372         PR target/43995
13373         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
13374         recurse_p argument.  Only follow register copies if it is set,
13375         and prevent mips_find_pic_call_symbol from recursing.
13376         (mips_find_pic_call_symbol): Add a recurse_p argument.
13377         Pass it to mips_pic_call_symbol_from_set.
13378         (mips_annotate_pic_calls): Update accordingly.
13379
13380 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13381
13382         * emit-rtl.c (try_split): Use a loop to search for
13383         NOTE_INSN_CALL_ARG_LOCATIONs.
13384
13385 2011-05-29  Richard Guenther  <rguenther@suse.de>
13386
13387         PR tree-optimization/49217
13388         * ipa-pure-const.c (propagate_pure_const): Fix typos.
13389
13390 2011-05-28  Jan Hubicka  <jh@suse.cz>
13391
13392         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
13393         length.
13394         (string_slot_free): Remove
13395         (create_output_block): Initialize obstack.
13396         (destroy_output_block): Free obstack.
13397         (lto_string_index): Add PERSISTENT parameter; do not duplicate
13398         the string unless it needs to be added into the hash.
13399         (lto_output_string_with_length): Add persistent attribute;
13400         handle NULL strings.
13401         (lto_output_string): Add PERSISTENT parameter.
13402         (output_string_cst, output_identifier): Simplify.
13403         (lto_output_location_bitpack): Update.
13404         (lto_output_builtin_tree): Update.
13405         * lto-streamer.h (struct output_block): Add obstack.
13406         (lto_output_string, lto_output_string_with_length): Remove
13407         declarations; functions are static now.
13408
13409 2011-05-28  Jan Hubicka  <jh@suse.cz>
13410
13411         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
13412         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
13413         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
13414         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
13415         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
13416         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
13417         unpack_ts_decl_with_vis_value_fields,
13418         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
13419         lto_get_builtin_tree): Use enum and variable length i/o.
13420         * basic-block.h (profile_status_d): Add PROFILE_LAST.
13421         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
13422         New functions.
13423         (bp_pack_enum, bp_unpack_enum): New macros.
13424
13425 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13426
13427         * genrecog.c: Remove redundant forward declarations.
13428
13429 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13430
13431         * config.gcc: Deprecate mips*-*-openbsd*.
13432
13433 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13434
13435         PR bootstrap/49195
13436         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
13437         for match_op_dup.
13438
13439 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
13440
13441         PR middle-end/48981
13442         * gengtype.c (vec_prefix_type): New function.
13443         (note_def_vec): Use vec_prefix_type and change the length
13444         attribute to be based on the prefix.
13445         * vec.c: Include coretypes.h before vec.h.
13446         (struct vec_prefix): Remove.
13447         (vec_gc_p_reserve): Change the offsetof to sizeof.
13448         (vec_gc_p_reserve_exact): Likewise.
13449         (vec_heap_p_reserve): Likewise.
13450         (vec_heap_p_reserve_exact): Likewise.
13451         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
13452         (vec_stack_p_reserve): Change the offsetof to sizeof.
13453         (vec_stack_p_reserve_exact): Likewise.
13454         * vec.h (struct vec_prefix): New struct definition.
13455         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
13456         (VEC_T_GTY(T,B)): Likewise.
13457         (DEF_VEC_FUNC_P(T)): Use prefix field.
13458         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
13459         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
13460
13461 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13462
13463         PR tree-optimization/46728
13464         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
13465         (powi_as_mults): Add gimple_set_location.
13466         (build_and_insert_call): New.
13467         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
13468         0.5, 0.25, 0.75, 1./3., or 1./6.
13469
13470 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
13471
13472         * doc/contrib.texi: Update copyright years.
13473         (Contributors): Add Zdenek Sojka.
13474
13475 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13476
13477         * c-decl.c (c_push_function_context): Copy the current statement
13478         list stack.
13479         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
13480         (finish_struct): Call building_stmt_list_p instead of checking
13481         cur_stmt_list.
13482         * c-parser.c (c_parser_postfix_expression): Likewise.
13483         * c-typeck.c (c_end_compound_stmt): Likewise.
13484         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
13485         * tree-iterator.c (stmt_list_cache): Change to a VEC.
13486         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
13487         (free_stmt_list): Likewise.
13488         * tree.h (struct tree_statement_list): Include typed_tree instead
13489         of tree_common.
13490         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
13491         as TS_TYPED instead of TS_COMMON.
13492
13493 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13494             Uros Bizjak  <ubizjak@gmail.com>
13495
13496         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
13497         (HAVE_AS_IX86_TLSGDPTL): Define.
13498         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
13499         (HAVE_AS_IX86_TLSLDMPLT): Define.
13500         * configure: Regenerate.
13501         * config.in: Regenerate.
13502         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
13503         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
13504         TARGET_SUN_TLS, use @tlsgdplt or @plt.
13505         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
13506         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
13507         @tlsldmplt or @plt.
13508         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
13509
13510 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
13511
13512         * sched-int.h (struct _haifa_deps_insn_data): New members cond
13513         and reverse_cond.
13514         (INSN_COND, INSN_REVERSE_COND): New macros.
13515         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
13516         once.
13517         (sched_get_condition_with_rev): Cache the results, and look them up
13518         if possible.
13519         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
13520         are clobbered by the current insn.
13521         * target.def (exposed_pipline): New sched data hook.
13522         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
13523         * doc/tm.texi: Regenerate.
13524
13525 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13526
13527         PR tree-optimization/49170
13528         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
13529         sincos or cexp.
13530
13531 2011-05-27  Richard Guenther  <rguenther@suse.de>
13532
13533         PR middle-end/49189
13534         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
13535         of comparisons.
13536
13537 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
13538
13539         * haifa-sched.c (sched_scan_info): Remove.
13540         (schedule_block): Call sched_extend_luids rather than sched_init_luids
13541         with NULL args.
13542         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
13543         Remove functions.
13544         (sched_scan): Remove.
13545         (sched_extend_luids): Renamed from luids_extend_insn and no longer
13546         static.  All callers changed.
13547         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
13548         static.  All callers changed.
13549         (sched_init_luids): Remove all arguments except the first.  All
13550         callers changed.  Don't use sched_scan.
13551         (haifa_init_h_i_d): Likewise.
13552         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
13553         manually rather than using sched_init_luids.  Likewise with
13554         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
13555         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
13556         rather than sched_init_luids with NULL args.
13557         * sel-sched-ir.c (new_insns): Remove variable.
13558         (sched_scan): New static function, previously in haifa-sched.c.  Remove
13559         all arguments but the first two; all callers changed.
13560         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
13561         rather than sched_init_luids.
13562         (sel_init_bbs): Remove second argument.  All callers changed.
13563         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
13564         with NULL arguments.
13565         (create_insn_rtx_from_pattern): Likewise.
13566         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
13567         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
13568         (sched_init_insn_luid, sched_extend_luids): Declare.
13569         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
13570         declarations.
13571
13572 2011-05-27  Richard Guenther  <rguenther@suse.de>
13573
13574         PR middle-end/49177
13575         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
13576         A CMP B ? (T) true : (T) false for non-integral types T again.
13577
13578 2011-05-27  Jan Hubicka  <jh@suse.cz>
13579
13580         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
13581         so 0 means NULL string.
13582         (lto_output_string_with_length): ... here.
13583         (lto_output_string, output_string_cst, output_identifier): Update
13584         handling of NULL strings.
13585         (lto_output_location_bitpack): New function.
13586         (lto_output_location): Use it.
13587         (lto_output_tree_ref): Use output_record_start.
13588         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
13589         len values.
13590         * lto-streamer-in.c (string_for_index): Break out from ...; offset
13591         values by 1.
13592         (input_string_internal): ... here;
13593         (input_string_cst, input_identifier, lto_input_string): Update handling
13594         of NULL strings.
13595         (lto_input_location_bitpack): New function
13596         (lto_input_location): Use it.
13597         (unpack_ts_type_common_value_fields): Pack align & alias in var len
13598         values.
13599         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
13600         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
13601         (bp_pack_value): Sanity check the value range.
13602         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
13603         New functions.
13604         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
13605         New functions.
13606
13607 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
13608
13609         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
13610         call_arg_location instructions down the floor.
13611
13612 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
13613
13614         PR rtl-optimization/49154
13615         * ira.c (setup_pressure_classes): Process class without sublcasses
13616         as a candidate for pressure classes.
13617
13618 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
13619
13620         PR rtl-optimization/48575
13621         * genrecog.c (position_type): New enum.
13622         (position): New structure.
13623         (decision): Use position structure instead of a string.
13624         (root_pos, peep2_insn_pos_list): New variables.
13625         (next_position, compare_positions): New functions.
13626         (new_decision): Use position structures instead of strings.
13627         (maybe_both_true): Likewise.
13628         (change_state): Likewise.
13629         (write_tree): Likewise.
13630         (make_insn_sequence): Likewise.
13631
13632 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13633
13634         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
13635         TS_BASE instead of TS_COMMON.
13636         (find_decls_types_r): Check for TS_TYPED structure before looking at
13637         TREE_TYPE.
13638         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
13639         Add chain field.
13640         (BLOCK_CHAIN): Use new chain field.
13641
13642 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
13643
13644         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
13645         moves expensive on Power7 also.
13646
13647 2011-05-26  Richard Guenther  <rguenther@suse.de>
13648
13649         * fold-const.c (fold_unary_loc): Remove bogus code.
13650
13651 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13652
13653         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13654         tree_common.
13655         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13656         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13657         TS_BASE instead of TS_COMMON.
13658         * varasm.c (assemble_name): Remove assert.
13659
13660 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
13661
13662         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
13663         substituted first.
13664         * libgcc-std.ver: Delete file.
13665
13666 2011-05-26  Richard Guenther  <rguenther@suse.de>
13667
13668         PR tree-optimization/48702
13669         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13670         only when we know the base address is within bounds.
13671         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13672         assume the base address of TARGET_MEM_REFs is in bounds.
13673
13674 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13675
13676         PR target/49099
13677         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13678         declaration in TARGET_SOLARIS.
13679
13680 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
13681
13682         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13683         The instruction is then expanded explicitly.
13684         (supported_compare): Callable instruction.
13685         (compare): Likewise.
13686
13687 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
13688
13689         PR c++/49165
13690         * gimplify.c (shortcut_cond_r): Don't special case
13691         COND_EXPRs if they have void type on one of their arms.
13692
13693 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
13694
13695         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13696         to reduce duplication, and to achieve a slightly more logical order
13697         of operations.
13698
13699 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
13700
13701         PR tree-optimization/49161
13702         * tree-vrp.c (struct case_info): New type.
13703         (compare_case_labels): Sort case_info structs instead of
13704         trees, and not primarily by CASE_LABEL uids but by
13705         label_for_block indexes.
13706         (find_switch_asserts): Put case labels into struct case_info
13707         array instead of TREE_VEC, adjust sorting, compare label_for_block
13708         values instead of CASE_LABELs.
13709
13710 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13711
13712         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13713         ("orndi3_neon"): Likewise.
13714         ("bic<mode>3_neon"): Likewise.
13715
13716 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
13717
13718         PR tree-optimization/49038
13719         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13720         Ensure at least one epilogue iteration if required by data
13721         accesses with gaps.
13722         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13723         to mark loops that require peeling for gaps.
13724         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13725         (vect_get_known_peeling_cost): Take peeling for gaps into
13726         account.
13727         (vect_transform_loop): Generate epilogue if required by data
13728         access with gaps.
13729         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13730         loop as requiring an epilogue if there are gaps in the end of
13731         the strided group.
13732
13733 2011-05-25  Ian Lance Taylor  <iant@google.com>
13734
13735         * godump.c (go_format_type): Output the first field with a usable
13736         Go type, if any.
13737
13738 2011-05-25  Ian Lance Taylor  <iant@google.com>
13739
13740         * godump.c (go_format_type): Check for invalid type names, pointer
13741         target types, and struct field types.
13742
13743 2011-05-25  Jason Merrill  <jason@redhat.com>
13744
13745         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13746
13747 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
13748
13749         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13750
13751 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13752
13753         * config/i386/i386.md (*movqi_extv_1)): Put back
13754         "register_operand" check in "type" calculation.
13755         (*movqi_extzv_2): Likewise.
13756
13757 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13758
13759         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13760
13761 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
13762
13763         PR bootstrap/49160
13764         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13765         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13766         __divxc3, __divtc3): Wrap definitions in #ifndef.
13767
13768 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13769
13770         PR target/49142
13771         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13772         "register_operand" check and replace q_regs_operand with
13773         QIreg_operand in "type" calculation.
13774         (*movqi_extv_1): Likewise.
13775         (*movqi_extzv_2_rex64): Likewise.
13776         (*movqi_extzv_2): Likewise.
13777
13778         * config/i386/predicates.md (QIreg_operand): New.
13779
13780 2011-05-25  Richard Guenther  <rguenther@suse.de>
13781
13782         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13783         type-based offset disambiguation, streamline MEM_REF and
13784         TARGET_MEM_REF handling.
13785
13786 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13787
13788         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13789         (bdesc_special_args): Add pause intrinsic.
13790
13791         * config/i386/i386.md (UNSPEC_PAUSE): New.
13792         (pause): Likewise.
13793         (*pause): Likewise.
13794         * config/i386/ia32intrin.h (__pause): Likewise.
13795
13796         * doc/extend.texi (X86 Built-in Functions): Add documentation for
13797         pause intrinsic.
13798
13799 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13800
13801         PR tree-optimization/46728
13802         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13803         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13804
13805 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
13806
13807         * tree.h (struct tree_exp): Inherit from struct tree_typed.
13808         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13809         instead of TS_COMMON.
13810
13811 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
13812
13813         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13814         LIBGCC2_GNU_PREFIX is defined.
13815         (__N): New macro.
13816         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13817         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13818         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13819         __clz_tab): Define using __N.
13820         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13821         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13822         * target.def (libfunc_gnu_prefix): New hook.
13823         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13824         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13825         * doc/tm.texi: Regenerate.
13826         * system.h (LIBGCC2_GNU_PREFIX): Poison.
13827         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13828         account.
13829         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13830         (init_optabs): Likewise for the bswap libfuncs.
13831         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13832         and divide.
13833         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13834         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13835         * libgcc-std.ver: Remove.
13836         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13837         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13838         libgcc-std.ver.
13839         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13840         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13841         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13842         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13843         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13844         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13845         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13846         * config/fixed-bit.h (FIXED_OP): Define differently depending on
13847         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13848         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13849
13850 2011-05-25  Jan Hubicka  <jh@suse.cz>
13851
13852         * lto-streamer-out.c (output_record_start): Use lto_output_enum
13853         (lto_output_tree): Use output_record_start.
13854         * lto-streamer-in.c (input_record_start): Use lto_input_enum
13855         (lto_get_pickled_tree): Use input_record_start.
13856         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13857         (lto_value_range_error): New function.
13858         * lto-streamer.h (lto_value_range_error): Declare.
13859         (lto_output_int_in_range, lto_input_int_in_range): New functions.
13860         (lto_output_enum, lto_input_enum): New macros.
13861
13862 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13863
13864         * common.opt (flag_stack_usage_info): New variable.
13865         (-Wstack-usage): New option.
13866         * doc/invoke.texi (Warning options): Document -Wstack-usage.
13867         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13868         <OPT_fstack_usage>: Likewise.
13869         * toplev.c (output_stack_usage): Handle -Wstack-usage.
13870         * calls.c (expand_call): Test flag_stack_usage_info variable instead
13871         of flag_stack_usage.
13872         (emit_library_call_value_1): Likewise.
13873         * explow.c (allocate_dynamic_stack_space): Likewise.
13874         * function.c (instantiate_virtual_regs ): Likewise.
13875         (prepare_function_start): Likewise.
13876         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13877         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13878         * config/arm/arm.c (arm_expand_prologue): Likewise.
13879         (thumb1_expand_prologue): Likewise.
13880         * config/avr/avr.c (expand_prologue): Likewise.
13881         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13882         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13883         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13884         * config/mips/mips.c (mips_expand_prologue): Likewise.
13885         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13886         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13887         * config/s390/s390.c (s390_emit_prologue): Likewise.
13888         * config/sh/sh.c (sh_expand_prologue): Likewise.
13889         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13890         * config/spu/spu.c (spu_expand_prologue): Likewise.
13891
13892 2011-05-25  Richard Guenther  <rguenther@suse.de>
13893
13894         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13895         (gimple_canonical_types_compatible_p): Likewise.
13896
13897 2011-05-25  Jan Hubicka  <jh@suse.cz>
13898
13899         PR middle-end/49062
13900         * ipa.c (function_and_variable_visibility): Only add to same
13901         comdat group list if DECL_ONE_ONLY.
13902
13903 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
13904
13905         PR rtl-optimization/49014
13906         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13907
13908 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13909
13910         PR target/49128
13911         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13912
13913 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13914
13915         PR rtl-optimization/48757
13916         * ira-build.c (loop_with_eh_edge_p): Rename to
13917         loop_with_complex_edge_p, check edges on complexity, make function
13918         conditional.
13919         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13920         conditional.
13921
13922 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13923
13924         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13925         force flag_ira_share_save_slots to 0.
13926
13927 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
13928
13929         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13930         (vt_initialize): Set PROLOGUE_BB unconditionally.
13931         Add block comment about CFA_BASE_RTX machinery.
13932         Reset FP_CFA_OFFSET to -1 on all invalid paths.
13933         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13934
13935 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
13936
13937         PR objc/48187
13938         * c-parser.c (c_parser_objc_class_instance_variables): More robust
13939         parsing of syntax error in ObjC instance variable lists.  In
13940         particular, avoid an infinite loop if there is a stray ']'.
13941         Updated error message.
13942
13943 2011-05-24  Ian Lance Taylor  <iant@google.com>
13944
13945         * godump.c (go_define): Don't accept a string immediately after
13946         another operand.
13947
13948 2011-05-24  Ian Lance Taylor  <iant@google.com>
13949
13950         * godump.c (struct godump_container): Add invalid_hash field.
13951         (go_format_type): Return false if type is found in invalid_hash.
13952         (go_output_typedef): Add invalid type to invalid_hash.
13953         (go_finish): Create and delete invalid_hash.
13954
13955 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13956
13957         PR tree-optimization/46728
13958         * tree-ssa-math-opts.c (powi_table): New.
13959         (powi_lookup_cost): New.
13960         (powi_cost): New.
13961         (powi_as_mults_1): New.
13962         (powi_as_mults): New.
13963         (gimple_expand_builtin_powi): New.
13964         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13965         (gate_cse_sincos): Remove sincos/cexp restriction.
13966
13967 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13968
13969         PR target/3746
13970         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13971         mips-tdump native.
13972         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13973         * mips-tdump.c: Likewise.
13974
13975 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13976
13977         PR target/49128
13978         * config/i386/driver-i386.c (host_detect_local_cpu): Always
13979         add -mno-XXX.  Handle FMA.
13980
13981 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13982
13983         PR rtl-optimization/48633
13984         * ira-build.c (loop_with_eh_edge_p): New function.
13985         (mark_loops_for_removal): Use it.
13986
13987 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
13988
13989         PR rtl-optimization/48971
13990         * ira.c (setup_pressure_classes): Don't check register move cost
13991         for classes with one registers.  Don't add pressure class if there
13992         is a pressure class with the same available hard registers.
13993         Check contains_reg_of_mode.  Fix a typo in collecting
13994         temp_hard_regset.  Ignore hard registers not belonging to a class.
13995
13996 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
13997
13998         PR target/49133
13999         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14000
14001 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14002             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14003
14004         PR gcov-profile/48845
14005         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14006
14007 2011-05-24  Richard Guenther  <rguenther@suse.de>
14008
14009         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14010         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14011         (gimple_types_compatible_p_1): Adjust.
14012         (iterative_hash_canonical_type): Do not bother about complete vs.
14013         incomplete types.
14014         (gimple_canonical_types_compatible_p): Likewise.
14015
14016 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14017
14018         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14019
14020 2011-05-24  Richard Guenther  <rguenther@suse.de>
14021
14022         PR bootstrap/49078
14023         * gimple.c (gimple_register_canonical_type): Revert
14024         previous change.
14025         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14026         does not for a tree for the case where it matters.  Cache
14027         pointer-type alias-sets.
14028
14029 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
14030
14031         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14032         (OBJS): Remove options.o, opts-common.o and prefix.o.
14033         (OBJS-libcommon-target): New.
14034         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14035         (BACKEND): Include libcommon-target.a.
14036         (MOSTLYCLEANFILES): Include libcommon-target.a.
14037         (libcommon-target.a): New.
14038         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14039         prefix.o.
14040
14041 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
14042
14043         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
14044         parts of output shared with the driver.
14045         * optc-gen.awk: Don't generate parts of output not shared with the
14046         driver.
14047         * opth-gen.awk: Remove GCC_DRIVER conditionals.
14048         * doc/options.texi (SourcerInclude): Mention options-save.c.
14049         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14050         (OBJS): Add options-save.o.
14051         (options-save.c, options-save.o): New.
14052         (options.o): Update dependencies.
14053         (gcc-options.o): Remove.
14054         (mostlyclean): Remove options-save.c.
14055
14056 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14057
14058         PR debug/49032
14059         * dbxout.c: Include cgraph.h.
14060         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14061         and without value expr, return NULL if no varpool node exists for
14062         it or if it is not needed.
14063         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14064
14065         PR c/49120
14066         * c-decl.c (start_decl): Convert expr to void_type_node.
14067
14068 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
14069
14070         PR rtl-optimization/48826
14071         * emit-rtl.c (try_split): When splitting a call that is followed
14072         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14073
14074 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14075
14076         * cfgexpand.c (expand_debug_expr): For unused non-addressable
14077         parameters passed in memory prefer using DECL_INCOMING_RTL over
14078         the pseudos it will be copied into.
14079
14080 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14081
14082         PR target/47315
14083         * config/i386/i386.c (ix86_option_override_internal): Save the
14084         initial options after checking vzeroupper.
14085
14086 2011-05-23  David Li  <davidxl@google.com>
14087
14088         PR tree-optimization/48988
14089         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14090         Initialize has_valid_pred for each pred chain.
14091
14092 2011-05-23  Richard Guenther  <rguenther@suse.de>
14093
14094         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14095         (iterative_hash_gimple_type): Always hash type names.
14096
14097 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
14098
14099         * c-typeck.c (build_function_call_vec): Tweak call to
14100         check_function_arguments.
14101
14102 2011-05-23  Richard Guenther  <rguenther@suse.de>
14103
14104         PR tree-optimization/49115
14105         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14106         is not necessarily carried out, do not claim it kills the ref.
14107         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14108
14109 2011-05-23  Richard Guenther  <rguenther@suse.de>
14110
14111         PR middle-end/15419
14112         * builtins.c (fold_builtin_memory_op): Be less restrictive about
14113         what pointer types we accept for folding.
14114
14115 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14116
14117         * gthr-gnat.c: Remove.
14118         * gthr-gnat.h: Remove.
14119         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14120         * config/t-freebsd (LIB2ADDEH): Likewise.
14121         * config/t-linux (LIB2ADDEH): Likewise.
14122         * config/t-sol2 (LIB2ADDEH): Likewise.
14123         * config/ia64/t-vms (LIB2ADDEH): Likewise.
14124         * configure.ac (target_thread_file): Remove gnat handling.
14125         * configure: Regenerate.
14126         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14127
14128 2011-05-23  Tristan Gingold  <gingold@adacore.com>
14129             Eric Botcazou  <ebotcazou@adacore.com>
14130
14131         * gcov.c (create_file_names): If no object directory is specified,
14132         keep the directory of the file.
14133
14134 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14135
14136         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14137         * configure: Regenerate.
14138
14139 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14140
14141         PR middle-end/48973
14142         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14143         failed and the comparison has a single bit signed type, use
14144         constm1_rtx instead of const1_rtx for true value.
14145         (do_store_flag): If ops->type is single bit signed type, disable
14146         signel bit test optimization and pass -1 instead of 1 as last
14147         parameter to emit_store_flag_force.
14148
14149 2011-05-23  Tom de Vries  <tom@codesourcery.com>
14150
14151         PR target/45098
14152         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14153         function.
14154         (infer_loop_bounds_from_undefined): Use new function.
14155
14156 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14157
14158         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14159         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
14160         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14161         and -O0 otherwise.
14162         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14163
14164 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14165
14166         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14167         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14168         returns true.
14169
14170 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14171
14172         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14173
14174 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14175
14176         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14177         UNSPEC_MOVE_PIC pattern.
14178
14179 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14180
14181         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14182         (sparc-*-rtems*): Likewise.
14183         (sparc64-*-elf*): Likewise.
14184         (sparc64-*-rtems*): Likewise.
14185         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
14186         * config/sparc/t-crtin: New file.
14187         * config/sparc/t-sol2 (crti.o): Delete rule.
14188         (crtn.o): Likewise.
14189         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14190         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14191         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14192         (ENDFILE_SPEC): Add crtn.o.
14193
14194 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14195
14196         PR middle-end/48689
14197         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14198         CODE_CONTAINS_STRUCT (TS_COMMON).
14199
14200 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
14201
14202         PR middle-end/49029
14203         * expmed.c (extract_fixed_bit_field): Test whether target can be used
14204         only after deciding which mode to use.
14205
14206 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14207
14208         PR target/45098
14209         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14210         for call to get_shiftadd_cost.
14211
14212 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
14213
14214         PR target/49104
14215         * config/i386/cpuid.h (bit_MMXEXT): New define.
14216
14217 2011-05-22  Nick Clifton  <nickc@redhat.com>
14218
14219         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14220         initialisation of non-existant args[2] element.  Use args[] array
14221         not arg[] array to pass arguments to build_function_type_list.
14222
14223 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
14224
14225         PR tree-optimization/49087
14226         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14227
14228 2011-05-21  Jason Merrill  <jason@redhat.com>
14229
14230         PR c++/49092
14231         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14232         static storage duration.
14233
14234 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14235
14236         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14237         frame pointer.
14238
14239 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14240
14241         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14242         false if there are call-saved registers here...
14243         (sparc_can_use_return_insn_p): ...but here instead.
14244         (save_or_restore_regs): Fix thinko.
14245         (sparc_expand_prologue): Use current_function_is_leaf.
14246         (sparc_frame_pointer_required): Likewise.
14247
14248 2011-05-21  Nick Clifton  <nickc@redhat.com>
14249
14250         PR target/49098
14251         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14252
14253 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14254
14255         * gengtype.c (walk_type): Implemented "atomic" GTY option.
14256         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14257
14258 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
14259
14260         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
14261         * optc-gen.awk: Move common code to opt-read.awk.
14262         * opth-gen.awk: Likewise.
14263         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14264
14265 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
14266
14267         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14268
14269 2011-05-20  Tom de Vries  <tom@codesourcery.com>
14270
14271         PR target/45098
14272         * tree-ssa-loop-ivopts.c: Include expmed.h.
14273         (get_shiftadd_cost): New function.
14274         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
14275
14276 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR bootstrap/49086
14279         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14280         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14281
14282 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14283
14284         * Makefile.in: Update comment referring to $(OBJS-common).
14285
14286 2011-05-20  Ian Lance Taylor  <iant@google.com>
14287
14288         * godump.c (go_output_typedef): Put enum constants in the macro
14289         hash table to avoid duplicate Go const definitions.
14290
14291 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * Makefile.in (LIBDEPS): Add libcommon.a.
14294         (LIBS): Likewise.
14295         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14296         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14297         pretty-print.o and version.o.
14298         (OBJS-libcommon): New.
14299         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14300         (BACKEND): Add libcommon.a.
14301         (MOSTLYCLEANFILES): Likewise.
14302         (libcommon.a): New.
14303         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14304         (cpp$(exeext)): Likewise.
14305         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14306         pretty-print.o and input.o.
14307         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14308         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14309         (errors.o): Remove.
14310         (mips-tfile): Don't explicitly use version.o.
14311         (mips-tdump): Likewise.
14312         (gcov.o): Depend on $(DIAGNOSTIC_H).
14313         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14314         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14315         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14316         * gcov-dump.c: Include intl.h and diagnostic.h.
14317         (main): Initialize diagnostics.
14318         * gcov.c: Include diagnostic.h.
14319         (fnotice): Remove.
14320         (main): Initialize diagnostics.
14321         * lto-wrapper.c: Include diagnostic.h.
14322         (main): Initialize diagnostics.
14323
14324 2011-05-20  Michael Matz  <matz@suse.de>
14325
14326         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14327
14328 2011-05-20  Michael Matz  <matz@suse.de>
14329             Richard Guenther  <rguenther@suse.de>
14330
14331         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14332         use lto_streamer_cache_append directly instead of returning a VEC.
14333         (preload_common_node): Remove.
14334         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14335         track seen nodes.
14336         (lto_streamer_cache_create): Call lto_preload_common_nodes.
14337
14338 2011-05-20  Richard Guenther  <rguenther@suse.de>
14339
14340         PR tree-optimization/49079
14341         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
14342         MEM_REFs correctly for the trailing array access detection.
14343         Special case constants the same way as decls for overall size
14344         constraining.
14345
14346 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
14347
14348         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
14349         argument expansion.
14350
14351 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14352
14353         PR tree-optimization/49073
14354         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
14355         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
14356         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
14357
14358 2011-05-20  Richard Guenther  <rguenther@suse.de>
14359
14360         PR middle-end/48849
14361         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
14362         of pointer types the same way the middle-end does.
14363
14364 2011-05-20  Richard Guenther  <rguenther@suse.de>
14365
14366         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
14367         or pointer-to chains.  Delay all fixup to uniquify_nodes.
14368
14369 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
14370
14371         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
14372         (fma4_fmaddsub): Likewise
14373
14374 2011-05-19  Jan Hubicka  <jh@suse.cz>
14375
14376         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
14377         (GIMPLE_TYPE_PAIR_SIZE): New macro.
14378         (type_pair_cache): New static var.
14379         (lookup_type_pair): Use fixed sized custom hash; make inline.
14380         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
14381         calls of lookup_type_pair.
14382         (print_gimple_types_stats): Remove cache stats.
14383         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
14384         and gtc_ob.
14385
14386 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
14387
14388         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
14389         when TARGET_RDRND is active.
14390         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
14391         Generate dummy SImode target register when target is NULL.
14392
14393 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14394
14395         * config/arm/arm-fpus.def: New.
14396         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
14397         arm-fpus.def.
14398         * config/arm/arm-tables.opt: Regenerate.
14399         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
14400         (arm_option_override): Don't decode FPU name to string here.
14401         * config/arm/arm.opt (mfpu=): Use Enum.
14402         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
14403         Update dependencies.
14404
14405 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14406
14407         * collect2.c: Include diagnostic.h.
14408         (fatal_perror, fatal, error, fancy_abort): Remove.
14409         (main): Set progname.  Call xmalloc_set_program_name and
14410         diagnostic_initialize.
14411         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
14412         scan_libraries, resolve_lib_name): Call fatal_error instead of
14413         fatal and fatal_perror.
14414         * collect2.h (error, fatal, fatal_perror): Don't declare.
14415         * tlink.c: Include diagnostic-core.h.
14416         (recompile_files): Call fatal_error instead of fatal_perror.
14417         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
14418         pretty-print.o and input.o.
14419         (collect2.o, tlink.o): Update dependencies.
14420
14421 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14422
14423         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
14424
14425 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14426
14427         PR target/40483
14428         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
14429         COMDAT group syntax, both SPARC and x86 variants.
14430         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
14431         * configure: Regenerate.
14432         * config/sol2.h (TARGET_SOLARIS): Define.
14433         (PUSHSECTION_FORMAT): Remove.
14434         (SECTION_NAME_FORMAT): Define.
14435         * config/sol2.c: Include hashtab.h.
14436         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
14437         expansion, using SECTION_NAME_FORMAT.
14438         (solaris_comdat_htab): New variable.
14439         (struct comdat_entry): Define.
14440         (comdat_hash): New function.
14441         (comdat_eq): New function.
14442         (solaris_elf_asm_comdat_section): New function.
14443         (solaris_define_comdat_signature): New function.
14444         (solaris_code_end): New function.
14445         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
14446         (solaris_code_end): Declare.
14447         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
14448         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
14449         solaris_code_end.
14450         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
14451         Remove ATTRIBUTE_UNUSED.
14452         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
14453         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
14454         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
14455         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
14456         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
14457         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
14458         (PUSHSECTION_FORMAT): Remove.
14459         (SECTION_NAME_FORMAT): Redefine.
14460
14461 2011-05-19  Kai Tietz  <ktietz@redhat.com>
14462
14463         * tree-cfg.c (verify_gimple_assign_binary): Barf on
14464         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
14465         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
14466
14467 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
14468             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14469
14470         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
14471
14472 2011-05-19  Richard Guenther  <rguenther@suse.de>
14473
14474         PR middle-end/48985
14475         * tree-object-size.c (addr_object_size): If the pointed-to
14476         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
14477
14478 2011-05-19  Richard Guenther  <rguenther@suse.de>
14479
14480         * gimple.c (gimple_types_compatible_p_1): Compare names of
14481         the types themselves.
14482         (iterative_hash_gimple_type): And hash them that way.
14483         (gimple_register_type_1): If we register a main variant properly
14484         initialize the leader to ourselves.
14485
14486 2011-05-19  Tom de Vries  <tom@codesourcery.com>
14487
14488         PR target/45098
14489         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
14490         get_loop_invariant_expr_id.
14491         (get_loop_invariant_expr_id): Use get_expr_id.
14492         (parm_decl_cost): New function.
14493         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
14494         Improve bound cost estimation.  Use different inv_expr_id for elim and
14495         express cases.
14496
14497 2011-05-19  Tom de Vries  <tom@codesourcery.com>
14498
14499         PR target/45098
14500         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
14501         cost_base.cost == 0.
14502
14503 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14504
14505         PR target/49002
14506         * config/i386/sse.md
14507         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
14508         load cast.
14509
14510 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
14511
14512         PR tree-optimization/49039
14513         * tree-vrp.c (extract_range_from_binary_expr): For
14514         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
14515         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
14516
14517 2011-05-18  Tom de Vries  <tom@codesourcery.com>
14518
14519         PR target/45098
14520         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
14521
14522 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
14523
14524         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
14525         (*tls_global_dynamic_64): Ditto.
14526         (*tls_local_dynamic_base_32_gnu): Ditto.
14527         (*tls_local_dynamic_base_64): Ditto.
14528         (tls_initial_exec_64_sun): Ditto.
14529
14530 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
14531
14532         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
14533         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
14534         bf592-none.
14535         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
14536         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
14537         * config/bfin/bfin.c (bfin_cpus): Add bf592.
14538         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14539         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
14540         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
14541         * config/bfin/elf.h (LIB_SPEC): Add bf592.
14542
14543 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
14544
14545         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
14546         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
14547         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
14548         target_thread_pointer, arm_structure_size_boundary, struct
14549         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
14550         struct abi_name, arm_all_abis): Remove.
14551         (arm_option_override) Don't process most enumerated option values here.
14552         Don't process target_fpe_name here.  Work with integer not string for
14553         structure size boundary; use separate diagnostics for each case.
14554         * config/arm/arm.h (enum float_abi_type, enum
14555         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
14556         to arm-opts.h.
14557         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
14558         arm_structure_size_boundary): Remove.
14559         * config/arm/arm.opt (mabi=): Use Enum and Init.
14560         (arm_abi_type): New Enum and EnumValue entries.
14561         (mfloat-abi=): Use Enum and Init.
14562         (float_abi_type): New Enum and EnumValue entries.
14563         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
14564         (mfp16-format=): Use Enum and Init.
14565         (arm_fp16_format_type): New Enum and EnumValue entries.
14566         (mstructure-size-boundary=): Use UInteger and Init.
14567         (mtp=): Use Enum and Init.
14568         (arm_tp_type): New Enum and EnumValue entries.
14569
14570 2011-05-18  Richard Guenther  <rguenther@suse.de>
14571
14572         PR tree-optimization/49018
14573         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
14574         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
14575         gimple_has_side_effects.
14576
14577 2011-05-18  Richard Guenther  <rguenther@suse.de>
14578
14579         * gimple.c (gimple_register_type_1): New function, split out from ...
14580         (gimple_register_type): ... here.  Avoid infinite recursion.
14581
14582 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
14583
14584         PR tree-optimization/41881
14585         * tree-vectorizer.h (struct _loop_vec_info): Add new field
14586         reduction_chains along with a macro for its access.
14587         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
14588         (destroy_loop_vec_info): Free reduction chains.
14589         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
14590         (vect_is_slp_reduction): New function.
14591         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
14592         (vect_create_epilog_for_reduction): Support SLP reduction chains.
14593         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
14594         definition types for reduction chains.
14595         (vect_supported_load_permutation_p): Don't allow permutations for
14596         reduction chains.
14597         (vect_analyze_slp_instance): Support reduction chains.
14598         (vect_analyze_slp): Try to build SLP instance from reduction chains.
14599         (vect_get_constant_vectors):  Handle reduction chains.
14600         (vect_schedule_slp_instance): Mark the first statement of the
14601         reduction chain as reduction.
14602
14603 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
14604
14605         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
14606         names for group elements access.
14607         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
14608         reduction chains as well.  Remove data reference and interleaving
14609         related words from the fields names.
14610         * tree-vect-loop.c (vect_transform_loop): Use new names for group
14611         elements access.
14612         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
14613         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
14614         vect_update_interleaving_chain, vect_same_range_drs,
14615         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
14616         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
14617         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
14618         vect_analyze_group_access, vect_analyze_data_ref_access,
14619         vect_create_data_ref_ptr, vect_transform_strided_load,
14620         vect_record_strided_load_vectors): Likewise.
14621         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
14622         vect_model_load_cost, vectorizable_store, vectorizable_load,
14623         vect_remove_stores, new_stmt_vec_info): Likewise.
14624         * tree-vect-slp.c (vect_build_slp_tree,
14625         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
14626
14627 2011-05-18  Richard Guenther  <rguenther@suse.de>
14628
14629         PR middle-end/48989
14630         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
14631         operand verification.
14632         (verify_gimple_assign_binary): Likewise.
14633         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
14634         to non-1-precision BOOLEAN_TYPEs.
14635
14636 2011-05-18  Tom de Vries  <tom@codesourcery.com>
14637
14638         PR target/45098
14639         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
14640
14641 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
14642
14643         PR tree-optimization/49000
14644         * tree-ssa.c (execute_update_addresses_taken): Call
14645         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
14646         be rewritten and decl has been marked for renaming, reset
14647         the debug stmt.
14648
14649 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
14652         enum_opts_set when testing if attributes have set -mfpmath=.
14653
14654 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
14655
14656         * config/mips/mips.c (mips_handle_option): Remove unused variable.
14657
14658 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
14659
14660         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
14661         info->entry with 0
14662         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
14663         id.transform_lang_insert_block with NULL.
14664
14665 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
14666
14667         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
14668         (output_fp_compare): Change args 3 and 4 to bool.
14669         (ix86_expand_call): Change arg 6 to bool.
14670         (ix86_attr_length_immediate_default): Change arg 2 to bool.
14671         (ix86_attr_length_vex_default): Change arg 3 to bool.
14672         * config/i386/i386.md: Update all uses.
14673         * config/i386/i386.c: Ditto.
14674         (ix86_flags_dependent): Change return type to bool.
14675
14676 2011-05-17  Richard Guenther  <rguenther@suse.de>
14677
14678         * gimple.c (type_hash_pair_compare): Fix comparison.
14679
14680 2011-05-17  Richard Guenther  <rguenther@suse.de>
14681
14682         * gimple.c (iterative_hash_gimple_type): Simplify singleton
14683         case some more, fix final hash value of the non-singleton case.
14684
14685 2011-05-17  Richard Guenther  <rguenther@suse.de>
14686
14687         PR bootstrap/49013
14688         Revert
14689         2011-05-16  Richard Guenther  <rguenther@suse.de>
14690
14691         * gimple.c (gimple_types_compatible_p_1): Use names of the
14692         type itself, not its main variant.
14693         (iterative_hash_gimple_type): Likewise.
14694
14695 2011-05-17  Richard Guenther  <rguenther@suse.de>
14696
14697         * gimple.c (gimple_register_canonical_type): Use the main-variant
14698         leader for computing the canonical type.
14699
14700 2011-05-17  Nick Clifton  <nickc@redhat.com>
14701
14702         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14703         moves.
14704
14705         * config/rx/rx.md: Add peephole to remove redundant extensions
14706         after loads.
14707         (bitset_in_memory): Use rx_restricted_mem_operand.
14708         (bitinvert_in_memory): Likewise.
14709         (bitclr_in_memory): Likewise.
14710
14711 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
14712             Nick Clifton  <nickc@redhat.com>
14713
14714         * config/rx/rx.md: Add peepholes to match a register move followed
14715         by a comparison of the moved register.  Replace these with an
14716         addition of zero that does both actions in one instruction.
14717
14718 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
14719
14720         PR target/48986
14721         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14722         predicate to allow CONST_INT.
14723         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14724
14725 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
14726
14727         * opts-common.c (opt_enum_arg_to_value): New.
14728         * opts.h (opt_enum_arg_to_value): Declare.
14729         * config/i386/i386.opt (fpmath): Remove.
14730         (mfpmath=): Use Enum, Init and Save.
14731         (fpmath_unit): New Enum and EnumValue entries.
14732         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14733         name for function fpmath state.
14734         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14735         * config/i386/i386.c: Include diagnostic.h.
14736         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14737         (ix86_target_string): Take enum fpmath_unit value instead of string.
14738         (ix86_debug_options): Update call to ix86_target_string.
14739         (ix86_option_override_internal): Don't process fpmath strings here.
14740         (x86_function_specific_save, ix86_function_specific_restore):
14741         Don't handle fpmath state specially.
14742         (ix86_function_specific_print): Pass fpmath state to
14743         ix86_target_string instead of printing in this function.
14744         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14745         Handle enum attributes.
14746         (IX86_ATTR_ENUM, ix86_opt_enum): New.
14747         (ix86_valid_target_attribute_tree): Update option_strings
14748         handling.  Handle fpmath as enum option.
14749         (ix86_can_inline_p): Update field names for function fpmath state.
14750         (ix86_expand_builtin): Update call to ix86_target_string.
14751         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14752         (ix86_fpmath): Remove.
14753         * config/i386/t-i386 (i386.o): Update dependencies.
14754
14755 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
14756
14757         PR preprocessor/48677
14758         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14759         from decoded_options[0], not from itself.
14760
14761 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
14762
14763         * config/i386/constraints.md (z): New constraint.
14764         * config/i386/i386.c (c): New mode attribute.
14765         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14766         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14767         constraint for operand 0.
14768         (*call_vzeroupper): Ditto.
14769         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
14770         (*call_rex64_ms_sysv_vzeroupper): Ditto.
14771         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14772         Use "lzm" constraint for operand 0.
14773         (*call_pop_vzeroupper): Ditto.
14774         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14775         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
14776         constraint for operand 0.
14777         (*sibcall_vzeroupper): Ditto.
14778         (*sibcall_rex64_ms_sysv): Ditto.
14779         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14780         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14781         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
14782         (*sibcall_pop_vzeroupper): Ditto.
14783         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14784         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14785         mode iterator.  Use "<c>zm" constraint for operand 1.
14786         (*call_value_vzeroupper): Ditto.
14787         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
14788         for operand 1.
14789         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14790         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14791         *call_value_pop_1.  Use "lzm" constraint for operand 1.
14792         (*call_value_pop_vzeroupper): Ditto.
14793         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14794         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14795         mode iterator.  Use "Uz" constraint for operand 1.
14796         (*sibcall_value_vzeroupper): Ditto.
14797         (*sibcall_value_rex64_ms_sysv): Ditto.
14798         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14799         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
14800         constraint for operand 1.
14801         (*sibcall_value_pop_vzeroupper): Ditto.
14802         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14803         and "z" constraint for operand 2.
14804         (*tls_global_dynamic_32_gnu): Ditto.
14805         (*tls_local_dynamic_base_32_gnu): Ditto.
14806         (*tls_local_dynamic_base_64): Ditto.
14807         (*tls_local_dynamic_32_once): Ditto.
14808         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14809         Update all callers.
14810         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14811
14812 2011-05-16  Richard Guenther  <rguenther@suse.de>
14813
14814         * gimple.c (gimple_types_compatible_p_1): Use names of the
14815         type itself, not its main variant.
14816         (iterative_hash_gimple_type): Likewise.
14817
14818 2011-05-16  Richard Guenther  <rguenther@suse.de>
14819
14820         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14821         always visit pointer target and function result and argument types.
14822
14823 2011-05-16  Jason Merrill  <jason@redhat.com>
14824
14825         PR c++/48999
14826         * tree-inline.c (copy_statement_list): Put back recursion.
14827
14828 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
14829
14830         PR target/27663
14831         PR target/41076
14832         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14833         * config/avr/avr.md ("*ior<mode>qi.byte0",
14834         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14835
14836 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
14837
14838         PR target/45099
14839         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14840         register is needed for a function argument.
14841
14842 2011-05-16  Richard Guenther  <rguenther@suse.de>
14843
14844         * gimple.c (struct type_hash_pair): New type.
14845         (type_hash_pair_compare): New function.
14846         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14847
14848 2011-05-16  Revital Eres  <revital.eres@linaro.org>
14849
14850         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14851
14852 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
14853
14854         * config/i386/i386.md (floating point move splitters): Fix
14855         usage of standard_80387_constant_p.
14856         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14857
14858 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
14859
14860         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14861
14862 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14863
14864         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14865         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14866         (tree_ssa_lim_finalize): Likewise.
14867
14868 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
14869
14870         * config/i386/constraint.md (Yd, Yx): New register constraints.
14871         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
14872         Yd conditional register constraint.
14873         (*movtf_internal): Use standard_sse_constant_opcode.
14874         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
14875         Yx conditional register constraint.
14876         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
14877         Yd conditional register constraint.  Use standard_sse_constant_p to
14878         check for valid SSE constants and call standard_sse_constant_opcode to
14879         output SSE insn.
14880         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14881         constants and call standard_sse_constant_opcode to output SSE insn.
14882         * config/i386/i386.c (ix86_option_ovverride_internal): Set
14883         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
14884         optimize_size is set.
14885         (standard_sse_constant_opcode): Output conditional AVX insn templates.
14886
14887 2011-05-14  Tobias Burnus  <burnus@net-b.de>
14888
14889         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14890
14891 2011-05-13  Martin Jambor  <mjambor@suse.cz>
14892
14893         * ipa-prop.c (ipa_cst_from_jfunc): New function.
14894         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14895         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14896         (evaluate_conditions_for_ipcp_clone): Removed.
14897         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14898         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14899         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14900
14901 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14902
14903         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14904         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14905         lieu of MAY_HAVE_DEBUG_STMTS.
14906         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14907         debug statements if !MAY_HAVE_DEBUG_STMTS.
14908
14909 2011-05-13  Martin Thuresson  <martint@google.com>
14910
14911         PR gcov-profile/47793
14912         * libgcov.c (gcov_exit): Support relative profile paths.
14913         * doc/invoke.texi (-fprofile-dir): Update for above change.
14914
14915 2011-05-13  Richard Guenther  <rguenther@suse.de>
14916
14917         * gimple.c (gimple_canonical_types_compatible_p): Do not use
14918         type-pair caching, do not compare hashes.
14919
14920 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
14921
14922         PR middle-end/48965
14923         * tree-cfg.c (edge_to_cases_cleanup): Return true.
14924         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14925
14926 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14927
14928         * gimplify.c (gimplify_expr): Make sure operand is boolified.
14929         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14930         compatible type for TRUTH_NOT_EXPR.
14931
14932 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14933
14934         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14935         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
14936         can_create_pseudo_p ().
14937
14938 2011-05-13  Richard Guenther  <rguenther@suse.de>
14939
14940         PR lto/48978
14941         * gimple.c (iterative_hash_gimple_type): Revert change in
14942         pointer target and function result and argument hashing.
14943
14944 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
14945
14946         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14947         (*movxf_internal_nointeger): Ditto.
14948         (*movdf_internal_rex64): Ditto.
14949         (*movdf_internal): Ditto.
14950         (*movdf_internal_nointeger): Ditto.
14951         (*movsf_internal): Ditto.
14952         (sincos splitters): Use can_create_pseudo ().
14953
14954 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
14955
14956         * config/i386/i386-opts.h: New.
14957         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14958         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14959         ix86_section_threshold): Remove.
14960         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
14961         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14962         OPT_mbranch_cost_.
14963         (ix86_option_override_internal): Don't decode strings for options
14964         other than -march=, -mtune= and -mfpmath=.  Don't allow for
14965         __attribute__ uses in remaining diagnostics for options with
14966         string arguments.  Don't check for integer arguments being negative.
14967         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14968         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14969         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14970         ix86_branch_cost, ix86_section_threshold): Remove.
14971         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14972         HeaderInclude.
14973         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14974         but not Var.
14975         (masm=): Use Enum and Init.
14976         (asm_dialect): New Enum and EnumValue entries.
14977         (mbranch-cost=): Use UInteger.
14978         (mlarge-data-threshold=): Use UInteger and Init.
14979         (mcmodel=): Use Enum and Init.
14980         (cmodel): New Enum and EnumValue entries.
14981         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14982         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14983         mregparm=): Use UInteger.
14984         (mstringop-strategy=): Use Enum and Init.
14985         (stringop_alg): New Enum and EnumValue entries.
14986         (mtls-dialect=): Use Enum and Init.
14987         (tls_dialect): New Enum and EnumValue entries.
14988         (mabi=): Use Enum and Init.
14989         (calling_abi): New Enum and EnumValue entries.
14990         (mveclibabi=): Use Enum and Init.
14991         (ix86_veclibabi): New Enum and EnumValue entries.
14992
14993 2011-05-13  Nick Clifton  <nickc@redhat.com>
14994
14995         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14996         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14997
14998 2011-05-13  Kai Tietz  <ktietz@redhat.com>
14999
15000         PR middle-end/48984
15001         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15002         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15003         (gimple_boolify): Check for cast for boolean_type_node instead for
15004         BOOLEAN_TYPE.
15005
15006 2011-05-13  Richard Guenther  <rguenther@suse.de>
15007
15008         PR tree-optimization/48172
15009         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15010         multiplying by number of iterations for equal step.
15011         (vect_create_cond_for_alias_checks): Likewise.
15012
15013 2011-05-13  Andreas Schwab  <schwab@redhat.com>
15014
15015         * configure.ac: Use AS_HELP_STRING throughout.
15016         * configure: Regenerate.
15017
15018 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15019
15020         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15021         (ix86_emit_restore_regs_using_mov): Likewise.
15022         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15023
15024 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
15025
15026         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15027         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15028         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15029         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15030         RTX_OK_FOR_OLO10_P): ...here.
15031         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15032         SYMBOLIC_CONST.
15033
15034 2011-05-12  Kai Tietz  <ktietz@redhat.com>
15035
15036         * gimplify.c (gimple_boolify): Re-boolify expression
15037         arguments even if expression type is of kind BOOLEAN_TYPE.
15038         (gimplify_boolean_expr): Removed.
15039         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15040         and XOR. Additional take care that we keep expression's type.
15041         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15042         of TRUTH_AND|OR|XOR_EXPR.
15043
15044 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15045
15046         PR tree-optimization/48975
15047         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15048         on all bbs here and free and clear ifc_bbs at the end.
15049
15050 2011-05-12  Richard Guenther  <rguenther@suse.de>
15051
15052         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15053         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
15054         until after simple checks.
15055         (gimple_types_compatible_p): Likewise.
15056         (iterative_hash_gimple_type): Always hash pointer targets
15057         and function return and argument types.
15058         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15059         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
15060         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15061         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
15062         completely in the simple compare section.
15063         (gimple_register_canonical_type): Query the cache again after
15064         registering.
15065
15066 2011-05-12  Richard Guenther  <rguenther@suse.de>
15067
15068         PR tree-optimization/48172
15069         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15070         the number of iterations from the segment size calculation.
15071         (vect_create_cond_for_alias_checks): Adjust.
15072
15073 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15074
15075         PR debug/48967
15076         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15077         if validate_subreg fails.
15078
15079 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
15080
15081         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15082         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15083         early.
15084
15085 2011-05-12  DJ Delorie  <dj@redhat.com>
15086
15087         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15088         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15089         created builtin into rx_builtins array.
15090         (rx_builtin_decl): New function.
15091         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
15092
15093 2011-05-12  DJ Delorie  <dj@redhat.com>
15094             Nick Clifton  <nickc@redhat.com>
15095
15096         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15097         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15098         (rx_is_legitimate_address): Add pre-decrement and post-increment
15099         addressing in HImode and QImode.  Fix test for out of range
15100         REG+INT addressing.
15101         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15102         (rx_align_for_label): Test label before extracting its usage count.
15103         (rx_adjust_insn_lengths): Fix selection of insn codes.
15104         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15105
15106 2011-05-11  Jason Merrill  <jason@redhat.com>
15107
15108         * tree.c (type_hash_canon): Use struct tree_type_non_common.
15109
15110 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15111
15112         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15113         reindent the subsequent block.
15114
15115 2011-05-11  Satoru Takabayashi  <satorux@google.com>
15116             Paul Pluzhnikov  <ppluzhnikov@google.com>
15117
15118         * doc/install.texi (Configuration): Document --with-linker-hash-style.
15119         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15120         * config.in: Add LINKER_HASH_STYLE.
15121         * configure.ac: Add --with-linker-hash-style.
15122         * configure: Regenerate.
15123
15124 2011-05-11  Richard Guenther  <rguenther@suse.de>
15125
15126         PR middle-end/48964
15127         * gimple.c (iterative_hash_canonical_type): Fix typo.
15128
15129 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
15130
15131         * config/i386/i386.c (legitimize_tls_address)
15132         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15133         expanders directly for TARGET_GNU2_TLS.  Determine pic and
15134         __tls_get_addr symbol reference here.  Update call to
15135         gen_tls_global_dynamic_{32,64} for added arguments.
15136         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15137         expanders directly for TARGET_GNU2_TLS.  Determine
15138         __tls_get_addr symbol reference here.  Update call to
15139         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
15140         unique UNSPEC REG_EQUIV to libcall block.
15141         (ix86_tls_get_addr): Declare static.
15142         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15143         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15144         Do not determine pic and __tls_get_addr symbol reference here. Do not
15145         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15146         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15147         (tls_global_dynamic_64): Add operand 2.  Do not determine
15148         __tls_get_addr symbol reference here.  Do not call
15149         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15150         (tls_local_dynamic_base64): Ditto for operand 1.
15151
15152 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15153
15154         * function.c (expand_function_start): Initialize stack_check_probe_note
15155         only if the generic stack checking mechanism is used.
15156
15157 2011-05-11  Richard Guenther  <rguenther@suse.de>
15158
15159         PR tree-optimization/15256
15160         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15161         (A & B) | C, combine (A op CST1) op CST2.
15162         (tree_ssa_forward_propagate_single_use_vars): Only bother to
15163         visit assigns that have uses.
15164
15165 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
15166
15167         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15168         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15169         (unpack_ts_type_common_value_fields): ...this.  Update comment.
15170         (unpack_value_fields): Adjust for renaming.
15171         (lto_input_ts_type_tree_pointers): Split into...
15172         (lto_input_ts_type_common_tree_pointer): ...this and...
15173         (lto_input_ts_type_non_common_tree_pointers): ...this.
15174         (lto_input_tree_pointers): Adjust for above split.
15175         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15176         (pack_ts_type_common_value_fields): ...this.  Update comment.
15177         (lto_output_ts_type_tree_pointers): Split into...
15178         (lto_output_ts_type_common_tree_pointers): ...this and...
15179         (lto_output_ts_type_non_common_tree_pointers): ...this.
15180         (lto_output_tree_pointers): Adjust for above split.
15181         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15182         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15183         * stor-layout.c (vector_type_mode): Adjust location of mode field.
15184         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15185         Define.
15186         (struct tree_type): Split into...
15187         (struct tree_type_common: ...this and...
15188         (struct tree_type_with_lang_specific): ...this and...
15189         (struct tree_type_non_common): ...this.  Adjust accessor macros
15190         accordingly.
15191         (TYPE_VALUES_RAW): Define.
15192         (union tree_node): Update for above changes.
15193         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15194         TS_TYPE_NON_COMMON.
15195         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15196         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15197         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15198         * treestructu.def (TS_TYPE): Remove.
15199         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15200         Define.
15201
15202 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
15203
15204         PR debug/48159
15205         * tree-ssa.c (reset_debug_uses): New function.
15206         * tree-flow.h (reset_debug_uses): New prototype.
15207         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15208         * tree-loop-distribution.c (generate_loops_for_partition): Call
15209         reset_debug_uses on the stmts that will be removed.  Keep around
15210         all debug stmts, don't count them as bits in partition bitmap.
15211         (generate_builtin): Don't count debug stmts or labels as bits in
15212         partition bitmap.
15213
15214 2011-05-11  Richard Guenther  <rguenther@suse.de>
15215
15216         * gimple.c (gimple_type_hash_1): Merge with ...
15217         (gimple_type_hash): ... this.
15218         (gtc_visit): Remove mode parameter and simplify accordingly.
15219         (gimple_types_compatible_p_1): Likewise.
15220         (gimple_types_compatible_p): Likewise.
15221         (iterative_hash_gimple_type): Likewise.
15222         (visit): Likewise.
15223         (gimple_type_eq): Adjust.
15224
15225 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15226
15227         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15228         enters the branch create an anti edge in the opposite direction
15229         to prevent the creation of reg-moves.
15230         * modulo-sched.c: Adjust comment to reflect the fact we are
15231         scheduling closing branch.
15232         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15233         (stage_count): New field in struct partial_schedule.
15234         (calculate_stage_count): New function.
15235         (normalize_sched_times): Rename to reset_sched_times and handle
15236         incrementing the sched time of the nodes by a constant value
15237         passed as parameter.
15238         (duplicate_insns_of_cycles): Skip closing branch.
15239         (sms_schedule_by_order): Schedule closing branch.
15240         (ps_insn_find_column): Handle closing branch.
15241         (sms_schedule): Call reset_sched_times and adjust the code to
15242         support scheduling of the closing branch.
15243         (ps_insert_empty_row): Update calls to normalize_sched_times
15244         and rotate_partial_schedule functions.
15245
15246 2011-05-11  Richard Guenther  <rguenther@suse.de>
15247
15248         PR middle-end/48953
15249         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15250
15251 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
15252
15253         * opts.c (finish_options): Move warning settings from process_options.
15254         * toplev.c (process_options): Move warning settings to finish_options.
15255
15256 2011-05-11  Richard Guenther  <rguenther@suse.de>
15257
15258         PR tree-optimization/18041
15259         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15260         (simplify_bitwise_binary): ... this.  Handle operand conversions
15261         by applying them to the result instead.
15262         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
15263
15264 2011-05-11  Richard Guenther  <rguenther@suse.de>
15265
15266         * gimple.c (gimple_canonical_types_compatible_p): Split out
15267         from gimple_types_compatible_p and friends.  Do not recurse
15268         to pointed-to types.
15269         (gimple_canonical_type_eq): Use it.
15270         (iterative_hash_canonical_type): Split out from
15271         iterative_hash_gimple_type and friends.  Do not recurse
15272         to pointed-to types.
15273         (gimple_canonical_type_hash): Use it, allocate the hash here.
15274
15275 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15276
15277         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15278         recognizing doloop.
15279
15280 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15281
15282         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15283         instead of PREV_INSN.
15284
15285 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15286
15287         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15288         * loop-doloop.c (doloop_condition_get): Likewise.
15289         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15290         (doloop_end): New.
15291         * config/arm/arm.md (*addsi3_compare0): Remove "*".
15292
15293 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
15294
15295         * tree.def (CASE_LABEL_EXPR): Add an operand.
15296         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15297
15298 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15299
15300         * c-decl.c (c_override_global_bindings_to_false): Remove.
15301         (global_bindings_p): Don't check
15302         c_override_global_bindings_to_false.
15303         * c-tree.h (c_override_global_bindings_to_false): Remove.
15304         * c-typeck.c (composite_type): Don't set
15305         c_override_global_bindings_to_false.
15306
15307 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15308
15309         PR target/48857, 48495
15310         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15311         (VSX_MODE): Ditto.
15312         (VSX_MOVE_MODE): Ditto.
15313         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15314         VSX vector types.  Add V2DImode.
15315         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15316         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15317         (MODES_TIEABLE_P): Ditto.
15318
15319         * config/rs6000/rs6000.c (rs6000_emit_move): Use
15320         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15321         VSX_VECTOR_MODE.
15322         (init_cumulative_args): Ditto.
15323         (rs6000_function_arg_boundary): Ditto.
15324         (rs6000_function_arg_advance_1): Ditto.
15325         (rs6000_function_arg): Ditto.
15326         (rs6000_function_ok_for_sibcall): Ditto.
15327         (emit_frame_save): Ditto.
15328         (rs6000_function_value): Ditto.
15329         (rs6000_libcall_value): Ditto.
15330
15331 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15332
15333         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15334         i386/darwin-lib.h to $libgcc_tm_file.
15335         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15336
15337 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15338
15339         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
15340
15341 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15342
15343         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
15344         * config/rs6000/rs6000-tables.opt: New file (generated).
15345         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
15346         rs6000/rs6000-tables.opt to extra_options.
15347         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
15348         * config/rs6000/rs6000.c (rs6000_select): Remove.
15349         (processor_target_table): Move contents to rs6000-cpus.def.
15350         (darwin_rs6000_override_options): Check
15351         global_options_set.x_rs6000_cpu_index instead of
15352         rs6000_select[1].string.
15353         (rs6000_option_override_internal): Likewise.
15354         (rs6000_handle_option): Don't assert that global structures are in
15355         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
15356         (rs6000_default_cpu): New variable.
15357         (rs6000_file_start): Set it instead of local default_cpu.  Check
15358         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
15359         global_options_set.x_rs6000_tune_index instead of rs6000_select.
15360         (rs6000_darwin_file_start): Check rs6000_default_cpu and
15361         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
15362         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
15363         rs6000_select): Remove.
15364         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
15365         Remove.
15366         (mcpu=, mtune=): Use Var, Init, Enum and Save.
15367         * config/rs6000/t-rs6000
15368         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
15369         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15370         global_options_set.x_rs6000_cpu_index instead of
15371         rs6000_select[1].string.
15372         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15373         global_options_set.x_rs6000_cpu_index instead of
15374         rs6000_select[1].string.
15375
15376 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15377
15378         * config.gcc (libgcc_tm_file): Define instead of including files
15379         from ../../libgcc/config/ in tm_file.
15380         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
15381         * configure: Regenerate.
15382         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
15383         libgcc_tm.h, cs-libgcc_tm.h): New.
15384         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
15385         (clean): Remove libgcc_tm.h.
15386         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
15387         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
15388         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
15389
15390 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
15391
15392         PR target/48896
15393         * config/avr/avr.c (avr_ret_register): Return unsigned int
15394         instead of int.
15395         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
15396         it to avr_libcall_value.
15397         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
15398         expand_expr.
15399         (avr_expand_binop_builtin): Ditto.
15400         (avr_expand_unop_builtin): Ditto.
15401
15402 2011-05-10  DJ Delorie  <dj@redhat.com>
15403
15404         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
15405         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
15406         * config/rx/rx.c (rx_align_for_label): Add label and
15407         uses_threshold parameters.  Do not align when the label is not
15408         used enough.
15409         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
15410
15411 2011-05-10  Richard Guenther  <rguenther@suse.de>
15412
15413         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
15414         a series of conversions and apply foldings similar to what
15415         fold-const does.
15416         (tree_ssa_forward_propagate_single_use_vars): Call it.
15417
15418 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
15419
15420         PR tree-optimization/48611
15421         PR tree-optimization/48794
15422         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
15423         referenced from RESX or EH_DISPATCH arguments.
15424
15425         PR debug/48928
15426         * dfp.c (decimal_to_decnumber): Handle conversion from
15427         dconst{1,2,m1,half}.
15428
15429 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15430
15431         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
15432         for !flag_prefer_avx128.
15433         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
15434
15435 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
15436
15437         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
15438         (fold_ternary_loc): Use expr_location_or.
15439
15440 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15441
15442         PR debug/48853
15443         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
15444         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
15445         Pmode and mem_mode is not VOIDmode.
15446
15447 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
15448
15449         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
15450         TYPE_QUAL_RESTRICT): Convert to enum.
15451
15452 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15453
15454         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
15455         (const_pow2_1_to_8_operand): Ditto.
15456         (const_pow2_1_to_128_operand): Ditto.
15457         (const_pow2_1_to_32768_operand): Ditto.
15458         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
15459         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
15460         in insn constraint to check integer value of operand 3.
15461         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
15462
15463         (PINSR_MODE): New mode iterator.
15464         (sse2p4_1): New mode attribute.
15465         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
15466         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
15467         iterator.  Use const_int_operand instead of
15468         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
15469         exact_log2 in insn constraint to check integer value of operand 3.
15470
15471 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15472
15473         * config/i386/sse.md (blendbits): Remove mode attribute.
15474         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15475         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15476         Check integer value of operand 3 in insn constraint.
15477
15478 2011-05-09  Richard Guenther  <rguenther@suse.de>
15479
15480         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
15481         for diagnostics.
15482         (lto_symtab_merge): Likewise.  Do not register types here.
15483         (lto_symtab_merge_decls_2): Likewise.
15484         (lto_symtab_merge_decls_1): Likewise.
15485         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
15486         * gimple.c (enum gtc_mode): Declare.
15487         (gimple_types_compatible_p): Make static.
15488
15489 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15490
15491         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
15492         temporary register to match Pmode.
15493
15494 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15495
15496         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
15497         and *vec_concatv4si_1_avx.
15498
15499 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15500
15501         PR rtl-optimization/48927
15502         * ira-conflicts.c (commutative_constraint_p): Use
15503         recog_data.alternative_enabled_p to disable alternatives where
15504         "enabled" attribute is false.
15505         (get_dup_num): Ditto.
15506         * ira-lives.c (single_reg_class): Ditto.
15507         (ira_implicitly_set_insn_hard_regs): Ditto.
15508
15509 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
15510
15511         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
15512         (dataflow_set_preserve_mem_locs): Likewise.
15513
15514 2011-05-09  Philipp Thomas  <pth@suse.de>
15515
15516         * config/mep/mep.c (mep_validate_vliw): Syntax description
15517         should not be translated.
15518
15519 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
15520
15521         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
15522         * config/mips/mips-tables.opt: New file (generated).
15523         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
15524         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
15525         MIPS_ARCH_OPTION_NATIVE): Define.
15526         * config/mips/mips.c (mips_cpu_info_table): Move contents to
15527         mips-cpus.def.
15528         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
15529         mips_parse_cpu): Remove.
15530         (mips_cpu_info_from_opt, mips_default_arch): New.
15531         (mips_handle_option): Don't assert that global structures are in
15532         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
15533         (mips_option_override): Use new variables and functions to set
15534         state of these options.  Use strcmp to check for individual CPU names.
15535         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
15536         definition.
15537         * config/mips/mips.opt (march=): Use ToLower and Enum.
15538         (mips): Use ToLower, Enum and Var.
15539         (mtune=): Use ToLower and Enum.
15540         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
15541
15542 2011-05-08  Jan Hubicka  <jh@suse.cz>
15543
15544         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
15545         Arrange type pairs to be UID ordered.
15546         (gimple_lookup_type_leader): Make inline.
15547
15548 2011-05-09  Nick Clifton  <nickc@redhat.com>
15549
15550         PR target/48899
15551         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
15552         PROCESSOR_DEFAULT.
15553
15554         PR target/48897
15555         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
15556         variable 's'.
15557
15558 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
15559
15560         * combine.c (simplify_comparison): Abstract out parts into...
15561         (simplify_compare_const): ... new function.
15562         (try_combine): Generalize parallel arithmetic/compare combining
15563         to call simplify_compare_const() and CANONICALIZE_COMPARE().
15564
15565 2011-05-08  Jan Hubicka  <jh@suse.cz>
15566
15567         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
15568         (cgraph_create_virtual_clone): Call hooks once virtual clone
15569         is finished.
15570         * cgraph.h (cgraph_clone_node): Update prototype.
15571         * ipa-cp.c (ipcp_estimate_growth): Use
15572         estimate_ipcp_clone_size_and_time.
15573         * ipa-inline-transform.c (clone_inlined_nodes): Update.
15574         * lto-cgraph.c (input_node): Update.
15575         * ipa-inline.c (recursive_inlining): Update.
15576         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
15577         (evaluate_conditions_for_known_args): Break out from ...
15578         (evaluate_conditions_for_edge): ... here.
15579         (evaluate_conditions_for_ipcp_clone): New function.
15580         (inline_node_duplication_hook): Update clone summary based
15581         on parameter map.
15582         (estimate_callee_size_and_time): Rename to ...
15583         (estimate_node_size_and_time): take NODE instead of EDGE;
15584         take POSSIBLE_TRUTHS as argument.
15585         (estimate_callee_size_and_time): Update.
15586         (estimate_ipcp_clone_size_and_time): New function.
15587         (do_estimate_edge_time): Update.
15588
15589 2011-05-08  Richard Guenther  <rguenther@suse.de>
15590
15591         PR middle-end/48908
15592         PR middle-end/48905
15593         * expmed.c (expand_shift_1): Compute adjusted constant shift
15594         amount manually.
15595
15596 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15597
15598         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
15599
15600 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15601
15602         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
15603
15604 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
15605
15606         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
15607
15608 2011-05-07  Jan Hubicka  <jh@suse.cz>
15609
15610         * ipa-inline-transform.c (inline_call): Account when program size
15611         decreases.
15612         * ipa-inline.c (relative_time_benefit): New function.
15613         (edge_badness): Reorganize to be power 2 based; fix thinko when
15614         computing badness for negative growth; update comments to match
15615         reality; better dumps.
15616
15617 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
15618
15619         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
15620         type to bool and adjust comment.
15621         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
15622         (fold_mathfn_compare): Remove calls to global_bindings_p.
15623         (fold_inf_compare): Likewise.
15624         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
15625         * c-tree.h (global_bindings_p): Adjust prototype.
15626         * c-decl.c (global_bindings_p): Return bool and simplify.
15627
15628 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
15629
15630         PR tree-optimization/48837
15631         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
15632         when accumulator transformation is performed.
15633
15634 2011-05-06  Jan Hubicka  <jh@suse.cz>
15635
15636         * i386.h (ix86_tune_indices): Add
15637         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
15638         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
15639         * i386.c (initial_ix86_tune_features): Add
15640         X86_SOFTARE_PREFETCHING_BENEFICIAL.
15641         (software_prefetching_beneficial_p): Remove predicate.
15642         (ix86_option_override_internal): Use new macro.
15643
15644 2011-05-06  Jan Hubicka  <jh@suse.cz>
15645
15646         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
15647
15648 2011-05-06  Jan Hubicka  <jh@suse.cz>
15649
15650         * cgraph.c (cgraph_add_thunk): Create real function node instead
15651         of alias node; finalize it and mark needed/reachale; arrange visibility
15652         to be right and add it into the corresponding same comdat group list.
15653         (dump_cgraph_node): Dump thunks.
15654         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
15655         cgraph_function_with_gimple_body_p,
15656         cgraph_first_function_with_gimple_body,
15657         cgraph_next_function_with_gimple_body): New functions.
15658         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
15659         New macros.
15660         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
15661         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15662         * cgraphunit.c (cgraph_finalize_function): Only look into possible
15663         devirtualization when optimizing.
15664         (verify_cgraph_node): Verify thunks.
15665         (cgraph_analyze_function): Analyze thunks.
15666         (cgraph_mark_functions_to_output): Output thunks only in combination
15667         with function they are assigned to.
15668         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
15669         alias into normal node.
15670         (assemble_thunks): New functoin.
15671         (cgraph_expand_function): Use it.
15672         * lto-cgraph.c (lto_output_node): Stream thunks.
15673         (input_overwrite_node): Stream in thunks.
15674         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15675         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15676         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15677         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15678         (inline_analyze_function): Do not care about thunk jump functions.
15679         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15680         * ipa-prop.c (ipa_prop_write_jump_functions): Use
15681         cgraph_function_with_gimple_body_p.
15682         * passes.c (do_per_function_toporder): Use
15683         cgraph_function_with_gimple_body_p.
15684         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15685         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15686         (function_called_by_processed_nodes_p): Likewise.
15687
15688 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
15689
15690         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15691         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15692         entries.
15693         (mabi=): Replace with separate entries for mabi=altivec,
15694         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15695         mabi=ieeelongdouble and mabi=ibmlongdouble.
15696         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15697         check for -mabi=spe without SPE ABI support here.
15698         (rs6000_handle_option): Replace OPT_mabi_ handling with
15699         OPT_mabi_altivec and OPT_mabi_spe handling.
15700
15701 2011-05-06  Cary Coutant  <ccoutant@google.com>
15702
15703         * dwarf2out.c (contains_subprogram_definition): New function.
15704         (should_move_die_to_comdat): Call it.
15705
15706 2011-05-06  Jeff Law  <law@redhat.com>
15707
15708         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15709         remove_ctrl_stmt_and_useless_edges.
15710         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15711         (fixup_template_block, thread_single_edge): Likewise.
15712         (mark_threaded_blocks): Use THREAD_TARGET.
15713
15714 2011-05-06  Alan Modra  <amodra@gmail.com>
15715
15716         PR target/48900
15717         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15718         const0_rtx as the arg to the dummy __tls_get_addr libcall.
15719
15720 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
15721
15722         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15723         constraint modifier to "r".
15724
15725 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
15726
15727         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15728         fall through for OPT_mcmodel_.
15729
15730 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15731
15732         * config/s390/s390.c (s390_asm_trampoline_template): Comment
15733         instruction sizes.
15734         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15735
15736 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15737
15738         PR target/47930
15739         * config/arm/arm.opt (marm): Document it.
15740         (mthumb): Reject negative variant.
15741
15742 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
15743
15744         PR target/48898
15745         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15746         Fix typo in "ccvt" variable name.
15747
15748 2011-05-06  Tristan Gingold  <gingold@adacore.com>
15749
15750         PR target/48895
15751         * config/vms/vms-ar.c (main): Remove cwd variable.
15752
15753 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
15754
15755         PR debug/48902
15756         * var-tracking.c (prepare_call_arguments): Move else before #endif.
15757
15758 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
15759
15760         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15761         * gimplify.c (gimplify_switch_expr): Likewise.
15762         * omp-low.c (expand_omp_sections): Likewise.
15763         * tree-eh.c (lower_try_finally_switch): Likewise.
15764         (lower_eh_dispatch): Likewise.
15765         * tree.h (build_case_label): Declare.
15766         * tree.c (build_case_label): Define.
15767
15768 2011-05-05  Jason Merrill  <jason@redhat.com>
15769
15770         PR c++/40975
15771         * tree-inline.c (copy_tree_r): Use copy_statement_list.
15772         (copy_statement_list): Don't recurse.
15773         * stor-layout.c (copy_self_referential_tree_r): Don't allow
15774         STATEMENT_LIST.
15775
15776 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15777
15778         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15779         through from -mfpu= handling.
15780         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15781
15782 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
15783
15784         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15785         POST_MODIFY.
15786
15787 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
15788
15789         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15790         for 11.31.
15791         (hppa[12]*-*-hpux11*): Ditto.
15792         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15793         * config/ia64/hpux-unix2003.h: New.
15794         * config/pa/pa-hpux1131.opt: New.
15795         * config/pa/pa-hpux1131.h: New.
15796         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15797         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15798         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15799
15800 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
15801
15802         PR debug/48853
15803         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15804         instead of mode as 3rd argument to recursive call.
15805         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15806         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15807         VOIDmode.
15808         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15809         don't give up if mode is Pmode and mem_mode is not VOIDmode.
15810         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15811         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15812
15813 2011-05-05  Julian Brown  <julian@codesourcery.com>
15814
15815         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15816         parenthesis in D-register case.
15817
15818 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15819
15820         * opt-functions.awk (var_type_struct): Handle Enum options.
15821         * optc-gen.awk: Don't check range of variables of character type.
15822         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15823         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15824         rs6000_sdata_name, rs6000_explicit_options): Remove.
15825         (rs6000_option_override_internal): Check for -malign-power here.
15826         Use global_options_set instead of rs6000_explicit_options.
15827         (rs6000_parse_fpu_option): Remove.
15828         (rs6000_handle_option): Access variables via opts and opts_set
15829         pointers.  Use error_at and warning_at.  Add fall-through
15830         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15831         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15832         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15833         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15834         here.  Don't use rs6000_parse_fpu_option.
15835         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15836         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15837         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15838         (mrecip=): Use Var.
15839         (mspe): Use Var and Save.
15840         (mtraceback=): Use Enum and Var.
15841         (rs6000_traceback_type): New Enum and EnumValue entries.
15842         (mfloat-gprs=): Use Enum, Var and Save.
15843         (rs6000_float_gprs): New Enum and EnumValue entries.
15844         (mlong-double-): use Var and Save.
15845         (msched-costly-dep=, minsert-sched-nops=): Use Var.
15846         (malign-): Use Enum and Var.
15847         (rs6000_alignment_flags): New Enum and EnumValue entries.
15848         (mfpu=): Use Enum.
15849         (fpu_type_t): New Enum and EnumValue entries.
15850         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15851         global_options_set instead of rs6000_explicit_options.
15852         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15853         global_options_set instead of rs6000_explicit_options.
15854         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15855         global_options_set instead of rs6000_explicit_options.
15856         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15857         global_options_set instead of rs6000_explicit_options.
15858         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15859         global_options_set instead of rs6000_explicit_options.
15860         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15861         global_options_set instead of rs6000_explicit_options.
15862         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15863         definition.
15864         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15865         global_options_set instead of rs6000_explicit_options.
15866         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15867         (rs6000_cmodel): New Enum and EnumValue entries.
15868         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15869         global_options_set instead of rs6000_explicit_options.
15870         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15871         (mtls-size=): Use Enum and Var.
15872         (rs6000_tls_size): New Enum and EnumValue entries.
15873
15874 2011-05-05  Michael Matz  <matz@suse.de>
15875
15876         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15877         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15878         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15879         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15880         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15881         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15882         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15883         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15884         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15885         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15886         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15887         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15888         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15889         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15890         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15891         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15892
15893 2011-05-05  Richard Guenther  <rguenther@suse.de>
15894
15895         * expmed.c (expand_variable_shift): Rename to ...
15896         (expand_shift_1): ... this.  Take an expanded shift amount.
15897         For rotates recurse directly not building trees for the shift amount.
15898         (expand_variable_shift): Wrap around expand_shift_1.
15899         (expand_shift): Adjust.
15900
15901 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
15902
15903         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15904
15905 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15906
15907         * tree.h (get_pending_sizes): Remove prototype.
15908         (put_pending_size): Likewise.
15909         (put_pending_sizes): Likewise.
15910         * stor-layout.c (pending_sizes): Delete.
15911         (get_pending_sizes): Likewise.
15912         (put_pending_size): Likewise.
15913         (put_pending_sizes): Likewise.
15914         (variable_size): Do not call put_pending_size and tidy up.
15915         * function.h (struct function): Remove dont_save_pending_sizes_p.
15916         * lto-streamer-in.c (input_function): Do not stream it.
15917         * lto-streamer-out.c (output_function): Likewise.
15918         * tree-inline.c (initialize_cfun): Do not copy it.
15919         * c-decl.c (store_parm_decls): Do not set it.
15920         * omp-low.c (create_task_copyfn): Likewise.
15921         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15922
15923 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
15924
15925         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15926         conditions.
15927         (*movdf_internal): Ditto.
15928         (*movdf_internal_nointeger): Ditto.
15929         (*movsf_internal): Ditto.
15930
15931 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
15932
15933         * c-decl.c (finish_decl): Don't call get_pending_sizes.
15934         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
15935         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
15936         (c_variable_size): Remove.
15937         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
15938         call put_pending_sizes.
15939         (get_parm_info): Add parameter expr.  Use it to set
15940         arg_info->pending_sizes.
15941         (store_parm_decls): Use arg_info->pending_sizes instead or calling
15942         get_pending_sizes.
15943         * c-parser.c (c_parser_parms_declarator): Update call to
15944         c_parser_parms_list_declarator.
15945         (c_parser_parms_list_declarator): Take parameter expr.  Update
15946         call to push_parm_decl.  Update recursive call.  Don't call
15947         get_pending_sizes.  Update calls to get_parm_info.
15948         (c_parser_objc_method_definition): Update calls to
15949         c_parser_objc_method_decl and objc_start_method_definition.
15950         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15951         (c_parser_objc_method_decl): Add parameter expr.  Update call to
15952         grokparm.
15953         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15954         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15955         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15956
15957 2011-05-05  Michael Hope  <michael.hope@linaro.org>
15958
15959         PR pch/45979
15960         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15961         __ARM_EABI__ hosts.
15962
15963 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15964
15965         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15966         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15967         (spu_output_mi_thunk): New function.
15968
15969 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15970
15971         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15972         targetm.asm_out.print_operand.
15973         * config/sol2.c: Include target.h.
15974
15975 2011-05-04  Jan Hubicka  <jh@suse.cz>
15976
15977         * ipa-inline.c (reset_edge_caches): New function.
15978         (update_caller_keys): Add check_inlinablity_for; do not
15979         reset edge caches; remove now unnecesary loop.
15980         (update_callee_keys): Add comments; reset node_growth_cache of callee.
15981         (update_all_callee_keys): Likewise.
15982         (inline_small_functions): Sanity check cache; update code
15983         recomputing it.
15984
15985 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
15986
15987         PR rtl-optimization/47612
15988         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15989         as the last insn of the sequence to be moved.
15990
15991 2011-05-04  Tobias Burnus  <burnus@net-b.de>
15992
15993         PR fortran/48864
15994         * doc/invoke.texi (Ofast): Document that it
15995         enables Fortran's -fno-protect-parens.
15996
15997 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
15998
15999         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16000
16001 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16002
16003         * stor-layout.c (variable_size): Do not issue errors.
16004
16005 2011-05-04  Richard Guenther  <rguenther@suse.de>
16006
16007         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16008         for array-ref indices.
16009         (tree_coverage_counter_addr): Likewise.
16010         (build_fn_info_type): Use size_int for index types.
16011         (build_gcov_info): Likewise.
16012
16013 2011-05-04  Richard Guenther  <rguenther@suse.de>
16014
16015         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16016         to build_int_cst.
16017         * c-typeck.c (really_start_incremental_init): Use bitsize_int
16018         for constructor indices.
16019         (push_init_level): Likewise.
16020
16021 2011-05-04  Richard Guenther  <rguenther@suse.de>
16022
16023         * explow.c (promote_mode): Move variable declarations before code.
16024
16025 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
16026
16027         * tree.h (build_function_type_array): Declare.
16028         (build_varargs_function_type_array): Declare.
16029         (build_function_type_vec, build_varargs_function_type_vec): Define.
16030         * tree.c (build_function_type_array_1): New function.
16031         (build_function_type_array): New function.
16032         (build_varargs_function_type_array): New function.
16033
16034 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
16035
16036         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16037         before setting STMT_VINFO_TYPE.
16038
16039 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16040
16041         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16042         instead of spu_pass_by_reference.
16043
16044 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16045
16046         * calls.c (emit_library_call_value_1): Invoke
16047         promote_function_mode hook on libcall arguments.
16048         * explow.c (promote_function_mode, promote_mode): Handle TYPE
16049         argument being NULL.
16050         * targhooks.c (default_promote_function_mode): Lisewise.
16051         * config/s390/s390.c (s390_promote_function_mode): Likewise.
16052         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16053
16054         * doc/tm.texi: Document that TYPE argument might be NULL.
16055
16056 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16057
16058         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16059
16060 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16061
16062         From Bernd Schmidt
16063         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16064
16065 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16066
16067         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16068         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16069         Move ...
16070         * mips-tfile.c: ... here.
16071         Don't include coretypes.h, tm.h, filenames.h.
16072         (saber_stop): Remove definition and all calls.
16073         [__SABER__]: Remove.
16074         (__LINE__): Remove default.
16075         (Size_t, Ptrdiff_t): Remove definitions.
16076         Replace by size_t, ptrdiff_t.
16077         [!MIPS_DEBUGGING_INFO]: Remove.
16078         (SHASH_SIZE, THASH_SIZE): Remove defaults.
16079         (progname): Add const.
16080         (STATIC): Remove.
16081         Replace all uses by static.
16082         (ALIGN_SYMTABLE_OFFSET): Remove default.
16083         * mips-tdump.c: Don't include coretypes.h, tm.h.
16084         Remove !MIPS_IS_STAB guard.
16085         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16086         $(TM_H), filenames.h dependencies.
16087         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16088
16089 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16090
16091         From Jie Zhang
16092         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16093         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16094
16095 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16096
16097         From Bernd Schmidt
16098         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16099         account and save/restore RETS.
16100         (PROFILE_BEFORE_PROLOGUE): Define.
16101         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
16102         the push insn to use predecrement.
16103
16104 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16105
16106         From Jie Zhang
16107         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16108
16109 2011-05-04  Nick Clifton  <nickc@redhat.com>
16110
16111         * config/mn10300/mn10300.c: Include cfgloop.h.
16112         (DUMP): New macro.
16113         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
16114         Lcc or a FLcc insn into the instruction stream.
16115         (mn10300_block_contains_call): New function.  Returns true if the
16116         given basic block contains a CALL insn.
16117         (mn10300_loop_contains_call_insn): New function.  Returns true if
16118         the given loop contains a CALL insn.
16119         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
16120         to use the SETLB and Lcc or FLcc insns.
16121         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16122         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16123         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
16124         disable the SETLB optimization.
16125         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16126         __SETLB__ or __NO_SETLB__.
16127         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16128         (movsf_internal): Handle MDR register.
16129         (cmpsi): Make visible.
16130         (setlb): New pattern.
16131         (Lcc): New pattern.
16132         (FLcc): New pattern.
16133
16134 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16135
16136         PR target/48860
16137         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16138         for reg<->xmm moves.
16139         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16140         (vec_concatv2di_rex64_sse): Ditto.
16141         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16142         (*vec_extractv2di_1_rex64): Ditto.
16143
16144         Revert:
16145         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16146
16147         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16148         reg<->xmm moves.
16149         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16150
16151 2011-05-04  Richard Guenther  <rguenther@suse.de>
16152
16153         * tree.h (int_const_binop): Remove notrunc argument.
16154         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
16155         create integer constants that are properly truncated.
16156         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16157         (const_binop): Remove zero notrunc argument to int_const_binop.
16158         (size_binop_loc): Likewise.
16159         (fold_div_compare): Likewise.
16160         (maybe_canonicalize_comparison_1): Likewise.
16161         (fold_comparison): Likewise.
16162         (fold_binary_loc): Likewise.
16163         (multiple_of_p): Likewise.
16164         * expr.c (store_constructor): Likewise.
16165         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16166         (maybe_fold_stmt_addition): Likewise.
16167         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16168         * stor-layout.c (layout_type): Likewise.
16169         * tree-data-ref.c (tree_fold_divides_p): Likewise.
16170         * tree-sra.c (build_ref_for_offset): Likewise.
16171         (build_user_friendly_ref_for_offset): Likewise.
16172         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16173         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16174         * tree-ssa-loop-niter.c (inverse): Likewise.
16175         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16176         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16177         * tree-switch-conversion.c (check_range): Likewise.
16178         (build_constructors): Likewise.
16179         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16180         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16181         (extract_range_from_assert): Likewise.
16182         (vrp_int_const_binop): Likewise.
16183         (extract_range_from_binary_expr): Likewise.
16184         (extract_range_from_unary_expr): Likewise.
16185         (check_array_ref): Likewise.
16186         (find_case_label_range): Likewise.
16187         (simplify_div_or_mod_using_ranges): Likewise.
16188         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16189         comparing case labels for merging.
16190
16191 2011-05-03  Mark Wielaard  <mjw@redhat.com>
16192
16193         * dwarf2out.c (debug_str_hash_forced): Removed.
16194         (gen_label_for_indirect_string): Removed.
16195         (get_debug_string_label): Removed.
16196         (AT_string_form): Generate label directly.
16197         (output_indirect_string): Test indirect_string_node for
16198         DW_FORM_strp instead of checking label and refcount.
16199         (prune_indirect_string): Removed.
16200         (prune_unused_types): Don't check debug_str_hash_forced or
16201         call prune_indirect_string.
16202
16203 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16204
16205         PR other/48093
16206         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16207
16208 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16209
16210         PR debug/47994
16211         PR debug/47919
16212         * combine.c (try_combine): Skip debug insns at m_split tests.
16213
16214 2011-04-26  Mark Wielaard  <mjw@redhat.com>
16215
16216         PR42288
16217         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16218         when info_section_emitted.
16219
16220 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
16221
16222         * config/mips/mips-opts.h: New.
16223         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16224         to mips-opts.h.
16225         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16226         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16227         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
16228         via opts pointer.
16229         * config/mips/mips.h (enum mips_code_readable_setting): Move to
16230         mips-opts.h.
16231         (mips_abi, mips_code_readable): Don't declare.
16232         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16233         (mabi=): Use Enum and Var.
16234         (mips_abi): New Enum and EnumValue entries.
16235         (mcode-readable=): Use Enum and Var.
16236         (mips_code_readable_setting): New Enum and EnumValue entries.
16237         (mr10k-cache-barrier=): Use Enum and Var.
16238         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16239
16240 2011-05-03  Jan Hubicka  <jh@suse.cz>
16241
16242         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16243         replace hash by pointer map.
16244         (cgraph_node_set_element_def, cgraph_node_set_element,
16245         const_cgraph_node_set_element, varpool_node_set_element_def,
16246         varpool_node_set_element, const_varpool_node_set_element): Remove.
16247         (free_cgraph_node_set, free_varpool_node_set): New function.
16248         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16249         * tree-emutls.c: Free varpool node set.
16250         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16251         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16252         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16253         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16254         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16255         Move here from ipa.c; implement using pointer_map
16256         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16257         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16258         debug_cgraph_node_set, varpool_node_set_new,
16259         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16260         dump_varpool_node_set, debug_varpool_node_set):
16261         Move to ipa-uitls.c.
16262         * passes.c (ipa_write_summaries): Update.
16263
16264 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16265
16266         From Mike Frysinger:
16267         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16268         bf542/bf544/bf547/bf548/bf549.
16269
16270 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16271
16272         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16273
16274 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16275
16276         From Bernd Schmidt:
16277         * config/bfin/bfin.md (MOVCC): New mode_macro.
16278         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16279         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
16280         comments from generated assembly.
16281
16282 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16283
16284         From Bernd Schmidt
16285         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16286         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16287         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16288         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16289         * config/bfin/lib1funcs.asm (___muldi3): New function.
16290
16291 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16292
16293         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16294         build_function_type_list instead of build_function_type.
16295         Rearrange initialization of `args' to do so.
16296
16297 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16298
16299         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16300         instead of build_function_type.
16301
16302 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16303
16304         * config/rs6000/rs6000.c (spe_init_builtins): Call
16305         build_function_type_list instead of build_function_type.
16306         (paired_init_builtins, altivec_init_builtins): Likewise.
16307         (builtin_function_type): Likewise.
16308
16309 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16310
16311         * config/sh/sh.c (sh_media_init_builtins): Call
16312         build_function_type_list instead of build_function_type.
16313
16314 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16315
16316         * config/sparc/sparc.c (sparc_file_end): Call
16317         build_function_type_list instead of build_function_type.
16318
16319 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16320
16321         * config/alpha/alpha.c (alpha_init_builtins): Call
16322         build_function_type_list instead of build_function_type.
16323
16324 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16325
16326         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16327         build_function_type_list instead of build_function_type.
16328
16329 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16330
16331         * config/iq2000/i2000.c (iq2000_init_builtins): Call
16332         build_function_type_list instead of build_function_type.
16333         Delete `endlink' variable.
16334
16335 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16336
16337         * config/avr/avr.c (avr_init_builtins): Call
16338         build_function_type_list instead of build_function_type.
16339
16340 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16341
16342         * config/picochip/picochip.c (picochip_init_builtins): Call
16343         build_function_type_list instead of build_function_type.
16344         Delete `endlink' variable.
16345
16346 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16347
16348         * config/bfin/bfin.c (bfin_init_builtins): Call
16349         build_function_type_list instead of build_function_type.
16350
16351 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16352
16353         From Bernd Schmidt
16354         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
16355         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
16356
16357 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16358
16359         From Jie Zhang:
16360         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
16361         libbffastfp overrides libgcc when -mfast-fp.
16362
16363 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16364
16365         Originally from Bernd Schmidt
16366         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
16367         * config/bfin/bfin.c (override_options): Test it and error if
16368         TARGET_FDPIC.
16369
16370 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16371
16372         Originally From Bernd Schmidt
16373         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
16374         FD-PIC.
16375
16376 2011-05-03  Jeff Law  <law@redhat.com>
16377
16378         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
16379         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
16380         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
16381         than accessing AUX field directly.  Free the AUX field before
16382         clearing it.
16383         (thread_block, thread_through_loop_header): Likewise.
16384         (thread_single_edge, mark_threaded_blocks): Likewise.
16385         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
16386         (register_jump_thread): Do not attempt to thread to a NULL edge.
16387
16388 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16389
16390         * function.c (init_function_start): Call decide_function_section.
16391         * varasm.c (decide_function_section): New function.
16392         (assemble_start_function): When not using
16393         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
16394         or first_function_block_is_cold.
16395         * rtl.h (decide_function_section): Declare.
16396
16397 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16398             Jakub Jelinek  <jakub@redhat.com>
16399
16400         PR target/48774
16401         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
16402         only succeed if req_mode is the same as set_mode.
16403
16404 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16405
16406         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
16407         * genemit.c (gen_exp): Handle RETURN.
16408         * emit-rtl.c (verify_rtx_sharing): Likewise.
16409         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
16410         * rtl.c (copy_rtx): RETURN is shared.
16411         * rtl.h (enum global_rtl_index): Add GR_RETURN.
16412         (ret_rtx): New.
16413         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
16414         * config/s390/s390.c (s390_emit_epilogue): Likewise.
16415         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
16416         * config/cris/cris.c (cris_expand_return): Likewise.
16417         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
16418         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
16419         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
16420         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
16421         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
16422         Likewise.
16423         * config/v850/v850.c (expand_epilogue): Likewise.
16424         * config/bfin/bfin.c (bfin_expand_call): Likewise.
16425         * config/arm/arm.md (epilogue): Likewise.
16426         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
16427         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
16428         variable to ret_reg.
16429
16430 2011-05-03  Richard Guenther  <rguenther@suse.de>
16431
16432         PR lto/48846
16433         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
16434         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
16435         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16436
16437 2011-05-03  Richard Guenther  <rguenther@suse.de>
16438
16439         * c-decl.c (grokdeclarator): Instead of looking at
16440         TREE_OVERFLOW check if the constant fits in the index type.
16441
16442 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16443
16444         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
16445         (vec_store_lanes<mode><mode>): Likewise.
16446
16447 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16448
16449         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
16450         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
16451         convert_optab_index values.
16452         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
16453         * genopinit.c (optabs): Initialize the new optabs.
16454         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
16455         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
16456         (expand_STORE_LANES): New functions.
16457         * tree.h (build_array_type_nelts): Declare.
16458         * tree.c (build_array_type_nelts): New function.
16459         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
16460         (vect_model_load_cost): Likewise.
16461         (vect_store_lanes_supported, vect_load_lanes_supported)
16462         (vect_record_strided_load_vectors): Declare.
16463         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
16464         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
16465         (vect_transform_strided_load): Split out statement recording into...
16466         (vect_record_strided_load_vectors): ...this new function.
16467         * tree-vect-stmts.c (create_vector_array, read_vector_array)
16468         (write_vector_array, create_array_ref): New functions.
16469         (vect_model_store_cost): Add store_lanes_p argument.
16470         (vect_model_load_cost): Add load_lanes_p argument.
16471         (vectorizable_store): Try to use store-lanes functions for
16472         interleaved stores.
16473         (vectorizable_load): Likewise load-lanes and loads.
16474         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
16475         to vect_model_store_cost.
16476         (vect_build_slp_tree): Likewise vect_model_load_cost.
16477
16478 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16479
16480         * hooks.h (hook_bool_mode_uhwi_false): Declare.
16481         * hooks.c (hook_bool_mode_uhwi_false): New function.
16482         * target.def (array_mode_supported_p): New hook.
16483         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
16484         * doc/tm.texi: Regenerate.
16485         * stor-layout.c (mode_for_array): New function.
16486         (layout_type): Use it.
16487         * config/arm/arm.c (arm_array_mode_supported_p): New function.
16488         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
16489
16490 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
16491
16492         PR target/48723
16493         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
16494         for -fstack-check if the size to allocate is negative.
16495
16496 2011-05-02  Lawrence Crowl  <crowl@google.com>
16497
16498         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
16499         (timevar_cond_start): New for starting a timer only when it is not
16500         already running.
16501         (timevar_cond_stop): New for stopping a timer when it was not already
16502         running.
16503
16504         * timevar.c (timevar_stop): Enable start/stop timers to start again.
16505         (timevar_cond_start): New as above.
16506         (timevar_cond_stop): New as above.
16507
16508         * timevar.def: Add start/stop timers for compiler phases,
16509         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
16510         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
16511         and TV_PHASE_FINALIZE.
16512         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
16513         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
16514         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
16515         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
16516         Make unused TV_OVERLOAD into a start/stop timer.
16517
16518         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
16519         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
16520         to indicate that they are start/stop timers.
16521
16522         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
16523         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
16524         Move initialization to do_compile.
16525         (do_compile): Add initialization from above.
16526         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
16527
16528         * c-decl.c (c_write_global_declarations): Add start/stop of
16529         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
16530
16531         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
16532         or TV_PARSE_INLINE, as appropriate.
16533         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
16534         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
16535
16536 2011-05-02  Jason Merrill  <jason@redhat.com>
16537
16538         PR c++/40975
16539         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
16540
16541 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
16542
16543         PR c/35445
16544         * c-decl.c (finish_decl): Only create a composite if the types are
16545         compatible.
16546
16547 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
16548
16549         * config/fr30/fr30-protos.h (Mmode): Don't define.
16550         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
16551         definition where used.
16552         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
16553         define.  Expand definitions where used.
16554         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
16555         Expand definitions where used.
16556         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
16557         rx_function_arg, rx_function_arg_advance,
16558         rx_function_arg_boundary): Expand definitions of those macros.
16559         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
16560         definition where used.
16561
16562 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16563
16564         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16565         reg<->xmm moves.
16566         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
16567         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
16568         with *movv2sf_internal_rex64_avx.
16569         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
16570         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
16571         Use %v prefix in insn mnemonic to handle TARGET_AVX.
16572         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
16573         "vex" in "prefix" attribute calculation.
16574         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
16575
16576 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
16577
16578         PR target/47951
16579         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
16580         inputs match the output.
16581
16582 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
16583
16584         PR target/47955
16585         * config/m68k/m68k.c (m68k_expand_prologue): Set
16586         current_function_static_stack_size.
16587
16588 2011-05-02   Jan Hubicka  <jh@suse.cz>
16589
16590         * lto-streamer.c (lto_streamer_cache_insert_1,
16591         lto_streamer_cache_lookup, lto_streamer_cache_create,
16592         lto_streamer_cache_delete): Use pointer map instead of hashtable.
16593         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
16594
16595 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
16596
16597         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
16598         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
16599         config/m68k/t-opts: New files.
16600         * config/m68k/m68k-tables.opt: New file (generated).
16601         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
16602         extra_options and m68k/t-opts to tmake_file.
16603         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
16604         (all_isas): Initialize using m68k-isas.def.
16605         (all_microarchs): Initialize using m68k-microarchs.def.
16606         (m68k_find_selection): Remove.
16607         (m68k_handle_option): Don't assert that global structures are in
16608         use.  Use error_at.  Access variables via opts pointer.  Don't
16609         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
16610         directly for -m68020-40 and -m68020-60.
16611         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
16612         m68k_tune_entry here.
16613         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
16614         to m68k-opts.h.
16615         (m68k_library_id_string): Remove declaration.
16616         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
16617         (m68k_library_id_string): New Variable.
16618         (march=, mcpu=, mtune=): Use Enum and Var.
16619
16620 2011-05-02  Richard Guenther  <rguenther@suse.de>
16621
16622         * varasm.c (output_constructor_regular_field): Compute zero-based
16623         index with double-ints.  Make sure to ICE instead of producing
16624         wrong code.
16625         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
16626         in asserts.  Properly use a signed type.
16627
16628 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16629
16630         * config/i386/sse.md (V): New mode iterator.
16631         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
16632         TARGET_SSE2.
16633         (V_256): Rename from AVX256MODE.
16634         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
16635         condition to all users.
16636         (VF1): Ditto.
16637         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
16638         condition to all users.
16639         (VF_128): Make V4SF mode unconditional.
16640         (VF_256): Rename from AVX256MODEF2P.
16641         (VI4F_128): Rename from SSEMODE4S.
16642         (VI8F_128): Rename from SSEMODE2D.
16643         (VI4F_256): Rename from AVX256MODE8P.
16644         (VI8F_256): Rename from AVX256MODE4P.
16645         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
16646         (ssescalarmodesuffix): Remove SF and DF modes.
16647         (SSEMODE124): Remove.
16648         (SSEMODE1248): Ditto.
16649         (SSEMODEF2P): Ditto.
16650         (AVXMODEF2P): Ditto.
16651         (AVXMODEFDP): Ditto.
16652         (AVXMODEFSP): Ditto.
16653         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
16654         unconditional.
16655         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
16656         unconditional.
16657         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
16658         xop_pcmov_<mode>256.  Use V mode iterator.
16659
16660         Adjust RTX patterns globally for renamed mode attributes.
16661
16662 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16663
16664         * haifa-sched.c (sched_emit_insn): Emit insn before first
16665         non-scheduled insn.  Inform back-end about new insn.  Add
16666         new insn to scheduled_insns list.
16667
16668 2011-05-02  Richard Guenther  <rguenther@suse.de>
16669
16670         PR tree-optimization/48822
16671         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16672         (process_scc): Indicate which iteration we start.
16673
16674 2011-05-02  Jan Hubicka  <jh@suse.cz>
16675
16676         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16677         (lto_section_overrun): New.
16678         * lto-section-out.c (append_block): Rename to ...
16679         (lto_append_block): ... this one; export.
16680         (lto_output_1_stream): Move lto lto-streamer.h
16681         (lto_output_data_stream): Update.
16682         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16683         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16684         functions.
16685
16686 2011-05-02  Richard Guenther  <rguenther@suse.de>
16687
16688         * tree.c (tree_code_counts): New global array.
16689         (record_node_allocation_statistics): Count individual tree codes.
16690         (dump_tree_statistics): Dump individual code stats.
16691
16692 2011-05-01  Jan Hubicka  <jh@suse.cz>
16693
16694         * ipa-inline.c (caller_growth_limits): Fix thinko when
16695         looking for largest stack frame.
16696         * ipa-inline.h (dump_inline_summary): Declare.
16697         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16698         on stack usage.
16699         (dump_inline_summary): Export.
16700         (debug_inline_summary): Declare as DEBUG_FUNCTION.
16701
16702 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
16703
16704         * reginfo.c (memory_move_cost): Change rclass argument type form
16705         'enum reg_class' to reg_class_t.
16706         * reload.h (memory_move_cost): Update prototype.
16707         * postreload.c reload_cse_simplify_set): Change type dclass var to
16708         reg_class_t.
16709         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16710         Update prototype.
16711         (ira_allocate_and_set_costs): Change aclass argument type form
16712         'enum reg_class' to reg_class_t.
16713         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16714         Change aclass argument type to reg_class_t.
16715         (update_conflict_hard_reg_costs): Change type aclass and pref vars
16716         to reg_class_t.
16717         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16718         memory_move_cost call.
16719
16720         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16721         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16722         Change type tmp var to reg_class_t.
16723
16724 2011-04-30  Jan Hubicka  <jh@suse.cz>
16725
16726         * ipa-inline.c (can_inline_edge_p): Disregard limits when
16727         inlining into function with flatten attribute.
16728         (want_inline_small_function_p): Be more realistic about inlining
16729         cold calls where callee size grows.
16730
16731 2011-04-30  Jan Hubicka  <jh@suse.cz>
16732
16733         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16734         flags.
16735
16736 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
16737
16738         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16739         PRINT_OPERAND_PUNCT_VALID_P): Remove.
16740         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16741         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16742         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16743         (print_operand): Rename to...
16744         (sparc_print_operand): ...this. Make static. Adjust
16745         sparc_print_operand function call.
16746         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16747         functions.
16748
16749 2011-04-30  Jan Hubicka  <jh@suse.cz>
16750
16751         PR middle-end/48752
16752         * ipa-inline.c (early_inliner): Disable when doing late
16753         addition of function.
16754
16755 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
16756
16757         * dwarf2out.c (get_address_mode): New inline.
16758         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16759         if not dwarf_strict emit
16760         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16761         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16762         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
16763         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16764         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16765         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16766         mem_loc_descriptor callers.
16767         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16768         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16769         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16770         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16771         (base_types): New variable.
16772         (get_base_type_offset, calc_base_type_die_sizes,
16773         base_type_for_mode, mark_base_types, base_type_cmp,
16774         move_marked_base_types): New functions.
16775         (calc_die_sizes): Assert that die_offset is 0 or equal to
16776         next_die_offset.
16777         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16778         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
16779         callers.  If not dwarf_strict, call mem_loc_descriptor even for
16780         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16781         (gen_subprogram_die): Don't give up on call site parameters
16782         with non-integral or large integral modes.  Adjust
16783         mem_loc_descriptor callers.
16784         (prune_unused_types): Call prune_unused_types_mark on base_types
16785         vector entries.
16786         (resolve_addr): Call mark_base_types.
16787         (dwarf2out_finish): Call move_marked_base_types.
16788
16789         PR tree-optimization/48809
16790         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16791         type.
16792         (gen_inbound_check): Don't compute index_expr - range_min in utype
16793         again, instead reuse SSA_NAME initialized in build_arrays.
16794         Remove two useless gsi_for_stmt calls.
16795
16796 2011-04-29  Jeff Law  <law@redhat.com>
16797
16798         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16799
16800 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16801
16802         * cgraph.h (cgraph_postorder): Remove declaration.
16803         * ipa-utils.h (ipa_free_postorder_info): Declare.
16804         (ipa_reverse_postorder): Likewise.
16805         * cgraphunit.c: Include ipa-utils.h.
16806         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16807         * ipa-inline.c: Include ipa-utils.h.
16808         (ipa_inline): Update call to ipa_reverse_postorder.
16809         * ipa-pure-const.c (propagate_pure_const): Update call to
16810         ipa_reduced_postorder and ipa_print_order.  Call
16811         ipa_free_postorder_info to clean up.
16812         (propagate_nothrow): Likewise.
16813         * ipa-reference.c (propagate): Removed a useless call to
16814         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16815         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
16816         * ipa.c: Include ipa-utils.h.
16817         (ipa_profile): Update call to ipa_reverse_postorder.
16818         (cgraph_postorder): Moved to...
16819         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16820         (ipa_utils_print_order): Renamed to ipa_print_order.
16821         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16822         comments.
16823         (ipa_free_postorder_info): New function.
16824         * passes.c: Include ipa-utils.h.
16825         (do_per_function_toporder): Update call to ipa_reverse_postorder.
16826         (ipa_write_summaries): Likewise.
16827         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16828         (cgraphunit.o): Likewise.
16829         (ipa.o): Likewise.
16830         (ipa-inline.o): Likewise.
16831
16832 2011-04-29  Jan Hubicka  <jh@suse.cz>
16833
16834         * gcc.dg/tree-ssa/inline-10.c: New testcase.
16835         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16836         * ipa-inline.h (clause_t): Turn into unsigned int.
16837         * ipa-inline-analysis.c (add_clause): Do more simplification.
16838         (and_predicates): Shortcut more cases.
16839         (predicates_equal_p): Move forward; check that clauses are properly
16840         ordered.
16841         (or_predicates): Shortcut more cases.
16842         (edge_execution_predicate): Rewrite as...
16843         (set_cond_stmt_execution_predicate): ... this function; handle
16844         __builtin_constant_p.
16845         (set_switch_stmt_execution_predicate): New .
16846         (compute_bb_predicates): New.
16847         (will_be_nonconstant_predicate): Update TODO.
16848         (estimate_function_body_sizes): Use compute_bb_predicates
16849         and free them later, always try to estimate if stmt is constant.
16850         (estimate_time_after_inlining, estimate_size_after_inlining):
16851         Gracefully handle optimized out edges.
16852         (read_predicate): Fix off by one error.
16853
16854 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
16855
16856         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16857
16858 2011-04-27  Xinliang David Li  <davidxl@google.com>
16859
16860         * tree-profile.c (init_ic_make_global_vars): Set
16861         tls attribute on ic vars.
16862         * coverage.c (coverage_end_function): Initialize
16863         function_list with zero.
16864
16865 2011-04-29  Richard Guenther  <rguenther@suse.de>
16866
16867         * builtins.c (fold_builtin_classify_type): Use integer_type_node
16868         for the type of the result.
16869         (fold_builtin_isascii): Likewise.
16870         (fold_builtin_toascii): Use integer_type_node where appropriate.
16871         (fold_builtin_logb): Likewise.
16872         (fold_builtin_frexp): Likewise.
16873         (fold_builtin_strstr): Likewise.
16874         (fold_builtin_strpbrk): Likewise.
16875         (fold_builtin_fputs): Likewise.
16876         (fold_builtin_sprintf): Likewise.
16877         (fold_builtin_snprintf): Likewise.
16878         (fold_builtin_printf): Likewise.
16879         (do_mpfr_remquo): Use a proper type for the assigned constant.
16880         (do_mpfr_lgamma_r): Likewise.
16881         * dwarf2out.c (resolve_one_addr): Use size_int.
16882         * except.c (init_eh): Likewise.
16883         (assign_filter_values): Use integer_type_node for filter values.
16884         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16885         indices.
16886         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16887         for EH region numbers.
16888         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16889         for the shift amount.
16890
16891 2011-04-29  Richard Guenther  <rguenther@suse.de>
16892
16893         * expr.h (expand_shift): Rename to ...
16894         (expand_variable_shift): ... this.
16895         (expand_shift): Take a constant shift amount.
16896         * expmed.c (expand_shift): Rename to ...
16897         (expand_variable_shift): ... this.
16898         (expand_shift): New wrapper around expand_variable_shift.
16899         * expr.c (convert_move, emit_group_load_1, emit_group_store,
16900         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16901         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16902         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16903         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16904         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16905         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16906         emit_store_flag_1, emit_store_flag): Likewise.
16907         * builtins.c (expand_builtin_signbit): Likewise.
16908         * calls.c (load_register_parameters): Likewise.
16909         * function.c (assign_parm_setup_block): Likewise.
16910         * lower-subreg.c (resolve_shift_zext): Likewise.
16911         * optabs.c (widen_bswap, expand_abs_nojump,
16912         expand_one_cmpl_abs_nojump, expand_float): Likewise.
16913         * spu/spu.c (spu_expand_extv): Likewise.
16914         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16915
16916 2011-04-29  Richard Guenther  <rguenther@suse.de>
16917
16918         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16919         for the remapped region number.
16920         * predict.c (build_predict_expr): Use integer_type_node for the
16921         predict kind.
16922         * fold-const.c (fold_binary_loc): Use integer_type_node for
16923         the shift amount.  Use a proper type for the PLUS_EXPR operand.
16924
16925 2011-04-29  Michael Matz  <matz@suse.de>
16926
16927         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16928         other trees that just builtins.
16929         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16930
16931 2011-04-29  Richard Guenther  <rguenther@suse.de>
16932
16933         * tree-nested.c (get_trampoline_type): Use size_int.
16934         (get_nl_goto_field): Likewise.
16935         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16936         for all indexes.
16937         (lower_eh_constructs_2): Likewise.
16938         (lower_resx): Likewise.
16939         (lower_eh_dispatch): Likewise.
16940         * tree-mudflap.c (mf_build_string): Use size_int.
16941         (mudflap_register_call): Use integer_type_node for the flag.
16942         (mudflap_enqueue_constant): Use size_int.
16943         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16944         instead of rebuilding it.
16945
16946 2011-04-29  Richard Guenther  <rguenther@suse.de>
16947
16948         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16949         Handle OBJ_TYPE_REF.
16950         (find_func_aliases_for_call): Use it more consistently.
16951
16952 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
16953
16954         * haifa-sched.c (last_nondebug_scheduled_insn): New.
16955         (rank_for_schedule): Use it.
16956         (schedule_block): Set it.
16957
16958 2011-04-28  David Li  <davidxl@google.com>
16959
16960         * tree.c (crc32_string): Use crc32_byte.
16961         (crc32_byte): New function.
16962         * tree.h (crc32_byte): New function.
16963         * gcov.c (read_graph_file): Handle new cfg_cksum.
16964         (read_count_file): Ditto.
16965         * profile.c (instrument_values): Ditto.
16966         (get_exec_counts): Ditto.
16967         (read_profile_edge_counts): Ditto.
16968         (compute_branch_probabilities): Ditto.
16969         (compute_value_histograms): Ditto.
16970         (branch_prob): Ditto.
16971         (end_branch_prob): Ditto.
16972         * coverage.c (read_counts_file): Ditto.
16973         (get_coverage_counts): Ditto.
16974         (tree_coverage_counter_addr): Ditto.
16975         (coverage_checksum_string): Ditto.
16976         (coverage_begin_output): Ditto.
16977         (coverage_end_function): Ditto.
16978         (build_fn_info_type): Ditto.
16979         (build_fn_info_value): Ditto.
16980         * libgcov.c (gcov_exit): Ditto.
16981         * gcov-dump.c (tag_function): Ditto.
16982         (compute_checksum): Remove.
16983
16984 2011-04-29  Alan Modra  <amodra@gmail.com>
16985
16986         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16987         unspec plus offset.  Tidy macho code.
16988
16989 2011-04-29  Martin Jambor  <mjambor@suse.cz>
16990
16991         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16992         node instead of a decl.  Update all callers.
16993         * cgraph.h: Update declaration.
16994
16995 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
16996
16997         PR tree-optimization/48765
16998         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16999         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17000         to indicate if loop aware SLP is being used.  Scan the statements
17001         and update the vectorization factor according to the type of
17002         vectorization before statement analysis.
17003         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17004         pass it to vect_analyze_loop_operations.
17005         (vectorizable_reduction): Set number of copies to 1 in case of pure
17006         SLP statement.
17007         * tree-vect-stmts.c (vectorizable_conversion,
17008         vectorizable_assignment, vectorizable_shift,
17009         vectorizable_operation, vectorizable_type_demotion,
17010         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17011         Likewise.
17012         (vectorizable_condition): Move the check that it is not SLP
17013         vectorization before the number of copies check.
17014         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17015         to vectorize the loop using SLP.
17016
17017 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
17018
17019         PR middle-end/48597
17020         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17021         inline asm.
17022
17023 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
17024
17025         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17026         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17027         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17028         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17029         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17030         linux*.h headers.
17031         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17032         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17033         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17034         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17035         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17036         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17037         REG_NAME.
17038         * config/i386/linux.h (REG_NAME): Don't define.
17039         * config/i386/linux64.h (REG_NAME): Don't define.
17040         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17041         Undefine before defining.
17042
17043 2011-04-28  Jan Hubicka  <jh@suse.cz>
17044
17045         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17046         nonconstant_names array.
17047         (estimate_function_body_sizes): Build nonconstant_names array; handle
17048         BUILT_IN_CONSTANT_P.
17049
17050 2011-04-28  Richard Guenther  <rguenther@suse.de>
17051
17052         PR bootstrap/48804
17053         Revert
17054         2011-04-28  Richard Guenther  <rguenther@suse.de>
17055
17056         * tree-ssa-structalias.c (solve_constraints): Build succ graph
17057         as late as possible.
17058
17059 2011-04-28  Richard Guenther  <rguenther@suse.de>
17060
17061         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17062         (debug_constraint): Do it here.
17063         (dump_constraints): And here.
17064         (rewrite_constraints): And here.
17065         (dump_constraint_edge): Remove.
17066         (dump_constraint_graph): Rewrite to produce DOT output.
17067         (solve_constraints): Build succ graph as late as possible.
17068         Dump constraint graphs before and after solving.
17069
17070 2011-04-28  Richard Guenther  <rguenther@suse.de>
17071
17072         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17073         New function split out from ...
17074         (find_func_aliases): ... here.  Call it.
17075         (find_func_aliases_for_call): Likewise.
17076
17077 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17078
17079         * internal-fn.h (internal_fn_name_array): Declare.
17080         (internal_fn_flags_array): Likewise.
17081
17082 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17083
17084         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
17085         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17086         Move from sse.md.
17087         (ssemodefsuffix): Remove.
17088         (ssevecmodesuffix): New mode attribute.
17089         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17090         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17091         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17092         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17093         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17094         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17095         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17096         ssemodesuffix mode attribute.
17097         (float splitters): Use ssevecmodesuffix mode attribute.
17098         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17099         (sseinsmode): Rename from avxvecmode.
17100         (avxsizesuffix): Rename from avxmodesuffix.
17101         (sseintvecmode): Rename from avxpermvecmode.
17102         (ssedoublevecmode): Rename from ssedoublesizemode.
17103         (ssehalfvecmode): Rename from avxhalfvecmode.
17104         (ssescalarmode): Rename from avxscalarmode.
17105         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17106         templates for ssemodesuffix mode attribute.
17107         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17108         mode attribute.
17109
17110         Adjust RTX patterns globally for renamed mode attributes.
17111
17112 2011-04-27  Jan Hubcika  <jh@suse.cz>
17113
17114         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17115         * ipa-inline-analysis.c: Include alloc-pool.h.
17116         (edge_predicate_pool): New.
17117         (trye_predicate_p): New function
17118         (false_predicate_p): New function.
17119         (add_clause): Sanity check that false clauses are "optimized";
17120         never add clauses to predicate that is already known to be false.
17121         (and_predicate): Use flase_predicate_p.
17122         (evaulate_predicate): Rename to ...
17123         (evaluate_predicate): ... this one; update all callers; assert
17124         that false is not listed among possible truths.
17125         (dump_predicate): Use true_predicate_p.
17126         (account_size_time): Use false_predicate_p.
17127         (evaulate_conditions_for_edge): Rename to ...
17128         (evaluate_conditions_for_edge) ... this one.
17129         (edge_set_predicate): New function.
17130         (inline_edge_duplication_hook): Duplicate edge predicates.
17131         (inline_edge_removal_hook): Free edge predicates.
17132         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17133         (dump_inline_summary): Update.
17134         (estimate_function_body_sizes): Set edge predicates.
17135         (estimate_calls_size_and_time): Handle predicates.
17136         (estimate_callee_size_and_time): Update.
17137         (remap_predicate): Add toplev_predicate; update comment.
17138         (remap_edge_predicates): New function.
17139         (inline_merge_summary): Compute toplev predicate; update.
17140         (read_predicate): New function.
17141         (read_inline_edge_summary): Use it.
17142         (inline_read_section): Likewise.
17143         (write_predicate): New function.
17144         (write_inline_edge_summary): Use it.
17145         (inline_write_summary): Likewise.
17146         (inline_free_summary): Free alloc pool and edge summary vec.
17147
17148 2011-04-27  Richard Guenther  <rguenther@suse.de>
17149
17150         * tree-ssa-structalias.c (changed_count): Remove.
17151         (changed): Use a bitmap.
17152         (unify_nodes): Adjust.
17153         (do_sd_constraint): Likewise.
17154         (do_ds_constraint): Likewise.
17155         (do_complex_constraint): Likewise.
17156         (solve_graph): Likewise.
17157
17158 2011-04-27  Jan Hubicka  <jh@suse.cz>
17159
17160         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17161
17162 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17163
17164         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17165         (avx_vperm2f128_*_operand): Ditto.
17166         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17167         Use avx_vpermilp_parallel in insn condition.
17168         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17169         Use avx_vperm2f128_parallel in insn condition.
17170
17171 2011-04-27  Richard Guenther  <rguenther@suse.de>
17172
17173         * Makefile.in (tree-ssa-structalias.o): Remove
17174         gt-tree-ssa-structalias.h dependency.
17175         (GTFILES): Remove tree-ssa-structalias.c.
17176         * tree.c (allocate_decl_uid): New function.
17177         (make_node_stat): Use it.
17178         (copy_node_stat): Likewise.
17179         * tree.h (allocate_decl_uid): Declare.
17180         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17181         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17182         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17183         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17184         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17185         (struct heapvar_map): Likewise.
17186         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17187         heapvar_insert): Likewise.
17188         (make_heapvar_for): Rename to ...
17189         (make_heapvar): ... this.  Simplify.
17190         (fake_var_decl_obstack): New global var.
17191         (build_fake_var_decl): New function.
17192         (make_constraint_from_heapvar): Adjust.
17193         (handle_lhs_call): Likewise.
17194         (create_function_info_for): Likewise.
17195         (intra_create_variable_infos): Likewise.
17196         (init_alias_vars): Allocate fake_var_decl_obstack.
17197         (init_alias_heapvars, delete_alias_heapvars): Remove.
17198         (compute_points_to_sets): Do not call init_alias_heapvars.
17199         (ipa_pta_execute): Likewise.
17200         (delete_points_to_sets): Free fake_var_decl_obstack.
17201
17202 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17203
17204         * config/spu/divmovti4.c (union qword_UTItype): New data type.
17205         (si_from_UTItype, si_to_UTItype): New functions.
17206         (__udivmodti4): Use them to implement type-punning.
17207         * config/spu/multi3.c (union qword_TItype): New data type.
17208         (si_from_TItype, si_to_TItype): New functions.
17209         (__multi3): Use them to implement type-punning.
17210
17211 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17212
17213         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17214
17215 2011-04-27  Jan Hubicka  <jh@suse.cz>
17216
17217         * ipa-prop.c (function_insertion_hook_holder): New holder.
17218         (ipa_add_new_function): New function.
17219         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17220         Register/deregister holder.
17221
17222 2011-04-27  Richard Guenther  <rguenther@suse.de>
17223
17224         PR tree-optimization/48772
17225         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17226
17227 2011-04-27  Richard Guenther  <rguenther@suse.de>
17228
17229         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17230         TARGET_MEM_REF handling.
17231
17232 2011-04-27  Nick Clifton  <nickc@redhat.com>
17233
17234         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17235         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17236         (REG_CLASS_NAMES): Likewise.
17237         (REG_CLASS_CONTENTS): Likewise.
17238         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17239         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17240         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
17241         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
17242         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
17243         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17244         duplicate register classes.
17245         (frv_class_likely_spilled_p): Likewise.
17246         (frv_register_move_cost): Likewise.
17247
17248         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17249         end of the regno_reg_class array.
17250
17251 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
17252
17253         PR c/48742
17254         * c-typeck.c (build_binary_op): Don't wrap arguments if
17255         int_operands is true.
17256
17257 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
17258
17259         PR target/48767
17260         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17261         targetm.calls.must_pass_in_stack for void type.
17262
17263 2011-04-26  Jan Hubicka  <jh@suse.cz>
17264
17265         * cgraphbuild.c (build_cgraph_edges): Update call
17266         of cgraph_create_edge and cgraph_create_indirect_edge.
17267         * cgraph.c (cgraph_create_edge_including_clones,
17268         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17269         cgraph_update_edges_for_call_stmt_node): Do not take nest
17270         argument; do not initialize call_stmt_size/time.
17271         (dump_cgraph_node): Do not dump nest.
17272         (cgraph_clone_edge): Do not take loop_nest argument;
17273         do not propagate it; do not clone call_stmt_size/time.
17274         (cgraph_clone_node): Likewise.
17275         (cgraph_create_virtual_clone): Update.
17276         * cgraph.h (struct cgraph_edge): Remove
17277         call_stmt_size/call_stmt_time/loop_nest.
17278         (cgraph_create_edge, cgraph_create_indirect_edge,
17279         cgraph_create_edge_including_clones, cgraph_clone_node): Update
17280         prototype.
17281         * tree-emutls.c (gen_emutls_addr): Update.
17282         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17283         loop_nest; handle indirect calls, too.
17284         (clone_inlined_nodes): Do not care about updating inline summaries.
17285         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17286         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17287         stream call_stmt_size/call_stmt_time/loop_nest.
17288         * ipa-inline.c (edge_badness): Update.
17289         (ipa_inline): dump summaries after inlining.
17290         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17291         New.
17292         (inline_edge_summary): New function.
17293         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17294         (inline_edge_removal_hook): Handle edge summaries.
17295         (inline_edge_duplication_hook): New hook.
17296         (inline_summary_alloc): Alloc hooks.
17297         (initialize_growth_caches): Do not register removal hooks.
17298         (free_growth_caches); Do not free removal hook.
17299         (dump_inline_edge_summary): New function.
17300         (dump_inline_summary): Use it.
17301         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17302         (inline_update_callee_summaries): New function.
17303         (inline_merge_summary): Use it.
17304         (do_estimate_edge_time, do_estimate_edge_growth): Update.
17305         (read_inline_edge_summary): New function.
17306         (inline_read_section): Use it.
17307         (write_inline_edge_summary): New function.
17308         (inline_write_summary): Use it.
17309         (inline_free_summary): Free edge new holders.
17310         * tree-inline.c (copy_bb): Update.
17311
17312 2011-04-26  Jason Merrill  <jason@redhat.com>
17313
17314         * tree-eh.c (lower_try_finally_switch): Create the label along with
17315         the CASE_LABEL_EXPR.
17316
17317 2011-04-26  David S. Miller  <davem@davemloft.net>
17318             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17319
17320         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17321         * configure: Regenerate.
17322
17323 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17324
17325         PR target/48258
17326         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17327         reduction.
17328         (VEC_reduc): New code iterator and splitters for vector reduction.
17329         (VEC_reduc_name): Ditto.
17330         (VEC_reduc_rtx): Ditto.
17331         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17332         (reduc_<VEC_reduc_name>_v4sf): Ditto.
17333
17334         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17335         support for extracting SF on VSX.
17336
17337         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17338         generating xscvspdp.
17339         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
17340         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
17341         double add, minimum, maximum vector reduction.
17342         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
17343         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
17344         optimize double vector reduction.
17345         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
17346
17347 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
17348
17349         * config/fr30/fr30.h (inhibit_libc): Don't define.
17350         * config/m32r/m32r-protos.h: Correct comment.
17351         * config/v850/v850.h (GHS_default_section_names,
17352         GHS_current_section_names): Use tree, not union tree_node *.
17353
17354 2011-04-26  Xinliang David Li  <davidxl@google.com>
17355
17356         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
17357         * c-family/c-opts.c (c_common_handle_option): Set
17358         warn_maybe_uninitialized.
17359         * opts.c (common_handle_option): Ditto.
17360         * common.opt:  New option.
17361         * tree-ssa.c (warn_uninit): Add one more parameter.
17362         (warn_uninitialized_var): Pass warning code.
17363         * tree-flow.h: Interface change.
17364
17365 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17366
17367         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
17368         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
17369         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
17370
17371 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17372
17373         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
17374         * config/mips/mips.opt (mmips-tfile): Remove.
17375
17376         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
17377         mips-tdump reference to ...
17378         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
17379         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
17380         reference by Tru64 UNIX.
17381
17382 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
17383
17384         PR debug/48768
17385         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
17386         is error_mark_node, set value to NULL.
17387
17388         PR tree-optimization/48734
17389         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
17390         if return value from maybe_fold_*_comparsions isn't something
17391         the code is prepared to handle.
17392
17393 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
17394
17395         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
17396         mode check.
17397         (ext_QIreg_nomode_operands): Remove.
17398         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
17399         (*andsi_1): Ditto.
17400         (*andhi_1): Ditto.
17401
17402 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
17403
17404         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
17405
17406 2011-04-26  Richard Guenther  <rguenther@suse.de>
17407
17408         * c-typeck.c (build_unary_op): Do not expand array-refs via
17409         pointer arithmetic.  Only adjust qualifiers for function types.
17410
17411 2011-04-26  Richard Guenther  <rguenther@suse.de>
17412
17413         PR middle-end/48694
17414         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
17415         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
17416         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
17417         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
17418
17419 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
17420
17421         * doc/extend.texi: Document __underlying_type.
17422
17423 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
17424
17425         * config/rs6000/titan.md (automata_option "progress"): Remove.
17426
17427 2011-04-25  Jeff Law  <law@redhat.com>
17428
17429         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
17430
17431 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
17432
17433         * system.h (ENUM_BITFIELD): Remove.
17434
17435 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
17436             Eric Botcazou  <ebotcazou@adacore.com>
17437
17438         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
17439         for STORE_FLAG_VALUE==-1 case.
17440
17441 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
17442
17443         PR target/43804
17444         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
17445         LEGITIMATE_PIC_OPERAND_P.
17446
17447 2011-04-24  Jan Hubicka  <jh@suse.cz>
17448
17449         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
17450         WPA hack.
17451         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
17452         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
17453         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
17454         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
17455         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
17456         Sanity check predicate length.
17457         (remap_predicate): Likewise; sanity check jump functions.
17458         (inline_read_section, inline_write_summary): Sanity check
17459         predicate length.
17460
17461 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
17462
17463         PR other/48748
17464         * doc/extend.texi (Type Traits): Document __is_standard_layout,
17465         __is_literal_type, and __is_trivial; update throughout about
17466         possibly cv-qualified void types.
17467
17468 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17469
17470         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
17471         testsuite and make it version agnostic.
17472
17473 2011-04-22  Jan Hubicka  <jh@suse.cz>
17474
17475         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
17476
17477 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
17478
17479         PR c/48685
17480         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
17481         to VOID_TYPE even around MODIFY_EXPR.
17482
17483 2011-04-22  Mike Stump  <mikestump@comcast.net>
17484
17485         * gensupport.c (read_md_rtx): Fix typo in comment.
17486         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
17487         comment.
17488
17489 2011-04-22  Jan Hubicka  <jh@suse.cz>
17490
17491         * gengtype.c (open_base_files): Add ipa-inline.h include.
17492         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
17493         ipa-prop.c; update all uses.
17494         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
17495         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
17496         merge summary of inlined function into former caller.
17497         * ipa-inline.c (max_benefit): Remove.
17498         (edge_badness): Compensate for removal of benefits.
17499         (update_caller_keys): Use
17500         reset_node_growth_cache/reset_edge_growth_cache.
17501         (update_callee_keys): Likewise.
17502         (update_all_callee_keys): Likewise.
17503         (inline_small_functions): Do not collect max_benefit; do not reset
17504         estimated_growth; call free_growth_caches and initialize_growth_caches.
17505         * ipa-inline.h (struct condition, type clause_t, struct predicate,
17506         struct size_time_entry): New structures.
17507         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
17508         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
17509         and estimated_growth.
17510         (edge_growth_cache_entry): New structure.
17511         (node_growth_cache, edge_growth_cache): New global vars.
17512         (estimate_growth): Turn into inline.
17513         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
17514         initialize_growth_caches, free_growth_caches): Declare.
17515         (estimate_edge_growth): Rewrite.
17516         (estimate_edge_time): Implement as inline cache lookup.
17517         (reset_node_growth_cache, reset_edge_growth_cache): New inline
17518         functions.
17519         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
17520         (NUM_CONDITIONS): New constant.
17521         (predicate_conditions): New enum.
17522         (IS_NOT_CONSTANT): New constant.
17523         (edge_removal_hook_holder): New var.
17524         (node_growth_cache, edge_growth_cache): New global vars.
17525         (true_predicate, single_cond_predicate, false_predicate,
17526         not_inlined_predicate, add_condition, add_clause, and_predicates,
17527         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
17528         dump_clause, dump_predicate, account_size_time,
17529         evaulate_conditions_for_edge): New functions.
17530         (inline_summary_alloc): Move to heap.
17531         (inline_node_removal_hook): Clear condition and entry vectors.
17532         (inline_edge_removal_hook): New function.
17533         (initialize_growth_caches, free_growth_caches): New function.
17534         (dump_inline_summary): Update.
17535         (edge_execution_predicate): New function.
17536         (will_be_nonconstant_predicate): New function.
17537         (estimate_function_body_sizes): Compute BB and constantness predicates.
17538         (compute_inline_parameters): Do not clear estimated_growth.
17539         (estimate_edge_size_and_time): New function.
17540         (estimate_calls_size_and_time): New function.
17541         (estimate_callee_size_and_time): New function.
17542         (remap_predicate): New function.
17543         (inline_merge_summary): New function.
17544         (do_estimate_edge_time): New function based on...
17545         (estimate_edge_time): ... this one.
17546         (do_estimate_edge_growth): New function.
17547         (do_estimate_growth): New function based on....
17548         (estimate_growth): ... this one.
17549         (inline_analyze_function): Analyze after deciding on jump functions.
17550         (inline_read_section): New function.
17551         (inline_read_summary): Use it.
17552         (inline_write_summary): Write all the new data.
17553         * ipa-prop.c (ipa_get_param_decl_index): Export.
17554         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
17555         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
17556         Declare.
17557         (ipa_get_lattice): Move here from ipa-cp.c
17558         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
17559         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
17560         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
17561         cgraph_edge_inlinable_p): Remove.
17562         * cgraphunit.c: Include ipainline.h
17563         (cgraph_process_new_functions): Update call of
17564         compute_inline_parameters.
17565
17566 2011-04-22  Richard Guenther  <rguenther@suse.de>
17567
17568         * tree.c (build_int_cst): Properly create canonicalized integer
17569         constants.
17570         (build_int_cst_type): Remove scary comments.
17571
17572 2011-04-22  Xinliang David Li  <davidxl@google.com>
17573
17574         * toplev.c (process_options): Enable -Werror=coverage-mismatch
17575         by default when -Wno-error is not specified.
17576         * opts-global.c (decode_options): Remove call to
17577         control_warning_options.
17578
17579 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
17580
17581         PR tree-optimization/48717
17582         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
17583         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
17584
17585 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
17586
17587         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
17588         definition where used.
17589
17590 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
17591
17592         PR c/48716
17593         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
17594         TREE_STATIC variables declared inside of some OpenMP construct.
17595
17596 2011-04-22  Martin Jambor  <mjambor@suse.cz>
17597
17598         PR middle-end/48585
17599         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
17600
17601 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
17602
17603         PR c/36750
17604         * c-typeck.c (pop_init_level): Do not warn about initializing
17605         with ` = {0}'.
17606
17607 2011-04-22  Alan Modra  <amodra@gmail.com>
17608
17609         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
17610         when returning call_cookie.
17611         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
17612         pointers, to functions with no more vector args than the current
17613         function, and some non-local calls for ABI_V4.
17614         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
17615         sibcall_nonlocal_aix64): Combine to ..
17616         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
17617         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
17618         (sibcall_value_nonlocal_aix<mode>): ..likewise.
17619         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
17620         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
17621         operand.
17622         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17623         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
17624         sibcall_value_symbolic_64): Delete.
17625
17626 2011-04-21  Xinliang David Li  <davidxl@google.com>
17627
17628         * cgraph.h: Remove pid.
17629         * cgraph.c: Remove pid.
17630         * value-prof.c (init_node_map): New function.
17631         (del_node_map): New function.
17632         (find_func_by_funcdef_no): New function.
17633         (gimple_ic_transform): Call new function.
17634         * cgraphunit.c (cgraph_finalize_function): Remove pid.
17635         * function.c (get_last_funcdef_no): New function.
17636         * function.h (get_last_funcdef_no): New function.
17637         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
17638         to libgcov function.
17639         (tree-profiling): Call node map init and delete function.
17640
17641 2011-04-21  Ian Lance Taylor  <iant@google.com>
17642
17643         * godump.c (go_format_type): Use exported Go name for anonymous
17644         field name.
17645
17646 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17647
17648         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
17649         Call builtin_function_type_list instead of builtin_function_type.
17650         (UNARY, BINARY, TRINARY, QUAD): Likewise.
17651
17652 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17653
17654         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
17655         build_function_type_list instead of build_function_type.
17656         Delete variable `endlink'.
17657
17658 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17659
17660         * config/s390/s390.c (s390_init_builtins): Call
17661         build_function_type_list instead of build_function_type.
17662
17663 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17664
17665         * config/ia64/ia64.c (ia64_init_builtins): Call
17666         build_function_type_list instead of builtin_function_type.
17667
17668 2011-04-21  Easwaran Raman  <eraman@google.com>
17669
17670         * cfgexpand.c (stack_var): Remove OFFSET...
17671         (add_stack_var): ...and its reference here...
17672         (expand_stack_vars): ...and here.
17673         (stack_var_cmp): Sort by descending order of size.
17674         (partition_stack_vars): Change heuristic.
17675         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17676         (dump_stack_var_partition): Add newline after each partition.
17677
17678 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
17679             Jeff Law  <law@redhat.com>
17680
17681         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17682         * gengtype.c (matching_file_name_substitute): Likewise.
17683
17684 2011-04-21  Richard Guenther  <rguenther@suse.de>
17685
17686         PR lto/48703
17687         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17688
17689 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
17690
17691         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17692
17693 2011-04-21  Richard Guenther  <rguenther@suse.de>
17694
17695         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17696         file name.
17697
17698 2011-04-21  Richard Guenther  <rguenther@suse.de>
17699
17700         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17701         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17702         Use DECL_P, not SSA_VAR_P.
17703         (ptr_derefs_may_alias_p): Likewise.
17704         (ptr_deref_may_alias_ref_p_1): Likewise.
17705         (decl_refs_may_alias_p): Likewise.
17706         (refs_may_alias_p_1): Likewise.
17707         (ref_maybe_used_by_call_p_1): Likewise.
17708         (call_may_clobber_ref_p_1): Likewise.
17709         (indirect_ref_may_alias_decl_p): Assume indirect refrences
17710         are either MEM_REF or TARGET_MEM_REF.
17711         (indirect_refs_may_alias_p): Likewise.
17712         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17713         for MEM_EXPR of indirect calls.
17714
17715 2011-04-21  Tristan Gingold  <gingold@adacore.com>
17716
17717         * vmsdbgout.c (write_srccorr): Compute file length from the string.
17718         (dst_file_info_struct): Remove flen field.
17719         (lookup_filename): Remove code that set flen field.
17720
17721 2011-04-21  Tristan Gingold  <gingold@adacore.com>
17722
17723         * config/ia64/ia64.c (ia64_start_function): Add a guard.
17724
17725 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
17726
17727         PR target/48708
17728         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17729         vec_extract and vec_concat for non-SSE4_1 targets.
17730
17731 2011-04-21  Richard Guenther  <rguenther@suse.de>
17732
17733         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17734         return statements.
17735
17736 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
17737
17738         * config/i386/cygming.h (union tree_node, TREE): Don't define or
17739         undefine.
17740         (FILE): Don't undefine.
17741
17742 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
17743
17744         * config/alpha/alpha.c (struct machine_function): Use rtx, not
17745         struct rtx_def *.
17746         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17747         struct rtx_def *.
17748         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17749         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17750         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17751         rtx_def *.
17752         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
17753         definitions where used.
17754         * config/microblaze/microblaze.h (struct microblaze_args): Use
17755         rtx, not struct rtx_def *.
17756         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17757         rtx_def *.
17758         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17759         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17760         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17761         not struct rtx_def *.
17762         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17763         struct rtx_def *.
17764         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17765         rtx_def *.
17766         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17767
17768 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17769
17770         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17771         operand_equal_p to compare DR_BASE_ADDRESSes.
17772         (vect_check_interleaving): Likewise.
17773
17774 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17775
17776         PR target/46329
17777         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17778         for all Neon struct constants.
17779
17780 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17781
17782         * target.def (legitimate_constant_p): New hook.
17783         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17784         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17785         * doc/tm.texi: Regenerate.
17786         * hooks.h (hook_bool_mode_rtx_true): Declare.
17787         * hooks.c (hook_bool_mode_rtx_true): Define.
17788         * system.h (LEGITIMATE_CONSTANT_P): Poison.
17789         * calls.c (precompute_register_parameters): Replace uses of
17790         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17791         (emit_library_call_value_1): Likewise.
17792         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17793         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17794         * ira-costs.c (scan_one_insn): Likewise.
17795         * recog.c (general_operand, immediate_operand): Likewise.
17796         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17797         * reload1.c (init_eliminable_invariants): Likewise.
17798
17799         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17800         mode argument.
17801         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17802         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17803         argument.
17804         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17805         * config/alpha/predicates.md (input_operand): Update call to
17806         alpha_legitimate_constant_p.
17807
17808         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17809         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17810         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17811         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17812         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17813         (arm_legitimate_constant_p): New functions.
17814         (arm_cannot_force_const_mem): Make static.
17815
17816         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17817
17818         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17819         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17820         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17821         instead of bfin_legitimate_constant_p.
17822         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
17823         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17824
17825         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17826
17827         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17828
17829         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17830         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17831         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17832         (frv_legitimate_constant_p): Make static.  Add a mode argument.
17833
17834         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17835         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17836         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17837
17838         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17839         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17840         * config/i386/i386.c (legitimate_constant_p): Rename to...
17841         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
17842         argument.
17843         (ix86_cannot_force_const_mem): Update accordingly.
17844         (ix86_legitimate_address_p): Likewise.
17845         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17846         * config/i386/i386.md: Update commentary.
17847
17848         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17849         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17850         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17851         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
17852
17853         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17854
17855         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17856         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17857         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17858         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
17859
17860         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17861         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17862         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17863
17864         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17865         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17866         (m32r_legitimate_constant_p): New function.
17867
17868         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17869         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17870         LEGITIMATE_CONSTANT_P.
17871         (LEGITIMATE_CONSTANT_P): Delete.
17872         * config/m68k/m68k.c (m68k_expand_prologue): Call
17873         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17874         (m68k_legitimate_constant_p): New function.
17875         * config/m68k/m68k.md: Update comments.
17876
17877         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17878         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17879         (mcore_legitimate_constant_p): New function.
17880
17881         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17882         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17883         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17884         Add a mode argument.
17885         (mep_legitimate_address): Update accordingly.
17886         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17887
17888         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17889         Delete.
17890         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17891         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17892         static.  Check OP's mode for VOIDmode.
17893         (microblaze_legitimate_constant_p): New function.
17894         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17895
17896         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17897         * config/mips/mips.c (mips_legitimate_constant_p): New function.
17898         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17899         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17900         * config/mips/predicates.md: Update comments.
17901
17902         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17903         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17904         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17905         (mmix_legitimate_constant_p): Make static, return a bool, and take
17906         a mode argument.
17907         (mmix_print_operand_address): Update accordingly.
17908
17909         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17910         Delete.
17911         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17912         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17913         static.  Add a mode argument.
17914         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17915
17916         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17917
17918         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17919         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17920         (pa_legitimate_constant_p): New function.
17921
17922         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17923
17924         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17925         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17926         (pdp11_legitimate_constant_p): New function.
17927
17928         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17929         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17930         (rs6000_legitimate_constant_p): New function.
17931
17932         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17933         (rx_legitimate_constant_p): ...this.
17934         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17935         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17936         (rx_legitimate_constant_p): ...this.
17937         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17938         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17939
17940         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17941         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17942         * config/s390/s390.c (legitimate_constant_p): Rename to...
17943         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
17944         and add a mode argument.
17945         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17946
17947         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17948
17949         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17950         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17951         (sh_legitimate_constant_p): New function.
17952
17953         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17954         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17955         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17956         (legitimate_constant_p): Rename to...
17957         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
17958         argument.
17959         (constant_address_p): Update accordingly.
17960
17961         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17962         argument and return a bool.
17963         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17964         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17965         (spu_legitimate_constant_p): Add a mode argument and return a bool.
17966         (spu_rtx_costs): Update accordingly.
17967         * config/spu/predicates.md (vec_imm_operand): Likewise.
17968
17969         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17970
17971         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17972         * config/v850/v850.c (v850_legitimate_constant_p): New function.
17973         (TARGET_LEGITIMATE_CONSTANT_P): Define.
17974
17975         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17976         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17977         * config/vax/vax.c (legitimate_constant_p): Likewise.
17978
17979         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17980         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17981         (xtensa_legitimate_constant_p): New function.
17982
17983 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
17984
17985         * target.def (cannot_force_const_mem): Add a mode argument.
17986         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17987         * doc/tm.texi: Regenerate.
17988         * hooks.h (hook_bool_mode_rtx_false): Declare.
17989         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17990         (hook_bool_mode_const_rtx_true): Likewise.
17991         (hook_bool_mode_rtx_false): New function.
17992         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17993         to be non-VOID.  Update call to cannot_force_const_mem.
17994         (find_reloads): Update accordingly.
17995         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17996         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17997         argument.
17998         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17999         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18000         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18001         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18002         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18003         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18004         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18005         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18006         (m68k_cannot_force_const_mem): ...this new function.
18007         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18008         argument.
18009         (mips_const_insns, mips_legitimize_const_move): Update calls.
18010         (mips_secondary_reload_class): Likewise.
18011         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18012         (pa_cannot_force_const_mem): ...this new function.
18013         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18014         (rs6000_cannot_force_const_mem): ...this new function.
18015         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18016         argument.
18017         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18018         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18019         to...
18020         (xtensa_cannot_force_const_mem): ...this new function.
18021
18022 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18023
18024         * config/mips/mips.c (mips16_build_function_stub): Call
18025         build_function_type_list instead of build_function_type.
18026         (mips16_build_call_stub): Likewise.
18027
18028 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18029
18030         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18031         instead of build_function_type.
18032
18033 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18034
18035         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18036         instead of build_function_type.
18037
18038 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
18039
18040         PR target/48678
18041         * config/i386/i386.md (insv): Change operand 0 constraint to
18042         "register_operand".  Change operand 1 and 2 constraint to
18043         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
18044         * config/i386/sse.md (sse4_1_pinsrb): Export.
18045         (sse2_pinsrw): Ditto.
18046         (sse4_1_pinsrd): Ditto.
18047         (sse4_1_pinsrq): Ditto.
18048         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18049         * config/i386/i386.c (ix86_expand_pinsr): New.
18050
18051 2011-04-20  Easwaran Raman  <eraman@google.com>
18052
18053         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18054         containing union type only with -fstrict-aliasing.
18055
18056 2011-04-20  Jim Meyering  <meyering@redhat.com>
18057
18058         Remove useless if-before-free tests.
18059         * calls.c (expand_call, save_area): Likewise.
18060         * cfgcleanup.c (try_forward_edges): Likewise.
18061         * collect2.c (collect_execute): Likewise.
18062         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18063         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18064         * coverage.c (coverage_checksum_string): Likewise.
18065         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18066         * cselib.c (cselib_init): Likewise.
18067         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18068         (df_set_clean_cfg): Likewise.
18069         * function.c (free_after_compilation): Likewise.
18070         * gcc.c (do_spec_1, main): Likewise.
18071         * gcov.c (create_file_names): Likewise.
18072         * gensupport.c (identify_predicable_attribute): Likewise.
18073         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18074         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18075         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18076         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18077         * ipa-pure-const.c (local_pure_const): Likewise.
18078         * ipa-reference.c (propagate): Likewise.
18079         * ira-costs.c (free_ira_costs): Likewise.
18080         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18081         * matrix-reorg.c (mat_free): Likewise.
18082         * prefix.c (get_key_value): Likewise.
18083         * profile.c (compute_value_histograms): Likewise.
18084         * reload1.c (free_reg_equiv): Likewise.
18085         * sched-deps.c (free_deps): Likewise.
18086         * sel-sched-ir.c (fence_clear): Likewise.
18087         * sese.c (set_rename, if_region_set_false_region): Likewise.
18088         * tree-data-ref.c (free_rdg): Likewise.
18089         * tree-eh.c (lower_try_finally): Likewise.
18090         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18091         * tree-ssa-live.c (delete_var_map): Likewise.
18092         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18093         * tree-ssa-pre.c (phi_trans_add): Likewise.
18094
18095 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
18096
18097         PR tree-optimization/48611
18098         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18099         beyond ERT_MUST_NOT_THROW region.
18100
18101 2011-04-20  Catherine Moore  <clm@codesourcery.com>
18102
18103         * config/mips/mips.opt (mfix-24k): New.
18104         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18105         * config/mips/mips.md (length): Increase by 4 for stores if
18106         fixing 24K errata.
18107         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18108         all noreorder if fixing 24K errata.
18109         * doc/invoke.texi: Document mfix-24k.
18110
18111 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
18112
18113         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18114         quad-word modes, reduce to 9-bit index range when above 1016 limit.
18115
18116 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18117
18118         * config/arm/arm.c (arm_gen_constant): Move movw support ....
18119         (const_ok_for_op): ... to here.
18120
18121 2011-04-20  Kai Tietz  <ktietz@redhat.com>
18122
18123         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18124         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18125
18126 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18127
18128         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18129
18130 2011-04-20  Richard Guenther  <rguenther@suse.de>
18131
18132         PR tree-optimization/47892
18133         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18134         are if-convertible.
18135
18136 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18137
18138         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18139
18140 2011-04-20  Tristan Gingold  <gingold@adacore.com>
18141
18142         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18143
18144 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
18145
18146         PR target/18145
18147
18148         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18149         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18150         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18151         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18152         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18153
18154         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18155         New prototype.
18156
18157         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18158         (avr_asm_named_section, avr_asm_output_aligned_common,
18159         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18160         New functions to update...
18161         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18162         (avr_asm_init_sections): Overwrite section callbacks for
18163         data_section, bss_section.
18164         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18165         from here to...
18166         (avr_file_end): ...here.
18167
18168 2011-04-20  Richard Guenther  <rguenther@suse.de>
18169
18170         PR middle-end/48695
18171         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18172         objects and types here.  Adjust for their offset before comparing.
18173
18174 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18175
18176         * tree-vect-stmts.c (vectorizable_store): Only chain one related
18177         statement per copy.
18178
18179 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18180
18181         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18182         (GIMPLE_H): Include $(INTERNAL_FN_H).
18183         (OBJS-common): Add internal-fn.o.
18184         (internal-fn.o): New rule.
18185         * internal-fn.def: New file.
18186         * internal-fn.h: Likewise.
18187         * internal-fn.c: Likewise.
18188         * gimple.h: Include internal-fn.h.
18189         (GF_CALL_INTERNAL): New gf_mask.
18190         (gimple_statement_call): Put fntype into a union with a new
18191         internal_fn field.
18192         (gimple_build_call_internal): Declare.
18193         (gimple_build_call_internal_vec): Likewise.
18194         (gimple_call_same_target_p): Likewise.
18195         (gimple_call_internal_p): New function.
18196         (gimple_call_internal_fn): Likewise.
18197         (gimple_call_fntype): Return null for internal calls.
18198         (gimple_call_set_fntype): Assert that the function is not internal.
18199         (gimple_call_set_fn): Likewise.
18200         (gimple_call_set_fndecl): Likewise.
18201         (gimple_call_set_internal_fn): New function.
18202         (gimple_call_addr_fndecl): Handle null functions.
18203         (gimple_call_return_type): Likewise null types.
18204         * gimple.c (gimple_build_call_internal_1): New function.
18205         (gimple_build_call_internal): Likewise.
18206         (gimple_build_call_internal_vec): Likewise.
18207         (gimple_call_same_target_p): Likewise.
18208         (gimple_call_flags): Handle calls to internal functions.
18209         (gimple_call_fnspec): New function.
18210         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18211         (gimple_has_side_effects): Handle null functions.
18212         (gimple_rhs_has_side_effects): Likewise.
18213         (gimple_call_copy_skip_args): Handle calls to internal functions.
18214         * cfgexpand.c (expand_call_stmt): Likewise.
18215         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18216         * gimple-fold.c (gimple_fold_call): Handle null functions.
18217         (gimple_fold_stmt_to_constant_1): Don't fold
18218         calls to internal functions.
18219         * gimple-low.c (gimple_check_call_args): Handle calls to internal
18220         functions.
18221         * gimple-pretty-print.c (dump_gimple_call): Likewise.
18222         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18223         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18224         (do_warn_unused_result): Likewise.
18225         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18226         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18227         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18228         the target of a call.
18229         (initialize_hash_element): Update accordingly.
18230         (hashable_expr_equal_p): Use gimple_call_same_target_p.
18231         (iterative_hash_hashable_expr): Handle calls to internal functions.
18232         (print_expr_hash_elt): Likewise.
18233         * tree-ssa-pre.c (can_value_number_call): Likewise.
18234         (eliminate): Handle null functions.
18235         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18236         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18237         (find_func_aliases): Likewise.
18238         * value-prof.c (gimple_ic_transform): Likewise.
18239         (gimple_indirect_call_to_profile): Likewise.
18240         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18241         * lto-streamer-out.c (output_gimple_stmt): Likewise.
18242
18243 2011-04-19  Jan Hubicka  <jh@suse.cz>
18244
18245         * ipa-inline-transform.c (save_inline_function_body): Add comments.
18246         * ipa-inline.c (inline_small_functions): Compute summaries first,
18247         populate heap later.
18248
18249 2011-04-19  Jan Hubicka  <jh@suse.cz>
18250
18251         * cgraph.h (save_inline_function_body): Remove.
18252         * ipa-inline-transform.c: New file, broke out of...
18253         * ipa-inline.c: ... this one; Update toplevel comment.
18254         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18255         make global.
18256         (update_noncloned_frequencies): Move to ipa-inline-transform.c
18257         (cgraph_mark_inline_edge): Rename to inline_call; move to
18258         ipa-inline-transform.c.
18259         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18260         move to ipa-inline-transform.c
18261         (recursive_inlining, inline_small_functions, flatten_function,
18262         ipa_inline, inline_always_inline_functions,
18263         early_inline_small_functions): Update.
18264         (inline_transform): Move to ipa-inline-transform.c.
18265         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18266         Declare.
18267         * Makefile.in (ipa-inline-transform.o): New file.
18268         * cgraphunit.c (save_inline_function_body): Move to
18269         ipa-inline-transform.c
18270
18271 2011-04-19  DJ Delorie  <dj@redhat.com>
18272
18273         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18274         registers if we already know there aren't any.
18275         (m32c_emit_epilogue): Don't emit a barrier here.
18276         (m32c_emit_eh_epilogue): Likewise.
18277         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18278         operands at expand time.
18279         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18280         int" wchar type.
18281         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18282         duplicates.  Provide aliases instead.
18283         * config/m32c/prologue.md (eh_return): Emit a barrier here.
18284         (eh_epilogue): Add a "(return)" here as a hint to other parts of
18285         the compiler.
18286
18287 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
18288
18289         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18290         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18291         (general_or_i64_p, sparc_register_move_cost): New function.
18292
18293 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18294
18295         * doc/install.texi (Configuration, --enable-threads): Remove mach.
18296         Add lynx, mipssde.  Sort table.
18297
18298 2011-04-19  Xinliang David Li  <davidxl@google.com>
18299
18300         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18301         not negative.
18302
18303 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
18304
18305         PR target/48678
18306         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18307         is a SUBREG with non-MODE_INT mode inside of it.
18308
18309 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18310
18311         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18312         also according to actual contants.
18313         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18314         (gimple_fold_call): Use it.
18315         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18316
18317 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18318
18319         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18320         non-pointer assignments.
18321
18322 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18323
18324         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18325         account anc_offset and otr_type from the indirect edge info.
18326         * ipa-prop.c (get_ancestor_addr_info): New function.
18327         (compute_complex_ancestor_jump_func): Assignment analysis moved to
18328         get_ancestor_addr_info, call it.
18329         (ipa_note_param_call): Do not initialize information about polymorphic
18330         calls, return the indirect call graph edge.  Remove the last
18331         parameter, adjust all callers.
18332         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18333         parameters.  Initialize polymorphic information in the indirect edge.
18334
18335 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18336
18337         PR lto/48148
18338         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18339         the types if they have different enumeration identifiers.
18340
18341 2011-04-19  Jan Hubicka  <jh@suse.cz>
18342
18343         * cgraph.h (cgraph_optimize_for_size_p): Declare.
18344         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
18345         * predict.c (cgraph_optimize_for_size_p): Break out from ...
18346         (optimize_function_for_size_p) ... here.
18347
18348 2011-04-19  Richard Guenther  <rguenther@suse.de>
18349
18350         PR lto/48207
18351         * tree.c (free_lang_data): Do not reset the decl-assembler-name
18352         langhook.
18353
18354 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18355
18356         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
18357         if DECL_NO_INLINE_WARNING_P is set on the function.
18358
18359 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
18360
18361         PR fortran/47976
18362         * reload1.c (inc_for_reload): Return void. All callers changed.
18363         (emit_input_reload_insns): Don't try to delete previous output
18364         reloads to a register, or record spill_reg_store for autoincs.
18365
18366 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
18367
18368         * gengtype.h: Updated copyright year.
18369         (struct input_file_st): Add inpisplugin field.
18370         (type_fileloc): New function.
18371         * gengtype.c
18372         (write_typed_struct_alloc_def): Add gcc_assert.
18373         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
18374         (write_typed_alloc_defns): Don't output for plugin files.
18375         (input_file_by_name): Clear inpisplugin field.
18376         (main): Set inpisplugin field for plugin files.
18377
18378 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
18379
18380         * gengtype-state.c (string_eq): New.
18381         (read_state): Use string_eq instead of strcmp when creating the
18382         state_ident_tab.
18383
18384 2011-04-19  Wei Guozhi  <carrot@google.com>
18385
18386         PR target/47855
18387         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
18388         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
18389         linkage.
18390         * config/arm/constraints.md (Uu): New constraint.
18391         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
18392
18393 2011-04-19  Tristan Gingold  <gingold@adacore.com>
18394
18395         * config.gcc (-*-*-*vms): Added.
18396         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
18397         definitions moved.
18398         * config/vms/vms-ld.c: New file.
18399         * config/vms/vms-ar.c: New file.
18400         * config/vms/t-vmsnative: New file.
18401
18402 2011-04-18  Xinliang David Li  <davidxl@google.com>
18403
18404         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
18405
18406 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18407
18408         PR middle-end/48661
18409         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
18410         if TREE_TYPE (v) is non-NULL.
18411
18412         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
18413         gimple_get_virt_mehtod_for_binfo.
18414         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
18415         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
18416         callers.
18417         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18418
18419 2011-04-18  Michael Matz  <matz@suse.de>
18420             Steve Ellcey  <sje@cup.hp.com>
18421
18422         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
18423         use its mode as source mode if it isn't VOIDmode.
18424
18425 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
18426
18427         * doc/passes.texi: Fill crossref nodes.
18428
18429 2011-04-18  Jim Meyering  <meyering@redhat.com>
18430
18431         Fix doubled-word typos in comments and strings
18432         * config/alpha/vms-unwind.h: s/for for/for/
18433         * config/arm/unwind-arm.h: Likewise.
18434         * config/microblaze/microblaze.c: Likewise.
18435         * config/sh/constraints.md: s/in in/in/
18436         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
18437
18438 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
18439
18440         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
18441         (AVX_FLOAT_MODE_P): Ditto.
18442         (AVX128_VEC_FLOAT_MODE_P): Ditto.
18443         (AVX256_VEC_FLOAT_MODE_P): Ditto.
18444         (AVX_VEC_FLOAT_MODE_P): Ditto.
18445         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
18446         (UNSPEC_MASKSTORE): Ditto.
18447         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
18448         Merge from <sse>_movmsk<ssemodesuffix> and
18449         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
18450         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
18451         iterator.
18452         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
18453         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
18454         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
18455
18456 2011-04-18  Jan Hubicka  <jh@suse.cz>
18457
18458         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
18459
18460         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
18461         (want_inline_function_called_once_p): Break out the logic from
18462         ipa_inline.
18463         (edge_badness): Ensure that profile is not misupdated.
18464         (lookup_recursive_calls): Prioritize by call frequencies.
18465         (inline_small_functions): Move program size estimates here;
18466         actually process whole queue even when unit growth has been
18467         met. (to properly compute inline_failed reasons and for the
18468         case unit size decrease.) Revisit comments on recursive inlining.
18469         (ipa_inline): Remove unit summary code; first inline hot calls
18470         of functions called once, cold calls next.
18471         (order, nnodes): Remove unused variables.
18472         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
18473         (GTFILES): Remove ipa-inline.c
18474         * sel-sched.c (fill_insns): Silence uninitialized var warning.
18475
18476 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18477
18478         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
18479
18480 2011-04-18  Jie Zhang  <jie@codesourcery.com>
18481             Richard Earnshaw  <rearnsha@arm.com>
18482
18483         * arm.c (neon_builtin_type_bits): Remove.
18484         (typedef enum neon_builtin_mode): New.
18485         (T_MAX): Don't define.
18486         (typedef enum neon_builtin_datum): Remove bits, codes[],
18487         num_vars and base_fcode.  Add mode, code and fcode.
18488         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
18489         VAR10): Change accordingly.
18490         (neon_builtin_data[]): Change accordingly
18491         (arm_init_neon_builtins): Change accordingly.
18492         (neon_builtin_compare): Remove.
18493         (locate_neon_builtin_icode): Remove.
18494         (arm_expand_neon_builtin): Change accordingly.
18495
18496         * arm.h (enum arm_builtins): Move to ...
18497         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
18498
18499         * arm.c (arm_builtin_decl): Declare.
18500         (TARGET_BUILTIN_DECL): Define.
18501         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
18502         (arm_builtin_decls[]): New.
18503         (arm_init_neon_builtins): Store builtin declarations in
18504         arm_builtin_decls[].
18505         (arm_init_tls_builtins): Likewise.
18506         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
18507         (arm_builtin_decl): New.
18508
18509 2011-04-18  Richard Guenther  <rguenther@suse.de>
18510
18511         * tree.c (upper_bound_in_type): Build properly canonicalized
18512         INTEGER_CSTs.
18513         (lower_bound_in_type): Likewise.
18514
18515 2011-04-18  Richard Guenther  <rguenther@suse.de>
18516
18517         * gimple.h (gimple_call_addr_fndecl): New function.
18518         (gimple_call_fndecl): Use it.
18519         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
18520         for direct calls.
18521         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
18522         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
18523
18524 2011-04-18  Richard Guenther  <rguenther@suse.de>
18525
18526         PR middle-end/48650
18527         * tree.c (build_string): STRING_CST is now derived from tree_typed.
18528
18529 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18530
18531         PR lto/48492
18532         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
18533         DECL_IN_CONSTANT_POOL without RTL.
18534
18535 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
18536             Ira Rosen  <ira.rosen@linaro.org>
18537
18538         PR target/48252
18539         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
18540         to match neon_vzip/vuzp/vtrn_internal.
18541         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
18542         outputs explicitly dependent on both inputs.
18543         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
18544
18545 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18546
18547         PR tree-optimization/48616
18548         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
18549         whether the shift is by scalar or vector based on whether all SLP
18550         scalar stmts have the same rhs.
18551
18552 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
18553
18554         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
18555         memory operands.
18556
18557 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
18558
18559         PR target/43700
18560         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
18561         registers.
18562
18563 2011-04-17  Jan Hubicka  <jh@suse.cz>
18564
18565         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
18566         * cgrpahunit.c (cgraph_finalize_function): Do not set
18567         finalized_by_frontend.
18568         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18569         finalized_by_frontend.
18570
18571 2011-04-17  Jan Hubicka  <jh@suse.cz>
18572
18573         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
18574         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
18575         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
18576         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
18577         method.
18578         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
18579         gimple-fold.c
18580         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
18581
18582 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
18583
18584         PR lto/48538
18585         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
18586         is non-null before accessing it.
18587         (input_cgraph): Remove trailing spaces.
18588
18589 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18590
18591         * params.def (sms-min-sc): New param flag.
18592         * modulo-sched.c (sms_schedule): Use it.
18593         * doc/invoke.texi (sms-min-sc): Document it.
18594
18595 2011-04-17  Jan Hubicka  <jh@suse.cz>
18596
18597         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
18598         present, also set gimple_call_set_cannot_inline.
18599         * ipa-inline.c: Update toplevel comment.
18600         (MAX_TIME): Remove.
18601         (cgraph_clone_inlined_nodes): Fix linebreaks.
18602         (cgraph_check_inline_limits): Restructure to ...
18603         (caller_growth_limits): ... this one; be more tolerant
18604         on growth in nested inline chains; add explanatory comment;
18605         fix stack accounting thinko introduced by previous patch.
18606         (cgraph_default_inline_p): Remove.
18607         (report_inline_failed_reason): New function.
18608         (can_inline_edge_p): New function.
18609         (can_early_inline_edge_p): New function.
18610         (leaf_node_p): Move upwards in file.
18611         (want_early_inline_function_p): New function.
18612         (want_inline_small_function_p): New function.
18613         (want_inline_self_recursive_call_p): New function.
18614         (cgraph_edge_badness): Rename to ...
18615         (edge_badness) ... this one; fix linebreaks.
18616         (update_edge_key): Update call of edge_baddness; add
18617         detailed dump about queue updates.
18618         (update_caller_keys): Use can_inline_edge_p and
18619         want_inline_small_function_p.
18620         (cgraph_decide_recursive_inlining): Rename to...
18621         (recursive_inlining): Use can_inline_edge_p and
18622         want_inline_self_recursive_call_p; simplify and remove no longer
18623         valid FIXME.
18624         (cgraph_set_inline_failed): Remove.
18625         (add_new_edges_to_heap): Use can_inline_edge_p and
18626         want_inline_small_function_p.
18627         (cgraph_decide_inlining_of_small_functions): Rename to ...
18628         (inline_small_functions): ... this one; cleanup; use
18629         can/want predicates; cleanup debug ouput; work edges till fibheap
18630         is exhausted and do not stop once unit growth is reached; remove
18631         later loop processing remaining edges.
18632         (cgraph_flatten): Rename to ...
18633         (flatten_function): ... this one; use can_inline_edge_p
18634         and can_early_inline_edge_p predicates.
18635         (cgraph_decide_inlining): Rename to ...
18636         (ipa_inline): ... this one; remove unreachable nodes before
18637         inlining functions called once; simplify the pass.
18638         (cgraph_perform_always_inlining): Rename to ...
18639         (inline_always_inline_functions): ... this one; use
18640         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
18641         (cgraph_decide_inlining_incrementally): Rename to ...
18642         (early_inline_small_functions): ... this one; simplify
18643         using new predicates; cleanup; make dumps prettier.
18644         (cgraph_early_inlining): Rename to ...
18645         (early_inliner): newer inline regular functions into always-inlines;
18646         fix updating of call stmt summaries.
18647         (pass_early_inline): Update for new names.
18648         (inline_transform): Fix formating.
18649         (gate_cgraph_decide_inlining): Rename to ...
18650         (pass_ipa_inline): ... this one.
18651         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
18652         * ipa-inline-analysis.c (dump_inline_summary): Update.
18653         (compute_inline_parameters): Do not compute disregard_inline_limits;
18654         look for mismatching arguments.
18655         (estimate_growth): Fix handlig of non-trivial self recursion.
18656         (inline_read_summary): Do not read info->disregard_inline_limits.
18657         (inline_write_summary): Do not write info->disregard_inline_limits.
18658         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
18659         and move all checks into can_inline_edge_p predicate; re-enable code
18660         comparing optimization levels.
18661         (expand_call_inline): Do not test inline_forbidden_into_p.
18662         * Makefile.in (ipa-inline.o): Update arguments.
18663
18664 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18665
18666         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
18667
18668 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18669
18670         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18671
18672 2011-04-17  Michael Matz  <matz@suse.de>
18673
18674         PR tree-optimization/48622
18675         PR lto/48645
18676         * ipa-inline-analysis.c (inline_read_summary): Read size/time
18677         in same order as they're written.
18678
18679 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18680
18681         * config/pa/predicates.md: Reorganize and simplify predicates.
18682         Eliminate duplicate code checks.
18683         (arith_operand): Rename to arith14_operand
18684         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18685         * config/pa/pa.md: Use renamed operands.
18686         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18687         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18688         arith11_operand, adddi3_operand, indexed_memory_operand,
18689         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18690         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18691         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18692         move_dest_operand, move_src_operand, prefetch_cc_operand,
18693         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18694         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18695         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18696         div_operand, int5_operand, movb_comparison_operator,
18697         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18698         arith_double_operand, ireg_operand, lhs_lshift_operand,
18699         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18700         integer_store_memory_operand): Likewise.
18701         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18702         (integer_store_memory_operand, read_only_operand,
18703         function_label_operand, borx_reg_operand,
18704         non_hard_reg_operand): Likewise.
18705         (eq_neq_comparison_operator): Delete unused operator.
18706         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18707         function_label_operand.
18708         (emit_move_sequence): Likewise.
18709
18710 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
18711
18712         * config/i386/sse.md (sseunpackmode): New mode attribute.
18713         (ssepackmode): Ditto.
18714         (vec_pack_trunc_<mode>): Macroize expander from
18715         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18716         (vec_unpacks_lo_<mode>): Macroize expander from
18717         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18718         (vec_unpacks_hi_<mode>): Macroize expander from
18719         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18720         (vec_unpacku_lo_<mode>): Macroize expander from
18721         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18722         (vec_unpacku_hi_<mode>): Macroize expander from
18723         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18724         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18725         ix86_expand_sse4_unpack.
18726         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18727
18728 2011-04-16  Jan Hubicka  <jh@suse.cz>
18729
18730         * cgraphbuild.c: Include ipa-inline.h.
18731         (reset_inline_failed): Use initialize_inline_failed.
18732         * cgraph.c: Include ipa-inline.h.
18733         (cgraph_create_node_1): Do not initialize estimated_growth.
18734         (initialize_inline_failed): More to ipa-inline-analysis.c
18735         (dump_cgraph_node): Do not dump inline flags.
18736         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18737         and disregard_inline_limits flags.
18738         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18739         time, size, estimated_growth.
18740         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18741         Update.
18742         * cgraphunit.c (cgraph_decide_is_function_needed): Use
18743         DECL_DISREGARD_INLINE_LIMITS.
18744         (cgraph_analyze_function): Do not initialize
18745         node->local.disregard_inline_limits.
18746         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18747         inlinable, versionable and disregard_inline_limits.
18748         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18749         cgraph_check_inline_limits, cgraph_default_inline_p,
18750         cgraph_edge_badness, update_caller_keys, update_callee_keys,
18751         add_new_edges_to_heap): Update.
18752         (cgraph_decide_inlining_of_small_function): Update; set
18753         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18754         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18755         cgraph_decide_inlining_incrementally): Update.
18756         * ipa-inline.h (inline_summary): Add inlinable, versionable,
18757         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18758         time, size and estimated_growth parameters.
18759         (estimate_edge_growth): Update.
18760         (initialize_inline_failed): Declare.
18761         * ipa-split.c: Include ipa-inline.h
18762         (execute_split_functions): Update.
18763         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18764         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18765         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18766         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18767         estimated_growth to INT_MIN.
18768         (inline_node_duplication_hook): Likewise.
18769         (dump_inline_summary): Dump new fields.
18770         (compute_inline_parameters): Update.
18771         (estimate_edge_time, estimate_time_after_inlining,
18772         estimate_size_after_inlining, estimate_growth, inline_read_summary,
18773         inline_write_summary):
18774         (initialize_inline_failed): Move here from cgraph.c.
18775         * tree-sra.c: Include ipa-inline.h.
18776         (ipa_sra_preliminary_function_checks): Update.
18777         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18778         ipa-inline.h.
18779
18780 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
18781
18782         * config/i386/sse.md (V16): New mode iterator.
18783         (VI1, VI8): Ditto.
18784         (AVXMODEQI, AVXMODEDI): Remove.
18785         (sse2, sse3): New mode attribute.
18786         (mov<mode>): Use V16 mode iterator.
18787         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18788         (push<mode>1): Use V16 mode iterator.
18789         (movmisalign<mode>): Ditto.
18790         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18791         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18792         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18793         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18794         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18795         avx_movdqu<avxmodesuffix>.
18796         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18797         *avx_movdqu<avxmodesuffix>.
18798         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18799         avx_lddqu<avxmodesuffix>.
18800         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18801         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18802         avx_movnt<AVXMODEDI:mode>.
18803         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18804         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18805
18806 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
18807
18808         PR target/48629
18809         * haifa-sched.c (prune_ready_list, schedule_block): Use
18810         sched_pressure_p rather than flag_sched_pressure.
18811
18812 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
18813
18814         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18815         cgraph_get_node instead of cgraph_get_create_node.
18816
18817 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
18818
18819         * cfgexpand.c (expand_debug_expr): Use
18820         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18821
18822 2011-04-15  Michael Matz  <matz@suse.de>
18823
18824         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18825         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18826         * function.c (gimplify_parameters): Ditto.
18827         * gimplify.c (gimplify_vla_decl): Ditto.
18828
18829         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18830         (gimple_call_set_alloca_for_var): New inline function.
18831         (gimple_call_alloca_for_var_p): Ditto.
18832         * gimple.c (gimple_build_call_from_tree): Remember
18833         CALL_ALLOCA_FOR_VAR_P state.
18834         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18835
18836         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18837         calls if they were for VLA objects.
18838
18839 2011-04-15  Martin Jambor  <mjambor@suse.cz>
18840
18841         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18842         of ADR_EXPRs.
18843
18844 2011-04-15  Martin Jambor  <mjambor@suse.cz>
18845
18846         PR middle-end/48601
18847         * tree-emutls.c (lower_emutls_function_body): Call
18848         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
18849         result is non-NULL.
18850
18851 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
18852
18853         * c-decl.c (detect_field_duplicates): Call
18854         objc_detect_field_duplicates instead of objc_get_interface_ivars.
18855
18856 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
18857
18858         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18859         * gimple.c (gimple_asm_clobbers_memory_p): Define.
18860         * ipa-pure-const.c (check_stmt): Call it.
18861         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18862
18863 2011-04-15  Richard Guenther  <rguenther@suse.de>
18864
18865         PR tree-optimization/48290
18866         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18867         Properly decide inhibiting propagation based on the valueized
18868         operand.  Do loop-closed SSA form preserving here ...
18869         (init_copy_prop): ... not here.
18870
18871 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
18872
18873         PR target/48612
18874         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18875         (*ieee_smax<mode>3): Likewise.
18876
18877 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18878
18879         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18880         Replace match_operand with match_dup for the third operand in
18881         these expanders.
18882
18883 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18884
18885         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18886         to track processing of conditionals.  Update all callers.
18887         (try_combine, simplify_if_then_else): Update.
18888
18889 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
18890
18891         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18892         -fsched-pressure.
18893
18894 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
18895
18896         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18897         instead of match_operand for operand 3.
18898
18899 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
18900
18901         * recog.h (insn_operand_data): Add an "allows_mem" field.
18902         * genoutput.c (output_operand_data): Initialize it.
18903         * optabs.c (maybe_legitimize_operand_same_code): New function.
18904         (maybe_legitimize_operand): Use it when matching the original
18905         op->value.
18906
18907 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18908
18909         * gimplify.c: Fix issues in comments throughout.
18910         (voidify_wrapper_expr): Fix long line.
18911         (build_stack_save_restore): Likewise.
18912         (gimplify_loop_expr): Likewise.
18913         (gimplify_compound_lval): Likewise.
18914         (gimplify_init_ctor_eval): Likewise.
18915         (gimplify_modify_expr_rhs): Likewise.
18916         (omp_notice_threadprivate_variable): Likewise.
18917
18918 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18919
18920         * cfgexpand.c (expand_call_stmt): Convert the function type to the
18921         original one if this is not a builtin function.
18922
18923 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
18924
18925         PR target/48605
18926         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18927         offset it as needed based on top 2 bits in operands[3], change
18928         MEM mode to SFmode and mask those 2 bits away from operands[3].
18929
18930 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
18931
18932         * c-parser.c (c_parser_objc_protocol_definition): Updated for
18933         change from objc_declare_protocols() to objc_declare_protocol().
18934
18935 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
18936
18937         * config/i386/sse.md (sse4_1): New mode attribute.
18938         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18939         avx_blend<ssemodesuffix><avxmodesuffix> and
18940         sse4_1_blend<ssemodesuffix> using VF mode iterator.
18941         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18942         avx_blendv<ssemodesuffix><avxmodesuffix> and
18943         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18944         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18945         avx_dp<ssemodesuffix><avxmodesuffix> and
18946         sse4_1_dp<ssemodesuffix> using VF mode iterator.
18947         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18948         (sse4_1_packusdw): Merge with *avx_packusdw.
18949         (sse4_1_pblendvb): Merge with *avx_pblendvb.
18950         (sse4_1_pblendw): Merge with *avx_pblendw.
18951         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18952         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18953         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18954         VF mode iterator.
18955         (sse4_1_round<ssescalarmodesuffix>): Merge with
18956         *avx_round<ssescalarmodesuffix>.
18957         (aesenc): Merge with *avx_aesenc.
18958         (aesenclast): Merge with *avx_aesenclast.
18959         (aesdec): Merge with *avx_aesdec.
18960         (aesdeclast): Merge with *avx_aesdeclast.
18961         (pclmulqdq): Merge with *pclmulqdq.
18962         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18963         New predicate.
18964         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18965
18966 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
18967
18968         PR middle-end/48608
18969         * cfgexpand.c (get_decl_align_unit): Renamed to ...
18970         (align_local_variable): This.  Update DECL_ALIGN.
18971         (add_stack_var): Updated.
18972         (expand_one_stack_var): Likewise.
18973
18974 2011-04-14  Richard Guenther  <rguenther@suse.de>
18975
18976         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18977         Remove.
18978         (dse_initialize_block_local_data, dse_leave_block,
18979         record_voperand_set, get_stmt_uid): Likewise.
18980         (dse_possible_dead_store_p): Allow any kind of killing stmt.
18981         (dse_optimize_stmt): Remove voperand set handling code.
18982         Simplify and improve to handle any kind of killing stmt.
18983         (dse_record_phi): Remove.
18984         (dse_enter_block): Simplify.
18985         (tree_ssa_dse): Likewise.
18986         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18987
18988 2011-04-14  Jan Hubicka  <jh@suse.cz>
18989
18990         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18991         * cgraph.h (struct inline_summary): Move to ipa-inline.h
18992         (cgraph_local_info): Remove inline_summary.
18993         * ipa-cp.c: Include ipa-inline.h.
18994         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18995         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18996         accesor.
18997         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18998         (input_overwrite_node): Do not set inline summary.
18999         (input_node): Do not stream inline summary.
19000         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19001         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19002         growth; we do not have inline parameters computed for that anyway.
19003         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19004         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19005         (inline_summary_t): New type and VECtor.
19006         (debug_inline_summary, dump_inline_summaries): Declare.
19007         (inline_summary): Use VOCtor.
19008         (estimate_edge_growth): Kill hack computing call stmt size directly.
19009         * lto-section-in.c (lto_section_name): Add inline section.
19010         * ipa-inline-analysis.c: Include lto-streamer.h
19011         (node_removal_hook_holder, node_duplication_hook_holder): New holders
19012         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19013         (inline_summary_vec): Define.
19014         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19015         dump_inline_summaries): New functions.
19016         (estimate_function_body_sizes): Properly compute size/time of outgoing
19017         calls.
19018         (compute_inline_parameters): Alloc inline_summary; do not compute
19019         size/time of incomming calls.
19020         (estimate_edge_time): Avoid missing time summary hack.
19021         (inline_read_summary): Read inline summary info.
19022         (inline_write_summary): Write inline summary info.
19023         (inline_free_summary): Free all hooks and inline summary vector.
19024         * lto-streamer.h: Add LTO_section_inline_summary section.
19025         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19026         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19027
19028 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19029
19030         * tree-vectorizer.h (vect_strided_store_supported): Add a
19031         HOST_WIDE_INT argument.
19032         (vect_strided_load_supported): Likewise.
19033         (vect_permute_store_chain): Return void.
19034         (vect_transform_strided_load): Likewise.
19035         (vect_permute_load_chain): Delete.
19036         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19037         count argument.  Check that the count is a power of two.
19038         (vect_strided_load_supported): Likewise.
19039         (vect_permute_store_chain): Return void.  Update after above changes.
19040         Assert that the access is supported.
19041         (vect_permute_load_chain): Likewise.
19042         (vect_transform_strided_load): Return void.
19043         * tree-vect-stmts.c (vectorizable_store): Update calls after
19044         above interface changes.
19045         (vectorizable_load): Likewise.
19046         (vect_analyze_stmt): Don't check for strided powers of two here.
19047
19048 2011-04-14  Richard Guenther  <rguenther@suse.de>
19049
19050         PR tree-optimization/48590
19051         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19052         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19053         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19054         BUILT_IN_STACK_SAVE.
19055         * tree-ssa-dce.c (propagate_necessity): Handle
19056         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19057
19058 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19059
19060         * c-parser.c (c_parser_objc_class_declaration): Updated call to
19061         objc_declare_class.
19062
19063 2011-04-14  Richard Guenther  <rguenther@suse.de>
19064
19065         * tree.h (get_object_alignment_1): Declare.
19066         * builtins.c (get_object_alignment_1): Split out worker from ...
19067         (get_object_alignment): ... here.
19068         * fold-const.c (get_pointer_modulus_and_residue): Use
19069         get_object_alignment_1.
19070
19071 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19072
19073         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19074         type parameter.
19075         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19076         parameter.  Generalise code to handle arrays as well as vectors.
19077         (vect_setup_realignment): Update accordingly.
19078         * tree-vect-stmts.c (vectorizable_store): Likewise.
19079         (vectorizable_load): Likewise.
19080
19081 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19082
19083         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19084         within the per-copy loop.
19085
19086 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19087
19088         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19089         in the dump file.
19090
19091 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19092
19093         * doc/options.texi (Negative): Explicitly mention that the
19094         Negative chain must be circular.
19095
19096 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
19097
19098         * function.h (block_chainon): Declare.
19099         * function.c (block_chainon): Define.
19100
19101 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
19102             Eric Weddington  <eric.weddington@atmel.com>
19103             Georg-Johann Lay  <avr@gjlay.de>
19104
19105         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19106         New Includes
19107         (avr_init_builtins, avr_expand_builtin,
19108         avr_expand_delay_cycles, avr_expand_unop_builtin,
19109         avr_expand_binop_builtin ): New functions.
19110         (avr_builtin_id): New enum
19111         (struct avr_builtin_description): New struct
19112         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19113         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19114
19115         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19116         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19117         UNSPECV_DELAY_CYCLES): new enumeration values
19118         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19119         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19120         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19121         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19122         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19123         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19124         "fmulsu"): New insns
19125
19126         * config/avr/avr-c.c: fix line endings
19127         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19128         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19129         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19130         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19131         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19132
19133         * doc/extend.texi (AVR Built-in Functions): New node
19134         (Target Builtins): Add documentation of AVR
19135         built-in functions.
19136
19137 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
19138
19139         PR target/44643
19140         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19141         alone. Error if non-const data has attribute progmem.
19142
19143 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19144
19145         * tree.h (struct tree_constructor): Include tree_typed instead of
19146         tree_common.
19147         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19148         TS_TYPED instead of TS_COMMON.
19149
19150 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19151
19152         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19153         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19154         (sse2_psadbw): Merge with *avx_psadbw.
19155         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19156         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19157         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19158         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19159         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19160         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19161         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19162         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19163         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19164         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19165         (ssse3_palignrti): Merge with *avx_palignrti.
19166
19167 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19168
19169         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19170         * tree-ssanames.c (fini_ssanames): VEC_free it.
19171         (make_ssa_name_fn): Update for VECness of free_ssanames.
19172         (release_ssa_name, release_dead_ssa_names): Likewise.
19173         * tree.h (struct tree_ssa_name): Include tree_typed instead of
19174         tree_common.
19175         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19176         TS_TYPED instead of TS_COMMON.
19177
19178 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19179
19180         * postreload-gcse.c (gcse_after_reload_main): Add calls to
19181         statistics_counter_event.
19182         * tree-ssa-copyrename.c (stats): Define.
19183         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
19184         statistics_counter_event.
19185         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19186         (bswap_stats, widen_mul_stats): Define.
19187         (insert_reciprocals): Increment rdivs_inserted.
19188         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
19189         rfuncs_inserted.  Add calls to statistics_counter_event.
19190         (execute_cse_sincos_1): Increment inserted.
19191         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
19192         statistics_counter_event.
19193         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
19194         of bswap_stats.  Add calls to statistics_counter_event.
19195         (convert_mult_to_widen): Increment widen_mults_inserted.
19196         (convert_plusminus_to_widen): Increment maccs_inserted.
19197         (convert_mult_to_fma): Increment fmas_inserted.
19198         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
19199         calls to statistics_counter_event.
19200
19201 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
19202
19203         PR rtl-optimization/48455
19204         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19205         `temp_costs->mem_cost'.
19206
19207 2011-04-13  Jan Hubicka  <jh@suse.cz>
19208
19209         * ipa-inline.h: New file.
19210         * ipa-inline-analysis.c: New file. Broken out of ...
19211         * ipa-inline.c: ... this file; update toplevel comment;
19212         include ipa-inline.h
19213         (inline_summary): Move to ipa-inline.h
19214         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19215         ipa-inline-analysis.c.
19216         (cgraph_estimate_time_after_inlining): Rename to
19217         estiamte_time_after_inlining; move to ipa-inline-analysis.c
19218         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19219         to estimate_edge_growth.
19220         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19221         rename to estimate_size_after_inlining.
19222         (cgraph_mark_inline_edge): Update for new naming convention.
19223         (cgraph_check_inline_limits): Likewise.
19224         (cgraph_edge_badness): Likewise.
19225         (cgraph_decide_recursive_inlining): Likewise.
19226         (cgraph_decide_inlining_of_small_functions): Likewise.
19227         (cgraph_decide_inlining_incrementally): Likewise.
19228         (cgraph_estimate_growth): Rename to estimate_growth; move to
19229         ipa-inline-analysis.c.
19230         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19231         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19232         (compute_inline_parameters): Likewise.
19233         (compute_inline_parameters_for_current): Likewise.
19234         (pass_inline_parameters): Likewise.
19235         (inline_indirect_intraprocedural_analysis): Likewise.
19236         (analyze_function): Rename to inline_analyze_function; likewise.
19237         (add_new_function): Move to ipa-inline-analysis.c.
19238         (inline_generate_summary): Likewise.
19239         (inline_read_summary): Likewise.
19240         (inline_write_summary): Likewise.
19241         * Makefile.in (ipa-inline-analysis.c): New file.
19242
19243 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19244
19245         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19246         * configure: Regenerate.
19247
19248 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19249
19250         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19251         instead of tree_common.
19252         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19253         Likewise.
19254         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19255         TS_TYPED rather than TS_COMMON.
19256         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19257
19258 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
19259
19260         PR target/45263
19261         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19262         r20 around calls of __tablejump_elpm__
19263
19264 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
19265
19266         PR middle-end/48591
19267         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19268         NULL.
19269         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19270
19271 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
19272
19273         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19274         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19275         (cfi_vec): New typedef.
19276         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19277         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19278         (cie_cfi_vec): New static variable.
19279         (cie_cfi_head): Delete.
19280         (add_cfi): Accept a cfi_vec * as first argument. All callers and
19281         declaration changed. Use vector rather than list operations.
19282         (new_cfi): Don't initialize the dw_cfi_next field.
19283         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19284         rather than list operations.
19285         (lookup_cfa): Use vector rather than list operations.
19286         (output_cfis): New argument upto. Accept a cfi_vec rather than
19287         a dw_cfi_ref list head as argument. All callers changed.
19288         Iterate over the vector using upto as a maximum index.
19289         (output_all_cfis): New static function.
19290         (output_fde): Use vector rather than list operations. Use the
19291         new upto argument for output_cfis rather than manipulating a
19292         list.
19293         (dwarf2out_begin_prologue): Change initializations to match
19294         new struct members.
19295         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19296         from the vector length rather than searching for the end of a list.
19297         Use output_all_cfis.
19298         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19299
19300 2011-04-13  Nick Clifton  <nickc@redhat.com>
19301
19302         * config/rx/rx.md (movmemsi): Do not use this pattern when
19303         volatile pointers are involved.
19304
19305 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19306
19307         * config/i386/sse.md (pinsrbits): Remove.
19308         (sse2_packsswb): Merge with *avx_packsswb.
19309         (sse2_packssdw): Merge with *avx_packssdw.
19310         (sse2_packuswb): Merge with *avx_packuswb.
19311         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19312         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19313         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19314         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19315         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19316         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19317         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19318         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19319         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19320         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19321         (sse2_loadld): Merge with *avx_loadld.
19322         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19323         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19324         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19325         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19326         (vec_concatv2di): Merge with *vec_concatv2di_avx.
19327
19328 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
19329
19330         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19331         calling TREE_CHAIN.
19332         * print-tree.c (print_node): Likewise.
19333         * tree-inline.c (copy_tree_r): Likewise.
19334         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19335         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19336         instead of TS_COMMON.
19337         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19338         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19339         (copy_node_stat): Zero TREE_CHAIN only if necessary.
19340         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
19341         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
19342         ...and these...
19343         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
19344         * tree.h: ...here.
19345         (TREE_CHAIN): Check for a TS_COMMON structure.
19346         (TREE_TYPE): Check for a TS_TYPED structure.
19347
19348 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
19349
19350         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19351         cgraph_get_create_node instead of cgraph_node.
19352
19353 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19354
19355         * c-parser.c (c_parser_initelt): Updated call to
19356         objc_build_message_expr.
19357         (c_parser_postfix_expression): Likewise.
19358
19359 2011-04-12  Kai Tietz  <ktietz@redhat.com>
19360
19361         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
19362         MASK_MS_BITFIELD_LAYOUT bit.
19363
19364 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19365
19366         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
19367         assert it is always true.
19368         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
19369         moves.
19370
19371 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19372
19373         * c-parser.c (c_lex_one_token): Rewritten conditional used when
19374         compiling Objective-C to be more efficient.
19375
19376 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
19377
19378         * opts-common.c (decode_cmdline_options_to_array): Remove variable
19379         argv_copied.
19380
19381 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19382
19383         * recog.h, genoutput.c, optabs.c: Revert last patch.
19384
19385 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19386
19387         PR target/48090
19388         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
19389
19390 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19391
19392         * recog.h (insn_operand_data): Add an "allows_mem" field.
19393         * genoutput.c (output_operand_data): Initialize it.
19394         * optabs.c (maybe_legitimize_operand_same_code): New function.
19395         (maybe_legitimize_operand): Use it when matching the original
19396         op->value.
19397
19398 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19399
19400         * genpreds.c (process_define_predicate): Move most processing
19401         to gensupport.c.  Continue to validate the expression.
19402         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
19403         (process_define_predicate): Move processing to gensupport.c.
19404         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
19405         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
19406         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
19407         argument.
19408         (valid_predicate_name_p): New function, split out from old
19409         genpreds.c:process_define_predicate.
19410         (process_define_predicate): New function, combining code from
19411         old genpreds.c and genrecog.c functions.
19412         (process_rtx): Call it for DEFINE_PREDICATE and
19413         DEFINE_SPECIAL_PREDICATE.
19414
19415 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19416
19417         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
19418         size of a '%A' memory reference.
19419         (T_DREG, T_QREG): New neon_builtin_type_bits.
19420         (arm_init_neon_builtins): Assert that the load and store operands
19421         are neon_struct_operands.
19422         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
19423         (NEON_ARG_MEMORY): New builtin_arg.
19424         (neon_dereference_pointer): New function.
19425         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
19426         Handle NEON_ARG_MEMORY.
19427         (arm_expand_neon_builtin): Update after above interface changes.
19428         Use NEON_ARG_MEMORY for loads and stores.
19429         * config/arm/predicates.md (neon_struct_operand): New predicate.
19430         * config/arm/iterators.md (V_two_elem): Tweak formatting.
19431         (V_three_elem): Use BLKmode for accesses that have no associated mode.
19432         (V_four_elem): Tweak formatting.
19433         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
19434         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
19435         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
19436         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
19437         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
19438         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
19439         (neon_vst4<mode>): Replace pointer operand with a memory operand.
19440         Use %A in the output template.
19441         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
19442         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
19443         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
19444         the width of the memory access.  Remove post-increment.
19445         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
19446
19447 2011-04-12  Nick Clifton  <nickc@redhat.com>
19448
19449         * config/v850/v850.c (expand_prologue): Do not use the CALLT
19450         instruction for interrupt handlers if the target is the basic V850
19451         architecture.
19452         (expand_epilogue): Likewise.
19453
19454 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19455
19456         PR rtl-optimization/48549
19457         * combine.c (propagate_for_debug): Also stop after BB_END of
19458         this_basic_block.  Process LAST and just stop processing after it.
19459         (combine_instructions): If last_combined_insn has been deleted,
19460         set last_combined_insn to its PREV_INSN.
19461
19462 2011-04-12  Richard Guenther  <rguenther@suse.de>
19463
19464         PR tree-optimization/46076
19465         * gimple.h (struct gimple_statement_call): Add fntype field.
19466         (gimple_call_fntype): Adjust.
19467         (gimple_call_set_fntype): New function.
19468         * gimple.c (gimple_build_call_1): Set the call function type.
19469         * gimplify.c (gimplify_call_expr): Preserve the function
19470         type the frontend used for the call.
19471         (gimplify_modify_expr): Likewise.
19472         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
19473         function type.
19474         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
19475         function type.
19476         * tree-ssa.c (useless_type_conversion_p): Function pointer
19477         conversions are useless.
19478
19479 2011-04-12  Martin Jambor  <mjambor@suse.cz>
19480
19481         * cgraph.h (cgraph_node): Remove function declaration.
19482         (cgraph_create_node): Declare.
19483         (cgraph_get_create_node): Likewise.
19484         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
19485         Updated all callers.
19486         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
19487         the decl does not already exist.  Call cgraph_get_create_node instead
19488         of cgraph_node.
19489         (cgraph_get_create_node): New function.
19490         (cgraph_same_body_alias): Update comment.
19491         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
19492         assert it does not return NULL.
19493         (cgraph_update_edges_for_call_stmt): Likewise.
19494         (cgraph_clone_edge): Likewise.
19495         (cgraph_create_virtual_clone): Likewise.
19496         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
19497         instead of cgraph_node.
19498         (cgraph_add_new_function): Call cgraph_create_node or
19499         cgraph_get_create_node instead of cgraph_node.
19500         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
19501         instead of cgraph_node.
19502         (record_eh_tables): Likewise.
19503         (mark_address): Likewise.
19504         (mark_load): Likewise.
19505         (build_cgraph_edges): Call cgraph_get_create_node instead
19506         of cgraph_node.
19507         (rebuild_cgraph_edges): Likewise.
19508         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
19509         instead of cgraph_node.
19510         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
19511         cgraph_node.
19512         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
19513         cgraph_create_node instead of cgraph_node.
19514         * c-decl.c (finish_function): Call cgraph_get_create_node instead
19515         of cgraph_node.
19516         * lto-cgraph.c (input_node): Likewise.
19517         * lto-streamer-in.c (input_function): Likewise.
19518         * varasm.c (mark_decl_referenced): Likewise.
19519         (assemble_alias): Likewise.
19520
19521 2011-04-12  Martin Jambor  <mjambor@suse.cz>
19522
19523         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
19524         instead of cgraph_node and assert it does not return NULL.
19525         * lto-streamer-in.c (lto_read_body): Likewise.
19526         * omp-low.c (new_omp_context): Likewise.
19527         (create_task_copyfn): Likewise.
19528         * tree-emutls.c (lower_emutls_function_body): Likewise.
19529         * matrix-reorg.c (transform_allocation_sites): Likewise.
19530
19531 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19532
19533         PR c/48552
19534         * c-typeck.c (build_asm_expr): Error out on attempts to use
19535         void type outputs or inputs for constraints that allow reg or
19536         don't allow memory.
19537
19538 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
19539             Richard Earnshaw  <rearnsha@arm.com>
19540
19541         PR target/48250
19542         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
19543         to use sign-magnitude offsets. Reject unsupported unaligned
19544         cases. Add detailed description in comments.
19545         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
19546         condition from TARGET_32BIT to TARGET_ARM.
19547
19548 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
19549
19550         * tree.h (struct typed_tree): New.
19551         (struct tree_common): Include it instead of tree_base.
19552         (TREE_TYPE): Update for new location of type field.
19553         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
19554         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
19555         (union tree_node): Add typed field.
19556         * treestruct.def (TS_TYPED): New.
19557         * lto-streamer.c (check_handled_ts_structures): Handle it.
19558         * tree.c (MARK_TS_TYPED): New macro.
19559         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
19560
19561 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
19562
19563         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
19564         (force_nonfallthru): Do not alter the loop nest if no basic block
19565         was created.
19566
19567 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
19568
19569         * config/i386/sse.md (VI): New mode iterator.
19570         (SSEMODEI): Remove.
19571         (AVX256MODEI): Ditto.
19572         (AVXMODEF4P): Ditto.
19573         (avxvecpsmode): Ditto.
19574         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
19575         (sse2_andnot<mode>3): New expander.
19576         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
19577         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
19578         (<any_logic:code><mode>3): Use VI mode iterator.
19579         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
19580         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
19581         (*andnottf3): Handle AVX three-operand constraints.
19582         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
19583
19584 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19585             Robert Millan  <rmh@gnu.org>
19586
19587         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
19588         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
19589         GNU_USER_DYNAMIC_LINKER64): Define.
19590         (REG_NAME): Don't undefine.
19591         (MD_UNWIND_SUPPORT): Undefine.
19592         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
19593         (REG_NAME): Don't undefine.
19594         (MD_UNWIND_SUPPORT): Undefine.
19595         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
19596
19597 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19598
19599         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
19600         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
19601
19602 2011-04-11  Xinliang David Li  <davidxl@google.com>
19603
19604         * value-profile.c (check_ic_target): New function.
19605         (gimple_ic_transform): Sanity check indirect call target.
19606         * gimple-low.c (gimple_check_call_args): Interface change.
19607         (gimple_check_call_matching_types): New function.
19608         * tree-inline.c (tree_can_inline_p): Call new function.
19609
19610 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
19611
19612         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
19613         tree-pretty-print.h & realmpfr.h.
19614
19615 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
19616
19617         PR middle-end/48464
19618         * ira.c (setup_pressure_classes): Fix typo in loop condition.
19619         (setup_allocno_and_important_classes): Ditto.
19620
19621 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19622
19623         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
19624         GNU_USER_DYNAMIC_LINKER.
19625         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
19626         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19627         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
19628         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19629         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19630         GNU_USER_TARGET_OS_CPP_BUILTINS.
19631         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
19632         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19633         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19634         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19635         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
19636         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19637         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19638         GNU_USER_TARGET_OS_CPP_BUILTINS.
19639         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19640         GNU_USER_DYNAMIC_LINKER.
19641         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19642         GNU_USER_TARGET_OS_CPP_BUILTINS.
19643         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
19644         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19645         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
19646         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19647         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
19648         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
19649         GNU_USER_DYNAMIC_LINKER64): Remove.
19650         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
19651         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19652         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19653         GNU_USER_DYNAMIC_LINKER.
19654         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19655         GNU_USER_TARGET_OS_CPP_BUILTINS.
19656         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19657         GNU_USER_TARGET_OS_CPP_BUILTINS.
19658         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
19659         to GNU_USER_TARGET_OS_CPP_BUILTINS.
19660         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19661         GNU_USER_TARGET_OS_CPP_BUILTINS.
19662         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
19663         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
19664         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19665         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
19666         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19667         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19668         GNU_USER_DYNAMIC_LINKER.
19669         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19670         GNU_USER_TARGET_OS_CPP_BUILTINS.
19671         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19672         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19673         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19674         GNU_USER_DYNAMIC_LINKER.
19675         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19676         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19677         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19678         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19679         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19680         GNU_USER_DYNAMIC_LINKER.
19681         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19682         GNU_USER_DYNAMIC_LINKERN32.
19683         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19684         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
19685         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
19686         GNU_USER_DYNAMIC_LINKER32.
19687         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19688         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19689         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19690         GNU_USER_DYNAMIC_LINKER.
19691         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19692         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19693         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19694         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19695         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19696         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19697         GNU_USER_DYNAMIC_LINKER32.
19698         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19699         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19700         GNU_USER_DYNAMIC_LINKER.
19701         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19702         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19703         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19704         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
19705         GNU_USER_DYNAMIC_LINKER64.
19706         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19707         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19708         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19709         GNU_USER_DYNAMIC_LINKER.
19710         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19711         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19712         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19713         GNU_USER_DYNAMIC_LINKER.
19714         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19715         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19716         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19717         GNU_USER_DYNAMIC_LINKER32.
19718         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19719         GNU_USER_DYNAMIC_LINKER64.
19720         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19721         GNU_USER_DYNAMIC_LINKER64.
19722         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19723         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19724         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19725         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19726         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19727
19728 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19729
19730         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
19731         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19732         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19733         GNU_USER_DYNAMIC_LINKER.
19734         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19735         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
19736         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19737         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19738         GNU_USER_DYNAMIC_LINKER64.
19739         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19740         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19741         GNU_USER_LINK_EMULATION.
19742         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19743         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19744         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19745         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19746         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19747         CPP_SPEC, CC1_SPEC): Remove.
19748         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19749         (GNU_USER_DYNAMIC_LINKER): Define.
19750         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19751         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19752         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19753         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19754         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19755         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19756         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19757         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19758         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19759         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19760         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19761         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19762         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19763         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19764         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19765         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19766         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19767         GNU_USER_DYNAMIC_LINKER.
19768         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19769         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
19770         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19771         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
19772         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19773         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
19774         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19775         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19776         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19777         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19778
19779 2011-04-11  Kai Tietz  <ktietz@redhat.com>
19780
19781         PR target/9601
19782         PR target/11772
19783         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19784         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19785         comment.
19786         (ix86_is_msabi_thiscall): Removed.
19787         (ix86_is_type_thiscall): Likewise.
19788         (ix86_get_callcvt): New function.
19789         (ix86_comp_type_attributes): Simplify check.
19790         (ix86_function_regparm): Use ix86_get_callcvt for calling
19791         convention attribute checks.
19792         (ix86_return_pops_args): Likewise.
19793         (ix86_static_chain): Likewise.
19794         (x86_this_parameter): Likewise.
19795         (x86_output_mi_thunk): Likewise.
19796         (ix86_function_type_abi): Optimize check for types without attributes.
19797         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19798         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19799         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19800         by flag-values.
19801         (IX86_BASE_CALLCVT): Helper macro.
19802         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19803         Use ix86_get_callcvt for calling convention attribute checks and avoid
19804         symbol-decoration for stdcall in TARGET_RTD case.
19805         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19806         Likewise.
19807         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19808         for declaration.
19809
19810 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
19811
19812         * config/i386/sse.md (VI_128): New mode iterator.
19813         (VI12_128): Rename from SSEMODE12.
19814         (VI14_128): Rename from SSEMODE14.
19815         (VI124_128): New mode iterator.
19816         (VI24_128): Rename from SSEMODE248.
19817         (VI248_128): Rename from SSEMODE248.
19818         (SSEMODE124C8): Remove.
19819         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19820         (*sse2_<plusminus_insn><mode>3): Merge with
19821         *avx_<plusminus_insn><mode>3.
19822         (*mulv8hi3): Merge with *avx_mulv8hi3.
19823         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19824         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19825         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19826         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19827         (ashr<mode>3): Merge with *avx_ashr<mode>3.
19828         (lshr<mode>3): Merge with *avx_lshr<mode>3.
19829         (ashl<mode>3): Merge with *avx_ashl<mode>3.
19830         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19831         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19832         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19833         (*<smaxmin:code>v8hi3): Ditto.
19834         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19835         (*<smaxmin:code>v16qi3): Ditto.
19836         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19837         (*sse2_eq<mode>3): Ditto.
19838         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19839         (*sse2_gt<mode>3): Ditto.
19840         (vcondv2di): Split out of vcond<mode>.
19841         (vconduv2di): Split out of vcondu<mode>.
19842
19843 2011-04-11  Richard Guenther  <rguenther@suse.de>
19844
19845         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19846         before calling tree_low_cst.
19847
19848 2011-04-11  Richard Guenther  <rguenther@suse.de>
19849
19850         * stor-layout.c (layout_type): Compute all array index size operations
19851         in the original type.
19852         (initialize_sizetypes): Add comment.
19853         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19854
19855 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19856
19857         * common.opt (Tbss=, Tdata=, Ttext=): New options.
19858
19859 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19860
19861         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19862         of cgraph_node, handle NULL return value.
19863         (cgraph_global_info): Likewise.
19864         (cgraph_rtl_info): Likewise.
19865         * tree-inline.c (estimate_num_insns): Likewise.
19866         * gimplify.c (unshare_body): Likewise.
19867         (unvisit_body): Likewise.
19868         (gimplify_body): Likewise.
19869         * predict.c (optimize_function_for_size_p): Likewise.
19870         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19871         (call_may_clobber_ref_p_1): Likewise.
19872         * varasm.c (function_section_1): Likewise.
19873         (assemble_start_function): Likewise.
19874
19875 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19876
19877         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19878         of cgraph_node.
19879         * final.c (rest_of_clean_state): Likewise.
19880         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19881         * passes.c (pass_init_dump_file): Likewise.
19882         (execute_all_ipa_transforms): Likewise.
19883         (function_called_by_processed_nodes_p): Likewise.
19884         * predict.c (maybe_hot_frequency_p): Likewise.
19885         (probably_never_executed_bb_p): Likewise.
19886         (compute_function_frequency): Likewise.
19887         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19888         (unnest_nesting_tree_1): Likewise.
19889         (lower_nested_functions): Likewise.
19890         * tree-optimize.c (execute_fixup_cfg): Likewise.
19891         (tree_rest_of_compilation): Likewise.
19892         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19893         * tree-sra.c (ipa_early_sra): Likewise.
19894         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19895         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19896         * ipa.c (record_cdtor_fn): Likewise.
19897         * ipa-inline.c (cgraph_early_inlining): Likewise.
19898         (compute_inline_parameters_for_current): Likewise.
19899         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19900         * ipa-pure-const.c (local_pure_const): Likewise.
19901         * ipa-split.c (split_function): Likewise.
19902         (execute_split_functions): Likewise.
19903         * cgraphbuild.c (build_cgraph_edges): Likewise.
19904         (rebuild_cgraph_edges): Likewise.
19905         (cgraph_rebuild_references): Likewise.
19906         (remove_cgraph_callee_edges): Likewise.
19907         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19908         (verify_cgraph_node): Likewise.
19909         (cgraph_analyze_functions): Likewise.
19910         (cgraph_preserve_function_body_p): Likewise.
19911         (save_inline_function_body): Likewise.
19912         (save_inline_function_body): Likewise.
19913         * tree-inline.c (copy_bb): Likewise.
19914         (optimize_inline_calls): Likewise.
19915
19916 2011-04-11  Martin Jambor  <mjambor@suse.cz>
19917
19918         PR tree-optimization/48195
19919         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19920         ipa_check_create_edge_args.
19921         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19922         ipa_check_create_edge_args.
19923         * ipa-inline.c (inline_generate_summary): Do not call
19924         ipa_check_create_node_params and ipa_check_create_edge_args.
19925         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19926         ipa_check_create_edge_args.
19927
19928 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
19929
19930         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19931         instead of loop.
19932         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19933         * function.c (record_hard_reg_sets): Likewise.
19934         * ira.c (compute_regs_asm_clobbered): Likewise.
19935         * sched-deps.c (sched_analyze_1): Likewise.
19936         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19937
19938 2011-04-09  Xinliang David Li  <davidxl@google.com>
19939
19940         PR tree-optimization/PR48484
19941         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19942         has_valid_pred lazily
19943
19944 2011-04-09  Duncan Sands  <baldrick@free.fr>
19945
19946         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19947
19948 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19949
19950         * combine.c (combine_validate_cost): Adjust comments.  Set registered
19951         cost of I0 to zero at the end, if any.
19952
19953 2011-04-08  Xinliang David Li  <davidxl@google.com>
19954
19955         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19956         to insane profile data.
19957
19958 2011-04-08  Xinliang David Li  <davidxl@google.com>
19959
19960         * ipa-cp.c (ipcp_update_profiling): Correct
19961          negative scale factor due to insane profile data.
19962
19963 2011-04-08  Xinliang David Li  <davidxl@google.com>
19964
19965         * final.c (dump_basic_block_info): New function.
19966         (final): Dump basic block.
19967         (final_scan_insn): Remove old dump.
19968
19969 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
19970
19971         PR target/47829
19972         * config.gcc (i386-*-freebsd): Disable unwind table generation for
19973         crtbegin/crtend.
19974
19975 2011-04-08  Michael Matz  <matz@suse.de>
19976
19977         PR middle-end/48389
19978         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19979         functions.
19980         (rebuild_jump_labels): Call rebuild_jump_labels_1.
19981         * rtl.h (rebuild_jump_labels_chain): Declare.
19982         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19983         insns inserted on edges.
19984
19985 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
19986
19987         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19988         * config/arm/arm-arches.def: New.
19989         * config/arm/arm-opts.h: New.
19990         * config/arm/genopt.sh: New.
19991         * config/arm/arm-tables.opt: New (generated).
19992         * config/arm/arm.c (arm_handle_option, arm_target_help,
19993         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19994         (all_architectures): Get most table contents from arm-arches.def.
19995         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19996         arm_selected_tune here.
19997         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19998         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19999         (march=, mcpu=, mtune=): Use Enum and Var.
20000         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20001         (arm.o): Update dependencies.
20002
20003 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
20004
20005         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20006         of header_file.
20007         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20008         (write_typed_alloc_defns): Likewise.
20009         (main): Calls write_typed_alloc_defns with output_header.
20010
20011 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
20012
20013         PR inline-asm/48435
20014         * ira-color.c (setup_profitable_hard_regs): Add comments.
20015         Don't take prohibited hard regs into account.
20016         (setup_conflict_profitable_regs): Rename to
20017         get_conflict_profitable_regs.
20018         (check_hard_reg_p): Check prohibited hard regs.
20019
20020 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
20021
20022         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20023         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20024         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20025
20026 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20027
20028         PR target/48366
20029         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20030         move from floating point to shift amount register.
20031         (emit_move_sequence): Remove secondary reload support for floating
20032         point to shift amount amount register copies.
20033         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20034         amount register copies.
20035         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20036         register, return false if mode isn't a scalar integer mode.
20037         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20038
20039 2011-04-08  Richard Guenther  <rguenther@suse.de>
20040
20041         * gimple.c (gimple_call_flags): Remove kludge.
20042
20043 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20044
20045         * sel-sched.c (sel_region_init): Move call to
20046         sel_setup_region_sched_flags after setup_current_loop_nest.
20047
20048 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
20049
20050         PR rtl-optimization/48272
20051         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20052         init_insn_reg_pressure_info.  Adjust a caller.
20053         * sched-int.h (init_insn_reg_pressure_info): Declare.
20054         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20055         when sched-pressure is enabled.
20056
20057 2011-04-08  Richard Guenther  <rguenther@suse.de>
20058
20059         * gimple.c (gimple_set_modified): Do not queue calls to
20060         MODIFIED_NORETURN_CALLS here ...
20061         * tree-ssa-operands.c (update_stmt_operands): ... but here.
20062
20063 2011-04-08  Richard Guenther  <rguenther@suse.de>
20064
20065         PR lto/48467
20066         * toplev.c (lang_dependent_init): Do not open asm_out_file
20067         in WPA mode, nor perform debug machinery initialization.
20068         (finalize): Do not unlink asm_out_file in WPA mode.
20069
20070 2011-04-08  Richard Guenther  <rguenther@suse.de>
20071
20072         * gimple.h (gimple_call_fntype): New function.
20073         (gimple_call_return_type): Use it.
20074         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20075         * gimple-low.c (gimple_check_call_args): Likewise.
20076         * gimple.c (gimple_call_flags): Likewise.
20077         (gimple_call_arg_flags): Likewise.
20078         (gimple_call_return_flags): Likewise.
20079         * tree-cfg.c (verify_gimple_call): Likewise.
20080         (do_warn_unused_result): Likewise.
20081         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20082         * value-prof.c (gimple_ic_transform): Fix fndecl check.
20083
20084 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
20085
20086         PR rtl-optimization/48235
20087         * sel-sched.c (code_motion_process_successors): Recompute the last
20088         insn in basic block if control flow changed.
20089         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
20090         Update condition for ilist_remove.
20091
20092 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20093
20094         PR rtl-optimization/48302
20095         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20096         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
20097         it to record added preheader blocks.
20098         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
20099         on to sel_add_loop_preheaders.
20100         (sel_region_init): Move call to setup_current_loop_nest after
20101         sel_init_bbs.
20102
20103 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20104
20105         PR target/48273
20106         * cfgloop.h (loop_has_exit_edges): New helper.
20107         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20108         non-clonable.
20109         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20110         that have no exit edges.
20111
20112 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20113
20114         PR rtl-optimization/48442
20115         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
20116         all callers.  Adjust assert.
20117
20118 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
20119
20120         PR tree-optimization/48377
20121         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20122         is_packed to true even for types with smaller TYPE_ALIGN than
20123         TYPE_SIZE.
20124
20125 2011-04-08  Richard Guenther  <rguenther@suse.de>
20126
20127         PR bootstrap/48513
20128         * doc/tm.texi: Re-generate.
20129
20130 2011-04-08  Wei Guozhi  <carrot@google.com>
20131
20132         PR target/47855
20133         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20134         * config/arm/arm.c (arm_attr_length_push_multi): New function.
20135         * config/arm/arm.md (*push_multi): Change the length computation to
20136         call a C function.
20137
20138 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
20139
20140         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20141         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20142         * doc/tm.texi: Regenerate.
20143         * system.h (ASM_OUTPUT_BSS): Poison.
20144         * varasm.c (asm_output_bss): Remove function.
20145         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20146
20147         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20148         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20149         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20150         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20151         Likewise.
20152         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20153         Likewise.
20154         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20155         Likewise.
20156         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20157
20158 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20159
20160         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20161         EnumValue lines.
20162
20163 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20164
20165         * config/m68k/m68k.c (m68k_handle_option): Don't handle
20166         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20167         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20168         OPT_mcpu32.
20169         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20170         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20171         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20172         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20173         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20174         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20175         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20176         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20177         options.  Don't map other m68k options manually.  Don't handle
20178         old-style options as canonical.
20179         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20180         * doc/install.texi (m68k-*-*): Document binutils version requirement.
20181
20182 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20183
20184         * basic-block.h (force_nonfallthru): Move to...
20185         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20186         (force_nonfallthru): ...here.
20187         * cfghooks.c (force_nonfallthru): New function.
20188         * cfgrtl.c (force_nonfallthru): Rename into...
20189         (rtl_force_nonfallthru): ...this.
20190         (commit_one_edge_insertion): Do not set AUX field.
20191         (commit_edge_insertions): Do not discover new basic blocks.
20192         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20193         (cfg_layout_rtl_cfg_hooks): Likewise.
20194         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20195         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
20196         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20197
20198 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
20199
20200         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20201         Remove macros.
20202
20203 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
20204
20205         * config/i386/sse.md: Update copyright year.
20206         (avxcvtvecmode): Remove.
20207         (sse_movhlps): Merge with *avx_movhlps.
20208         (sse_movlhps): Merge with *avx_movlhps.
20209         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20210         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20211         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20212         (sse_loadhps): Merge with *avx_loadhps.
20213         (sse_storelps): Merge with *avx_storelps.
20214         (sse_loadlps): Merge with *avx_loadlps.
20215         (sse_movss): Merge with *avx_movss.
20216         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20217         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20218         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20219         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20220         (vec_set<mode>_0): Ditto.
20221         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20222         (sse4_1_insertps): Merge with *avx_insertps.
20223         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20224         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20225         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20226         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20227         (sse2_storehpd): Merge with *avx_storehpd.
20228         (sse2_loadhpd): Merge with *avx_loadhpd.
20229         (sse2_loadlpd): Merge with *avx_loadlpd.
20230         (sse2_movsd): Merge with *avx_movsd.
20231         (*vec_concatv2df): Merge with *vec_concatv2df.
20232
20233 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
20234
20235         PR debug/48343
20236         * combine.c (combine_instructions): Add last_combined_insn,
20237         update it if insn is after it, pass it to all try_combine calls.
20238         (try_combine): Add last_combined_insn parameter, pass it instead of
20239         i3 to propagate_for_debug.
20240
20241 2011-04-07  Nick Clifton  <nickc@redhat.com>
20242
20243         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20244         to handle MDR <-> data register transfers.
20245         (movhi_internal): Likewise.
20246
20247 2011-04-07  Alan Modra  <amodra@gmail.com>
20248
20249         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20250         previous stack info.
20251
20252 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20253
20254         PR target/43920
20255         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
20256         flow_find_cross_jump.  Swap variables to implement backward replacement.
20257         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20258
20259 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20260
20261         PR target/43920
20262         * cfgcleanup.c (walk_to_nondebug_insn): New function.
20263         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
20264         and bb2.
20265         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20266         src1 or src2.  Redirect edges to the last basic block.  Update
20267         frequency and count on multiple basic blocks in case of fallthru.
20268
20269 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20270
20271         PR target/43920
20272         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20273         function.
20274         (old_insns_match_p): Change return type.  Replace return false/true
20275         with return dir_none/dir_both.  Use can_replace_by.
20276         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
20277         direction from dir_p.  Register replacement direction in dir, last_dir
20278         and afterlast_dir.  Handle new return type of old_insns_match_p using
20279         merge_dir.  Return replacement direction in dir_p.
20280         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20281         return type of old_insns_match_p.
20282         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20283         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20284         flow_find_cross_jump.
20285         * basic-block.h (enum replace_direction): New type.
20286         (flow_find_cross_jump): Add parameter to declaration.
20287
20288 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20289
20290         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20291         (AVXMODEDCVTPS2DQ): Ditto.
20292         (VEC_FLOAT_MODE): Ditto.
20293         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
20294         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20295         (<any_logic:code><mode>3): Use VF mode iterator.
20296         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20297         Use VF mode iterator.
20298         (copysign<mode>3): Use VF mode iterator.
20299         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
20300         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20301         (*<any_logic:code><MODEF:mode>3): Merge with
20302         *avx_<any_logic:code><MODEF:mode>3.
20303         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20304         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20305         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20306         (avx_cvtdq2ps<avxmodesuffix>): Remove.
20307         (sse2_cvtdq2ps): Use %v modifier.
20308         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20309         (avx_cvtps2dq<avxmodesuffix>): Remove.
20310         (sse2_cvtps2dq): Use %v modifier.
20311         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20312         (avx_cvttps2dq<avxmodesuffix>): Remove.
20313         (sse2_cvttps2dq): Use %v modifier.
20314         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20315         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20316         (sse2_cvtsd2siq): Fix insn template.
20317         (sse2_cvtsd2siq_2): Ditto.
20318         (sse2_cvttsd2siq): Ditto.
20319         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20320         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20321
20322 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20323
20324         * gcov-io.c: Use GCC Runtime Library Exception.
20325
20326 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
20327
20328         PR debug/48466
20329         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20330         as base_reg whatever register reg has been eliminated to, instead
20331         of hardcoding STACK_POINTER_REGNUM.
20332
20333 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20334
20335         * doc/tm.texi.in: Document C target hooks as separate from general
20336         target hooks.
20337         * doc/tm.texi: Regenerate.
20338         * genhooks.c (struct hook_desc): Add docname field.
20339         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
20340         docname field.
20341         (hook_array): Include c-target.def.
20342         (emit_documentation): Use docname field in output.
20343         (emit_init_macros): Take docname argument.  Only emit definitions
20344         for hooks matching docname.
20345         (main): Expect additional arguments in all cases.  Pass argument
20346         to emit_init_macros.
20347         * target.def: Move initial macro definitions and comments to
20348         target-hooks-macros.h.
20349         (gcc_targetcm): Move to c-family/c-target.def.
20350         * target.h (targetcm): Move declaration to c-family/c-target.h.
20351         * targhooks.c (default_handle_c_option): Move to
20352         c-family/c-opts.c.
20353         * targhooks.h (default_handle_c_option): Move declaration to
20354         c-family/c-common.h.
20355         * target-hooks-macros.h: New file.
20356         * config.gcc (target_has_targetcm): Define and use to add to
20357         c_target_objs and cxx_target_objs.
20358         * config/default-c.c: New file.
20359         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
20360         of target.h and target-def.h.
20361         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
20362         (darwin_objc_construct_string, darwin_cfstring_ref_p,
20363         darwin_check_cfstring_format_arg): Make static.
20364         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20365         TARGET_STRING_OBJECT_REF_TYPE_P,
20366         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
20367         * config/darwin-protos.h (darwin_objc_construct_string,
20368         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
20369         declare.
20370         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20371         TARGET_STRING_OBJECT_REF_TYPE_P,
20372         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
20373         * config/t-darwin (darwin-c.o): Update dependencies.
20374         * system.h (TARGET_HAS_TARGETCM): Poison.
20375         * Makefile.in (TARGET_H): Update.
20376         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
20377         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
20378         (default-c.o): New target.
20379         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
20380         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
20381         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
20382         c-target.def.
20383         (build/genhooks.o): Update dependencies.
20384
20385 2011-04-06  Richard Guenther  <rguenther@suse.de>
20386
20387         * ipa-inline.c (enum inlining_mode): Remove.
20388         (cgraph_flatten): Use some other token.
20389         (cgraph_edge_early_inlinable_p): New function, split out from ...
20390         (cgraph_perform_always_inlining): New function, split out from ...
20391         (cgraph_decide_inlining_incrementally): ... here.
20392         (cgraph_mark_inline_edge): Adjust.
20393         (cgraph_early_inlining): Re-structure.
20394         (pass_early_inline): Require SSA form.
20395
20396 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
20397             Julian Brown  <julian@codesourcery.com>
20398             Mark Shinwell  <shinwell@codesourcery.com>
20399
20400         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
20401         LO_REGS only for Thumb-1.
20402         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
20403         be used in short instructions when optimising for size on Thumb-2.
20404
20405 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
20406
20407         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
20408         associated with user returns to be preserved.
20409
20410 2011-04-06  Tristan Gingold  <gingold@adacore.com>
20411
20412         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
20413         symbol_queue_size, DBXOUT_DECR_NESTING,
20414         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
20415         if XCOFF_DEBUGGING_INFO.
20416
20417 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20418
20419         * config/i386/i386.md (attribute isa): New.
20420         (attribute enabled): New.
20421         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
20422         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
20423         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
20424         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
20425         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
20426         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20427         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
20428         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
20429
20430         * config/i386/sse.md (VF): New mode iterator.
20431         (VF1): Ditto.
20432         (VF2): Ditto.
20433         (VF_128): Ditto.
20434         (SSEMODEF4): Remove.
20435         (attribute sse): Handle V8SF and V4DF modes.
20436         (<absneg:code><mode>2): Use VF mode iterator.
20437         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
20438         mode iterator.
20439         (<plusminus_insn><mode>3): Use VF mode iterator.
20440         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20441         Use VF mode iterator.
20442         (<sse>_vm<plusminus_insn><mode>3): Merge with
20443         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
20444         (mul<mode>3): Use VF mode iterator.
20445         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
20446         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
20447         mode iterator.
20448         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
20449         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
20450         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
20451         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
20452         mode iterator.
20453         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
20454         Use VF1 mode iterator.
20455         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
20456         (sqrt<VF2:mode>2): New expander.
20457         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
20458         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
20459         and sqrtv2df2.  Use VF mode iterator.
20460         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
20461         mode iterator.
20462         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
20463         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
20464         Use VF1 mode iterator.
20465         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
20466         (<smaxmin:code><mode>3): Use VF mode iterator.
20467         (*<smaxmin:code><mode>3_finite): Merge with
20468         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
20469         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20470         (<sse>_vm<smaxmin:code><mode>2): Merge with
20471         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
20472         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
20473         mode iterator.
20474         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
20475         mode iterator.
20476         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
20477         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
20478         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
20479         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
20480         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
20481         VF mode iterator.
20482         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
20483         Use VF_128 mode iterator.
20484         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
20485         mode iterator.
20486         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
20487         VF_128 mode iterator.
20488         (vcond<mode>): Use VF mode iterator.
20489         * config/i386/predicates.md (sse_comparison_operator): Merge with
20490         avx_comparison_float_operator.  Do not declare as special_predicate.
20491         * config/i386/i386.c (struct builtin_description): Update for renamed
20492         compare patterns.
20493         (ix86_expand_args_builtin): Ditto.
20494         (ix86_expand_sse_compare_mask): Ditto.
20495
20496 2011-04-06  Richard Guenther  <rguenther@suse.de>
20497
20498         * tree-inline.c (estimate_num_insns): For calls simply account
20499         for all passed arguments and a used return value.
20500
20501 2011-04-06  Richard Guenther  <rguenther@suse.de>
20502
20503         PR tree-optimization/47663
20504         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
20505         call_stmt_time fields.
20506         (cgraph_edge_inlinable_p): Declare.
20507         (cgraph_edge_recursive_p): New inline function.
20508         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
20509         (cgraph_clone_edge): Copy it.
20510         * ipa-inline.c (cgraph_estimate_edge_time): New function.
20511         Account for call stmt time.
20512         (cgraph_estimate_time_after_inlining): Take edge argument.
20513         (cgraph_estimate_edge_growth): Account call stmt size.
20514         (cgraph_estimate_size_after_inlining): Take edge argument.
20515         (cgraph_mark_inline_edge): Adjust.
20516         (cgraph_check_inline_limits): Likewise.
20517         (cgraph_recursive_inlining_p): Remove.
20518         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
20519         (cgraph_decide_recursive_inlining): Take edge argument and
20520         adjust.
20521         (cgraph_decide_inlining_of_small_functions): Do not avoid
20522         diags for recursive inlining here.
20523         (cgraph_flatten): Adjust.
20524         (cgraph_decide_inlining_incrementally): Likewise.
20525         (estimate_function_body_sizes): Remove call cost handling.
20526         (compute_inline_parameters): Initialize caller edge call costs.
20527         (cgraph_estimate_edge_growth): New function.
20528         (cgraph_estimate_growth): Use it.
20529         (cgraph_edge_badness): Likewise.
20530         (cgraph_check_inline_limits): Take an edge argument.
20531         (cgraph_decide_inlining_of_small_functions): Adjust.
20532         (cgraph_decide_inlining): Likewise.
20533         * tree-inline.c (estimate_num_insns): Only account for call
20534         return value if it is used.
20535         (expand_call_inline): Avoid diagnostics on recursive inline
20536         functions here.
20537         * lto-cgraph.c (lto_output_edge): Output edge call costs.
20538         (input_edge): Input edge call costs.
20539
20540 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20541
20542         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
20543
20544 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
20545
20546         * doc/invoke.texi (Spec Files): Fix typo.
20547
20548 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
20549
20550         * profile.c (branch_prob): Move declaration of local variable.  Remove
20551         obsolete ??? comment.  Expand the location explicitly instead of using
20552         the LOCATION_FILE and LOCATION_LINE macros.
20553
20554 2011-04-06  Wei Guozhi  <carrot@google.com>
20555
20556         PR target/47855
20557         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
20558         (arm_cond_branch): Likewise.
20559         (arm_cond_branch_reversed): Likewise.
20560         (arm_jump): Likewise.
20561         (push_multi): Likewise.
20562         * config/arm/constraints.md (Py): New constraint.
20563
20564 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20565
20566         PR bootstrap/48471
20567         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
20568         Move these...
20569         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
20570         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
20571         #ifdef DBX_DEBUGGING_INFO.
20572
20573 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
20574
20575         PR bootstrap/48403
20576         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
20577         if old and new states differ.
20578
20579 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
20580
20581         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
20582         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
20583         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20584         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
20585         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
20586         mcfv4e): Use Alias.
20587         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
20588         ColdFire options to -mcpu= options.
20589
20590 2011-04-05  Jeff Law  <law@redhat.com>
20591
20592         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
20593         check if BB is a successor of LOOP->header and return
20594         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
20595
20596 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
20597
20598         * cprop.c (struct reg_use): Remove.
20599         (reg_use_table): Make an array of RTX.
20600         (find_used_regs, constprop_register, local_cprop_pass,
20601         bypass_block): Simplify users of reg_use_table.
20602         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
20603         on one of the uses found by find_used_regs.
20604
20605 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20606
20607         PR bootstrap/48469
20608         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
20609         declaration.
20610
20611 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20612
20613         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
20614         as an rtx.
20615         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
20616
20617 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
20618
20619         PR middle-end/48441
20620         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
20621
20622 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20623
20624         * combine.c: Include obstack.h.
20625         (struct insn_link): Define.
20626         (uid_log_links): Adjust type.
20627         (FOR_EACH_LOG_LINK): New macro.
20628         (insn_link_obstack): Declare.
20629         (alloc_insn_link): Define.
20630         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
20631         type of link variables.
20632         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
20633         (try_combine, record_promoted_values, distribute_notes): Likewise.
20634         (distribute_links): Likewise.  Tweak prototype.
20635         (clear_log_links): Delete.
20636         (adjust_for_new_dest): Call alloc_insn_link.
20637         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
20638
20639 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20640
20641         * gcse.c (modify_mem_list): Convert to an array of VECs.
20642         (canon_modify_mem_list, compute_transp): Tweak formatting.
20643         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
20644         (load_killed_in_block_p): Likewise.
20645         (record_last_mem_set_info): Likewise.
20646         (clear_modify_mem_tables): Likewise.
20647
20648 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20649
20650         PR middle-end/48461
20651         * function.c (emit_use_return_register_into_block): Only define if
20652         HAVE_return.
20653
20654 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
20655
20656         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
20657
20658 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
20659
20660         * config/rx/rx-opts.h: New.
20661         * config/rx/rx.c (rx_cpu_type): Remove.
20662         (rx_handle_option): Don't assert that global structures are in
20663         use.  Access variables via opts pointer.  Defer most handling of
20664         OPT_mint_register_.  Use error_at.
20665         (rx_option_override): Handle deferred OPT_mint_register_ here.
20666         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
20667         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
20668         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
20669         (rx_cpu_types): New Enum and EnumValue entries.
20670         (mint-register=): Use Defer and use Var accordingly.
20671
20672 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20673
20674         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20675         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20676         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20677         Move these...
20678         (debug_free_queue, debug_nesting, symbol_queue_index):
20679         ...and these...
20680         * dbxout.c: ...to here.  Make static.
20681
20682 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20683
20684         * gcse.c (modify_pair): Define.  Define a VEC of it.
20685         (canon_modify_mem_list): Convert to an array of VECs.
20686         (free_insn_expr_list_list): Delete.
20687         (clear_modify_mem_tables): Call VEC_free instead.
20688         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20689         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20690         (canon_list_insert, compute_transp): Likewise.
20691
20692 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20693
20694         PR target/43920
20695         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20696         for size.
20697
20698 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20699
20700         PR target/43920
20701         * function.c (emit_use_return_register_into_block): New function.
20702         (thread_prologue_and_epilogue_insns): Use
20703         emit_use_return_register_into_block.
20704
20705 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20706
20707         PR target/43920
20708         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20709         insn.
20710
20711 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20712
20713         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20714
20715 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
20716
20717         * config/arm/arm.md (define_constants for unspec): Replace with
20718         define_c_enum.
20719         (define_constants for unspecv): Replace with define_c_enum.
20720         * config/arm/neon.md (define_constants for unspec): Replace with
20721         define_c_enum.
20722
20723 2011-04-04  Richard Henderson  <rth@redhat.com>
20724
20725         PR bootstrap/48400
20726         * dwarf2out.c (output_line_info): Always emit line info from
20727         at least one section.
20728         (dwarf2out_init): Create text_section_line_info here ...
20729         (set_cur_line_info_table): ... not here.
20730
20731 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
20732
20733         PR target/48380
20734         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20735         not called.
20736
20737         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20738
20739 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
20740
20741         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20742         (expr_equiv_p): Remove.
20743         (insert_set_in_table): Look at <dest, src> pair instead of expr.
20744         (hash_scan_set): Update call to insert_set_in_table.
20745         (dump_hash_table): Dump <dest, src> pair.
20746         (lookup_set): Simplify.  Lookup <dest, src> pair.
20747         (compute_transp): Remove, fold heavily simplified code into...
20748         (compute_local_properties): ...here.  Expect COMP and TRANSP
20749         unconditionally.
20750         (find_avail_set): Take set directly from struct expr.
20751         (find_bypass-set): Likewise.
20752         (bypass_block): Likewise.
20753         (cprop_insn): Likewise.  Remove redundant INSN_P test.
20754
20755         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20756         checks on form of COND from find_implicit_sets to here.
20757         (find_implicit_sets): Cleanup control flow. Split critical edges
20758         if it exposes implicit sets.  Allocate/resize implicit_sets as
20759         necessary.
20760         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20761         changed something.  Run df_analyze after find_implicit_sets if any
20762         edges were split.  Do not allocate implicit_sets here.
20763
20764         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20765         (gcse_obstack): Renamed to cprop_obstack.
20766         (GNEW, GNEWVEC, GNEWVAR): Remove.
20767         (gmalloc): Remove.
20768         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20769         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20770         (gcse_alloc): Likewise, and rename to cprop_alloc.
20771         (alloc_gcse_men, free_gcse_mem): Remove.
20772         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20773         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20774         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20775
20776         * cprop.c (oprs_not_set_p): Remove.
20777         (mark_set, mark_clobber): Remove.
20778         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20779         (reg_not_set_p): New function.
20780         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20781         (cprop_insn): Likewise.
20782         (cprop_jump): Use FOR_EACH_EDGE.
20783
20784 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
20785
20786         PR bootstrap/48403
20787         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20788         (rank_for_schedule): Use scheduled_insns vector instead of
20789         last_scheduled_insn.
20790         (ok_for_early_queue_removal): Likewise.
20791         (queue_to_ready): Search forward in nonscheduled_insns_begin if
20792         we have a dbg_cnt.
20793         (choose_ready): Likewise.
20794         (commit_schedule): Use VEC_iterate.
20795         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
20796         a dbg_cnt, use it and ensure the first insn is in the ready list.
20797         (haifa_sched_init): Allocate scheduled_insns.
20798         (sched_extend_ready_list): Don't allocate it; reserve space.
20799         (haifa_sched_finish): Free it.
20800
20801 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
20802
20803         * optc-gen.awk: Always remove type from Variable entry before
20804         recording in var_seen.
20805
20806 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
20807
20808         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20809         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20810         call to tidy_fallthru_edges.
20811
20812 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
20813
20814         * doc/options.texi (ToLower): Document.
20815         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20816         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20817         * opts.h (cl_option): Add cl_tolower field.
20818         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20819         arguments with lowercase strings.
20820         * config/rx/rx.opt (mcpu=): Add ToLower.
20821         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20822         argument.
20823
20824 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
20825
20826         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20827
20828 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
20829
20830         * config/vax/vax.c: Include reload.h.
20831
20832 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
20833
20834         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20835         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20836         (sparc_preferred_reload_class): New function.
20837
20838 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
20839
20840         PR debug/48401
20841         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20842         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20843
20844 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
20845
20846         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20847         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20848
20849 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
20850
20851         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20852         (ASM_OUTPUT_ALIGNED_BSS): Define.
20853
20854 2011-04-03  Michael Matz  <matz@suse.de>
20855
20856         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20857         and next_slot members.
20858         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20859         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20860         (lto_streamer_cache_append): Declare.
20861         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20862         unsigned index, remove offset parameter, ensure that we append
20863         or update existing entries.
20864         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20865         parameter, update next_slot for append.
20866         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20867         parameter.
20868         (lto_streamer_cache_insert_at): Likewise.
20869         (lto_streamer_cache_append): New function.
20870         (lto_streamer_cache_lookup): Use unsigned index.
20871         (lto_streamer_cache_get): Likewise.
20872         (lto_record_common_node): Don't test tree_node_can_be_shared.
20873         (preload_common_node): Adjust call to lto_streamer_cache_insert.
20874         (lto_streamer_cache_delete): Don't free offsets member.
20875         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20876         (lto_output_string_with_length): Use lto_output_data_stream.
20877         (lto_output_tree_header): Remove ix parameter, don't write it.
20878         (lto_output_builtin_tree): Likewise.
20879         (lto_write_tree): Adjust callers to above, don't track and write
20880         offset, write unsigned index.
20881         (output_unreferenced_globals): Don't emit all global vars.
20882         (write_global_references): Use unsigned indices.
20883         (lto_output_decl_state_refs): Likewise.
20884         (write_symbol): Likewise.
20885         * lto-streamer-in.c (lto_input_chain): Move earlier.
20886         (input_function): Use unsigned index.
20887         (input_alias_pairs): Don't read and then ignore all global vars.
20888         (lto_materialize_tree): Remove ix_p parameter, don't read index,
20889         don't pass it back, use lto_streamer_cache_append.
20890         (lto_register_var_decl_in_symtab): Use unsigned index.
20891         (lto_register_function_decl_in_symtab): Likewise.
20892         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20893         index.
20894         (lto_get_builtin_tree): Don't read index, use
20895         lto_streamer_cache_append.
20896         (lto_read_tree): Adjust call to lto_materialize_tree.
20897
20898         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20899         don't use function calls in arguments to MIN.
20900
20901         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20902         twice.
20903
20904         * gimple.c (gimple_type_leader_entry): Mark deletable.
20905
20906 2011-04-03  Alan Modra  <amodra@gmail.com>
20907
20908         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20909
20910 2011-04-03  Michael Matz  <matz@suse.de>
20911
20912         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20913         an integer.
20914         * tree.h (tree_decl_non_common.vindex): Adjust comment.
20915
20916 2011-04-03  Michael Matz  <matz@suse.de>
20917
20918         * cgraphbuild.c (record_reference): Canonicalize constructor values.
20919         * gimple-fold.c (canonicalize_constructor_val): Accept being called
20920         without function context.
20921         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20922         current_function_decl and cfun.
20923
20924 2011-04-03  Michael Matz  <matz@suse.de>
20925
20926         * tree.c (decl_init_priority_insert): Don't create entry for
20927         default priority.
20928         (decl_fini_priority_insert): Ditto.
20929         (fields_compatible_p, find_compatible_field): Remove.
20930         * tree.h (fields_compatible_p, find_compatible_field): Remove.
20931         * gimple.c (gimple_compare_field_offset): Adjust block comment.
20932
20933 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
20934
20935         * combine.c (try_combine): Remove useless local variable.
20936
20937 2011-04-03  Richard Guenther  <rguenther@suse.de>
20938             Ira Rosen  <ira.rosen@linaro.org>
20939
20940         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20941         non-variable offsets and compare the remaining bases of the two
20942         accesses instead of looking for exact same data-ref.
20943
20944 2011-04-02  Kai Tietz  <ktietz@redhat.com>
20945
20946         PR target/48416
20947         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20948
20949         * i386.c (ix86_is_msabi_thiscall): New helper function.
20950         (ix86_is_type_thiscall): New helper function.
20951         (ix86_comp_type_attributes): Handle thiscall for method-functions
20952         special.
20953         (init_cumulative_args): Likewise.
20954         (find_drap_reg): Likewise.
20955         (ix86_static_chain): Likewise.
20956         (x86_this_parameter): Likewise.
20957         (x86_output_mi_thunk): Likewise.
20958
20959 2011-04-01  Olivier Hainque  <hainque@adacore.com>
20960             Nicolas Setton  <setton@adacore.com>
20961             Eric Botcazou  <ebotcazou@adacore.com>
20962
20963         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20964         (add_gnat_descriptive_type_attribute): New function.
20965         (gen_array_type_die): Call it.
20966         (gen_enumeration_type_die): Likewise.
20967         (gen_struct_or_union_type_die): Likewise.
20968         (modified_type_die): Likewise.
20969         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20970         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20971         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20972
20973 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20974
20975         PR bootstrap/48148
20976         * dwarf2out.c (resolve_addr): Don't call force_decl_die
20977         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20978
20979         Revert:
20980         2011-03-17  Richard Guenther  <rguenther@suse.de>
20981
20982         PR bootstrap/48148
20983         * lto-cgraph.c (input_overwrite_node): Clear the abstract
20984         origin for decls in other ltrans units.
20985         (input_varpool_node): Likewise.
20986
20987 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
20988
20989         PR middle-end/48335
20990         * expr.c (expand_assignment): Handle all possibilities
20991         if TO_RTX is CONCAT.
20992         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20993         (store_split_bit_field): If SUBREG_REG (op0) or
20994         op0 itself has smaller mode than word, return it
20995         for offset 0 and const0_rtx for out-of-bounds stores.
20996         If word is const0_rtx, skip it.
20997
20998 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
20999
21000         * config/h8300/h8300.c (print_operand_address): Rename to...
21001         (h8300_print_operand_address): ...this. Make static. Adjust comments.
21002         Call h8300_print_operand and h8300_print_operand_address instead of
21003         print_operand and print_operand_address. Declare.
21004         (print_operand): Renake to...
21005         (h8300_print_operand): ...this. Make static. Adjust comments.
21006         Call h8300_print_operand instead of print_operand. Declare.
21007         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21008         (h8300_register_move_cost): Likewise.
21009         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21010         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21011         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21012         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21013         * config/h8300/h8300-protos.h (print_operand): Delete.
21014         (print_operand_address): Delete.
21015
21016 2011-04-01  Richard Henderson  <rth@redhat.com>
21017
21018         PR 48400
21019         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21020         in strict mode before dwarf4.  Re-order tests to early out
21021         before switching sections.
21022
21023 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
21024
21025         * config/h8300/constraints.md: New file.
21026         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
21027         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21028         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21029         * config/h8300/predicates.md (bit_operand): Likewise.
21030         (incdec_operand): Use satisfies_constraint_M and
21031         satisfies_constraint_O.  Don't use C code block.
21032         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21033         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21034         (compute_mov_length): Use satisfies_constraint_G.
21035         (fix_bit_operand): Use satisfies_constraint_U.
21036         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21037         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21038         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21039         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21040         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21041         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21042         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21043         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21044         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21045         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21046         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21047         (EXTRA_MEMORY_CONSTRAINT): Delete.
21048
21049 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
21050             Michael Meissner  <meissner@linux.vnet.ibm.com>
21051
21052         PR target/48262
21053         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21054         operands, as per the specifications.
21055
21056         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21057         (vec_extract_evenv4sf): Ditto.
21058         (vec_extract_evenv8hi): Ditto.
21059         (vec_extract_evenv16qi): Ditto.
21060         (vec_extract_oddv4si): Ditto.
21061
21062 2011-03-31  Mark Wielaard  <mjw@redhat.com>
21063
21064         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21065         high_pc attribute if the CU has no associated code. Only output
21066         DW_AT_entry_pc for CU if not generating strict dwarf and
21067         dwarf_version < 4.
21068
21069 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
21070
21071         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21072         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21073         out of ...
21074         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21075         * final.c (final_start_function): Call the new function rather
21076         than using a NULL argument for dwarf2out_frame_debug.
21077
21078         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21079         that contains the prologue.
21080
21081         * haifa-sched.c (queue_insn): New arg REASON.  All callers
21082         changed.  Print it in debugging output.
21083
21084         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21085
21086         * sched-ebb.c (begin_schedule_ready): Remove second argument.
21087         Split most of the code into...
21088         (begin_move_insn): ... here.  New function.
21089         (ebb_sched_info): Add a pointer to it.
21090         * haifa-sched.c (scheduled_insns): New static variable.
21091         (sched_extend_ready_list): Allocate it.
21092         (schedule_block): Use it to record the order of scheduled insns.
21093         Perform RTL changes to move insns only after all scheduling
21094         decisions have been made.
21095         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21096         begin_move_insn field.
21097         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21098         * sched-int.h (struct haifa_sched_info): Remove second argument
21099         from begin_schedule_ready hook.  Add new member begin_move_insn.
21100         * sched-rgn.c (begin_schedule_ready): Remove second argument.
21101         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21102
21103         * haifa-sched.c (prune_ready_list): New function, broken out of
21104         schedule_block.
21105         (schedule_block): Use it.
21106
21107 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21108
21109         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21110
21111 2011-04-01  Kai Tietz  <ktietz@redhat.com>
21112
21113         * config.gcc (*-*-mingw*): Allow as option the
21114         posix threading model.
21115         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
21116         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21117         definition.
21118         (CPP_SPEC): Add pthread/no-pthread handling.
21119         (LIB_SPEC): Likewise.
21120         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21121         (LIB_SPEC): Likewise.
21122         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21123         flag to pass -pthread option for shared libgcc build.
21124         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21125         for shared libgcc build.
21126         * config/i386/t-mingw-pthread: New file.
21127         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21128         New define to enable use of library pthread by default.
21129         * config/i386/mingw.opt (pthread): New driver option.
21130         (no-pthread): New driver option.
21131         * config/i386/cygming.opt: Make sure trailing empty line is retained.
21132         * config/i386/mingw-w64.opt: Likewise.
21133
21134 2011-04-01  Gary Funck  <gary@intrepid.com>
21135
21136         * c-decl.c (grokdeclarator): Fix formatting.
21137
21138 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21139
21140         * expr.c (emit_block_move_via_movmem): Use n_generator_args
21141         instead of n_operands.
21142         (set_storage_via_setmem): Likewise.
21143         * optabs.c (maybe_gen_insn): Likewise.
21144         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21145         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21146         (mips_expand_builtin_direct): Likewise.
21147         * config/spu/spu.c (expand_builtin_args): Likewise.
21148
21149 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21150
21151         * recog.h (insn_data_d): Add n_generator_args.
21152         * genoutput.c (data): Likewise.
21153         (output_insn_data): Print it.
21154         (max_opno, num_dups): Delete.
21155         (scan_operands): Just fill in "d->operand[...]".
21156         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21157
21158 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21159
21160         * gensupport.h (pattern_stats): New structure.
21161         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21162         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21163         (max_operand_1, max_operand_vec): Delete.
21164         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21165
21166 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
21167
21168         * emit-rtl.c (emit_pattern_after_setloc): New function.
21169         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21170         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21171         (emit_pattern_after): New function.
21172         (emit_insn_after, emit_jump_insn_after): Call it.
21173         (emit_call_insn_after, emit_debug_insn_after): Likewise.
21174         (emit_pattern_before_setloc): New function.
21175         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21176         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21177         Likewise.
21178         (emit_pattern_before): New function.
21179         (emit_insn_before, emit_jump_insn_before): Call it.
21180         (emit_call_insn_before, emit_debug_insn_before): Likewise.
21181
21182 2011-03-31  Richard Henderson  <rth@redhat.com>
21183
21184         * dwarf2out.c (dw_separate_line_info_ref): Remove.
21185         (dw_separate_line_info_entry): Remove.
21186         (enum dw_line_info_opcode): New.
21187         (dw_line_info_entry): Use it.
21188         (dw_line_info_table, dw_line_info_table_p): New.
21189         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21190         (line_info_table, line_info_label_num): Remove.
21191         (line_info_table_in_use): Remove.
21192         (separate_line_info_table): Remove.
21193         (separate_line_info_table_allocated): Remove.
21194         (separate_line_info_table_in_use): Remove.
21195         (LINE_INFO_TABLE_INCREMENT): Remove.
21196         (line_info_label_num): New.
21197         (cur_line_info_table): New.
21198         (text_section_line_info, cold_text_section_line_info): New.
21199         (separate_line_info): New.
21200         (SEPARATE_LINE_CODE_LABEL): Remove.
21201         (print_dwarf_line_table): Remove.
21202         (debug_dwarf): Don't dump it.
21203         (output_one_line_info_table): New.
21204         (output_line_info): Use it.
21205         (new_line_info_table): New.
21206         (set_cur_line_info_table): New.
21207         (dwarf2out_switch_text_section): Use it.
21208         (dwarf2out_begin_function): Likewise.
21209         (push_dw_line_info_entry): New.
21210         (dwarf2out_source_line): Rewrite for new line info tables.
21211         (dwarf2out_init): Remove dead initailizations.
21212
21213 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21214
21215         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
21216         various flags.
21217         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21218         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21219         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21220         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21221         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21222         * opt-functions.awk (flag_init, switch_bit_fields): New.
21223         (switch_flags): Don't handle flags moved to bit-fields.  Don't
21224         generate CL_MISSING_OK or CL_SAVE.
21225         * optc-gen.awk: Update to generate bit-field output as well as
21226         flags field.
21227         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21228         bit-field instead of CL_REJECT_DRIVER flag.
21229         * opts-common.c (generate_canonical_option,
21230         decode_cmdline_option): Use bit-fields instead of CL_* flags.
21231         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21232         instead of CL_REJECT_NEGATIVE flag.
21233         * toplev.c (print_switch_values): Use cl_report bit-field instead
21234         of CL_REPORT flag.
21235
21236 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21237
21238         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21239         a zero minimum index only if it is redundant.
21240
21241 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
21242
21243         PR rtl-optimization/48381
21244         * ira-color.c (assign_hard_reg): Use hard reg set intersection
21245         instead of ira_class_hard_reg_index for calculating conflicting
21246         hard registers.
21247
21248 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
21249
21250         * cprop.c: Clean up hash table building.
21251         (reg_avail_info): Remove.
21252         (oprs_available_p): Remove.
21253         (record_last_reg_set_info): Remove.
21254         (record_last_set_info): Remove.
21255         (reg_available_p): New function.
21256         (gcse_constant_p): Do not treat unfolded conditions as constants.
21257         (make_set_regs_unavailable): New function.
21258         (hash_scan_set): Simplify with new reg_available_p.
21259         (compute_hash_table_work): Traverse insns stream only once.
21260         Do not compute reg_avail_info. Traverse insns in reverse order.
21261         Record implicit sets after recording explicit sets from the block.
21262
21263 2011-03-31  Michael Matz  <matz@suse.de>
21264
21265         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21266
21267 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
21268
21269         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21270         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21271         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21272         (h8300_mode_dependent_address_p): New function.
21273         (h8300_get_index): Make static.
21274
21275 2011-03-31  Jeff Law  <law@redhat.com>
21276
21277         * reload1.c (elimination_effects): Fix typo in recent change.
21278
21279         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21280         typo potentially leading to null pointer dereference.
21281
21282         * caller-save.c (new_saved_hard_reg): Eliminate return value.
21283         (setup_save_areas): Corresponding changes to avoid useless
21284         assignments.
21285
21286         * jump.c (reversed_comparison_code_parts): Avoid successive return
21287         statements when REVERSE_CONDITION is defined.
21288
21289         * expr.c (expand_assignment): Avoid useless assignments.
21290         (expand_expr_real_1): Likewise.
21291         (expand_expr_real_2): Avoid useless statements.
21292
21293         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21294
21295         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21296
21297         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21298         statements.
21299
21300         * stmt.c (expand_expr_stmt): Avoid useless assignment.
21301
21302 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21303
21304         PR target/47109
21305         * doc/tm.texi.in (TARGET_VERSION): Remove.
21306         * doc/tm.texi: Regenerate.
21307         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21308         * collect2.c (main): Don't use TARGET_VERSION.
21309         * mips-tdump.c (main): Don't use TARGET_VERSION.
21310         * mips-tfile.c (main): Don't use TARGET_VERSION.
21311         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21312         * config/rs6000/vxworksae.h: Remove.
21313         * config/alpha/alpha.h (TARGET_VERSION): Remove.
21314         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21315         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21316         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21317         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21318         * config/arm/arm.h (TARGET_VERSION): Remove.
21319         * config/arm/coff.h (TARGET_VERSION): Remove.
21320         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21321         * config/arm/elf.h (TARGET_VERSION): Remove.
21322         * config/arm/freebsd.h (TARGET_VERSION): Remove.
21323         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21324         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21325         * config/arm/pe.h (TARGET_VERSION): Remove.
21326         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21327         * config/arm/semi.h (TARGET_VERSION): Remove.
21328         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21329         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21330         * config/arm/vxworks.h (TARGET_VERSION): Remove.
21331         * config/avr/avr.h (TARGET_VERSION): Remove.
21332         * config/bfin/bfin.h (TARGET_VERSION): Remove.
21333         * config/fr30/fr30.h (TARGET_VERSION): Remove.
21334         * config/frv/frv.h (TARGET_VERSION): Remove.
21335         * config/h8300/h8300.h (TARGET_VERSION): Remove.
21336         * config/i386/cygwin.h (TARGET_VERSION): Remove.
21337         * config/i386/darwin.h (TARGET_VERSION): Remove.
21338         * config/i386/darwin64.h (TARGET_VERSION): Remove.
21339         * config/i386/djgpp.h (TARGET_VERSION): Remove.
21340         * config/i386/freebsd.h (TARGET_VERSION): Remove.
21341         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
21342         * config/i386/gnu.h (TARGET_VERSION): Remove.
21343         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
21344         * config/i386/i386elf.h (TARGET_VERSION): Remove.
21345         * config/i386/linux.h (TARGET_VERSION): Remove.
21346         * config/i386/linux64.h (TARGET_VERSION): Remove.
21347         * config/i386/lynx.h (TARGET_VERSION): Remove.
21348         * config/i386/mingw32.h (TARGET_VERSION): Remove.
21349         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
21350         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
21351         * config/i386/netware.h (TARGET_VERSION): Remove.
21352         * config/i386/nto.h (TARGET_VERSION): Remove.
21353         * config/i386/openbsd.h (TARGET_VERSION): Remove.
21354         * config/i386/vxworks.h (TARGET_VERSION): Remove.
21355         * config/ia64/elf.h (TARGET_VERSION): Remove.
21356         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
21357         * config/ia64/hpux.h (TARGET_VERSION): Remove.
21358         * config/ia64/linux.h (TARGET_VERSION): Remove.
21359         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21360         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
21361         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21362         * config/lm32/lm32.h (TARGET_VERSION): Remove.
21363         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
21364         * config/m32c/m32c.h (TARGET_VERSION): Remove.
21365         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
21366         * config/m32r/m32r.h (TARGET_VERSION): Remove.
21367         * config/m68k/linux.h (TARGET_VERSION): Remove.
21368         * config/m68k/m68k.h (TARGET_VERSION): Remove.
21369         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
21370         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
21371         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
21372         * config/mep/mep.h (TARGET_VERSION): Remove.
21373         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
21374         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21375         * config/mips/iris6.h (MACHINE_TYPE): Remove.
21376         * config/mips/linux.h (TARGET_VERSION): Remove.
21377         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
21378         * config/mips/vxworks.h (TARGET_VERSION): Remove.
21379         * config/mmix/mmix.h (TARGET_VERSION): Remove.
21380         * config/mn10300/linux.h (TARGET_VERSION): Remove.
21381         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
21382         * config/pa/pa.h (TARGET_VERSION): Remove.
21383         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
21384         * config/picochip/picochip.h (TARGET_VERSION): Remove.
21385         * config/rs6000/aix.h (TARGET_VERSION): Remove.
21386         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
21387         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
21388         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
21389         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
21390         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
21391         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
21392         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
21393         * config/rs6000/linux.h (TARGET_VERSION): Remove.
21394         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
21395         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
21396         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
21397         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
21398         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
21399         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
21400         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
21401         * config/s390/linux.h (TARGET_VERSION): Remove.
21402         * config/s390/s390.h (TARGET_VERSION): Remove.
21403         * config/s390/tpf.h (TARGET_VERSION): Remove.
21404         * config/score/score.h (TARGET_VERSION): Remove.
21405         * config/sh/linux.h (TARGET_VERSION): Remove.
21406         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
21407         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
21408         * config/sh/sh.h (TARGET_VERSION): Remove.
21409         * config/sh/sh64.h (TARGET_VERSION): Remove.
21410         * config/sh/superh.h (TARGET_VERSION): Remove.
21411         * config/sh/vxworks.h (TARGET_VERSION): Remove.
21412         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
21413         * config/sparc/linux.h (TARGET_VERSION): Remove.
21414         * config/sparc/linux64.h (TARGET_VERSION): Remove.
21415         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
21416         TARGET_NAME32, TARGET_NAME): Remove.
21417         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
21418         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
21419         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
21420         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
21421         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
21422         * config/spu/spu.h (TARGET_VERSION): Remove.
21423         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
21424         * config/v850/v850.h (TARGET_VERSION): Remove.
21425         * config/vax/linux.h (TARGET_VERSION): Remove.
21426         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
21427         * config/xtensa/elf.h (TARGET_VERSION): Remove.
21428         * config/xtensa/linux.h (TARGET_VERSION): Remove.
21429
21430 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21431
21432         PR target/48142
21433         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
21434         frame-related from frame-unrelated adjustments to the stack pointer.
21435
21436 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
21437
21438         * common.opt (fdebug-types-section): Move earlier.
21439         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
21440
21441 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
21442
21443         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
21444         var.
21445
21446 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
21447
21448         * tree.h (CASE_CHAIN): Define.
21449         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
21450         (gimple_redirect_edge_and_branch): Likewise.
21451
21452 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21453
21454         PR middle-end/48367
21455         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
21456         calculation.
21457
21458 2011-03-30  Jeff Law  <law@redhat.com>
21459
21460         * PR bootstrap/48371
21461         * reload1.c (reload): Fix botch in last change.
21462
21463         * reload.h (struct reload): Fix typo introduced in last change.
21464
21465 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21466
21467         * config/arm/arm.opt (mhard-float, msoft-float): Mark
21468         Undocumented.  Remove help text.
21469         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
21470         -mhard-float.
21471
21472 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21473
21474         * doc/options.texi (NegativeAlias): Document.
21475         (Alias): Mention NegativeAlias.
21476         * opt-functions.awk: Handle NegativeAlias.
21477         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
21478         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
21479         * opts.h (CL_NEGATIVE_ALIAS): Define.
21480         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
21481         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
21482         OPT_mspe_.
21483         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
21484         Alias entries.
21485         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21486         mno-spe and mno-isel instead of mspe=no and -misel=no.
21487
21488 2011-03-29  Mark Wielaard  <mjw@redhat.com>
21489
21490         * common.opt (fdebug-types-section): New flag.
21491         * doc/invoke.texi: Document new -fno-debug-types-section flag.
21492         * dwarf2out.c (use_debug_types): New define.
21493         (struct die_struct): Mark die_id with GTY desc use_debug_types.
21494         (print_die): Guard output of type unit signatures using
21495         use_debug_types.
21496         (build_abbrev_table): Replace assert of dwarf_version >= 4
21497         with assert on use_debug_types.
21498         (size_of_die): Likewise.
21499         (unmark_dies): Likewise.
21500         (value_format): Decide AT_ref_external form on use_debug_types.
21501         (output_die): Replace dwarf_version version check guard with
21502         use_debug_types where appropriate.
21503         (modified_type_die): Likewise.
21504         (gen_reference_type_die): Likewise.
21505         (dwarf2out_start_source_file): Likewise.
21506         (dwarf2out_end_source_file): Likewise.
21507         (prune_unused_types_walk_attribs): Likewise.
21508         (dwarf2out_finish): Likewise.
21509
21510 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21511
21512         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
21513
21514 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21515
21516         PR rtl-optimization/48332
21517         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
21518         mode of input operand N and modeN to its actual mode.
21519
21520 2011-03-30  Jeff Law  <law@redhat.com>
21521
21522         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
21523         define accessor macro.
21524         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
21525         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
21526         (reg_equiv_init): Likewise.
21527         (reg_equivs_size): New variable.
21528         (reg_equiv_init_size): Remove.
21529         (allocate_initial_values): Move prototype to here from....
21530         * integrate.h (allocate_initial_values): Remove prototype.
21531         * integrate.c: Include reload.h.
21532         (allocate_initial_values): Corresponding changes.
21533         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
21534         (fix_reg_equiv_init, no_equiv): Corresponding changes.
21535         (update_equiv_regs): Corresponding changes.
21536         (ira): Corresponding changes.
21537         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
21538         (push_secondary_reload): Corresponding changes.
21539         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
21540         (make_memloc, find_reloads_address): Corresponding changes.
21541         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
21542         (find_reloads_address_1): Corresponding changes.
21543         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
21544         (refers_to_regno_for_reload_p): Corresponding changes.
21545         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
21546         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
21547         * reload1.c: Include ggc.h.
21548         (grow_reg_equivs): New function.
21549         (replace_pseudos_in, reload): Corresponding changes.
21550         (calculate_needs_all_insns, alter_regs): Corresponding changes.
21551         (eliminate_regs_1, elimination_effects): Corresponding changes.
21552         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
21553         (delete_output_reload): Likewise.
21554         * caller-save.c (mark_referenced_regs): Corresponding changes.
21555         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
21556         * frv/predicates.md (frv_load_operand): Corresponding changes.
21557         * microblaze/microblaze.c (double_memory_operand): Corresponding
21558         changes.
21559         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
21560         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
21561         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
21562         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
21563         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
21564         changes.
21565         * pa/pa.c (emit_move_sequence): Corresponding changes.
21566         * vax/vax.c (nonindexed_address_p): Corresponding changes.
21567
21568 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21569
21570         PR target/47551
21571         * config/arm/arm.c (coproc_secondary_reload_class): Handle
21572         structure modes.  Don't check neon_vector_mem_operand for
21573         vector or structure modes.
21574
21575 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21576             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21577
21578         PR target/43590
21579         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
21580         operand 1 and reshuffle the operands to match.
21581         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
21582
21583 2011-03-30  Christian Schüler  <cschueler@gmx.de>
21584
21585         PR driver/48208
21586         * config/c.opt (F): Added 'Driver' to -F option.
21587
21588         PR driver/48260
21589         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
21590           handler function.
21591         * config/darwin.opt: Added '-arch' option.
21592
21593 2011-03-30  Nick Clifton  <nickc@redhat.com>
21594
21595         * config/rx/rx.md: Add peepholes and patterns to combine
21596         extending loads and simple arithmetic instructions.
21597         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
21598         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
21599         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
21600         modes to use pre-decrement and post-increment addressing.
21601         (rx_is_restricted_memory_address): Add range checking of REG+INT
21602         addresses.
21603         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
21604         (rx_memory_move_cost): Adjust cost of stores.
21605         (rx_adjust_insn_length): New function.
21606
21607 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
21608
21609         PR c/48305
21610         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21611         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
21612         matching arg00/arg01 types.
21613
21614 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
21615
21616         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
21617         last_location to UNKNOWN_LOCATION.
21618
21619 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
21620
21621         PR target/48349
21622         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
21623         FLOAT_SSE_REGS.
21624
21625 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21626             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21627
21628         PR bootstrap/48337
21629         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
21630         Init(PROCESSOR_V7).
21631         (sparc_cpu): Likewise.
21632         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
21633         PROCESSOR_V7.
21634
21635 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21636
21637         PR target/48336
21638         PR middle-end/48342
21639         PR rtl-optimization/48345
21640         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
21641         hard regs for given mode from profitable regs when doing secondary
21642         allocation.
21643
21644 2011-03-29  Jeff Law  <law@redhat.com>
21645
21646         PR bootstrap/48327
21647         * tree-ssa-threadupdate.c (struct redirection_data): Remove
21648         do_not_duplicate field.
21649         (lookup_redirection_data): Corresponding changes.
21650         (create_duplicates): Always create a template block.
21651         (redirect_edges): Remove code which reused the original block
21652         when it was going to become unreachable code.
21653         (thread_block): Don't set do_not_duplicate field.
21654
21655 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
21656
21657         * lto-opts.c (register_user_option_p, lto_register_user_option):
21658         Make type argument unsigned.
21659         * lto-streamer.h (lto_register_user_option): Make type argument
21660         unsigned.
21661         * opth-gen.awk: Make CL_* macros unsigned.
21662         * opts-common.c (find_opt): Make lang_mask argument unsigned.
21663         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
21664         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
21665         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
21666         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
21667         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
21668         (find_opt): Make lang_mask argument unsigned.
21669
21670 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21671
21672         PR rtl-optimization/48331
21673         PR rtl-optimization/48334
21674         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21675         for any used algorithm.
21676
21677 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21678
21679         * ira-conflicts.c (build_object_conflicts): Add unused attribute
21680         to parent_max.
21681
21682 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
21683
21684         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21685         (alpha_option_override): Don't set alpha_sr_alias_set.
21686         (emit_frame_store_1): Use gen_frame_mem rather than calling
21687         set_mem_alias_set.
21688         (alpha_expand_epilogue): Ditto.
21689
21690 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
21691
21692         PR tree-optimization/48290
21693         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21694         vectorization, check that relevant phis in the basic block after
21695         the inner loop are really inner loop's exit phis.
21696
21697 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
21698
21699         PR debug/48190
21700         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21701         (cached_dw_loc_list_def): New structure.
21702         (cached_dw_loc_list): New typedef.
21703         (cached_dw_loc_list_table): New variable.
21704         (cached_dw_loc_list_table_hash): New function.
21705         (cached_dw_loc_list_table_eq): Likewise.
21706         (add_location_or_const_value_attribute): Take a bool cache_p.
21707         Cache the list when the parameter is true.
21708         (gen_formal_parameter_die): Update caller.
21709         (gen_variable_die): Likewise.
21710         (dwarf2out_finish): Likewise.
21711         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21712         while generating debug info for the decl.
21713         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21714         (dwarf2out_init): Initialize cached_dw_loc_list_table.
21715         (resolve_addr): Cache the result of resolving a chain of
21716         location lists.
21717
21718 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
21719
21720         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21721         conflict object hard regset nodes have intersecting hard reg sets.
21722
21723         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21724         after regstat_init_n_sets_and_refs.
21725
21726         * ira.c: Add more comments at the top.
21727         (setup_stack_reg_pressure_class, setup_pressure_classes):
21728         Add comments how we compute the register pressure classes.
21729         (setup_allocno_and_important_classes): Add more comments.
21730         (setup_class_translate_array, reorder_important_classes)
21731         (setup_reg_class_relations): Add comments.
21732
21733         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
21734         start of the file.
21735
21736         * ira-color.c: Add 2011 to the Copyright line.
21737         (assign_hard_reg):  Add more comments.
21738         (improve_allocation): Ditto.
21739
21740         * ira-costs.c: Add 2011 to the Copyright line.
21741         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21742         comments.
21743         (setup_regno_cost_classes_by_mode): Ditto.
21744
21745         Initial patches from ira-improv branch:
21746
21747         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21748
21749         * ira-build.c (ira_create_object): Remove initialization of
21750         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
21751         (ira_create_allocno): Remove initialization of
21752         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21753         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21754         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21755         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21756         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21757         Initialize ALLOCNO_ADD_DATA.
21758         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21759         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21760         ALLOCNO_REG.
21761         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
21762         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21763
21764         * ira.c (ira_reallocate): Remove.
21765         (setup_pressure_classes): Call
21766         ira_init_register_move_cost_if_necessary.  Use
21767         ira_register_move_cost instead of ira_get_register_move_cost.
21768         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21769         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21770
21771         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21772         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21773         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21774         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21775         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21776         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21777         Fix formatting.
21778         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21779         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21780         (struct allocno_color_data): New.
21781         (allocno_color_data_t): New typedef.
21782         (allocno_color_data): New definition.
21783         (ALLOCNO_COLOR_DATA): New macro.
21784         (struct object_color_data): New.
21785         (object_color_data_t): New typedef.
21786         (object_color_data): New definition.
21787         (OBJECT_COLOR_DATA): New macro.
21788         (update_copy_costs, calculate_allocno_spill_cost): Call
21789         ira_init_register_move_cost_if_necessary.  Use
21790         ira_register_move_cost instead of ira_get_register_move_cost.
21791         (move_spill_restore, update_curr_costs): Ditto.
21792         (allocno_spill_priority): Make it inline.
21793         (color_pass): Allocate and free allocno_color_dat and object_color_data.
21794         (struct coalesce_data, coalesce_data_t): New.
21795         (allocno_coalesce_data): New definition.
21796         (ALLOCNO_COALESCE_DATA): New macro.
21797         (merge_allocnos, coalesced_allocno_conflict_p): Use
21798         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21799         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21800         (coalesce_allocnos): Ditto.
21801         (setup_coalesced_allocno_costs_and_nums): Ditto.
21802         (collect_spilled_coalesced_allocnos): Ditto.
21803         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21804         (setup_slot_coalesced_allocno_live_ranges): Ditto.
21805         (coalesce_spill_slots): Ditto.
21806         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
21807         free allocno_coalesce_data.
21808
21809         * ira-conflicts.c: Fix formatting.
21810         (process_regs_for_copy): Call
21811         ira_init_register_move_cost_if_necessary.  Use
21812         ira_register_move_cost instead of ira_get_register_move_cost.
21813         (build_object_conflicts): Optimize.
21814
21815         * ira-costs.c (record_reg_classes): Optimize.  Call
21816         ira_init_register_move_cost_if_necessary.  Use
21817         ira_register_move_cost, ira_may_move_in_cost, and
21818         ira_may_move_out_cost instead of ira_get_register_move_cost and
21819         ira_get_may_move_cost.
21820         (record_address_regs): Ditto.
21821         (scan_one_insn): Optimize.
21822         (find_costs_and_classes): Optimize.
21823         (process_bb_node_for_hard_reg_moves): Call
21824         ira_init_register_move_cost_if_necessary.  Use
21825         ira_register_move_cost instead of ira_get_register_move_cost.
21826
21827         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21828         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21829         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21830         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21831         definitions.
21832         (ira_initiate_emit_data, ira_finish_emit_data)
21833         (create_new_allocno): New functions.
21834         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21835         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21836         Use ira_register_move_cost instead of ira_get_register_move_cost.
21837
21838         * ira-int.h: Fix some comments.
21839         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21840         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21841         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21842         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
21843         add_data.
21844         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
21845         bitfield after mode.  Make hard_regno a short int.  Make
21846         hard_regno short.  Remove first_coalesced_allocno and
21847         next_coalesced_allocno.  Move mem_optimized_dest_p,
21848         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21849         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
21850         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21851         temp, colorable_p.  Add new member add_data.
21852         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21853         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21854         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21855         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21856         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21857         (ALLOCNO_ADD_DATA): New macro.
21858         (ira_emit_data_t): New typedef.
21859         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
21860         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21861         from struct ira_allocno.
21862         (ALLOCNO_EMIT_DATA): New macro.
21863         (ira_allocno_emit_data, allocno_emit_reg): New.
21864         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21865         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21866         (OBJECT_ADD_DATA): New macro.
21867         (ira_reallocate): Remove.
21868         (ira_initiate_emit_data, ira_finish_emit_data): New.
21869         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21870         (ira_init_register_move_cost_if_necessary): New.
21871         (ira_object_conflict_iter_next): Merge into
21872         ira_object_conflict_iter_cond.
21873         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21874
21875         * ira-live.c (process_single_reg_class_operands): Call
21876         ira_init_register_move_cost_if_necessary.  Use
21877         ira_register_move_cost instead of ira_get_register_move_cost.
21878
21879         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21880
21881         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21882
21883         * ira-costs.c: Fix formatting.
21884         (cost_classes, cost_classes_num): Remove.
21885         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21886         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21887         (cost_classes_del, cost_classes_htab): New.
21888         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21889         (initiate_regno_cost_classes, setup_cost_classes): New.
21890         (setup_regno_cost_classes_by_aclass): New.
21891         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21892         (record_reg_classes): Use regno_cost_classes instead of
21893         cost_classes.  Move checking opposite operand up.
21894         (record_address_regs): Use regno_cost_classes
21895         instead of cost_classes.
21896         (scan_one_insn): Ditto.  Use always general register.
21897         (print_allocno_costs): Use regno_cost_classes instead of
21898         cost_classes.
21899         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
21900         (find_costs_and_classes): Set up cost classes for each registers.
21901         Use also their mode for this.  Use regno_cost_classes instead of
21902         cost_classes.
21903         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21904         cost_classes.
21905         (free_ira_costs, ira_init_costs): Don't use cost_classes.
21906         (ira_costs, ira_set_pseudo_classes): Call
21907         initiate_regno_cost_classes and finish_regno_cost_classes.
21908
21909         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
21910
21911         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21912
21913         * target.def (ira_cover_classes): Remove.
21914
21915         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21916
21917         * doc/tm.texi.in: Ditto.
21918
21919         * ira-conflicts.c: Remove mentioning cover classes from the file.
21920         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
21921         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
21922
21923         * targhooks.c (default_ira_cover_classes): Remove.
21924
21925         * targhooks.h (default_ira_cover_classes): Ditto.
21926
21927         * haifa-sched.c: Remove mentioning cover classes from the file.
21928         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
21929         ira_pressure_classes and ira_pressure_classes_num instead of
21930         ira_reg_class_cover_size and ira_reg_class_cover.  Use
21931         sched_regno_pressure_class instead of sched_regno_cover_class.
21932         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21933         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21934
21935         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
21936         classes from the file.
21937         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21938         (struct object_hard_regs, struct object_hard_regs_node): New.
21939         (struct ira_object): New members profitable_hard_regs,
21940         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21941         (struct ira_allocno): Rename cover_class to aclass.  Rename
21942         cover_class_cost and updated_cover_class_cost to class_cost and
21943         updated_class_cost.  Remove splay_removed_p and
21944         left_conflict_size.  Add new members colorable_p.
21945         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21946         (ALLOCNO_COLORABLE_P): New macro.
21947         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21948         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21949         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21950         (OBJECT_...): Rename parameter C to O.
21951         (OBJECT_PROFITABLE_HARD_REGS): New macro.
21952         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21953         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21954         (struct target_ira_int): New members x_ira_max_memory_move_cost,
21955         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21956         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21957         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21958         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
21959         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
21960         x_ira_reg_class_subunion.
21961         (ira_max_memory_move_cost, ira_max_register_move_cost)
21962         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21963         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21964         (ira_important_class_nums, ira_reg_class_superunion): New macros.
21965         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21966         (ira_reg_class_union): Rename to ira_reg_class_subunion.
21967         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21968         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21969         (ira_tune_allocno_costs_and_cover_classes): Rename to
21970         ira_tune_allocno_costs.
21971         (ira_debug_hard_regs_forest): New.
21972         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21973         (ira_object_conflict_iter_next): Fix comments.
21974         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21975         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21976         cover_class to aclass.
21977         (ira_allocate_and_accumulate_costs): Ditto.
21978         (ira_allocate_and_set_or_copy_costs): Ditto.
21979
21980         * opts.c (decode_options): Remove ira_cover_class check.
21981
21982         * ira-color.c: Remove mentioning cover classes from the file.  Use
21983         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21984         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21985         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
21986         (splay-tree.h): Remove include.
21987         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21988         before copy_freq_compare_func.
21989         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21990         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21991         New definitions.
21992         (hard_regs_roots, hard_regs_node_vec): Ditto.
21993         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21994         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21995         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21996         (create_new_object_hard_regs_node): Ditto.
21997         (add_new_object_hard_regs_node_to_forest): Ditto.
21998         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21999         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22000         Ditto.
22001         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22002         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22003         (remove_unused_object_hard_regs_nodes): Ditto.
22004         (enumerate_object_hard_regs_nodes): Ditto.
22005         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22006         (object_hard_regs_subnode_t): Ditto.
22007         (struct object_hard_regs_subnode): Ditto.
22008         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22009         (setup_object_hard_regs_subnode_index): Ditto.
22010         (get_object_hard_regs_subnodes_num): Ditto.
22011         (form_object_hard_regs_nodes_forest): Ditto.
22012         (finish_object_hard_regs_nodes_tree): Ditto.
22013         (finish_object_hard_regs_nodes_forest): Ditto.
22014         (allocnos_have_intersected_live_ranges_p): Rename to
22015         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22016         (pseudos_have_intersected_live_ranges_p): Rename to
22017         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22018         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22019         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22020         (update_copy_costs): Remove assert.  Skip cost update if the hard
22021         reg does not belong the class.
22022         (assign_hard_reg): Process only profitable hard regs.
22023         (uncolorable_allocnos_num): Make it scalar.
22024         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22025         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22026         and ira_reg_class_max_nregs.
22027         (bucket_allocno_compare_func): Check frequency first.
22028         (sort_bucket): Add compare function as a parameter.
22029         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22030         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22031         (push_allocno_to_stack): Rewrite for checking new allocno
22032         colorability.
22033         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
22034         (push_only_colorable): Pass new parameter to sort_bucket.
22035         (push_allocno_to_spill): Remove.
22036         (allocno_spill_priority_compare): Make it inline and rewrite.
22037         (splay_tree_allocate, splay_tree_free): Remove.
22038         (allocno_spill_sort_compare): New function.
22039         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
22040         build and use splay tree.  Choose first allocno in uncolorable
22041         allocno bucket to spill.  Remove setting spill cost.
22042         (all_conflicting_hard_regs): Remove.
22043         (setup_allocno_available_regs_num): Check only profitable hard
22044         regs.  Print info about hard regs nodes.
22045         (setup_allocno_left_conflicts_size): Remove.
22046         (put_allocno_into_bucket): Don't call
22047         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
22048         (improve_allocation): New.
22049         (color_allocnos): Call setup_profitable_hard_regs,
22050         form_object_hard_regs_nodes_forest, improve_allocation,
22051         finish_object_hard_regs_nodes_forest.  Setup spill cost.
22052         (print_loop_title): Use pressure classes.
22053         (color_allocnso): Ditto.
22054         (do_coloring): Remove allocation and freeing splay_tree_node_pool
22055         and allocnos_for_spilling.
22056         (ira_sort_regnos_for_alter_reg): Don't setup members
22057         {first,next}_coalesced_allocno.
22058         (color): Remove allocating and freeing removed_splay_allocno_vec.
22059         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22060         prohibited_class_mode_regs.
22061
22062         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
22063         formatting.
22064         (update_allocno_pressure_excess_length): Use pressure classes.
22065         (inc_register_pressure, dec_register_pressure): Check for pressure
22066         class.
22067         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22068         pressure class.  Use ira_reg_class_nregs instead of
22069         ira_reg_class_max_nregs.
22070         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22071         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22072         (single_reg_class): Use ira_reg_class_nregs instead of
22073         ira_reg_class_max_nregs.
22074         (process_bb_node_lives): Use pressure classes.
22075
22076         * ira-emit.c: Remove mentioning cover classes from the file.  Use
22077         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22078         (change_loop): Use pressure classes.
22079         (modify_move_list): Call ira_set_allocno_class instead of
22080         ira_set_allocno_cover_class.
22081
22082         * ira-build.c: Remove mentioning cover classes from the file.  Use
22083         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22084         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
22085         ALLOCNO_UPDATED_CLASS_COST instead of
22086         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22087         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22088         (ira_create_allocno): Remove initialization of
22089         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
22090         ALLOCNO_COLORABLE_P.
22091         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22092         Update conflict regs for the objects.
22093         (create_cap_allocno): Remove assert.  Don't propagate
22094         ALLOCNO_AVAILABLE_REGS_NUM.
22095         (ira_free_allocno_costs): New function.
22096         (finish_allocno): Change a part of code into call of
22097         ira_free_allocno_costs.
22098         (low_pressure_loop_node_p): Use pressure classes.
22099         (object_range_compare_func): Don't compare classes.
22100         (setup_min_max_conflict_allocno_ids): Ditto.
22101
22102         * loop-invariant.c: Remove mentioning cover classes from the file.
22103         Use ira_pressure_classes and ira_pressure_classes_num instead of
22104         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
22105         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22106         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22107         Use reg_allocno_class instead of reg_cover_class.
22108         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22109         STACK_REG_COVER_CLASS.
22110         (get_regno_cover_class): Rename to get_regno_pressure_class.
22111         (move_loop_invariants): Initialize and finalize regstat.
22112
22113         * ira.c: Remove mentioning cover classes from the file.  Add
22114         comments about coloring without cover classes.  Use ALLOCNO_CLASS
22115         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22116         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22117         setup_class_subset_and_memory_move_costs.
22118         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22119         (setup_cover_and_important_classes): Rename to
22120         setup_allocno_and_important_classes.
22121         (setup_class_translate_array): New.
22122         (setup_class_translate): Call it for allocno and pressure classes.
22123         (cover_class_order): Rename to allocno_class_order.
22124         (comp_reg_classes_func): Use ira_allocno_class_translate instead
22125         of ira_class_translate.
22126         (reorder_important_classes): Set up ira_important_class_nums.
22127         (setup_reg_class_relations): Set up ira_reg_class_superunion.
22128         (print_class_cover): Rename to print_classes.  Add parameter.
22129         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22130         Print pressure classes too.
22131         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
22132         setup_reg_subclasses.
22133         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22134         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22135         (setup_prohibited_class_mode_regs): Use
22136         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22137         (clarify_prohibited_class_mode_regs): New function.
22138         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22139         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22140         (ira_init_once): Initialize them.
22141         (free_register_move_costs): Process them.
22142         (ira_init): Move calls of find_reg_classes and
22143         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22144         Call clarify_prohibited_class_mode_regs.
22145         (ira_no_alloc_reg): Remove.
22146         (too_high_register_pressure_p): Use pressure classes.
22147
22148         * sched-deps.c: Remove mentioning cover classes from the file.
22149         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22150         ira_pressure_classes and ira_pressure_classes_num instead of
22151         ira_reg_class_cover_size and ira_reg_class_cover.
22152         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22153         sched_regno_pressure_class instead of sched_regno_cover_class.
22154         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
22155         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22156
22157         * ira.h: Add 2010 to Copyright.
22158         (ira_no_alloc_reg): Remove external.
22159         (struct target_ira): Rename x_ira_hard_regno_cover_class,
22160         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22161         x_ira_class_translate to x_ira_hard_regno_allocno_class,
22162         x_ira_allocno_classes_num, x_ira_allocno_classes, and
22163         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
22164         x_ira_pressure_classes, x_ira_pressure_class_translate, and
22165         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
22166         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
22167         x_ira_no_alloc_regs.
22168         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22169         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22170         ira_allocno_classes_num and ira_allocno_classes.
22171         (ira_class_translate): Rename to ira_allocno_class_translate.
22172         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22173         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22174         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22175         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22176         (ira_no_alloc_regs): New.
22177
22178         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
22179         classes from the file.  Use ALLOCNO_CLASS instead of
22180         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
22181         ALLOCNO_COVER_CLASS_COST.
22182         (regno_cover_class): Rename to regno_aclass.
22183         (record_reg_classes): Use ira_reg_class_subunion instead of
22184         ira_reg_class_union.
22185         (record_address_regs): Check overflow.
22186         (scan_one_insn): Ditto.
22187         (print_allocno_costs): Print total mem cost fore regional allocation.
22188         (print_pseudo_costs): Use REG_N_REFS.
22189         (find_costs_and_classes): Use classes intersected with them on the
22190         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
22191         ira_reg_class_union.  Use ira_allocno_class_translate and
22192         regno_aclass instead of ira_class_translate and regno_cover_class.
22193         Modify code for finding regno_aclass.  Setup preferred classes for
22194         the next pass.
22195         (setup_allocno_cover_class_and_costs): Rename to
22196         setup_allocno_class_and_costs.  Use regno_aclass instead of
22197         regno_cover_class.  Use ira_set_allocno_class instead of
22198         ira_set_allocno_cover_class.
22199         (init_costs, finish_costs): Use regno_aclass instead of
22200         regno_cover_class.
22201         (ira_costs): Use setup_allocno_class_and_costs instead of
22202         setup_allocno_cover_class_and_costs.
22203         (ira_tune_allocno_costs_and_cover_classes): Rename to
22204         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
22205         by processing objects.  Use ira_reg_class_max_nregs instead of
22206         ira_reg_class_nregs.
22207
22208         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22209
22210         * sched-int.h: Remove mentioning cover classes from the file.
22211         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22212
22213         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
22214         classes from the file.
22215         (struct reg_pref): Rename coverclass into allocnoclass.
22216         (reg_cover_class): Rename to reg_allocno_class.
22217
22218         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22219
22220         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22221
22222         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22223
22224         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22225
22226         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22227
22228         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22229
22230         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22231
22232         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22233
22234         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22235
22236         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22237
22238         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22239         (i386_ira_cover_classes): Ditto.
22240
22241         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22242
22243         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22244
22245         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22246
22247         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22248
22249         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22250
22251         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22252
22253         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22254         (mips_ira_cover_classes): Ditto.
22255
22256         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22257
22258         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22259
22260         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22261
22262         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22263
22264         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22265
22266         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22267         (IRA_COVER_CLASSES_VSX): Ditto.
22268
22269         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22270         (rs6000_ira_cover_classes): Ditto.
22271
22272         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22273
22274         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22275
22276         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22277
22278         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22279
22280         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22281
22282         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22283
22284         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22285
22286         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22287
22288         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22289
22290         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22291
22292 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
22293
22294         PR debug/48253
22295         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22296         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22297         dw_fde_unlikely_section_end_label, cold_in_std_section,
22298         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22299         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22300         fields.
22301         (output_fde): Use dw_fde_second_{begin,end} if second is
22302         true, otherwise dw_fde_{begin,end}.
22303         (output_call_frame_info): Test dw_fde_second_begin != NULL
22304         instead of dw_fde_switched_sections.
22305         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22306         fields, initialize new fields.  Initialize in_std_section
22307         unconditionally from the first partition.
22308         (dwarf2out_end_epilogue): Don't override dw_fde_end when
22309         dw_fde_second_begin is non-NULL.
22310         (dwarf2out_switch_text_section): Stop initializing removed
22311         dw_fde_struct fields, initialize new fields, initialize
22312         also dw_fde_end here.  Set dw_fde_switch_cfi even when
22313         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
22314         (struct var_loc_list_def): Add last_before_switch field.
22315         (arange_table, arange_table_allocated, arange_table_in_use,
22316         ARANGE_TABLE_INCREMENT, add_arange): Removed.
22317         (size_of_aranges): Count !in_std_section and !second_in_std_section
22318         hunks in fdes, instead of looking at arange_table_in_use.
22319         (output_aranges): Add aranges_length argument, don't call
22320         size_of_aranges here.  Instead of using aranges_table*
22321         emit ranges for fdes when !in_std_section resp.
22322         !second_in_std_section.
22323         (dw_loc_list): Break ranges crossing section switch.
22324         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
22325         use dw_fde_second_end instead of dw_fde_end as end of last range.
22326         (gen_subprogram_die): Don't call add_arange.  Use
22327         dw_fde_{begin,end} for first partition and if switched
22328         section dw_fde_second_{begin,end} for the second.
22329         (var_location_switch_text_section_1,
22330         var_location_switch_text_section): New functions.
22331         (dwarf2out_begin_function): Initialize cold_text_section even
22332         when function_section () isn't text_section.
22333         (prune_unused_types): Don't walk arange_table.
22334         (dwarf2out_finish): Don't needlessly test
22335         flag_reorder_blocks_and_partition when testing cold_text_section_used.
22336         If info_section_emitted, call size_of_aranges and if it indicates
22337         non-empty .debug_aranges, call output_aranges with the computed
22338         size.  Stop using removed dw_fde_struct fields, use
22339         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
22340         for second.
22341
22342         PR debug/48203
22343         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
22344         create ENTRY_VALUE if incoming or address of incoming's MEM
22345         is a hard REG.
22346         * dwarf2out.c (mem_loc_descriptor): Don't emit
22347         DW_OP_GNU_entry_value of DW_OP_fbreg.
22348         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
22349         on ENTRY_VALUE is able to find the canonical parameter VALUE.
22350         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
22351         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
22352         ENTRY_VALUE_EXPs.
22353         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
22354         is a REG_P or MEM_P with REG_P address, compute hash directly
22355         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
22356         (preserve_only_constants): Don't clear VALUES forwaring
22357         ENTRY_VALUE to some other VALUE.
22358
22359 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
22360
22361         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
22362         instead of GEN_INT.
22363
22364 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22365
22366         * cfgexpand.c (expand_gimple_cond): Always set the source location and
22367         block before expanding the statement.
22368         (expand_gimple_stmt_1): Likewise.  Set them here...
22369         (expand_gimple_stmt): ...and not here.  Tidy.
22370         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
22371         unknown.
22372
22373 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22374
22375         * Makefile.in: New rule for cprop.o.
22376         * gcse.c: Move constant/copy propagation to cprop.c.
22377         (compute_local_properties): Only handle expression tables.
22378         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
22379         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
22380         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
22381         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
22382         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
22383         compute_cprop_data, find_used_regs, try_replace_reg,
22384         find_avail_set, cprop_jump, constprop_register, cprop_insn,
22385         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
22386         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
22387         find_bypass_set, reg_killed_on_edge, bypass_block,
22388         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
22389         execute_rtl_cprop, pass_rtl_cprop): Move to...
22390         * cprop.c: ...here.  New file, constant/copy propagation for RTL
22391         moved from gcse.c to here with minor cleanups in duplicated code.
22392
22393 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
22394
22395         * config/i386/i386.c (flag_opts): Fix a typo in
22396         -mavx256-split-unaligned-store.
22397
22398 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22399
22400         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22401         LIBCALL_VALUE): Remove macros.
22402         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22403         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22404         (h8300_function_value, h8300_libcall_value,
22405         h8300_function_value_regno_p): New functions.
22406
22407 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22408
22409         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
22410
22411 2011-03-28  Jeff Law  <law@redhat.com>
22412
22413         * tree-ssa-threadupdate.c (redirect_edges): Call
22414         create_edge_and_update_destination_phis as needed.
22415         (create_edge_and_update_destination_phis): Accept new BB argument.
22416         All callers updated.
22417         (thread_block): Do not update the profile when threading around
22418         intermediate blocks.
22419         (thread_single_edge): Likewise.
22420         (determine_bb_domination_status): If BB is not a successor of the
22421         loop header, return NONDOMINATING.
22422         (register_jump_thread): Note when we register a jump thread around
22423         an intermediate block.
22424         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
22425         (thread_across_edge): Use it.
22426
22427 2011-03-28  Tristan Gingold  <gingold@adacore.com>
22428
22429         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
22430         when for_return is 2.
22431
22432 2011-03-28  Jeff Law  <law@redhat.com>
22433
22434         * var-tracking.c (canonicalize_values_mark): Delete unused
22435         lhs assignment.
22436         (canonicalize_values_star, set_variable_part): Likewise.
22437         (clobber_variable_part, delete_variable_part): Likewise.
22438
22439 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22440
22441         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
22442
22443 2011-03-28  Martin Jambor  <mjambor@suse.cz>
22444
22445         * tree-inline.c (expand_call_inline): Do not check that destination
22446         node is analyzed.
22447         (optimize_inline_calls): Assert that destination node is analyzed.
22448         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
22449         not call tree_lowering_passes.
22450         * cgraph.h (cgraph_analyze_function): Declare.
22451         * cgraphunit.c (cgraph_analyze_function): Make public.
22452
22453 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
22454
22455         * config/sparc/sparc-opts.h: New.
22456         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
22457         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
22458         (sparc_option_override): Store processor_type enumeration rather
22459         than string in cpu_default.  Remove name and enumeration from
22460         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
22461         without using sparc_select.  Use target_flags_explicit instead of
22462         fpu_option_set.
22463         * config/sparc/sparc.h (enum processor_type): Move to
22464         sparc-opts.h.
22465         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
22466         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
22467         HeaderInclude entry.
22468         (mcpu=, mtune=): Use Var and Enum.
22469         (sparc_processor_type): New Enum and EnumValue entries.
22470
22471 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22472             Iain Sandoe  <iains@gcc.gnu.org>
22473
22474         PR target/48245
22475         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
22476
22477 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22478
22479         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
22480         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
22481         Insert new statements at it in lieu of STMT.
22482         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
22483         * tree-vect-stmts.c (vectorizable_store): Likewise.
22484         (vectorizable_load): Likewise.
22485
22486 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
22487
22488         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
22489         (divtf3): Ditto.
22490         (multf3): Ditto.
22491         (subtf3): Ditto.
22492
22493 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22494
22495         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
22496         unaligned 256bit load/store.
22497         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
22498         (*avx_movdqu<avxmodesuffix>): Likewise.
22499
22500 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22501
22502         PR target/48288
22503         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
22504         * config/pa/pa.md (iordi3): Use new predicate in expander.
22505         (iorsi3): Likewise.
22506
22507 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
22508
22509         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
22510         FUNCTION_VALUE_REGNO_P): Remove macros.
22511         * config/mips/mips-protos.h (mips_function_value): Remove.
22512         * config/mips/mips.c (mips_function_value): Rename to...
22513         (mips_function_value_1): ... this. Make static.  Handle receiving
22514         the function type in 'fn_decl_or_type' argument.
22515         (mips_function_value, mips_libcall_value,
22516         mips_function_value_regno_p): New function.
22517         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22518         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22519
22520 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22521
22522         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
22523         and -mavx256-split-unaligned-store.
22524         (ix86_option_override_internal): Split 32-byte AVX unaligned
22525         load/store by default.
22526         (ix86_avx256_split_vector_move_misalign): New.
22527         (ix86_expand_vector_move_misalign): Use it.
22528
22529         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
22530         -mavx256-split-unaligned-store.
22531
22532         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
22533         256bit load/store.  Generate unaligned store on misaligned memory
22534         operand.
22535         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
22536         256bit load/store.
22537         (*avx_movdqu<avxmodesuffix>): Likewise.
22538
22539         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
22540         -mavx256-split-unaligned-store.
22541
22542 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
22543
22544         PR target/38598
22545         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
22546         Update commentary.
22547
22548 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
22549
22550         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
22551         opno arguments with an expand_operand.  Use create_input_operand.
22552         (mips_prepare_builtin_target): Delete.
22553         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
22554         functions.
22555         (mips_expand_builtin_direct): Use create_output_operand and
22556         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
22557         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
22558         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
22559
22560 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
22561
22562         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
22563         function.
22564         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22565
22566 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
22567
22568         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
22569         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
22570         basic blocks and call commit_edge_insertions directly.
22571         (fixup_abnormal_edges): Move from here to...
22572         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
22573         on the edges and return whether some have actually been inserted.
22574         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
22575         compensation code.
22576
22577 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
22578
22579         PR rtl-optimization/48144
22580         * sel-sched-ir.c (merge_history_vect): Factor out from ...
22581         (merge_expr_data): ... here.
22582         (av_set_intersect): Rename to av_set_code_motion_filter.
22583         Update all callers.  Call merge_history_vect when an expression
22584         is found in both sets.
22585         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
22586
22587 2011-03-26  Alan Modra  <amodra@gmail.com>
22588
22589         * config/rs6000/predicates.md (word_offset_memref_op): Handle
22590         cmodel medium addresses.
22591         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
22592         64-bit gpr loads and stores.
22593         (rs6000_secondary_reload_ppc64): New function.
22594         * config/rs6000/rs6000-protos.h: Declare it.
22595         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
22596
22597 2011-03-26  Alan Modra  <amodra@gmail.com>
22598
22599         PR target/47487
22600         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
22601         GNU Go in traceback table.
22602
22603 2011-03-25  Richard Henderson  <rth@redhat.com>
22604
22605         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
22606         if there are exactly 6 operands.
22607         (set_storage_via_setmem): Similarly.
22608
22609 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22610
22611         * collect2.c (write_c_file_stat): Handle backslash
22612         as right-hand directory separator.
22613         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
22614         checking just for slash.
22615         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
22616         instead of checking for trailing slash.
22617         * gcc.c (record_temp_file): Use filename_cmp instead
22618         of strcmp.
22619         (do_spec_1): Likewise.
22620         (replace_outfile_spec_function): Likewise.
22621         (is_directory): Use filename_ncmp instead of strncmp.
22622         (print_multilib_info): Likewise.
22623         * gcov.c (find_source): Use filename_cmp instead
22624         instead of strcmp.
22625         (make_gcov_file_name): Fix order of slash/backslash
22626         checks.
22627         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
22628         (add_standard_paths): Likewise.
22629         * mips-tfile.c (saber_stop): Handle backslash.
22630         * prefix.c (update_path): Use filename_ncmp instead of
22631         strncmp.
22632         * profile.c (output_location): Use filename_cmp instead
22633         of strcmp.
22634         * read-md.c (handle_toplevel_file): Handle backslash.
22635         * tlink.c (frob_extension):  Likewise.
22636         * tree-cfg.c (same_line_p): Use filename_cmp instead of
22637         strcmp.
22638         * tree-dump.c (dequeue_and_dump): Handle backslash.
22639         * tree.c (get_file_function_name): Likewise.
22640         * gengtype.c (read_input_list): Likewise.
22641         (get_file_realbasename): Likewise.
22642         (get_output_file_with_visibility): Use filename_cmp
22643         instead of strcmp.
22644
22645 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
22646
22647         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
22648         case to VFPv1.
22649
22650 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
22651
22652         * fold-const.c (expr_location_or): New function.
22653         (fold_truth_not_expr): Call it.
22654
22655 2011-03-25  Jeff Law  <law@redhat.com>
22656
22657         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
22658         va_end.
22659         * c-family/c-common.c (def_fn_type): Likewise.
22660         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
22661         * emit-rtl.c (gen_rtvec): Likewise.
22662         * lto/lto-lang.c (def_fn_type): Likewise.
22663
22664 2011-03-25  Richard Guenther  <rguenther@suse.de>
22665
22666         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
22667         also generate copies.
22668         (fini_copy_prop): Handle constant values properly.
22669
22670 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
22671
22672         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22673         mode size instead of bitsize with DWARF2_ADDR_SIZE.
22674         (hash_loc_operands, compare_loc_operands): Handle
22675         DW_OP_GNU_entry_value.
22676
22677 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22678
22679         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22680         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22681         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22682         comment and use macro TARGET_64BIT_MS_ABI instead.
22683         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22684         and change default behavior for 32-bit MS_ABI.
22685         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22686         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22687         32-bit, too.
22688         (ix86_cfun_abi): Likewise.
22689         (ix86_maybe_switch_abi): Adjust comment.
22690         (init_cumulative_args): Check for bit-ness in MS_ABI case.
22691         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22692         instead of checking for SYSV_ABI.
22693         (ix86_nsaved_sseregs): Likewise.
22694         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22695         to 16 bytes.
22696         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22697         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22698         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22699         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22700         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22701
22702 2011-03-25  Richard Guenther  <rguenther@suse.de>
22703
22704         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22705         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22706         (verify_gimple): Remove.
22707         * tree-cfg.c (verify_gimple_call): Merge verification
22708         from verify_stmts.
22709         (verify_gimple_phi): Merge verification from verify_stmts.
22710         (verify_gimple_label): New function.
22711         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22712         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22713         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22714         (verify_stmts): Rename to verify_gimple_in_cfg.
22715         (verify_gimple_in_cfg): New function.
22716         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22717         * tree-ssa.c (verify_ssa): Likewise.
22718         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22719
22720 2011-03-25  Richard Guenther  <rguenther@suse.de>
22721
22722         * passes.c (init_optimization_passes): Add FRE pass after
22723         early SRA.
22724
22725 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
22726             Andrew Stubbs  <ams@codesourcery.com>
22727
22728         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22729         for Cortex-A8.
22730         (arm_movdi_vfp_cortexa8): New pattern.
22731         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22732         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22733         instructions when tuning for Cortex-A8.  Set attribute "arch".
22734         * config/arm/arm.md: Move include arm-tune.md up a bit.
22735         (define_attr "arch"): Add "onlya8" and "nota8" values.
22736         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22737
22738 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
22739
22740         PR bootstrap/48282
22741         Revert:
22742         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22743
22744         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22745         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
22746         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22747         * passes.c (init_optimization_passes): Move
22748         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22749
22750 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22751
22752         * c-typeck.c (comptypes_internal): Replace target
22753         hook call of comp_type_attributes by version in tree.c file.
22754         * gimple.c (gimple_types_compatible_p_1): Likewise.
22755         * tree-ssa.c (useless_type_conversion_p): Likewise.
22756         * tree.c (build_type_attribute_qual_variant): Likewise.
22757         (attribute_value_equal): New static helper function.
22758         (comp_type_attributes): New function.
22759         (merge_attributes): Use attribute_value_equal for comparison.
22760         (attribute_list_contained): Likewise.
22761         * tree.h (comp_type_attributes): New prototype.
22762
22763 2011-03-25  Richard Guenther  <rguenther@suse.de>
22764
22765         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22766         of complex types at -O0.
22767         (verify_gimple_assign_binary): Likewise.
22768         (verify_gimple_assign_ternary): Likewise.
22769
22770 2011-03-24  Mark Wielaard  <mjw@redhat.com>
22771
22772         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22773         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22774
22775 2011-03-24  Mark Wielaard  <mjw@redhat.com>
22776
22777         PR debug/48041
22778         * dwarf2out.c (output_abbrev_section): Only write table when
22779         abbrev_die_table_in_use > 1.
22780
22781 2011-02-24  Richard Henderson  <rth@redhat.com>
22782
22783         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22784         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22785         (alpha_expand_unaligned_load_words): Use extql.
22786         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22787         (emit_insxl): Handle all modes for consistency.
22788
22789 2011-02-24  Richard Henderson  <rth@redhat.com>
22790
22791         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22792         (alpha_expand_unaligned_load): Likewise.
22793         (alpha_expand_unaligned_store): Likewise.
22794         (alpha_expand_unaligned_load_words): Likewise.
22795         (alpha_expand_unaligned_store_words): Likewise.
22796         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22797         (alpha_split_lock_test_and_set_12): Likewise.
22798         (print_operand, alpha_fold_builtin_extxx): Likewise.
22799         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22800         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22801         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22802         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22803         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22804         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22805         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22806         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22807         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22808         (extwl, extll, extql): Similarly.
22809         (inswh, inslh, insqh): Similarly.
22810         (mskbl, mskwl, mskll, mskql): Similarly.
22811         (mskwh, msklh, mskqh): Similarly.
22812
22813 2011-02-24  Richard Henderson  <rth@redhat.com>
22814
22815         * config/alpha/alpha.md (attribute isa): Add er, ner.
22816         (attribute enabled): Handle them.
22817         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22818
22819 2011-02-24  Richard Henderson  <rth@redhat.com>
22820
22821         * config/alpha/alpha.md (attribute isa): Add vms.
22822         (attribute enabled): Handle it.
22823         (*movsf): Merge *movsf_{nofix,fix,nofp}.
22824         (*movdf): Merge *movdf_{nofix,fix,nofp}.
22825         (*movtf): Rename from *movtf_internal for consistency.
22826         (*movsi): Merge with *movsi_nt_vms.
22827         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22828         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22829         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22830         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22831
22832 2011-02-24  Richard Henderson  <rth@redhat.com>
22833
22834         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22835         (extendqisi2, extendhisi2): Likewise.
22836         (extendqidi2): Simplify BWX/non-BWX expansions.
22837         (extendhidi2): Similarly.
22838
22839 2011-02-24  Richard Henderson  <rth@redhat.com>
22840
22841         * config/alpha/alpha.md (attribute isa): New.
22842         (attribute enabled): New.
22843         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22844         (zero_extendqisi2, zero_extendqidi2): Similarly.
22845         (zero_extendhisi2, zero_extendhidi2): Similarly.
22846         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22847
22848 2011-02-24  Richard Henderson  <rth@redhat.com>
22849
22850         * config/alpha/predicates.md (input_operand): Revert last change;
22851         update comment to mention 32-bit VMS rather than Windows.
22852
22853 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22854
22855         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22856         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
22857         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22858         * passes.c (init_optimization_passes): Move
22859         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22860
22861 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22862
22863         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22864
22865 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22866
22867         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22868         correctly.
22869
22870 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
22871
22872         PR debug/48204
22873         * simplify-rtx.c (simplify_const_unary_operation): Call
22874         real_convert when changing mode class with FLOAT_EXTEND.
22875
22876 2011-03-24  Nick Clifton  <nickc@redhat.com>
22877
22878         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22879         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22880         * config/rx/rx.c (rx_option_override): Set align_jumps,
22881         align_loops and align_labels if not set by the user.
22882         (rx_align_for_label): New function.
22883         (rx_max_skip_for_label): New function.
22884         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22885         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22886         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22887         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22888         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22889
22890 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22891
22892         PR rtl-optimization/48263
22893         * optabs.c (expand_binop_directly): Reinstate convert_modes code
22894         and original commutative_p handling.  Use maybe_gen_insn.
22895
22896 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22897
22898         * reload.c (find_reloads_subreg_address): Add address_reloaded
22899         parameter and return true there if the full address has been
22900         reloaded.
22901         (find_reloads_toplev): Pass address_reloaded flag.
22902         (find_reloads_address_1): Don't use address_reloaded parameter.
22903
22904 2011-03-24  Jeff Law  <law@redhat.com>
22905
22906         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22907         unused variable "ann".
22908         (remove_unused_locals): Likewise.
22909
22910         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22911         statement.
22912
22913         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22914         after it is freed.
22915
22916 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22917
22918         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22919         for invalid symbolic addresses.
22920         (s390_secondary_reload): Don't use s390_check_symref_alignment for
22921         larl operands.
22922
22923 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22924
22925         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22926         the argument in calls to fold_truth_not_expr.
22927
22928 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22929
22930         * tree.c (record_node_allocation_statistics): New function.
22931         (make_node_stat, copy_node_stat, build_string): Call it.
22932         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22933         (build1_stat, build_omp_clause): Likewise.
22934
22935 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
22936
22937         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22938         last commit.
22939
22940 2011-03-24  Richard Guenther  <rguenther@suse.de>
22941
22942         PR tree-optimization/48271
22943         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22944         blocks that still exist.
22945
22946 2011-03-24  Richard Guenther  <rguenther@suse.de>
22947
22948         PR tree-optimization/48270
22949         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22950         not free datarefs before ddrs.
22951
22952 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
22953
22954         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22955         from the address built for a reference with variable offset.
22956
22957 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
22958
22959         PR target/48237
22960         * config/i386/i386.md (*movdf_internal_rex64): Do not split
22961         alternatives that can be handled with movq or movabsq insn.
22962         (*movdf_internal): Disable for !TARGET_64BIT.
22963         (*movdf_internal_nointeger): Ditto.
22964         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22965
22966 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22967
22968         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22969         (FUNCTION_ARG_ADVANCE): Likewise.
22970         * tm.texi.in: Change references to them to hook references.
22971         * tm.texi: Regenerate.
22972         * targhooks.c (default_function_arg): Eliminate check for target macro.
22973         (default_function_incoming_arg): Likewise.
22974         (default_function_arg_advance): Likewise.
22975         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22976         (function_arg_advance): Likewise.
22977         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22978
22979 2011-03-24  Richard Guenther  <rguenther@suse.de>
22980
22981         PR middle-end/48269
22982         * tree-object-size.c (addr_object_size): Do not double-account
22983         for MEM_REF offsets.
22984
22985 2011-03-24  Diego Novillo  <dnovillo@google.com>
22986
22987         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22988         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22989         (lto_input_data_block): Move from lto-opts.c.  Make extern.
22990         Update all users.
22991         (lto_input_string): Rename from input_string.  Make extern.
22992         Update all users.
22993         * lto-streamer-out.c (lto_output_string_with_length): Rename from
22994         output_string_with_length.
22995         Output 0 to indicate a non-NULL string.  Update all callers to
22996         not emit 0.
22997         (lto_output_string): Rename from output_string.  Make extern.
22998         Update all users.
22999         (lto_output_decl_state_streams): Make extern.
23000         (lto_output_decl_state_refs): Make extern.
23001         * lto-streamer.h (lto_input_string): Declare.
23002         (lto_input_data_block): Declare.
23003         (lto_output_string): Declare.
23004         (lto_output_string_with_length): Declare.
23005         (lto_output_decl_state_streams): Declare.
23006         (lto_output_decl_state_refs): Declare.
23007
23008 2011-03-24  Richard Guenther  <rguenther@suse.de>
23009
23010         PR tree-optimization/46562
23011         * tree.c (build_invariant_address): New function.
23012         * tree.h (build_invariant_address): Declare.
23013         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23014         a renamed function moved ...
23015         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23016         Take valueization callback parameter.
23017         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23018         * gimple-fold.h: New file.
23019         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23020         (ccp_fold, fold_const_aggregate_ref,
23021         fold_ctor_reference, fold_nonarray_ctor_reference,
23022         fold_array_ctor_reference, fold_string_cst_ctor_reference,
23023         get_base_constructor): Move ...
23024         * gimple-fold.c: ... here.
23025         (gimple_fold_stmt_to_constant_1): New function
23026         split out from ccp_fold.  Take a valueization callback parameter.
23027         Valueize all operands.
23028         (gimple_fold_stmt_to_constant): New wrapper function.
23029         (fold_const_aggregate_ref_1): New function split out from
23030         fold_const_aggregate_ref.  Take a valueization callback parameter.
23031         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23032         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23033         invariant POINTER_PLUS_EXPRs to invariant form.
23034         (vn_valueize): New function.
23035         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23036         * tree-vrp.c (vrp_valueize): New function.
23037         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23038         to fold statements to constants.
23039         * tree-ssa-pre.c (eliminate): Properly guard propagation of
23040         function declarations.
23041         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23042         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23043
23044 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23045
23046         * config/h8300/predicates.md (jump_address_operand): Fix register
23047         mode check.
23048
23049 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
23050
23051         * doc/invoke.texi (max-stores-to-sink): Document.
23052         * params.h (MAX_STORES_TO_SINK): Define.
23053         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23054         if either vectorization or if-conversion is disabled.
23055         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23056         tree-vect-data-refs.c vect_equal_offsets.
23057         (dr_equal_offsets_p): New function.
23058         (find_data_references_in_bb): Remove static.
23059         * tree-data-ref.h (find_data_references_in_bb): Declare.
23060         (dr_equal_offsets_p): Likewise.
23061         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23062         (vect_drs_dependent_in_basic_block): Update calls to
23063         vect_equal_offsets.
23064         (vect_check_interleaving): Likewise.
23065         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23066         (cond_if_else_store_replacement): Rename to...
23067         (cond_if_else_store_replacement_1): ... this.  Change arguments and
23068         documentation.
23069         (cond_if_else_store_replacement): New function.
23070         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23071         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23072
23073 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
23074
23075         PR target/46934
23076         * config/arm/arm.md (casesi): Use the gen_int_mode() function
23077         to subtract lower bound instead of GEN_INT().
23078
23079 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
23080
23081         PR other/48179
23082         PR other/48221
23083         PR other/48234
23084         * doc/extend.texi (Alignment): Move section to match order in TOC.
23085         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23086         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23087
23088 2011-03-23  Jeff Law  <law@redhat.com>
23089
23090         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23091         before removing the edge.
23092
23093         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23094         it may have been freed by redirect_branch_edge or
23095         redirect_edge_succ_nodup.
23096
23097 2011-03-23  Richard Guenther  <rguenther@suse.de>
23098
23099         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23100         (check_va_list_escapes): Likewise.
23101         (check_all_va_list_escapes): Likewise.
23102
23103 2011-03-23  Richard Guenther  <rguenther@suse.de>
23104
23105         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23106         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23107         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23108         (alias.o): Likewise.
23109         (ipa-type-escape.o): Remove.
23110         (ipa-struct-reorg.o): Likewise.
23111         (GTFILES): Remove ipa-struct-reorg.c.
23112         * alias.c: Do not include ipa-type-escape.h.
23113         * tree-ssa-alias.c: Likewise.
23114         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23115         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23116         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23117         and ipa-type-escape passes.
23118         * tree-pass.h (pass_ipa_type_escape): Remove.
23119         (pass_ipa_struct_reorg): Likewise.
23120         * ipa-struct-reorg.h: Remove.
23121         * ipa-struct-reorg.c: Likewise.
23122         * ipa-type-escape.h: Likewise.
23123         * ipa-type-escape.c: Likewise.
23124         * doc/invoke.texi (-fipa-struct-reorg): Remove.
23125         (--param struct-reorg-cold-struct-ratio): Likewise.
23126         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23127         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23128         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23129
23130 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23131
23132         * config/s390/2084.md: Enable all insn reservations also for z9_ec
23133         cpu attribute value.
23134         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23135         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23136         * config/s390/s390.c (processor_flags_table): New constant array.
23137         (s390_handle_arch_option): Remove.
23138         (s390_handle_option): Remove s390_handle_arch_option invocations
23139         and OPT_mwarn_framesize_ handling.
23140         (s390_option_override): Remove s390_handle_arch_option invocation.
23141         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23142         warnings.
23143         * config/s390/s390.md (cpu attribute): Add z9_ec value.
23144         * config/s390/s390.opt (s390_tune, s390_arch)
23145         (march=): Replace s390_arch_option enum and values with
23146         processor_type.  Set variable name to s390_arch.  Set
23147         initialization value.
23148         (mtune=): Replace s390_arch_option with processor_type.  Set
23149         variable name to s390_tune.  Set initialization value.
23150
23151 2011-03-23  Julian Brown  <julian@codesourcery.com>
23152
23153         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23154         accesses which are not naturally aligned.
23155
23156 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23157
23158         PR target/47553
23159         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23160
23161 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23162
23163         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23164         parameter from "int" to "enum insn_code".
23165         (expand_operand_type): New enum.
23166         (expand_operand): New structure.
23167         (create_expand_operand): New function.
23168         (create_fixed_operand, create_output_operand): Likewise
23169         (create_input_operand, create_convert_operand_to): Likewise.
23170         (create_convert_operand_from, create_address_operand): Likewise.
23171         (create_integer_operand): Likewise.
23172         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23173         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23174         (expand_insn, expand_jump_insn): Likewise.
23175         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23176         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23177         (expand_movstr, expand_builtin___clear_cache): Likewise.
23178         (expand_builtin_lock_release): Likewise.
23179         * explow.c (allocate_dynamic_stack_space): Likewise.
23180         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
23181         and use the default handling in that case.
23182         * expmed.c (check_predicate_volatile_ok): Delete.
23183         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23184         (emit_cstore): Likewise.
23185         * expr.c (emit_block_move_via_movmem): Likewise.
23186         (set_storage_via_setmem, expand_assignment): Likewise.
23187         (emit_storent_insn, try_casesi): Likewise.
23188         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
23189         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23190         (expand_vec_shift_expr, expand_binop_directly): Likewise.
23191         (expand_twoval_unop, expand_twoval_binop): Likewise.
23192         (expand_unop_direct, emit_indirect_jump): Likewise.
23193         (emit_conditional_move, vector_compare_rtx): Likewise.
23194         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23195         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23196         (expand_sync_lock_test_and_set): Likewise.
23197         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
23198         (emit_unop_insn): Likewise.
23199         (expand_copysign_absneg): Change icode to an insn_code.
23200         (create_convert_operand_from_type): New function.
23201         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23202         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23203         (expand_insn, expand_jump_insn): Likewise.
23204         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23205         than const_int_operand for operand 2.
23206
23207 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23208
23209         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23210         if possible.
23211
23212 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23213
23214         * emit-rtl.c (emit_pattern_before_noloc): New function.
23215         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23216         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23217         (emit_pattern_after_noloc): New function.
23218         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23219         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23220
23221 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23222
23223         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23224         (__ffsDI2): Likewise.
23225
23226 2011-03-22  Richard Henderson  <rth@redhat.com>
23227
23228         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23229         of !TARGET_ABI_OPEN_VMS.
23230         (alpha_trampoline_init, alpha_start_function): Likewise.
23231         (alpha_expand_epilogue, alpha_file_start): Likewise.
23232         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23233         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23234         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23235         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23236         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23237
23238 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23239
23240         * config/s390/s390-opts.h: New.
23241         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23242         s390_arch_flags, s390_warn_framesize, s390_stack_size,
23243         s390_stack_guard): Remove.
23244         (s390_handle_arch_option): Return void.  Take enum
23245         s390_arch_option value instead of string and searching array.
23246         (s390_handle_option): Don't assert that global structures are in
23247         use.  Access variables via opts pointer.  Use error_at.  Don't use
23248         sscanf for -mstack-guard= or -mstack-size=.  Update call to
23249         s390_handle_arch_option.
23250         (s390_option_override): Update call to s390_handle_arch_option.
23251         (s390_emit_prologue): Use %d format for s390_stack_size in
23252         diagnostic.  Use %wd for HOST_WIDE_INT.
23253         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23254         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23255         * config/s390/s390.opt (config/s390/s390-opts.h): New
23256         HeaderInclude entry.
23257         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23258         s390_arch_flags, s390_warn_framesize): New Variable entries.
23259         (s390_arch_option): New Enum and EnumValue entries.
23260         (march=): Use Enum instead of Var.
23261         (mstack-guard=, mstack-size=): Use UInteger and Var.
23262         (mtune=): Use Enum.
23263
23264 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23265
23266         * config/score/score.c (score_handle_option): Don't assert that
23267         global structures are in use.  Access target_flags via opts
23268         pointer.  Use value of -march= option to determine target_flags
23269         settings.
23270         * config/score/score.opt (march=): Use Enum.
23271         (score_arch): New Enum and EnumValue entries.
23272
23273 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23274
23275         * config/mep/mep.c (option_mtiny_specified): Remove.
23276         (mep_option_override): Move register handling for -mivc2 from
23277         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
23278         instead of option_mtiny_specified.
23279         (mep_handle_option): Access target_flags via opts pointer.  Don't
23280         assert that global structures are in use.  Defer part of -mivc2
23281         handling and move it to mep_option_override.
23282         * config/mep/mep.opt (IVC2): New Mask entry.
23283         (mivc2): Use Var and Defer instead of Mask.
23284
23285 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23286
23287         * config/v850/v850-opts.h: New.
23288         * config/v850/v850.c (small_memory): Replace with
23289         small_memory_physical_max array.  Make that array static const.
23290         (v850_handle_memory_option): Take integer value of argument.  Take
23291         gcc_options pointer, option text and location.  Return void.
23292         Update for changes to small memory structures.
23293         (v850_handle_option): Access target_flags via opts pointer.  Don't
23294         assert that global structures are in use.  Update calls to
23295         v850_handle_memory_option.
23296         (v850_encode_data_area): Update references to small memory settings.
23297         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23298         (enum small_memory_type): Move to v850-opts.h.
23299         * config/v850/v850.opt (config/v850/v850-opts.h): New
23300         HeaderInclude entry.
23301         (small_memory_max): New Variable entry.
23302         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
23303         (mtda, mzda): Likewise.
23304
23305 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23306
23307         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23308         pointer.  Don't assert that global structures are in use.
23309
23310 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23311
23312         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23313         via opts pointer.  Don't assert that global structures are in use.
23314
23315 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23316
23317         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23318         (munix=93): Use Var.
23319         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23320         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23321         * config/pa/pa-opts.h: New.
23322         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23323         (pa_handle_option): Don't assert that global structures are in
23324         use.  Access target_flags via opts pointer.  Don't handle
23325         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23326         OPT_munix_98 here.
23327         (pa_option_override): Handle deferred OPT_mfixed_range_.
23328
23329 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23330
23331         * config/mn10300/mn10300-opts.h: New.
23332         * config/mn10300/mn10300.c (mn10300_processor,
23333         mn10300_tune_string): Remove.
23334         (mn10300_handle_option): Don't assert that global structures are
23335         in use.  Access mn10300_processor via opts pointer.  Don't handle
23336         OPT_mtune_ here.
23337         * config/mn10300/mn10300.h (enum processor_type): Move to
23338         mn10300-opts.h.
23339         (mn10300_processor): Remove.
23340         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
23341         HeaderInclude entry.
23342         (mn10300_processor): New Variable entry.
23343         (mtune=): Use Var.
23344
23345 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23346
23347         * config/microblaze/microblaze.c: Don't include opts.h.
23348         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
23349         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
23350         (mno-clearbss): Use Var and Warn.
23351
23352 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23353
23354         * config/m32r/m32r-opts.h: New.
23355         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
23356         (m32r_handle_option): Don't assert that global structures are in
23357         use.  Access target_flags and m32r_cache_flush_func via opts
23358         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
23359         OPT_mno_flush_trap here.
23360         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
23361         include of m32r-opts.h.
23362         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
23363         HeaderInclude entry.
23364         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
23365         (mmodel=): Use Enum and Var.
23366         (m32r_model): New Enum and EnumValue entries.
23367         (mno-flush-trap): Use Var.
23368         (msdata=): Use Enum and Var.
23369         (m32r_sdata): New Enum and EnumValue entries.
23370
23371 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23372
23373         * config/m32c/m32c.c: Don't include opts.h.
23374         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
23375         m32c_handle_option): Remove.
23376         (m32c_option_override): Check global_options_set.x_target_memregs
23377         instead of target_memregs_set.
23378         * config/m32c/m32c.h (target_memregs): Remove.
23379         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
23380         variable.
23381
23382 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23383
23384         * config/iq2000/iq2000-opts.h: New.
23385         * config/iq2000/iq2000.c: Don't include opts.h.
23386         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
23387         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
23388         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
23389         HeaderInclude entry.
23390         (iq2000_tune): New Variable entry.
23391         (march=): Add comment.  Use Enum.
23392         (iq2000_arch): New Enum and EnumValue entries.
23393         (mcpu=): Use Enum and Var.
23394         (iq2000_tune): New Enum and EnumValue entries.
23395
23396 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23397
23398         * config/ia64/ia64-opts.h: New.
23399         * config/ia64/ia64.c (ia64_tune): Remove.
23400         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
23401         here.  Use error_at.
23402         (ia64_option_override): Handle deferred OPT_mfixed_range_.
23403         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
23404         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
23405         HeaderInclude entry.
23406         (ia64_tune): New Variable entry.
23407         (mfixed-range=): Use Defer and Var.
23408         (mtune=): Use Enum and Var.
23409         (ia64_tune): New Enum and EnumValue entries.
23410
23411 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23412
23413         * config/frv/frv-opts.h: New.
23414         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
23415         frv-opts.h.
23416         (frv_cpu_type): Remove.
23417         * config/frv/frv.c: Don't include opts.h.
23418         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
23419         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
23420         (frv_cpu_type): New Variable entry.
23421         (frv_cpu): New Enum and EnumValue entries.
23422
23423 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23424
23425         * config/cris/cris.c (cris_handle_option): Access target_flags via
23426         opts pointer.  Don't assert that global structures are in use.
23427         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
23428         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
23429
23430 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23431
23432         * config/bfin/bfin-opts.h: New.
23433         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
23434         bfin_si_revision, bfin_workarounds): Remove.
23435         (bfin_cpus): Make static const.
23436         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
23437         not bfin_lib_id_given.
23438         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
23439         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
23440         pointer. Use error_at.  Don't assert that global structures are in use.
23441         * config/bfin/bfin.h: Include bfin-opts.h.
23442         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
23443         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
23444         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
23445         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
23446         entries.
23447
23448 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23449
23450         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
23451         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
23452         or -msoft-float here.
23453         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
23454         -msoft-float and -mhard-float.
23455         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
23456         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23457         msoft-float.
23458         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
23459         -msoft-float.
23460         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
23461         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
23462         not mhard-float.
23463         (LIBGCC_SPEC): Don't handle -msoft-float.
23464         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
23465         -mhard-float.
23466         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23467         msoft-float.
23468         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
23469         -mfloat-abi=*, not -msoft-float and -mhard-float.
23470         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
23471         -msoft-float.
23472         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
23473         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
23474         mhard-float and msoft-float.
23475         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
23476         mfloat-abi=soft in comments, not mhard-float and msoft-float.
23477         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23478         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
23479         mhard-float.
23480         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
23481         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
23482         msoft-float.
23483         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
23484         not mhard-float.
23485         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
23486         not msoft-float.
23487
23488 2011-03-22  Richard Henderson  <rth@redhat.com>
23489
23490         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
23491         TARGET_ABI_WINDOWS_NT.
23492         (alpha_output_function_end_prologue): Likewise.
23493         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
23494         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23495         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
23496         (trap, *movsi_nt_vms): Likewise.
23497         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
23498         (*tablejump_osf_nt_internal): Remove.
23499         * config/alpha/predicates.md (input_operand): Only test Pmode.
23500
23501 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23502
23503         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
23504         via opts pointer.  Use error_at.  Don't assert that global
23505         structures are in use.
23506
23507 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23508
23509         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
23510         (ix86_handle_option): Access ix86_isa_flags and
23511         ix86_isa_flags_explicit via opts pointer.  Don't assert that
23512         global structures are in use.
23513         (ix86_function_specific_save, ix86_function_specific_restore):
23514         Update ix86_isa_flags_explicit field name.
23515         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
23516         (ix86_isa_flags_explicit): Rename TargetSave entry to
23517         x_ix86_isa_flags_explicit.
23518
23519 2011-03-22  Richard Henderson  <rth@redhat.com>
23520
23521         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
23522         (alpha_option_override, direct_return): Likewise.
23523         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
23524         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
23525         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
23526         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23527         (alpha_expand_epilogue, alpha_end_function): Likewise.
23528         (alpha_init_libfuncs): Likewise.
23529         (struct machine_function): Remove unicosmk members.
23530         (print_operand) ['t']: Remove.
23531         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
23532         unicosmk_output_module_name, unicosmk_output_common,
23533         current_section_align, unicosmk_output_text_section_asm_op,
23534         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
23535         unicosmk_section_type_flags, unicosmk_unique_section,
23536         unicosmk_asm_named_section, unicosmk_insert_attributes,
23537         unicosmk_output_align, unicosmk_defer_case_vector,
23538         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
23539         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
23540         unicosmk_output_ssib, unicosmk_add_call_info_word,
23541         unicosmk_extern_head, unicosmk_output_default_externs,
23542         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
23543         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
23544         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
23545         * config/alpha/alpha-protos.h: Update.
23546         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
23547         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
23548         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
23549         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
23550         (*mulsi_se, mulvsi3): Likewise.
23551         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
23552         (*divmodsi_internal, call, call_value, realign): Likewise.
23553         (moddi3, umoddi3): Likewise; remove duplicate expander.
23554         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
23555         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
23556         (*movdi_nofix): Remove r/U alternative.
23557         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
23558         * config/alpha/constraints.md ("U"): Remove.
23559         * config/alpha/predicates.md (call_operand"): Don't test
23560         TARGET_ABI_UNICOSMK.
23561
23562 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23563
23564         * target.def (handle_option): Take gcc_options and
23565         cl_decoded_option pointers and location_t.
23566         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
23567         * doc/tm.texi: Regenerate.
23568         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
23569         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
23570         * lto-opts.c (lto_reissue_options): Generate option structure for
23571         targetm.handle_option call.
23572         * opts.c (target_handle_option): Update call to
23573         targetm.handle_option.  Remove assertions about values now passed
23574         down to hook.
23575         * targhooks.c (default_target_handle_option): New.
23576         * targhooks.h (default_target_handle_option): Declare.
23577         * config/alpha/alpha.c: Include opts.h.
23578         (alpha_handle_option): Update to new hook interface.
23579         * config/arm/arm.c: Include opts.h.
23580         (arm_handle_option): Update to new hook interface.
23581         * config/arm/t-arm (arm.o): Update dependencies.
23582         * config/bfin/bfin.c: Include opts.h.
23583         (bfin_handle_option): Update to new hook interface.
23584         * config/cris/cris.c: Include opts.h.
23585         (cris_handle_option): Update to new hook interface.
23586         * config/frv/frv.c: Include opts.h.
23587         (frv_handle_option): Update to new hook interface.
23588         * config/i386/i386.c: Include opts.h.
23589         (ix86_handle_option): Update to new hook interface.
23590         (ix86_valid_target_attribute_inner_p): Generate option structure
23591         for call to ix86_handle_option.
23592         * config/i386/t-i386 (i386.o): Update dependencies.
23593         * config/ia64/ia64.c: Include opts.h.
23594         (ia64_handle_option): Update to new hook interface.
23595         * config/ia64/t-ia64 (ia64.o): Update dependencies.
23596         * config/iq2000/iq2000.c: Include opts.h.
23597         (iq2000_handle_option): Update to new hook interface.
23598         * config/m32c/m32c.c: Include opts.h.
23599         (m32c_handle_option): Update to new hook interface.
23600         * config/m32r/m32r.c: Include opts.h.
23601         (m32r_handle_option): Update to new hook interface.
23602         * config/m68k/m68k.c: Include opts.h.
23603         (m68k_handle_option): Update to new hook interface.
23604         * config/mep/mep.c: Include opts.h.
23605         (mep_handle_option): Update to new hook interface.
23606         * config/microblaze/microblaze.c: Include opts.h.
23607         (microblaze_handle_option): Update to new hook interface.
23608         * config/mips/mips.c: Include opts.h.
23609         (mips_handle_option): Update to new hook interface.
23610         * config/mn10300/mn10300.c: Include opts.h.
23611         (mn10300_handle_option): Update to new hook interface.
23612         * config/pa/pa.c: Include opts.h.
23613         (pa_handle_option): Update to new hook interface.
23614         * config/pdp11/pdp11.c: Include opts.h.
23615         (pdp11_handle_option): Update to new hook interface.
23616         * config/rs6000/rs6000.c: Include opts.h.
23617         (rs6000_handle_option): Update to new hook interface.
23618         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
23619         * config/rx/rx.c: Include opts.h.
23620         (rx_handle_option): Update to new hook interface.
23621         * config/s390/s390.c: Include opts.h.
23622         (s390_handle_option): Update to new hook interface.
23623         * config/score/score.c: Include opts.h.
23624         (score_handle_option): Update to new hook interface.
23625         * config/sh/sh.c: Include opts.h.
23626         (sh_handle_option): Update to new hook interface.
23627         * config/sparc/sparc.c: Include opts.h.
23628         (sparc_handle_option): Update to new hook interface.
23629         * config/v850/v850.c: Include opts.h.
23630         (v850_handle_option): Update to new hook interface.
23631
23632 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23633
23634         * gcc.c (driver_unknown_option_callback): Only permit and save
23635         unknown -Wno- options.
23636         (driver_wrong_lang_callback): Save options directly instead of via
23637         driver_unknown_option_callback.
23638
23639 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
23640
23641         * combine.c (simplify_set): Try harder to find the best CC mode when
23642         simplifying a nested COMPARE on the RHS.
23643
23644 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23645
23646         * config/alpha/gnu.h: Remove.
23647         * config/arc: Remove directory.
23648         * config/arm/netbsd.h: Remove.
23649         * config/arm/t-pe: Remove.
23650         * config/crx: Remove directory.
23651         * config/i386/netbsd.h: Remove.
23652         * config/m68hc11: Remove directory.
23653         * config/m68k/uclinux-oldabi.h: Remove.
23654         * config/mcore/mcore-pe.h: Remove.
23655         * config/mcore/t-mcore-pe: Remove.
23656         * config/netbsd-aout.h: Remove.
23657         * config/rs6000/gnu.h: Remove.
23658         * config/sh/sh-symbian.h: Remove.
23659         * config/sh/symbian-base.c: Remove.
23660         * config/sh/symbian-c.c: Remove.
23661         * config/sh/symbian-cxx.c: Remove.
23662         * config/sh/symbian-post.h: Remove.
23663         * config/sh/symbian-pre.h: Remove.
23664         * config/sh/t-symbian: Remove.
23665         * config/svr3.h: Remove.
23666         * config/vax/netbsd.h: Remove.
23667         * config.build: Don't handle i[34567]86-*-pe.
23668         * config.gcc: Remove handling of deprecations for most deprecated
23669         targets.
23670         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23671         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23672         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23673         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23674         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23675         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23676         Remove cases.
23677         * config.host: Don't handle i[34567]86-*-pe.
23678         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23679         (ASM_SPEC32): Don't handle -mcall-gnu.
23680         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23681         -mcall-gnu.
23682         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23683         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23684         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23685         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23686         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23687         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23688         conditional on SYMBIAN.
23689         * configure.ac: Don't handle powerpc*-*-gnu*.
23690         * configure: Regenerate.
23691         * doc/extend.texi (interrupt attribute): Don't mention CRX.
23692         * doc/install-old.texi (m6811, m6812): Don't mention.
23693         * doc/install.texi (arc-*-elf*): Don't document multilib option.
23694         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23695         (m68k-uclinuxoldabi): Don't mention.
23696         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23697         Remove.
23698         (-mcall-gnu): Remove.
23699         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23700         families): Remove constraint documentation.
23701
23702 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
23703
23704         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23705         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23706         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23707
23708 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23709
23710         PR target/48226
23711         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23712         vector when peeking at the next token for vector, don't expand the
23713         keywords.
23714
23715 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
23716
23717         * config/avr/avr-protos.h (expand_epilogue): Change prototype
23718         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23719         * config/avr/avr.c (init_cumulative_args)
23720         (avr_function_arg_advance): Use it.
23721         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23722         sibcall epilogues.
23723         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23724         (avr_function_ok_for_sibcall): ...this new function.
23725         (avr_lookup_function_attribute1): New static Function.
23726         (avr_naked_function_p, interrupt_function_p)
23727         (signal_function_p, avr_OS_task_function_p)
23728         (avr_OS_main_function_p): Use it.
23729         * config/avr/avr.md ("sibcall", "sibcall_value")
23730         ("sibcall_epilogue"): New expander.
23731         ("*call_insn", "*call_value_insn"): New insn.
23732         ("call_insn", "call_value_insn"): Remove
23733         ("call", "call_value", "epilogue"): Change expander to handle
23734         sibling calls.
23735
23736 2011-03-21  Nick Clifton  <nickc@redhat.com>
23737
23738         * doc/invoke.texi (Overall Options): Move closing brace to end of
23739         options list.
23740         (Optimization Options): Add missing @gol.
23741         (Directory Options): Likewise.
23742         (i386 and x86-64 Options): Likewise.
23743         (RS6000 and PowerPC Options): Likewise.
23744         (i386 and x86-64 Windows Options): Likewise.
23745         (V850 Options): Add text missing from descriptions.
23746
23747 2011-03-22  Richard Henderson  <rth@redhat.com>
23748
23749         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23750         (avr_incoming_return_addr_rtx): New.
23751         (emit_push_byte): New.
23752         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
23753         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
23754         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
23755         (emit_pop_byte): New.
23756         (expand_epilogue): Use it.  Pop frame pointer by bytes.
23757         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23758         (INCOMING_RETURN_ADDR_RTX): New.
23759         (INCOMING_FRAME_SP_OFFSET): New.
23760         (ARG_POINTER_CFA_OFFSET): New.
23761         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23762         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23763         (pophi): Remove.
23764
23765         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23766
23767 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23768
23769         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23770         (FUNCTION_ARG_ADVANCE): Likewise.
23771         * tm.texi.in: Change references to them to hook references.
23772         * tm.texi: Regenerate.
23773         * targhooks.c (default_function_arg): Eliminate check for target
23774         macro.
23775         (default_function_incoming_arg): Likewise.
23776         (default_function_arg_advance): Likewise.
23777         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23778         (function_arg_advance): Likewise.
23779         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23780
23781 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23782
23783         * tree.c (build_call_1): New function.
23784         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23785
23786 2011-03-22  Richard Guenther  <rguenther@suse.de>
23787
23788         PR tree-optimization/48228
23789         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23790         for single-arg PHIs.
23791
23792 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
23793
23794         PR rtl-optimization/48143
23795         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23796         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23797         sse2_cvtps2pd): Likewise.
23798
23799 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23800
23801         * recog.c (canonicalize_change_group): Use validate_unshare_change.
23802
23803 2011-03-22  Richard Guenther  <rguenther@suse.de>
23804
23805         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23806         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23807         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23808         and REALIGN_LOAD_EXPR.
23809         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23810         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23811         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23812         DOT_PROD_EXPR case ...
23813         (expand_expr_real_2): ... here.
23814         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23815         and REALIGN_LOAD_EXPR.
23816         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23817         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23818         (vect_create_epilog_for_reduction): Likewise.
23819         (vectorizable_reduction): Likewise.
23820         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23821         * tree-vect-stmts.c (vectorizable_load): Likewise.
23822
23823 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
23824
23825         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23826
23827 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23828
23829         * config/s390/s390.c (s390_delegitimize_address): Fix offset
23830         handling for PLTOFF/GOTOFF.
23831
23832 2011-03-22  Nick Clifton  <nickc@redhat.com>
23833
23834         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23835         trailing backslash from the end of the macro definition.
23836
23837 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23838
23839         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23840         and PLT unspecs.
23841
23842 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
23843
23844         * expr.h (prepare_operand): Move to...
23845         * optabs.h (prepare_operand): ...here and change the insn code
23846         parameter from "int" to "enum insn_code".
23847         (insn_operand_matches): Declare.
23848         * expr.c (init_expr_target): Use insn_operand_matches.
23849         (compress_float_constant): Likewise.
23850         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23851         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23852         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23853         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23854         Likewise.
23855         (gen_cond_trap): Likewise.
23856         (prepare_operand): Likewise.  Change icode to an insn_code.
23857         (insn_operand_matches): New function.
23858         * reload.c (find_reloads_address_1): Use insn_operand_matches.
23859         * reload1.c (gen_reload): Likewise.
23860         * targhooks.c (default_secondary_reload): Likewise.
23861
23862 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23863
23864         * config/alpha/alpha.md (unspec): New define_c_enum.
23865         (unspecv): Ditto.
23866
23867 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
23868
23869         PR debug/48214
23870         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23871         between a call and its CALL_ARG_LOCATION note.
23872
23873 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
23874
23875         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23876
23877 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23878
23879         PR c/42544
23880         PR c/48197
23881         * c-common.c (shorten_compare): If primopN is first sign-extended
23882         to opN and then zero-extended to result type, set primopN to opN.
23883
23884 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
23885
23886         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23887         for barrier handlers.
23888
23889 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23890
23891         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23892         UNSPEC constants to be in the unspec enumeration, and redefine
23893         all UNSPECV constants to be in the unspecv enumeration, so that
23894         dumps print which unspec/unspec_volatile this is.
23895         * config/rs6000/vector.md (UNSPEC_*): Ditto.
23896         * config/rs6000/paired.md (UNSPEC_*): Ditto.
23897         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23898         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23899         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23900
23901         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23902         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23903         UNSPECV_LWSYNC, since these are used as unspec_volatile.
23904         * config/rs6000/sync.md (isync, lwsync): Ditto.
23905
23906 2011-03-21  Richard Guenther  <rguenther@suse.de>
23907
23908         * params.def (lto-min-partition): Fix typo.
23909
23910 2011-03-21  Richard Guenther  <rguenther@suse.de>
23911
23912         PR c/47939
23913         * c-decl.c (grokdeclarator): Drop to the main variant only
23914         for array types.  Drop flag_gen_aux_info check.
23915
23916 2011-03-21  Richard Guenther  <rguenther@suse.de>
23917
23918         PR translation/47911
23919         * params.def (lto-partitions): Fix typo.
23920         (lto-min-partition): Fix wording.
23921
23922 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
23923
23924         * config/rs6000/t-freebsd: Remove duplication from file.
23925
23926 2011-03-21  Richard Guenther  <rguenther@suse.de>
23927
23928         PR middle-end/47661
23929         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23930
23931 2011-03-21  Richard Guenther  <rguenther@suse.de>
23932
23933         PR lto/48210
23934         * params.def (lto-partitions): Require at least 1 partition.
23935
23936 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23937
23938         * gthr-solaris.h: Remove.
23939         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23940         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23941         (LIB_SPEC): Likewise.
23942         * config/sol2.opt (threads): Remove.
23943         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23944         (sparc*-*-solaris2*): Likewise.
23945         * configure.ac (enable_threads): Enable solaris support.
23946         * configure: Regenerate.
23947         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23948         * doc/install.texi (Configuration, --enable-threads=lib): Remove
23949         solaris.
23950
23951 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23952
23953         * config.gcc: Obsolete *-*-solaris2.8*.
23954         * doc/install.texi (Specific, *-*-solaris2*): Document it.
23955
23956 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23957
23958         PR bootstrap/48135
23959         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23960         reference.  Solaris 8 perl works.
23961
23962 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23963
23964         PR bootstrap/48135
23965         * doc/install.texi (Prerequisites): Move jar etc. up.
23966         Explain support library version requirements.
23967
23968 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23969
23970         PR bootstrap/48135
23971         * doc/install.texi (Prerequisites): Move Perl to build
23972         requirements.  Always necessary on Solaris 2 with Sun ld.
23973
23974 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23975
23976         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23977         binutils 2.21.
23978         (Specific, i?86-*-solaris2.[89]): Likewise.
23979         (Specific, i?86-*-solaris2.10): Likewise.
23980         (Specific, mips-sgi-irix6): Likewise.
23981         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23982         Update for binutils 2.21.
23983
23984 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23985
23986         * configure.ac (gcc_cv_lto_plugin): Fix typo.
23987         Allow -fuse-linker-plugin for non-default plugin linker.
23988         * configure: Regenerate.
23989
23990 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
23991
23992         PR bootstrap/48167
23993         * gengtype.c (files_rules): Added rule for cp/parser.h.
23994
23995 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
23996
23997         PR target/48213
23998         * config/s390/s390.c (s390_delegitimize_address): Don't call
23999         lowpart_subreg if orig_x has BLKmode.
24000
24001 2011-03-21  Kai Tietz  <ktietz@redhat.com>
24002
24003         PR target/12171
24004         * doc/plugins.texi: Adjust documentation for plugin register_callback.
24005         * tree.h (attribute_spec): Add new member affects_type_identity.
24006         * attribs.c (empty_attribute_table): Adjust attribute_spec
24007         initializers.
24008         * config/alpha/alpha.c: Likewise.
24009         * config/arc/arc.c: Likewise.
24010         * config/arm/arm.c: Likewise.
24011         * config/avr/avr.c: Likewise.
24012         * config/bfin/bfin.c: Likewise.
24013         * config/crx/crx.c: Likewise.
24014         * config/darwin.h: Likewise.
24015         * config/h8300/h8300.c: Likewise.
24016         * config/i386/cygming.h: Likewise.
24017         * config/i386/i386.c: Likewise.
24018         * config/ia64/ia64.c: Likewise.
24019         * config/m32c/m32c.c: Likewise.
24020         * config/m32r/m32r.c: Likewise.
24021         * config/m68hc11/m68hc11.c: Likewise.
24022         * config/m68k/m68k.c: Likewise.
24023         * config/mcore/mcore.c: Likewise.
24024         * config/mep/mep.c: Likewise.
24025         * config/microblaze/microblaze.c: Likewise.
24026         * config/mips/mips.c: Likewise.
24027         * config/rs6000/rs6000.c: Likewise.
24028         * config/rx/rx.c: Likewise.
24029         * config/sh/sh.c: Likewise.
24030         * config/sol2.h: Likewise.
24031         * config/sparc/sparc.c: Likewise.
24032         * config/spu/spu.c: Likewise.
24033         * config/stormy16/stormy16.c: Likewise.
24034         * config/v850/v850.c: Likewise.
24035
24036 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24037
24038         * simplify-rtx.c (simplify_binary_operation_1): Handle
24039         (xor (and A B) C) case when B and C are both constants.
24040
24041 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
24042
24043         * tree-dfa.c (add_referenced_var): Fix typo in comment.
24044
24045 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24046
24047         PR bootstrap/48168
24048         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24049
24050 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
24051
24052         PR rtl-optimization/48156
24053         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24054         assume df and df_lr are not NULL.
24055
24056 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24057
24058         PR debug/48023
24059         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24060         between a call and its CALL_ARG_LOCATION note.
24061
24062 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24063
24064         PR debug/48178
24065         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24066         between a call and its corresponding CALL_ARG_LOCATION note.
24067
24068 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
24069
24070         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24071         instead of loop. Use HARD_REGISTER_NUM_P predicate.
24072         * haifa-sched.c (setup_ref_regs): Ditto.
24073         * caller-save.c (add_used_regs_1): Ditto.
24074         * dse.c (look_for_hardregs): Ditto.
24075         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24076         * sched-rgn.c (check_live_1): Ditto.
24077
24078 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24079
24080         * c-decl.c (diagnose_mismatched_decls): Give an error for
24081         redefining a typedef with variably modified type.
24082
24083 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24084
24085         * c-decl.c (grokfield): Don't allow typedefs for structures or
24086         unions with no tag by default.
24087         * doc/extend.texi (Unnamed Fields): Update.
24088
24089 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
24090
24091         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24092         Rewrite using indirect functions.
24093         (lwp_slwpcb): Ditto.
24094         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24095         (avx_vinsertf128<mode>): Ditto.
24096
24097 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24098
24099         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24100         unspecs.
24101
24102 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24103
24104         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24105         splitting between a call and its corresponding CALL_ARG_LOCATION note.
24106
24107 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
24108
24109         PR rtl-optimization/48170
24110         * gcse.c (hoist_code): Remove bogus asserts.
24111
24112 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
24113
24114         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24115         computation for prologue/epilogue.
24116
24117 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24118
24119         * Makefile.in (check-consistency): Remove.
24120
24121 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
24122
24123         PR debug/48176
24124         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24125         arange_table_in_use is 0, but either text_section_used or
24126         cold_text_section_used is true.  Don't call it if
24127         !info_section_emitted.
24128
24129 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
24130
24131         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24132         FUNCTION_VALUE_REGNO_P): Remove.
24133         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24134         Remove.
24135         * config/avr/avr.c (avr_ret_register): Make static inline.
24136         (avr_function_value_regno_p): New function.
24137         (avr_libcall_value): Make static. Add 'func' argument.
24138         (avr_function_value): Make static. Rename 'func' argument to
24139         'fn_decl_or_type', forward it to avr_libcall_value. Call
24140         avr_ret_register function instead of RET_REGISTER macro.
24141         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24142
24143 2011-03-18  Jason Merrill  <jason@redhat.com>
24144
24145         PR c++/23372
24146         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24147
24148 2011-03-18  Richard Guenther  <rguenther@suse.de>
24149
24150         * doc/install.texi (--enable-gold): Remove.
24151         (--with-plugin-ld): Document.
24152         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24153
24154 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
24155
24156         PR middle-end/47790
24157         * expr.c (optimize_bitfield_assignment_op): Revamp to work
24158         again after expansion changes.
24159
24160 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
24161
24162         * combine.c (try_combine): Do simplification only call of
24163         subst() on i2 even when i1 is present. Update comments.
24164
24165 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
24166
24167         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24168         and UNSPEC_PCREL_SYMOFF.
24169
24170 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24171
24172         * config/s390/s390.md: Use define_c_enum for the unspec constant
24173         definitions.
24174
24175 2011-03-18  Richard Henderson  <rth@redhat.com>
24176             Jakub Jelinek  <jakub@redhat.com>
24177
24178         PR bootstrap/48161
24179         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24180         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24181
24182 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
24183
24184         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24185         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24186         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24187         Change return type to bool.
24188         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24189
24190 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24191
24192         PR debug/48163
24193         * var-tracking.c (prepare_call_arguments): If CALL target
24194         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24195         pc instead of looking it up using cselib_lookup and use
24196         Pmode for it if x has VOIDmode.
24197         * dwarf2out.c (gen_subprogram_die): If also both first and
24198         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24199
24200         PR debug/48163
24201         * function.c (assign_parms): For data.passed_pointer parms
24202         use MEM of data.entry_parm instead of data.entry_parm itself
24203         as DECL_INCOMING_RTL.
24204         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24205         also when passed and declared mode is the same, DECL_RTL
24206         is a MEM with pseudo as address and DECL_INCOMING_RTL is
24207         a MEM too.
24208
24209 2011-03-16  Jeff Law  <law@redhat.com>
24210
24211         PR rtl-optimization/37273
24212         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24213         handle them like argument loads from stack slots.  Do not double
24214         count memory for memory constants and argument loads from stack slots.
24215
24216 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24217
24218         PR debug/48160
24219         * var-tracking.c (prepare_call_arguments): Check SUBREG.
24220
24221 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24222
24223         PR target/48171
24224         * config/i386/i386.opt: Add Save to -mavx and -mfma.
24225
24226 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24227
24228         PR bootstrap/48153
24229         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24230         if dwarf_strict.
24231         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24232         Clear call_arg_locations and call_arg_loc_last always.
24233
24234         PR middle-end/48152
24235         * var-tracking.c (prepare_call_arguments): If argument needs to be
24236         passed by reference, adjust argtype and mode.
24237
24238 2011-03-17  Richard Guenther  <rguenther@suse.de>
24239
24240         PR middle-end/48134
24241         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24242         a value make sure to fold the statement.
24243
24244 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
24245
24246         PR target/43872
24247         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24248         return condition with !cfun->calls_alloca.
24249
24250 2011-03-17  Richard Guenther  <rguenther@suse.de>
24251
24252         PR bootstrap/48148
24253         * lto-cgraph.c (input_overwrite_node): Clear the abstract
24254         origin for decls in other ltrans units.
24255         (input_varpool_node): Likewise.
24256
24257 2011-03-17  Richard Guenther  <rguenther@suse.de>
24258
24259         PR middle-end/48165
24260         * tree-object-size.c (compute_object_offset): Properly return
24261         the offset operand of MEM_REFs as sizetype.
24262
24263 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24264
24265         PR rtl-optimization/48141
24266         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24267         * dse.c: Include params.h.
24268         (active_local_stores_len): New variable.
24269         (add_wild_read, dse_step1): Clear it when setting active_local_stores
24270         to NULL.
24271         (record_store, check_mem_read_rtx): Decrease it when removing
24272         from the chain.
24273         (scan_insn): Likewise.  Increase it when adding to chain, if it
24274         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24275         set active_local_stores to NULL before the addition.
24276         * Makefile.in (dse.o): Depend on $(PARAMS_H).
24277
24278         PR rtl-optimization/48141
24279         * dse.c (record_store): If no positions are needed in an insn
24280         that cannot be deleted, at least unchain it from active_local_stores.
24281
24282 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
24283
24284         PR debug/47510
24285         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24286         (lookup_type_die_strip_naming_typedef): ... here.
24287         (get_context_die): Use it.
24288         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24289         the anonymous struct named by the naming typedef.
24290
24291 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24292
24293         PR target/48154
24294         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24295         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24296
24297 2011-03-16  Jeff Law  <law@redhat.com>
24298
24299         * tree-vrp.c (identify_jump_threads): Slightly simplify type
24300         check for operands of conditional.  Allow type to be a pointer.
24301
24302 2011-03-16  Richard Guenther  <rguenther@suse.de>
24303
24304         PR tree-optimization/48149
24305         * fold-const.c (fold_binary_loc): Fold
24306         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24307
24308 2011-03-16  Richard Guenther  <rguenther@suse.de>
24309
24310         PR tree-optimization/26134
24311         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24312         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24313         (non_rewritable_mem_ref_base): Handle complex type component
24314         accesses, constrain offsets for vector and complex extracts
24315         more properly.
24316
24317 2011-03-16  Richard Guenther  <rguenther@suse.de>
24318
24319         PR tree-optimization/48146
24320         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24321         operands avoiding the need for renaming.
24322
24323 2011-03-16  Richard Guenther  <rguenther@suse.de>
24324
24325         * gimple-fold.c (maybe_fold_reference): Open-code relevant
24326         constant folding.  Move MEM_REF canonicalization first.
24327         Rely on fold_const_aggregate_ref for initializer folding.
24328         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24329
24330 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24331
24332         PR middle-end/48136
24333         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24334         arg0/arg1 or their arguments are always fold converted to matching
24335         types.
24336
24337         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
24338         to nargs.
24339
24340 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24341
24342         PR lto/46944
24343         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
24344         Handle in-tree gold.
24345         (ld_vers): Extract binutils version for gold.
24346         (gcc_cv_ld_hidden): Handle gold here.
24347         (gcc_cv_lto_plugin): Determine level of linker plugin support.
24348         * configure: Regenerate.
24349         * config.in: Regenerate.
24350         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
24351         -fuse-linker-plugin otherwise.
24352         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
24353         (LINK_COMMAND_SPEC): Use it.
24354         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
24355
24356 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24357
24358         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
24359         * calls.c: Remove debug.h include.
24360         (emit_call_1): Don't call virtual_call_token debug hook.
24361         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
24362         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
24363         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
24364         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
24365         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
24366         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
24367         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
24368         dwarf2out_virtual_call): Remove.
24369         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
24370         copy_call_info and virtual_call hooks.
24371         (dwarf2out_init): Don't initialize vcall_insn_table,
24372         debug_dcall_section and debug_vcall_section.
24373         (prune_unused_types): Don't mark nodes from dcall_table.
24374         (dwarf2out_finish): Don't output dcall or vcall tables.
24375         * final.c (final_scan_insn): Don't call direct_call or
24376         virtual_call debug hooks.
24377         * debug.h (struct gcc_debug_hooks): Remove direct_call,
24378         virtual_call_token, copy_call_info and virtual_call hooks.
24379         (debug_nothing_uid): Remove prototype.
24380         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
24381         copy_call_info and virtual_call hooks.
24382         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24383         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
24384         * debug.c (do_nothing_debug_hooks): Likewise.
24385         (debug_nothing_uid): Remove.
24386         * doc/invoke.texi (-fenable-icf-debug): Remove.
24387         * common.opt (-fenable-icf-debug): Likewise.
24388
24389         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
24390         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
24391         call's MEM.  Handle functions returning aggregate through a hidden
24392         first pointer.  For virtual calls add clobbered pc to call arguments
24393         chain.
24394         * dwarf2out.c (gen_subprogram_die): Emit
24395         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
24396         can't be emitted.
24397
24398         PR debug/45882
24399         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
24400         * rtl.h (ENTRY_VALUE_EXP): Define.
24401         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
24402         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
24403         * print-rtl.c (print_rtx): Likewise.
24404         * gengtype.c (adjust_field_rtx_def): Likewise.
24405         * var-tracking.c (vt_add_function_parameter): Adjust
24406         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
24407         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
24408         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
24409         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
24410         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
24411
24412         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
24413         Call var_location debug hook even on CALL_INSNs.
24414         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
24415         * rtl.def (ENTRY_VALUE): New.
24416         * dwarf2out.c: Include cfglayout.h.
24417         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24418         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
24419         (struct call_arg_loc_node): New type.
24420         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
24421         tail_call_site_count): New variables.
24422         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
24423         DW_TAG_GNU_call_site_parameter.
24424         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
24425         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
24426         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
24427         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
24428         and DW_AT_GNU_all_source_call_sites.
24429         (mem_loc_descriptor): Handle ENTRY_VALUE.
24430         (add_src_coords_attributes): Don't add enything if
24431         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
24432         (dwarf2out_abstract_function): Save and clear call_arg_location,
24433         call_site_count and tail_call_site_count around dwarf2out_decl call.
24434         (gen_call_site_die): New function.
24435         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
24436         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
24437         (dwarf2out_function_decl): Clear call_arg_locations,
24438         call_arg_loc_last, set call_site_count and tail_call_site_count
24439         to -1 and free block_map.
24440         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
24441         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
24442         followed by any real instructions.
24443         (dwarf2out_begin_function): Set call_site_count and
24444         tail_call_site_count to 0.
24445         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
24446         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
24447         attempt to force a DIE for it and worst case remove the attribute.
24448         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
24449         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
24450         the decl itself.
24451         * var-tracking.c: Include tm_p.h.
24452         (vt_stack_adjustments): For calls call note_register_arguments.
24453         (argument_reg_set): New variable.
24454         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
24455         ensure the VALUE is resolved.
24456         (call_arguments): New variable.
24457         (prepare_call_arguments): New function.
24458         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
24459         (struct expand_loc_callback_data): Add ignore_cur_loc field.
24460         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
24461         always use the best expression.
24462         (vt_expand_loc): Add ignore_cur_loc argument.
24463         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
24464         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
24465         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
24466         note for all calls.
24467         (vt_add_function_parameter): Use cselib_lookup_from_insn.
24468         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
24469         argument.  Don't call cselib_preserve_only_values and
24470         cselib_reset_table.
24471         (note_register_arguments): New function.
24472         (vt_initialize): Compute argument_reg_set.  Call
24473         vt_add_function_parameters before processing basic blocks instead of
24474         afterwards.  For calls call prepare_call_arguments before calling
24475         cselib_process_insn.
24476         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
24477         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
24478         (var-tracking.o): Depend on $(TM_P_H).
24479         * cfglayout.h (insn_scope): New prototype.
24480         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
24481         * cfglayout.c (insn_scope): No longer static.
24482         * insn-notes.def (CALL_ARG_LOCATION): New.
24483         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
24484         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
24485         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
24486         nothing for DECL_EXTERNAL BLOCK_VARS.
24487
24488 2011-03-16  Alan Modra  <amodra@gmail.com>
24489
24490         PR target/45844
24491         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
24492         create invalid offset address for vsx splat insn.
24493         * config/rs6000/predicates.md (splat_input_operand): New.
24494         * config/rs6000/vsx.md (vsx_splat_*): Use it.
24495
24496 2011-03-15  Xinliang David Li  <davidxl@google.com>
24497
24498         PR c/47837
24499         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
24500         (normalize_preds): New function.
24501         (is_use_properly_guarded): Normalize def predicates.
24502
24503 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24504
24505         PR target/46788
24506         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
24507         in the output template.
24508
24509 2011-03-15  Richard Guenther  <rguenther@suse.de>
24510
24511         PR middle-end/47650
24512         * tree-pretty-print.c (dump_function_declaration): Properly
24513         dump unprototyped and varargs function types.
24514
24515 2011-03-15  Richard Guenther  <rguenther@suse.de>
24516
24517         PR tree-optimization/13954
24518         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
24519         and friends.
24520
24521 2011-03-15  Richard Guenther  <rguenther@suse.de>
24522
24523         PR tree-optimization/48037
24524         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
24525         selects into BIT_FIELD_REFs.
24526         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
24527         vector select.
24528
24529 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
24530
24531         PR tree-optimization/48129
24532         * builtins.c (fold_builtin_snprintf): Convert to type of
24533         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
24534         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
24535
24536 2011-03-15  Richard Guenther  <rguenther@suse.de>
24537
24538         PR tree-optimization/41490
24539         * tree-ssa-dce.c (propagate_necessity): Handle returns without
24540         value but with VUSE.
24541         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
24542         return statements.
24543         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
24544         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
24545         * tree-tailcall.c (find_tail_calls): Ignore returns.
24546
24547 2011-03-15  Richard Guenther  <rguenther@suse.de>
24548
24549         PR middle-end/48031
24550         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
24551         or variable-indexed array accesses when in gimple form.
24552
24553 2011-03-15  Richard Guenther  <rguenther@suse.de>
24554
24555         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
24556
24557 2011-03-15  Alan Modra  <amodra@gmail.com>
24558
24559         PR target/48032
24560         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
24561         presume symbol_refs without a symbol_ref_decl are suitably
24562         aligned, nor other trees we may see here.  Handle anchor symbols.
24563         (legitimate_constant_pool_address_p): Comment.  Add mode param.
24564         Check cmodel=medium addresses.  Adjust all calls.
24565         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
24566         creating cmodel=medium optimized access to locals.
24567         * config/rs6000/constraints.md (R): Pass QImode to
24568         legitimate_constant_pool_address_p.
24569         * config/rs6000/predicates.md (input_operand): Pass mode to
24570         legitimate_constant_pool_address_p.
24571         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
24572         Update prototype.
24573
24574 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24575
24576         PR target/48053
24577         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
24578         64-bit constants being loaded into registers other than GPRs such
24579         as loading 0 into a VSX register.
24580
24581 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24582
24583         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
24584
24585 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24586
24587         PR middle-end/47917
24588         * builtins.c (fold_builtin_snprintf): New function.
24589         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
24590         (fold_builtin_4): Likewise.
24591
24592         PR middle-end/38878
24593         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
24594         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
24595         and C - X == X also strip nops from +/-/p+ operand.
24596         When optimizing -X == C, fold C to arg0's type.
24597
24598         PR debug/47946
24599         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
24600         emit it as add_AT_int instead of add_AT_unsigned.
24601
24602 2011-03-14  Tom Tromey  <tromey@redhat.com>
24603
24604         * unwind-dw2.c: Include sys/sdt.h if it exists.
24605         (_Unwind_DebugHook): Use STAP_PROBE2.
24606         * config.in, configure: Rebuild.
24607         * configure.ac: Check for sys/sdt.h.
24608
24609 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
24610
24611         * config/i386/i386.md (ROUND_FLOOR): New constant.
24612         (ROUND_CEIL): Ditto.
24613         (ROUND_TRUNC): Ditto.
24614         (ROUND_MXCSR): Ditto.
24615         (ROUND_NO_EXC): Ditto.
24616         (rint<mode>2): Use new defines instead of numerical constants.
24617         (floor<mode>2): Ditto.
24618         (ceil<mode>2): Ditto.
24619         (btrunc<mode>2): Ditto.
24620         * config/i386/i386-builtin-types.def: Define ROUND function type
24621         aliases.
24622         * config/i386/i386.c (enum ix86_builtins): Add
24623         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
24624         (struct builtin_description): Add
24625         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
24626         (ix86_expand_sse_round): New static function.
24627         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
24628         function types.
24629         (ix86_builtin_vectorized_function): Handle
24630         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24631
24632 2011-03-14  Tom Tromey  <tromey@redhat.com>
24633
24634         * c-parser.c (c_parser_asm_string_literal): Clear
24635         warn_overlength_strings.
24636
24637 2011-03-14  Tom Tromey  <tromey@redhat.com>
24638
24639         * c-parser.c (disable_extension_diagnostics): Save
24640         warn_overlength_strings.
24641         (restore_extension_diagnostics): Restore warn_overlength_strings.
24642
24643 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24644
24645         * BASE-VER: Change to 4.7.0.
24646
24647 2011-03-14  Richard Guenther  <rguenther@suse.de>
24648
24649         PR middle-end/48098
24650         * tree.c (build_vector_from_val): Adjust assert to requirements
24651         and reality.
24652
24653 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24654
24655         PR bootstrap/48102
24656         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
24657
24658 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
24659
24660         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
24661         terms of target_flags_explicit. Adjust copyright year.
24662
24663         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
24664         * config/rs6000/t-freebsd: New file. Add override for
24665         LIB2FUNCS_EXTRA.
24666
24667 2011-03-13  Chris Demetriou  <cgd@google.com>
24668
24669         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24670         (-fno-diagnostics-show-option): this, to reflect current default.
24671         (-Werror=): Update text about -fno-diagnostics-show-option.
24672
24673 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
24674
24675         PR target/48053
24676         * config/rs6000/predicates.md (easy_vector_constant_add_self,
24677         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24678         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24679         mode is not V2DImode or V2DFmode.
24680         (vspltis_constant): Do not handle V2DImode and V2DFmode.
24681         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24682         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24683         registers to 0.
24684         (movdi_internal64): Likewise.
24685
24686 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
24687
24688         PR tree-optimization/47127
24689         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24690         parameter.
24691         (set_cloog_options): Same.
24692         (scop_to_clast): Same.
24693         (print_clast_stmt): Do not call cloog_state_malloc and
24694         cloog_state_free.
24695         (print_generated_program): Same.
24696         (gloog): Same.
24697         * graphite-clast-to-gimple.h (cloog_state): Declared.
24698         (scop_to_clast): Adjust declaration.
24699         * graphite.c (cloog_state): Defined here.
24700         (graphite_initialize): Call cloog_state_malloc.
24701         (graphite_finalize): Call cloog_state_free.
24702
24703 2011-03-11  Jason Merrill  <jason@redhat.com>
24704
24705         * attribs.c (lookup_attribute_spec): Take const_tree.
24706         * tree.h: Adjust.
24707
24708 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
24709
24710         * config/sparc/sparc.c (sparc_option_override): Use
24711         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24712
24713 2011-03-11  Richard Guenther  <rguenther@suse.de>
24714
24715         PR tree-optimization/48067
24716         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24717         multiplication result will be only used once on the target
24718         stmt.
24719
24720 2011-03-11  Richard Guenther  <rguenther@suse.de>
24721
24722         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24723
24724 2011-03-11  Richard Guenther  <rguenther@suse.de>
24725
24726         PR lto/48073
24727         * tree.c (find_decls_types_r): Do not walk types only reachable
24728         from IDENTIFIER_NODEs.
24729
24730 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
24731
24732         PR middle-end/48044
24733         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24734         all vnode->force_output nodes as needed.
24735
24736 2011-03-11  Jason Merrill  <jason@redhat.com>
24737
24738         PR c++/48069
24739         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24740         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24741
24742 2011-03-11  Martin Jambor  <mjambor@suse.cz>
24743
24744         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24745         cgraph_node.
24746
24747 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
24748
24749         PR tree-optimization/48063
24750         * ipa-inline.c (cgraph_decide_inlining): Don't try to
24751         inline functions called once if !tree_can_inline_p (node->callers).
24752
24753 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
24754
24755         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24756         extra_objs.
24757         * config/score/score3.c: Delete.
24758         * config/score/score3.h: Delete.
24759         * config/score/mul-div.S: Delete.
24760         * config/score/sfp-machine.h: Add new file.
24761         * config/score/constraints.md: Add new file.
24762         * config/score/t-score-softfp: Add new file.
24763         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24764         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24765         (score7_extra_constraint): Delete.
24766         (score7_option_override): Remove unused code.
24767         * config/score/score.c: Remove score3 and score5 define and code.
24768         * config/score/score.h: Remove score3 and score5 define and code.
24769         * config/score/score.md: Remove score3 template and unusual insn.
24770         * config/score/score.opt: Remove score3 and score5 options.
24771
24772 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24773
24774         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24775         when _HPUX_SOURCE is defined.
24776         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24777
24778 2011-03-10  Jason Merrill  <jason@redhat.com>
24779
24780         PR c++/48029
24781         * stor-layout.c (layout_type): Don't set structural equality
24782         on arrays of incomplete type.
24783         * tree.c (type_hash_eq): Handle comparing them properly.
24784
24785 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
24786
24787         PR debug/48043
24788         * config/s390/s390.c (s390_delegitimize_address): Make sure the
24789         result mode matches original rtl mode.
24790
24791 2011-03-10  Nick Clifton  <nickc@redhat.com>
24792
24793         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24794         (andsi3, andsi3_flags): Fix timings for three operand alternative.
24795
24796 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
24797
24798         PR rtl-optimization/47866
24799         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24800         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24801         if target wasn't scalar.
24802         * function.c (assign_stack_temp_for_type): Assert that neither
24803         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24804         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24805         macro.
24806         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24807
24808 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24809
24810         * config/s390/s390-protos.h (s390_label_align): New prototype.
24811         * config/s390/s390.c (s390_label_align): New function.
24812         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24813
24814 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
24815
24816         PR target/47755
24817         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24818         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
24819         (output_vec_const_move): Ditto.
24820
24821 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
24822
24823         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24824         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24825         * config/mips/mips.c (mips_preferred_reload_class): Make static.
24826         Change 'rclass' argument and result type to reg_class_t.
24827         (TARGET_PREFERRED_RELOAD_CLASS): Define.
24828
24829 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
24830
24831         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24832         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24833         (TARGET_MEMORY_MOVE_COST): Define.
24834         (avr_register_move_cost, avr_memory_move_cost): New Functions.
24835
24836 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
24837
24838         PR debug/47881
24839         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24840         removed anything.
24841
24842         PR tree-optimization/48022
24843         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24844         for EQ/NE_EXPR.
24845
24846 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
24847
24848         PR debug/47991
24849         * var-tracking.c (find_use_val): Return NULL for
24850         cui->sets && cui->store_p BLKmode MEMs.
24851
24852 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
24853
24854         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24855         Remove.
24856         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24857         xstormy16_print_operand_address): Remove.
24858         * config/stormy16/stormy16.c (xstormy16_print_operand,
24859         xstormy16_print_operand_address): Make static.
24860         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24861
24862 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
24863
24864         PR target/47862
24865         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24866         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24867         before definition.
24868
24869 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
24870
24871         PR bootstrap/48000
24872         * cfgloopmanip.c (fix_bb_placements): Return immediately
24873         if FROM is BASE_LOOP's header.
24874
24875 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
24876
24877         * gimplify.c (gimplify_function_tree): Fix building calls
24878         to __builtin_return_address.
24879
24880 2011-03-07  Alan Modra  <amodra@gmail.com>
24881
24882         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24883         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24884         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24885         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24886         return_mode args.
24887         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24888         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24889         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24890         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24891         * config/rs6000/rs6000.c
24892         (rs6000_elf_end_indicate_exec_stack): Rename to..
24893         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
24894         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
24895         (rs6000_file_start): ..here.
24896         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24897         file scope variables.
24898         (call_ABI_of_interest): New function.
24899         (init_cumulative_args): Set above vars when function return value
24900         is a float, vector, or small struct.
24901         (rs6000_function_arg_advance_1): Likewise for function args.
24902         (rs6000_va_start): Set rs6000_passes_float if variable arg function
24903         references float args.
24904
24905 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
24906
24907         * doc/cfg.texi: Remove "See" before @ref.
24908         * doc/invoke.texi: Likewise.
24909
24910 2011-03-05  Jason Merrill  <jason@redhat.com>
24911
24912         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24913
24914 2011-03-05  Anthony Green  <green@moxielogic.com>
24915
24916         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24917
24918 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
24919
24920         PR rtl-optimization/47899
24921         * cfgloopmanip.c (fix_bb_placements): Fix first argument
24922         to flow_loop_nested_p when moving the loop upward.
24923
24924 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
24925
24926         PR target/47719
24927         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
24928
24929 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
24930
24931         PR tree-optimization/47967
24932         * ipa-cp.c (build_const_val): Return NULL instead of creating
24933         VIEW_CONVERT_EXPR for mismatching sizes.
24934         (ipcp_create_replace_map): Return NULL if build_const_val failed.
24935         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24936         give up on versioning.
24937
24938 2011-03-05  Alan Modra  <amodra@gmail.com>
24939
24940         PR target/47986
24941         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24942         full cmodel medium/large lo_sum + high addresses.
24943
24944 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24945
24946         * config/s390/s390.c (s390_decompose_address): Reject non-literal
24947         pool references in UNSPEC_LTREL_OFFSET.
24948
24949 2011-03-04  Jan Hubicka  <jh@suse.cz>
24950
24951         PR lto/47497
24952         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24953         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24954         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24955         Add node pointers.
24956         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24957         cgraph_add_thunk): Add node pointers.
24958         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24959         associated to right node.
24960         (input_node): Update use of cgraph_same_body_alias
24961         and cgraph_add_thunk.
24962
24963 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
24964
24965         * config/i386/i386.opt (mprefer-avx128): New flag.
24966         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24967         modes when the flag -mprefer-avx128 is on.
24968
24969 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
24970
24971         * dwarf2out.c (compare_loc_operands): Fix address handling.
24972
24973 2011-03-04  Alan Modra  <amodra@gmail.com>
24974
24975         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24976
24977 2011-03-04  Richard Guenther  <rguenther@suse.de>
24978
24979         PR middle-end/47968
24980         * expmed.c (extract_bit_field_1): Prefer vector modes that
24981         vec_extract patterns can handle.
24982
24983 2011-03-04  Richard Guenther  <rguenther@suse.de>
24984
24985         PR middle-end/47975
24986         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24987
24988 2011-03-04  Richard Henderson  <rth@redhat.com>
24989
24990         * explow.c (emit_stack_save): Remove 'after' parameter.
24991         (emit_stack_restore): Likewise.
24992         * expr.h: Update to match.
24993         * builtins.c, calls.c, stmt.c: Likewise.
24994         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24995         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24996         * function.c (expand_function_end): Insert the emit_stack_save
24997         sequence before parm_birth_insn instead of after.
24998
24999 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
25000
25001         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25002         (ssse3_pmaddubsw128): Ditto.
25003         (ssse3_pmaddubsw): Ditto.
25004
25005 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
25006
25007         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25008
25009 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
25010
25011         PR c/47963
25012         * gimplify.c (omp_add_variable): Only call omp_notice_variable
25013         on TYPE_SIZE_UNIT if it is a DECL.
25014
25015         PR debug/47283
25016         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25017         first operand is not is_gimple_mem_ref_addr, try to fold it.
25018         If the operand still isn't is_gimple_mem_ref_addr, clear
25019         MEM_EXPR on op0.
25020
25021 2011-03-03  Richard Guenther  <rguenther@suse.de>
25022
25023         PR middle-end/47283
25024         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25025         match comment.
25026         (refs_may_alias_p_1): For release branches return true if
25027         we are confused by our input.
25028
25029 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25030
25031         * config/s390/s390.c (s390_function_value): Rename to ...
25032         (s390_function_and_libcall_value): ... this.
25033         (s390_function_value): New function.
25034         (s390_libcall_value): New function.
25035         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25036         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25037         target macro definitions.
25038         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25039
25040 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
25041
25042         * config/i386/freebsd64.h (CC1_SPEC): Define.
25043         * config/i386/linux64.h (CC1_SPEC): Define.
25044         * config/i386/x86-64.h (CC1_SPEC): Don't define.
25045
25046 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
25047
25048         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25049         Remove.
25050         * config/stormy16/stormy16.c: Include reload.h.
25051         (xstormy16_memory_move_cost): New function.
25052         (TARGET_MEMORY_MOVE_COST): Define.
25053
25054 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
25055
25056         PR rtl-optimization/47925
25057         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25058         with side effects.  Remove the more-specific check for volatile asms.
25059
25060 2011-03-02  Alan Modra  <amodra@gmail.com>
25061
25062         PR target/47935
25063         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25064         toc relative addresses for valid offsets.
25065
25066 2011-03-01  Richard Guenther  <rguenther@suse.de>
25067
25068         PR tree-optimization/47890
25069         * tree-vect-loop.c (get_initial_def_for_induction): Set
25070         related stmt properly.
25071
25072 2011-03-01  Richard Guenther  <rguenther@suse.de>
25073
25074         PR lto/47924
25075         * lto-streamer.c (lto_record_common_node): Also register
25076         the canonical type.
25077
25078 2011-03-01  Richard Guenther  <rguenther@suse.de>
25079
25080         PR lto/46911
25081         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25082         Do not stream DECL_ABSTRACT_ORIGIN.
25083         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25084         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25085         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25086         Do not stream DECL_ABSTRACT_ORIGIN.
25087         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25088         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25089
25090 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
25091
25092         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25093         FUNCTION_VALUE_REGNO_P): Remove.
25094         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25095         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25096         Add 'outgoing' argument.
25097         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25098         function.
25099         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25100         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25101
25102 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
25103
25104         PR debug/28047
25105         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25106         (lookup_filename): Likewise.
25107         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25108
25109 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
25110             Jakub Jelinek  <jakub@redhat.com>
25111
25112         PR middle-end/47893
25113         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25114         (assign_stack_local_1): Change last argument type to int.
25115         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25116         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
25117         don't record padding space into frame_space_list nor use those areas.
25118         (assign_stack_local): Adjust caller.
25119         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25120         of assign_stack_local, pass 0 as last argument.
25121         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25122         callers.
25123
25124 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
25125
25126         PR debug/47283
25127         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25128         Use target address_mode and pointer_mode hooks instead of hardcoded
25129         Pmode and ptr_mode.  Handle some simple cases of extending if
25130         POINTERS_EXTEND_UNSIGNED < 0.
25131         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25132         Call convert_debug_memory_address.
25133         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25134         convert_debug_memory_address.
25135
25136         PR middle-end/46790
25137         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25138         * configure: Regenerated.
25139         * config.in: Regenerated.
25140         * varasm.c (default_function_section): Return NULL
25141         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25142
25143 2011-02-28  Martin Jambor  <mjambor@suse.cz>
25144
25145         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25146         the description to match the printed values.
25147
25148 2011-02-28  Richard Guenther  <rguenther@suse.de>
25149
25150         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25151         of the copied scope tree.
25152
25153 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25154
25155         * doc/extend.texi (Function Attributes): Avoid deeply (and
25156         wrongly) nested tables.
25157
25158 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
25159
25160         PR middle-end/47903
25161         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25162         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25163         r isn't op0 nor op1.
25164
25165 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25166
25167         * config/avr/avr.md: Remove magic comment for emacs.
25168
25169 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25170
25171         PR target/45261
25172         * config/avr/avr.c (avr_option_override): Use error on bad options.
25173         (avr_help): New function.
25174         (TARGET_HELP): Define.
25175
25176 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
25177
25178         PR target/42240
25179         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25180         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25181
25182 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
25183
25184         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25185         (ARM Options): Ditto.
25186         (i386 and x86-64 Options): Ditto.
25187         (RX Options): Ditto.
25188         (SPARC Options): Ditto.
25189
25190 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
25191
25192         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25193         FreeBSD 6 and later.  Generally use cpu generic.
25194
25195 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
25196
25197         * doc/cpp.texi: Update copyright years.
25198
25199 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25200
25201         PR target/46898
25202         * config/lm32/lm32.md (ashrsi3): Added needed variable.
25203
25204 2011-02-25  Jon Beniston  <jon@beniston.com>
25205
25206         PR target/46898
25207         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25208         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25209         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25210         (lm32_block_move_inline): Add type cast to remove warning.
25211         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25212         (gen_int_relational): Move declarations to start of function.
25213
25214 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25215
25216         PR tree-optimization/45470
25217         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25218         can throw internally only.
25219         * tree-vect-stmts.c (vectorizable_call): Likewise.
25220
25221 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
25222
25223         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25224         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25225         * config/stormy16/stormy16-protos.h
25226         (xstormy16_preferred_reload_class): Remove.
25227         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25228         static. Change 'rclass' argument and return type to reg_class_t.
25229         (TARGET_PREFERRED_RELOAD_CLASS,
25230         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25231
25232 2011-02-24  Richard Guenther  <rguenther@suse.de>
25233
25234         * lto-streamer-in.c (input_bb): Do not find referenced vars
25235         in debug statements.
25236
25237 2011-02-23  Jason Merrill  <jason@redhat.com>
25238
25239         * common.opt (fabi-version): Document v5 and v6.
25240
25241 2011-02-23  Richard Guenther  <rguenther@suse.de>
25242
25243         PR tree-optimization/47849
25244         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25245
25246 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25247
25248         * opts-common.c (decode_cmdline_option): Print empty string
25249         argument as "" in decoded->orig_option_with_args_text.
25250         * gcc.c (execute): Print empty string argument as ""
25251         in the verbose output.
25252         (do_spec_1): Keep empty string argument.
25253
25254 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
25255
25256         * config.gcc: Declare score-* and crx-* obsolete.
25257
25258 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25259
25260         PR rtl-optimization/47763
25261         * web.c (web_main): Ignore naked clobber when replacing register.
25262
25263 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
25264
25265         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25266         Remove.
25267
25268 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
25269
25270         PR doc/47848
25271         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25272
25273 2011-02-22  Mike Stump  <mikestump@comcast.net>
25274
25275         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25276         assembler.
25277         * configure: Regenerate.
25278
25279 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
25280
25281         PR rtl-optimization/46002
25282         * ira-color.c (update_copy_costs): Change class intersection
25283         test to reg_class_contents[] test of 'hard_regno'.
25284
25285 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
25286
25287         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25288         than Driver option.
25289         * config/hpux11.opt (mt): Likewise.
25290         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25291         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25292         * config/vax/elf.opt (mno-asm-pic): Likewise.
25293         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25294
25295 2011-02-21  Mike Stump  <mikestump@comcast.net>
25296
25297         PR target/47822
25298         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25299         tree so we can get save the type.
25300         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25301         for CFString instead of trying to use past the end of the builtins.
25302         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25303         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25304         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25305         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25306         Rename to darwin_builtin_cfstring.
25307         (darwin_init_cfstring_builtins): Return the built type.
25308
25309 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
25310
25311         PR target/47840
25312         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25313         (_mm256_insert_epi64): Use _mm_insert_epi64.
25314
25315 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
25316
25317         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25318         * config/stormy16/stormy16-protos.h
25319         (xstormy16_mode_dependent_address_p): Remove.
25320         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25321         Make static. Change return type to bool. Change argument type to
25322         const_rtx. Remove dead code.
25323         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25324
25325 2011-02-21  Richard Guenther  <rguenther@suse.de>
25326
25327         PR lto/47820
25328         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25329         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25330         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25331         TUs context.
25332         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25333         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25334
25335 2011-02-20  Richard Guenther  <rguenther@suse.de>
25336
25337         PR lto/47822
25338         * tree.c (free_lang_data_in_decl): Clean builtins from
25339         the TU decl BLOCK_VARS.
25340
25341 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
25342
25343         PR debug/47620
25344         PR debug/47630
25345         * haifa-sched.c (fix_tick_ready): Skip tick computation
25346         for debug insns.
25347
25348 2011-02-19  Richard Guenther  <rguenther@suse.de>
25349
25350         PR lto/47647
25351         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
25352         Remove lazy BLOCK_VARS streaming.
25353         (lto_input_ts_block_tree_pointers): Likewise.
25354         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
25355
25356 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25357
25358         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
25359
25360 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25361
25362         * config/i386/biarch32.h, config/i386/mach.h,
25363         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
25364
25365 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
25366
25367         PR target/47800
25368         * config/i386/i386.md (peephole2 for shift and plus): Use
25369         operands[1] original mode in the first insn.
25370
25371 2011-02-18  Mike Stump  <mikestump@comcast.net>
25372
25373         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
25374
25375 2011-02-18  Jan Hubicka  <jh@suse.cz>
25376
25377         PR middle-end/47788
25378         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
25379         to zero when the function is not inlinable at all.
25380
25381 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25382
25383         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
25384         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25385         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
25386         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
25387         * config/pa/t-pa64: Likewise.
25388         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
25389
25390 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25391
25392         PR driver/47787
25393         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
25394
25395 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25396
25397         PR target/47792
25398         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
25399
25400 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
25401
25402         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
25403         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
25404         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
25405         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
25406         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
25407         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
25408         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
25409         m32r_load_postinc_p, m32r_store_preinc_predec_p,
25410         m32r_legitimate_address_p): New functions.
25411         * config/m32r/constraints.md (constraint "S"): Don't use
25412         STORE_PREINC_PREDEC_P.
25413         (constraint "U"): Don't use LOAD_POSTINC_P.
25414
25415 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
25416
25417         PR rtl-optimization/46178
25418         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
25419         compute ira_hard_regno_cover_class[].
25420
25421 2011-02-18  Richard Guenther  <rguenther@suse.de>
25422
25423         PR lto/47798
25424         * lto-streamer.h (lto_global_var_decls): Declare.
25425         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
25426         statics for global var processing.
25427
25428 2011-02-18  Richard Guenther  <rguenther@suse.de>
25429
25430         PR tree-optimization/47737
25431         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
25432         edge dominance check.
25433
25434 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25435
25436         PR debug/47780
25437         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
25438         avoid invalid rtx sharing.
25439
25440 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
25441
25442         * doc/cpp.texi (Obsolete Features): Add background on the
25443         origin of assertions.
25444
25445 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
25446
25447         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
25448         objc_abi == 2.
25449         * config/darwin.c (output_objc_section_asm_op): Added support for
25450         ABI v1 and v2.
25451         (is_objc_metadata): New.
25452         (darwin_objc2_section): New.
25453         (darwin_objc1_section): New.
25454         (machopic_select_section): Added support for ABI v1 and v2.
25455         (darwin_emit_objc_zeroed): New.
25456         (darwin_output_aligned_bss): Detect objc metadata and treat it
25457         appropriately.
25458         (darwin_asm_output_aligned_decl_common): Same.
25459         (darwin_asm_output_aligned_decl_local): Same.
25460         * config/darwin-sections.def: Updated for ABI v1 and v2.
25461         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
25462         compiling Objective-C code for the NeXT runtime, default to using
25463         ABI version 0 for 32-bit, and version 2 for 64-bit.
25464
25465 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25466
25467         * common.opt (optimize_fast): New Variable.
25468         * opts.c (default_options_optimization): Use opts->x_optimize_fast
25469         instead of local variable ofast.
25470
25471 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
25472
25473         * doc/invoke.texi (fobjc-abi-version): Documented.
25474         (fobjc-nilcheck): Documented.
25475         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
25476         version.
25477
25478 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25479
25480         PR driver/47390
25481         * common.opt (export-dynamic): New Driver option.
25482         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
25483
25484 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25485
25486         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
25487
25488 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
25489             Jan Hubicka  <jh@suse.cz>
25490
25491         PR debug/47106
25492         PR debug/47402
25493         * cfgexpand.c (account_used_vars_for_block): Remove.
25494         (estimated_stack_frame_size): Use referenced vars.
25495         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
25496         that were referenced in the original function.  Test src_fn
25497         rather than cfun.  Drop redundant get_var_ann.
25498         (setup_one_parameter): Drop redundant get_var_ann.
25499         (declare_return_variable): Likewise.
25500         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
25501         (copy_arguments_for_versioning): Drop redundant get_var_ann.
25502         * ipa-inline.c (compute_inline_parameters): Do not compute
25503         disregard_inline_limits here.
25504         (compute_inlinable_for_current, pass_inlinable): New.
25505         (pass_inline_parameters): Require PROP_referenced_vars.
25506         * cgraphunit.c (cgraph_process_new_functions): Don't run
25507         compute_inline_parameters explicitly unless function is in SSA form.
25508         (cgraph_analyze_function): Set .disregard_inline_limits.
25509         * tree-sra.c (convert_callers): Compute inliner parameters
25510         only for functions already in SSA form.
25511
25512 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25513
25514         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
25515         -mlittle-endian-data.
25516
25517 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25518
25519         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
25520         -mno-fpu, not -fpu and -no-fpu.
25521         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
25522         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
25523
25524 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
25525
25526         PR target/43653
25527         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
25528         input reload with PLUS RTX.
25529
25530 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25531
25532         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
25533         of InverseVar(MDMX).
25534
25535 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25536
25537         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
25538         --m4-340.
25539
25540 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25541
25542         * config/mn10300/mn10300.opt (mno-crt0): New.
25543
25544 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25545
25546         * config/m68k/uclinux.opt (static-libc): New Driver option.
25547
25548 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25549
25550         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
25551
25552 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25553
25554         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
25555         %{muser-extend-enabled}.
25556
25557 2011-02-16  Richard Guenther  <rguenther@suse.de>
25558
25559         PR tree-optimization/47738
25560         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
25561         the TODO from tree_predictive_commoning.
25562
25563 2011-02-15  Jeff Law  <law@redhat.com>
25564
25565         Revert
25566         2011-01-25  Jeff Law  <law@redhat.com>
25567
25568         PR rtl-optimization/37273
25569         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25570         handle them like argument loads from stack slots.  Do not double
25571         count memory for memory constants and argument loads from stack slots.
25572
25573 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
25574
25575         PR target/47755
25576         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
25577         mode for vector constants.  Remove code that checks for TImode.
25578
25579 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25580
25581         PR debug/47106
25582         PR debug/47402
25583         * cgraph.h (compute_inline_parameters): Return void.
25584         * ipa-inline.c (compute_inline_parameters): Adjust.
25585
25586 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25587
25588         PR debug/47106
25589         PR debug/47402
25590         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
25591         rather than decl.
25592         * cfgexpand.c (estimated_stack_frame_size): Likewise.
25593         * ipa-inline.c (compute_inline_parameters): Adjust.
25594
25595 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25596
25597         PR debug/47106
25598         PR debug/47402
25599         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
25600         Adjust all users.  Pass FN to...
25601         * tree-flow-inline.h (first_referenced_var): ... this.  Add
25602         fn argument.
25603         * ipa-struct-reorg.c: Adjust.
25604         * tree-dfa.c: Adjust.
25605         * tree-into-ssa.c: Adjust.
25606         * tree-sra.c: Adjust.
25607         * tree-ssa-alias.c: Adjust.
25608         * tree-ssa-live.c: Adjust.
25609         * tree-ssa.c: Adjust.
25610         * tree-ssanames.c: Adjust.
25611         * tree-tailcall.c: Adjust.
25612
25613 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25614
25615         PR debug/47106
25616         PR debug/47402
25617         * tree-flow.h (referenced_var_lookup): Add fn parameter.
25618         Adjust all callers.
25619         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
25620         * tree-flow-inline.h: Adjust.
25621         * gimple-pretty-print.c: Adjust.
25622         * tree-into-ssa.c: Adjust.
25623         * tree-ssa.c: Adjust.
25624         * cfgexpand.c: Adjust.
25625
25626 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25627
25628         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
25629         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25630         (EXTRA_CONSTRAINT): Delete.
25631         * config/iq2000/constraints.md: New file.
25632         * config/iq2000/iq2000.md: Include it.
25633         (define_insn ""): Delete.
25634         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
25635         unsupported constraint letters from patterns.
25636         (call_value, call_value_internal1): Likewise.
25637         (call_value_multiple_internal1): Likewise.
25638
25639 2011-02-15  Nick Clifton  <nickc@redhat.com>
25640
25641         * config/mn10300/mn10300.c: Include tm-constrs.h.
25642         (struct liw_data): New data structure describing an LIW candidate
25643         instruction.
25644         (extract_bundle): Use struct liw_data.  Allow small integer
25645         operands for some instructions.
25646         (check_liw_constraints): Use struct liw_data.  Remove swapped
25647         parameter.  Add comments describing the checks.  Fix bug when
25648         assigning the source of liw1 to the source of liw2.
25649         (liw_candidate): Delete.  Code moved into extract_bundle.
25650         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
25651         before swapping.
25652         * config/mn10300/predicates.md (liw_operand): New predicate.
25653         Allows registers and small integer constants.
25654         * config/mn10300/constraints.md (O): New constraint.  Accetps
25655         integers in the range -8 to +7 inclusive.
25656         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
25657         for moving a small integer into a register.  Give this alternative
25658         LIW attributes.
25659         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
25660         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
25661         using the J,K,L and M constraints,
25662         (liw): Remove SI mode on second operands to allow for HI and QI
25663         mode values.
25664         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
25665         instruction.
25666
25667 2011-02-15  Richard Guenther  <rguenther@suse.de>
25668
25669         PR tree-optimization/47743
25670         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25671         for a non-type-compatible VN lookup bail out.
25672
25673 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25674
25675         * config/fr30/constraints.md: New file.
25676         * config/fr30/fr30.md: Include it.
25677         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25678         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25679         (EXTRA_CONSTRAINT): Delete.
25680
25681 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25682
25683         * config/frv/constraints.md: New file.
25684         * config/frv/predicates.md: Include it.
25685         * config/frv/frv.c (reg_class_from_letter): Delete.
25686         (frv_option_override): Don't initialize it.
25687         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25688         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25689         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25690         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25691         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25692         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25693         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25694         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25695         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25696         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25697         (REG_CLASS_FROM_CONSTRAINT): Delete.
25698
25699 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
25700
25701         PR middle-end/47581
25702         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25703         if frame size is 0 in a leaf function.
25704
25705 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25706
25707         PR pch/14940
25708         * config/alpha/host-osf.c: New file.
25709         * config/alpha/x-osf: New file.
25710         * config.host (alpha*-dec-osf*): Use it.
25711
25712 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
25713
25714         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25715         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25716         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25717         (rx_mode_dependent_address_p): ...this. Make static. Change argument
25718         type to const_rtx.
25719         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25720
25721 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
25722
25723         * config/stormy16/constraints.md: New file.
25724         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25725         Use satisfies_constraint_Q and satisfies_constraint_R.
25726         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25727         Delete.
25728         (xstormy16_legitiamte_address_p): Declare.
25729         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25730         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25731         (EXTRA_CONSTRAINT): Delete.
25732         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25733         Un-staticize.
25734         (xstormy16_extra_constraint_p): Delete.
25735
25736 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
25737
25738         PR tree-optimization/46494
25739         * loop-unroll.c (split_edge_and_insert): Adjust comment.
25740         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25741         (pass_rtl_loop_done): Add TODO_verify_flow.
25742         * fwprop.c (pass_rtl_fwprop): Likewise.
25743         * modulo-sched.c (pass_sms): Likewise.
25744         * tree-ssa-dom.c (pass_dominator): Likewise.
25745         * tree-ssa-loop-ch.c (pass_ch): Likewise.
25746         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25747         (pass_tree_loop_done): Likewise.
25748         * tree-ssa-pre.c (execute_pre): Likewise.
25749         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25750         * tree-ssa-sink.c (pass_sink_code): Likewise.
25751         * tree-vrp.c (pass_vrp): Likewise.
25752
25753 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
25754
25755         * config/v850/constraints.md: New file.
25756         * config/v850/v850.md: Include it.
25757         * config/v850/predicates.md (reg_or_0_operand): Use
25758         satisfies_constraint_G.
25759         (special_symbolref_operand): Use satisfies_constraint_K.
25760         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25761         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25762         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25763         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25764         (EXTRA_CONSTRAINT): Delete.
25765         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25766         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25767         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25768
25769 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
25770
25771         PR target/47696
25772         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25773         description.
25774
25775 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
25776
25777         * config/mcore/constraints.md: New file.
25778         * config/mcore/mcore.md: Include it.
25779         * config/mcore/mcore.c (reg_class_from_letter): Delete.
25780         * config/mcore/mcore.h (reg_class_from_letter): Delete.
25781         (REG_CLASS_FROM_LETTER): Delete.
25782         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25783         insn_const_int_ok_for_constraint.
25784         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25785         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25786         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25787         (EXTRA_CONSTRAINT): Delete.
25788
25789 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25790
25791         PR ada/41929
25792         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25793         (IS_SIGHANDLER): Define.
25794         (sparc64_is_sighandler): New function, split off from
25795         sparc64_fallback_frame_state.
25796         (sparc_is_sighandler): New function, split off from
25797         sparc_fallback_frame_state.
25798         (sparc64_fallback_frame_state): Merge with ...
25799         (sparc_fallback_frame_state): ... this into ...
25800         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25801         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
25802         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
25803         stack instead of hardcoded offsets.
25804
25805 2011-02-14  Andriy Gapon  <avg@freebsd.org>
25806
25807         PR target/45808
25808         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25809
25810 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25811
25812         * configure: Regenerate.
25813
25814 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
25815
25816         PR driver/45731
25817         * gcc.c (asm_options): Correct spec matching --target-help.
25818
25819 2011-02-12  Martin Jambor  <mjambor@suse.cz>
25820
25821         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25822         to gimple call error.
25823
25824 2011-02-12  Mike Stump  <mikestump@comcast.net>
25825
25826         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25827         comments in backslash regions.
25828
25829 2011-02-12  Mike Stump  <mikestump@comcast.net>
25830             Jakub Jelinek  <jakub@redhat.com>
25831             Iain Sandoe  <iains@gcc.gnu.org>
25832
25833         PR target/47324
25834         * dwarf2out.c (output_cfa_loc): When required, apply the
25835         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25836         (output_loc_sequence): Likewise.
25837         (output_loc_operands_raw): Likewise.
25838         (output_loc_sequence_raw): Likewise.
25839         (output_cfa_loc): Likewise.
25840         (output_loc_list): Suppress register number adjustment when
25841         calling output_loc_sequence()
25842         (output_die): Likewise.
25843
25844 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
25845
25846         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25847         Remove macros.
25848         * config/xtensa/xtensa.c (xtensa_register_move_cost,
25849         xtensa_memory_move_cost): New functions.
25850         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25851
25852 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
25853
25854         PR lto/47225
25855         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25856         in the current directory.
25857         * configure: Rebuilt.
25858
25859 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25860
25861         * config/darwin.c (darwin_override_options): Add a hunk missed
25862         from the commit of r168571.  Trim comment line lengths and
25863         correct indents of the preceding block.
25864
25865 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
25866
25867         * gcc.c (driver_handle_option): Concatenate the argument to -F with
25868         the switch.
25869
25870 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25871
25872         * common.opt (nostartfiles): New Driver option.
25873
25874 2011-02-11  Xinliang David Li  <davidxl@google.com>
25875
25876         PR tree-optimization/47707
25877         * tree-chrec.c (convert_affine_scev): Keep type precision.
25878
25879 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
25880
25881         PR tree-optimization/47420
25882         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25883
25884 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
25885
25886         PR rtl-optimization/47614
25887         * rtl.h (check_for_inc_dec): Declare.
25888         * dse.c (check_for_inc_dec): Externalize...
25889         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25890         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25891
25892 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
25893
25894         PR driver/47678
25895         * gcc.c (main): Do not compile inputs if there were errors in
25896         option handling.
25897         * opts-common.c (read_cmdline_option): Check for wrong language
25898         after other error checks.
25899
25900 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
25901
25902         * cgraph.c: Fix comment typos.
25903         * cgraph.h: Likewise.
25904         * cgraphunit.c: Likewise.
25905         * ipa-cp.c: Likewise.
25906         * ipa-inline.c: Likewise.
25907         * ipa-prop.c: Likewise.
25908         * ipa-pure-const.c: Likewise.
25909         * ipa-ref.c: Likewise.
25910         * ipa-reference.c: Likewise.
25911
25912 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25913
25914         PR debug/47684
25915         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25916
25917 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25918
25919         PR testsuite/47400
25920         * doc/sourcebuild.texi (Require Support): Document
25921         dg-require-ascii-locale.
25922
25923 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
25924
25925         * doc/lto.texi (Write summary): Fix missing parentheses.
25926
25927 2011-02-10  DJ Delorie  <dj@redhat.com>
25928
25929         * config/m32c/m32c.c (m32c_option_override): Disable
25930         -fcombine-stack-adjustments until flag value tracking and compare
25931         optimization can be rewritten.
25932
25933 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
25934
25935         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25936         PROCESSOR_POWER7.
25937         (PROCESSOR_DEFAULT64): Likewise.
25938
25939 2011-02-10  Richard Henderson  <rth@redhat.com>
25940
25941         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25942         change from 2011-02-03.
25943         * config/rx/rx.c (flags_from_code): Likewise.
25944         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25945         is valid, n/pz otherwise.
25946         (rx_select_cc_mode): Return CCmode if Y is not zero.
25947
25948 2011-02-10  Richard Guenther  <rguenther@suse.de>
25949
25950         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25951
25952 2011-02-10  Richard Guenther  <rguenther@suse.de>
25953
25954         PR tree-optimization/47677
25955         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25956
25957 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
25958
25959         PR target/47665
25960         * combine.c (make_compound_operation): Only change shifts into
25961         multiplication for SCALAR_INT_MODE_P.
25962
25963 2011-02-10  Jie Zhang  <jie@codesourcery.com>
25964
25965         PR testsuite/47622
25966         Revert
25967         2011-02-05  Jie Zhang  <jie@codesourcery.com>
25968         PR debug/42631
25969         * web.c (entry_register): Don't clobber the number of the
25970         first uninitialized reference in used[].
25971
25972 2011-02-09  Richard Guenther  <rguenther@suse.de>
25973
25974         PR tree-optimization/47664
25975         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25976         all edges again.
25977
25978 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
25979
25980         PR target/46481
25981         PR target/47032
25982         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25983         PROCESSOR_POWER7.
25984         (PROCESSOR_DEFAULT64): Same.
25985         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25986
25987 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25988
25989         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25990
25991 2011-02-09  Martin Jambor  <mjambor@suse.cz>
25992
25993         PR middle-end/45505
25994         * tree-sra.c (struct access): New flags grp_scalar_read and
25995         grp_scalar_write.  Changed description of assignment read and write
25996         flags.
25997         (dump_access): Dump new flags, reorder all of them.
25998         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25999         to detect multiple scalar reads.
26000         (analyze_access_subtree): Use the new scalar read write flags instead
26001         of the old flags.  Adjusted comments.
26002
26003 2011-02-08  DJ Delorie  <dj@redhat.com>
26004
26005         PR target/47548
26006         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26007         patterns.
26008
26009 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26010
26011         * config/m68k/uclinux.opt: New.
26012         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26013
26014 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26015
26016         * config/cris/elf.opt (sim): New Driver option.
26017
26018 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26019
26020         * config/xtensa/elf.opt: New.
26021         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26022
26023 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26024
26025         * config/vax/elf.opt: New.
26026         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26027
26028 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26029
26030         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26031
26032 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26033
26034         * config/gnu-user.opt: New.
26035         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26036         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26037         *-*-uclinux*): Use gnu-user.opt.
26038
26039 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
26040
26041         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26042         * config/i386/gnu.h (CPP_SPEC): Likewise.
26043
26044 2011-02-08  Ian Lance Taylor  <iant@google.com>
26045
26046         * common.opt (fcx-limited-range): Add SetByCombined flag.
26047         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26048         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26049         (fassociative-math, freciprocal-math): Likewise.
26050         (funsafe-math-optimizations): Likewise.
26051         * opth-gen.awk: Handle SetByCombined.
26052         * optc-gen.awk: Likewise.
26053         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26054         (set_unsafe_math_optimizations_flags): Likewise.
26055         * doc/options.texi (Option properties): Document SetByCombined.
26056
26057 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26058
26059         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26060         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26061         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26062         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26063         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26064
26065 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
26066
26067         PR tree-optimization/46834
26068         PR tree-optimization/46994
26069         PR tree-optimization/46995
26070         * graphite-sese-to-poly.c (used_outside_reduction): New.
26071         (detect_commutative_reduction): Call used_outside_reduction.
26072         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26073         translate_scalar_reduction_to_array only when at least one
26074         loop-phi/close-phi tuple has been detected.
26075
26076 2011-02-08  Richard Guenther  <rguenther@suse.de>
26077
26078         PR middle-end/47639
26079         * tree-vect-generic.c (expand_vector_operations_1): Update
26080         stmts here ...
26081         (expand_vector_operations): ... not here.  Cleanup EH info
26082         and the CFG if required.
26083
26084 2011-02-08  Richard Guenther  <rguenther@suse.de>
26085
26086         PR tree-optimization/47641
26087         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26088         require type compatibility.
26089
26090 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26091
26092         * gimple-low.c (lower_function_body): Don't remove the location of
26093         the return statement here.
26094         (lower_gimple_return): Do it here instead but only if the return
26095         statement is actually used twice.
26096
26097 2011-02-08  Richard Guenther  <rguenther@suse.de>
26098
26099         PR tree-optimization/47632
26100         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26101         unused up_to_stmt parameter, return whether cfg-cleanup is
26102         necessary, remove EH info properly.
26103         (forward_propagate_into_gimple_cond): Adjust caller.
26104         (forward_propagate_into_cond): Likewise.
26105         (forward_propagate_comparison): Likewise.
26106         (tree_ssa_forward_propagate_single_use_vars): Make
26107         forward_propagate_comparison case similar to the two others.
26108
26109 2011-02-08  Nick Clifton  <nickc@redhat.com>
26110
26111         * config/mn10300/mn10300.opt (mliw): New command line option.
26112         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26113         (liw_bundling): New automaton.
26114         (liw): New attribute.
26115         (liw_op): New attribute.
26116         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26117         (movsi_internal): Add LIW attributes.
26118         (andsi3): Likewise.
26119         (iorsi3): Likewise.
26120         (xorsi3): Likewise.
26121         (addsi3): Separate register and immediate alternatives.
26122         Add LIW attributes.
26123         (subsi3): Likewise.
26124         (cmpsi): Likewise.
26125         (aslsi3): Likewise.
26126         (lshrsi3): Likewise.
26127         (ashrsi3): Likewise.
26128         (liw): New pattern.
26129         * config/mn10300/mn10300.c (liw_op_names): New
26130         (mn10300_print_operand): Handle 'W' operand descriptor.
26131         (extract_bundle): New function.
26132         (check_liw_constraints): New function.
26133         (liw_candidate): New function.
26134         (mn10300_bundle_liw): New function.
26135         (mn10300_reorg): New function.
26136         (TARGET_MACHINE_DEPENDENT_REORG): Define.
26137         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26138         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26139         __LIW__ or __NO_LIW__.
26140         * doc/invoke.texi: Describe the -mliw command line option.
26141
26142 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26143
26144         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26145         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26146         pthread_mutex_unlock): Remove.
26147         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26148         * config/pa/t-pa64: Likewise.
26149         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26150         shared libc if not linking against libpthread.
26151         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26152
26153 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
26154
26155         PR target/47558
26156         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26157         on 10.6 and later to ensure that we always use the unwinder from
26158         the system.  Only add -no_compact_unwind when tarteting darwin
26159         10.6 or later.
26160
26161 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
26162
26163         PR target/46997
26164         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26165         (vec_interleave_lowv2sf): Ditto.
26166         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26167         (vec_extract_oddv2sf): Ditto.
26168
26169 2011-02-07  Mike Stump  <mikestump@comcast.net>
26170
26171         PR target/42333
26172         Add __ieee_divdc3 entry point.
26173         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26174         entry point.
26175         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26176         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26177         * config/darwin.c (darwin_rename_builtins): Add.
26178         * config/darwin-protos.h (darwin_rename_builtins): Add.
26179
26180 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
26181
26182         PR target/47636
26183         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26184         for the condition.
26185
26186 2011-02-07  Mike Stump  <mikestump@comcast.net>
26187
26188         * config/darwin.opt (mmacosx-version-min): Update default OS version.
26189
26190 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
26191
26192         PR target/47534
26193         * config/avr/libgcc.S (exit): Move .endfunc
26194
26195 2011-02-07  Richard Guenther  <rguenther@suse.de>
26196
26197         PR tree-optimization/47615
26198         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26199         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26200         (run_scc_vn): Initialize it.
26201         (visit_reference_op_load): Use it.
26202         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26203
26204 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26205
26206         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26207         DImode trapping arithmetic libfuncs.
26208
26209 2011-02-07  Richard Guenther  <rguenther@suse.de>
26210
26211         PR tree-optimization/47621
26212         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26213         two duplicates ...
26214         (execute_update_addresses_taken): ... here.  Make it more
26215         conservative in what we accept.
26216
26217 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26218
26219         * config/sparc/freebsd.h (ASM_SPEC): Define.
26220         * config/sparc/vxworks.h (ASM_SPEC): Define.
26221
26222 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26223
26224         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26225
26226 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
26227
26228         * doc/invoke.texi: Remove reference to compiler internals from
26229         user documentation.
26230
26231         * reg-notes.def: Remove REG_VALUE_PROFILE.
26232         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26233
26234 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
26235
26236         PR middle-end/47610
26237         * varasm.c (default_section_type_flags): If decl is NULL,
26238         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26239
26240 2011-02-05  Jie Zhang  <jie@codesourcery.com>
26241
26242         PR debug/42631
26243         * web.c (entry_register): Don't clobber the number of the
26244         first uninitialized reference in used[].
26245
26246 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
26247
26248         PR tree-optimization/46194
26249         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26250         (build_classic_dist_vector_1): Do not represent classic distance
26251         vectors when the access functions are variating in different loops.
26252
26253 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26254
26255         * config/mips/iris6.opt: New.
26256         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26257
26258 2011-02-04  Richard Henderson  <rth@redhat.com>
26259             Steve Ellcey  <sje@cup.hp.com>
26260
26261         PR target/46997
26262         * config/ia64/predicates.md (mux1_brcst_element): New.
26263         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26264         * config/ia64/ia64.c (ia64_unpack_assemble): New.
26265         (ia64_unpack_sign): New.
26266         (ia64_expand_unpack): Rewrite using new routines.
26267         (ia64_expand_widen_sum): Ditto.
26268         (ia64_expand_dot_prod_v8qi): Ditto.
26269         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26270         routines, add endian check.
26271         (pmpy2_even): Rename from pmpy2_r, add endian check.
26272         (pmpy2_odd): Rename from pmpy2_l, add endian check.
26273         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26274         (vec_widen_smult_hi_v4hi): Ditto.
26275         (vec_widen_umult_lo_v4hi): Ditto.
26276         (vec_widen_umult_hi_v4hi): Ditto.
26277         (mulv2si3): Change endian checks.
26278         (sdot_prodv4hi): Rewrite with new calls.
26279         (udot_prodv4hi): New.
26280         (vec_pack_ssat_v4hi): Add endian check.
26281         (vec_pack_usat_v4hi): Ditto.
26282         (vec_pack_ssat_v2si): Ditto.
26283         (max1_even): Rename from max1_r, add endian check.
26284         (max1_odd): Rename from max1_l, add endian check.
26285         (*mux1_rev): Format change.
26286         (*mux1_mix): Ditto.
26287         (*mux1_shuf): Ditto.
26288         (*mux1_alt): Ditto.
26289         (*mux1_brcst_v8qi): Use new predicate.
26290         (vec_extract_evenv8qi): Remove endian check.
26291         (vec_extract_oddv8qi): Ditto.
26292         (vec_interleave_lowv4hi): Format change.
26293         (vec_interleave_highv4hi): Ditto.
26294         (mix2_even): Rename from mix2_r, add endian check.
26295         (mix2_odd): Rename from mux2_l, add endian check.
26296         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26297         (vec_extract_evenodd_helper): Format change.
26298         (vec_extract_evenv4hi): Remove endian check.
26299         (vec_extract_oddv4hi): Remove endian check.
26300         (vec_interleave_lowv2si): Format change.
26301         (vec_interleave_highv2si): Format change.
26302         (vec_initv2si): Remove endian check.
26303         (vecinit_v2si): Add endian check.
26304         (reduc_splus_v2sf): Add endian check.
26305         (reduc_smax_v2sf): Ditto.
26306         (reduc_smin_v2sf): Ditto.
26307         (vec_initv2sf): Remove endian check.
26308         (fpack): Add endian check.
26309         (fswap): Add endian check.
26310         (vec_interleave_highv2sf): Add endian check.
26311         (vec_interleave_lowv2sf): Add endian check.
26312         (fmix_lr): Add endian check.
26313         (vec_setv2sf): Format change.
26314         (*vec_extractv2sf_0_be): Use shift to extract operand.
26315         (*vec_extractv2sf_1_be): New.
26316         (vec_pack_trunc_v4hi): Add endian check.
26317         (vec_pack_trunc_v2si): Format change.
26318
26319 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
26320
26321         PR inline-asm/23200
26322         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
26323         do bb, locus and block comparison and disallow loads if it is not set.
26324         (stmt_is_replaceable_p): New function.
26325         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26326         callers.
26327         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26328         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26329         SSA_NAME_DEF_STMT.
26330         * tree-flow.h (stmt_is_replaceable_p): New prototype.
26331
26332 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26333
26334         * config/rs6000/xilinx.opt: New.
26335         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26336
26337 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26338
26339         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
26340
26341 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
26342
26343         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
26344         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26345         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
26346         secondary_reload_info, xtensa_secondary_reload): Remove.
26347         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
26348         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26349         (xtensa_preferred_reload_class): Make static. Change return and
26350         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
26351         Use CONST_DOUBLE_P predicate.
26352         (xtensa_preferred_output_reload_class): New function.
26353         (xtensa_secondary_reload): Make static.
26354
26355 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
26356
26357         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
26358         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
26359         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
26360
26361 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26362
26363         PR middle-end/31490
26364         * output.h (SECTION_RELRO): Define.
26365         (SECTION_MACH_DEP): Adjust.
26366         (get_variable_section): New prototype.
26367         * varpool.c (varpool_finalize_named_section_flags): New function.
26368         (varpool_assemble_pending_decls): Call it.
26369         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
26370         * cgraphunit.c (cgraph_output_in_order): Call
26371         varpool_finalize_named_section_flags.
26372         * varasm.c (get_section): Allow section flags conflicts between
26373         relro and read-only sections if the section hasn't been declared yet.
26374         Set SECTION_OVERRIDE after diagnosing section type conflict.
26375         (get_variable_section): No longer static.
26376         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
26377         readonly sections that need relocations.
26378         (decl_readonly_section_1): New function.
26379         (decl_readonly_section): Use it.
26380
26381         Revert:
26382         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
26383                     Steve Ellcey  <sje@cup.hp.com>
26384
26385         PR middle-end/31490
26386         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
26387         if section attribute used.
26388
26389 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26390
26391         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
26392         * config/darwin.c (SECTION_NO_ANCHOR): Define.
26393         (darwin_init_sections): Remove assertion.
26394
26395 2011-02-03  Nick Clifton  <nickc@redhat.com>
26396
26397         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
26398         lt and ge.
26399         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
26400         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
26401         instead of "n" and "pz".
26402         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
26403         CC_FLAG_S.
26404
26405 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26406
26407         PR target/47312
26408         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
26409         fma, expand FMA_EXPR as fma{,f,l} call.
26410
26411         PR lto/47274
26412         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
26413         copy them into a unsigned char variable and pass address of it to
26414         lto_output_data_stream.
26415
26416         PR target/47564
26417         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
26418         around backend_init_target and lang_dependent_init_target calls.
26419         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
26420         (verify_cgraph_node): Don't call set_cfun here.  Use
26421         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
26422         Set error_found for incorrectly represented calls to thunks.
26423
26424 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26425
26426         PR debug/43092
26427         PR rtl-optimization/43494
26428         * rtl.h (for_each_inc_dec_fn): New type.
26429         (for_each_inc_dec): Declare.
26430         * rtlanal.c (struct for_each_inc_dec_ops): New type.
26431         (for_each_inc_dec_find_inc_dec): New fn.
26432         (for_each_inc_dec_find_mem): New fn.
26433         (for_each_inc_dec): New fn.
26434         * dse.c (struct insn_size): Remove.
26435         (replace_inc_dec, replace_inc_dec_mem): Remove.
26436         (emit_inc_dec_insn_before): New fn.
26437         (check_for_inc_dec): Use it, along with for_each_inc_dec.
26438         (canon_address): Pass mem modes to cselib_lookup.
26439         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
26440         (cselib_lookup_from_insn): Likewise.
26441         (cselib_subst_to_values): Likewise.
26442         * cselib.c (find_slot_memmode): New var.
26443         (cselib_find_slot): New fn.  Use it instead of
26444         htab_find_slot_with_hash everywhere.
26445         (entry_and_rtx_equal_p): Use find_slot_memmode.
26446         (autoinc_split): New fn.
26447         (rtx_equal_for_cselib_p): Rename and implement in terms of...
26448         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
26449         Deal with autoinc.  Special-case recursion into MEMs.
26450         (cselib_hash_rtx): Likewise.
26451         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
26452         address and MEM modes.
26453         (cselib_subst_to_values): Add memmode, pass it on.
26454         Deal with autoinc.
26455         (cselib_lookup): Add memmode argument, pass it on.
26456         (cselib_lookup_from_insn): Add memmode.
26457         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
26458         (struct cselib_record_autoinc_data): New.
26459         (cselib_record_autoinc_cb): New fn.
26460         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
26461         mode to cselib_lookup.  Reset autoinced REGs here instead of...
26462         (cselib_process_insn): ... here.
26463         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
26464         to cselib_lookup.
26465         (add_uses): Likewise, also to cselib_subst_to_values.
26466         (add_stores): Likewise.
26467         * sched-deps.c (add_insn_mem_dependence): Pass mode to
26468         cselib_subst_to_values.
26469         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
26470         * gcse.c (do_local_cprop): Adjusted.
26471         * postreload.c (reload_cse_simplify_set): Adjusted.
26472         (reload_cse_simplify_operands): Adjusted.
26473         * sel-sched-dump (debug_mem_addr_value): Pass mode.
26474
26475 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26476
26477         PR tree-optimization/45122
26478         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
26479         unsafe assumptions when there's more than one loop exit.
26480
26481 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26482
26483         PR target/47272
26484         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26485         Document using vector double with the load/store builtins, and
26486         that the load/store builtins always use Altivec instructions.
26487
26488         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
26489         to use altivec memory instructions, even on VSX.
26490         (vector_altivec_store_<mode>): Ditto.
26491
26492         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
26493         function.
26494
26495         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26496         V2DF, V2DI support to load/store overloaded builtins.
26497
26498         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
26499         altivec load/store builtins for V2DF/V2DI types.
26500
26501         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26502         set avoid indexed addresses on power6 if -maltivec.
26503         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
26504         vector_altivec_load/vector_altivec_store builtins.
26505         (altivec_expand_st_builtin): Ditto.
26506         (altivec_expand_builtin): Add VSX memory builtins.
26507         (rs6000_init_builtins): Add V2DI types to internal types.
26508         (altivec_init_builtins): Add support for V2DF/V2DI altivec
26509         load/store builtins.
26510         (rs6000_address_for_altivec): Insure memory address is appropriate
26511         for Altivec.
26512
26513         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
26514         vec_vsx_ld and vec_vsx_st.
26515         (vsx_store_<mode>): Ditto.
26516
26517         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
26518         variables to hold long long types for VSX vector memory builtins.
26519         (RS6000_BTI_unsigned_long_long): Ditto.
26520         (long_long_integer_type_internal_node): Ditti.
26521         (long_long_unsigned_type_internal_node): Ditti.
26522
26523         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
26524         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
26525         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
26526
26527         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
26528         short cuts.
26529         (vec_vsx_st): Ditto.
26530
26531 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26532
26533         * config/pa/pa-hpux10.opt: New.
26534         * config/hpux11.opt (pthread): New Driver option.
26535         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
26536         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
26537
26538 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26539
26540         * config/ia64/vms.opt: New.
26541         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
26542
26543 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
26544
26545         PR target/47580
26546         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
26547         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
26548         generator functions.
26549         (vsx_floatuns<VSi><mode>2): Ditto.
26550         (vsx_fix_trunc<mode><VSi>2): Ditto.
26551         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
26552
26553 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26554
26555         * config/i386/djgpp.opt (posix): New Driver option.
26556
26557 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
26558
26559         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
26560         Move to the unsupported targets list.
26561
26562 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
26563
26564         PR rtl-optimization/47525
26565         * df-scan.c: Update copyright years.
26566         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
26567         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
26568
26569 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26570
26571         * config/i386/sysv4.h (TARGET_VERSION): Remove.
26572         (SUBTARGET_RETURN_IN_MEMORY): Remove.
26573         (ASM_OUTPUT_ASCII): Remove.
26574         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
26575
26576 2011-02-02  Jeff Law  <law@redhat.com>
26577
26578         PR middle-end/47543
26579         * reload.c (find_reloads_address): Handle reg+d address where both
26580         components are invalid by reloading the entire address.
26581
26582 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
26583             Richard Guenther  <rguenther@suse.de>
26584
26585         PR tree-optimization/40979
26586         PR bootstrap/47044
26587         * passes.c (init_optimization_passes): After LIM call copy_prop
26588         and DCE to clean up.
26589         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
26590
26591 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
26592
26593         PR tree-optimization/47576
26594         PR tree-optimization/47555
26595         * doc/invoke.texi (scev-max-expr-complexity): Documented.
26596         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26597         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
26598         * tree-scalar-evolution.c (follow_ssa_edge): Use
26599         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
26600
26601 2011-02-02  Richard Guenther  <rguenther@suse.de>
26602
26603         PR tree-optimization/47566
26604         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
26605
26606 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
26607
26608         PR debug/47106
26609         PR debug/47402
26610         * tree-inline.c (declare_return_variable): Remove unused caller
26611         variable.
26612
26613         PR debug/47106
26614         PR debug/47402
26615         * tree-flow-inline.h (clear_is_used, is_used_p): New.
26616         * cfgexpand.c (account_used_vars_for_block): Use them.
26617         * tree-nrv.c (tree_nrv): Likewise.
26618         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
26619         (dump_scope_block): Likewise.
26620         (remove_unused_locals): Likewise.
26621
26622         PR debug/47106
26623         PR debug/47402
26624         * tree-inline.c (declare_return_variable): Add result decl to
26625         local decls only once.
26626         * gimple-low.c (record_vars_into): Mark newly-created variables
26627         as referenced.
26628
26629 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
26630
26631         PR debug/47498
26632         PR debug/47501
26633         PR debug/45136
26634         PR debug/45130
26635         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26636         debug insns.
26637         (no_real_insns_p, schedule_block, set_priorities): Drop special
26638         treatment of boundary debug insns.
26639         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26640         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
26641         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26642         (BOUNDARY_DEBUG_INSN_P): Likewise.
26643         (SCHEDULE_DEBUG_INSN_P): Likewise.
26644         * sched-rgn.c (init_ready_list): Drop special treatment of
26645         boundary debug insns.
26646         * final.c (rest_of_clean_state): Clear notes' BB.
26647
26648 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26649
26650         * config/openbsd.opt (assert=): New Driver option.
26651
26652 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26653
26654         * config/i386/nto.opt: New.
26655         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
26656
26657 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26658
26659         * config/i386/netware.opt: New.
26660         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
26661
26662 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26663
26664         * config/interix.opt (posix): New Driver option.
26665
26666 2011-02-01  DJ Delorie  <dj@redhat.com>
26667
26668         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
26669
26670         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26671         class for A0/A1.
26672
26673 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
26674
26675         PR tree-optimization/47561
26676         * toplev.c (process_options): Print the Graphite flags.  Add
26677         flag_loop_flatten to the list of options requiring Graphite.
26678
26679 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26680
26681         * config/i386/cygming.opt (posix): New Driver option.
26682
26683 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26684
26685         * config/arm/vxworks.opt: New.
26686         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26687
26688 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26689
26690         * config/alpha/elf.opt: New.
26691         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26692         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26693
26694 2011-02-01  Richard Guenther  <rguenther@suse.de>
26695
26696         PR tree-optimization/47559
26697         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26698         store-motion on references that can throw.
26699
26700 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
26701
26702         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26703         * tree-pass.h (TDF_CSELIB): New macro.
26704         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26705         cselib_lookup): Check for it rather than for TDF_DETAILS.
26706
26707 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
26708
26709         PR driver/47547
26710         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26711         is HOST_BIT_BUCKET.
26712
26713         * opts.c (finish_options): Don't add x_aux_base_name if it is
26714         HOST_BIT_BUCKET.
26715
26716 2011-02-01  Richard Guenther  <rguenther@suse.de>
26717
26718         PR tree-optimization/47555
26719         Revert
26720         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
26721
26722         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26723
26724 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
26725
26726         PR gcc/46692
26727         * config/lm32/t-lm32: Add multilib for all CPU options.
26728
26729 2011-02-01  Richard Guenther  <rguenther@suse.de>
26730
26731         PR tree-optimization/47541
26732         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26733         sure to have a field at offset zero.
26734
26735 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26736
26737         * config/arc/arc.opt (EB, EL): New Driver options.
26738
26739 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26740
26741         * config/alpha/osf5.opt: New.
26742         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26743
26744 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26745
26746         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26747
26748 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
26749
26750         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26751         -floop-interchange.
26752         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26753         is an alias of -floop-interchange and that it requires the
26754         Graphite infrastructure.
26755         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26756         flag_loop_interchange based on the value of flag_tree_loop_linear.
26757
26758 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
26759             Richard Guenther  <rguenther@suse.de>
26760
26761         PR tree-optimization/47538
26762         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26763         type instead of r1type, except for comparisons.  For right
26764         shifts and comparisons punt if there are mismatches in
26765         sizetype vs. non-sizetype types.
26766
26767 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26768
26769         * doc/sourcebuild.texi (Effective-Target Keywords): Document
26770         avx_runtime.
26771
26772 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26773
26774         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26775         version number.
26776         * configure: Regenerate.
26777
26778 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26779
26780         * configure.ac (gcc_cv_ld_static_option): Define.
26781         (gcc_cv_ld_dynamic_option): Define.
26782         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26783         instead.
26784         (HAVE_LD_STATIC_DYNAMIC): Update message.
26785         (LD_STATIC_OPTION): Define.
26786         (LD_DYNAMIC_OPTION): Define.
26787         * configure: Regenerate.
26788         * config.in: Regenerate.
26789         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26790         HAVE_LD_STATIC_DYNAMIC]: Use them.
26791
26792 2011-01-31  Nick Clifton  <nickc@redhat.com>
26793
26794         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26795         registers inside interrupt handlers if the handler is not a leaf
26796         function.
26797
26798 2011-01-31  Nick Clifton  <nickc@redhat.com>
26799
26800         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26801         reg_renumber returning an INVALID_REGNUM.
26802
26803 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
26804
26805         PR libgcj/44341
26806         * doc/install.texi: Document host options discarded when cross
26807         configuring target libraries.
26808
26809 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
26810
26811         Reverted:
26812         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
26813         PR debug/45136
26814         PR debug/45130
26815         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26816         debug insns.
26817         (no_real_insns_p, schedule_block, set_priorities): Drop special
26818         treatment of boundary debug insns.
26819         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26820         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26821         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26822         (BOUNDARY_DEBUG_INSN_P): Likewise.
26823         (SCHEDULE_DEBUG_INSN_P): Likewise.
26824         * sched-rgn.c (init_ready_list): Drop special treatment of
26825         boundary debug insns.
26826         * final.c (rest_of_clean-state): Clear notes' BB.
26827
26828 2011-01-31  Alan Modra  <amodra@gmail.com>
26829
26830         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26831         toc relative expressions as we do in print_operand_address.
26832
26833 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
26834
26835         * doc/extend.texi: Follow spelling conventions.
26836         * doc/invoke.texi: Fix a typo.
26837
26838 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
26839
26840         * config/hpux11.opt: New.
26841         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26842         ia64*-*-hpux*): Use hpux11.opt.
26843
26844 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
26845
26846         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26847         to tmake_file.
26848
26849 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26850
26851         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26852         support sites.
26853
26854 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26855
26856         * doc/install.texi (Binaries): Remove outdated reference for
26857         Motorola 68HC11/68HC12 downloads.
26858
26859 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
26860
26861         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26862         Drepper's paper.
26863
26864 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
26865
26866         PR bootstrap/47147
26867         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26868         used by NetBSD.
26869
26870 2011-01-28  Ahmad Sharif  <asharif@google.com>
26871
26872         * value-prof.c (check_counter): Corrected error message.
26873
26874 2011-01-29  Jie Zhang  <jie@codesourcery.com>
26875
26876         * config/arm/arm.c (arm_legitimize_reload_address): New.
26877         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26878         arm_legitimize_reload_address.
26879         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26880
26881 2011-01-28  Ian Lance Taylor  <iant@google.com>
26882
26883         * godump.c (go_define): Ignore macros whose definitions include
26884         two adjacent operands.
26885
26886 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
26887
26888         PR target/42894
26889         * varasm.c (force_const_mem): Store copy of x in desc->constant
26890         instead of x itself.
26891         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26892         itself into REG_EQUAL note.
26893
26894 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
26895
26896         * config/freebsd.opt (posix, rdynamic): New Driver options.
26897
26898 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26899
26900         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26901         -Bstatic/-Bdynamic.
26902         * configure: Regenerate.
26903
26904 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
26905
26906         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26907         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26908
26909 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
26910
26911         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26912         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26913         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26914         (s390_preferred_reload_class): Make static. Change return and
26915         'rclass' argument type to reg_class_t.
26916
26917 2011-01-27  Jan Hubicka  <jh@suse.cz>
26918
26919         PR middle-end/46949
26920         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26921         (process_function_and_variable_attributes): Check defined weakrefs.
26922
26923 2011-01-27  Martin Jambor  <mjambor@suse.cz>
26924
26925         PR tree-optimization/47228
26926         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26927         build_ref_for_offset.
26928
26929 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26930
26931         * config/spu/spu-elf.h (ASM_SPEC): Remove.
26932
26933 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
26934
26935         PR rtl-optimization/46856
26936         * postreload.c (reload_combine_recognize_const_pattern): Do not
26937         separate cc0 setter and user on cc0 targets.
26938
26939 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
26940
26941         PR c/43082
26942         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26943         passed a VOID_TYPE expression, immediately emit an error and
26944         return error_mark_node.
26945
26946 2011-01-26  Jeff Law  <law@redhat.com>
26947
26948         PR rtl-optimization/47464
26949         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26950         rather than may_trap_p as needed.
26951
26952 2011-01-26  DJ Delorie  <dj@redhat.com>
26953
26954         PR rtl-optimization/46878
26955         * combine.c (insn_a_feeds_b): Check for the implicit cc0
26956         setter/user dependency as well.
26957
26958 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
26959
26960         PR rtl-optimization/44469
26961         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26962         after removing trivially dead basic blocks.
26963
26964 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26965
26966         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26967         * config/frv/frv.h (LINK_SPEC): Likewise.
26968         * config/i386/netware.h (LINK_SPEC): Likewise.
26969         * config/m68k/linux.h (ASM_SPEC): Likewise.
26970         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26971         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26972         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26973         * config/sparc/linux.h (ASM_SPEC): Likewise.
26974         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26975         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26976
26977 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26978
26979         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26980         * config/frv/frv.h (ASM_SPEC): Likewise.
26981         * config/m68k/linux.h (ASM_SPEC): Likewise.
26982         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26983         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26984         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26985         * config/sparc/linux.h (ASM_SPEC): Likewise.
26986         * config/sparc/linux64.h (ASM_SPEC): Likewise.
26987         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26988
26989 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26990
26991         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26992         * config/frv/frv.h (LINK_SPEC): Likewise.
26993         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26994
26995 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
26996
26997         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26998         * config/frv/frv.h (ASM_SPEC): Likewise.
26999         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27000         * config/m68k/linux.h (ASM_SPEC): Likewise.
27001         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27002         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27003         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27004         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27005         * config/sparc/linux.h (ASM_SPEC): Likewise.
27006         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27007         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27008         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27009
27010 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
27011
27012         PR target/46997
27013         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27014         (*mux2): Ditto.
27015         (vec_extract_evenodd_help): Ditto.
27016         (vec_extract_evenv4hi): Ditto.
27017         (vec_extract_oddv4hi): Ditto.
27018         (vec_interleave_lowv2si): Ditto.
27019         (vec_interleave_highv2si): Ditto.
27020         (vec_extract_evenv2si): Ditto.
27021         (vec_extract_oddv2si: Ditto.
27022         (vec_pack_trunc_v2si): Ditto.
27023
27024 2011-01-22  Jan Hubicka  <jh@suse.cz>
27025
27026         PR target/47237
27027         * cgraph.h (cgraph_local_info): New field can_change_signature.
27028         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27029         signature can change.
27030         (ipcp_estimate_growth): Call sequence simplify only if calle signature
27031         can change.
27032         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27033         (cgraph_function_versioning): We can not change signature of functions
27034         that don't allow that.
27035         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27036         (lto_input_node): Likewise.
27037         * ipa-inline.c (compute_inline_parameters): Compute
27038         local.can_change_signature.
27039         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27040         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27041         functions that can not change signature.
27042         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27043         init_cumulative_args): Do not use local calling conventions
27044         for functions that can not change signature.
27045
27046 2011-01-22  Jan Hubicka  <jh@suse.cz>
27047
27048         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27049
27050 2011-01-26  Richard Guenther  <rguenther@suse.de>
27051
27052         PR tree-optimization/47190
27053         * cgraphunit.c (process_common_attributes): New function.
27054         (process_function_and_variable_attributes): Use it.
27055
27056 2011-01-26  Richard Guenther  <rguenther@suse.de>
27057
27058         PR lto/47423
27059         * cgraphbuild.c (record_eh_tables): Record reference to personality
27060         function.
27061
27062 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
27063
27064         PR debug/45454
27065         * sel-sched.c (moveup_expr): Don't let debug insns prevent
27066         non-debug insns from moving up.
27067
27068 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27069
27070         PR target/40125
27071         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27072         t-dlldir{,-x} fragment for build and add it to tmake_file.
27073         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27074         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27075         * config/i386/t-dlldir: New file.
27076         (SHLIB_DLLDIR): Define.
27077         * config/i386/t-dlldir-x: New file.
27078         (SHLIB_DLLDIR): Define.
27079         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27080         (SHLIB_INSTALL): Use it.
27081
27082 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
27083
27084         PR target/47246
27085         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27086         lower bound of the allowed Thumb-2 coprocessor load/store
27087         index range to -256. Add explaining comment.
27088
27089 2011-01-25  Ian Lance Taylor  <iant@google.com>
27090
27091         * godump.c (go_define): Improve lexing of macro expansion to only
27092         accept expressions which match Go spec.
27093
27094 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27095
27096         PR c++/43601
27097         * tree.c (handle_dll_attribute): Handle it.
27098         * doc/extend.texi (@item dllexport): Mention it.
27099         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27100
27101 2011-01-25  Ian Lance Taylor  <iant@google.com>
27102
27103         PR tree-optimization/26854
27104         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27105         (decl_jump_unsafe): Move higher in file, with no other change.
27106         (bind): Set has_jump_unsafe_decl if appropriate.
27107         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27108         (check_earlier_gotos): Likewise.
27109         (c_check_switch_jump_warnings): Likewise.
27110
27111 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
27112
27113         * doc/invoke.texi (Warning Options): Add missing hyphen.
27114         (-fprofile-dir): Minor grammatical fixes.
27115         (-fbranch-probabilities): Likewise.
27116
27117 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27118
27119         PR debug/45136
27120         PR debug/45130
27121         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27122         debug insns.
27123         (no_real_insns_p, schedule_block, set_priorities): Drop special
27124         treatment of boundary debug insns.
27125         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27126         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27127         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27128         (BOUNDARY_DEBUG_INSN_P): Likewise.
27129         (SCHEDULE_DEBUG_INSN_P): Likewise.
27130         * sched-rgn.c (init_ready_list): Drop special treatment of
27131         boundary debug insns.
27132         * final.c (rest_of_clean-state): Clear notes' BB.
27133
27134 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27135
27136         * Makefile.in (LAMBDA_H): Removed.
27137         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27138         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27139         lambda-trans.o, and tree-loop-linear.o.
27140         (lto-symtab.o): Remove dependence on LAMBDA_H.
27141         (tree-loop-linear.o): Remove rule.
27142         (lambda-mat.o): Same.
27143         (lambda-trans.o): Same.
27144         (lambda-code.o): Same.
27145         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27146         (tree-vect-slp.o): Same.
27147         * hwint.h (gcd): Moved here.
27148         (least_common_multiple): Same.
27149         * lambda-code.c: Removed.
27150         * lambda-mat.c: Removed.
27151         * lambda-trans.c: Removed.
27152         * lambda.h: Removed.
27153         * tree-loop-linear.c: Removed.
27154         * lto-symtab.c: Do not include lambda.h.
27155         * omega.c (gcd): Removed.
27156         * passes.c (init_optimization_passes): Remove pass_linear_transform.
27157         * tree-data-ref.c (print_lambda_vector): Moved here.
27158         (lambda_vector_copy): Same.
27159         (lambda_matrix_copy): Same.
27160         (lambda_matrix_id): Same.
27161         (lambda_vector_first_nz): Same.
27162         (lambda_matrix_row_add): Same.
27163         (lambda_matrix_row_exchange): Same.
27164         (lambda_vector_mult_const): Same.
27165         (lambda_vector_negate): Same.
27166         (lambda_matrix_row_negate): Same.
27167         (lambda_vector_equal): Same.
27168         (lambda_matrix_right_hermite): Same.
27169         * tree-data-ref.h: Do not include lambda.h.
27170         (lambda_vector): Moved here.
27171         (lambda_matrix): Same.
27172         (dependence_level): Same.
27173         (lambda_transform_legal_p): Removed declaration.
27174         (lambda_collect_parameters): Same.
27175         (lambda_compute_access_matrices): Same.
27176         (lambda_vector_gcd): Same.
27177         (lambda_vector_new): Same.
27178         (lambda_vector_clear): Same.
27179         (lambda_vector_lexico_pos): Same.
27180         (lambda_vector_zerop): Same.
27181         (lambda_matrix_new): Same.
27182         * tree-flow.h (least_common_multiple): Removed declaration.
27183         * tree-parloops.c (lambda_trans_matrix): Moved here.
27184         (LTM_MATRIX): Same.
27185         (LTM_ROWSIZE): Same.
27186         (LTM_COLSIZE): Same.
27187         (LTM_DENOMINATOR): Same.
27188         (lambda_trans_matrix_new): Same.
27189         (lambda_matrix_vector_mult): Same.
27190         (lambda_transform_legal_p): Same.
27191         * tree-pass.h (pass_linear_transform): Removed declaration.
27192         * tree-ssa-loop.c (tree_linear_transform): Removed.
27193         (gate_tree_linear_transform): Removed.
27194         (pass_linear_transform): Removed.
27195         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27196         flag_loop_interchange.
27197
27198 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27199
27200         PR tree-optimization/47265
27201         PR tree-optimization/47443
27202         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27203         if name still has some uses.
27204
27205 2011-01-25  Martin Jambor  <mjambor@suse.cz>
27206
27207         PR tree-optimization/47382
27208         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27209         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27210
27211 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
27212
27213         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27214         sjlj_except_unwind_info.
27215
27216 2011-01-25  Richard Guenther  <rguenther@suse.de>
27217
27218         PR tree-optimization/47426
27219         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27220         visible functions results escape.
27221
27222 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27223
27224         PR target/45701
27225         * config/arm/arm.c (any_sibcall_uses_r3): New function.
27226         (arm_get_frame_offsets): Use it.
27227
27228 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27229             Jakub Jelinek  <jakub@redhat.com>
27230
27231         PR tree-optimization/47271
27232         * tree-if-conv.c (bb_postdominates_preds): New.
27233         (if_convertible_bb_p): Call bb_postdominates_preds.
27234         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27235         (predicate_scalar_phi): Call bb_postdominates_preds.
27236
27237 2011-01-25  Nick Clifton  <nickc@redhat.com>
27238
27239         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27240         * config/rx/rx.c (rx_function_value): Likewise.
27241         (rx_promote_function_mode): Likewise.
27242         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27243         in order to make it legitimate.
27244         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27245         make sure that the first operand is the same as the result register.
27246         (addsi3_unspec): Delete.
27247         (subdi3): Do not accept immediate operands.
27248         (subdi3_internal): Likewise.
27249
27250 2011-01-25  Jeff Law  <law@redhat.com>
27251
27252         PR rtl-optimization/37273
27253         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27254         handle them like argument loads from stack slots.  Do not double
27255         count memory for memory constants and argument loads from stack slots.
27256
27257 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27258
27259         PR tree-optimization/47427
27260         PR tree-optimization/47428
27261         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27262         coalesce if the new root var would be TREE_READONLY.
27263
27264 2011-01-25  Richard Guenther  <rguenther@suse.de>
27265
27266         PR middle-end/47414
27267         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27268         correct type for TBAA.
27269
27270 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27271
27272         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27273         (close_phi_written_to_memory): Call for_each_index with
27274         dr_indices_valid_in_loop.
27275
27276 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27277
27278         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27279         when it is initialized.
27280
27281 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27282
27283         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27284         call to graphite_find_data_references_in_stmt.
27285         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27286         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
27287         call to graphite_find_data_references_in_stmt.
27288         (analyze_drs_in_stmts): Same.
27289         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27290         in which the scalar analysis of indices is performed.
27291         (create_data_ref): Same.  Update call to dr_analyze_indices.
27292         (find_data_references_in_stmt): Update call to create_data_ref.
27293         (graphite_find_data_references_in_stmt): Same.
27294         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27295         declaration.
27296         (create_data_ref): Same.
27297         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27298         call to create_data_ref.
27299
27300 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27301
27302         * graphite-sese-to-poly.c (build_poly_scop): Move
27303         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27304
27305 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27306
27307         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27308         VAR_DECL, PARM_DECL, and RESULT_DECL.
27309
27310 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27311
27312         * graphite-dependences.c (reduction_dr_1): Allow several reductions
27313         in a reduction PBB.
27314         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27315         that have already been marked as PBB_IS_REDUCTION.
27316
27317 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27318
27319         * graphite-scop-detection.c (same_close_phi_node): New.
27320         (remove_duplicate_close_phi): New.
27321         (make_close_phi_nodes_unique): New.
27322         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27323
27324 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27325
27326         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27327         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27328         of both data references to be the same.
27329
27330 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27331
27332         * graphite-dependences.c (build_lexicographical_constraint): Remove
27333         the gdim parameter.
27334         (build_lexicographical_constraint): Adjust call to
27335         ppl_powerset_is_empty.
27336         (dependence_polyhedron): Same.
27337         (graphite_legal_transform_dr): Same.
27338         (graphite_carried_dependence_level_k): Same.
27339         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
27340         parameter.
27341         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
27342
27343 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27344
27345         * graphite-sese-to-poly.c
27346         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
27347         (close_phi_written_to_memory): New.
27348         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
27349         and unshare_expr.
27350
27351 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27352
27353         * doc/install.texi: Update the expected version number of PPL to 0.11.
27354         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
27355         #if PPL_VERSION_MINOR < 11.
27356
27357 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27358
27359         * graphite-dependences.c: Include graphite-cloog-util.h.
27360         (new_poly_ddr): Inlined into dependence_polyhedron.
27361         (free_poly_ddr): Moved close by new_poly_ddr.
27362         (dependence_polyhedron_1): Renamed dependence_polyhedron.
27363         Early return NULL when ppl_powerset_is_empty returns true.
27364         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
27365         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
27366         (graphite_legal_transform_dr): Call new_poly_ddr.
27367         (graphite_carried_dependence_level_k): Same.
27368         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
27369         (dot_transformed_deps_stmt_1): Removed.
27370         (dot_deps_stmt_1): Call dot_deps_stmt_2.
27371         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
27372         (dot_deps_1): Call dot_deps_2.
27373         * Makefile.in (graphite-dependences.o): Add missing dependence on
27374         graphite-cloog-util.h.
27375
27376 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27377
27378         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
27379         (build_lexicographical_constraint): Same.
27380         (dependence_polyhedron_1): Same.
27381         (graphite_legal_transform_dr): Same.
27382         (graphite_carried_dependence_level_k): Same.
27383         * graphite-ppl.c (ppl_powerset_is_empty): New.
27384         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27385         * tree-data-ref.c (dump_data_reference): Print the basic block index.
27386
27387 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27388
27389         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
27390         the "a followed by b" relation and document it.
27391
27392 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27393
27394         * graphite-dependences.c (build_lexicographical_constraint): Stop the
27395         iteration when the bag of constraints is empty.
27396
27397 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27398
27399         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
27400
27401 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27402
27403         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
27404         nest and two loop depths as parameters.
27405         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
27406         lst_perfect_nestify.
27407
27408 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27409
27410         * graphite-dependences.c (print_pddr): Call
27411         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
27412
27413 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27414
27415         * graphite-ppl.c (debug_gmp_value): New.
27416         * graphite-ppl.h (debug_gmp_value): Declared.
27417
27418 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
27419
27420         * doc/install.texi: Document availability of cloog-0.16.
27421
27422 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
27423
27424         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
27425         invalid postdominance info.
27426
27427 2011-01-24  Jan Hubicka  <jh@suse.cz>
27428
27429         PR c/21659
27430         * doc/extend.texi (weak pragma): Drop claim that it must
27431         appear before definition.
27432         * varasm.c (merge_weak, declare_weak): Only sanity check
27433         that DECL is not output at a time it is declared weak.
27434
27435 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
27436
27437         * machmode.def: Fixed comments.
27438
27439 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
27440
27441         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
27442
27443 2011-01-24  Paul Koning  <ni1d@arrl.net>
27444
27445         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
27446         WORDS_BIG_ENDIAN.
27447
27448 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27449
27450         PR target/46519
27451         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
27452         (block_info): Add scanned and prev.
27453         (move_or_delete_vzeroupper_2): Return if the basic block
27454         has been scanned and the upper 128bit state is unchanged
27455         from the last scan.
27456         (move_or_delete_vzeroupper_1): Return true if the exit
27457         state is changed.
27458         (move_or_delete_vzeroupper): Visit basic blocks using the
27459         work-list based algorithm based on vt_find_locations in
27460         var-tracking.c.
27461
27462         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
27463
27464 2011-01-24  Nick Clifton  <nickc@redhat.com>
27465
27466         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
27467         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
27468         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
27469         then define __v850e1__.
27470         * doc/invoke.texi: Document -mv850es.
27471
27472 2011-01-24  Richard Henderson  <rth@redhat.com>
27473
27474         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
27475         compound unordered comparisons.
27476         * config/rx/rx.c (rx_split_fp_compare): Remove.
27477         * config/rx/rx-protos.h: Update.
27478         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
27479         (cbranchsf4): Don't call rx_split_fp_compare.
27480         (*cbranchsf4): Use rx_split_cbranch.
27481         (*cmpsf): Don't accept "i" constraint.
27482         (*conditional_branch): Only valid after reload.
27483         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
27484
27485 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27486
27487         PR target/47385
27488         * config/rs6000/altivec.md (vector constant splitters): Add
27489         support for creating vector single precision constants if -mvsx is
27490         used and we would create the constant using Altivec primitives.
27491
27492 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
27493             Richard Sandiford  <rdsandiford@googlemail.com>
27494
27495         PR rtl-optimization/47166
27496         * reload1.c (emit_reload_insns): Disable the spill_reg_store
27497         mechanism for PRE_MODIFY and POST_MODIFY.
27498         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
27499         reloadreg.
27500
27501 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
27502
27503         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
27504
27505 2011-01-22  Jan Hubicka  <jh@suse.cz>
27506
27507         PR lto/47333
27508         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
27509
27510 2011-01-22  Jan Hubicka  <jh@suse.cz>
27511
27512         PR tree-optimization/43884
27513         PR lto/44334
27514         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
27515         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
27516
27517 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
27518
27519         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27520         * config/s390/s390.c (s390_register_move_cost,
27521         s390_memory_move_cost): New.
27522         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
27523
27524 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27525
27526         PR middle-end/47401
27527         * except.c (sjlj_assign_call_site_values): Move setting the
27528         crtl->uses_eh_lsda flag to ...
27529         (sjlj_mark_call_sites): ... here.
27530         (sjlj_emit_function_enter): Support NULL dispatch label.
27531         (sjlj_build_landing_pads): In a function with no landing pads
27532         that still has must-not-throw regions, generate code to register
27533         a personality function with empty LSDA.
27534
27535 2011-01-21  Richard Henderson  <rth@redhat.com>
27536
27537         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
27538
27539         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
27540
27541         * compare-elim.c: New file.
27542         * Makefile.in (OBJS-common): Add it.
27543         (compare-elim.o): New.
27544         * common.opt (fcompare-elim): New.
27545         * opts.c (default_options_table): Add OPT_fcompare_elim.
27546         * tree-pass.h (pass_compare_elim_after_reload): New.
27547         * passes.c (init_optimization_passes): Add it.
27548         * recog.h: Protect against re-inclusion.
27549         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
27550         * doc/invoke.texi (-fcompare-elim): Document it.
27551         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
27552         * doc/tm.texi: Rebuild.
27553
27554 2011-01-22  Nick Clifton  <nickc@redhat.com>
27555
27556         * config/rx/rx.md (cstoresf4): Pass comparison operator to
27557         rx_split_fp_compare.
27558
27559 2011-01-22  Nick Clifton  <nickc@redhat.com>
27560
27561         * config/rx/rx.md (UNSPEC_CONST): New.
27562         (deallocate_and_return): Wrap the amount popped off the stack in
27563         an UNSPEC_CONST in order to stop it being rejected by
27564         -mmax-constant-size.
27565         (pop_and_return): Add a "(return)" rtx.
27566         (call): Drop the immediate operand.
27567         (call_internal): Likewise.
27568         (call_value): Likewise.
27569         (call_value_internal): Likewise.
27570         (sibcall_internal): Likewise.
27571         (sibcall_value_internal): Likewise.
27572         (sibcall): Likewise.  Generate an explicit call using
27573         sibcall_internal.
27574         (sibcall_value): Likewise.
27575         (mov<>): FAIL if a constant operand is not legitimate.
27576         (addsi3_unpsec): New pattern.
27577
27578         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
27579         (ok_for_max_constant): New function.
27580         (gen_safe_add): New function.
27581         (rx_expand_prologue): Use gen_safe_add.
27582         (rx_expand_epilogue): Likewise.
27583         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
27584         UNSPEC CONSTs.
27585
27586 2011-01-21  Jeff Law  <law@redhat.com>
27587
27588         PR tree-optimization/47053
27589         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
27590         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
27591         statements are deleted.
27592         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
27593         is nonempty, then purge dead edges and cleanup the CFG.
27594
27595 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27596
27597         PR debug/47402
27598         Temporarily revert:
27599         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27600         PR debug/47106
27601         * tree-dfa.c (create_var_ann): Mark variable as used.
27602
27603 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27604
27605         PR middle-end/45566
27606         * except.c (convert_to_eh_region_ranges): Emit queued no-region
27607         notes from other section in hot/cold partitioning even if
27608         last_action is -3.  Increment call_site_base.
27609
27610         PR rtl-optimization/47366
27611         * fwprop.c (forward_propagate_into): Return bool.  If
27612         any changes are made, -fnon-call-exceptions is used and
27613         REG_EH_REGION note is present, call purge_dead_edges
27614         and return true if it purged anything.
27615         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
27616         any EH edges were purged.
27617
27618 2011-01-21  Jeff Law  <law@redhat.com>
27619
27620         PR rtl-optimization/41619
27621         * caller-save.c (setup_save_areas): Break out code to determine
27622         which hard regs are live across calls by examining the reload chains
27623         so that it is always used.
27624         Eliminate code which checked REG_N_CALLS_CROSSED.
27625
27626 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27627
27628         PR tree-optimization/47355
27629         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
27630         NOP has non-debug uses beyond PHIs in new_bb.
27631
27632 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27633
27634         PR debug/47106
27635         * cfgexpand.c (account_used_vars_for_block): Only account vars
27636         that are annotated as used.
27637         (estimated_stack_frame_size): Don't set TREE_USED.
27638         * tree-dfa.c (create_var_ann): Mark variable as used.
27639
27640 2011-01-21  Richard Guenther  <rguenther@suse.de>
27641
27642         PR middle-end/47395
27643         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
27644
27645 2011-01-21  Richard Guenther  <rguenther@suse.de>
27646
27647         PR tree-optimization/47365
27648         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
27649         (vn_reference_lookup_pieces): Adjust.
27650         (vn_reference_lookup): Likewise.
27651         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
27652         (vn_reference_lookup_3): Only look through kills if in
27653         VN_WALKREWRITE mode.
27654         (vn_reference_lookup_pieces): Adjust.
27655         (vn_reference_lookup): Likewise.
27656         (visit_reference_op_load): Likewise.
27657         (visit_reference_op_store): Likewise.
27658         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
27659         (compute_avail): Likewise.
27660         (eliminate): Likewise.
27661
27662 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27663
27664         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
27665         DECL_IGNORED_P non-reg vars if they are used.
27666
27667         PR tree-optimization/47391
27668         * varpool.c (const_value_known_p): Return false if
27669         decl is volatile.
27670
27671 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
27672
27673         PR bootstrap/47215
27674         * config/i386/i386.c (ix86_local_alignment): Handle
27675         case for va_list_type_node is nil.
27676         (ix86_canonical_va_list_type): Likewise.
27677
27678 2011-01-21  Alan Modra  <amodra@gmail.com>
27679
27680         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27681         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27682
27683 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27684
27685         * config/arm/arm.md (define_attr type): Rename f_load
27686         and f_store to f_fpa_load and f_fpa_store. Update.
27687         (write_conflict): Deal with rename fallout.
27688         (*push_fp_multi): Likewise.
27689         * config/arm/fpa.md (f_load): Use f_fpa_load.
27690         (f_store): Use f_fpa_store.
27691         (*movsf_fpa): Likewise.
27692         (*movdf_fpa): Likewise.
27693         (*movxf_fpa): Likewise.
27694         (*thumb2_movsf_fpa): Likewise.
27695         (*thumb2_movdf_fpa): Likewise.
27696         (*thumb2_movxf_fpa): Likewise.
27697         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27698         f_loadd and f_stored.
27699         (*thumb2_movdi_vfp): Likewise.
27700         (*thumb2_movsf_vfp): Fix attribute to f_loads.
27701         (*thumb2_movsi_vfp): Likewise.
27702         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27703         Use f_loads instead of f_load.
27704         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27705
27706 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
27707
27708         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27709         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27710         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27711         (xtensa_mode_dependent_address_p): New function.
27712         (constantpool_address_p): Make static. Change return type to bool.
27713         Change argument type to const_rtx. Use CONST_INT_P predicate.
27714
27715 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
27716
27717         PR debug/46583
27718         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27719
27720 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
27721
27722         PR debug/47283
27723         * cfgexpand.c (expand_debug_expr): Instead of generating
27724         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27725         etc. handling.
27726
27727 2011-01-20  Richard Guenther  <rguenther@suse.de>
27728
27729         PR middle-end/47370
27730         * tree-inline.c (remap_gimple_op_r): Recurse manually for
27731         the pointer operand of MEM_REFs.
27732
27733 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
27734
27735         PR tree-optimization/46130
27736         * ipa-split.c (consider_split): If return_bb contains non-virtual
27737         PHIs other than for retval or if split_function would not adjust it,
27738         refuse to split.
27739
27740 2011-01-20  Richard Guenther  <rguenther@suse.de>
27741
27742         PR tree-optimization/47167
27743         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27744         Revert previous change, only avoid enumeral type changes.
27745
27746 2011-01-19  Mike Stump  <mikestump@comcast.net>
27747
27748         * doc/tm.texi.in (BRANCH_COST): Englishify.
27749         * doc/tm.texi (BRANCH_COST): Likewise.
27750
27751 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
27752
27753         PR c++/47291
27754         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27755         (gen_scheduled_generic_parms_dies): New functions.
27756         (gen_struct_or_union_type_die): Schedule template parameters DIEs
27757         generation for the end of CU compilation.
27758         (dwarf2out_finish): Generate template parameters DIEs here.
27759
27760 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
27761
27762         PR debug/46240
27763         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27764         debug bind stmt on merge edges.
27765
27766 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
27767
27768         PR debug/47079
27769         PR debug/46724
27770         * function.c (instantiate_expr): Instantiate incoming rtl of
27771         implicit arguments, and recurse on VALUE_EXPRs.
27772         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27773         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27774
27775 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
27776
27777         * c-parser.c (c_parser_for_statement): Initialize
27778         collection_expression.
27779
27780 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
27781
27782         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27783
27784 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
27785
27786         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27787         (LINK_SHLIB_SPEC): Don't use %(link_path).
27788         (SUBTARGET_EXTRA_SPECS): Remove link_path.
27789
27790 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
27791
27792         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27793         (NO_SHARED_LIB_SUPPORT): Remove.
27794         (LINK_SHLIB_SPEC): Remove one conditional definition.
27795
27796 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
27797
27798         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27799         %{call_shared}.
27800         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27801         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27802         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27803         %{call_shared} and conditionals on these options not being passed.
27804         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27805         %{call_shared}.
27806
27807 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
27808
27809         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27810         simplify.
27811
27812         * ipa-split.c: Spelling fixes.
27813
27814 2011-01-19  Richard Henderson  <rth@redhat.com>
27815
27816         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27817         (*mulsi3): Likewise.
27818
27819         * longlong.h [__mn10300__] (count_leading_zeros): New.
27820         [__mn10300__] (umul_ppmm, smul_ppmm): New.
27821         [__mn10300__] (add_ssaaaa, subddmmss): New.
27822         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27823         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27824
27825 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27826
27827         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27828
27829 2011-01-19  Richard Henderson  <rth@redhat.com>
27830
27831         * config/mn10300/mn10300.md (addsi3_flags): New.
27832         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27833         (subsi3_flags, subc_internal, subdi3): New.
27834         (subdi3_internal, *subdi3_degenerate): New.
27835         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27836
27837         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27838         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27839         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
27840         * config/mn10300/mn10300-protos.h: Update.
27841         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27842         (return_ret): Likewise.  Rename from return_internal_regs.
27843         (return_internal): Remove.
27844
27845         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27846         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27847         (mn10300_legitimate_constant_p): Likewise.
27848         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27849         (mn10300_frame_size): New.
27850         (mn10300_expand_prologue): Use it.
27851         (mn10300_expand_epilogue): Likewise.
27852         (mn10300_initial_offset): Likewise.
27853         * config/mn10300/mn10300-protos.h: Update.
27854         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27855         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27856         (prologue, epilogue, return_internal): Tidy output code.
27857         (mn10300_store_multiple_operation, return): Likewise.
27858         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27859         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27860         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27861         (load_pic, am33_load_pic): New.
27862         (mn10300_load_pic0, mn10300_load_pic1): New.
27863
27864         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27865         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27866         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27867         (cc_flags_for_mode, cc_flags_for_code): New.
27868         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27869         overflow flag is not valid.  Validate that the flags we need
27870         for the comparison are valid.
27871         (mn10300_output_cmp): Remove.
27872         (mn10300_output_add): New.
27873         (mn10300_select_cc_mode): Use cc_flags_for_code.
27874         (mn10300_split_cbranch): New.
27875         (mn10300_match_ccmode): New.
27876         (mn10300_split_and_operand_count): New.
27877         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27878         to the function.
27879         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27880         (addsi3): ... here.  Use mn10300_output_add.
27881         (*addsi3_flags): New.
27882         (*am33_subsi3, *mn10300_subsi3): Merge...
27883         (subsi3): ... here.  Use attribute isa.
27884         (*subsi3_flags): New.
27885         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
27886         when possible.
27887         (*am33_andsi3, *mn10300_andsi3): Merge...
27888         (andsi3): ... here.
27889         (*andsi3_flags): New.
27890         (andsi3 splitters): New.
27891         (*am33_iorsi3, *mn10300_iorsi3): Merge...
27892         (iorsi3): ... here.
27893         (*iorsi3_flags): New.
27894         (*am33_xorsi3, *mn10300_xorsi3): Merge...
27895         (xorsi3): ... here.
27896         (*xorsi3_flags): New.
27897         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27898         (one_cmplsi2): ... here.
27899         (*one_cmplsi2_flags): New.
27900         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
27901         instead of "dax" in constraints.  Use mn10300_split_cbranch.
27902         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
27903         use matching constraints to eliminate a self-comparison.
27904         (*integer_conditional_branch): Rename from integer_conditional_branch.
27905         Use int_mode_flags to match CC_REG.
27906         (*cbranchsi4_btst, *btstsi): New.
27907         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
27908         mn10300_split_cbranch.
27909         (*am33_cmpsf): Rename from am33_cmpsf.
27910         (*float_conditional_branch): Rename from float_conditional_branch.
27911         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27912         (zero_extendqisi2): ... here.
27913         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27914         (zero_extendhisi2): ... here.
27915         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27916         (extendqisi2): ... here.
27917         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27918         (extendhisi2): ... here.
27919         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27920         (ashlsi3): ... here.
27921         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27922         (lshrsi3): ... here.
27923         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27924         (ashrsi3): ... here.
27925         (consecutive add peephole): Remove.
27926         * config/mn10300/predicates.md (label_ref_operand): New.
27927         (int_mode_flags): New.
27928         (CCZN_comparison_operator): New.
27929
27930         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27931         (throughput_42_latency_43): New reservation.
27932         (mulsidi3, umulsidi3): New expanders.
27933         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
27934         the MDR register to allocation; separately allocate the low and
27935         high parts of the DImode result.
27936         (umulsidi3_internal): Similarly.
27937         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27938         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
27939         (udivsi3, umodsi3): Remove.
27940         (udivmodsi4, divmodsi4): New expanders.
27941         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
27942         (*divmodsi4): Simiarly.
27943         (ext_internal): New.
27944
27945         * config/mn10300/constraints.md ("z"): New constraint.
27946         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27947         (FIXED_REGISTERS): Don't fix MDR.
27948         (CALL_USED_REGSITERS): Reformat nicely.
27949         (REG_ALLOC_ORDER): Add MDR.
27950         (enum regclass): Add MDR_REGS.
27951         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27952         (IRA_COVER_CLASSES): Add MDR_REGS.
27953         (REGNO_REG_CLASS): Handle MDR_REG.
27954         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27955         (mn10300_register_move_cost): Likewise.
27956         * config/mn10300/mn10300.md (MDR_REG): New.
27957         (*movsi_internal): Handle moves to/from MDR_REGS.
27958
27959         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27960         POST_MODIFY.
27961         (mn10300_secondary_reload): Tidy combination reload classes.
27962         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27963         addresses for AM33.  Allow symbolic offsets for reg+imm.
27964         (mn10300_regno_in_class_p): New.
27965         (mn10300_legitimize_reload_address): New.
27966         * config/mn10300/mn10300.h (enum reg_class): Remove
27967         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27968         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
27969         SP_OR_GENERAL_REGS.
27970         (REG_CLASS_NAMES): Update to match.
27971         (REG_CLASS_CONTENTS): Likewise.
27972         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27973         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27974         (REGNO_IN_RANGE_P): Remove.
27975         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27976         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27977         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27978         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27979         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27980         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27981         (REGNO_GENERAL_P): New.
27982         (HAVE_POST_MODIFY_DISP): New.
27983         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27984         (LEGITIMIZE_RELOAD_ADDRESS): New.
27985         * config/mn10300/mn10300-protos.h: Update.
27986
27987         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27988         DATA_REGS for AM33 stack-pointer destination.
27989         (mn10300_preferred_output_reload_class): Likewise.
27990         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27991         into a form appropriate for ...
27992         (TARGET_SECONDARY_RELOAD): New.
27993         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27994         * config/mn10300/mn10300-protos.h: Update.
27995         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27996         reload_insi; use the "A" constraint for the scratch; handle AM33
27997         moves of sp to non-address registers.
27998
27999         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28000         (*movqi_internal): ... here.
28001         (*am33_movhi, *mn10300_movhi): Merge into...
28002         (*movhi_internal): ... here.
28003         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
28004         as the source/destination of moves from/to SP.
28005         (movsf): Only allow for AM33-2.
28006         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28007         any integer constant constraint.  Only allow for AM33-2.  Tidy
28008         all of the alternative outputs.
28009         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28010         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
28011         for MN103.
28012         (udivsi3, umodsi3): New patterns for MN103 only.
28013
28014 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
28015
28016         * doc/tm.texi.in: Spell out that a lack of register class unions
28017         can lead to ICEs.
28018         * doc/tm.texi: Regenerate.
28019
28020 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28021
28022         PR rtl-optimization/47337
28023         * dce.c (check_argument_store): New function.
28024         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
28025
28026         PR tree-optimization/47290
28027         * tree-eh.c (infinite_empty_loop_p): New function.
28028         (cleanup_empty_eh): Use it.
28029
28030 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
28031
28032         PR target/46997
28033         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28034         (a64_expand_widen_sum): Ditto.
28035         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28036         (vec_extract_evenodd_help): Ditto.
28037         (vec_extract_evenv4hi): Ditto.
28038         (vec_extract_oddv4hi): Ditto.
28039         (vec_extract_evenv2si): Ditto.
28040         (vec_extract_oddv2si): Ditto.
28041         (vec_extract_evenv2sf): Ditto.
28042         (vec_extract_oddv2sf): Ditto.
28043         (vec_pack_trunc_v4hi: Ditto.
28044         (vec_pack_trunc_v2si): Ditto.
28045         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28046         (vec_interleave_highv8qi): Ditto.
28047         (mix1_r): Ditto.
28048         (vec_extract_oddv8qi): Ditto.
28049         (vec_interleave_lowv4hi): Ditto.
28050         (vec_interleave_highv4hi): Ditto.
28051         (vec_interleave_lowv2si): Ditto.
28052         (vec_interleave_highv2si): Ditto.
28053
28054 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28055
28056         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28057         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28058         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
28059         (pa_c_mode_for_suffix): New.
28060         (TARGET_EXPAND_BUILTIN): Define.
28061         (TARGET_C_MODE_FOR_SUFFIX): Define.
28062         (pa_builtins): Define.
28063         (pa_init_builtins): Register __float128 type and init new support
28064         builtins.
28065         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28066         * config/pa/quadlib.c (_U_Qfcopysign): New.
28067
28068 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
28069
28070         PR middle-end/46894
28071         * explow.c (allocate_dynamic_stack_space): Do not assume more than
28072         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28073         are defined.
28074
28075 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28076
28077         PR tree-optimization/47179
28078         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28079         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28080
28081 2011-01-18  Richard Guenther  <rguenther@suse.de>
28082
28083         PR rtl-optimization/47216
28084         * emit-rtl.c: Include tree-flow.h.
28085         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28086         of replicating it with different semantics.
28087         * Makefile.in (emit-rtl.o): Adjust.
28088
28089 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28090
28091         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28092         (cortex_a9_dp): Handle neon types correctly.
28093
28094 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
28095
28096         PR rtl-optimization/47299
28097         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28098         subtarget.  Use normal multiplication if both operands are constants.
28099         * expmed.c (expand_widening_mult): Don't try to optimize constant
28100         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
28101         before using it.
28102
28103 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28104
28105         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
28106         spacing after 'e.g.', typos, comma, hyphenation.
28107
28108 2011-01-17  Richard Henderson  <rth@redhat.com>
28109
28110         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28111         (rx_restricted_mem_operand): New.
28112         (rx_shift_operand): Use register_operand.
28113         (rx_source_operand, rx_compare_operand): Likewise.
28114         * config/rx/rx.md (addsi3_flags): New expander.
28115         (adddi3): Rewrite as expander.
28116         (adc_internal, *adc_flags, adddi3_internal): New patterns.
28117         (subsi3_flags): New expander.
28118         (subdi3): Rewrite as expander.
28119         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28120
28121         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28122         (rx_init_builtins): Remove sat builtin.
28123         (rx_expand_builtin): Likewise.
28124         * config/rx/rx.md (ssaddsi3): New.
28125         (*sat): Rename from sat.  Represent the CC_REG input.
28126
28127         * config/rx/predicates.md (rshift_operator): New.
28128         * config/rx/rx.c (rx_expand_insv): Remove.
28129         * config/rx/rx-protos.h: Update.
28130         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
28131         operand to the canonical position.
28132         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28133         (*bitclr, *bitclr_in_memory): Similarly.
28134         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28135         (insv): Retain the zero_extract in the expansion.
28136
28137         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28138         (bswaphi2, bitinvert, revw): Likewise.
28139
28140         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28141         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28142         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28143         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28144         (bitset, bitset_in_memory): Likewise.
28145         (bitinvert, bitinvert_in_memory): Likewise.
28146         (bitclr, bitclr_in_memory): Likewise.
28147         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28148         (rx_strend, rx_cmpstrn): Likewise.
28149         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
28150         (bitop peep2 patterns): Remove.
28151
28152         * config/rx/rx.c (rx_match_ccmode): New.
28153         * config/rx/rx-protos.h: Update.
28154         * config/rx/rx.md (abssi2): Clobber, don't set flags.
28155         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28156         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28157         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28158         (fix_truncsfsi2, floatsisf2): Likewise.
28159         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28160         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28161         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28162         (*subsi3_flags, *xorsi3_flags): New.
28163
28164         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28165
28166         * config/rx/rx.c (rx_print_operand): Remove workaround for
28167         unsplit comparison operations.
28168
28169         * config/rx/rx.md (movsicc): Split after reload.
28170         (*movsicc): Merge *movsieq and *movsine via match_operator.
28171         (*stcc): New pattern.
28172
28173         * config/rx/rx.c (rx_float_compare_mode): Remove.
28174         * config/rx/rx.h (rx_float_compare_mode): Remove.
28175         * config/rx/rx.md (cstoresi4): Split after reload.
28176         (*sccc): New pattern.
28177
28178         * config/rx/predicates.md (label_ref_operand): New.
28179         (rx_z_comparison_operator): New.
28180         (rx_zs_comparison_operator): New.
28181         (rx_fp_comparison_operator): New.
28182         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28183         Validate that the flags are set properly for the comparison.
28184         (rx_gen_cond_branch_template): Remove.
28185         (rx_cc_modes_compatible): Remove.
28186         (mode_from_flags): New.
28187         (flags_from_code): Rename from flags_needed_for_conditional.
28188         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28189         (rx_select_cc_mode): Likewise.
28190         (rx_split_fp_compare): New.
28191         (rx_split_cbranch): New.
28192         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28193         (*cbranchsi4): Use match_operator and rx_split_cbranch.
28194         (*cbranchsf4): Similarly.
28195         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
28196         match_operator and rx_split_cbranch.
28197         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28198         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
28199         (*cmpsi): Rename from cmpsi.
28200         (*tstsi): Rename from tstsi.
28201         (*cmpsf): Rename from cmpsf; use CC_Fmode.
28202         (*conditional_branch): Rename from conditional_branch.
28203         (*reveresed_conditional_branch): Remove.
28204         (b<code>): Remove expander.
28205         * config/rx/rx-protos.h: Update.
28206
28207         * config/rx/rx.c (rx_compare_redundant): Remove.
28208         * config/rx/rx.md (cmpsi): Don't use it.
28209         * config/rx/rx-protos.h: Update.
28210
28211         * config/rx/rx-modes.def (CC_F): New mode.
28212         * config/rx/rx.c (rx_select_cc_mode): New.
28213         * config/rx/rx.h (SELECT_CC_MODE): Use it.
28214         * config/rx/rx-protos.h: Update.
28215
28216 2011-01-17  Richard Henderson  <rth@redhat.com>
28217
28218         * except.c (dump_eh_tree): Fix stray ; after for statement.
28219
28220 2011-01-17  Richard Guenther  <rguenther@suse.de>
28221
28222         PR tree-optimization/47313
28223         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28224         handling before copying the body.  Properly deal with
28225         by-reference result in SSA form.
28226
28227 2011-01-17  Ian Lance Taylor  <iant@google.com>
28228
28229         PR target/47219
28230         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28231         (struct_value_alias_set): Don't define.
28232         (sparc_option_override): Don't set sparc_sr_alias_set and
28233         struct_value_alias_set.
28234         (save_or_restore_regs): Use gen_frame_mem rather than calling
28235         set_mem_alias_set.
28236         (sparc_struct_value_rtx): Likewise.
28237
28238 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28239
28240         PR target/47318
28241         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28242         (_mm_maskstore_pd): Likewise.
28243         (_mm_maskload_ps): Likewise.
28244         (_mm_maskstore_ps): Likewise.
28245         (_mm256_maskload_pd): Change mask to __m256i.
28246         (_mm256_maskstore_pd): Likewise.
28247         (_mm256_maskload_ps): Likewise.
28248         (_mm256_maskstore_ps): Likewise.
28249
28250         * config/i386/i386-builtin-types.def: Updated.
28251         (ix86_expand_special_args_builtin): Likewise.
28252
28253         * config/i386/i386.c (bdesc_special_args): Update
28254         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28255         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28256         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28257         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28258
28259         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28260         Use <avxpermvecmode> on mask register.
28261         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28262
28263 2011-01-17  Olivier Hainque  <hainque@adacore.com>
28264             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28265             Eric Botcazou  <ebotcazou@adacore.com>
28266
28267         PR target/46655
28268         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28269         if <= USHRT_MAX in 32-bit mode.
28270
28271 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28272
28273         * doc/install.texi (Configuration, Specific): Wrap long
28274         lines in examples.  Allow line wrapping in long options
28275         and URLs where beneficial for PDF output.
28276
28277 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
28278
28279         * config/mips/mips.c (mips_classify_symbol): Don't return
28280         SYMBOL_PC_RELATIVE for nonlocal labels.
28281
28282 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28283
28284         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28285
28286 2011-01-15  Jan Hubicka  <jh@suse.cz>
28287
28288         PR tree-optimization/47276
28289         * ipa.c (function_and_variable_visibility): Do not try to mark alias
28290         declarations as needed.
28291
28292 2011-01-15  Martin Jambor  <mjambor@suse.cz>
28293
28294         * common.opt (fdevirtualize): New flag.
28295         * doc/invoke.texi (Option Summary): Document it.
28296         * opts.c (default_options_table): Add devirtualize flag.
28297         * ipa-prop.c (detect_type_change): Return immediately if
28298         devirtualize flag is not set.
28299         (detect_type_change_ssa): Likewise.
28300         (compute_known_type_jump_func): Likewise.
28301         (ipa_analyze_virtual_call_uses): Likewise.
28302
28303 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28304
28305         PR tree-optimization/45934
28306         PR tree-optimization/46302
28307         * ipa-prop.c (type_change_info): New type.
28308         (stmt_may_be_vtbl_ptr_store): New function.
28309         (check_stmt_for_type_change): Likewise.
28310         (detect_type_change): Likewise.
28311         (detect_type_change_ssa): Likewise.
28312         (compute_complex_assign_jump_func): Check for dynamic type change.
28313         (compute_complex_ancestor_jump_func): Likewise.
28314         (compute_known_type_jump_func): Likewise.
28315         (compute_scalar_jump_functions): Likewise.
28316         (ipa_analyze_virtual_call_uses): Likewise.
28317         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28318
28319 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28320
28321         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28322         * config/i386/i386.opt (msse5): New Alias.
28323
28324 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28325
28326         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28327         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28328         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28329         * config/sparc/sparc.h (CC1_SPEC): Likewise.
28330
28331 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28332
28333         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28334         -mcpu options.
28335         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28336         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28337         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28338         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
28339         Likewise.
28340         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
28341
28342 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28343
28344         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
28345
28346 2011-01-14  Mike Stump  <mikestump@comcast.net>
28347
28348         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
28349         * config/fr30/fr30.md: Likweise
28350         (movsi_push): Likewise.
28351         (movsi_pop): Likewise.
28352         (enter_func): Likewise.
28353         * config/moxie/moxie.md (movsi_push): Likewise.
28354         (movsi_pop): Likewise.
28355
28356 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28357
28358         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
28359         %{no_archive} %{exact_version}.
28360         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
28361         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
28362         %{no_archive} %{exact_version}.
28363         * config/mips/openbsd.h (LINK_SPEC): Likewise.
28364         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
28365         * config/mips/vxworks.h: Likewise.
28366
28367 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28368
28369         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
28370
28371 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28372
28373         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
28374         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
28375
28376 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28377
28378         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
28379         -nodefaultlib.
28380
28381 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28382
28383         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
28384         for mcpu not cpu.
28385         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
28386         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
28387         not cpu.
28388         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
28389         Don't handle -shlib.
28390
28391 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28392
28393         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
28394         (CC1_SPEC): Don't handle -profile.
28395
28396 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28397
28398         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
28399         * config/mips/mips.h (CC1_SPEC): Likewise.
28400
28401 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28402
28403         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
28404         * config/mips/mips.h (CC1_SPEC): Likewise.
28405
28406 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28407
28408         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
28409         * config/m32r/linux.h (LINK_SPEC): Likewise.
28410         * config/mips/linux.h (LINK_SPEC): Likewise.
28411         * config/mips/linux64.h (LINK_SPEC): Likewise.
28412         * config/sparc/linux.h (LINK_SPEC): Likewise.
28413         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
28414         LINK_SPEC): Likewise.
28415         * config/xtensa/linux.h (LINK_SPEC): Likewise.
28416
28417 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28418
28419         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
28420         %{version:-v}.
28421         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
28422
28423 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28424
28425         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
28426         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28427
28428 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28429
28430         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
28431
28432 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28433
28434         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
28435         supports -Bstatic/-Bdynamic.
28436         * configure: Regenerate.
28437
28438 2011-01-14  Jan Hubicka  <jh@suse.cz>
28439             Jack Howarth  <howarth@bromo.med.uc.edu>
28440
28441         PR target/46037
28442         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
28443         when checking debug_info_level. Test write_symbols instead of
28444         debug_hooks->var_location when setting flag_var_tracking_uninit.
28445
28446 2011-01-14  Richard Guenther  <rguenther@suse.de>
28447
28448         PR tree-optimization/47179
28449         * target.def (ref_may_alias_errno): New target hook.
28450         * targhooks.h (default_ref_may_alias_errno): Declare.
28451         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
28452         (default_ref_may_alias_errno): New function.
28453         * target.h (struct ao_ref_s): Declare.
28454         * tree-ssa-alias.c: Include target.h.
28455         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
28456         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
28457         (targhooks.o): Likewise.
28458         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
28459         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
28460
28461 2011-01-14  Richard Guenther  <rguenther@suse.de>
28462
28463         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
28464
28465 2011-01-14  Richard Guenther  <rguenther@suse.de>
28466
28467         PR tree-optimization/47280
28468         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
28469         return CFG changes.
28470         (tree_ssa_forward_propagate_single_use_vars): Deal with
28471         CFG changes from associate_plusminus.
28472
28473 2011-01-14  Richard Guenther  <rguenther@suse.de>
28474
28475         PR middle-end/47281
28476         Revert
28477         2011-01-11  Richard Guenther  <rguenther@suse.de>
28478
28479         PR tree-optimization/46076
28480         * tree-ssa.c (useless_type_conversion_p): Conversions from
28481         unprototyped to empty argument list function types are useless.
28482
28483 2011-01-14  Richard Guenther  <rguenther@suse.de>
28484
28485         PR tree-optimization/47286
28486         * tree-ssa-structalias.c (new_var_info): Register variables are global.
28487
28488 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28489
28490         PR middle-end/46823
28491         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
28492
28493 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
28494
28495         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
28496         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28497         * config/xtensa/xtensa.c (xtensa_libcall_value,
28498         xtensa_function_value_regno_p): New functions.
28499         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28500
28501 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
28502
28503         PR c++/47213
28504         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
28505         PE specific hook.
28506         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
28507         New function prototype.
28508         * config/i386/winnt.c (i386_pe_assemble_visibility):
28509         Warn only if attribute was specified by user.
28510
28511 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
28512
28513         PR target/47251
28514         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
28515         floating point.
28516         (floatunsdidf2_fcfidu): Ditto.
28517
28518 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28519
28520         * config/s390/s390.c (print_operand_address): Replace 'error' with
28521         'output_operand_lossage'.
28522         (print_operand): Likewise.
28523
28524 2011-01-13  Jeff Law  <law@redhat.com>
28525
28526         PR rtl-optimization/39077
28527         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
28528         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
28529         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
28530         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
28531         * gcse.c (prune_insertions_deletions): New function.
28532         (compute_pre_data): Use it.
28533
28534 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
28535
28536         PR debug/PR46973
28537         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
28538         static function.
28539         (prune_unused_types_mark): Use it.
28540
28541 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
28542
28543         PR rtl-optimization/45352
28544         * sel-sched.c: Update copyright years.
28545         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
28546         in the advancing loop when we have issued issue_rate insns.
28547
28548 2011-01-12  Richard Henderson  <rth@redhat.com>
28549
28550         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
28551         (TARGET_MD_ASM_CLOBBERS): New.
28552
28553         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
28554         (TARGET_DELEGITIMIZE_ADDRESS): New.
28555
28556         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
28557         (clzsi2, *bsch): New patterns.
28558
28559         * config/mn10300/mn10300.md (INT): New mode iterator.
28560         (*mov<INT>_clr): New pattern, and peep2 to generate it.
28561
28562         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
28563         flag_split_wide_types.
28564
28565         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
28566         (mn10300_trampoline_init): Rewrite without a template, an immediate
28567         load and a direct branch.
28568         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
28569
28570 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
28571
28572         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28573         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
28574         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
28575         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28576
28577 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
28578
28579         PR debug/47209
28580         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
28581         of type.
28582
28583 2011-01-12  Jan Hubicka  <jh@suse.cz>
28584
28585         PR driver/47244
28586         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
28587         (PLUGIN_COND_CLOSE): New macro.
28588         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
28589
28590 2011-01-12  Richard Guenther  <rguenther@suse.de>
28591
28592         PR lto/47259
28593         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
28594         register variables in a MEM_REF.
28595
28596 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
28597
28598         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
28599         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
28600         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
28601         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28602         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28603         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
28604         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
28605         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
28606         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
28607         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
28608         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
28609         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
28610         * config/gnu-user.h: New.  Copied from linux.h.
28611         (LINUX_TARGET_STARTFILE_SPEC): Rename to
28612         GNU_USER_TARGET_STARTFILE_SPEC.
28613         (LINUX_TARGET_ENDFILE_SPEC): Rename to
28614         GNU_USER_TARGET_ENDFILE_SPEC.
28615         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
28616         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
28617         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
28618         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
28619         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
28620         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
28621         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
28622         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
28623         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
28624         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
28625         * config/arm/linux-eabi.h (CC1_SPEC): Use
28626         GNU_USER_TARGET_CC1_SPEC.
28627         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
28628         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
28629         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
28630         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
28631         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
28632         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
28633         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
28634         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
28635
28636 2011-01-12  Richard Guenther  <rguenther@suse.de>
28637
28638         PR other/46946
28639         * doc/invoke.texi (ffast-math): Document it is turned on
28640         with -Ofast.
28641
28642 2011-01-12  Jan Hubicka  <jh@suse.cz>
28643
28644         PR tree-optimization/47233
28645         * opts.c (common_handle_option): Disable ipa-reference with profile
28646         feedback.
28647
28648 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
28649
28650         * c-parser.c (c_parser_objc_at_property_declaration): Improved
28651         error message.
28652
28653 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
28654
28655         * c-parser.c (c_lex_one_token): Updated and reindented some
28656         comments.  No changes in code.
28657
28658 2011-01-11  Ian Lance Taylor  <iant@google.com>
28659
28660         * godump.c (go_output_var): Don't output the variable if there is
28661         already a type with the same name.
28662
28663 2011-01-11  Ian Lance Taylor  <iant@google.com>
28664
28665         * godump.c (go_format_type): Don't generate float80.
28666
28667 2011-01-11  Richard Henderson  <rth@redhat.com>
28668
28669         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28670         declaration.  Rewrite for both speed and size.
28671         (mn10300_address_cost_1): Remove.
28672         (mn10300_register_move_cost): New.
28673         (mn10300_memory_move_cost): New.
28674         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
28675         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
28676         extensions, shifts, BSWAP, CLZ.
28677         (mn10300_wide_const_load_uses_clr): Remove.
28678         (TARGET_REGISTER_MOVE_COST): New.
28679         (TARGET_MEMORY_MOVE_COST): New.
28680         * config/mn10300/mn10300-protos.h: Update.
28681         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28682
28683         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28684         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28685         * config/mn10300/mn10300-protos.h: Update.
28686         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28687         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28688         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28689         (*test_int_bitfield, *test_byte_bitfield): Remove.
28690         (*bit_test, *subreg_bit_test): Remove.
28691         * config/mn10300/predicates.md (const_8bit_operand): Remove.
28692
28693         * config/mn10300/constraints.md ("c"): Rename from "A".
28694         ("A", "D"): New constraint letters.
28695         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28696         (fmssf4, fnmasf4, fnmssf4): Likewise.
28697
28698         * config/mn10300/mn10300.md (isa): New attribute.
28699         (enabled): New attribute.
28700
28701         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28702         (abssf2, negsf2): Define only for hardware fp.
28703         (sqrtsf2): Reformat.
28704         (addsf3, subsf3, mulsf3): Merge expander and insn.
28705
28706         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28707         (DEBUGGER_AUTO_OFFSET): Remove.
28708         (DEBUGGER_ARG_OFFSET): Remove.
28709
28710         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28711         Emit register stores with the same offsets as the hardware.
28712         (mn10300_store_multiple_operation): Don't check that the register
28713         save offsets are monotonic.
28714         * config/mn10300/mn10300-protos.h: Update.
28715
28716         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28717
28718         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28719         in terms of the value on the stack, not the MDR register.
28720
28721 2011-01-11  Jan Hubicka  <jh@suse.cz>
28722
28723         PR lto/45721
28724         PR lto/45375
28725         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28726         (symbol_alias_set_destroy, symbol_alias_set_contains,
28727         propagate_aliases_backward): Declare.
28728         * lto-streamer-out.c (struct sets): New sturcture.
28729         (trivally_defined_alias): New function.
28730         (output_alias_pair_p): Rewrite.
28731         (output_unreferenced_globals): Fix output of alias pairs.
28732         (produce_symtab): Likewise.
28733         * ipa.c (function_and_variable_visibility): Set weak alias destination
28734         as needed in lto.
28735         * varasm.c (symbol_alias_set_t): Remove.
28736         (symbol_alias_set_destroy): Export.
28737         (propagate_aliases_forward, propagate_aliases_backward): New functions
28738         based on ...
28739         (compute_visible_aliases): ... this one; remove.
28740         (trivially_visible_alias): New
28741         (trivially_defined_alias): New.
28742         (remove_unreachable_alias_pairs): Rewrite.
28743         (finish_aliases_1): Reorganize code checking if alias is defined.
28744         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28745         in LTO mode.
28746
28747 2011-01-11  Richard Guenther  <rguenther@suse.de>
28748
28749         PR tree-optimization/46076
28750         * tree-ssa.c (useless_type_conversion_p): Conversions from
28751         unprototyped to empty argument list function types are useless.
28752
28753 2011-01-11  Richard Guenther  <rguenther@suse.de>
28754
28755         PR middle-end/45235
28756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28757         volatile MEMs as MEM_READONLY_P.
28758
28759 2011-01-11  Richard Guenther  <rguenther@suse.de>
28760
28761         PR tree-optimization/47239
28762         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28763
28764 2011-01-11  Jeff Law  <law@redhat.com>
28765
28766         PR tree-optimization/47086
28767         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28768         IVs from statements that might throw.
28769
28770 2011-01-10  Jan Hubicka  <jh@suse.cz>
28771
28772         PR lto/45375
28773         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28774
28775 2011-01-10  Jan Hubicka  <jh@suse.cz>
28776
28777         PR lto/45375
28778         * profile.c (read_profile_edge_counts): Ignore profile inconistency
28779         when correcting profile.
28780
28781 2011-01-10  Jan Hubicka  <jh@suse.cz>
28782
28783         PR lto/46083
28784         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28785         DECL_FINI_PRIORITY.
28786         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28787         Restore DECL_FINI_PRIORITY.
28788
28789 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28790
28791         * doc/gimple.texi: Fix quoting of multi-word return values in
28792         @deftypefn statements.  Ensure presence of return value.  Wrap
28793         overlong @deftypefn lines.
28794         (is_gimple_operand, is_gimple_min_invariant_address): Remove
28795         descriptions of removed functions.
28796         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28797         of multi-word return value in @deftypefn statement.
28798
28799 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28800
28801         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28802         (Conditional Expressions, Logical Operators)
28803         (Statement and operand traversals): Do not indent smallexample
28804         code.  Fix duplicate function argument in example.
28805
28806 2011-01-10  Jeff Law  <law@redhat.com>
28807
28808         PR tree-optimization/47141
28809         * ipa-split.c (split_function): Handle case where we are
28810         returning a value and the return block has a virtual operand phi.
28811
28812 2011-01-10  Jan Hubicka  <jh@suse.cz>
28813
28814         PR tree-optimization/47234
28815         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28816         (pass_feedback_split_functions): Declare.
28817         * passes.c (init_optimization_passes): Add ipa-split as subpass of
28818         tree-profile.
28819         * ipa-split.c (gate_split_functions): Update comments; disable
28820         split-functions for profile_arc_flag and branch_probabilities.
28821         (gate_feedback_split_functions): New function.
28822         (execute_feedback_split_functions): New function.
28823         (pass_feedback_split_functions): New global var.
28824
28825 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
28826
28827         PR lto/46760
28828         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28829         calling gimple_call_set_cannot_inline.
28830
28831 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
28832
28833         * config/darwin-sections.def: Remove unused section.
28834
28835 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
28836
28837         PR c++/47218
28838         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28839
28840 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
28841
28842         PR objc/47232
28843         * c-parser.c (c_parser_declaration_or_fndef): Improved
28844         error message.
28845
28846 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
28847
28848         * config/i386/winnt.c (i386_pe_start_function): Make sure
28849         to switch back to function's section.
28850
28851 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
28852
28853         PR gcc/46902
28854         PR testsuite/46912
28855         * plugin.c: Move include of dlfcn.h from here...
28856         * system.h: ... to here.
28857
28858 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28859
28860         * doc/cpp.texi (C++ Named Operators): Fix markup for header
28861         file name.
28862         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28863         two extra empty pages in PDF output.
28864
28865 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
28866
28867         PR objc/47078
28868         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28869         for error recovery purposes behave as if it was not specified so
28870         that the default type is usd.
28871
28872 2011-01-07  Jan Hubicka  <jh@suse.cz>
28873
28874         PR tree-optmization/46469
28875         * ipa.c (function_and_variable_visibility): Clear needed flags on
28876         nodes with external decls; handle weakrefs merging correctly.
28877
28878 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
28879
28880         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28881         not false.
28882
28883 2011-01-07  Jan Hubicka  <jh@suse.cz>
28884
28885         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28886         and no longer claim that gold is required for linker plugin.
28887         * configure: Regenerate.
28888         * gcc.c (PLUGIN_COND): New macro.
28889         (LINK_COMMAND_SPEC): Use it.
28890         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28891         * config.in (HAVE_LTO_PLUGIN): New.
28892         * configure.ac (--with-lto-plugin): New parameter; autodetect
28893         HAVE_LTO_PLUGIN.
28894
28895 2011-01-07  Jan Hubicka  <jh@suse.cz>
28896
28897         PR tree-optimization/46367
28898         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28899         when we can update original.
28900         (cgraph_mark_inline_edge): Sanity check.
28901         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28902
28903 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28904
28905         * config/spu/spu.h (ASM_COMMENT_START): Define.
28906
28907 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28908
28909         PR driver/42445
28910         * gcc.c (%>S): New.
28911         (SWITCH_KEEP_FOR_GCC): Likewise.
28912         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28913         (do_spec_1): Handle "%>".
28914
28915         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28916
28917 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
28918
28919         PR target/47201
28920         * config/i386/i386.c (ix86_delegitimize_address): If
28921         simplify_gen_subreg fails, return orig_x.
28922
28923         PR bootstrap/47187
28924         * value-prof.c (gimple_stringop_fixed_value): Handle
28925         lhs of the call properly.
28926
28927 2011-01-07  Jan Hubicka  <jh@suse.cz>
28928
28929         PR lto/45375
28930         * lto-opt.c (lto_reissue_options): Set flag_shlib.
28931
28932 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28933
28934         * target.def (function_switched_text_sections): New hook.
28935         * doc/tm.texi: Regenerated.
28936         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28937         * final.c (default_function_switched_text_sections): New.
28938         (final_scan_insn): Call function_switched_text_sections when a
28939         mid-function section change occurs.
28940         * output.h (default_function_switched_text_sections): Declare.
28941         * config/darwin-protos.h (darwin_function_switched_text_sections):
28942         Likewise.
28943         * config/darwin.c (darwin_function_switched_text_sections): New.
28944         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28945
28946 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
28947
28948         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
28949         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
28950         the secondary code fragment when outputting for DWARF == 2.
28951
28952 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
28953
28954         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28955         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28956         Remove.
28957         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28958         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28959
28960 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28961
28962         PR debug/46704
28963         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28964         when it is not empty.
28965
28966 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
28967
28968         Bobcat Enablement
28969         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28970         (case ${target}): Add btver1.
28971         * config/i386/driver-i386.c (host_detect_local_cpu): Let
28972         -march=native recognize btver1 processors.
28973         * config/i386/i386-c.c (ix86_target_macros_internal): Add
28974         btver1 def_and_undef
28975         * config/i386/i386.c (struct processor_costs btver1_cost): New
28976         btver1 cost table.
28977         (m_BTVER1): New definition.
28978         (m_AMD_MULTIPLE): Includes m_BTVER1.
28979         (initial_ix86_tune_features): Add btver1 tune.
28980         (processor_target_table): Add btver1 entry.
28981         (static const char *const cpu_names): Add btver1 entry.
28982         (software_prefetching_beneficial_p): Add btver1.
28983         (ix86_option_override_internal): Add btver1 instruction sets.
28984         (ix86_issue_rate): Add btver1.
28985         (ix86_adjust_cost): Add btver1.
28986         * config/i386/i386.h (TARGET_BTVER1): New definition.
28987         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28988         (enum processor_type): Add PROCESSOR_BTVER1.
28989         * config/i386/i386.md (define_attr "cpu"): Add btver1.
28990
28991 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28992
28993         PR target/43309
28994         * config/i386/i386.c (legitimize_tls_address)
28995         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28996         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28997         (tls_initial_exec_64_sun): New pattern.
28998
28999 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
29000
29001         * doc/invoke.texi (Overall Options): Improve wording and markup
29002         of the description of -wrapper.
29003
29004 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29005
29006         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29007         rdynamic, threads): New Driver options.
29008
29009 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29010
29011         PR target/38118
29012         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29013         if coming from .tdata.
29014         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29015
29016 2011-01-06  Jan Hubicka  <jh@suse.cz>
29017
29018         PR lto/47188
29019         * collect2.c (main): Do not enable LTOmode when plugin is active.
29020
29021 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29022
29023         PR other/45915
29024         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29025         --version output if supported.
29026         * configure: Regenerate.
29027
29028 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29029
29030         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29031         Driver options.
29032
29033 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
29034
29035         PR c/47150
29036         * c-convert.c (convert): When converting a complex expression
29037         other than COMPLEX_EXPR to a different complex type, ensure
29038         c_save_expr is called instead of save_expr, unless in_late_binary_op.
29039         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29040         when converting COMPLEX_TYPE.
29041
29042 2011-01-06  Ira Rosen  <irar@il.ibm.com>
29043
29044         PR tree-optimization/47139
29045         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29046         only the last reduction value is used outside the loop.  Update
29047         documentation.
29048
29049 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
29050
29051         * config/rtems.opt: New.
29052         * config.gcc (*-*-rtems*): Use rtems.opt.
29053
29054 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
29055
29056         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29057         processors do not support 3DNow instructions.
29058
29059 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29060
29061         * config/spu/spu.c (spu_option_override): Set parameter
29062         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29063
29064 2011-01-05  Jan Hubicka  <jh@suse.cz>
29065
29066         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29067         at the command line.
29068
29069 2011-01-05  Martin Jambor  <mjambor@suse.cz>
29070
29071         PR lto/47162
29072         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29073         deltas on streamed outgoing edges.
29074         (output_node_opt_summary): Output info for outgoing edges only when
29075         the node is in new parameter set.
29076         (output_cgraph_opt_summary): New parameter set, passed to the two
29077         aforementioned functions.  Update its forward declaration and its
29078         callee too.
29079
29080 2011-01-05  Tom Tromey  <tromey@redhat.com>
29081
29082         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29083         operator to c_finish_omp_atomic.
29084         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29085         (build_unary_op): Update.
29086         (build_modify_expr): Update.
29087         (build_asm_expr): Update.
29088
29089 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29090
29091         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29092         newly inserted insns.
29093         (pad_bb): Likewise.
29094         (spu_emit_branch_hint): Likewise.
29095         (insert_hbrp_for_ilb_runout): Likewise.
29096         (spu_machine_dependent_reorg): Call df_finish_pass after
29097         schedule_insns returns.
29098
29099 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29100
29101         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29102
29103 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29104
29105         PR tree-optimization/47005
29106         * tree-sra.c (struct access): Add 'non_addressable' bit.
29107         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29108         (decide_one_param_reduction): Return 0 if the parameter is passed by
29109         reference and one of the accesses in the group is non_addressable.
29110
29111 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29112
29113         PR tree-optimization/47056
29114         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29115         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
29116         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
29117
29118 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29119
29120         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29121         initializer.  Skip view conversions from aggregate types.
29122
29123 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
29124
29125         PR bootstrap/47055
29126         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29127
29128 2011-01-04  Philipp Thomas  <pth@suse.de>
29129
29130         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29131         obvious typo.
29132
29133 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29134
29135         * function.c (thread_prologue_and_epilogue_insns): Do not crash
29136         on empty epilogue sequences.
29137
29138 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
29139
29140         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29141         non-static): New Driver options.
29142
29143 2011-01-04  Jie Zhang  <jie@codesourcery.com>
29144
29145         PR driver/47137
29146         * gcc.c (default_compilers[]): Set combinable field to 0
29147         for all assembly languages.
29148
29149 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
29150
29151         * config/mips/loongson3a.md: New file.
29152         * config/mips/mips.md: Include loongson3a.md.
29153         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29154         TUNE_LOONGSON_3A.
29155
29156 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29157
29158         PR middle-end/47017
29159         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29160         instead of convert_memory_address_addr_space on the base expression.
29161
29162 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29163
29164         * config/spu/spu.c (spu_option_override): Update error text
29165         for bad -march= / -mtune= values.
29166
29167 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29168
29169         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29170         if branch-hint optimization will be performed.
29171
29172 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29173
29174         PR tree-optimization/47148
29175         * ipa-split.c (split_function): Convert arguments to
29176         DECL_ARG_TYPE if possible.
29177
29178         PR tree-optimization/47155
29179         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29180         when computing uns.
29181
29182         PR rtl-optimization/47157
29183         * combine.c (try_combine): If undobuf.other_insn becomes
29184         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29185         and set *new_direct_jump_p too.
29186
29187 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
29188
29189         PR tree-optimization/47021
29190         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29191
29192 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29193
29194         * gcc.c (process_command): Update copyright notice dates.
29195         * gcov.c (print_version): Likewise.
29196         * gcov-dump.c (print_version): Likewise.
29197         * mips-tfile.c (main): Likewise.
29198         * mips-tdump.c (main): Likewise.
29199
29200 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29201
29202         PR tree-optimization/46801
29203         * tree-sra.c (type_internals_preclude_sra_p): Check whether
29204         aggregate fields start at byte boundary instead of the bit-field flag.
29205
29206 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29207
29208         PR driver/47137
29209         * gcc.c (main): Revert revision 168407.
29210
29211 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29212
29213         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29214
29215 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29216
29217         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29218         vector optab to expand vector/scalar shift, update gimple to vector.
29219
29220 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29221
29222         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29223         a thunk.
29224
29225 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29226
29227         PR tree-optimization/46984
29228         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29229         HOST_WIDE_INT.
29230         (cgraph_create_indirect_edge): Fixed line length.
29231         (cgraph_indirect_call_info): Declare.
29232         (cgraph_make_edge_direct) Update declaration.
29233         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29234         (cgraph_create_indirect_edge): Use it.
29235         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
29236         callees.
29237         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29238         the new thunk_delta representation.
29239         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29240         HOST_WIDE_INT.
29241         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29242         (ipa_read_indirect_edge_info): Likewise.
29243         * lto-cgraph.c (output_edge_opt_summary): New function.
29244         (output_node_opt_summary): Call it on all outgoing edges.
29245         (input_edge_opt_summary): New function.
29246         (input_node_opt_summary): Call it on all outgoing edges.
29247
29248 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
29249
29250         PR driver/47137
29251         * gcc.c (main): Don't check have_o when settting combine_inputs.
29252
29253 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
29254
29255         * regrename.c: Add general comment describing the pass.
29256         (struct du_head): Remove 'length' field.
29257         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29258         (regrename_optimize): Do not sort chains.  Rework comments, add others.
29259         Force renaming to the preferred class (if any) in the first pass and do
29260         not consider registers that belong to it in the second pass.
29261         (create_new_chain): Do not set 'length' field.
29262         (scan_rtx_reg): Likewise.
29263
29264 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
29265
29266         PR tree-optimization/47140
29267         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29268         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29269         to bit_value_binop.
29270
29271         PR rtl-optimization/47028
29272         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29273         parm_birth_insn instead of at the beginning of first bb.
29274
29275 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
29276
29277         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29278         Remove the word "see" before "@pxref".
29279         * doc/rtl.texi: Remove the word "see" before "@pxref".
29280
29281 2011-01-01  Jan Hubicka  <jh@suse.cz>
29282
29283         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29284         memory.
29285
29286 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
29287
29288         PR target/38662
29289         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29290
29291 \f
29292 Copyright (C) 2011 Free Software Foundation, Inc.
29293
29294 Copying and distribution of this file, with or without modification,
29295 are permitted in any medium without royalty provided the copyright
29296 notice and this notice are preserved.