OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
2
3         * config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
4         throughout file.
5
6 2011-09-27  Sriraman Tallam  <tmsriram@google.com>
7
8         * output.h (SECTION_EXCLUDE): New macro.
9         * varasm.c (default_elf_asm_named_section): Check for
10         SECTION_EXCLUDE.        
11
12 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13
14         * fwprop.c (forward_propagate_and_simplify): After checking
15         reg/subreg combinations, check whether the modes are the same.
16
17 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
18             Richard Sandiford  <rdsandiford@googlemail.com>
19
20         * config/mips/mips.c (mips_add_cfa_restore): New function.
21         (mips16e_save_restore_reg): Use it.
22         (mips_restore_reg): Likewise.  Split double FPRs for
23         REG_CFA_RESTORE notes.
24
25 2011-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
26
27         PR middle-end/50386
28         PR middle-end/50326
29         * tree-sra.c (build_ref_for_model): Use the type of the field as
30         the type of the COMPONENT_REF.
31
32 2011-09-27  Jeff Law  <law@redhat.com>
33
34         * ifcvt.c (cheap_bb_rtx_cost_p): Add SCALE argument.  Scale
35         non-jumping insns by REG_BR_PROB_BASE and the maximum cost
36         by SCALE.
37         (find_if_case_1): Use the probability of the THEN clause when
38         determining if speculation is profitable.
39         (find_if_case_2): Similarly for the ELSE clause.
40
41 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
42
43         * common.opt: Add -foptimize-strlen option.
44         * Makefile.in (OBJS): Add tree-ssa-strlen.o.
45         (tree-sssa-strlen.o): Add dependencies.
46         * opts.c (default_options_table): Enable -foptimize-strlen
47         by default at -O2 if not -Os.
48         * passes.c (init_optimization_passes): Add pass_strlen
49         after pass_object_sizes.
50         * timevar.def (TV_TREE_STRLEN): New timevar.
51         * params.def (PARAM_MAX_TRACKED_STRLENS): New parameter.
52         * tree-pass.h (pass_strlen): Declare.
53         * tree-ssa-strlen.c: New file.
54         * c-decl.c (merge_decls): If compatible stpcpy prototype
55         is seen, set implicit_built_in_decls[BUILT_IN_STPCPY].
56
57 2011-09-27  Tom de Vries  <tom@codesourcery.com>
58
59         PR middle-end/43864
60         * tree-ssa-tail-merge.c: New file.
61         (struct same_succ_def): Define.
62         (same_succ, const_same_succ): New typedef.
63         (struct bb_cluster_def): Define.
64         (bb_cluster, const_bb_cluster): New typedef.
65         (struct aux_bb_info): Define.
66         (BB_SIZE, BB_SAME_SUCC, BB_CLUSTER, BB_VOP_AT_EXIT): Define.
67         (gvn_uses_equal): New function.
68         (same_succ_print, same_succ_print_traverse, update_dep_bb)
69         (stmt_update_dep_bb, local_def, same_succ_hash)
70         (inverse_flags, same_succ_equal, same_succ_alloc, same_succ_delete)
71         (same_succ_reset): New function.
72         (same_succ_htab, same_succ_edge_flags)
73         (deleted_bbs, deleted_bb_preds): New var.
74         (debug_same_succ): New function.
75         (worklist): New var.
76         (print_worklist, add_to_worklist, find_same_succ_bb, find_same_succ)
77         (init_worklist, delete_worklist, delete_basic_block_same_succ)
78         (same_succ_flush_bbs, purge_bbs, update_worklist): New function.
79         (print_cluster, debug_cluster, update_rep_bb)
80         (add_bb_to_cluster, new_cluster, delete_cluster): New function.
81         (all_clusters): New var.
82         (alloc_cluster_vectors, reset_cluster_vectors, delete_cluster_vectors)
83         (merge_clusters, set_cluster): New function.
84         (gimple_equal_p, gsi_advance_bw_nondebug_nonlocal, find_duplicate)
85         (same_phi_alternatives_1, same_phi_alternatives, bb_has_non_vop_phi)
86         (deps_ok_for_redirect_from_bb_to_bb, deps_ok_for_redirect)
87         (find_clusters_1, find_clusters): New function.
88         (update_vuses, vop_phi, vop_at_entry, replace_block_by): New function.
89         (update_bbs): New var.
90         (apply_clusters): New function.
91         (update_debug_stmt, update_debug_stmts): New function.
92         (tail_merge_optimize): New function.
93         tree-pass.h (tail_merge_optimize): Declare.
94         * tree-ssa-pre.c (execute_pre): Use tail_merge_optimize.
95         * Makefile.in (OBJS-common): Add tree-ssa-tail-merge.o.
96         (tree-ssa-tail-merge.o): New rule.
97         * opts.c (default_options_table): Set OPT_ftree_tail_merge by default at
98         OPT_LEVELS_2_PLUS.
99         * tree-ssa-sccvn.c (vn_valueize): Move to ...
100         * tree-ssa-sccvn.h (vn_valueize): Here.
101         * timevar.def (TV_TREE_TAIL_MERGE): New timevar.
102         * common.opt (ftree-tail-merge): New switch.
103         * params.def (PARAM_MAX_TAIL_MERGE_COMPARISONS)
104         (PARAM_MAX_TAIL_MERGE_ITERATIONS): New parameter.
105         * doc/invoke.texi (Optimization Options, -O2): Add -ftree-tail-merge.
106         (-ftree-tail-merge, max-tail-merge-comparisons)
107         (max-tail-merge-iterations): New item.
108
109 2011-09-27  Jan Hubicka  <jh@suse.cz>
110
111         * ipa-inline-analysis.c (MAX_TIME): Reduce to avoid overflows.
112
113 2011-09-27  Jan Hubicka  <jh@suse.cz>
114
115         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle parameters
116         passed by reference; handle loads from non-SSA scalars and update comments.
117
118 2011-09-27  Bernd Schmidt  <bernds@codesourcery.com>
119
120         PR rtl-optimization/50249
121         * reload1.c (reload_reg_reaches_end_p): Accept a reloadnum argument
122         instead of opnum and type.  All callers changed.  Remove useless
123         declaration.
124         Search forward for other reloads of the same type for the same operand
125         using the same register; if any are found, return false.
126         (reload_regs_reach_end_p): Same argument changes; all callers changed.
127
128 2011-09-27  Andi Kleen  <ak@linux.intel.com>
129             Jan Hubicka  <jh@suse.cz>
130
131         * doc/invoke.texi (ffat-lto-objects): Document.
132         * toplev.c (compile_file): Do not output assembly when doing slim lto;
133         Output __gnu_slim_lto when doing slim lto.
134         * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto.
135         (cgraph_optimize): Return early when doing slim lto.
136         * opts.c (finish_options): Complain about lack of linker plugin
137         when doing slim lto.
138         * common.opt (ffat-lto-objects): New.
139
140 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
141
142         * ipa-inline-analysis.c (predicate_probability): Avoid comparison
143         between signed and unsigned.
144
145 2011-09-27  Ira Rosen  <ira.rosen@linaro.org>
146
147         * tree-vect-stmts.c (vectorizable_type_demotion): Handle basic block
148         vectorization.
149         (vectorizable_type_promotion): Likewise.
150         (vect_analyze_stmt): Call vectorizable_type_demotion and
151         vectorizable_type_promotion for basic blocks.
152         (supportable_widening_operation): Don't assume loop vectorization.
153         * tree-vect-slp.c (vect_build_slp_tree): Allow multiple types for
154         basic blocks.  Update vectorization factor for basic block
155         vectorization.
156         (vect_analyze_slp_instance): Allow multiple types for basic block
157         vectorization.  Recheck unrolling factor after construction of SLP
158         instance.
159
160 2011-09-27  Richard Guenther  <rguenther@suse.de>
161
162         * tree-object-size.c (compute_object_sizes): Fix dumping of
163         folded statement.
164
165 2011-09-27  Richard Guenther  <rguenther@suse.de>
166
167         PR tree-optimization/50363
168         * tree-ssa-pre.c (create_expression_by_pieces): Handle
169         pointer conversions in POINTER_PLUS_EXPRs properly.
170
171 2011-09-27  Richard Sandiford  <richard.sandiford@linaro.org>
172
173         * config/arm/neon.md (neon_vget_highv16qi, neon_vget_highv8hi)
174         (neon_vget_highv4si, neon_vget_highv4sf, neon_vget_highv2di)
175         (neon_vget_lowv16qi, neon_vget_lowv8hi, neon_vget_lowv4si)
176         (neon_vget_lowv4sf, neon_vget_lowv2di): Turn into define_expands
177         that produce subreg moves.  Define using VQX iterators.
178
179 2011-09-27  Georg-Johann Lay  <avr@gjlay.de>
180
181         * config/avr/avr.md (ashrqi3): Split alternative "n"
182         into its remaining parts C03, C04, C05, C06, C07 and describe
183         impact in CC by attribute "cc" appropriately.
184         * config/avr/avr.c (notice_update_cc): Clean-up: Don't patch CC0
185         by digging RTX.
186
187 2011-09-27  Jakub Jelinek  <jakub@redhat.com>
188
189         * rtl.h (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
190         from 3 x MAX_MACHINE_MODE.
191         (CONSTM1_RTX): Define.
192         * emit-rtl.c (const_tiny_rtx): Change into array of 4 x MAX_MACHINE_MODE
193         from 3 x MAX_MACHINE_MODE.
194         (gen_rtx_CONST_VECTOR): Use CONSTM1_RTX if all inner constants are
195         CONSTM1_RTX.
196         (init_emit_once): Initialize CONSTM1_RTX for MODE_INT and
197         MODE_VECTOR_INT modes.
198         * simplify-rtx.c (simplify_binary_operation_1) <case IOR, XOR, AND>:
199         Optimize if one operand is CONSTM1_RTX.
200         * config/i386/i386.c (ix86_expand_sse_movcc): Optimize mask ? -1 : x
201         into mask | x.
202
203 2011-09-26  David S. Miller  <davem@davemloft.net>
204
205         * config/sparc/sparc.md (edge{8,16,32}{,l}): Return Pmode.
206         (fcmp{le,ne,gt,eq}{16,32}): Likewise.
207         * config/sparc/visintrin.h: Update edge and pixel-compare
208         intrinsics to return 'long' instead of 'int'.
209         * doc/extend.texi: Update documentation to match.
210         * config/sparc/sparc.c (eligible_for_return_delay): When leaf or
211         flat, allow any instruction.  Otherwise, when V9 allow parallels
212         which consist only of sets to registers outside of %o0 to %o5.
213         (sparc_vis_init_builtins): Update VIS builtin types for edge
214         and pixel-compare.
215
216         * config/sparc/sparc.c (sparc_conditional_register_usage): When VIS
217         is enabled, mark %gsr as global.
218         * config/sparc/sparc.md (UNSPEC_WRGSR): Delete.
219         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus): Don't wrap in an unspec.
220
221         * config/sparc/sparc-c.c: New file implementing sparc_target_macros,
222         which will now define __VIS and __VIS__ when -mvis is enabled.
223         * config/sparc/t-sparc: Likewise.
224         * config.gcc: Add sparc-c.o to c_target_objs and cxx_target_objs,
225         and add t-sparc to tmake_file for all sparc targets.
226         * config/sparc/sparc-protos.h (sparc_target_macros): Declare.
227         * config/sparc/sparc.h (TARGE_CPU_CPP_BUILTINS): Call it.
228
229         * config/sparc/sparc.c (sparc_vis_init_builtins): Add explicit
230         builtins for VIS vector addition and subtraction.
231         * config/sparc/visintrin.h (__vis_fpadd16, __vis_fpadd16s,
232         __vis_fpadd32, __vis_fpadd32s, __vis_fpsub16, __vis_fpsub16s,
233         __vis_fpsub32, __vis_fpsub32s): New.
234         * doc/extend.texi: Document new VIS intrinsics.
235
236 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
237
238         * config/avr/avr.md (peephole casesi+2): Use -1 instead of 65536.
239         * config/avr/avr.c (avr_out_compare): Print shorter sequence for
240         EQ/NE comparisons against +/-1 in the case of unused-after,
241         non-ld-regs target.
242
243 2011-09-26  Jakub Jelinek  <jakub@redhat.com>
244
245         * gimple-fold.c (gimplify_and_update_call_from_tree): Set
246         gctx.into_ssa after push_gimplify_context.
247
248         * gimple.c (gimple_build_call_valist): New function.
249         * gimple.h (gimple_build_call_valist): New prototype.
250         * tree-ssa-propagate.c (finish_update_gimple_call): New function.
251         (update_gimple_call): Likewise.
252         (update_call_from_tree): Use finish_update_gimple_call.
253         * tree-ssa-propagate.h (update_gimple_call): New prototype.
254
255 2011-09-26  Richard Guenther  <rguenther@suse.de>
256
257         PR tree-optimization/50472
258         * gimple-fold.c (fold_const_aggregate_ref_1): Do not fold
259         volatile references.
260
261 2011-09-26  Bingfeng Mei <bmei@broadcom.com>
262
263         * doc/tm.texi: Correct documentation for TARGET_ADDR_SPACE_SUBSET_P.
264         * target.def: (addr_space_subset_p): Likewise.
265
266 2011-09-26  Tom de Vries  <tom@codesourcery.com>
267
268         * tree-ssa-alias.h (pt_solution_singleton_p): Declare.
269         * tree-ssa-structalias.c (pt_solution_singleton_p): New function.
270         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Set points-to solution
271         of new var.
272
273 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
274
275         PR target/50465
276         * config/avr/avr-protos.h (output_reload_insisf): Don't pass insn.
277         * config/avr/avr.md (*reload_insi, *reload_insf): Change call to
278         output_reload_insisf.
279         (adjust_len): Set default to "no".
280         Remove alternative "yes".  Add alternatives: "mov8", "mov16",
281         "mov32", "ashlqi", "ashrqi", "lshrqi", "ashlhi", "ashrhi",
282         "lshrhi", "ashlsi, "ashrsi", "lshrsi".
283         (*movqi, *movhi, *movsi, *ashlqi3, ashlhi3, ashlsi3,
284         *ashlhi3_const, *ashlsi3_const, ashrqi3, ashrhi3, ashrsi3,
285         *ashrhi3_const, *ashrsi3_const, *lshrqi3, lshrhi3, *lshrhi3_const,
286         *lshrsi3_const): Set attribute "adjust_len".
287         * config/avr/avr.c (output_reload_insisf): Remove parameter "insn".
288         (output_movsisf): Don't pass insn to output_reload_insisf.
289         (adjust_insn_length): Handle new alternatives to adjust_len.
290         Remove handling of ADJUST_LEN_YES.  Clean-up code.
291
292 2011-09-26  Eric Botcazou  <ebotcazou@adacore.com>
293
294         * ifcvt.c (noce_try_cmove_arith): Use may_trap_or_fault_p in lieu of
295         may_trap_p to detect loads that may trap of fault.
296
297 2011-09-26  Georg-Johann Lay  <avr@gjlay.de>
298
299         * config/avr/avr-protos.h (output_reload_inhi): Change prototype.
300         * config/avr/avr.md (adjust_len): Add "reload_in16" alternative.
301         (*reload_inhi): Use it.  Adapt call to output_reload_inhi to new
302         prototype.
303         (*movhi): Split constraint alternative "r,rL" into "r,r" and "r,L".
304         * config/avr/avr.c: Rename output_reload_insisf_1 to
305         output_reload_in_const.
306         (avr_popcount_each_byte): Handle SFmode, too.
307         (output_reload_in_const): Change so it can handle HI loads, too.
308         Use avr_popcount_each_byte to work out if scratch register must be
309         created on the fly.
310         (output_reload_inhi): Rewrite using output_reload_in_const and...
311         (output_movhi): ...use it to print constants' loads.
312         (adjust_insn_length): New case ADJUST_LEN_RELOAD_IN16. Cleanup code.
313
314 2011-09-25  David S. Miller  <davem@davemloft.net>
315
316         * config/sparc/constraints.md (C, P, Z): New constraints for
317         const_doube, const_int, and const_vector "all ones" values.
318         Make unused constraint letters comment match reality.
319         * config/sparc/predicates.md (const_all_ones_operand,
320         register_or_zero_or_all_ones_operand): New predicates.
321         * config/sparc/sparc.c (sparc_expand_move): Allow all ones
322         as well as zero constants when VIS.
323         (sparc_legitimate_constant_p): Likewise.
324         * config/sparc/sparc.md (movsi_insn): Add fones alternative.
325         (movsf_insn): Likewise
326         (movdi_insn_sp64): Add fone alternative.
327         (movdf_insn_sp32_v9): Likewise.
328         (movdf_insn_sp64): Likewise.
329
330         * configure.ac: Add feature check to make sure the assembler
331         supports the FMAF, HPC, and VIS 3.0 instructions found on
332         Niagara-3 and later cpus.
333         * configure: Rebuild.
334         * config.in: Likewise.
335         * config/sparc/sparc.opt: New option '-mfmaf'.
336         * config/sparc/sparc.md: Add float fused multiply-add patterns.
337         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): New macro.
338         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Use it, as needed.
339         * config/sparc/sol2.h (ASM_CPU32_DEFAULT_SPEC,
340         ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC): Likewise.
341         * config/sparc/sparc.c (sparc_option_override): Turn MASK_FMAF on
342         by default for Niagara-3 and later.  Turn it off if TARGET_FPU is
343         disabled.
344         (sparc_rtx_costs): Handle 'FMA'.
345         * doc/invoke.texi: Document -mfmaf.
346
347 2011-09-25  Jakub Jelinek  <jakub@redhat.com>
348
349         * tree-ssa-structalias.c (intra_create_variable_infos): Treat
350         TYPE_RESTRICT REFERENCE_TYPE parameters like restricted
351         DECL_BY_REFERENCE parameters.
352
353 2011-09-25  Eric Botcazou  <ebotcazou@adacore.com>
354
355         * tree-eh.c (cleanup_empty_eh): Allow a call to __builtin_stack_restore
356         if there is no outgoing edge.
357
358         * tree-scalar-evolution.c (simple_iv): Accept all kinds of pointer and
359         integral types.
360
361 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
362
363         * tree-vect-slp.c (vect_slp_analyze_bb_1): Split out core part
364         of vect_analyze_bb here.
365         (vect_analyze_bb): Loop over vector sizes calling vect_analyze_bb_1.
366
367 2011-09-25  Ira Rosen  <ira.rosen@linaro.org>
368
369         * tree-data-ref.c (dr_analyze_innermost): Add new argument.
370         Allow not simple iv if analyzing basic block.
371         (create_data_ref): Update call to dr_analyze_innermost.
372         (stmt_with_adjacent_zero_store_dr_p, ref_base_address): Likewise.
373         * tree-loop-distribution.c (generate_memset_zero): Likewise.
374         * tree-predcom.c (find_looparound_phi): Likewise.
375         * tree-data-ref.h (dr_analyze_innermost): Add new argument.
376
377 2011-09-24  David S. Miller  <davem@davemloft.net>
378
379         * config/sparc/sparc.h (FIRST_PSEUDO_REGISTER): Bump to 103.
380         (SPARC_GSR_REG): Define.
381         (FIXED_REGISTERS): Mark GSR as fixed.
382         (CALL_USED_REGISTERS): Mark GSR as call used.
383         (HARD_REGNO_NREGS): GSR is always 1 register.
384         (REG_CLASS_CONTENTS): Add GSR to ALL_REGS.
385         (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER): Add GSR to the end.
386         (REGISTER_NAMES): Add "%gsr".
387         * config/sparc/sparc.md (UNSPEC_ALIGNADDR, UNSPEC_ALIGNADDRL):
388         Delete.
389         (UNSPEC_WRGSR): New unspec.
390         (GSR_REG): New constant.
391         (type): Add new insn type 'gsr'.
392         (fpack16_vis, fpackfix_vis, fpack32_vis,
393         faligndata<V64I:MODE>_vis)): Add use of GSR_REG.
394         (wrgsr_vis, *wrgsr_sp64, wrgsr_v8plus, rdgsr_vis, *rdgsr_sp64,
395         rdgsr_v8plus): New expanders and insns.
396         (alignaddr<P:mode>_vis, alignaddrl<P:mode>_vis): Reimplement
397         using patterns which show that this is a plus in addition to a
398         modification of GSR_REG, instead of an unspec.
399         * config/sparc/ultra1_2.md: Handle 'gsr'.
400         * config/sparc/ultra3.md: Likewise.
401         * config/sparc/niagara.md: Likewise.
402         * config/sparc/niagara2.md: Likewise.
403         * config/sparc/sparc.c (leaf_reg_remap, sparc_leaf_regs): Fill out
404         end of table.
405         (sparc_option_override): Make -mvis imply -mv8plus.
406         (hard_32bit_mode_classes, hard_64bit_mode_classes): Add entries
407         for %gsr.
408         (sparc_vis_init_builtins): Build __builtin_vis_write_gsr and
409         __builtin_vis_read_gsr.
410         (sparc_expand_buildin): Handle builtins that take one argument and
411         return void.
412         (sparc_fold_builtin): Never fold writes to %gsr.
413         * config/sparc/visintrin.h (__vis_write_gsr, __vis_read_gsr): New.
414         * doc/extend.texi: Document new VIS intrinsics.
415
416 2011-09-23  Jan Hubicka  <jh@suse.cz>
417
418         * ipa-inline-transform.c (inline_call): Add comment.
419         * ipa-inline.h (inline_param_summary): New structure and vector.
420         (struct inline_edge_summary): Add param field.
421         * ipa-inline-analysis.c (CHANGED): New constant.
422         (add_clause): Handle CHANGED and NOT_CONSTANT.
423         (predicate_probability): New function.
424         (dump_condition): Dump CHANGED predicate.
425         (evaluate_conditions_for_known_args): Handle ERROR_MARK as marker
426         of unknown function wide invariant.
427         (evaluate_conditions_for_edge): Handle change probabilities.
428         (inline_edge_duplication_hook): Copy param summaries.
429         (inline_edge_removal_hook): Free param summaries.
430         (dump_inline_edge_summary): Fix dumping of indirect edges and callee sizes;
431         dump param summaries.
432         (will_be_nonconstant_predicate): Use CHANGED predicate.
433         (record_modified_bb_info): New structure.
434         (record_modified): New function.
435         (param_change_prob): New function.
436         (estimate_function_body_sizes): Compute param summaries.
437         (estimate_edge_size_and_time): Add probability argument.
438         (estimate_node_size_and_time): Add inline_param_summary argument;
439         handle predicate probabilities.
440         (remap_predicate): Fix formating.
441         (remap_edge_change_prob): New function.
442         (remap_edge_summaries): Rename from ...; use remap_edge_change_prob.
443         (remap_edge_predicates): ... this one.
444         (inline_merge_summary): Remap edge summaries; handle predicate probabilities;
445         remove param summaries after we are done.
446         (do_estimate_edge_time): Update.
447         (do_estimate_edge_growth): Update.
448         (read_inline_edge_summary): Read param info.
449         (inline_read_summary): Fix formating.
450         (write_inline_edge_summary): Write param summaries.
451
452 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
453
454         * config/i386/i386.c (ix86_print_operand): Handle %~.
455         (ix86_print_operand_punct_valid_p): Return true also for '~'.
456         * config/i386/sse.md (i128): New mode_attr.
457         (vec_extract_hi_<mode>, vec_extract_hi_<mode>,
458         avx_vbroadcastf128_<mode>, *avx_vperm2f128<mode>_full,
459         *avx_vperm2f128<mode>_nozero, vec_set_lo_<mode>, 
460         vec_set_hi_<mode>, *vec_concat<mode>_avx): Use <i128> in the
461         patterns, use "<sseinsnmode>" for "mode" attribute.
462         (vec_extract_hi_v16hi, vec_extract_hi_v32qi, vec_set_lo_v16hi,
463         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Use
464         %~128 in the patterns, use "OI" for "mode" attribute.
465
466 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
467
468         PR target/50447
469         * config/avr/avr.md (adjust_len): Add alternatives "tsthi",
470         "tstsi", "compare".
471         (*cmpqi_sign_extend): Use s8_operand.
472         (*cmphi, *cmpsi): Rewrite using avr_out_compare.
473         * config/avr/avr-protos.h (compare_diff_p, compare_eq_p): Remove
474         prototypes.
475         (out_tsthi, out_tstsi): Remove prototypes.
476         (avr_out_tsthi, avr_out_tstsi): New prototypes.
477         * config/avr/avr.c (out_tsthi, out_tstsi): Remove functions.
478         (avr_asm_len): Negative length now sets *plen to -length.
479         (compare_sign_p): Return bool instead of int.
480         (compare_diff_p, compare_eq_p): Ditto and make static.
481         (avr_out_tsthi): New function.
482         (avr_out_tstsi): New function.
483         (avr_out_compare): New function.
484         (adjust_insn_length): Handle ADJUST_LEN_TSTHI, ADJUST_LEN_TSTSI,
485         ADJUST_LEN_COMPARE.
486
487 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
488
489         PR target/50447
490         * config/avr/avr.md: (adjust_len): Add alternative "out_plus".
491         (addsi3): Rewrite using QI scratch register.  Adjust text
492         peepholes using plus:SI.
493         (*addsi3_zero_extend.hi): New insn.
494         (*subsi3_zero_extend.hi): New insn.
495         (*subhi3_zero_extend1): Set attribute "cc" to "set_czn".
496         (*subsi3_zero_extend): Ditto.
497         (subsi3): Change predicate #2 to register_operand.
498         * config/avr/avr-protos.h (avr_out_plus): New prototype.
499         (avr_out_plus_1): New static function.
500         (avr_out_plus): New function.
501         (adjust_insn_length): Handle ADJUST_LEN_OUT_PLUS.
502
503 2011-09-23  Jakub Jelinek  <jakub@redhat.com>
504
505         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): For
506         GE/GT/UNLE/UNLT swap arguments and condition even for TARGET_AVX.
507
508 2011-09-23  Ian Lance Taylor  <iant@google.com>
509
510         * godump.c (go_define): Treat a single character in single quotes,
511         or a string, as an operand.
512
513 2011-09-23  Martin Jambor  <mjambor@suse.cz>
514
515         * ipa-prop.h (jump_func_type): Updated comments.
516         (ipa_known_type_data): New type.
517         (ipa_jump_func): Use it to describe known type jump functions.
518         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Updated to
519         reflect the new known type jump function contents.
520         (compute_known_type_jump_func): Likewise.
521         (combine_known_type_and_ancestor_jfs): Likewise.
522         (try_make_edge_direct_virtual_call): Likewise.
523         (ipa_write_jump_function): Likewise.
524         (ipa_read_jump_function): Likewise.
525         * ipa-cp.c (ipa_value_from_known_type_jfunc): New function.
526         (ipa_value_from_jfunc): Use ipa_value_from_known_type_jfunc.
527         (propagate_accross_jump_function): Likewise.
528
529 2011-09-23  Georg-Johann Lay  <avr@gjlay.de>
530
531         PR target/50446
532         * config/avr/avr.md (rotlqi3): Support all offsets 0..7.
533         (rotlqi3_4): Turn insn into expander.
534         (*rotlqi3): New insn.
535         (rotlhi3, rotlsi3): Support rotate left/right by 1.
536         (*rotlhi2.1, *rotlhi2.15): New insns.
537         (*rotlsi2.1, *rotlsi2.31): New insns.
538         * config/avr/constraints.md (C03, C05, C06, C07): New constraints.
539
540 2011-09-23  Bin Cheng  <bin.cheng@arm.com>
541
542         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-m arch 
543         and processors.
544
545 2011-09-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
546
547         * ipa-prop.c (ipa_print_node_jump_functions): Fix typos.
548
549 2011-09-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
550
551         * reload.c (find_reloads): Set operand_mode to Pmode for address
552         operands consisting of just a CONST_INT.
553
554 2011-09-22  Uros Bizjak  <ubizjak@gmail.com>
555
556         PR target/50482
557         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
558         blendv, force op_true to register if it doesn't satisfy
559         nonimmediate_operand predicate.
560
561 2011-09-22  Richard Sandiford  <rdsandiford@googlemail.com>
562
563         PR middle-end/50113
564         PR middle-end/50061
565         * calls.c (emit_library_call_value_1): Use BLOCK_REG_PADDING to
566         get the locate.where_pad value for register-only arguments.
567         * config/arm/arm.c (arm_pad_arg_upward): Remove HFmode handling.
568         (arm_pad_reg_upward): Handle null types.
569
570 2011-09-22  Jan Hubicka  <jh@suse.cz>
571
572         * ipa-inline-analysis.c: Fix overly long lines.
573
574 2011-09-22  Jan Hubicka  <jh@suse.cz>
575
576         * ipa-inline-transform.c (inline_call): Always update jump functions
577         after inlining.
578         * ipa-inline.c (ipa_inline): Likewise; do not call
579         ipa_create_all_structures_for_iinln.
580         (ipa_inline): Always free jump functions.
581         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Remove hack.
582         (remap_edge_predicates): Fix pasto.
583         (inline_merge_summary): Remove nlined edge predicate; remove hack.
584         (inline_analyze_function): Always initialize jump functions.
585         (inline_generate_summary): Likewise.
586         (inline_write_summary): Always write jump functions when ipa-cp
587         is not doing that.
588         (inline_read_summary): Always read jump functions when ipa-cp
589         is not doing that.
590         * ipa-prop.c (iinlining_processed_edges): Remove.
591         (update_indirect_edges_after_inlining): Do not use
592         iinlining_processed_edges; instead set param_index to -1.
593         (propagate_info_to_inlined_callees): Only try to indirect inlining
594         when asked to do so; update jump functions of indirect calls, too;
595         remove jump functions of the inlined edge.
596         (ipa_edge_duplication_hook): Do not copy iinlining_processed_edges.
597         (ipa_create_all_structures_for_iinln): Remove.
598         (ipa_free_all_structures_after_iinln): Do not free
599         iinlining_processed_edges.
600         * ipa-prop.h (ipa_create_all_structures_for_iinln): Remove.
601
602 2011-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
603
604         * config/arm/predicates.md (expandable_comparison_operator): New
605         predicate, extracted from...
606         (arm_comparison_operator): ...here.
607         * config/arm/arm.md (cbranchsi4, cbranchsf4, cbranchdf4, cbranchdi4)
608         (cstoresi4, cstoresf4, cstoredf4, cstoredi4, movsicc, movsfcc)
609         (movdfcc): Use expandable_comparison_operator.
610
611 2011-09-22  Georg-Johann Lay  <avr@gjlay.de>
612
613         PR target/50447
614         PR target/50465
615         * config/avr/avr-protos.h (avr_out_bitop): New prototype.
616         (avr_popcount_each_byte): New prototype.
617         * config/avr/avr.c (avr_popcount): New static function.
618         (avr_popcount_each_byte): New function.
619         (avr_out_bitop): New function.
620         (adjust_insn_length): ADJUST_LEN_OUT_BITOP dispatches to
621         avr_out_bitop.  Cleanup code.
622         * config/avr/constraints.md (Ca2, Co2, Cx2): New constraints.
623         (Ca4, Co4, Cx4): New constraints.
624         * config/avr/avr.md (adjust_len): Add "out_bitop" insn attribute
625         alternative.
626         (andhi3, iorhi3, xorhi3): Rewrite insns using avr_out_bitop.
627         (andsi3, iorsi3, xorsi3): Ditto.
628         (*iorhi3_clobber, *iorsi3_clobber): Remove insns.
629
630 2011-09-22  Ira Rosen  <ira.rosen@linaro.org>
631
632         PR tree-optimization/50451
633         * tree-vect-slp.c (vect_get_constant_vectors): Don't fail for
634         constant operands in reduction.
635         (vect_get_slp_defs): Don't create vector operand for NULL scalar
636         operand.
637
638 2011-09-22  David S. Miller  <davem@davemloft.net>
639
640         * config/sparc/sparc.c (sparc_vis_init_builtins): Do not mark
641         fpack16, fpack32, fpackfix as const.
642
643         * config/sparc/sparc.md (G[0-7]_REG, O[0-7]_REG, L[0-7]_REG,
644         I[0-7]_REG, F[0-62]_REG, FCC[0-3]_REG, CC_REG, SFP_REG): New
645         constants.  Use them everywhere.
646
647 2011-09-22  Oleg Endo  <oleg.endo@t-online.de>
648
649         * config/sh/sh.c (andcosts): Renamed to and_xor_ior_costs.
650         Added AND special case.  Adapted comments.
651         (sh_rtx_costs): Added XOR and IOR case.
652
653 2011-09-21  Jan Hubicka  <jh@suse.cz>
654
655         * ipa-inline-analsis.c (compute_inline_parameters): Set
656         cfun and current_function_decl.
657
658 2011-09-21  Jan Hubicka  <jh@suse.cz>
659
660         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Allow
661         handled components in parameter of builtin_constant_p.
662         (will_be_nonconstant_predicate): Allow loads of non-SSA parameters.
663
664 2011-09-21  Jan Hubicka  <jh@suse.cz>
665
666         * ipa-inline.c (relative_time_benefit): Fix wrong bracketting.
667         * ipa-inline.h (estimate_edge_time): Fix pasto.
668         * ipa-inline-analysis.c (do_estiamte_edge_time): Remove capping.
669
670 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
671
672         * config/i386/i386.c (ix86_expand_sse_movcc): Use
673         blendvps, blendvpd and pblendvb if possible.
674
675 2011-09-21  Uros Bizjak  <ubizjak@gmail.com>
676
677         PR target/50464
678         * config/i386/sse.md (xop_pcmov_<mode><avxsizesuffix>): Change
679         operand 1 predicate to register_operand and operand 2 predicate
680         to nonimmediate_operand.
681         * config/i386/i386.c (ix86_expand_sse_movcc): When generating
682         xop_pcmov, force op_true to register.  Also, force op_false to
683         register if it doesn't satisfy nonimmediate_operand predicate.
684
685 2011-09-21  Kirill Yukhin  <kirill.yukhin@intel.com>
686
687         * config/i386/bmi2intrin.h (_mulx_u64): New.
688         (_mulx_u32): Ditto.
689
690 2011-09-21  Jan Hubicka  <jh@suse.cz>
691
692         PR tree-optimization/50433
693         * ipa-inline-analysis.c (eliminated_by_inlining_prob):
694         Use get_base_address.
695
696 2011-09-21  Jakub Jelinek  <jakub@redhat.com>
697
698         * config/i386/sse.md (<code><mode>3 smaxmin:VI124_128 expander): Use
699         nonimmediate_operand instead of register_operand predicate for operands
700         1 and 2, force them into registers if expanding them as comparison.
701         (<code><mode>3 umaxmin:VI124_128 expander): Similarly.  For UMAX
702         V8HImode force into register just operand 1.
703
704 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
705
706         PR target/45099
707         * config/avr/avr.c (avr_function_arg_advance): Change error to
708         warning if a fixed register is needed as function argument.
709
710 2011-09-21  Georg-Johann Lay  <avr@gjlay.de>
711
712         PR target/50449
713         PR target/50465
714         * config/avr/avr.md (adjust_len): New insn attribute.
715         (*reload_insi, *reload_insf): Use it.
716         (*movsi, *movsf): Use new interface of output_movsisf.
717         * config/avr/avr-protos.h (output_movsisf): Change prototype.
718         * config/avr/avr.c (output_movsisf): Ditto.
719         (adjust_insn_length): Use insn attribute "adjust_len" to adjust
720         lengths of insns *reload_insi, *reload_insf.
721         (output_reload_insisf_1): New static function.
722         (output_reload_insisf): Use it.
723
724 2011-09-21  David S. Miller  <davem@davemloft.net>
725
726         * config/sparc/sparc.c (def_builtin): Change from macro into function.
727         (def_builtin_const): New.
728         (sparc_vis_init_builtins): Use def_builtin_const for all VIS builtins
729         other than alignaddr and falignaddr.
730
731         * config/sparc/sparc.md (UNSPEC_FCMPLE, UNSPEC_FCMPNE, UNSPEC_FCMPGT,
732         UNSPEC_FCMPEQ): New unspec codes.
733         (fcmple16_vis, fcmple32_vis, fcmpne16_vis, fcmpne32_vis, fcmpgt16_vis,
734         fcmpgt32_vis, fcmpeq16_vis, fcmpeq32_vis): New patterns.
735         * config/sparc/sparc.c (sparc_vis_init_builtins): Create builtins for
736         new pixel compare VIS patterns.
737         * config/sparc/visintrin.h (__vis_fcmple16, __vis_fcmple32,
738         __vis_fcmpne16, __vis_fcmpne32, __vis_fcmpgt16, __vis_fcmpgt32,
739         __vis_fcmpeq16, __vis_fcmpeq32): New.
740         * doc/extend.texi: Document new pixel compare VIS intrinsics.
741
742 2011-09-21  Tom de Vries  <tom@codesourcery.com>
743
744         * final.c (final): Handle if JUMP_LABEL is not LABEL_P.
745
746 2011-09-20  David S. Miller  <davem@davemloft.net>
747
748         * config/sparc/sparc.md (UNSPEC_ALIGNADDRL): New unspec.
749         (aligneddrl<P:mode>_vis): New pattern.
750         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
751         edge32l_vis): Adjust to take Pmode arguments, and return SImode.
752         * config/sparc/sparc.c (sparc_vis_init_builtins): Handle new
753         alignaddrl insn, and adjust edge operations for updated types.
754         * config/sparc/visintrin.h: Likewise.
755         * doc/extend.texi: Make typing in VIS documentation match reality.
756
757 2011-09-20  Terry Guo  <terry.guo@arm.com>
758
759         * config/arm/arm-arches.def: Add armv6s-m.
760         * config/arm/arm-tables.opt: Regenerate.
761
762 2011-09-20  Wei Guozhi  <carrot@google.com>
763
764         PR rtl-optimization/49452
765         * postreload.c (reload_combine): Invalidate use information when across
766         volatile insn.
767
768 2011-09-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
769
770         * haifa-sched.c (has_edge_p, prev_non_location_insn, check_cfg):
771         Remove maintenance overhead.
772         (haifa_sched_init, sched_finish): Update.
773
774 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
775
776         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use if_then_else RTX
777         to calculate unit, prefix_rep and prefix_data16 attributes.
778         (*mov<mode>_internal): Ditto for unit attribute.
779         (*movv2sf_internal_rex64): Ditto for unit and prefix_rep attributes.
780         (*movv2sf_internal): Ditto.
781         * config/i386/sse.md (VI1248_256): Remove mode iterator.
782         (avx2_eq<mode>3): Use VI_256 instead of VI1248_256.
783         (*avx2_eq<mode>3): Ditto.
784         (avx2_gt<mode>3): Ditto.
785
786 2011-09-19  Uros Bizjak  <ubizjak@gmail.com>
787
788         * config/i386/i386.md (maxmin): New code iterator.
789         * config/i386/sse.md (<maxmin:code><mode>3): Macroize expander
790         from <umaxmin:code><mode>3 and <smaxmin:code><mode>3 using maxmin
791         code iterator.
792         (*avx2_<maxmin:code><mode>3): Macroize isn from
793         *avx2_<umaxmin:code><mode>3 and *avx2_<smaxmin:code><mode>3 using
794         maxmin code iterator.
795         (<smaxmin:code><VI124_128:mode>3): Merge with <smaxmin:code>v8hi3.
796         (<umaxmin:code><VI124_128:mode>3): Merge with umaxv4si3 and
797         <umaxmin:code>v16qi3.
798
799 2011-09-19  Alan Modra  <amodra@gmail.com>
800             Michael Meissner  <meissner@linux.vnet.ibm.com>
801
802         PR target/50341
803         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Do not
804         split the load of the indirect function's TOC from the call to
805         prevent the compiler from moving the load of the new TOC above
806         code that references the current function's TOC.
807         (call_indirect_aix<ptrsize>_internal): Ditto.
808         (call_indirect_aix<ptrsize>_nor11): Ditto.
809         (call_indirect_aix<ptrsize>_internal2): Ditto.
810         (call_value_indirect_aix<ptrsize>): Ditto.
811         (call_value_indirect_aix<ptrsize>_internal): Ditto.
812         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
813         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
814
815 2011-09-19  Jakub Jelinek  <jakub@redhat.com>
816
817         * config/i386/sse.md (*sse4_1_extractps): Change into
818         define_insn_and_split, add =x 0 n and =x x n alternatives
819         and split them after reload.
820
821 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
822
823         * tree.h (TREE_NOT_CHECK4): Rename from bogus NON_TREE_CHECK4.
824
825 2011-09-19  Alexandre Oliva  <aoliva@redhat.com>
826
827         * emit-rtl.c (copy_insn_1): Do not copy DEBUG_EXPRs.
828
829 2011-09-19  Ira Rosen  <ira.rosen@linaro.org>
830
831         PR tree-optimization/50413
832         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail to vectorize
833         a basic block if one of its data-refs can't be analyzed.
834
835 2011-09-19  Paul Brook  <paul@codesourcery.com>
836
837         * config/arm/predicates.md (shift_amount_operand): Check constant
838         shift count is in range.
839         (const_shift_operand): Remove.
840
841 2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
842             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
843
844         PR target/50091
845         * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
846         * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
847
848 2011-09-18  H.J. Lu  <hongjiu.lu@intel.com>
849
850         * config/i386/bmiintrin.h: Remove tmp.
851         * config/i386/tbmintrin.h: Likewise.
852
853 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
854
855         PR tree-optimization/50414
856         * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
857         MIN_EXPR.
858
859 2011-09-18  Ira Rosen  <ira.rosen@linaro.org>
860
861         PR tree-optimization/50412
862         * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
863         acceses that require epilogue loop if vectorizing outer loop.
864
865 2011-09-17  David S. Miller  <davem@davemloft.net>
866
867         * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
868         UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
869         New unspecs.
870         (define_attr type): New type 'edge'.
871         (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
872         edge32l_vis): New patterns.
873         * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
874         * config/sparc/ultra3.md: Likewise.
875         * config/sparc/niagara.md: Likewise.
876         * config/sparc/niagara2.md: Likewise.
877         * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
878         builtins for VIS edge instructions.
879         * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
880         (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
881         intrinsics.
882         (__v8qi, __v4qi): Make unsigned.
883         (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
884         __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
885         __vis_fpack32): Fix types.
886         * doc/extend.texi: Document new 'edge' VIS intrinsics.
887
888         * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
889         divide costs.
890         (niagara3_costs): New.
891         (sparc_option_override): Use it.
892         * gcc/config/sparc/niagara2.md: Adjust with more accurate
893         Niagara-3 reservations.
894
895 2011-09-17  Jakub Jelinek  <jakub@redhat.com>
896
897         * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
898         (sse2_avx, sseinsnmode): Add V2TI.
899         (REDUC_SMINMAX_MODE): New mode iterator.
900         (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
901         reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
902         (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
903         (sse2_lshrv1ti3): Rename to...
904         (<sse2_avx2>_lshr<mode>3): ... this.  Use VIMAX_AVX2 mode
905         iterator.  Move before umaxmin expanders.
906         * config/i386/i386.h (VALID_AVX256_REG_MODE,
907         SSE_REG_MODE_P): Accept V2TImode.
908         * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
909         V16HImode, V8SImode and V4DImode.
910
911         * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
912         and V4DImode.
913         (ix86_build_signbit_mask): Likewise.
914         (ix86_expand_int_vcond): Likewise.  Handle V16HImode and V32QImode.
915         (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
916         instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
917         * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename to...
918         (<code><mode>3) ... this.
919         (avx2_<code><mode>3 smaxmin expand): Rename to...
920         (<code><mode>3) ... this.
921         (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
922         (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
923         VI8_AVX2 mode iterator.
924         (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
925         VI8_AVX2 mode iterator.
926         (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
927         New expanders.
928
929 2011-09-17  Richard Sandiford  <rdsandiford@googlemail.com>
930
931         * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
932         throughout file.
933
934 2011-09-16  David S. Miller  <davem@davemloft.net>
935
936         * config/sparc/visintrin.h: New file.
937         * config.gcc: Add it to extra_headers on sparc.
938
939 2011-09-16  Jakub Jelinek  <jakub@redhat.com>
940
941         * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
942         (ix86_expand_reduc): ... this.  Handle also V8SFmode and V4DFmode.
943         * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
944         reduc_smin_v4sf): Adjust callers.
945         (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
946         New expanders.
947
948         * config/i386/sse.md (vec_extract_hi_<mode>,
949         vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
950         vextracti128 instead of vextractf128 for -mavx2 and
951         integer vectors.  For V4DFmode fix up mode attribute.
952         (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
953         (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
954         instead of V8SF mode attribute.
955         (avx2_extracti128): Change into define_expand.
956         * config/i386/i386.c (ix86_expand_vector_extract): Handle
957         32-byte vector modes if TARGET_AVX.
958
959 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
960
961         * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
962         (umulqi3_highpart, smulqi3_highpart): Ditto.
963         (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
964         (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
965         (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
966
967 2011-09-16  Georg-Johann Lay  <avr@gjlay.de>
968
969         PR target/50358
970         * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
971         (*maddqi4, *maddqi4.const): New insns.
972         (*msubqi4, *msubqi4.const): New insns.
973         * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
974         PLUS:QI and MINUS:QI.  Increase costs of multiply-add/-sub for
975         HImode by 1 in the case of multiplying with a CONST_INT.
976         Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
977
978 2011-09-15   Jan Hubicka  <jh@suse.cz>
979
980         PR lto/50430
981         * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
982         error_mark_node in the DECL_INITIAL of vtable.
983
984 2011-09-15   Diego Novillo  <dnovillo@google.com>
985
986         * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
987         @SYSROOT_CFLAGS_FOR_TARGET@.
988         * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from build-sysroot.
989         * configure: Regenerate.
990         (site.exp): Add definition of TEST_ALWAYS_FLAGS.
991         Remove setting of GCC_UNDER_TEST.
992
993 2011-09-15  Uros Bizjak  <ubizjak@gmail.com>
994
995         * config/i386/i386.c (output_fp_compare): Return %v prefixed
996         instruction mnemonics for TARGET_AVX.
997
998         * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
999         "type" attribute calculation.
1000         (*movdf_internal): Ditto.
1001         (*movsf_internal): Ditto.
1002
1003 2011-09-15  James Greenhalgh  <james.greenhalgh@arm.com>
1004
1005         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
1006
1007 2011-09-15  Jason Merrill  <jason@redhat.com>
1008
1009         PR c++/50361
1010         * expr.c (count_type_elements): Handle NULLPTR_TYPE.
1011
1012 2011-09-15  Jan Hubicka  <jh@suse.cz>
1013
1014         * ipa-inline-analysis.c (add_condition): Add conditions parameter;
1015         simplify obviously true clauses.
1016         (and_predicates, or_predicates): Add conditions parameter.
1017         (inline_duplication_hoook): Update.
1018         (mark_modified): New function.
1019         (unmodified_parm): New function.
1020         (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
1021         set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
1022         Use unmodified_parm.
1023         (estimate_function_body_sizes): Update.
1024         (remap_predicate): Update.
1025
1026 2011-09-15  Ira Rosen  <ira.rosen@linaro.org>
1027
1028         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
1029         read-after-read dependencies in basic block SLP.
1030
1031 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1032
1033         * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
1034         throughout file.
1035
1036 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1037
1038         * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
1039         throughout file.
1040
1041 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1042
1043         * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
1044         throughout file.
1045
1046 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1047
1048         * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
1049         throughout file.
1050         * config/rs6000/constraints.md: Likewise.
1051
1052 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1053
1054         * config/microblaze/microblaze.md: Use match_test rather than
1055         eq/ne symbol_ref throughout file.
1056
1057 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
1058
1059         * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
1060         throughout file.
1061
1062 2011-09-14  Tom de Vries  <tom@codesourcery.com>
1063
1064         PR middle-end/50251
1065         * explow.c (emit_stack_restore): Set crtl->need_drap if
1066         stack_restore is emitted.
1067
1068 2011-09-14  Julian Brown  <julian@codesourcery.com>
1069
1070         * config/arm/arm.c (arm_override_options): Add unaligned_access
1071         support.
1072         (arm_file_start): Emit attribute for unaligned access as appropriate.
1073         * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
1074         (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
1075         (insv, extzv): Add unaligned-access support.
1076         (extv): Change to expander. Likewise.
1077         (extzv_t1, extv_regsi): Add helpers.
1078         (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
1079         (unaligned_storesi, unaligned_storehi): New.
1080         (*extv_reg): New (previous extv implementation).
1081         * config/arm/arm.opt (munaligned_access): Add option.
1082         * config/arm/constraints.md (Uw): New constraint.
1083         * expmed.c (store_bit_field_1): Adjust bitfield numbering according
1084         to size of access, not size of unit, when BITS_BIG_ENDIAN !=
1085         BYTES_BIG_ENDIAN. Don't use bitfield accesses for
1086         volatile accesses when -fstrict-volatile-bitfields is in effect.
1087         (extract_bit_field_1): Likewise.
1088
1089 2011-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
1090
1091         * simplify-rtx.c (simplify_subreg): Check that the inner mode is
1092         a scalar integer before applying integer-only optimisations to
1093         inner arithmetic.
1094
1095 2011-09-14  Bernd Schmidt  <bernds@codesourcery.com>
1096
1097         * config/mips/mips.c (mips_expand_epilogue): Generate a
1098         simple_return only if the return address is in r31.
1099
1100 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1101
1102         * cfgcleanup.c (try_head_merge_bb): If get_condition returns
1103         NULL for a jump that is a cc0 insn, pick the previous insn for
1104         move_before.
1105
1106 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1107
1108         * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
1109         throughout file.
1110
1111 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1112
1113         * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
1114         throughout file.
1115
1116 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1117
1118         * config/mn10300/mn10300.md: Use match_test rather than eq/ne
1119         symbol_ref throughout file.
1120
1121 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1122
1123         * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
1124         throughout file.
1125
1126 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1127
1128         * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
1129         throughout file.
1130
1131 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
1132
1133         * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
1134         throughout file.
1135         * config/arm/neon.md: Likewise.
1136         * config/arm/vfp.md: Likewise.
1137         * config/arm/thumb2.md: Likewise.
1138         * config/arm/cortex-m4.md: Likewise.
1139
1140 2011-09-13  Sevak Sargsyan <sevak.sargsyan@ispras.ru>
1141
1142         * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
1143         define_insn patterns for combine.
1144
1145 2011-09-13  Giuseppe Scrivano  <gscrivano@gnu.org>
1146
1147         * reorg.c: Always define make_return_insns.
1148
1149 2011-09-13  Jan Hubicka  <jh@suse.cz>
1150
1151         PR other/49533
1152         * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
1153
1154 2011-09-13  Jan Hubicka  <jh@suse.cz>
1155
1156         PR other/49533
1157         * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
1158
1159 2011-09-13  Paul Brook  <paul@codesourcery.com>
1160
1161         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
1162         (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
1163         * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
1164         * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
1165         * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
1166         * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
1167         * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
1168         * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
1169         enabling unwind tables.
1170         (c6x_debug_unwind_info): New function.
1171         (TARGET_ARM_EABI_UNWINDER): Define.
1172         (TARGET_DEBUG_UNWIND_INFO): Define.
1173         * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
1174         (TARGET_EXTRA_CFI_SECTION): Remove.
1175         * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
1176         * ginclude/unwind-arm-common.h: New file.
1177
1178 2011-09-13  Georg-Johann Lay  <avr@gjlay.de>
1179
1180         PR target/50358
1181         * config/avr/predicates.md (const_1_to_6_operand): New predicate.
1182         * config/avr/avr.md: (extend_s): New code attribute.
1183         (mul_r_d): New code attribute.
1184         (*maddqihi4, *umaddqihi4): New insns.
1185         (*msubqihi4, *umsubqihi4): New insns.
1186         (*usmaddqihi4, *sumaddqihi4): New insns.
1187         (*usmsubqihi4, *susubdqihi4): New insns.
1188         (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
1189         (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
1190         (*umsubqihi4.uconst.ashift): New insn-and-split.
1191         (*msubqihi4.sconst.ashift): New insn-and-split.
1192         (*sumaddqihi4.uconst): New insn-and-split.
1193         (*sumsubqihi4.uconst): New insn-and-split.
1194         * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
1195         PLUS:HI and MINUS:HI.
1196
1197 2011-09-13  Revital Eres  <revital.eres@linaro.org>
1198
1199         modulo-sched.c (remove_node_from_ps): Return void instead of bool.
1200         (optimize_sc): Adjust call to remove_node_from_ps.
1201         (sms_schedule): Add print info.
1202
1203 2011-09-13  Bernd Schmidt  <bernds@codesourcery.com>
1204
1205         * rtl.c (copy_rtx): Do not handle frame_related, jump or call
1206         flags specially.
1207
1208 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1209
1210         PR bootstrap/50010
1211         * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
1212         NOTE_INSN_CFI notes, with the exception of
1213         NOTE_INSN_SWITCH_TEXT_SECTIONS.
1214
1215 2011-09-12  Bernd Schmidt  <bernds@codesourcery.com>
1216             Richard Sandiford  <rdsandiford@googlemail.com>
1217
1218         * config/mips/mips.c (mips_epilogue): New structure.
1219         (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
1220         restoring registers.
1221         (mips_epilogue_emit_cfa_restores): New function.
1222         (mips_epilogue_set_cfa): Likewise.
1223         (mips_restore_reg): Queue REG_CFA_RESTORE notes.  When restoring
1224         the current CFA register from the stack, redefine the CFA in terms
1225         of the stack pointer.
1226         (mips_expand_epilogue): Set up mips_epilogue.  Attach CFA information
1227         to the epilogue instructions.
1228
1229 2011-09-12  Richard Sandiford  <rdsandiford@googlemail.com>
1230
1231         * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
1232         argument.
1233         (mips16e_build_save_restore): Update accordingly.
1234
1235 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1236
1237         PR rtl-optimization/50212
1238         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1239         Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
1240
1241         PR debug/50299
1242         * calls.c (load_register_parameters): Use use_reg_mode instead
1243         of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
1244         entry.
1245         (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
1246         for stack CALL_INSN_FUNCTION_USAGE uses.
1247         * expr.h (use_reg_mode): New prototype.
1248         (use_reg): Changed into inline around use_reg_mode.
1249         * expr.c (use_reg): Renamed to...
1250         (use_reg_mode): ... this.  Added MODE argument, set EXPR_LIST
1251         mode to that mode instead of VOIDmode.
1252         * var-tracking.c (prepare_call_arguments): Don't track parameters
1253         whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
1254         to it using lowpart_subreg.  Convert VALUE and REG/MEM to the
1255         EXPR_LIST mode.
1256
1257 2011-09-12  Georg-Johann Lay  <avr@gjlay.de>
1258
1259         PR target/43746
1260         * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
1261         (progmem_section): New Variable.
1262         (avr_asm_init_sections): Initialize it.
1263         (TARGET_ASM_SELECT_SECTION): Define to...
1264         (avr_asm_select_section): ... this new Function.
1265         (avr_replace_prefix): New Function.
1266         (avr_asm_function_rodata_section): Use it.
1267         (avr_insert_attributes): Don't add section attribute for PROGMEM.
1268         (avr_section_type_flags): Use avr_progmem_p instead of section
1269         name to detect if object is in PROGMEM.
1270         (avr_asm_named_section): Set section name prefix for objects in
1271         PROGMEM.
1272
1273 2011-09-12  Jakub Jelinek  <jakub@redhat.com>
1274
1275         PR bootstrap/50352
1276         * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
1277         sprintf format string.
1278
1279 2011-09-12  Richard Guenther  <rguenther@suse.de>
1280
1281         PR tree-optimization/50343
1282         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
1283         that the reduction is over an SSA name before checking its definition.
1284
1285 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1286
1287         * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
1288         throughout file.
1289
1290 2011-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
1291
1292         * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
1293         throughout file.
1294         * config/mips/sb1.md: Likewise.
1295         * config/mips/predicates.md: Replace (match_test "!...")
1296         with (not (match_test "..."))
1297         * config/mips/constraints.md: Likewise.
1298
1299 2011-09-09  Andrew Stubbs  <ams@codesourcery.com>
1300
1301         * config/arm/arm-cores.def (generic-armv7-a): New architecture.
1302         * config/arm/arm-tables.opt: Regenerate.
1303         * config/arm/arm-tune.md: Regenerate.
1304         * config/arm/arm.c (arm_file_start): Output .arch directive when
1305         user passes -mcpu=generic-*.
1306         (arm_issue_rate): Add genericv7a support.
1307         * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
1308         (ASM_CPU_SPEC): New define.
1309         * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
1310         * config/arm/semi.h (ASM_SPEC): Likewise.
1311         * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
1312         and -mtune=generic-*.
1313
1314 2011-09-09  Richard Guenther  <rguenther@suse.de>
1315
1316         PR tree-optimization/50328
1317         * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
1318         constant or default-def operand.
1319
1320 2011-09-09  Richard Guenther  <rguenther@suse.de>
1321
1322         * tree-ssa-pre.c (create_expression_by_pieces): Fold the
1323         last statement.
1324
1325 2011-09-09  Richard Guenther  <rguenther@suse.de>
1326
1327         * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
1328         instead of a statement.
1329         * gimple-fold.c (fold_stmt_inplace): Likewise.
1330         * sese.c (graphite_copy_stmts_from_block): Adjust.
1331         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
1332         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
1333         fold_stmt.
1334         (forward_propagate_addr_into_variable_array_index): Likewise.
1335         (forward_propagate_addr_expr_1): adjust.
1336         (associate_plusminus): Likewise.
1337         (ssa_forward_propagate_and_combine): Likewise.
1338         * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
1339         (execute_cse_reciprocals): Likewise.
1340         * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
1341
1342 2011-09-09  Nick Clifton  <nickc@redhat.com>
1343
1344         * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
1345         Return a positive value to indicate that the bits at the
1346         bottom of the register should be cleared.
1347
1348 2011-09-09  Richard Guenther  <rguenther@suse.de>
1349
1350         * tree-ssa-operands.c (swap_tree_operands): Always adjust
1351         existing operand positions.
1352
1353 2011-09-09  Richard Guenther  <rguenther@suse.de>
1354
1355         PR middle-end/50333
1356         * tree-data-ref.c (split_constant_offset): Do not try to handle
1357         ternary ops.
1358
1359 2011-09-08  Andrew Stubbs  <ams@codesourcery.com>
1360
1361         PR tree-optimization/50318
1362         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
1363         typo in use of mult_rhs1 and mult_rhs2.
1364
1365 2011-09-08  Uros Bizjak  <ubizjak@gmail.com>
1366
1367         * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
1368         (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
1369
1370 2011-09-08  Bernd Schmidt  <bernds@codesourcery.com>
1371
1372         * config/arm/arm.md (push_multi): Emit predicates.
1373         (push_fp_multi): Likewise.
1374         * config/arm/arm.c (vfp_output_fstmd): Likewise.
1375
1376 2011-09-08  Dodji Seketeli  <dodji@redhat.com>
1377
1378         PR c++/33255 - Support -Wunused-local-typedefs warning
1379         * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
1380         (pushdecl): Use the new record_locally_defined_typedef.
1381         (store_parm_decls): Allocate cfun->language.
1382         (finish_function): Use the new maybe_warn_unused_local_typedefs,
1383         and free cfun->language.
1384         (c_push_function_context): Allocate cfun->language here only if needed.
1385         (c_pop_function_context): Likewise, mark cfun->language
1386         for collection only when it should be done.
1387         * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
1388         * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
1389         maybe_record_local_typedef_use.
1390         * doc/invoke.texi: Update documentation for
1391         -Wunused-local-typedefs.
1392
1393 2011-09-08  Enkovich Ilya  <ilya.enkovich@intel.com>
1394
1395         * config/i386/i386-protos.h (ix86_lea_outperforms): New.
1396         (ix86_avoid_lea_for_add): Likewise.
1397         (ix86_avoid_lea_for_addr): Likewise.
1398         (ix86_split_lea_for_addr): Likewise.
1399
1400         * config/i386/i386.c (LEA_MAX_STALL): New.
1401         (increase_distance): Likewise.
1402         (insn_defines_reg): Likewise.
1403         (insn_uses_reg_mem): Likewise.
1404         (distance_non_agu_define_in_bb): Likewise.
1405         (distance_agu_use_in_bb): Likewise.
1406         (ix86_lea_outperforms): Likewise.
1407         (ix86_ok_to_clobber_flags): Likewise.
1408         (ix86_avoid_lea_for_add): Likewise.
1409         (ix86_avoid_lea_for_addr): Likewise.
1410         (ix86_split_lea_for_addr): Likewise.
1411         (distance_non_agu_define): Search in pred BBs added.
1412         (distance_agu_use): Search in succ BBs added.
1413         (IX86_LEA_PRIORITY): Value changed from 2 to 0.
1414         (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
1415         (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
1416
1417         * config/i386/i386.md: Split added to transform non destructive
1418         add into move and add.
1419         (lea_1): transformed into insn_and_split to avoid AGU stalls.
1420         (lea<mode>_2): Likewise.
1421
1422 2011-09-08  Martin Jambor  <mjambor@suse.cz>
1423
1424         PR tree-optimization/50287
1425         * ipa-split.c (split_function): Do not create SSA names for
1426         non-gimple-registers.
1427
1428 2011-09-08  Richard Guenther  <rguenther@suse.de>
1429
1430         PR tree-optimization/19831
1431         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
1432         skip builtins with vdefs that do not really store something.
1433         (propagate_necessity): For calls to free that we can associate
1434         with an allocation function do not mark the freed pointer
1435         definition necessary.
1436         (eliminate_unnecessary_stmts): Remove a call to free if
1437         the associated call to an allocation function is not necessary.
1438
1439 2011-09-08  Richard Guenther  <rguenther@suse.de>
1440
1441         PR tree-optimization/19831
1442         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
1443         allocation functions as necessary.
1444
1445 2011-09-08  Iain Sandoe  <iains@gcc.gnu.org>
1446
1447         * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
1448         cut from ...
1449         (darwin_default_min_version): Amended to provide defaults
1450         for the cross directory case.
1451         (darwin_driver_init): call darwin_default_min_version unconditionally.
1452         * config/darwin.h (DEF_MIN_OSX_VERSION): New.
1453         * config/darwin9.h: Likewise.
1454         * config/darwin10.h: Likewise.
1455         * config/rs6000/darwin7.h: Likewise.
1456
1457 2011-09-08  Jakub Jelinek  <jakub@redhat.com>
1458
1459         PR target/50310
1460         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
1461         code early if TARGET_AVX.
1462         (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
1463
1464 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1465
1466         * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
1467         duplicates.
1468
1469         PR target/50310
1470         * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
1471         "mode" attribute computation.
1472
1473 2011-09-07  Bernd Schmidt  <bernds@codesourcery.com>
1474
1475         * regrename.c (struct du_head): Make nregs signed.
1476         (closed_chains): Remove.
1477         (create_new_chain): Return the new chain.
1478         (chain_from_id): New static function.
1479         (dump_def_use_chain): Change argument to be an int, indicating
1480         the first ID to print.  All callers changed.
1481         (merge_overlapping_regs): Use chain_from_id.  Assert that
1482         chains don't conflict with themselves.
1483         (rename_chains): Take no argument.  Iterate over id_to_chain
1484         rather to find chains to rename.  Clear tick before the main loop.
1485         (struct incoming_reg_info): New struct.
1486         (struct bb_rename_info): New struct.
1487         (init_rename_info, set_incoming_from_chain, merge_chains): New
1488         static functions.
1489         (regrename_analyze): New static function, broken out of
1490         regrename_optimize.  Record and make use of open chain information
1491         at basic block boundaries, and merge chains where possible.
1492         (scan_rtx_reg): Make this_nregs signed.  Don't update
1493         closed_chains.
1494         (build_def_use): Return a bool to indicate success.  All callers
1495         changed.  Don't initialize global data here.
1496         (regrename_optimize): Move most code out of here into
1497         regrename_analyze.
1498         * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
1499         range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
1500         static inline functions.
1501         * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
1502
1503         * bb-reorder.c (insert_section_boundary_note): Don't check
1504         optimize_function_for_speed_p.
1505         (gate_handle_partition_blocks): Do it here instead.
1506         (gate_handle_reorder_blocks): Move preliminary checks here ...
1507         (rest_of_handle_reorder_blocks): ... from here.
1508
1509 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1510
1511         PR middle-end/50301
1512         * ipa-cp.c (find_more_values_for_callers_subset): Check jump
1513         function index bounds.
1514         (perhaps_add_new_callers): Likewise.
1515
1516 2011-09-07  Martin Jambor  <mjambor@suse.cz>
1517
1518         PR tree-optimization/49911
1519         * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
1520         enumerations to the corresponding plain integer type.
1521
1522 2011-09-07  Richard Guenther  <rguenther@suse.de>
1523
1524         PR tree-optimization/50319
1525         * tree-if-conv.c (set_bb_predicate): Assert we only set
1526         canonical predicates.
1527         (add_to_predicate_list): Simplify.  Allow TRUTH_NOT_EXPR
1528         around canonical predicates.
1529         (predicate_bbs): Do not re-gimplify already canonical
1530         predicates.  Properly unshare them though.
1531         (find_phi_replacement_condition): Simplify.
1532
1533 2011-09-07  Richard Sandiford  <richard.sandiford@linaro.org>
1534
1535         PR target/49030
1536         * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
1537         * config/arm/arm.c (maybe_get_arm_condition_code): New function,
1538         reusing the old code from get_arm_condition_code.  Return ARM_NV
1539         for invalid comparison codes.
1540         (get_arm_condition_code): Redefine in terms of
1541         maybe_get_arm_condition_code.
1542         * config/arm/predicates.md (arm_comparison_operator): Use
1543         maybe_get_arm_condition_code.
1544
1545 2011-09-07  Richard Guenther  <rguenther@suse.de>
1546
1547         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
1548         Canonicalize negated predicates by swapping edges.
1549         (forward_propagate_into_cond): Likewise.
1550
1551 2011-09-07  Richard Guenther  <rguenther@suse.de>
1552
1553         PR tree-optimization/50213
1554         * tree-flow.h (simple_iv_increment_p): Declare.
1555         * tree-ssa-dom.c (simple_iv_increment_p): Export.  Also handle
1556         POINTER_PLUS_EXPR.
1557         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
1558         not propagate simple IV counter increments.
1559
1560 2011-09-07  Eric Botcazou  <ebotcazou@adacore.com>
1561             Iain Sandoe  <iains@gcc.gnu.org>
1562
1563         * config/rs6000/rs6000.c (compute_save_world_info): Test
1564         cfun->has_nonlocal_label to determine if the out-of-line save
1565         world call may be used.
1566
1567 2011-09-07  Nick Clifton  <nickc@redhat.com>
1568
1569         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
1570         label on the parallel part of the insn.
1571
1572 2011-09-07  Jakub Jelinek  <jakub@redhat.com>
1573
1574         PR debug/50191
1575         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
1576         avoid_constant_pool_reference first instead of last.
1577
1578 2011-09-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1579
1580         * doc/configfiles.texi (Configuration Files): Update documentation
1581         about tm_p.h and remove FIXME comment.
1582
1583 2011-09-06  Uros Bizjak  <ubizjak@gmail.com>
1584
1585         * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
1586         (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
1587
1588 2011-09-06  Iain Sandoe  <iains@gcc.gnu.org>
1589
1590         * config/darwin10.h Remove duplicate LIB_SPEC.
1591
1592 2011-09-06  Enkovich Ilya  <ilya.enkovich@intel.com>
1593
1594         PR middle-end/44382
1595         * target.def (reassociation_width): New hook.
1596
1597         * doc/tm.texi.in (reassociation_width): Likewise.
1598
1599         * doc/tm.texi (reassociation_width): Likewise.
1600
1601         * doc/invoke.texi (tree-reassoc-width): New param documented.
1602
1603         * hooks.h (hook_int_uint_mode_1): New default hook.
1604
1605         * hooks.c (hook_int_uint_mode_1): Likewise.
1606
1607         * config/i386/i386.h (ix86_tune_indices): Add
1608         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1609
1610         (TARGET_REASSOC_INT_TO_PARALLEL): New.
1611         (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
1612
1613         * config/i386/i386.c (initial_ix86_tune_features): Add
1614         X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
1615
1616         (ix86_reassociation_width): New function.
1617
1618         * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
1619
1620         * tree-ssa-reassoc.c (get_required_cycles): New function.
1621         (get_reassociation_width): Likewise.
1622         (swap_ops_for_binary_stmt): Likewise.
1623         (rewrite_expr_tree_parallel): Likewise.
1624
1625         (rewrite_expr_tree): Refactored.  Part of code moved into
1626         swap_ops_for_binary_stmt.
1627
1628         (reassociate_bb): Now checks reassociation width to be used and
1629         call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
1630
1631 2011-09-06  Richard Guenther  <rguenther@suse.de>
1632
1633         PR tree-optimization/47025
1634         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
1635         uses nothing.
1636         (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
1637         BUILT_IN_FREE.
1638         (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
1639         definitely points to.
1640         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1641         BUILT_IN_VA_START doesn't let its va_list argument escape.
1642         * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
1643         not make any previous stores necessary.
1644
1645 2011-09-06  Martin Jambor  <mjambor@suse.cz>
1646
1647         * ipa-inline.h (struct inline_summary): Move versionable flag...
1648         * cgraph.h (struct cgraph_local_info): ...here
1649         * ipa-cp.c (determine_versionability): Use the new versionable flag.
1650         (determine_versionability): Likewise.
1651         (ipcp_versionable_function_p): Likewise.
1652         (ipcp_generate_summary): Likewise.
1653         * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
1654         versionable flag.
1655         (compute_inline_parameters): Do not clear the versionable flag.
1656         (inline_read_section): Do not stream the versionable flag.
1657         (inline_write_summary): Likewise.
1658         * lto-cgraph.c (lto_output_node): Stream the versionable flag.
1659         (input_overwrite_node): Likewise.
1660
1661 2011-09-06  Richard Guenther  <rguenther@suse.de>
1662
1663         PR tree-optimization/48149
1664         * tree-ssa-sccvn.c (vn_get_expr_for): Simplify.  Fix tuplification bug.
1665         (vn_valueize): Move earlier.
1666         (valueize_expr): Use vn_valueize.
1667         (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
1668         operands.
1669         (simplify_unary_expression): Simplify.
1670
1671 2011-09-06  Richard Guenther  <rguenther@suse.de>
1672
1673         PR tree-optimization/48317
1674         * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
1675         trailing array.
1676         (sizeof_vn_nary_op): New inline function.
1677         (vn_nary_op_lookup_pieces): Adjust.
1678         (vn_nary_op_insert_pieces): Likewise.
1679         * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
1680         (init_vn_nary_op_from_pieces): Adjust signature.  Deal with
1681         any number of operands.
1682         (vn_nary_length_from_stmt): New function.
1683         (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
1684         (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
1685         sized temporary.
1686         (vn_nary_op_lookup): Likewise.
1687         (vn_nary_op_lookup_stmt): Likewise.
1688         (vn_nary_op_insert_into): Likewise.
1689         (vn_nary_op_insert_stmt): Likewise.
1690         (visit_use): Handle CONSTRUCTOR as nary.
1691         * tree-ssa-pre.c (phi_translate_1): Adjust.
1692         (create_expression_by_pieces): Likewise.
1693         (compute_avail): Likewise.
1694
1695 2011-09-06  Ira Rosen  <ira.rosen@linaro.org>
1696
1697          * config/arm/arm.c (arm_preferred_simd_mode): Check
1698         TARGET_NEON_VECTORIZE_DOUBLE instead of
1699         TARGET_NEON_VECTORIZE_QUAD.
1700         (arm_autovectorize_vector_sizes): Likewise.
1701         * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
1702         mask of mvectorize-with-neon-double.  Add RejectNegative.
1703         (mvectorize-with-neon-double): New.
1704
1705 2011-09-06  Richard Guenther  <rguenther@suse.de>
1706
1707         * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
1708
1709 2011-09-06  Tom de Vries  <tom@codesourcery.com>
1710
1711         * recog.c (asm_labels_ok): New function.
1712         (check_asm_operands): Use asm_labels_ok.
1713
1714 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
1715
1716         PR target/49606
1717         * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
1718         (PMODE_INSN): New macro.
1719         * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
1720         (mips_got_load, mips_expand_synci_loop): Likewise.
1721         (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
1722         cprestore patterns.
1723         (mips_emit_loadgp): Use PMODE_INSN.  Handle SImode and DImode
1724         copygp_mips16 patterns.
1725         (mips_expand_prologue): Handle SImode and DImode potential_cprestore
1726         and use_cprestore patterns.
1727         (mips_override_options): Check for incompatible -mabi and -mlong
1728         combinations.
1729         * config/mips/mips.md (unspec_got<mode>): Rename to...
1730         (unspec_got_<mode>): ...this.
1731         (copygp_mips16): Use the Pmode iterator.
1732         (potential_cprestore, cprestore, use_cprestore): Likewise.
1733         (clear_cache, indirect_jump): Use PMODE_INSN.
1734         (indirect_jump<mode>): Rename to...
1735         (indirect_jump_<mode>): ...this.
1736         (tablejump): Use PMODE_INSN.
1737         (tablejump<mode>): Rename to...
1738         (tablejump_<mode>): ...this.
1739         (exception_receiver): Handle restore_gp_si and restore_gp_di.
1740         (restore_gp): Use the Pmode iterator.
1741         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
1742         PMODE_INSN.
1743
1744 2011-09-05  Richard Sandiford  <rdsandiford@googlemail.com>
1745
1746         * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
1747         Fix the type of the BIT_AND_EXPR.
1748
1749 2011-09-05  David S. Miller  <davem@davemloft.net>
1750
1751         * config.host: Add driver-sparc.o and sparc/x-sparc on
1752         native sparc*-*-linux* builds.
1753         * config/sparc/driver-sparc.c: Correct Linux strings.
1754         * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
1755         * config/sparc/linux64.h: Likewise.
1756         * doc/invoke.texi: Document that Linux also supports
1757         -mcpu=native and -mtune=native on sparc.
1758
1759         * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
1760         PROCESSOR_NIAGARA4): New.
1761         * config/sparc/sparc.opt: Handle new processor types.
1762         * config/sparc/sparc.md: Add to "cpu" attribute.
1763         * config/sparc/sparc.h (TARGET_CPU_niagara3,
1764         TARGET_CPU_niagara4): New, treat as niagara2.
1765         * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
1766         * config/sparc/sol2.h: Likewise.
1767         * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
1768         * config/sparc/sparc.c (sparc_option_override): Add
1769         niagara3 and niagara4 handling.
1770         (sparc32_initialize_trampoline): Likewise.
1771         (sparc64_initialize_trampoline): Likewise.
1772         (sparc_use_sched_lookahead): Likewise.
1773         (sparc_issue_rate): Likewise.
1774         (sparc_register_move_cost): Likewise.
1775         * config/sparc/driver-sparc.c (cpu_names): Use niagara3
1776         and niagara4 as appropriate.
1777         * doc/invoke.texi: Document new processor types.
1778         * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
1779         and --with-tune options.
1780
1781         * config/sparc/sol2-64.h: Move ...
1782         * config/sparc/default-64.h: ... to here.  Update comment.
1783         * config.gcc: Update Solaris sparc to use default-64.h, also
1784         prefix this header into the list on sparc64-*-linux.
1785         * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
1786         TARGET_64BIT_DEFAULT is defined.  Remove commented out reference
1787         to MASK_HARD_QUAD.
1788
1789 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
1790
1791         PR target/50289
1792         * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
1793         that contain global register variable.
1794
1795 2011-09-05  Richard Guenther  <rguenther@suse.de>
1796
1797         * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
1798
1799 2011-09-05  Richard Guenther  <rguenther@suse.de>
1800
1801         * stor-layout.c (layout_type): Use size_binop for array size
1802         calculations.
1803
1804 2011-09-05  Georg-Johann Lay  <avr@gjlay.de>
1805
1806         * config/avr/avr.h (progmem_section): Remove Declaration.
1807         * config/avr/avr.c (progmem_section): Make static and rename to
1808         progmem_swtable_section.
1809         (avr_output_addr_vec_elt): No need to switch sections.
1810         (avr_asm_init_sections): Use output_section_asm_op as section
1811         callback for progmem_swtable_section.
1812         (avr_output_progmem_section_asm_op): Remove Function.
1813         (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
1814         (avr_asm_function_rodata_section): New static Function.
1815         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
1816         alignment 2**1 for jump tables.
1817
1818 2011-09-04  Jan Hubicka  <jh@suse.cz>
1819
1820         * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
1821         parameter is SSA name.
1822
1823 2011-09-04  Richard Guenther  <rguenther@suse.de>
1824
1825         Revert
1826         2011-08-31  Richard Guenther  <rguenther@suse.de>
1827
1828         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1829         special-casing.
1830
1831 2011-09-04  Iain Sandoe  <iains@gcc.gnu.org>
1832
1833         PR debug/49901
1834         * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
1835
1836 2011-09-04  Jakub Jelinek  <jakub@redhat.com>
1837             Ira Rosen  <ira.rosen@linaro.org>
1838
1839         PR tree-optimization/50208
1840         * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
1841         argument.  Check that def_stmt is inside the loop.
1842         (vect_recog_widen_mult_pattern): Update calls to
1843         vect_handle_widen_mult_by_cons.
1844         (vect_operation_fits_smaller_type): Check that def_stmt is
1845         inside the loop.
1846
1847 2011-09-04  Ira Rosen  <ira.rosen@linaro.org>
1848
1849         * tree-vectorizer.c (vect_print_dump_info): Print line
1850         number when dumping to a file.
1851         (vectorize_loops): Add new messages to dump file.
1852
1853 2011-09-03  Martin Jambor  <mjambor@suse.cz>
1854
1855         * ipa-prop.h (ipa_jump_func_t): New typedef.
1856         (struct ipa_edge_args): Removed field argument_count, field
1857         jump_functions turned into a vector.
1858         (ipa_set_cs_argument_count): Removed.
1859         (ipa_get_cs_argument_count): Updated to work on vectors.
1860         (ipa_get_ith_jump_func): Likewise.
1861         * ipa-prop.c (ipa_count_arguments): Removed.
1862         (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
1863         jump functions.  Update caller.
1864         (compute_pass_through_member_ptrs): Likewise.
1865         (compute_cst_member_ptr_arguments): Likewise.
1866         (ipa_compute_jump_functions_for_edge): Get number of arguments from
1867         the statement, allocate vector.
1868         (ipa_compute_jump_functions): Do not call ipa_count_arguments.
1869         (duplicate_ipa_jump_func_array): Removed.
1870         (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
1871         (ipa_read_node_info): Allocate vector.
1872
1873 2011-09-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1874
1875         PR middle-end/50232
1876         * config/pa/pa.md (return): Define "return" insn pattern.
1877         (epilogue): Use it when no epilogue is needed.
1878         * config/pa/pa.c (pa_can_use_return_insn): New function.
1879         * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
1880
1881 2011-09-03  Eric Botcazou  <ebotcazou@adacore.com>
1882
1883         * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
1884         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
1885         Force at least BITS_PER_UNIT alignment on the new variable.
1886
1887 2011-09-02  Gary Funck <gary@intrepid.com>
1888
1889         * opts.c (print_specific_help): Fix off-by-one compare in
1890         assertion check.
1891         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1892         CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
1893         Increase by +5 to allow for more languages.
1894         * optc-gen.awk: Generate #if that ensures that the number of
1895         languages is within the implementation-defined limit.
1896
1897 2011-09-02  Michael Matz  <matz@suse.de>
1898
1899         PR middle-end/50260
1900         * ipa-split.c (split_function): Call add_referenced_var.
1901
1902         * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
1903         (cond_if_else_store_replacement_1): Ditto.
1904         * tree-ssa-pre.c (get_representative_for): Ditto.
1905         (create_expression_by_pieces): Ditto.
1906         (insert_into_preds_of_block): Ditto.
1907         * tree-sra.c (create_access_replacement): Ditto.
1908         (get_replaced_param_substitute): Ditto.
1909
1910 2011-09-02  Bernd Schmidt  <bernds@codesourcery.com>
1911
1912         * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1913         automata_options.
1914         (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1915         (l1w, s1w, l2w, s2w): Define in the main automaton.
1916         (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1917         units.
1918         * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1919         (c6x_unit_names): Add the new units.
1920         (c6x_unit_codes): New static array.
1921         (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1922         UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1923         UNIT_QID_SIDE_OFFSET): New macros.
1924         (RESERVATION_S2): Adjust value.
1925         (c6x_option_override): Compute c6x_unit_codes.
1926         (assign_reservations): Take the unit_mask of the last instruction
1927         into account.  Detect floating point reservations by looking for
1928         the new units.  Don't assign reservations if the field is already
1929         nonzero.
1930         (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1931         (init_sched_state): Initialize it.
1932         (c6x_clear_sched_context): Free it.
1933         (insn_set_clock): Clear reservation.
1934         (prev_cycle_state): New static variable.
1935         (c6x_init_sched_context): Save it.
1936         (c6x_sched_init): Allocate space for it and clear it.
1937         (c6x_sched_dfa_pre_cycle_insn): New static function.
1938         (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1939         (c6x_variable_issue): Only record units in the unit_mask that
1940         were not set at the start of the cycle.
1941         (c6x_variable_issue): Compute and store the unit_mask from the
1942         current state.
1943         (reorg_split_calls): Ensure the new information remains correct.
1944         (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1945         TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1946         * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1947         * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1948         Add special reservations.
1949         * config/c6x/c6x-sched.md: Regenerate.
1950
1951 2011-09-02  Martin Jambor  <mjambor@suse.cz>
1952
1953         * ipa-prop.h (ipa_node_params): Removed fields
1954         called_with_var_arguments and node_versionable.
1955         (ipa_set_called_with_variable_arg): Removed.
1956         (ipa_is_called_with_var_arguments): Likewise.
1957         * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1958         (determine_versionability): Do not check for type attributes and va
1959         builtins.  Record versionability into inline summary.
1960         (initialize_node_lattices): Do not check
1961         ipa_is_called_with_var_arguments.
1962         (propagate_constants_accross_call): Likewise, ignore arguments we do
1963         not have PARM_DECLs for, set variable flag for parameters that were
1964         not passed a value.
1965         (create_specialized_node): Dump info that we cannot change signature.
1966         * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1967         number of arguments.
1968         (ipa_make_edge_direct_to_target): Likewise.
1969         (ipa_update_after_lto_read): Likewise.
1970         (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1971         * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1972         they were remapped.
1973
1974 2011-09-02  Richard Guenther  <rguenther@suse.de>
1975
1976         PR tree-optimization/27460
1977         PR middle-end/29269
1978         * doc/md.texi (vcond): Document.
1979         * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1980         optab with two modes.
1981         * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1982         (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1983         (vcond_optab): Adjust.
1984         (vcondu_optab): Likewise.
1985         (expand_vec_cond_expr_p): Adjust prototype.
1986         * optabs.c (get_vcond_icode): Adjust.
1987         (expand_vec_cond_expr_p): Likewise.
1988         (expand_vec_cond_expr): Likewise.
1989         * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1990         vector type.
1991         (vectorizable_condition): Allow differing types for comparison
1992         and result.
1993         * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1994         for the comparison.
1995         * config/i386/sse.md (vcond<mode>): Split to
1996         vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1997         vcond<V_128:mode><VI124_128:mode> and
1998         vcondu<V_128:mode><VI124_128:mode>.
1999         (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
2000         (vconduv2di): Likewise.
2001         * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
2002         (vcondu<mode>): Likewise.
2003         * config/ia64/vect.md (vcond<mode>): Likewise.
2004         (vcondu<mode>): Likewise.
2005         (vcondv2sf): Likewise.
2006         * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
2007         * config/rs6000/paired.md (vcondv2sf): Likewise.
2008         * config/rs6000/vector.md (vcond<mode>): Likewise.
2009         (vcondu<mode>): Likewise.
2010         * config/spu/spu.md (vcond<mode>): Likewise.
2011         (vcondu<mode>): Likewise.
2012
2013 2011-09-02  Richard Guenther  <rguenther@suse.de>
2014
2015         * pretty-print.h (pp_unsigned_wide_integer): New.
2016         * tree-pretty-print.c (dump_generic_node): Print unsigned
2017         host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
2018
2019 2011-09-02  Richard Sandiford  <richard.sandiford@linaro.org>
2020
2021         PR target/49987
2022         * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
2023         valid CONST_VECTOR operands.
2024         (rs6000_expand_vector_init): Likewise.
2025
2026 2011-09-02  Martin Jambor  <mjambor@suse.cz>
2027
2028         * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
2029         * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
2030         BINFO_VTABLE.  Parameter delta removed, all callers updated.
2031         * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
2032         BINFO_VTABLE.
2033         * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
2034         all calls.
2035         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
2036         handling of thunk_delta.
2037         * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
2038         (devirtualization_time_bonus): Do not handle thunk deltas.
2039         (ipcp_discover_new_direct_edges): Likewise.
2040         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2041         (try_make_edge_direct_simple_call): Likewise.
2042         (try_make_edge_direct_virtual_call): Likewise.
2043         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2044         parameter set as unused.
2045         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2046         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.  Mark
2047         parameter set as unused.
2048         (output_edge_opt_summary): Likewise.  Mark both parameters as unused.
2049         (input_edge_opt_summary): Likewise.
2050         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
2051         BINFO_VIRTUALS at all.
2052         * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
2053
2054 2011-09-02  Richard Guenther  <rguenther@suse.de>
2055
2056         * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
2057         (ccp_fold_stmt): Continue replacing args when folding alloca fails.
2058
2059 2011-08-31  Richard Guenther  <rguenther@suse.de>
2060
2061         * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
2062         handling here, from ...
2063         (expand_expr_real_1): ... here.
2064         * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
2065         and VEC_COND_EXPR.
2066         * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
2067         a GIMPLE_TERNARY_RHS.
2068         * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
2069         and VEC_COND_EXPR here ...
2070         (verify_gimple_assign_single): ... not here.
2071         * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
2072         * tree-object-size.c (cond_expr_object_size): Adjust.
2073         (collect_object_sizes_for): Likewise.
2074         * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
2075         * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
2076         (ssa_forward_propagate_and_combine): Adjust.
2077         * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
2078         as ternary.
2079         * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
2080         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
2081         * tree-vect-stmt.c (vectorizable_condition): Likewise.
2082         * tree-vrp.c (extract_range_from_cond_expr): Likewise.
2083         (extract_range_from_assignment): Likewise.
2084
2085 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2086
2087         * config/i386/i386.md: Use (match_test ...) for attribute tests.
2088         * config/i386/mmx.md: Likewise.
2089         * config/i386/sse.md: Likewise.
2090         * config/i386/predicates.md (call_insn_operand): Use
2091         (not (match_test "...")) instead of (match_test "!...")
2092         * config/i386/constraints.md (w): Likewise.
2093
2094 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2095
2096         * doc/md.texi: Describe the use of match_tests in attribute tests.
2097         * rtl.def (MATCH_TEST): Update commentary.
2098         * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
2099         (write_test_expr, walk_attr_value): Handle MATCH_TEST.
2100
2101 2011-08-31  Richard Sandiford  <rdsandiford@googlemail.com>
2102
2103         * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
2104         (attr_string): Use copy_md_ptr_loc.
2105
2106 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2107
2108         PR middle-end/49886
2109         * ipa-inline-analysis.c (compute_inline_parameters): Set
2110         can_change_signature of noes with typde attributes.
2111         * ipa-split.c (split_function): Do not skip any arguments if
2112         can_change_signature is set.
2113
2114 2011-08-31  Martin Jambor  <mjambor@suse.cz>
2115
2116         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
2117         check removed.
2118
2119 2011-08-31  Richard Guenther  <rguenther@suse.de>
2120
2121         * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
2122         special-casing.
2123
2124 2011-08-31  Marc Glisse  <marc.glisse@inria.fr>
2125
2126         * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
2127
2128 2011-08-31  Tom de Vries  <tom@codesourcery.com>
2129
2130         PR middle-end/43513
2131         * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
2132         * tree-ssa-ccp.c (params.h): Include.
2133         (fold_builtin_alloca_for_var): New function.
2134         (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
2135
2136 2011-08-30  Uros Bizjak  <ubizjak@gmail.com>
2137
2138         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2139         Handle FMA option.
2140
2141 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2142
2143         * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
2144         b3 and b4 unsigned.
2145
2146 2011-08-30  Andrew Stubbs  <ams@codesourcery.com>
2147
2148         * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
2149         when code is SET.
2150
2151 2011-08-30  Richard Guenther  <rguenther@suse.de>
2152
2153         PR middle-end/48571
2154         * gimple.h (maybe_fold_offset_to_address): Remove.
2155         (maybe_fold_offset_to_reference): Likewise.
2156         (maybe_fold_stmt_addition): Likewise.
2157         (may_propagate_address_into_dereference): Likewise.
2158         * tree-inline.c (remap_gimple_op_r): Do not reconstruct
2159         array references.
2160         * gimple-fold.c (canonicalize_constructor_val): Likewise.
2161         Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
2162         addresses instead.
2163         (may_propagate_address_into_dereference): Remove.
2164         (maybe_fold_offset_to_array_ref): Likewise.
2165         (maybe_fold_offset_to_reference): Likewise.
2166         (maybe_fold_offset_to_address): Likewise.
2167         (maybe_fold_stmt_addition): Likewise.
2168         (fold_gimple_assign): Do not reconstruct array references but
2169         instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
2170         MEM_REF addresses.
2171         (gimple_fold_stmt_to_constant_1): Likewise.
2172         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2173         * gimplify.c (gimplify_conversion): Likewise.
2174         (gimplify_expr): Likewise.
2175
2176 2011-08-30  Ilya Tocar  <ilya.tocar@intel.com>
2177
2178         * config/i386/fmaintrin.h: New.
2179         * config.gcc: Add fmaintrin.h.
2180         * config/i386/i386.c
2181         (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
2182         <IX86_BUILTIN_VFMADDSD3>: Likewise.
2183         * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
2184         (*fmai_fmadd_<mode>): Likewise.
2185         (*fmai_fmsub_<mode>): Likewise.
2186         (*fmai_fnmadd_<mode>): Likewise.
2187         (*fmai_fnmsub_<mode>): Likewise.
2188         * config/i386/immintrin.h: Add fmaintrin.h.
2189
2190 2011-08-30  Bernd Schmidt  <bernds@codesourcery.com>
2191
2192         * genautomata.c (NO_COMB_OPTION): New macro.
2193         (no_comb_flag): New static variable.
2194         (gen_automata_option): Handle NO_COMB_OPTION.
2195         (comb_vect_p): False if no_comb_flag.
2196         (add_vect): Move computation of min/max values.  Return early if
2197         no_comb_flag.
2198         * doc/md.texi (automata_option): Document no-comb-vect.
2199
2200         * config/i386/i386.c (get_pc_thunk_name): Change prefix to
2201         "__x86.get_pc_thunk".
2202
2203         * bb-reorder.c (insert_section_boundary_note): Only do it if
2204         we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
2205
2206 2011-08-30  Christian Bruel  <christian.bruel@st.com>
2207
2208         * coverage.c (coverage_init): Check flag_branch_probabilities instead of
2209         flag_profile_use.
2210
2211 2011-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2212
2213         * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
2214         to off.  Document switch.
2215         * doc/invoke.texi (-msave-toc-indirect): Ditto.
2216
2217 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2218
2219         * gthr-posix.h (__gthread_active_p): Do not use preprocessor
2220         conditionals and comments inside macro arguments.
2221
2222 2011-08-29  Artjoms Sinkarovs  <artyom.shinkaroff@gmail.com>
2223             Richard Guenther  <rguenther@suse.de>
2224
2225         * tree.h (constant_boolean_node): Adjust prototype.
2226         * fold-const.c (fold_convert_loc): Move aggregate conversion
2227         leeway down.
2228         (constant_boolean_node): Make value parameter boolean, add
2229         vector type handling.
2230         (fold_unary_loc): Use constant_boolean_node.
2231         (fold_binary_loc): Preserve types properly when folding
2232         COMPLEX_EXPR <__real x, __imag x>.
2233         * gimplify.c (gimplify_expr): Handle vector comparison.
2234         * tree.def (EQ_EXPR, ...): Document behavior on vector typed
2235         comparison.
2236         * tree-cfg.c (verify_gimple_comparison): Verify vector typed
2237         comparisons.
2238
2239 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2240
2241         PR middle-end/48722
2242         * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
2243         reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
2244         (verify_rtl_sharing): Likewise and verify_rtx_sharing
2245         in there too.
2246         (unshare_all_rtl_in_chain): For CALL_INSNs
2247         copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
2248
2249 2011-08-29  Richard Guenther  <rguenther@suse.de>
2250
2251         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
2252         on the built ADDR_EXPR.
2253
2254 2011-08-29  Jakub Jelinek  <jakub@redhat.com>
2255
2256         PR debug/50215
2257         * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
2258         before adding ENTRY_VALUE to val->locs.
2259
2260 2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
2261
2262         PR bootstrap/50218
2263         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
2264         comp.
2265
2266 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
2267
2268         * doc/rtl.texi (simple_return): Document.
2269         (parallel, PATTERN): Here too.
2270         * doc/md.texi (return): Mention it's allowed to expand to simple_return
2271         in some cases.
2272         (simple_return): Document standard pattern.
2273         * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
2274         * final.c (final_scan_insn): Use ANY_RETURN_P on body.
2275         * reorg.c (function_return_label, function_simple_return_label):
2276         New static variables, replacing...
2277         (end_of_function_label): ... this.
2278         (simplejump_or_return_p): New static function.
2279         (optimize_skip, steal_delay_list_from_fallthrough,
2280         fill_slots_from_thread): Use it.
2281         (relax_delay_slots): Likewise.  Use ANY_RETURN_P on body.
2282         (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
2283         (find_end_label): Take a new arg which is one of the two return
2284         rtxs.  Depending on which, set either function_return_label or
2285         function_simple_return_label.  All callers changed.
2286         (make_return_insns): Make both kinds.
2287         (dbr_schedule): Adjust for two kinds of end labels.
2288         * function.c (emit_return_into_block): Set JUMP_LABEL properly.
2289         * genemit.c (gen_exp): Handle SIMPLE_RETURN.
2290         (gen_expand, gen_split): Use ANY_RETURN_P.
2291         * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
2292         * rtl.def (SIMPLE_RETURN): New code.
2293         * ifcvt.c (find_if_case_1): Be more careful about
2294         redirecting jumps to the EXIT_BLOCK.
2295         * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
2296         returnjump_p_1): Handle SIMPLE_RETURNs.
2297         * print-rtl.c (print_rtx): Likewise.
2298         * rtl.c (copy_rtx): Likewise.
2299         * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
2300         * combine.c (simplify_set): Likewise.
2301         * resource.c (find_dead_or_set_registers, mark_set_resources):
2302         Likewise.
2303         * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
2304         copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
2305         (init_emit_regs): Initialize simple_return_rtx.
2306         * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
2307         force_nonfallthru_and_redirect.
2308         * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
2309         (GR_SIMPLE_RETURN): New enum value.
2310         (simple_return_rtx): New macro.
2311         * basic-block.h (force_nonfallthru_and_redirect): Adjust
2312         declaration.
2313         * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
2314         argument.  All callers changed.  Be careful about what kinds of
2315         returnjumps to generate.
2316         * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
2317         ix86_pad_short_function): Likewise.
2318         * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
2319         of return.
2320         * config/mips/mips.md (any_return): New code_iterator.
2321         (optab): Add cases for return and simple_return.
2322         (return): Expand to a simple_return.
2323         (simple_return): New pattern.
2324         (*<optab>, *<optab>_internal for any_return): New patterns.
2325         (return_internal): Remove.
2326         * config/mips/mips.c (mips_expand_epilogue): Make the last insn
2327         a simple_return_internal.
2328
2329 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2330
2331         * config/i386/sse.md (*absneg<mode>2): Fix split condition.
2332         (vec_extract_lo_<mode>): Prevent both operands in memory.
2333         (vec_extract_lo_v16hi): Ditto.
2334         (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
2335
2336 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2337
2338         * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
2339         (*sse2_mulv4si3): Ditto.
2340         (mulv2di3): Ditto.
2341         * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
2342         notes to REG_EQUAL.
2343
2344 2011-08-27  Uros Bizjak  <ubizjak@gmail.com>
2345
2346         PR target/50202
2347         * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
2348         when all outputs are unused.
2349         (sse4_2_pcmpistr): Ditto.
2350
2351 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2352
2353         * config/i386/i386.md (round<mode>2): New expander.
2354         * config/i386/i386.c (enum ix86_builtins): Add
2355         IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
2356         (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
2357         descriptions.
2358         (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
2359         (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
2360
2361 2011-08-26  Uros Bizjak  <ubizjak@gmail.com>
2362
2363         PR middle-end/50083
2364         * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
2365         only when TARGET_C99_FUNCTIONS.
2366         <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
2367         <BUILT_IN_RINT{,F,L}>: Ditto.
2368
2369 2011-08-26  Michael Matz  <matz@suse.de>
2370             Jakub Jelinek  <jakub@redhat.com>
2371
2372         PR lto/50165
2373         * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
2374         don't call strlen twice, use memcpy.
2375
2376 2011-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2377
2378         * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
2379         * config/i386/bmiintrin.h: Likewise.
2380         * config/i386/lzcntintrin.h: Likewise.
2381
2382         * config/i386/immintrin.h: Include <lzcntintrin.h>,
2383         <bmiintrin.h> and <bmi2intrin.h>.
2384
2385 2011-08-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2386
2387         PR target/50166
2388         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
2389         * configure: Regenerate.
2390
2391 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2392
2393         PR c/50179
2394         * c-typeck.c (c_process_expr_stmt): Skip over nops and
2395         call mark_exp_read even if exprv is ADDR_EXPR.
2396
2397 2011-08-26  Richard Sandiford  <richard.sandiford@linaro.org>
2398
2399         * df-problems.c (df_note_bb_compute): Pass uses rather than defs
2400         to df_set_dead_notes_for_mw.
2401
2402 2011-08-26  Richard Guenther  <rguenther@suse.de>
2403
2404         * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
2405
2406 2011-08-26  Zdenek Dvorak  <ook@ucw.cz>
2407             Tom de Vries  <tom@codesourcery.com>
2408
2409         * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
2410         (struct ivopts_data): Add loop_single_exit_p field.
2411         (niter_for_exit): Change parameter desc_p into return value.  Return
2412         desc if desc->may_be_zero.  Free desc if unused.
2413         (niter_for_single_dom_exit): Change return type.
2414         (find_induction_variables): Handle changed return type of
2415         niter_for_single_dom_exit.  Dump may_be_zero.
2416         (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
2417         (set_use_iv_cost): Add and handle comp parameter.
2418         (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
2419         comp argument to set_use_iv_cost.
2420         (strip_wrap_conserving_type_conversions, expr_equal_p)
2421         (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
2422         (may_eliminate_iv): Add comp parameter.  Handle new return type of
2423         niter_for_exit.  Use loop_single_exit_p.  Use iv_elimination_compare_lt.
2424         (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
2425         and may_eliminate_iv.
2426         (rewrite_use_compare): Move call to iv_elimination_compare to ...
2427         (may_eliminate_iv): Here.
2428         (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
2429
2430 2011-08-26  Tom de Vries  <tom@codesourcery.com>
2431
2432         * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
2433         accessing TREE_TYPE.
2434
2435 2011-08-26  Jiangning Liu  <jiangning.liu@arm.com>
2436
2437         * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
2438         (*ior_scc_scc_cmp): Likewise
2439         (*and_scc_scc): Likewise.
2440         (*and_scc_scc_cmp): Likewise.
2441         (*and_scc_scc_nodom): Likewise.
2442         (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
2443
2444 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2445
2446         * rtlanal.c (nonzero_bits1): Handle CLRSB.
2447
2448 2011-08-26  Richard Guenther  <rguenther@suse.de>
2449
2450         * expr.c (string_constant): Handle &MEM_REF.
2451
2452 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2453
2454         * config/arm/arm.c (struct four_ints): New type.
2455         (count_insns_for_constant): Delete function.
2456         (find_best_start): Delete function.
2457         (optimal_immediate_sequence): New function.
2458         (optimal_immediate_sequence_1): New function.
2459         (arm_gen_constant): Move constant splitting code to
2460         optimal_immediate_sequence.
2461         Rewrite constant negation/invertion code.
2462
2463 2011-08-26  Andrew Stubbs  <ams@codesourcery.com>
2464
2465         * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
2466         * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
2467         Remove prototype. Remove static function type.
2468         * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
2469         Add arch attribute.
2470         * config/arm/constraints.md (Pj, PJ): New constraints.
2471
2472 2011-08-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2473
2474         * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
2475         ("cortex_a9_multiply_long"): New and use above.  Handle all
2476         long multiply cases.
2477         ("cortex_a9_multiply"): Handle smmul and smmulr.
2478         ("cortex_a9_mac"): Handle smmla.
2479
2480 2011-08-25  Richard Henderson  <rth@redhat.com>
2481
2482         PR 50132
2483         PR 49864
2484         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
2485         non-constant stack adjutment.
2486         * expr.c (find_args_size_adjust): Break out from ...
2487         (fixup_args_size_notes): ... here.
2488         * rtl.h (find_args_size_adjust): Declare.
2489
2490 2011-08-25  Uros Bizjak  <ubizjak@gmail.com>
2491
2492         * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
2493         sse4 and sse4_noavx.
2494         (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
2495         (*pushdf_rex64): Change Y2 register constraint to x.
2496         (*movdf_internal_rex64): Ditto.
2497         (*zero_extendsidi2_rex64): Ditto.
2498         (*movdi_internal): Change Y2 register constraint to x
2499         and update "isa" attribute.
2500         (*pushdf): Ditto.
2501         (*movdf internal): Ditto.
2502         (zero_extendsidi2_1): Ditto.
2503         (*truncdfdf_mixed): Ditto.
2504         (*truncxfdf2_mixed): Ditto.
2505         * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
2506         register constraint to x.
2507         (*movv2sf_internal_rex64): Ditto.
2508         (*mov<mode>_internal): Change Y2 register constraint to x
2509         and add "isa" attribute.
2510         (*movv2sf_internal): Ditto.
2511         (*vec_extractv2si_1): Ditto.
2512         * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
2513         constraints to x and update "isa" attribute.
2514         (*vec_interleave_highv2df): Change Y3 registerconstraint
2515         to x and update "isa" attribute.
2516         (*vec_interleave_lowv2df): Ditto.
2517         (*vec_concatv2df): Change Y2 register constraint to x and
2518         update "isa" attribute.
2519         (sse2_loadld): Ditto.
2520         (*vec_extractv2di_1): Ditto.
2521         (*vec_dupv4si): Ditto.
2522         (*vec_dupv2di): Ditto.
2523         (*vec_concatv4si): Ditto.
2524         (vec_concatv2di): Ditto.
2525         * config/i386/constraints.md (Y2): Remove.
2526         (Y3): Ditto.
2527         (Y4): Ditto.
2528
2529 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2530
2531         * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
2532         dump_def_use_chain): Don't declare.
2533         (mark_conflict, create_new_chain): Move before users.
2534         (regrename_optimize): Move to near end of file.
2535
2536 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2537
2538         * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
2539         (secondary_input_reload_class): Remove Prototype.
2540         * config/avr/avr.c (byte_immediate_operand): Remove Function.
2541         * config/avr/avr.md (setmemhi): Use u8_operand.
2542         (strlenhi): Use const0_rtx for comparison.
2543         * config/avr/avr.h (avr_reg_order): Remove Declaration.
2544
2545 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2546
2547         * config/avr/avr.c (reg_class_tab): Make local to
2548         avr_regno_reg_class.  Return smallest register class available.
2549
2550 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2551
2552         * config/avr/avr.c (STR_PREFIX_P): New Define.
2553         (avr_asm_declare_function_name): Use it.
2554         (avr_asm_named_section): Use it.
2555         (avr_section_type_flags): Use it.
2556
2557 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2558
2559         * doc/md.texi (automata_option): Document collapse-ndfa.
2560         * genautomata.c (COLLAPSE_OPTION): New macro.
2561         (collapse_flag): New static variable.
2562         (struct description): New member normal_decls_num.
2563         (struct automaton): New members advance_ainsn and collapse_ainsn.
2564         (gen_automata_option): Check for COLLAPSE_OPTION.
2565         (collapse_ndfa_insn_decl): New static variable.
2566         (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
2567         (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
2568         (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
2569         necessary.  Use normal_decls_num rather than decls_num, remove
2570         test for special decls.
2571         (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
2572         (make_automaton); Likewise.  Use the new advance_cycle_insn member
2573         of struct automaton.
2574         (create_composed_state): Disallow advance-cycle arcs if collapse_flag
2575         is set.
2576         (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
2577         transition.  Create the necessary transitions for it.
2578         (create_ainsns): Return void.  Take an automaton_t argument, and
2579         update its ainsn_list, advance_ainsn and collapse_ainsn members.  All
2580         callers changed.
2581         (COLLAPSE_NDFA_VALUE_NAME): New macro.
2582         (output_tables): Output code to define it.
2583         (output_internal_insn_code_evaluation): Output code to accept
2584         const0_rtx as collapse-ndfa transition.
2585         (output_default_latencies, output_print_reservation_func,
2586         output_print_description): Reorganize loops to use normal_decls_num
2587         as loop bound; remove special case for advance_cycle_insn_decl.
2588         (initiate_automaton_gen): Handle COLLAPSE_OPTION.
2589         (check_automata_insn_issues): Check for collapse_ainsn.
2590         (expand_automate): Allocate sufficient space.  Initialize
2591         normal_decls_num.
2592
2593 2011-08-25  Georg-Johann Lay  <avr@gjlay.de>
2594
2595         * config/avr/avr.md: Fix indentation from r177991.
2596
2597 2011-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2598
2599         * regrename.c (struct du_head): Remove member terminated.
2600         (create_new_chain): Don't initialize it.
2601         (scan_rtx_reg): Don't set or test it, test the open_chains_set
2602         bitmap instead.
2603         (tick, this_tick): New global variables, moved out of
2604         regrename_optimize.
2605         (current_id, open_chains, closed_chains, open_chains_set,
2606         live_in_chains, live_hard_regs): Reorder declarations.
2607         (dump_def_use_chain): Move function earlier in the file.
2608         (rename_chains): New static function, broken out of
2609         regrename_optimize.
2610         (regrename_optimize): Use it.  Remove #if 0'ed code.
2611
2612 2011-08-25  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2613
2614         * varasm.c: (default_binds_local_p_1): Commentary typo fix.
2615
2616 2011-08-24  H.J. Lu  <hongjiu.lu@intel.com>
2617
2618         PR target/50172
2619         * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
2620
2621 2011-08-24  Richard Guenther  <rguenther@suse.de>
2622
2623         * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
2624         ref in the basic-block case.  Move stripping array-refs
2625         to the place we create an access-function for it.  Remove
2626         bogus stripping down a MEM_REF to its base.
2627
2628 2011-08-24  Richard Guenther  <rguenther@suse.de>
2629
2630         * fold-const.c (fold_comparison): Fold &a < &a + 4 even
2631         with -fno-strict-overflow.
2632
2633 2011-08-24  Richard Guenther  <rguenther@suse.de>
2634
2635         * tree-vectorizer.c (vect_print_dump_info): Avoid the
2636         file and location clutter when dumping to dump files.
2637
2638 2011-08-24  Simon Baldwin  <simonb@google.com>
2639
2640         * gengtype-state.c (write_state): Remove timestamped header line.
2641
2642 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2643
2644         * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
2645         (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
2646         (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
2647         (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
2648         (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
2649         (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
2650         (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
2651         rules.
2652         (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
2653
2654 2011-08-24  Joseph Myers  <joseph@codesourcery.com>
2655
2656         * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
2657
2658 2011-08-24  Richard Guenther  <rguenther@suse.de>
2659
2660         PR tree-optimization/50067
2661         * tree-data-ref.c (dr_analyze_indices): Do not add an access
2662         function for a MEM_REF base that has no evolution in the loop
2663         nest or that is not analyzable.
2664
2665 2011-08-23  Vladimir Makarov  <vmakarov@redhat.com>
2666
2667         * ira.c (ira_init_register_move_cost): Check small subclasses
2668         through ira_reg_class_max_nregs and ira_available_class_regs.
2669
2670 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2671
2672         * config/i386/constraints.md (Yp): New register constraint.
2673         * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
2674         Yp register constraint.
2675         (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
2676         (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
2677         (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
2678
2679 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2680
2681         * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
2682
2683 2011-08-23  Mark Heffernan  <meheff@google.com>
2684
2685         PR middle-end/38509
2686         * common.opt (Wfree-nonheap-object): New option.
2687         * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
2688         * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
2689         to warning.
2690         (expand_builtin): Make warning conditional.
2691
2692 2011-08-23  Uros Bizjak  <ubizjak@gmail.com>
2693
2694         * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
2695         (length_immediate): Handle imulx, ishiftx and rotatex.
2696         (imm_disp): Ditto.
2697         (isa): Add bmi2.
2698         (enabled): Handle bmi2.
2699         (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
2700         (*umul<mode><dwi>3): Ditto.  Add imulx BMI2 alternative.
2701         (*bmi2_umulditi3_1): New insn pattern.
2702         (*bmi2_umulsidi3_1): Ditto.
2703         (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
2704         (*bmi2_ashl<mode>3_1): New insn pattern.
2705         (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
2706         (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
2707         (*bmi2_ashlsi3_1_zext): New insn pattern.
2708         (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
2709         (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
2710         (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
2711         (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
2712         (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
2713         flags dependency.
2714         (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
2715         (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
2716         (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
2717         flags dependency.
2718         (*bmi2_rorx<mode>3_1): New insn pattern.
2719         (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
2720         (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
2721         (*rotatert<mode>3_1 splitter): Ditto.
2722         (*bmi2_rorxsi3_1_zext): New insn pattern.
2723         (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
2724         (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
2725         (*rotatertsi3_1_zext splitter): Ditto.
2726
2727 2011-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2728
2729         * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
2730         (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
2731         (ix86_handle_option): Handle OPT_mbmi2 case.
2732         * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
2733         (x86_64-*-*): Likewise.
2734         * config/i386/bmi2intrin.h: New file.
2735         * config/i386/cpuid.h (bit_BMI2): New.
2736         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2737         BMI2 feature.
2738         * config/i386/i386-c.c (ix86_target_macros_internal):
2739         Conditionally define __BMI2__.
2740         * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
2741         Handle BMI2 option.
2742         (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
2743         (print_reg): New code.
2744         (ix86_print_operand): Likewise.
2745         (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2746         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2747         IX86_BUILTIN_PEXT64.
2748         (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
2749         IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
2750         IX86_BUILTIN_PEXT64.
2751         * config/i386/i386.h (TARGET_BMI2): New.
2752         * config/i386/i386.md (UNSPEC_PDEP): New.
2753         (UNSPEC_PEXT): Likewise.
2754         (*bmi2_bzhi_<mode>3): Likewise.
2755         (*bmi2_pdep_<mode>3): Likewise.
2756         (*bmi2_pext_<mode>3): Likewise.
2757         * config/i386/i386.opt (mbmi2): New.
2758         * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
2759         is defined.
2760         * doc/extend.texi: Document BMI2 built-in functions.
2761         * doc/invoke.texi: Document -mbmi2.
2762
2763 2011-08-23  Jakub Jelinek  <jakub@redhat.com>
2764
2765         PR middle-end/50161
2766         * simplify-rtx.c (simplify_const_unary_operation): If
2767         op is CONST_INT, don't look at op_mode, but use instead mode.
2768         * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
2769         CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
2770         operation and TRUNCATE/ZERO_EXTEND if needed.
2771         * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
2772         Document that operand mode must be same as operation mode,
2773         or VOIDmode.
2774         * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
2775         *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
2776         *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
2777         *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
2778         use the mode of operand for the operation and add truncate
2779         or zero_extend around if needed.
2780         * config/c6x/c6x.md (ctzdi2): Likewise.
2781         * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
2782
2783 2011-08-12  Michael Matz  <matz@suse.de>
2784
2785         * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
2786         (gimple_expand_cfg): Merge alignment info for coalesced pointer
2787         SSA names.
2788
2789 2011-08-23  Richard Guenther  <rguenther@suse.de>
2790
2791         * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
2792         * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
2793         * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
2794         from ...
2795         * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
2796         (mem_refs_may_alias_p): Adjust.
2797         * tree-data-ref.h (dr_may_alias_p): Adjust.
2798         * tree-data-ref.c: Include tree-affine.h.
2799         (dr_analyze_indices): Do nothing for the non-loop case.
2800         (dr_may_alias_p): Distinguish loop and non-loop case.  Disambiguate
2801         more cases in the non-loop case.
2802         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
2803         calls to dr_may_alias_p.
2804         (write_alias_graph_to_ascii_ecc): Likewise.
2805         (write_alias_graph_to_ascii_dot): Likewise.
2806         (build_alias_set_optimal_p): Likewise.
2807
2808 2011-08-23  Richard Guenther  <rguenther@suse.de>
2809
2810         PR tree-optimization/50162
2811         * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
2812
2813 2011-08-23  Richard Guenther  <rguenther@suse.de>
2814
2815         * tree-data-ref.c (dr_analyze_indices): Add comments, handle
2816         REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
2817         (create_data_ref): Also dump access functions for the created data-ref.
2818
2819 2011-08-22  Uros Bizjak  <ubizjak@gmail.com>
2820             Kirill Yukhin  <kirill.yukhin@intel.com>
2821
2822         PR target/50155
2823         * config/i386/sse.md (VI_AVX2): New.
2824         (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
2825         (*<plusminus_insn><mode>3): Ditto.
2826         (<sse2_avx2>_andnot<mode>3): Ditto.
2827         (*andnot<mode>3): Fix order of cond operands.
2828         Add asserts for correct TARGET_xxx.
2829         (*<any_logic:code><mode>3): Ditto.
2830
2831 2011-08-22  Anatoly Sokolov  <aesok@post.ru>
2832
2833         * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
2834         * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
2835         * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
2836         regclass argument type to reg_class_t. Change 'max' and 'v' vars
2837         and return types to unsigned char. Use reg_class_contents instead
2838         of class_contents.
2839         (TARGET_CLASS_MAX_NREGS): Define.
2840
2841 2011-08-22  Bernd Schmidt  <bernds@codesourcery.com>
2842
2843         * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
2844         to make computed_jump_p return true.
2845
2846 2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2847
2848         * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
2849         (PICFLAG_FOR_TARGET): Substitute.
2850         * aclocal.m4: Regenerate.
2851         * configure: Regenerate.
2852
2853 2011-08-22  Dodji Seketeli  <dodji@redhat.com>
2854
2855         * c-family/c-pch.c (c_common_read_pch): Re-set line table right
2856         after reading in the pch.
2857
2858 2011-08-22  H.J. Lu  <hongjiu.lu@intel.com>
2859
2860         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
2861         * configure: Regenerated.
2862
2863 2011-08-22  Jakub Jelinek  <jakub@redhat.com>
2864
2865         PR tree-optimization/50133
2866         * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
2867         from stmt instead of some statement around gsi.
2868
2869         PR middle-end/50141
2870         * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
2871         innerdecl is a VAR_DECL.
2872
2873 2011-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2874
2875         * config/i386/avx2intrin.h: New file.
2876         * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
2877         PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
2878         V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
2879         V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
2880         V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
2881         V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
2882         V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
2883         V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
2884         V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
2885         V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
2886         V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
2887         V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
2888         V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
2889         V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
2890         V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
2891         V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
2892         V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
2893         V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
2894         VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
2895         VOID_FTYPE_PV8SI_V8SI_V8SI,
2896         V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
2897         V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
2898         V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
2899         V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
2900         V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
2901         V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
2902         V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
2903         V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
2904         V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2905         V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2906         V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2907         V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2908         V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2909         V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2910         V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2911         V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2912         V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2913         V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2914         V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2915         V4DI_FTYPE_V4DI_INT_CONVERT,
2916         V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2917         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2918         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2919         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2920         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2921         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2922         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2923         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2924         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2925         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2926         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2927         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2928         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2929         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2930         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2931         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2932         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2933         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2934         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2935         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2936         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2937         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2938         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2939         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2940         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2941         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2942         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2943         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2944         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2945         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2946         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2947         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2948         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2949         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2950         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2951         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2952         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2953         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2954         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2955         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2956         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2957         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2958         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2959         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2960         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2961         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2962         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2963         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2964         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2965         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2966         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2967         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2968         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2969         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2970         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2971         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2972         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2973         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2974         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2975         IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2976         IX86_BUILTIN_VBROADCASTSS_PS256,
2977         IX86_BUILTIN_VBROADCASTSD_PD256,
2978         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2979         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2980         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2981         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2982         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2983         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2984         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2985         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2986         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2987         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2988         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2989         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2990         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2991         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2992         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2993         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2994         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2995         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2996         IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2997         IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2998         IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2999         IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
3000         IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
3001         IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
3002         IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
3003         IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
3004         (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
3005         IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
3006         IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
3007         IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
3008         IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
3009         (bdesc_args): Add  IX86_BUILTIN_MPSADBW256,
3010         IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
3011         IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
3012         IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
3013         IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
3014         IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
3015         IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
3016         IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
3017         IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
3018         IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
3019         IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
3020         IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
3021         IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
3022         IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
3023         IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
3024         IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
3025         IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
3026         IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
3027         IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
3028         IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
3029         IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
3030         IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
3031         IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
3032         IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
3033         IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
3034         IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
3035         IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
3036         IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
3037         IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
3038         IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
3039         IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
3040         IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
3041         IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
3042         IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
3043         IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
3044         IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
3045         IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
3046         IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
3047         IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
3048         IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
3049         IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
3050         IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
3051         IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
3052         IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
3053         IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
3054         IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
3055         IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
3056         IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
3057         IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
3058         IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
3059         IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
3060         IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
3061         IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
3062         IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
3063         IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
3064         IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
3065         IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
3066         IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
3067         IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
3068         IX86_BUILTIN_VBROADCASTSD_PD256,
3069         IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
3070         IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
3071         IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
3072         IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
3073         IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
3074         IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
3075         IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
3076         IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
3077         IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
3078         IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
3079         IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
3080         IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
3081         IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
3082         IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
3083         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
3084         IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
3085         IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
3086         IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
3087         IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
3088         IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
3089         IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
3090         IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
3091         IX86_BUILTIN_GATHERDIV8SI.
3092         (ix86_preferred_simd_mode): Support AVX2 modes.
3093         (ix86_expand_args_builtin): Support AVX2 builtins.
3094         (ix86_expand_special_args_builtin): Likewise.
3095         (ix86_expand_builtin): Likewise.
3096         * config/i386/i386.md (UNSPEC_VPERMSI): New.
3097         (UNSPEC_VPERMDF): Likewise.
3098         (UNSPEC_VPERMSF): Likewise.
3099         (UNSPEC_VPERMDI): Likewise.
3100         (UNSPEC_VPERMTI): Likewise.
3101         (UNSPEC_GATHER): Likewise.
3102         (ssemodesuffix): Extend.
3103         * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
3104         is defined.
3105         * config/i386/predicates.md (const1248_operand): New.
3106         * config/i386/sse.md (VI1_AVX2): New mode iterator.
3107         (VI2_AVX2): Likewise.
3108         (VI4_AVX2): Likewise.
3109         (VI8_AVX2): Likewise.
3110         (VIMAX_AVX2): Likewise.
3111         (SSESCALARMODE): Likewise.
3112         (VI12_AVX2): Likewise.
3113         (VI24_AVX2): Likewise.
3114         (VI124_AVX2): Likewise.
3115         (VI248_AVX2): Likewise.
3116         (VI48_AVX2): Likewise.
3117         (VI4SD_AVX2): Likewise.
3118         (V48_AVX2): Likewise.
3119         (AVX256MODE2P): Likewise.
3120         (AVXMODE48P_DI): Likewise.
3121         (sse2_avx2): New mode attribute.
3122         (ssse3_avx2): Likewise.
3123         (sse4_1_avx2): Likewise.
3124         (avx_avx2): Likewise.
3125         (ssebytemode): Likewise.
3126         (AVXTOSSEMODE): Likewise.
3127         (AVXMODE48P_DI): Likewise.
3128         (gthrfirstp): Likewise.
3129         (gthrlastp): Likewise.
3130         (lshift): New code_iterator
3131         (lshift): New code attribute.
3132         (lshift): Likewise.
3133         (ssescalarmodesuffix): Update.
3134         (sseunpackmode): Likewise.
3135         (ssepackmode): Likewise.
3136         (avx2_vec_dupv4sf): New insn pattern.
3137         (avx2_vec_dupv8sf): Likewise.
3138         (avx2_interleave_highv4di): Likewise.
3139         (avx2_interleave_lowv4di): Likewise.
3140         (avx2_umulv4siv4di3): Likewise
3141         (*avx2_umulv4siv4di3): Likewise
3142         (avx2_pmaddwd): Likewise.
3143         (*avx2_pmaddwd): Likewise.
3144         (avx2_lshrqv4di3): Likewise.
3145         (avx2_lshlqv4di3): Likewise.
3146         (avx2_lshl<mode>3): Likewise.
3147         (avx2_<umaxmin:code><mode>3): Likewise.
3148         (*avx2_<umaxmin:code><mode>3): Likewise.
3149         (avx2_<smaxmin:code><mode>3): Likewise.
3150         (*avx2_<smaxmin:code><mode>3): Likewise.
3151         (avx2_eq<mode>3): Likewise.
3152         (*avx2_eq<mode>3): Likewise.
3153         (avx2_gt<mode>3): Likewise.
3154         (avx2_interleave_highv32qi): New.
3155         (avx2_interleave_lowv32qi): Likewise.
3156         (avx2_interleave_highv16hi): Likewise.
3157         (avx2_interleave_lowv16hi): Likewise.
3158         (avx2_interleave_highv8si): Likewise.
3159         (avx2_interleave_lowv8si): Likewise.
3160         (avx2_pshufd): Likewise.
3161         (avx2_pshufd_1): Likewise.
3162         (avx2_pshuflwv3): Likewise.
3163         (avx2_pshuflw_1): Likewise.
3164         (avx2_pshufhwv3): Likewise.
3165         (avx2_pshufhw_1): Likewise.
3166         (avx2_uavgv32qi3): Likewise.
3167         (*avx2_uavgv32qi3): Likewise.
3168         (avx2_uavgv16hi3): Likewise.
3169         (*avx2_uavgv16hi3): Likewise.
3170         (avx2_pmovmskb): Likewise.
3171         (avx2_phaddwv16hi3): Likewise.
3172         (avx2_phadddv8si3): Likewise.
3173         (avx2_phaddswv16hi3): Likewise.
3174         (avx2_phsubwv16hi3): Likewise.
3175         (avx2_phsubdv8si3): Likewise.
3176         (avx2_phsubswv16hi3): Likewise.
3177         (avx2_pmaddubsw256): Likewise.
3178         (avx2_umulhrswv16hi3): Likewise.
3179         (*avx2_umulhrswv16hi3): Likewise.
3180         (avx2_packusdw): Likewise.
3181         (avx2_pblendd<mode>): Likewise.
3182         (avx2_<code>v16qiv16hi2): Likewise.
3183         (avx2_<code>v8qiv8si2): Likewise.
3184         (avx2_<code>v8hiv8si2): Likewise.
3185         (avx2_<code>v4qiv4di2): Likewise.
3186         (avx2_<code>v4hiv4di2): Likewise.
3187         (avx2_<code>v4siv4di2): Likewise.
3188         (avx2_pbroadcast<mode>): Likewise.
3189         (avx2_permvarv8si): Likewise.
3190         (avx2_permv4df): Likewise.
3191         (avx2_permvarv8sf): Likewise.
3192         (avx2_permv4di): Likewise.
3193         (avx2_permv2ti): Likewise.
3194         (avx2_vec_dupv4df): Likewise.
3195         (avx2_vbroadcasti128_<mode>): Likewise.
3196         (avx2_vec_set_lo_v4di): Likewise.
3197         (avx2_vec_set_hi_v4di): Likewise.
3198         (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
3199         (avx2_extracti128): Likewise.
3200         (avx2_inserti128): Likewise.
3201         (avx2_ashrvv8si): Likewise.
3202         (avx2_ashrvv4si): Likewise.
3203         (avx2_<lshift>vv8si): Likewise.
3204         (avx2_<lshift>v<mode>): Likewise.
3205         (avx2_<lshift>vv2di): Likewise.
3206         (avx2_gathersi<mode>): Likewise.
3207         (*avx2_gathersi<mode>): Likewise.
3208         (avx2_gatherdi<mode>): Likewise.
3209         (*avx2_gatherdi<mode>): Likewise.
3210         (avx2_gatherdi<mode>256): Likewise.
3211         (*avx2_gatherdi<mode>256): Likewise.
3212         (<plusminus_insn><mode>3): Use VI mode iterator.
3213         (*<plusminus_insn><mode>3): Use VI mode iterator.
3214         (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3215         sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3216         (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
3217         *sse2_<plusminus_insn><mode>3.  Use VI12_AVX2 mode iterator.
3218         (mul<mode>3): Rename from mulv8hi3.  Use VI2_AVX2 mode iterator.
3219         (*mul<mode>3): Rename from *mulv8hi3.  Use VI2_AVX2 mode iterator.
3220         (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
3221         Use VI2_AVX2 mode iterator.
3222         (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
3223         Use VI2_AVX2 mode iterator.
3224         (mul<mode>3): Rename from mulv4si3.  Use VI4_AVX2 mode iterator.
3225         (*mul<mode>3): Rename from *mulv4si3.  Use VI4_AVX2 mode iterator.
3226         (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
3227         Use VI4_AVX2 mode iterator.
3228         (ashr<mode>3): Use VI24_AVX2 mode iterator.
3229         (lshr<mode>3): Use VI248_AVX2 mode iterator.
3230         (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
3231         Use VIMAX_AVX2 mode iterator.
3232         (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
3233         Use VI mode iterator.
3234         (*andnot<mode>3): Update for AVX2.
3235         (*<any_logic:code><mode>3): Likewise.
3236         (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
3237         Use VI1_AVX mode iterator.
3238         (<sse2_avx2>_packssdw):  Rename from sse2_packssdw.
3239         Use VI2_AVX mode iterator.
3240         (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
3241         Use VI1_AVX mode iterator.
3242         (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
3243         Use VI8_AVX2 mode iterator.
3244         (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
3245         Use VI1_AVX2 mode iterator.
3246         (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
3247         Use VI124_AVX2 mode iterator.
3248         (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
3249         Use SSESCALARMODE mode iterator.
3250         (abs<mode>2): Use VI124_AVX2 mode iterator.
3251         (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
3252         Use VI8_AVX2 mode iterator.
3253         (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
3254         Use VI1_AVX2 mode iterator.
3255         (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
3256         Use VI1_AVX2 mode iterator.
3257         (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
3258         Use VI2_AVX2 mode iterator.
3259         (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
3260         avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
3261         (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
3262         avx_maskstore<ssemodesuffix><avxsizesuffix>.
3263         Use V48_AVX2 mode iterator.
3264         * doc/extend.texi: Document AVX2 built-in functions.
3265         * doc/invoke.texi: Document -mavx2.
3266
3267 2011-08-22  Matthias Klose <doko@debian.org>
3268
3269         Revert:
3270         2011-07-11  Arthur Loiret  <aloiret@debian.org>
3271                     Matthias Klose <doko@debian.org>
3272         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3273         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3274         convention.
3275         * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3276
3277 2011-08-22  Mikael Pettersson  <mikpe@it.uu.se>
3278
3279         PR bootstrap/50146
3280         * ira-color.c (assign_hard_reg): Move saved_nregs declaration
3281         to #ifndef HONOR_REG_ALLOC_ORDER block.
3282
3283 2011-08-21  Richard Henderson  <rth@redhat.com>
3284
3285         * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
3286         * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
3287         * resource.c (next_insn_no_annul): Likewise.
3288         (mark_set_resources): Likewise.
3289         * reorg.c (delete_from_delay_slot): Likewise.
3290         (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
3291         (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
3292
3293 2011-08-21  Uros Bizjak  <ubizjak@gmail.com>
3294
3295         * config/i386/i386.md (any_div): Remove.
3296         (sgnprefix): Update for removal.
3297         (u): Ditto.
3298
3299 2011-08-20  Vladimir Makarov  <vmakarov@redhat.com>
3300
3301         * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
3302         for ira_reg_class_max_nregs.  Increase pressure by 1.
3303         (mark_pseudo_regno_subword_dead): Use allocno class
3304         for ira_reg_class_max_nregs.
3305
3306 2011-08-20  Richard Henderson  <rth@redhat.com>
3307
3308         * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
3309         config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
3310         config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
3311         config/c6x/ltf.c: Adjust include path for soft-fp.
3312
3313 2011-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3314
3315         PR other/46770
3316         * config.gcc (tm_file): Add initfini-array.h if
3317         .init_arrary/.fini_array are supported.
3318
3319         * crtstuff.c: Don't generate .ctors nor .dtors sections if
3320         USE_INITFINI_ARRAY is defined.
3321
3322         * output.h (default_elf_init_array_asm_out_constructor): New.
3323         (default_elf_fini_array_asm_out_destructor): Likewise.
3324         * varasm.c (elf_init_array_section): Likewise.
3325         (elf_fini_array_section): Likewise.
3326         (get_elf_initfini_array_priority_section): Likewise.
3327         (default_elf_init_array_asm_out_constructor): Likewise.
3328         (default_elf_fini_array_asm_out_destructor): Likewise.
3329
3330         * config/initfini-array.h: New.
3331
3332 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3333
3334         * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
3335         OK for ST_REGS and FP_REGS before taking those classes into account.
3336
3337 2011-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3338
3339         * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
3340         before checking for annulled branches.
3341
3342 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3343
3344         * config/i386/i386.c (ix86_binary_operator_ok): Use
3345         satisfies_constraint_L.
3346
3347 2011-08-20  Uros Bizjak  <ubizjak@gmail.com>
3348             Michael Matz  <matz@suse.de>
3349
3350         * config/i386/i386.c (ix86_expand_round_sse4): Expand as
3351         trunc (a + copysign (nextafter (0.5, 0.0), a)).
3352
3353 2011-08-20  Anatoly Sokolov  <aesok@post.ru>
3354
3355         * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3356         * doc/tm.texi: Regenerate.
3357         * targhooks.c (default_preferred_output_reload_class): Don't use
3358         PREFERRED_OUTPUT_RELOAD_CLASS macro.
3359         * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
3360
3361 2011-08-20  Jakub Jelinek  <jakub@redhat.com>
3362
3363         PR tree-optimization/48739
3364         * tree-ssa.c: Include cfgloop.h.
3365         (execute_update_addresses_taken): When updating ssa, if in loop closed
3366         SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
3367         * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
3368
3369 2011-08-19  Vladimir Makarov  <vmakarov@redhat.com>
3370
3371         PR rtl-optimization/49936
3372         * ira.c (ira_init_register_move_cost): Ignore too small subclasses
3373         for calculation of max register move costs.
3374
3375 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3376
3377         * c-parser.c (c_parser_postfix_expression): Convert operands of
3378         __builtin_complex to their semantic types.
3379
3380 2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3381
3382         PR middle-end/49721
3383         * explow.c (convert_memory_address_addr_space): Also permute the
3384         conversion and addition of constant for zero-extend.
3385
3386 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3387
3388         * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
3389         * doc/extend.texi (__builtin_complex): Document.
3390
3391 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3392
3393         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
3394         beyond conversions.
3395         (convert_mult_to_widen): Convert constant inputs to the right type.
3396         (convert_plusminus_to_widen): Don't automatically reject inputs that
3397         are not an SSA_NAME.
3398         Convert constant inputs to the right type.
3399
3400 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3401
3402         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
3403         to the correct type.
3404
3405 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3406
3407         * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
3408         unsigned inputs of different modes.
3409         (convert_plusminus_to_widen): Likewise.
3410
3411 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3412
3413         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
3414         'type'.
3415         Use 'type' from caller, not inferred from 'rhs'.
3416         Don't reject non-conversion statements. Do return lhs in this case.
3417         (is_widening_mult_p): Add new argument 'type'.
3418         Use 'type' from caller, not inferred from 'stmt'.
3419         Pass type to is_widening_mult_rhs_p.
3420         (convert_mult_to_widen): Pass type to is_widening_mult_p.
3421         (convert_plusminus_to_widen): Likewise.
3422
3423 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3424
3425         * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
3426         Ensure the the larger type is the first operand.
3427
3428 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3429
3430         * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
3431         unsupported unsigned multiplies to signed.
3432         (convert_plusminus_to_widen): Likewise.
3433
3434 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3435
3436         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
3437         conversion statement separating multiply-and-accumulate.
3438
3439 2011-08-19  Richard Guenther  <rguenther@suse.de>
3440
3441         PR tree-optimization/50067
3442         * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
3443         offset only if we accounted for it.
3444
3445 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3446
3447         * config/arm/arm.md (maddhidi4): Remove '*' from name.
3448         * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
3449         * optabs.c (find_widening_optab_handler_and_mode): New function.
3450         (expand_widen_pattern_expr): Use find_widening_optab_handler.
3451         (expand_binop_directly): Likewise.
3452         (expand_binop): Likewise.
3453         * optabs.h (find_widening_optab_handler): New macro define.
3454         (find_widening_optab_handler_and_mode): New prototype.
3455         * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
3456         type precision rules.
3457         (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
3458         * tree-ssa-math-opts.c (build_and_insert_cast): New function.
3459         (is_widening_mult_rhs_p): Allow widening by more than one mode.
3460         Explicitly disallow mis-matched input types.
3461         (convert_mult_to_widen): Use find_widening_optab_handler, and cast
3462         input types to fit the new handler.
3463         (convert_plusminus_to_widen): Likewise.
3464
3465 2011-08-19  Andrew Stubbs  <ams@codesourcery.com>
3466
3467         * expr.c (expand_expr_real_2): Use widening_optab_handler.
3468         * genopinit.c (optabs): Use set_widening_optab_handler for $N.
3469         (gen_insn): $N now means $a must be wider than $b, not consecutive.
3470         * optabs.c (widened_mode): New function.
3471         (expand_widen_pattern_expr): Use widening_optab_handler.
3472         (expand_binop_directly): Likewise.
3473         (expand_binop): Likewise.
3474         * optabs.h (widening_optab_handlers): New struct.
3475         (optab_d): New member, 'widening'.
3476         (widening_optab_handler): New function.
3477         (set_widening_optab_handler): New function.
3478         * tree-ssa-math-opts.c (convert_mult_to_widen): Use
3479         widening_optab_handler.
3480         (convert_plusminus_to_widen): Likewise.
3481
3482 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3483
3484         * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
3485         pedantic.
3486         * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
3487         * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
3488
3489 2011-08-19  Joseph Myers  <joseph@codesourcery.com>
3490
3491         * opth-gen.awk: Do not declare target save/restore structures and
3492         functions if IN_RTS defined.
3493
3494 2011-08-19  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
3495
3496         PR target/49437
3497         * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
3498         when stack was realigned in interrupt handler prologue.
3499
3500 2011-08-18  Joseph Myers  <joseph@codesourcery.com>
3501
3502         * c-decl.c (shadow_tag_warned): Check for _Noreturn.
3503         (quals_from_declspecs): Assert _Noreturn not present.
3504         (grokdeclarator): Handle _Noreturn.
3505         (build_null_declspecs): Initialize noreturn_p.
3506         (declspecs_add_scspec): Handle RID_NORETURN.
3507         * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
3508         (c_parser_attributes): Handle RID_NORETURN.
3509         * c-tree.h (struct c_declspecs): Add noreturn_p.
3510         * ginclude/stdnoreturn.h: New.
3511         * Makefile.in (USER_H): Add stdnoreturn.h.
3512
3513 2011-08-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3514
3515         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
3516         (OPTION_MASK_ISA_AVX_UNSET): Update.
3517         (OPTION_MASK_ISA_AVX2_UNSET): New.
3518         (ix86_handle_option): Handle OPT_mavx2 case.
3519         * config/i386/cpuid.h (bit_AVX2): New.
3520         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3521         AVX2 feature.
3522         * config/i386/i386-c.c (ix86_target_macros_internal):
3523         Conditionally define __AVX2__.
3524         * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
3525         Define "core-avx2" processor alias.  Handle avx2 option.
3526         (ix86_valid_target_attribute_inner_p): Handle avx2 option.
3527         * config/i386/i386.h (TARGET_AVX2): New.
3528         * config/i386/i386.opt (mavx2): New.
3529         * doc/invoke.texi: Document -mavx2.
3530
3531 2011-08-18  Vladimir Makarov  <vmakarov@redhat.com>
3532
3533         PR rtl-optimization/49890
3534         * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
3535         subclasses of class which is superset of a pressure class.
3536
3537 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3538             Igor Zamyatin <igor.zamyatin@intel.com>
3539
3540         * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
3541         with HOST_WIDE_INT for isa_flag.
3542         (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
3543         isa variables.
3544
3545         * config/i386/i386.c (ix86_target_string): Replace int with
3546         HOST_WIDE_INT for isa.  Use HOST_WIDE_INT_PRINT to print isa.
3547         (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
3548         (pta_flags): Removed.
3549         (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
3550         (pta): Use HOST_WIDE_INT on flags.
3551         (builtin_isa): Use HOST_WIDE_INT on isa.
3552         (ix86_add_new_builtins): Likewise.
3553         (def_builtin): Use HOST_WIDE_INT on mask.
3554         (def_builtin_const): Likewise.
3555         (builtin_description): Likewise.
3556
3557         * config/i386/i386.opt (ix86_isa_flags): Replace int with
3558         HOST_WIDE_INT.
3559         (ix86_isa_flags_explicit): Likewise.
3560         (x_ix86_isa_flags_explicit): Likewise.
3561
3562 2011-08-17  Vladimir Makarov  <vmakarov@redhat.com>
3563
3564         PR rtl-optimization/50107
3565         * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
3566         (ira_hard_reg_in_set_p): New.
3567
3568         * ira-color.c (calculate_saved_nregs): New.
3569         (assign_hard_reg): Use it.  Set up allocated_hard_reg_p for all
3570         hard regs.
3571         (allocno_reload_assign, fast_allocation): Use
3572         ira_hard_reg_set_intersection_p instead of
3573         ira_hard_reg_not_in_set_p.
3574
3575         * ira.c (setup_reg_renumber): Use
3576         ira_hard_reg_set_intersection_p instead of
3577         ira_hard_reg_not_in_set_p.
3578         (setup_allocno_assignment_flags, calculate_allocation_cost): Use
3579         ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
3580
3581         * ira-costs.c (ira_tune_allocno_costs): Use
3582         ira_hard_reg_set_intersection_p instead of
3583         ira_hard_reg_not_in_set_p.
3584
3585 2011-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3586             Igor Zamyatin <igor.zamyatin@intel.com>
3587
3588         * hwint.h (HOST_WIDE_INT_1): New.
3589
3590         * opt-functions.awk (switch_bit_fields): Initialize the
3591         host_wide_int field.
3592         (host_wide_int_var_name): New.
3593         (var_type_struct): Check and return HOST_WIDE_INT.
3594
3595         * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
3596
3597         * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
3598
3599         * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT.  Properly
3600         check masks for HOST_WIDE_INT.
3601
3602         * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
3603         (option_enabled): Likewise.
3604         (get_option_state): Likewise.
3605
3606         * opts.h (cl_option): Add cl_host_wide_int.  Change var_value
3607         to HOST_WIDE_INT.
3608
3609 2011-08-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3610             Marc Glisse  <marc.glisse@normalesup.org>
3611
3612         PR libstdc++-v3/1773
3613         * target.def (decl_mangling_context): New C++ hook.
3614         * doc/tm.texi: Regenerate.
3615         * config/sol2-cxx.c, config/sol2-stubs.c: New files.
3616         * config/sol2-protos.h: Group by source file.
3617         (solaris_cxx_decl_mangling_context): Declare.
3618         * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
3619         * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
3620         Use $<.
3621         * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
3622         Add sol2-stubs.o to extra_objs.
3623
3624 2011-08-18  Jakub Jelinek  <jakub@redhat.com>
3625
3626         PR target/50009
3627         * stor-layout.c (update_alignment_for_field): Don't ICE on
3628         packed flexible array members if ms_bitfield_layout_p.
3629
3630         PR target/50092
3631         * config/i386/i386.c (assign_386_stack_local): Call validize_mem
3632         on the result before returning it.
3633
3634         PR debug/50017
3635         * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
3636         is a debug stmt, use location of the first non-debug stmt after it.
3637
3638 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3639
3640         * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
3641         (arm_size_rtx_costs): Likewise.
3642
3643 2011-08-18  Richard Guenther  <rguenther@suse.de>
3644
3645         * tree.h (tree_int_cst_msb): Remove.
3646         * tree.c (tree_int_cst_msb): Likewise.
3647         (tree_int_cst_sign_bit): Move from ...
3648         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
3649
3650 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3651
3652         * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
3653         * doc/tm.texi: Regenerate.
3654         * target.def (rtx_costs): Add an opno parameter.
3655         * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3656         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3657         * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
3658         (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
3659         * cse.c (COST_IN): Add an opno parameter.
3660         (notreg_cost): Likewise.  Update call to rtx_cost.
3661         (COST, fold_rtx): Update accordingly.
3662         * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
3663         * expmed.c (emit_store_flag): Likewise.
3664         * optabs.c (avoid_expensive_constant): Add an opno parameter.
3665         Update call to rtx_cost.
3666         (expand_binop_directly, expand_binop): Likewise.
3667         (expand_twoval_binop, prepare_cmp_insn): Likewise.
3668         * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
3669         (set_src_cost, get_full_set_src_cost): Update accordingly.
3670         * rtlanal.c (rtx_cost): Add an opno parameter.  Update call
3671         to target hook.
3672         (get_full_rtx_cost): Add an opno paramter.  Update calls to rtx_cost.
3673         (default_adress_cost): Update calls to rtx_cost.
3674
3675         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
3676         (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
3677         (arm_rtx_costs): Add an opno parameter.
3678         * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
3679         adjust any recursive rtx-cost calls.
3680         * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
3681         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3682         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
3683         * config/cris/cris.c (cris_rtx_costs): Likewise.
3684         * config/frv/frv.c (frv_rtx_costs): Likewise.
3685         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
3686         * config/i386/i386.c (ix86_rtx_costs): Likewise.
3687         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
3688         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
3689         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
3690         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
3691         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
3692         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
3693         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
3694         * config/mep/mep.c (mep_rtx_cost): Likewise.
3695         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
3696         * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
3697         (mips_zero_extend_cost): Add an opno parameter.
3698         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
3699         * config/mn10300/mn10300.c (mn10300_address_cost): Update call
3700         to rtx_cost.
3701         (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
3702         rtx-cost calls.
3703         * config/pa/pa.c (hppa_rtx_costs): Likewise.
3704         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
3705         * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
3706         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
3707         (rs6000_debug_rtx_costs): Likewise.
3708         * config/s390/s390.c (s390_rtx_costs): Likewise.
3709         * config/score/score-protos.h (score_rtx_costs): Likewise.
3710         * config/score/score.c (score_rtx_costs): Likewise.
3711         * config/sh/sh.c (andcosts): Update call to rtx_cost.
3712         (sh_rtx_costs): Add an opno parameter.
3713         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
3714         * config/spu/spu.c (spu_rtx_costs): Likewise.
3715         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
3716         * config/v850/v850.c (v850_rtx_costs): Likewise.
3717         * config/vax/vax.c (vax_rtx_costs): Likewise.
3718         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
3719
3720 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3721
3722         * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
3723         * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
3724         rtx_cost.
3725         * calls.c (precompute_register_parameters): Likewise.
3726         * combine.c (expand_compound_operation, make_extraction): Likewise.
3727         (force_to_mode, distribute_and_simplify_rtx): Likewise.
3728         * dse.c (find_shift_sequence): Likewise.
3729         * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
3730         * expr.c (compress_float_constant): Likewise.
3731         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
3732         * gcse.c (want_to_gcse_p): Likewise.
3733         * ifcvt.c (noce_try_sign_mask): Likewise.
3734         * loop-doloop.c (doloop_optimize): Likewise.
3735         * loop-invariant.c (create_new_invariant): Likewise.
3736         * optabs.c (avoid_expensive_constant): Likewise.
3737         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
3738         (try_replace_in_use, reload_cse_move2add): Likewise.
3739         * reload1.c (calculate_elim_costs_all_insns): Likewise.
3740         (note_reg_elim_costly): Likewise.
3741         * rtlanal.c (insn_rtx_cost): Likewise.
3742         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3743         * stmt.c (lshift_cheap_p): Likewise.
3744         * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
3745         * config/avr/avr.c (final_prescan_insn): Likewise.
3746         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
3747         * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
3748
3749 2011-08-18  Richard Sandiford  <richard.sandiford@linaro.org>
3750
3751         * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
3752         * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
3753         * cfgloopanal.c (seq_cost): Likewise.
3754         * loop-invariant.c (create_new_invariant): Likewise.
3755         * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
3756         (reload_cse_move2add): Use get_full_set_rtx_cost.
3757
3758 2011-08-18  Richard Guenther  <rguenther@suse.de>
3759
3760         * expr.c (get_inner_reference): Fix typo in last change.
3761
3762 2011-08-18  Paolo Carlini  <paolo.carlini@oracle.com>
3763             Joseph Myers  <joseph@codesourcery.com>
3764
3765         PR tree-optimization/49963
3766         * hwint.c (absu_hwi): Define.
3767         * hwint.h (absu_hwi): Declare.
3768         * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
3769         of abs_hwi.
3770         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3771         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
3772
3773 2011-08-18  Richard Guenther  <rguenther@suse.de>
3774
3775         * expr.c (get_inner_reference): Sign-extend the constant
3776         twos-complement offset before doing arbitrary precision
3777         arithmetic on it.
3778         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
3779         (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
3780         to get_constraint_for_ptr_offset.
3781
3782 2011-08-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3783
3784         PR target/50068
3785         * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
3786
3787 2011-08-17  Richard Guenther  <rguenther@suse.de>
3788
3789         * tree.h (convert_to_ptrofftype_loc): New function.
3790         (convert_to_ptrofftype): Define.
3791         * builtins.c (expand_builtin_bzero): Use size_type_node.
3792         (fold_builtin_bzero): Likewise.
3793         (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
3794         * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
3795         * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
3796         (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
3797         * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
3798         * fold-const.c (build_range_check): Negate using the original type.
3799         (fold_unary_loc): Use fold_build_pointer_plus_loc.
3800         * gimple-fold.c (gimple_adjust_this_by_delta): Use
3801         convert_to_ptrofftype.
3802         * gimplify.c (gimplify_self_mod_expr): Likewise.
3803         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
3804         (graphite_create_new_loop_guard): Likewise.
3805         * graphite-sese-to-poly.c (my_long_long): Remove.
3806         (scop_ivs_can_be_represented): Adjust.
3807         * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
3808         * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
3809         * tree-loop-distribution.c (build_size_arg_loc): Use
3810         size_type_node.
3811         (generate_memset_zero): Simplify.
3812         * tree-mudflap.c: Use fold_convert, not convert.
3813         * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
3814         its own type.
3815         (determine_offset): Likewise for DR_STEP.
3816         (valid_initializer_p): Likewise.
3817         * tree-profile.c (prepare_instrumented_value): Convert the pointer
3818         to an integer type of same size.
3819         * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
3820         to sizetype without need.
3821         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3822         * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
3823         * tree-ssa-loop-manip.c (create_iv): Likewise.
3824         (determine_exit_conditions): Adjust comment.
3825         * tree-ssa-pre.c (create_expression_by_pieces): Use
3826         convert_to_ptrofftype.
3827         * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
3828         * varasm.c (array_size_for_constructor): Compute using double_ints.
3829
3830 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3831
3832         * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
3833         when generating an integer result where possible.  Short-cut
3834         comparison against 0 also for QImode.
3835
3836 2011-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3837
3838         * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
3839         * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
3840         prototype.
3841         * config/spu/spu.c (spu_legitimize_reload_address): New function.
3842         (spu_legitimate_address_p): Do not check displacement if the base
3843         is an eliminable stack register.
3844
3845 2011-08-16  Anatoly Sokolov  <aesok@post.ru>
3846
3847         * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
3848         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3849         * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
3850         m32c_preferred_output_reload_class): Remove.
3851         * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
3852         Change rclass argument and return types to reg_class_t. Use
3853         reg_class_subset_p instead of class_sizes.
3854         (m32c_preferred_output_reload_class): Make static. Change rclass
3855         argument and return types to reg_class_t.
3856         (TARGET_PREFERRED_RELOAD_CLASS,
3857         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3858
3859 2011-08-16  Kai Tietz  <ktietz@redhat.com>
3860
3861         * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
3862
3863 2011-08-16  Richard GUenther  <rguenther@suse.de>
3864
3865         PR tree-optimization/50082
3866         * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
3867         warnings here, instead of ...
3868         (ssa_forward_propagate_and_combine): ... here.
3869         (forward_propagate_into_comparison_1): Adjust.
3870         (forward_propagate_into_comparison): Likewise.
3871         (forward_propagate_into_gimple_cond): Likewise.
3872         (forward_propagate_into_cond): Likewise.
3873
3874 2011-08-16  Andreas Schwab  <schwab@redhat.com>
3875
3876         * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
3877         instead of ggc_alloc_zone_vec_rtvec_def.
3878
3879 2011-08-16  Richard Guenther  <rguenther@suse.de>
3880
3881         * tree.h (ptrofftype_p): New helper function.
3882         * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
3883         offset verification.
3884         (verify_gimple_assign_binary): Likewise.
3885         * tree.c (build2_stat): Likewise.
3886         * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
3887         (reset_evolution_in_loop): Likewise.
3888         * tree-chrec.h (build_polynomial_chrec): Likewise.
3889
3890 2011-08-16  Liang Wang  <lwang1@marvell.com>
3891
3892         * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
3893         ggc_alloc_zone_vec_rtvec_def.
3894
3895 2011-08-16  Richard Guenther  <rguenther@suse.de>
3896
3897         * tree-vrp.c (extract_range_from_multiplicative_op_1): New
3898         helper factored out from ...
3899         (extract_range_from_binary_expr_1): ... here.  Re-structure
3900         to not glob handling too different tree codes.
3901
3902 2011-08-15  Richard Henderson  <rth@redhat.com>
3903
3904         PR middle-end/50006
3905         * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3906         setting out to include allocate_stack named pattern as well.
3907         * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3908         * stmt.c (expand_stack_restore): Likewise.
3909
3910 2011-08-15  Richard Guenther  <rguenther@suse.de>
3911
3912         PR middle-end/50082
3913         * fold-const.c (maybe_canonicalize_comparison_1): Properly
3914         convert the modified operand to the other operand type.
3915         (fold_comparison): Call maybe_canonicalize_comparison_1 with
3916         useless conversions stripped from comparison operands.
3917
3918 2011-08-15  Richard Guenther  <rguenther@suse.de>
3919
3920         * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3921         (extract_range_from_unary_expr_1): Restructure.
3922
3923 2011-08-15  Richard Guenther  <rguenther@suse.de>
3924
3925         PR tree-optimization/50058
3926         * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3927         copy matching.
3928
3929 2011-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3930
3931         PR target/50022
3932         * config/arm/arm.c (output_move_double): Add 2 parameters
3933         to count the number of insns emitted and whether to emit or not.
3934         Use the flag to decide when to emit and count number of instructions
3935         that will be emitted.
3936         Handle case where output_move_double might be called for calculating
3937         lengths with an invalid constant.
3938         (arm_count_output_move_double_insns): Define.
3939         * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3940         (output_move_double): Adjust prototype.
3941         * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3942         output_move_double.
3943         ("*movdi_vfp_cortexa8"): Likewise and add attribute
3944         for ce_count.
3945         * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3946         ("*movdf_soft_insn"): Likewise.
3947         * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3948         ("*cirrus_thumb2_movdi"): Likewise.
3949         ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3950         ("*cirrus_movdf_hard_insn"): Likewise.
3951         * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3952         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3953         ("mov<mode>_internal VMMX"): Likewise.
3954         * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3955
3956 2011-08-14  Uros Bizjak  <ubizjak@gmail.com>
3957
3958         * config/i386/i386.c (ix86_expand_round_sse4): New function.
3959         * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3960         * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3961         for TARGET_ROUND.
3962
3963         (rint<mode>2): Simplify TARGET_ROUND check.
3964         (floor<mode>2): Ditto.
3965         (ceil<mode>2): Ditto.
3966         (btrunc<mode>2): Ditto.
3967
3968 2011-08-14  Anatoly Sokolov  <aesok@post.ru>
3969
3970         * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3971         as mmix_preferred_output_reload_class.
3972
3973 2011-08-14  Georg-Johann Lay  <avr@gjlay.de>
3974
3975         * PR target/49903
3976         * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3977         (branch_unspec): New insn.
3978         (branch): Beauty farm.
3979         * config/avr/avr.c (compare_condition): Use JUMP_P.  Test SET_SRC
3980         to be IF_THEN_ELSE.
3981         (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3982         New static functions.
3983         (avr_reorg): Use them.  Use next_real_insn instead of NEXT_INSN.
3984         Use CONST_INT_P.  Beauty.
3985
3986 2011-08-12  Richard Henderson  <rth@redhat.com>
3987
3988         PR rtl-opt/49994
3989         * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3990         * sched-deps.c (init_deps): Clear it.
3991         (deps_analyze_insn): Consume it.
3992         (sched_analyze_insn): Fill it.
3993
3994 2011-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3995
3996         PR target/48328
3997         * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3998         for tbh instructions.
3999
4000 2011-08-12  Diego Novillo  <dnovillo@google.com>
4001
4002         * data-streamer.h (streamer_write_zero): Rename from output_zero.
4003         (streamer_write_uhwi): Rename from lto_output_uleb128.
4004         (streamer_write_hwi): Rename from output_sleb128.
4005         (streamer_write_string): Rename from lto_output_string.
4006         (streamer_string_index): Rename from lto_string_index.
4007         (streamer_write_string_with_length): Rename from
4008         lto_output_string_with_length.
4009         (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
4010         (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
4011         (streamer_read_string): Rename from lto_input_string.
4012         (streamer_read_indexed_string): Rename from input_string_internal.
4013         (streamer_read_uhwi): Rename from lto_input_uleb128.
4014         (streamer_read_hwi): Rename from lto_input_sleb128.
4015         (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
4016         (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
4017         (streamer_write_enum): Rename from lto_output_enum.
4018         (streamer_read_enum): Rename from lto_input_enum.
4019         (streamer_write_record_start): Rename from output_record_start.
4020         (streamer_read_record_start): Rename from input_record_start.
4021         (streamer_write_bitpack): Rename from lto_output_bitpack.
4022         (streamer_read_bitpack): Rename from lto_input_bitpack.
4023         (streamer_write_char_stream): Rename from lto_output_1_stream.
4024         (streamer_read_uchar): Rename from lto_input_1_unsigned.
4025         * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
4026         (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
4027         (streamer_read_string_cst): Rename from input_string_cst.
4028         (streamer_read_chain): Rename from lto_input_chain.
4029         (streamer_alloc_tree): Rename from lto_materialize_tree.
4030         (streamer_read_tree_body): Rename from lto_input_tree_pointers.
4031         (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
4032         (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
4033         (streamer_read_integer_cst): Rename from lto_input_integer_cst.
4034         (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
4035         (streamer_write_chain): Rename from lto_output_chain.
4036         (streamer_write_tree_header): Rename from lto_output_tree_header.
4037         (streamer_pack_tree_bitfields): Rename from pack_value_fields.
4038         (streamer_write_tree_body): Rename from lto_output_tree_pointers.
4039         (streamer_write_integer_cst): Rename from lto_output_integer_cst.
4040         (streamer_write_builtin): Rename from lto_output_builtin_tree.
4041         (streamer_check_handled_ts_structures): Rename from
4042         check_handled_ts_structures.
4043         (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
4044         (streamer_tree_cache_insert_at): Rename from
4045         lto_streamer_cache_insert_at.
4046         (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
4047         (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
4048         (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
4049         (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
4050         (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
4051         * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
4052         (write_identifier): Rename from output_identifier.
4053         (write_ts_common_tree_pointers): Rename from
4054         lto_output_ts_common_tree_pointers.
4055         (write_ts_vector_tree_pointers): Rename from
4056         lto_output_ts_vector_tree_pointers.
4057         (write_ts_complex_tree_pointers): Rename from
4058         lto_output_ts_complex_tree_pointers.
4059         (write_ts_decl_minimal_tree_pointers): Rename from
4060         lto_output_ts_decl_minimal_tree_pointers.
4061         (write_ts_decl_common_tree_pointers): Rename from
4062         lto_output_ts_decl_common_tree_pointers.
4063         (write_ts_decl_non_common_tree_pointers): Rename from
4064         lto_output_ts_decl_non_common_tree_pointers.
4065         (write_ts_decl_with_vis_tree_pointers): Rename from
4066         lto_output_ts_decl_with_vis_tree_pointers.
4067         (write_ts_field_decl_tree_pointers): Rename from
4068         lto_output_ts_field_decl_tree_pointers.
4069         (write_ts_function_decl_tree_pointers): Rename from
4070         lto_output_ts_function_decl_tree_pointers.
4071         (write_ts_type_common_tree_pointers): Rename from
4072         lto_output_ts_type_common_tree_pointers.
4073         (write_ts_type_non_common_tree_pointers): Rename from
4074         lto_output_ts_type_non_common_tree_pointers.
4075         (write_ts_list_tree_pointers): Rename from
4076         lto_output_ts_list_tree_pointers.
4077         (write_ts_vec_tree_pointers): Rename from
4078         lto_output_ts_vec_tree_pointers.
4079         (write_ts_exp_tree_pointers): Rename from
4080         lto_output_ts_exp_tree_pointers.
4081         (write_ts_block_tree_pointers): Rename from
4082         lto_output_ts_block_tree_pointers.
4083         (write_ts_binfo_tree_pointers): Rename from
4084         lto_output_ts_binfo_tree_pointers.
4085         (write_ts_constructor_tree_pointers): Rename from
4086         lto_output_ts_constructor_tree_pointers.
4087         (write_ts_target_option): Rename from lto_output_ts_target_option.
4088         (write_ts_translation_unit_decl_tree_pointers): Rename from
4089         lto_output_ts_translation_unit_decl_tree_pointers.
4090         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
4091         Rename from lto_streamer_cache_add_to_node_array.
4092         (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
4093         (record_common_node): Rename from lto_record_common_node.
4094
4095         * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
4096         declarations.
4097         * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
4098         function.
4099         * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
4100         unused function.
4101         * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
4102         (ipa-reference.o): Likewise.
4103         * lto-section-out.c: Include data-streamer.h.
4104         * ipa-reference.c: Include data-streamer.h.
4105
4106 2011-08-12  Nick Clifton  <nickc@redhat.com>
4107
4108         * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
4109         * doc/md.texi (cmpstrn): Note that the comparison stops if both
4110         fetched bytes are zero.
4111         (cmpstr): Likewise.
4112         (cmpmem): Note that the comparison does not stop if both of the
4113         fetched bytes are zero.
4114
4115 2011-08-12  Uros Bizjak  <ubizjak@gmail.com>
4116
4117         * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
4118         BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
4119         * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
4120         BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
4121         to integer_type_node.
4122         * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
4123         BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
4124         * builtins.c (expand_builtin_in): Ditto.
4125         (mathfn_built_in_1): Ditto.
4126         (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
4127         BUILT_IN_IFLOOR.
4128         (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
4129         BUILT_IN_IROUND.
4130         (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
4131         BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
4132         BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
4133
4134 2011-08-12  Richard Guenther  <rguenther@suse.de>
4135
4136         * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
4137
4138 2011-08-12  Romain Geissler  <romain.geissler@gmail.com>
4139
4140         * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
4141
4142 2011-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
4143
4144         * config/arm/arm.c (get_label_padding): New function.
4145         (create_fix_barrier, arm_reorg): Use it.
4146
4147 2011-08-11  Uros Bizjak  <ubizjak@gmail.com>
4148
4149         PR target/49781
4150         * config/i386/i386.md (*lea_5_zext): New.
4151         (*lea_6_zext): Ditto.
4152         * config/i386/predicates.md (const_32bit_mask): New predicate.
4153         (lea_address_operand): Reject AND.
4154         * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
4155         const_32bit_mask immediate.
4156         (ix86_print_operand_address): Handle AND.
4157         (memory_address_length): Ditto.
4158
4159 2011-08-11  Romain Geissler  <romain.geissler@gmail.com>
4160             Brian Hackett  <bhackett1024@gmail.com>
4161
4162         * plugin.def: Add event for finish_decl.
4163         * plugin.c (register_callback, invoke_plugin_callbacks): Same.
4164         * c-decl.c (finish_decl): Invoke callbacks on above event.
4165         * doc/plugins.texi: Document above event.
4166
4167 2011-08-11  Richard Guenther  <rguenther@suse.de>
4168
4169         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
4170         lookups, make looking through aggregate copies stronger.
4171
4172 2011-08-11  Richard Henderson  <rth@redhat.com>
4173
4174         PR bootstrap/50018
4175         * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
4176
4177 2011-08-11  Richard Guenther  <rguenther@suse.de>
4178
4179         * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
4180         * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
4181         (vrp_visit_stmt): Likewise.
4182
4183 2011-08-11  Richard Guenther  <rguenther@suse.de>
4184
4185         PR middle-end/50040
4186         * gimplify.c (gimplify_modify_expr_complex_part): Mark the
4187         load of the other piece with TREE_NO_WARNING.
4188         * tree-flow.h (warn_uninit): Adjust prototype.
4189         * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
4190         the base variable and the expression that is used separately.
4191         Properly query all TREE_NO_WARNING flags.
4192         (struct walk_data): Remove.
4193         (warn_uninitialized_var): Likewise.
4194         (warn_uninitialized_vars): Do not walk gimple pieces but simply
4195         look at all SSA uses of the statement.  Handle unused memory
4196         separately.
4197         * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
4198
4199 2011-08-11   Kazuhiro Inaoka  <kazuhiro.inaoka.ud@renesas.com>
4200
4201         * config/rx/rx.md (movsicc): Allow register to register transfers.
4202         (*movsicc): Likewise.
4203         (*stcc): Restrict this pattern to EQ and NE compares.
4204         (*stcc_reg): New pattern.  Works for any comparison but only for
4205         register transfers.
4206
4207 2011-08-11   Diego Novillo  <dnovillo@google.com>
4208
4209         * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
4210         Call stream_write_tree instead of output_record_start.
4211         (lto_output_ts_binfo_tree_pointers): Likewise.
4212
4213         * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
4214         Convert it to a macro.
4215         (stream_read_tree): Likewise.
4216
4217         * lto-streamer.h (lto_stream_as_builtin_p): Move ...
4218         * tree-streamer.h (lto_stream_as_builtin_p): ... here.
4219
4220         * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
4221         and tree_read_bitfields.
4222         * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
4223         (lto_write_tree): Call it.
4224         * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
4225         * streamer-hooks.h (struct streamer_hooks): Remove fields
4226         name, is_streamable and alloc_tree. Update all users.
4227         * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
4228         (lto_materialize_tree): ... here.
4229         Handle CALL_EXPR codes.
4230         Remove call to lto_streamer_cache_append.
4231         * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
4232         * tree-streamer.h (tree_read_bitfields): Declare.
4233
4234         * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
4235         (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
4236         * tree-streamer.h (stream_read_tree): New.  Replace all calls
4237         to lto_input_tree with it.
4238         (stream_write_tree): New.  Replace all calls to lto_output_tree,
4239         lto_output_tree_ref and lto_output_tree_or_ref with it.
4240         * lto-streamer-in.c (lto_read_tree): Inline code from
4241         lto_streamer_read_tree.
4242         (lto_input_tree): Move from tree-streamer-in.c.
4243         * lto-streamer-out.c (lto_output_tree_ref): Make static.
4244         Remove handling of NULL values for EXPR.
4245         Do not handle EXPRs that are not indexable.
4246         (lto_write_tree): Move from tree-streamer-out.c.
4247         Inline lto_streamer_write_tree.
4248         (lto_output_tree): Move from tree-streamer-out.c.
4249         If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
4250         * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
4251         (lto_preload_common_nodes): Likewise.
4252         Remove assertions and adjustments for nodes
4253         main_identifier_node, ptrdiff_type_node and fileptr_type_node.
4254         (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
4255         lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
4256         * lto-streamer.h (lto_input_tree): Declare.
4257         (lto_output_tree_ref): Remove.
4258         * streamer-hooks.h (struct streamer_hooks): Remove fields
4259         preload_common_nodes, indexable_with_decls_p,
4260         pack_value_fields, unpack_value_fields and output_tree_header.
4261         Update all users.
4262         * tree-streamer-in.c (lto_materialize_tree): Make extern.
4263         (lto_input_tree_pointers): Likewise.
4264         (lto_read_tree): Move to lto-streamer-in.c.
4265         (lto_input_integer_cst): Make extern.
4266         (lto_get_pickled_tree): Likewise.
4267         (lto_get_builtin_tree): Likewise.
4268         (lto_input_tree): Move to lto-streamer-in.c.
4269         * tree-streamer-out.c (pack_value_fields): Make extern.
4270         (lto_output_tree_or_ref): Remove.  Replace all callers with
4271         calls to stream_write_tree.
4272         (lto_output_builtin_tree): Make extern.
4273         (lto_streamer_write_tree): Inline into lto_write_tree.
4274         (lto_output_tree_pointers): Make extern.
4275         (lto_output_tree_header): Likewise.
4276         (lto_output_integer_cst): Likewise.
4277         (lto_write_tree): Move to lto-streamer-out.c.
4278         (lto_output_tree): Likewise.
4279         * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
4280         (preload_common_nodes): Likewise.
4281         (lto_streamer_cache_create): Call it.
4282         * tree-streamer.h: Include streamer-hooks.h.
4283         (stream_write_tree): New.
4284         (stream_read_tree): New.
4285         (lto_input_tree): Remove.
4286         (lto_materialize_tree): Declare.
4287         (lto_input_tree_pointers): Declare.
4288         (lto_get_pickled_tree): Declare.
4289         (lto_get_builtin_tree): Declare.
4290         (lto_input_integer_cst): Declare.
4291         (lto_output_tree_header): Declare.
4292         (pack_value_fields): Declare.
4293         (lto_output_tree_pointers): Declare.
4294         (lto_output_integer_cst): Declare.
4295         (lto_output_builtin_tree): Declare.
4296
4297 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4298
4299         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
4300         only if producer writes to the register given by regno.
4301
4302 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4303             Alexander Monakov  <amonakov@ispras.ru>
4304
4305         * sched-deps.c (sched_get_condition_with_rev): Rename to ...
4306         (sched_get_condition_with_rev_uncached): ... this.  Factor out
4307         condition caching logic into ...
4308         (sched_get_condition_with_rev): ... this.  Reimplement.  Do not
4309         attempt to use cache for instructions with zero luid.
4310         (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
4311         * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
4312
4313 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4314
4315         * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
4316         get_seqno_for_a_jump.  Update the caller.
4317         (get_seqno_by_succs): New.  Use it ...
4318         (get_seqno_for_a_jump): ... here to find a seqno if looking at
4319         predecessors was not sufficient.
4320         (get_seqno_by_preds): Include head in iteration range, exclude insn.
4321
4322 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4323
4324         * sel-sched-ir.c (invalidate_av_set): Remove the assert.
4325
4326 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4327
4328         * sel-sched-ir.h (register_unavailable_p): Declare.
4329         * sel-sched-ir.c (register_unavailable_p): New.  Use it...
4330         (set_unavailable_target_for_expr): ... here to properly test
4331         availability of a register.
4332         (speculate_expr): Ditto.
4333         * sel-sched.c (substitute_reg_in_expr): Ditto.
4334         (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
4335
4336 2011-08-11  Sergey Grechanik  <mouseentity@ispras.ru>
4337
4338         * sel-sched.c (verify_target_availability): Fix usage of
4339         hard_regno_nregs.
4340
4341 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4342
4343         * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
4344         recognized by cannot_copy_insn_p hook and volatile instructions.
4345
4346 2011-08-11  Dmitry Melnik  <dm@ispras.ru>
4347
4348         * sel-sched-ir.c (merge_expr_data): Take maximum spec.
4349
4350 2011-08-11  Richard Sandiford  <richard.sandiford@linaro.org>
4351
4352         * doc/md.texi (define_bypass): Say that the instruction names can
4353         be filename-style globs.
4354         * Makefile.in (FNMATCH_H): Define.
4355         (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
4356         * genattrtab.c: Include fnmatch.h.
4357         (bypass_list): Change field name from "insn" to "pattern".
4358         (gen_bypass_1): Update accordingly.
4359         (process_bypasses): Use fnmatch to check for matches between
4360         insn reservations and define_bypasses.
4361         * genautomata.c: Include fnmatch.h.
4362         (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
4363         and out_pattern respectively.
4364         (gen_bypass, insert_bypass): Update accordingly.
4365         (for_each_matching_insn, process_bypass_2, process_bypass_1)
4366         (process_bypass): New functions.
4367         (process_decls): Use process_bypass.  Update after field name changes.
4368
4369 2011-08-11  Georg-Johann Lay  <avr@gjlay.de>
4370
4371         PR target/49687
4372         * config/avr/avr.md (smulqi3_highpart): New insn.
4373         (umulqi3_highpart): New insn.
4374         (*subqi3.ashiftrt7): New insn.
4375         (smulhi3_highpart): New expander.
4376         (umulhi3_highpart): Nex expander.
4377         (*smulhi3_highpart_call): New insn.
4378         (*umulhi3_highpart_call): New insn.
4379         (extend_u): New code attribute.
4380         (extend_prefix): Rename code attribute to extend_su.
4381         * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
4382         widening QI/HI multiply.
4383
4384 2011-08-11  Ira Rosen  <ira.rosen@linaro.org>
4385
4386         PR tree-optimization/50039
4387         * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
4388         that DEF_STMT has a stmt_vec_info.
4389
4390 2011-08-10  Richard Guenther  <rguenther@suse.de>
4391
4392         * tree.h (can_trust_pointer_alignment): Remove.
4393         * builtins.c (can_trust_pointer_alignment): Remove.
4394
4395 2011-08-10  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4396
4397         * c-typeck.c (scalar_to_vector): New function. Try scalar to
4398         vector conversion.
4399         (stv_conv): New enum for scalar_to_vector return type.
4400         (build_binary_op): Adjust.
4401         * doc/extend.texi: Description of scalar to vector expansion.
4402
4403 2011-08-10  Richard Guenther  <rguenther@suse.de>
4404
4405         * tree.h (get_pointer_alignment): Remove max-align argument.
4406         (get_object_alignment): Likewise.
4407         * builtins.c (get_object_alignment_1): Adjust.
4408         (get_object_alignment): Remove max-align argument.
4409         (get_pointer_alignment): Likewise.
4410         (expand_builtin_strlen): Adjust.
4411         (expand_builtin_memcpy): Likewise.
4412         (expand_builtin_mempcpy_args): Likewise.
4413         (expand_builtin_strncpy): Likewise.
4414         (expand_builtin_memset_args): Likewise.
4415         (expand_builtin_memcmp): Likewise.
4416         (expand_builtin_strcmp): Likewise.
4417         (expand_builtin_strncmp): Likewise.
4418         (get_builtin_sync_mem): Likewise.
4419         (fold_builtin_memset): Likewise.
4420         (fold_builtin_memory_op): Likewise.
4421         (expand_builtin_memory_chk): Likewise.
4422         * emit-rtl.c (get_mem_align_offset): Likewise.
4423         (set_mem_attributes_minus_bitpos): Likewise.
4424         * expr.c (expand_assignment): Likewise.
4425         (expand_expr_real_1): Likewise.
4426         * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
4427         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
4428         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
4429         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
4430         * value-prof.c (gimple_stringops_transform): Likewise.
4431
4432 2011-08-10  Paulo J. Matos  <paulo.matos@csr.com>
4433
4434         * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
4435         * doc/tm.texi: Regenerate.
4436
4437 2011-08-10  Georg-Johann Lay  <avr@gjlay.de>
4438
4439         PR target/29560
4440         * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
4441         (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
4442         (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
4443         Add peephole2 to map ashlhi3 to ashlqi3 if high part of
4444         shift target is unused.
4445
4446 2011-08-10  Richard Guenther  <rguenther@suse.de>
4447
4448         PR tree-optimization/49937
4449         * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
4450         using get_object_alignment_1.
4451
4452 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4453
4454         * config/i386/i386.c (ix86_emit_i387_round): New function.
4455         * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
4456         * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
4457         Use ix86_emit_i387_round to expand round function for i387 math.
4458         (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
4459         Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
4460
4461 2011-08-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4462
4463         * config/sync.c: Move to ../libgcc.
4464         * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
4465         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
4466         Remove.
4467
4468 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4469
4470         * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
4471         * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
4472         * config/mmix/mmix.c (mmix_register_move_cost): Make static.
4473         Change 'from' and 'to' arguments type to reg_class_t.
4474         (TARGET_REGISTER_MOVE_COST): Define.
4475
4476 2011-08-09  Vladimir Makarov  <vmakarov@redhat.com>
4477
4478         PR target/50026
4479         Revert:
4480         PR rtl-optimization/49990
4481         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4482         ignore classes which can not change mode.
4483         (find_costs_and_classes): Ditto.
4484
4485 2011-08-09  Richard Guenther  <rguenther@suse.de>
4486
4487         * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
4488         information for ranges with only negative values.
4489         (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
4490         BIT_AND_EXPR handling to handle ranges with negative values.
4491
4492 2011-08-09  Kirill Yukhin  <kirill.yukhin@intel.com>
4493
4494         * config/i386/i386.c: Remove traling spaces.
4495         * config/i386/sse.md: Likewise.
4496         (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
4497         (*fma_fmsub_<mode>): Likewise.
4498         (*fma_fnmadd_<mode>): Likewise.
4499         (*fma_fnmsub_<mode>): Likewise.
4500
4501 2011-08-09  Nick Clifton  <nickc@redhat.com>
4502
4503         * config/rx/rx.md: Disable extender peepholes at -O3.
4504
4505 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
4506
4507         PR target/49781
4508         * config/i386/i386.md (reload_noff_load): New.
4509         (reload_noff_store): Ditto.
4510         * config/i386/i386.c (ix86_secondary_reload): Use
4511         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
4512         double-word moves from/to non-offsetable addresses instead of
4513         generating XMM temporary.
4514
4515 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
4516
4517         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
4518
4519 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
4520
4521         PR tree-optimization/50014
4522         * tree-vect-loop.c (vectorizable_reduction): Get def type before
4523         calling vect_get_vec_def_for_stmt_copy ().
4524
4525 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
4526
4527         PR rtl-optimization/49990
4528         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
4529         ignore classes which can not change mode.
4530         (find_costs_and_classes): Ditto.
4531
4532 2011-08-08  Richard Henderson  <rth@redhat.com>
4533
4534         PR middle-end/49990
4535         * config/i386/i386.c (ix86_expand_prologue): Call
4536         for SEH target gen_prologue_use instead of gen_blockage
4537         at prologue's end.
4538
4539 2011-08-08  Martin Jambor  <mjambor@suse.cz>
4540
4541         PR middle-end/49923
4542         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
4543         memory alignment.
4544
4545 2011-08-08   Diego Novillo  <dnovillo@google.com>
4546
4547         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
4548         (DATA_STREAMER_H): New.
4549         (GIMPLE_STREAMER_H): New.
4550         (TREE_STREAMER_H): New.
4551         (STREAMER_HOOKS_H): New.
4552         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
4553         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
4554         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
4555         (data-streamer.o): New.
4556         (data-streamer-in.o): New.
4557         (data-streamer-out.o): New.
4558         (gimple-streamer-in.o): New.
4559         (gimple-streamer-out.o): New.
4560         (streamer-hooks.o): New.
4561         (tree-streamer.o): New.
4562         (tree-streamer-in.o): New.
4563         (tree-streamer-out.o): New.
4564         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4565         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
4566         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4567         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
4568         GIMPLE_STREAMER_H and TREE_STREAMER_H.
4569         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
4570         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
4571         (ipa-inline-analysis.o): Likewise.
4572         (ipa-pure-const.o): Likewise.
4573         * data-streamer-in.c: New.
4574         * data-streamer-out.c: New.
4575         * data-streamer.c: New.
4576         * data-streamer.h: New.
4577         * gimple-streamer-in.c: New.
4578         * gimple-streamer-out.c: New.
4579         * gimple-streamer.h: New.
4580         * ipa-inline-analysis.c: Include data-streamer.h.
4581         * ipa-prop.c: Include data-streamer.h.
4582         * ipa-pure-const.c: Include data-streamer.h.
4583         * lto-cgraph.c: Include data-streamer.h.
4584         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
4585         (lto_input_widest_uint_uleb128): Likewise.
4586         (lto_input_sleb128): Likewise.
4587         (bp_unpack_var_len_unsigned): Likewise.
4588         (bp_unpack_var_len_int): Likewise.
4589         * lto-section-out.c (lto_output_uleb128_stream): Move to
4590         data-streamer-out.c.
4591         (lto_output_widest_uint_uleb128_stream): Likewise.
4592         (lto_output_sleb128_stream): Likewise.
4593         (bp_pack_var_len_unsigned): Likewise.
4594         (bp_pack_var_len_int): Likewise.
4595         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
4596         (struct string_slot): Remove.  Update all users.
4597         (lto_tag_check_set): Make extern.
4598         (lto_tag_check_range): Move to lto-streamer.h.
4599         (lto_tag_check): Likewise.
4600         (hash_string_slot_node): Remove.  Update all users.
4601         (eq_string_slot_node): Remove.  Update all users.
4602         (string_for_index): Move to data-streamer-in.c
4603         (input_string_internal): Likewise.
4604         (input_string_cst): Move to tree-streamer-in.c.
4605         (input_identifier): Likewise.
4606         (lto_input_string): Move to data-streamer-in.c
4607         (input_record_start): Move to data-streamer.h
4608         (canon_file_name): Use new definition of struct string_slot
4609         from data-streamer.h.  Set S_SLOT.LEN.
4610         (lto_input_location): Make extern.
4611         (lto_input_chain): Move to tree-streamer-in.c.
4612         (lto_init_eh): Make extern.
4613         (input_phi): Move to gimple-streamer-in.c.
4614         (input_gimple_stmt): Likewise.
4615         (input_bb): Likewise.
4616         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
4617         (unpack_ts_real_cst_value_fields): Likewise.
4618         (unpack_ts_fixed_cst_value_fields): Likewise.
4619         (unpack_ts_decl_common_value_fields): Likewise.
4620         (unpack_ts_decl_wrtl_value_fields): Likewise.
4621         (unpack_ts_decl_with_vis_value_fields): Likewise.
4622         (unpack_ts_function_decl_value_fields): Likewise.
4623         (unpack_ts_type_common_value_fields): Likewise.
4624         (unpack_ts_block_value_fields): Likewise.
4625         (unpack_ts_translation_unit_decl_value_fields): Likewise.
4626         (unpack_value_fields): Likewise.
4627         (lto_materialize_tree): Likewise.
4628         (lto_input_ts_common_tree_pointers): Likewise.
4629         (lto_input_ts_vector_tree_pointers): Likewise.
4630         (lto_input_ts_complex_tree_pointers): Likewise.
4631         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
4632         (lto_input_ts_decl_common_tree_pointers): Likewise.
4633         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
4634         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
4635         (lto_input_ts_field_decl_tree_pointers): Likewise.
4636         (lto_input_ts_function_decl_tree_pointers): Likewise.
4637         (lto_input_ts_type_common_tree_pointers): Likewise.
4638         (lto_input_ts_type_non_common_tree_pointers): Likewise.
4639         (lto_input_ts_list_tree_pointers): Likewise.
4640         (lto_input_ts_vec_tree_pointers): Likewise.
4641         (lto_input_ts_exp_tree_pointers): Likewise.
4642         (lto_input_ts_block_tree_pointers): Likewise.
4643         (lto_input_ts_binfo_tree_pointers): Likewise.
4644         (lto_input_ts_constructor_tree_pointers): Likewise.
4645         (lto_input_ts_target_option): Likewise.
4646         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
4647         (lto_input_tree_pointers): Likewise.
4648         (lto_get_pickled_tree): Likewise.
4649         (lto_get_builtin_tree): Likewise.
4650         (lto_read_tree): Likewise.
4651         (lto_input_integer_cst): Likewise.
4652         (lto_input_tree): Likewise.
4653         * lto-streamer-out.c: Include data-streamer.h,
4654         gimple-streamer.h and streamer-hooks.h.
4655         (struct string_slot): Move to data-streamer.h.
4656         (hash_string_slot_node): Likewise.
4657         (eq_string_slot_node): Likewise.
4658         (lto_string_index): Move to data-streamer-out.c.
4659         (lto_output_string_with_length): Likewise.
4660         (lto_output_string): Likewise.
4661         (output_string_cst): Move to tree-streamer-out.c.
4662         (output_identifier): Likewise.
4663         (output_zero): Move to data-streamer-out.c
4664         (output_uleb128): Likewise.
4665         (output_sleb128): Likewise.
4666         (output_record_start): Move to data-streamer.h
4667         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
4668         (pack_ts_real_cst_value_fields): Likewise.
4669         (pack_ts_fixed_cst_value_fields): Likewise.
4670         (pack_ts_decl_common_value_fields): Likewise.
4671         (pack_ts_decl_wrtl_value_fields): Likewise.
4672         (pack_ts_decl_with_vis_value_fields): Likewise.
4673         (pack_ts_function_decl_value_fields): Likewise.
4674         (pack_ts_type_common_value_fields): Likewise.
4675         (pack_ts_block_value_fields): Likewise.
4676         (pack_ts_translation_unit_decl_value_fields): Likewise.
4677         (pack_value_fields): Likewise.
4678         (lto_output_chain): Likewise.
4679         (lto_output_ts_common_tree_pointers): Likewise.
4680         (lto_output_ts_vector_tree_pointers): Likewise.
4681         (lto_output_ts_complex_tree_pointers): Likewise.
4682         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
4683         (lto_output_ts_decl_common_tree_pointers): Likewise.
4684         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
4685         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
4686         (lto_output_ts_field_decl_tree_pointers): Likewise.
4687         (lto_output_ts_function_decl_tree_pointers): Likewise.
4688         (lto_output_ts_type_common_tree_pointers): Likewise.
4689         (lto_output_ts_type_non_common_tree_pointers): Likewise.
4690         (lto_output_ts_list_tree_pointers): Likewise.
4691         (lto_output_ts_vec_tree_pointers): Likewise.
4692         (lto_output_ts_exp_tree_pointers): Likewise.
4693         (lto_output_ts_block_tree_pointers): Likewise.
4694         (lto_output_ts_binfo_tree_pointers): Likewise.
4695         (lto_output_ts_constructor_tree_pointers): Likewise.
4696         (lto_output_ts_target_option): Likewise.
4697         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
4698         (lto_output_tree_pointers): Likewise.
4699         (lto_output_tree_header): Likewise.
4700         (lto_output_builtin_tree): Likewise.
4701         (lto_write_tree): Likewise.
4702         (lto_output_integer_cst): Likewise.
4703         (lto_output_tree): Likewise.
4704         (output_phi): Move to gimple-streamer-out.c.
4705         (output_gimple_stmt): Likewise.
4706         (output_bb): Likewise.
4707         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
4708         (streamer_hooks): Move to streamer-hooks.c.
4709         (check_handled_ts_structures): Move to tree-streamer.c
4710         (lto_streamer_cache_add_to_node_array): Likewise.
4711         (lto_streamer_cache_insert_1): Likewise.
4712         (lto_streamer_cache_insert): Likewise.
4713         (lto_streamer_cache_insert_at): Likewise.
4714         (lto_streamer_cache_append): Likewise.
4715         (lto_streamer_cache_lookup): Likewise.
4716         (lto_streamer_cache_get): Likewise.
4717         (lto_record_common_node): Likewise.
4718         (lto_preload_common_nodes): Likewise.
4719         (lto_streamer_cache_create): Likewise.
4720         (lto_streamer_cache_delete): Likewise.
4721         (streamer_hooks_init): Move to streamer-hooks.c.
4722         * lto-streamer.h: Include diagnostic.h
4723         (struct output_block, struct lto_input_block,
4724         struct data_in, struct bitpack_d): Remove forward declarations.
4725         (struct bitpack_d): Move to data-streamer.h.
4726         (struct lto_streamer_cache_d): Move to tree-streamer.h.
4727         (struct streamer_hooks): Move to streamer-hooks.h.
4728         (bp_pack_var_len_unsigned): Move to data-streamer.h.
4729         (bp_pack_var_len_int): Likewise.
4730         (bp_unpack_var_len_unsigned): Likewise.
4731         (bp_unpack_var_len_int): Likewise.
4732         (lto_input_location): Declare.
4733         (lto_tag_check_set): Declare.
4734         (lto_init_eh): Declare.
4735         (lto_output_tree_ref): Declare.
4736         (lto_output_location): Declare.
4737         (bitpack_create): Move to data-streamer.h.
4738         (bp_pack_value): Likewise.
4739         (lto_output_bitpack): Likewise.
4740         (lto_input_bitpack): Likewise.
4741         (bp_unpack_value): Likewise.
4742         (lto_output_1_stream): Likewise.
4743         (lto_input_1_unsigned): Likewise.
4744         (lto_output_int_in_range): Likewise.
4745         (lto_input_int_in_range): Likewise.
4746         (bp_pack_int_in_range): Likewise.
4747         (bp_unpack_int_in_range): Likewise.
4748         (lto_output_enum): Likewise.
4749         (lto_input_enum): Likewise.
4750         (bp_pack_enum): Likewise.
4751         (bp_unpack_enum): Likewise.
4752         * streamer-hooks.c: New.
4753         * streamer-hooks.h: New.
4754         * tree-streamer-in.c: New.
4755         * tree-streamer-out.c: New.
4756         * tree-streamer.c: New.
4757         * tree-streamer.h: New.
4758
4759 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4760
4761         * gthr-posix95.h: Remove.
4762         * gthr.h [_PTHREADS95]: Remove.
4763         * configure.ac (enable_threads): Remove posix95.
4764         * configure: Regenerate.
4765         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
4766
4767 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
4768
4769         PR target/49781
4770         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
4771         SImode addresses.
4772         (ix86_print_operand_address): Handle zero-extended addresses.
4773         (memory_address_length): Add length of addr32 prefix for
4774         zero-extended addresses.
4775         (ix86_secondary_reload): Handle moves to/from double-word general
4776         registers from/to zero-extended addresses.
4777         * config/i386/predicates.md (lea_address_operand): Reject
4778         zero-extended operands.
4779
4780 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
4781
4782         PR other/48007
4783         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
4784
4785         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
4786         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
4787
4788         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
4789         (_Unwind_Context_Reg_Val): Likewise.
4790         (_Unwind_Get_Unwind_Word): Likewise.
4791         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
4792         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
4793         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
4794         for EXTENDED_CONTEXT_BIT.
4795         (__frame_state_for): Likewise.
4796         (uw_init_context_1): Likewise.
4797         (_Unwind_GetGR): Updated.
4798         (_Unwind_SetGR): Likewise.
4799         (_Unwind_GetGRPtr): Likewise.
4800         (_Unwind_SetGRPtr): Likewise.
4801         (_Unwind_SetGRValue): Likewise.
4802         (_Unwind_GRByValue): Likewise.
4803         (uw_install_context_1): Likewise.
4804
4805         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
4806         ASSUME_EXTENDED_UNWIND_CONTEXT.
4807         * doc/tm.texi: Regenerated.
4808
4809 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4810
4811         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
4812
4813 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4814
4815         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
4816         Linux/GNU-specific.
4817         (DEC Alpha Options, -mtune): Likewise.
4818         (MIPS Options, -march): native is supported on IRIX.
4819
4820 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4821
4822         * config/sparc/driver-sparc.c: New file.
4823         * config/sparc/x-sparc: New file.
4824         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
4825         * config/sparc/sparc.opt (native): New value for enum processor_type.
4826         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
4827         * config/sparc/sparc.c (sparc_option_override): Abort if
4828         PROCESSOR_NATIVE gets here.
4829         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
4830         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
4831         DRIVER_SELF_SPECS): Define.
4832         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
4833         (SPARC Options, -mtune): Likewise.
4834         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
4835         Substitute result.
4836         * configure: Regenerate.
4837         * Makefile.in (EXTRA_GCC_LIBS): Set.
4838         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
4839         (cpp$(exeext)): Likewise.
4840
4841 2011-08-08  Richard Guenther  <rguenther@suse.de>
4842
4843         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
4844         split out from ...
4845         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
4846         by composition.
4847
4848 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
4849
4850         PR tree-optimization/50005
4851         * ipa-inline-analysis (remap_predicate): Add cast to
4852         silence signed/unsigned comparison warning.
4853
4854 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
4855
4856         * modulo-sched.c (get_sched_window): Use a table for the debug output.
4857         Print the current ii.
4858         (sms_schedule_by_order): Reduce whitespace in dump line.
4859
4860 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
4861
4862         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
4863         and one loop for successors.  Fix upper bound of memory range.
4864
4865 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4866
4867         PR target/50001
4868         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
4869         (TARGET_INSTANTIATE_DECLS): New define.
4870
4871 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
4872             Mikael Morin   <mikael.morin@sfr.fr>
4873
4874         * Makefile.in (INCLUDES_FOR_TARGET): New.
4875         (LIBGCC2_CFLAGS): Use it.
4876         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
4877
4878 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4879
4880         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
4881         frame->save_regs_using_mov calculation.
4882
4883 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
4884
4885         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
4886         * config/i386/sse.md (castmode): New mode attribute.
4887         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
4888         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
4889
4890 2011-08-05  Jan Hubicka  <jh@suse.cz>
4891
4892         PR middle-end/49494
4893         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
4894
4895 2011-08-05  Jan Hubicka  <jh@suse.cz>
4896
4897         PR middle-end/49500
4898         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
4899         handle aliases.
4900         (create_emultls_var):New function.
4901         (ipa_lower_emutls): Handle aliases correctly.
4902
4903 2011-08-05  Jan Hubicka  <jh@suse.cz>
4904
4905         PR middle-end/49735
4906         * ipa-inline.c (recursive_inlining): Look through aliases.
4907
4908 2011-08-05  Jason Merrill  <jason@redhat.com>
4909
4910         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4911         declarations to beginning of function.
4912
4913 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4914
4915         PR rtl-optimization/49900
4916         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4917         ensure basic blocks stay in the same order.
4918
4919 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
4920
4921         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4922         store_bit_field.
4923         (s390_expand_atomic): Same.
4924
4925 2011-08-05  Richard Henderson  <rth@redhat.com>
4926
4927         PR rtl-opt/49977
4928         * dwarf2cfi.c (scan_insn_after): Split out of ...
4929         (scan_trace): ... here.  Correctly place notes wrt sequences.
4930
4931 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4932             Richard Henderson  <rth@redhat.com>
4933
4934         PR rtl-opt/49982
4935         * expr.c (fixup_args_size_notes): Look through no-op moves.
4936
4937 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4938
4939         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4940         of "m" for operand 0.  Add type and mode attribute.
4941         (*pushxf_nointeger"): Use "<" constraint for operand 0.
4942         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
4943         constraint instead of "o" for opreand 1.
4944         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
4945         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4946         operand 0, alternative 4.
4947         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4948
4949 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         * config/i386/predicates.md (lea_address_operand): Rename from
4952         no_seg_address_operand.
4953         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4954         (*lea_1_zext): Ditto.
4955         (*lea_2): Ditto.
4956         (*lea_2_zext): Ditto.
4957
4958 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
4959
4960         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4961         parts.base and parts.index.
4962         * config/i386/predicates.md (aligned_operand): Ditto.
4963         (cmpxchg8b_pic_memory_operand): Ditto.
4964
4965 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4966
4967         * config/soft-fp: Move to ../libgcc.
4968         * Makefile.in (SFP_MACHINE): Remove.
4969         (libgcc-support): Remove $(SFP_MACHINE) dependency.
4970         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4971         * config/arm/t-arm-softfp: Move to
4972         ../libgcc/config/arm/t-softfp.
4973         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4974         * config/c6x/t-c6x-softfp: Remove.
4975         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4976         * config/i386/t-fprules-softfp: Move to
4977         ../libgcc/config/t-softfp-tf.
4978         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4979         * config/ia64/t-fprules-softfp: Remove.
4980         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4981         * config/lm32/t-fprules-softfp: Remove.
4982         * config/moxie/sfp-machine.h: Remove.
4983         * config/moxie/t-moxie-softfp: Remove.
4984         * config/rs6000/darwin-ldouble-format: Move to
4985         ../libgcc/config/rs6000/ibm-ldouble-format.
4986         * config/rs6000/darwin-ldouble.c: Move to
4987         ../libgcc/config/rs6000/ibm-ldouble.c
4988         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4989         * config/rs6000/libgcc-ppc64.ver: Likewise.
4990         * config/rs6000/sfp-machine.h: Likewise.
4991         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4992         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4993         (LIB2FUNCS_EXTRA): Remove.
4994         (TARGET_LIBGCC2_CFLAGS): Remove.
4995         * config/rs6000/t-aix52: Likewise
4996         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4997         $(srcdir)/config/rs6000/darwin-ldouble.c.
4998         (SHLIB_MAPFILES): Remove.
4999         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
5000         $(srcdir)/config/rs6000/darwin-ldouble.c.
5001         * config/rs6000/t-fprules-softfp: Move to
5002         ../libgcc/config/t-softfp-sfdf.
5003         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
5004         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
5005         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
5006         $(srcdir)/config/rs6000/darwin-ldouble.c.
5007         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
5008         * config/score/t-score-softfp: Remove.
5009         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
5010         soft-fp/t-softfp from tmake_file.
5011         (arm*-*-uclinux*): Likewise.
5012         (arm*-*-ecos-elf): Likewise.
5013         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
5014         (arm*-*-rtems*): Likewise.
5015         (arm*-*-elf): Likewise.
5016         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
5017         tmake_file.
5018         (moxie-*-uclinux*): Likewise.
5019         (moxie-*-rtems*): Likewise.
5020         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
5021         tmake_file.
5022         (lm32-*-rtems*): Likewise.
5023         (lm32-*-uclinux*): Likewise.
5024         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
5025         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5026         (powerpc-*-linux*, powerpc64-*-linux*): Remove
5027         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
5028         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
5029         tmake_file.
5030         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
5031         tmake_file.
5032         (tic6x-*-uclinux): Likewise.
5033         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
5034         soft-fp/t-softfp from tmake_file.
5035         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
5036         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
5037         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
5038         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5039         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
5040
5041 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5042
5043         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
5044         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
5045         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
5046         TPBIT, TPBIT_FUNCS.
5047         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
5048         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
5049         Remove.
5050         * config/arm/t-vxworks: Likewise.
5051         * config/arm/t-wince-pe: Likewise.
5052         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
5053         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5054         * config/bfin/t-bfin-elf: Likewise.
5055         * config/bfin/t-bfin-linux: Likewise.
5056         * config/bfin/t-bfin-uclinux: Likewise.
5057         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
5058         Remove.
5059         * config/fr30/t-fr30: Likewise.
5060         * config/frv/t-frv: Likewise.
5061         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
5062         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5063         * config/m32c/t-m32c: Likewise.
5064         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
5065         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5066         * config/mcore/t-mcore: Likewise.
5067         * config/mep/t-mep: Likewise.
5068         * config/microblaze/t-microblaze: Likewise.
5069         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
5070         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5071         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
5072         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5073         * config/mn10300/t-linux: Remove.
5074         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5075         * config/pdp11/t-pdp11: Likewise.
5076         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
5077         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
5078         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5079         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
5080         * config/rs6000/t-aix52: Likewise.
5081         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
5082         $(srcdir)/config/rs6000/ppc64-fp.c.
5083         * config/rs6000/t-fprules-fpbit: Remove.
5084         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
5085         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5086         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
5087         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5088         * config/sparc/t-elf: Likewise.
5089         * config/sparc/t-leon: Likewise.
5090         * config/sparc/t-leon3: Likewise.
5091         * config/spu/t-spu-elf: Likewise.
5092         (DPBIT_FUNCS): Remove.
5093         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
5094         * config/v850/t-v850: Likewise.
5095         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
5096         (avr-*-*): Likewise.
5097         (h8300-*-rtems*): Set libgcc_tm_file.
5098         (h8300-*-elf*): Likewise.
5099         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
5100         tmake_file.
5101         (powerpc-*-eabisim*): Likewise.
5102         (powerpc-*-elf*): Likewise.
5103         (powerpc-*-eabialtivec*): Likewise.
5104         (powerpc-xilinx-eabi*): Likewise.
5105         (powerpc-*-eabi*): Likewise.
5106         (powerpc-*-rtems*): Likewise.
5107         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
5108         (powerpcle-*-elf*): Likewise.
5109         (powerpcle-*-eabisim*): Likewise.
5110         (powerpcle-*-eabi*): Likewise.
5111         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
5112         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
5113         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
5114         Remove.
5115
5116 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5117
5118         * Makefile.in (UNWIND_H): Remove.
5119         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
5120         ../libgcc/Makefile.in.
5121         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
5122         (LIBUNWINDDEP): Remove.
5123         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
5124         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
5125         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
5126         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
5127         Don't copy $(UNWIND_H).
5128         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
5129         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
5130         * aclocal.m4: Regenerate.
5131         * configure: Regenerate.
5132         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
5133         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
5134         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
5135         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
5136         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
5137         * config/arm/libunwind.S, config/arm/pr-support.c,
5138         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
5139         ../libgcc/config/arm.
5140         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
5141         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
5142         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
5143         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
5144         ($(T)frvend$(objext)): Likewise.
5145         * config/ia64/t-glibc (LIB2ADDEH): Remove.
5146         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
5147         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
5148         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
5149         ../libgcc/config/ia64.
5150         * config/ia64/t-hpux (LIB2ADDEH): Remove.
5151         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
5152         * config/ia64/t-vms (LIB2ADDEH): Remove.
5153         * config/ia64/vms.h (UNW_IVMS_MODE,
5154         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
5155         * config/picochip/t-picochip (LIB2ADDEH): Remove.
5156         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
5157         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
5158         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
5159         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
5160         $(srcdir)/../libgcc to refer to unwinder sources.
5161         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
5162         * config/t-darwin (LIB2ADDEH): Remove.
5163         * config/t-freebsd (LIB2ADDEH): Remove.
5164         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
5165         * config/t-libunwind-elf: Move to ../libgcc/config.
5166         * config/t-linux (LIB2ADDEH): Remove.
5167         * config/t-sol2 (LIB2ADDEH): Remove.
5168         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
5169         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
5170
5171 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
5172
5173         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
5174
5175         * doc/invoke.texi: Document core-avx-i.
5176
5177 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5178
5179         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
5180
5181 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
5182
5183         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
5184         result of multiple results reduction when extracting the final
5185         value using scalar code.
5186
5187 2011-08-05  Richard Guenther  <rguenther@suse.de>
5188
5189         PR tree-optimization/49984
5190         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
5191
5192 2011-08-05  Richard Guenther  <rguenther@suse.de>
5193
5194         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
5195         return true for constant integer ranges.
5196         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
5197         BIT_IOR_EXPR handling.
5198
5199 2011-08-04  Kai Tietz  <ktietz@redhat.com>
5200
5201         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
5202         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
5203
5204 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
5205
5206         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
5207         pattern def statement, and its access macro.
5208         (NUM_PATTERNS): Set to 5.
5209         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5210         pattern def statement.
5211         (vect_transform_loop): Likewise.
5212         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
5213         function vect_recog_over_widening_pattern ().
5214         (vect_operation_fits_smaller_type): New function.
5215         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
5216         Likewise.
5217         (vect_pattern_recog_1): Move the code that marks pattern
5218         statements to vect_mark_pattern_stmts (), and call it.  Update
5219         documentation.
5220         * tree-vect-stmts.c (vect_supportable_shift): New function.
5221         (vect_analyze_stmt): Handle pattern def statement.
5222         (new_stmt_vec_info): Initialize pattern def statement.
5223
5224 2011-08-04  Richard Henderson  <rth@redhat.com>
5225
5226         PR target/49964
5227         * config/i386/i386.c (ix86_expand_call): Don't create nested
5228         PARALLELs for TARGET_VZEROUPPER.
5229         (ix86_split_call_vzeroupper): Fix extraction of the original call.
5230         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
5231         recognize nested PARALLELs.
5232         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
5233         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
5234         *sibcall_value_pop_vzeroupper): Likewise.
5235
5236 2011-08-04  Richard Henderson  <rth@redhat.com>
5237
5238         PR middle-end/49968
5239         * calls.c (expand_call): Use fixup_args_size_notes for
5240         emit_stack_restore.
5241         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
5242         in non-standard modes.
5243
5244 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5245
5246         * gcc.c (self_spec): New variable.
5247         (static_specs): Add self_spec.
5248         (main): Call do_self_spec on "self_spec" specs after reading
5249         user specs files.  Move compare_debug handling right after that.
5250
5251 2011-08-04  Richard Guenther  <rguenther@suse.de>
5252
5253         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
5254         (value_range_nonnegative_p): New function.
5255         (ssa_name_nonnegative_p): Use it.
5256         (value_range_constant_singleton): New function.
5257         (op_with_constant_singleton_value_range): Use it.
5258         (extract_range_from_binary_expr_1): New function, split out from ...
5259         (extract_range_from_binary_expr): ... this.  Remove fallback
5260         constant folding done here.
5261
5262 2011-08-04  Richard Guenther  <rguenther@suse.de>
5263
5264         PR tree-optimization/49806
5265         * tree-vrp.c (op_with_boolean_value_range_p): New function.
5266         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
5267         a new statement for a final conversion to bool.
5268
5269 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
5270
5271         * gengtype-state.c: Include "bconfig.h" if
5272         GENERATOR_FILE is defined, "config.h" otherwise.
5273         * gengtype.c: Likewise.
5274         * gengtype-lex.l: Likewise.
5275         * gengtype-parse.c: Likewise.
5276         * Makefile.in (gengtype-lex.o-warn): New variable.
5277         (plugin_resourcesdir): Likewise.
5278         (plugin_bindir): Likewise.
5279         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
5280         (MOSTLYCLEANFILES): Add gengtype$(exeext).
5281         (native): Depend on gengtype$(exeext) is $enable_plugin
5282         is set to "yes".
5283         (gtype.state): Depend on s-gtype. Use temporary file.
5284         (gengtype-lex.o): New rule.
5285         (gengtype-parse.o): Likewise.
5286         (gengtype-state.o): Likewise.
5287         (gengtype$(exeext)): Likewise.
5288         (install-gengtype): Likewise.
5289         (gengtype.o): Likewise.
5290         (build/gengtype.o): Depend on version.h.
5291         (build/gengtype-state): Depend on double-int.h, version.h,
5292         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
5293         (install-plugin): Depend on install-gengtype.
5294
5295 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
5296
5297         PR middle-end/49905
5298         * tree.h (init_attributes): New prototype.
5299         * attribs.c (init_attributes): No longer static.
5300
5301 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5302
5303         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
5304         maybe_suffix.
5305
5306 2011-08-03   David Li  <davidxl@google.com>
5307
5308         * tree-optimize.c (execute_fixup_cfg): Fix up entry
5309         outgoing edge counts after inlining.
5310
5311 2011-08-03   David Li  <davidxl@google.com>
5312
5313         * profile.c (compute_branch_probabilities): Compute
5314         function frequency after profile annotation.
5315
5316 2011-08-04  Alan Modra  <amodra@gmail.com>
5317
5318         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
5319         use_backchain_to_restore_sp initialisation.
5320         (rs6000_legitimate_offset_address_p): Simplify offset test.
5321
5322 2011-08-03  Richard Henderson  <rth@redhat.com>
5323
5324         * config/spu/spu.md: Use define_c_enum instead of define_constants.
5325         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
5326         (UNSPECV_NOP): New.
5327
5328 2011-08-03  Richard Henderson  <rth@redhat.com>
5329
5330         PR target/34888
5331         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
5332
5333 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
5334
5335         PR tree-optimization/49948
5336         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
5337
5338 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
5339
5340         * config/m32c/m32c.c (class_sizes): Remove.
5341         (reduce_class): Change arguments and return type to reg_class_t.
5342         Change type cc var to HARD_REG_SET. Change type best var to
5343         reg_class_t. Change type best_size var to unsigned int. Remove
5344         initialization class_sizes var. Use reg_class_size array instead
5345         of class_sizes. Use reg_class_contents array instead
5346         of class_contents.
5347
5348 2011-08-03  Richard Guenther  <rguenther@suse.de>
5349
5350         PR middle-end/49958
5351         * fold-const.c (fold_binary_loc): Only associate
5352         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
5353         overflow wraps.
5354
5355 2011-08-03  Alan Modra  <amodra@gmail.com>
5356
5357         PR rtl-optimization/49941
5358         * jump.c (mark_jump_label): Comment.
5359         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
5360         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
5361         (mark_used_flags): Don't mark RETURN.
5362
5363 2011-08-03  Richard Guenther  <rguenther@suse.de>
5364
5365         PR tree-optimization/49938
5366         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
5367         deal with a POLYNOMIAL_CHREC.
5368
5369 2011-08-03  Revital Eres  <revital.eres@linaro.org>
5370
5371         * modulo-sched.c (calculate_stage_count,
5372         calculate_must_precede_follow, get_sched_window,
5373         try_scheduling_node_in_cycle, remove_node_from_ps): Add
5374         declaration.
5375         (update_node_sched_params, set_must_precede_follow, optimize_sc):
5376         New functions.
5377         (reset_sched_times): Call update_node_sched_params.
5378         (sms_schedule): Call optimize_sc.
5379         (get_sched_window): Change function arguments.
5380         (sms_schedule_by_order): Update call to get_sched_window.
5381         Call set_must_precede_follow.
5382         (calculate_stage_count): Add function argument.
5383
5384 2011-08-02  Richard Henderson  <rth@redhat.com>
5385
5386         PR target/49864
5387         PR target/49879
5388         * reg-notes.def (REG_ARGS_SIZE): New.
5389         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
5390         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
5391         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
5392         different stack levels.
5393         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
5394         (maybe_move_args_size_note): New.
5395         (combine_stack_adjustments_for_block): Use it.
5396         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
5397         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
5398         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
5399         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
5400         (cur_cfa): New.
5401         (queued_args_size): Remove.
5402         (add_cfi_args_size): Assert size is non-negative.
5403         (stack_adjust_offset, dwarf2out_args_size): Remove.
5404         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
5405         (notice_args_size, notice_eh_throw): New.
5406         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
5407         (dwarf2out_frame_debug_adjust_cfa): Likewise.
5408         (dwarf2out_frame_debug_cfa_offset): Likewise.
5409         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
5410         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
5411         (change_cfi_row): Don't emit args_size.
5412         (maybe_record_trace_start_abnormal): Split out from ...
5413         (maybe_record_trace_start): Here.  Set args_size_undefined.
5414         (create_trace_edges): Update to match.
5415         (scan_trace): Handle REG_ARGS_SIZE.
5416         (connect_traces): Connect args_size between EH insns.
5417         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
5418         * explow.c (suppress_reg_args_size): New.
5419         (adjust_stack_1): Split out from ...
5420         (adjust_stack): ... here.
5421         (anti_adjust_stack): Use it.
5422         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
5423         * expr.c (mem_autoinc_base): New.
5424         (fixup_args_size_notes): New.
5425         (emit_single_push_insn_1): Rename from emit_single_push_insn.
5426         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
5427         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
5428         * reload1.c (reload_as_needed): Likewise.
5429         * rtl.h (fixup_args_size_notes): Declare.
5430
5431 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
5432
5433         PR bootstrap/49914
5434         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
5435         of abs.
5436         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
5437         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
5438
5439 2011-08-02  Richard Henderson  <rth@redhat.com>
5440
5441         * config/h8300/h8300.c (push, pop): Return the insn.
5442         (h8300_swap_into_er6): Generate correct unwind info.
5443         (h8300_swap_out_of_er6): Likewise.
5444         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
5445         complex cfa expression.
5446         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
5447
5448 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
5449
5450         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5451
5452 2011-08-02  Richard Henderson  <rth@redhat.com>
5453
5454         PR target/49878
5455         * config/h8300/h8300.c (h8300_move_ok): New.
5456         * config/h8300/h8300-protos.h: Declare it.
5457         * config/h8300/h8300.md (P): New mode iterator.
5458         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
5459         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
5460         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
5461         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
5462         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
5463         and pushqi1_h8300hs_normal; use PRE_MODIFY and
5464         register_no_sp_elim_operand.
5465         (*pushhi1_h8300hs_<P>): Similarly.
5466         (pushqi1, pushhi1, pushhi1_h8300): Remove.
5467         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
5468
5469 2011-08-02  Richard Henderson  <rth@redhat.com>
5470
5471         PR target/49881
5472         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
5473
5474 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
5475
5476         * c-parser.c (enum c_parser_prec): New enum, moved from within
5477         c_parser_binary_expression.
5478         (c_parser_binary_expression): Add PREC argument.  Stop parsing
5479         if operator has lower or equal precedence than PREC.
5480         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
5481         callers.
5482         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
5483         Adjust c_finish_omp_atomic caller.
5484         (c_parser_omp_taskyield): New function.
5485         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
5486         (c_parser_omp_clause_name): Handle final and mergeable clauses.
5487         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
5488         functions.
5489         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
5490         and PRAGMA_OMP_CLAUSE_MERGEABLE.
5491         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
5492         (c_parser_omp_clause_reduction): Handle min and max.
5493         * c-typeck.c (c_finish_omp_clauses): Don't complain about
5494         const qualified predetermined vars in firstprivate clause.
5495         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5496         Handle MIN_EXPR and MAX_EXPR.
5497         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
5498         and OMP_CLAUSE_MERGEABLE.
5499         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
5500         and OMP_ATOMIC_CAPTURE_NEW.
5501         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
5502         OMP_CLAUSE_MERGEABLE.
5503         (omp_clause_code_name): Likewise.
5504         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5505         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
5506         and OMP_CLAUSE_MERGEABLE.
5507         (OMP_CLAUSE_FINAL_EXPR): Define.
5508         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
5509         OMP_CLAUSE_MERGEABLE.
5510         (expand_task_call): Likewise.
5511         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
5512         (expand_omp_atomic_fetch_op): Handle cases where old or new
5513         value is needed afterwards.
5514         (expand_omp_atomic): Call expand_omp_atomic_load resp.
5515         expand_omp_atomic_store.
5516         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
5517         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
5518         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
5519         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5520         * tree-nested.c (convert_nonlocal_omp_clauses,
5521         convert_local_omp_clauses): Likewise.
5522         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
5523         OMP_ATOMIC_CAPTURE_NEW): New.
5524         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
5525         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
5526         New inlines.
5527         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
5528         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
5529         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
5530
5531 2011-08-02  Kai Tietz  <ktietz@redhat.com>
5532
5533         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
5534         boolean-type.
5535         (ssa_forward_propagate_and_combine): Interprete result of
5536         forward_propagate_comparison.
5537         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
5538         boolean-typed operands for comparisons.
5539
5540 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
5541
5542         * config/avr/libgcc.S: Gather related function in the
5543         same input section.
5544         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
5545         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
5546         references.
5547         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
5548         __udivmodsi4, __divmodsi4, __prologue_saves__,
5549         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
5550         __do_copy_data, __do_clear_bss, __do_global_ctors,
5551         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
5552
5553 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
5554
5555         PR target/47766
5556         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
5557         (stack_protect_test): The pattern compares ptr_mode value.
5558
5559 2011-08-02  Alan Modra  <amodra@gmail.com>
5560
5561         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
5562         note for save_LR_around_toc_setup sequence.
5563
5564 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5565
5566         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
5567
5568 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
5569             Joseph Myers  <joseph@codesourcery.com>
5570
5571         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
5572         * hwint.c: Include diagnostic-core.h.
5573         (abs_hwi): New.
5574         (gcd): Moved here...
5575         (pos_mul_hwi): New.
5576         (mul_hwi): New.
5577         (least_common_multiple): Moved here...
5578         * hwint.h (gcd): ... from here.
5579         (least_common_multiple): ... from here.
5580         (HOST_WIDE_INT_MIN): New.
5581         (HOST_WIDE_INT_MAX): New.
5582         (abs_hwi): Declared.
5583         (gcd): Declared.
5584         (pos_mul_hwi): Declared.
5585         (mul_hwi): Declared.
5586         (least_common_multiple): Declared.
5587         * omega.c (check_pos_mul): Removed.
5588         (check_mul): Removed.
5589         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
5590         mul_hwi instead of check_mul.
5591
5592 2011-08-01  Richard Henderson  <rth@redhat.com>
5593
5594         PR target/49881
5595         * config/avr/avr.h (PUSH_ROUNDING): New.
5596         * config/avr/avr.md (pushqi1): Rename from *pushqi.
5597         (*pushhi, *pushsi, *pushsf): Remove.
5598         (MPUSH): New mode iterator.
5599         (push<MPUSH>1): New expander.
5600
5601 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
5602
5603         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
5604         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
5605         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
5606         mmix_preferred_output_reload_class): Remove.
5607         * config/mmix/mmix.c (mmix_preferred_reload_class,
5608         mmix_preferred_output_reload_class): Make static. Change rclass
5609         argument and return type to reg_class_t.
5610         (TARGET_PREFERRED_RELOAD_CLASS,
5611         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5612
5613 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5614
5615         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
5616         handling.
5617
5618 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5619
5620         PR target/47766
5621         * config/i386/i386.md (PTR): New.
5622         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
5623         (stack_protect_test): Likewise.
5624         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
5625         (stack_tls_protect_set_<mode>): Likewise.
5626         (stack_tls_protect_test_<mode>): Likewise.
5627
5628 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
5629
5630         PR target/49927
5631         * config/i386/i386.c (ix86_address_subreg_operand): New.
5632         (ix86_decompose_address): Use ix86_address_subreg_operand.
5633         (ix86_legitimate_address_p): Do not assert that subregs satisfy
5634         register_no_elim_operand in DImode.
5635
5636 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
5637
5638         PR tree-optimization/49926
5639         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
5640         in a chain doesn't have uses both inside and outside the loop.
5641
5642 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5643
5644         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
5645         * config/avr/avr-devices.c (avr_mcu_types): Use it.
5646         * config/avr/avr-mcus.def (AVR_MCU): Use it.
5647         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
5648         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
5649         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
5650         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
5651         to detect if XJMP must not be skipped.
5652
5653 2011-08-02  Alan Modra  <amodra@gmail.com>
5654
5655         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
5656         Delete.
5657         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
5658         (rs6000_emit_prologue): Don't prematurely return when
5659         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
5660         save_toc_in_prologue case.
5661         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
5662         calls_alloca.
5663
5664 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
5665
5666         * config/avr/avr-devices.c: Delete SVN property svn:executable.
5667         * config/avr/predicates.md: Ditto.
5668         * config/avr/driver-avr.c: Ditto.
5669         * config/avr/genopt.sh: Set SVN property svn:executable to *.
5670
5671 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5672
5673         * calls.c (emit_library_call_value_1): Declare size only if
5674         BLOCK_REG_PADDING is defined.
5675
5676 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
5677
5678         PR target/49547
5679         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5680         (x86_64-*-*): Likewise.
5681         * config/i386/i386.opt (mlzcnt): New.
5682         * config/i386/abmintrin.h: File removed.
5683         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
5684         * config/i386/lzcntintrin.h: ... here.  New file.
5685         (__lzcnt): Rename to ...
5686         (__lzcnt32): ... this.
5687         * config/i386/bmiintrin.h (head): Update copyright year.
5688         (__lzcnt_u16): Removed.
5689         (__lzcnt_u32): Likewise.
5690         (__lzcnt_u64): Likewise.
5691         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
5692         is defined, remove abmintrin.h.
5693         * config/i386/cpuid.h (bit_LZCNT): New.
5694         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5695         LZCNT feature.
5696         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5697         __LZCNT__ if needed.
5698         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
5699         (ix86_option_override_internal): Handle LZCNT option.
5700         (ix86_valid_target_attribute_inner_p): Likewise.
5701         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
5702         * config/i386/i386.h (TARGET_LZCNT): New.
5703         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
5704         * config/i386/i386.md (clz<mode>2): Update insn constraint.
5705         (clz<mode>2_lzcnt): Likewise.
5706         * doc/invoke.texi: Mention -mlzcnt option.
5707         * doc/extend.texi: Likewise.
5708
5709 2011-08-01  Julian Brown  <julian@codesourcery.com>
5710
5711         * configure.ac (fixed-point): Add ARM support.
5712         * configure: Regenerate.
5713         * config/arm/arm.c (arm_fixed_mode_set): New struct.
5714         (arm_set_fixed_optab_libfunc): New.
5715         (arm_set_fixed_conv_libfunc): New.
5716         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
5717         ARM-specific names.
5718         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
5719         return values in SImode.
5720         (arm_return_in_msb): Return fixed-point types in the msb.
5721         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
5722         upwards.
5723         (arm_scalar_mode_supported_p): Support fixed-point modes.
5724         (arm_vector_mode_supported_p): Support vector fixed-point modes.
5725         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
5726         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
5727         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
5728         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
5729         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
5730         New mode iterators.
5731         (qaddsub_suf): New mode attribute.
5732         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
5733         vector modes.
5734         * config/arm/predicates.md (sat_shift_operator): New predicate.
5735         * config/arm/arm-fixed.md: New.
5736         * config/arm/arm.md: Include arm-fixed.md.
5737         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
5738
5739 2011-08-01  Julian Brown  <julian@codesourcery.com>
5740
5741         * calls.c (emit_library_call_value_1): Support padding for libcall
5742         arguments and return values.
5743         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
5744         downwards in big-endian mode.
5745
5746 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5747
5748         PR debug/49887
5749         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
5750         * config/sol2-protos.h: Likewise.
5751         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
5752         solaris_code_end.
5753         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
5754         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
5755         solaris_file_end.
5756         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
5757
5758 2011-08-01  Julian Brown  <julian@codesourcery.com>
5759
5760         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
5761
5762 2011-08-01  Julian Brown  <julian@codesourcery.com>
5763
5764         * final.c (output_addr_const): Print fixed-point constants as
5765         decimal not hex.
5766
5767 2011-08-01  Richard Guenther  <rguenther@suse.de>
5768
5769         * stor-layout.c (initialize_sizetypes): Properly sign-extend
5770         bitsiztype TYPE_MAX_VALUE.
5771
5772 2011-08-01  Julian Brown  <julian@codesourcery.com>
5773
5774         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
5775         comparison helpers.
5776
5777 2011-07-31  Richard Henderson  <rth@redhat.com>
5778
5779         * config/h8300/crti.asm: Add flags to .section directive.
5780         * config/h8300/crtn.asm: Likewise.
5781
5782 2011-07-31  Richard Henderson  <rth@redhat.com>
5783
5784         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
5785         * tree.c (build_common_tree_nodes): Likewise.
5786
5787 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5788
5789         PR target/49880
5790         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
5791         (divsi3_i1): Likewise.
5792
5793 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5794
5795         PR tree-optimization/49749
5796         * tree-ssa-reassoc.c (get_rank): New forward declaration.
5797         (PHI_LOOP_BIAS): New macro.
5798         (phi_rank): New function.
5799         (loop_carried_phi): Likewise.
5800         (propagate_rank): Likewise.
5801         (get_rank): Add calls to phi_rank and propagate_rank.
5802
5803 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5804
5805         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
5806         of TARGET_64BIT.
5807         (PTRDIFF_TYPE): Likewise.
5808
5809 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
5810
5811         PR target/49920
5812         * config/i386/i386.md (strset): Do not expand strset_singleop
5813         when %eax or $edi are fixed.
5814         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
5815         (*strsetsi_1): Ditto.
5816         (*strsethi_1): Ditto.
5817         (*strsetqi_1): Ditto.
5818         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
5819         (*rep_stossi): Ditto.
5820         (*rep_stosqi): Ditto.
5821         (*strlenqi_1): Ditto.
5822         (cmpstrnsi): Also fail when %ecx is fixed.
5823         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
5824         (*cmpstrnqi_1): Ditto.
5825         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
5826         (*strmovsi_1): Ditto.
5827         (*strmovhi_1): Ditto.
5828         (*strmovqi_1): Ditto.
5829         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
5830         (*rep_movsi): Ditto.
5831         (*rep_movqi): Ditto.
5832
5833 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
5834
5835         PR target/47908
5836         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
5837         Disable instruction scheduling for non-ColdFire targets.
5838         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5839
5840 2011-07-31  Revital Eres  <revital.eres@linaro.org>
5841
5842         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
5843         of anti-dep edge from a branch.
5844         (add_cross_iteration_register_deps): Create anti-dep edge from
5845         a branch.
5846
5847 2011-07-31  Revital Eres  <revital.eres@linaro.org>
5848
5849         * modulo-sched.c: Change comment.
5850         (reset_sched_times): Fix print message.
5851         (print_partial_schedule): Add print info.
5852
5853 2011-07-31  Tom de Vries  <tom@codesourcery.com>
5854
5855         PR middle-end/43513
5856         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
5857         get_object_alignment and TYPE_ALIGN.
5858
5859 2011-07-30  Tom de Vries  <tom@codesourcery.com>
5860
5861         PR middle-end/43513
5862         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
5863         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
5864
5865 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5866
5867         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
5868         <sys/sbd.h>.
5869         (cpu_types): New array.
5870         (cputype): New function.
5871         (host_detect_local_cpu): Only define buf, f if !__sgi__.
5872         Use scaninvent instead of /proc/cpuinfo if __sgi__.
5873         * config.host: Also use driver-native.o, mips/x-native on
5874         mips-sgi-irix*.
5875         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
5876         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
5877         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
5878
5879 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
5880
5881         PR middle-end/49897
5882         PR middle-end/49898
5883         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
5884         in nested parallel and outer is a gimple_reg, mark it as addressable
5885         and set its bit in task_shared_vars bitmap too.
5886
5887 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
5888
5889         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
5890
5891 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5892
5893         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
5894         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
5895         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
5896         AMASK_LOCKPFTCHOK): Define.
5897         (host_detect_local_cpu): Remove buf, f, cpu_names.
5898         Define cpu_types, implver, amask.
5899         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
5900         native CPU.
5901         * config.host: Also use driver-alpha.o, alpha/x-alpha on
5902         alpha*-dec-osf*.
5903         * config/alpha/osf5.h [__alpha__ || __alpha]
5904         (host_detect_local_cpu): Declare.
5905         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5906         (DRIVER_SELF_SPECS): Define.
5907
5908 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
5909
5910         PR target/47715
5911         * config/i386/i386.md (*load_tp_x32): New.
5912         (*load_tp_x32_zext): Ditto.
5913         (*add_tp_x32): Ditto.
5914         (*add_tp_x32_zext): Ditto.
5915         (*load_tp_<mode>): Disable for TARGET_X32 targets.
5916         (*add_tp_<mode>): Ditto.
5917         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5918         ptr_mode and convert to Pmode if needed.
5919
5920 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
5921
5922         PR target/49687
5923         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5924         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5925         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5926         Add X to register footprint: Clobber r26/r27.
5927
5928 2011-07-29  Richard Guenther  <rguenther@suse.de>
5929
5930         * builtins.c (fold_builtin_signbit): Build the comparison
5931         with a proper type.
5932
5933 2011-07-29  Richard Guenther  <rguenther@suse.de>
5934
5935         PR tree-optimization/49893
5936         * tree-predcom.c (suitable_reference_p): Volatile references
5937         are not suitable.
5938
5939 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
5940
5941         PR target/49313
5942         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5943         (__ctzsi2): Result for 0 may be undefined.
5944         (__ctzhi2): Result for 0 may be undefined.
5945         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5946         (__popcountsi2): Ditto. And don't clobber r26.
5947         (__popcountdi2): Ditto. And don't clobber r27.
5948         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5949         (parityhi2): New expand.
5950         (paritysi2): New expand.
5951         (popcounthi2): New expand.
5952         (popcountsi2): New expand.
5953         (clzhi2): New expand.
5954         (clzsi2): New expand.
5955         (ctzhi2): New expand.
5956         (ctzsi2): New expand.
5957         (ffshi2): New expand.
5958         (ffssi2): New expand.
5959         (copysignsf3): New insn.
5960         (bswapsi2): New expand.
5961         (*parityhi2.libgcc): New insn.
5962         (*parityqihi2.libgcc): New insn.
5963         (*paritysihi2.libgcc): New insn.
5964         (*popcounthi2.libgcc): New insn.
5965         (*popcountsi2.libgcc): New insn.
5966         (*popcountqi2.libgcc): New insn.
5967         (*popcountqihi2.libgcc): New insn-and-split.
5968         (*clzhi2.libgcc): New insn.
5969         (*clzsihi2.libgcc): New insn.
5970         (*ctzhi2.libgcc): New insn.
5971         (*ctzsihi2.libgcc): New insn.
5972         (*ffshi2.libgcc): New insn.
5973         (*ffssihi2.libgcc): New insn.
5974         (*bswapsi2.libgcc): New insn.
5975
5976 2011-07-29  Richard Guenther  <rguenther@suse.de>
5977
5978         * tree-vrp.c (get_value_range): Only set parameter default
5979         definitions to varying, leave others at undefined.
5980         (extract_range_from_binary_expr): Fix undefined handling.
5981         (vrp_visit_phi_node): Handle merged undefined state.
5982
5983 2011-07-29  Wei Guozhi  <carrot@google.com>
5984
5985         PR rtl-optimization/49799
5986         * combine.c (make_compound_operation): Check if the bit field is valid
5987         before change it to bit field extraction.
5988
5989 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5990
5991         PR rtl-optimization/49891
5992         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5993         newly created returnjumps.
5994
5995 2011-07-28  DJ Delorie  <dj@redhat.com>
5996
5997         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5998         local frame in a naked function, and produce a suitable error for
5999         that specific case.
6000
6001         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
6002         registers to be reloaded in HI classes when the target is HI.
6003
6004 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6005
6006         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
6007         bound_one, bound_two.
6008
6009 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6010
6011         PR middle-end/48648
6012         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
6013         CLAST assignments.
6014         (translate_clast): Same.
6015         (translate_clast_assignment): New.
6016
6017 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
6018
6019         PR tree-optimization/49876
6020         * sese.c (rename_uses): Do not return false on gloog_error: set
6021         the new_expr to integer_zero_node and continue code generation.
6022         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
6023
6024 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6025
6026         PR debug/49846
6027         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
6028         arguments also check if they aren't initialized with a MODE_INT
6029         mode of the same size.
6030
6031 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
6032
6033         * expr.c (get_bit_range): Handle *MEM_REF's.
6034
6035 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
6036
6037         * rtlanal.c (tablejump_p): False for returns.
6038         * reorg.c (first_active_target_insn): New static function.
6039         (find_end_label): Set JUMP_LABEL for a new returnjump.
6040         (optimize_skip, get_jump_flags, rare_destination,
6041         mostly_true_jump, get_branch_condition,
6042         steal_delay_list_from_target, own_thread_p,
6043         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
6044         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
6045         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
6046         * jump.c (delete_related_insns): Likewise.
6047         (jump_to_label_p): New function.
6048         (redirect_target): New static function.
6049         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
6050         (redirect_jump_1): Assert that the new label is nonnull.
6051         (redirect_jump): Likewise.
6052         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
6053         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
6054         exit block.
6055         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
6056         changed.  Ensure that the right label is passed to redirect_jump.
6057         * function.c (emit_return_into_block,
6058         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
6059         ret_rtx in their JUMP_LABEL.
6060         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
6061         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
6062         pass ret_rtx as label.
6063         * cfglayout.c (fixup_reorder_chain): Use
6064         force_nonfallthru_and_redirect rather than force_nonfallthru.
6065         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
6066         * rtl.h (ANY_RETURN_P): New macro.
6067         (jump_to_label_p): Declare.
6068         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
6069         JUMP_LABELs.
6070         (mark_target_live_regs): Likewise.
6071         * basic-block.h (force_nonfallthru_and_redirect): Declare.
6072         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
6073         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
6074         alpha_tablejump_best_label): Remove functions.
6075         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
6076         alpha_tablejump_best_label): Remove declarations.
6077         * config/sh/sh.c (barrier_align, split_branches): Adjust for
6078         ret_rtx in JUMP_LABELs.
6079         * config/arm/arm.c (is_jump_table): Likewise.
6080
6081 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6082
6083         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
6084         special predicate.  Remove explicit mode checks.
6085
6086 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
6087
6088         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
6089         DW_AT_data_member_location containing just DW_OP_plus_uconst.
6090
6091         PR debug/49871
6092         * dwarf2out.c (size_of_die, value_format, output_die): Use
6093         DW_FORM_udata instead of DW_FORM_data[48] for
6094         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
6095
6096 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6097
6098         * config/i386/i386.md (*tls_global_dynamic_64): Update
6099         length attribute.
6100
6101 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6102
6103         PR target/47715
6104         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
6105         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
6106         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
6107         (tls_dynamic_gnu2_64): Ditto.
6108         (*tls_dynamic_gnu2_lea_64): Ditto.
6109         (*tls_dynamic_gnu2_call_64): Ditto.
6110         (*tls_dynamic_gnu2_combine_64): Ditto.
6111
6112 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6113
6114         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
6115
6116 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
6117
6118         PR target/47364
6119         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
6120
6121 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6122
6123         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
6124         before the core constraints. Adjust attributes.
6125         ("*thumb2_movdf_vfp"): Likewise.
6126
6127 2011-07-28  Kai Tietz  <ktietz@redhat.com>
6128
6129         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
6130         (simplify_truth_ops_using_ranges): Likewise.
6131         (build_assert_expr_for): Likewise.
6132         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
6133         and handle BIT_NOT_EXPR for truth-operation.
6134
6135 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6136
6137         PR target/49313
6138         Undo r176835 from trunk
6139         2011-07-27  Georg-Johann Lay
6140
6141 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
6142
6143         PR target/49687
6144         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
6145         Add _muluhisi3, _mulshisi3, _usmulhisi3.
6146         * config/avr/libgcc.S (__mulsi3): Rewrite.
6147         (__mulhisi3): Rewrite.
6148         (__umulhisi3): Rewrite.
6149         (__usmulhisi3): New.
6150         (__muluhisi3): New.
6151         (__mulshisi3): New.
6152         (__mulohisi3): New.
6153         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
6154         declare.
6155         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
6156         (pseudo_register_or_const_int_operand): New.
6157         (combine_pseudo_register_operand): New.
6158         (u16_operand): New.
6159         (s16_operand): New.
6160         (o16_operand): New.
6161         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
6162         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
6163         (any_extend, any_extend2): New code iterators.
6164         (extend_prefix): New code attribute.
6165         (mulsi3): Rewrite. Turn insn to expander.
6166         (mulhisi3): Ditto.
6167         (umulhisi3): Ditto.
6168         (usmulhisi3): New expander.
6169         (*mulsi3): New insn-and-split.
6170         (mulu<mode>si3): New insn-and-split.
6171         (muls<mode>si3): New insn-and-split.
6172         (mulohisi3): New insn-and-split.
6173         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
6174         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
6175         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
6176         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
6177         insn-and-split.
6178         (*mulsi3_call): Rewrite.
6179         (*mulhisi3_call): Rewrite.
6180         (*umulhisi3_call): Rewrite.
6181         (*usmulhisi3_call): New insn.
6182         (*muluhisi3_call): New insn.
6183         (*mulshisi3_call): New insn.
6184         (*mulohisi3_call): New insn.
6185         (extendqihi2): Use combine_pseudo_register_operand as predicate
6186         for operand 1.
6187         (extendqisi2): Ditto.
6188         (zero_extendqihi2): Ditto.
6189         (zero_extendqisi2): Ditto.
6190         (zero_extendhisi2): Ditto.
6191         (extendhisi2): Ditto. Don't early-clobber operand 0.
6192
6193 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
6194
6195         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
6196
6197 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6198
6199         PR tree-optimization/49471
6200         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
6201         iv only when the largest type is unsigned.  Do not call
6202         lang_hooks.types.type_for_size.
6203
6204 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6205
6206         PR middle-end/45450
6207         * graphite-poly.c (apply_poly_transforms): Disable legality check
6208         after an openscop read.
6209
6210 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
6211
6212         PR middle-end/47691
6213         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
6214         copy_bb_and_scalar_dependences.
6215         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
6216         (graphite_copy_stmts_from_block): Update call to rename_uses.
6217         (copy_bb_and_scalar_dependences): Update call to
6218         graphite_copy_stmts_from_block.
6219         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6220
6221 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
6222
6223         PR target/49313
6224         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
6225         (__ctzsi2): Result for 0 may be undefined.
6226         (__ctzhi2): Result for 0 may be undefined.
6227         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
6228         (__popcountsi2): Ditto. And don't clobber r26.
6229         (__popcountdi2): Ditto. And don't clobber r27.
6230         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
6231         (parityhi2): New expand.
6232         (paritysi2): New expand.
6233         (popcounthi2): New expand.
6234         (popcountsi2): New expand.
6235         (clzhi2): New expand.
6236         (clzsi2): New expand.
6237         (ctzhi2): New expand.
6238         (ctzsi2): New expand.
6239         (ffshi2): New expand.
6240         (ffssi2): New expand.
6241         (copysignsf3): New insn.
6242         (bswapsi2): New expand.
6243         (*parityhi2.libgcc): New insn.
6244         (*parityqihi2.libgcc): New insn.
6245         (*paritysihi2.libgcc): New insn.
6246         (*popcounthi2.libgcc): New insn.
6247         (*popcountsi2.libgcc): New insn.
6248         (*popcountqi2.libgcc): New insn.
6249         (*popcountqihi2.libgcc): New insn-and-split.
6250         (*clzhi2.libgcc): New insn.
6251         (*clzsihi2.libgcc): New insn.
6252         (*ctzhi2.libgcc): New insn.
6253         (*ctzsihi2.libgcc): New insn.
6254         (*ffshi2.libgcc): New insn.
6255         (*ffssihi2.libgcc): New insn.
6256         (*bswapsi2.libgcc): New insn.
6257
6258 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6259
6260         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
6261         the mode of symbolic_opreand RTXes.
6262
6263 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
6264
6265         * config/i386/predicates.md (x86_64_movabs_operand): Return false
6266         for pic_32bit_operand RTXes.
6267         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
6268         in DImode.
6269
6270 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6271
6272         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
6273         for 32-bit, too.
6274         (ix86_handle_abi_attribute): Allow function attributes
6275         ms_abi/sysv_abi in 32-bit mode, too.
6276         * doc/extend.texi: Adjust attribute documentation.
6277
6278         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
6279         expression handling.
6280         (and_var_with_comparison_1): Likewise.
6281
6282 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
6283
6284         * params.h (ALLOW_STORE_DATA_RACES): New.
6285         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
6286         * Makefile.in (expr.o): Depend on PARAMS_H.
6287         * machmode.h (get_best_mode): Add argument.
6288         * fold-const.c (optimize_bit_field_compare): Add argument to
6289         get_best_mode.
6290         (fold_truthop): Same.
6291         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
6292         * expr.c (emit_group_store): Same.
6293         (copy_blkmode_from_reg): Same.
6294         (write_complex_part): Same.
6295         (optimize_bitfield_assignment_op): Add argument.
6296         Add argument to get_best_mode.
6297         (get_bit_range): New.
6298         (expand_assignment): Calculate maxbits and pass it down accordingly.
6299         (store_field): New argument.
6300         (expand_expr_real_2): New argument to store_field.  Include params.h.
6301         * expr.h (store_bit_field): New argument.
6302         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
6303         into account maxbits.
6304         * calls.c (store_unaligned_arguments_into_pseudos): New argument
6305         to store_bit_field.
6306         * expmed.c (store_bit_field_1): New argument.  Use it.
6307         (store_bit_field): Same.
6308         (store_fixed_bit_field): Same.
6309         (store_split_bit_field): Same.
6310         (extract_bit_field_1): Pass new argument to get_best_mode.
6311         (extract_bit_field): Same.
6312         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
6313         * doc/invoke.texi: Document parameter allow-store-data-races.
6314
6315 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
6316
6317         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
6318
6319 2011-07-27  Kai Tietz  <ktietz@redhat.com>
6320
6321         * tree-vrp.c (extract_range_from_binary_expr): Remove
6322         TRUTH-binary cases and add new bitwise-cases.
6323         (extract_range_from_assignment): Likewise.
6324         (register_edge_assert_for_1): Likeiwise.
6325         (register_edge_assert_for): Likewise.
6326         (simplify_truth_ops_using_ranges): Likewise.
6327         (simplify_stmt_using_ranges): Likewise.
6328
6329 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         PR target/47372
6332         * config/i386/i386.c (ix86_delegitimize_address): Call
6333         simplify_gen_subreg for PIC with mode of x only if modes of
6334         x and orig_x are different.
6335
6336 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
6337
6338         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
6339         to GC allocated copy of the string.
6340         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
6341         before .debug_line, not after it.
6342
6343 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6344
6345         PR middle-end/47046
6346         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
6347         evolution_function_is_affine_p on CHREC_RIGHT.
6348
6349 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6350
6351         * tree-data-ref.c (max_stmt_executions_tree): Do not call
6352         lang_hooks.types.type_for_size.
6353
6354 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6355
6356         PR middle-end/47653
6357         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
6358         loops using wrapping semantics.
6359
6360 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
6361
6362         PR middle-end/48805
6363         * tree-scalar-evolution.c (instantiate_scev_r): Return
6364         chrec_dont_know for ADDR_EXPR.
6365
6366 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6367             H.J. Lu  <hongjiu.lu@intel.com>
6368
6369         PR target/47369
6370         PR target/49853
6371         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
6372         if legitimize_tls_address returned operand in wrong mode. Allow
6373         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
6374         if legitimize_pic_address returned operand in wrong mode.
6375
6376 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6377
6378         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
6379         return false for invariants.
6380
6381 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6382
6383         * config/i386/i386.md (add->lea splitter): Implement using SWI
6384         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
6385         (add->lea zext splitter): Change operand 2 predicate to
6386         x86_64_nonmemory_operand.
6387
6388 2011-07-26  Richard Guenther  <rguenther@suse.de>
6389
6390         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
6391         frequency makes everything hot.
6392
6393 2011-07-26  Richard Guenther  <rguenther@suse.de>
6394
6395         PR tree-optimization/49840
6396         * tree-vrp.c (range_fits_type_p): Properly handle full
6397         double-int precision.
6398
6399 2011-07-26  Martin Jambor  <mjambor@suse.cz>
6400
6401         PR bootstrap/49786
6402         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
6403         counts.
6404         (update_specialized_profile): Likewise.
6405
6406 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
6407             H.J. Lu  <hongjiu.lu@intel.com>
6408
6409         PR target/47381
6410         PR target/49832
6411         PR target/49833
6412         * config/i386/i386.md (i): Change SImode attribute to "e".
6413         (g): Change SImode attribute to "rme".
6414         (di): Change SImode attribute to "nF".
6415         (general_operand): Change SImode attribute to x86_64_general_operand.
6416         (general_szext_operand): Change SImode attribute to
6417         x86_64_szext_general_operand.
6418         (immediate_operand): Change SImode attribute to
6419         x86_64_immediate_operand.
6420         (nonmemory_operand): Change SImode attribute to
6421         x86_64_nonmemory_operand.
6422         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
6423         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
6424         (*lea_1): Use SWI48 mode iterator.
6425         (*lea_1_zext): New insn pattern.
6426         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
6427         (*bt<mode>): Ditto.
6428         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
6429         Update operand constraints.
6430         (addsi_1_zext): Ditto.
6431         (*add<mode>2): Ditto.
6432         (*addsi_3_zext): Ditto.
6433         (*subsi_1_zext): Ditto.
6434         (*subsi_2_zext): Ditto.
6435         (*subsi_3_zext): Ditto.
6436         (*addsi3_carry_zext): Ditto.
6437         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
6438         (*mulsi3_1_zext): Ditto.
6439         (*andsi_1): Ditto.
6440         (*andsi_1_zext): Ditto.
6441         (*andsi_2_zext): Ditto.
6442         (*<any_or:code>si_1_zext): Ditto.
6443         (*<any_or:code>si_2_zext): Ditto.
6444         (*test<mode>_1): Use <general_operand> predicate for operand 1.
6445         (*and<mode>_2): Ditto.
6446         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
6447         (add->lea splitter): Check operand modes in insn constraint.  Extend
6448         operands less than SImode wide to SImode.
6449         (add->lea zext splitter): Do not extend input operands to DImode.
6450         (*lea_general_1): Handle only QImode and HImode operands.
6451         (*lea_general_2): Ditto.
6452         (*lea_general_3): Ditto.
6453         (*lea_general_1_zext): Remove.
6454         (*lea_general_2_zext): Ditto.
6455         (*lea_general_3_zext): Ditto.
6456         (*lea_general_4): Check operand modes in insn constraint.  Extend
6457         operands less than SImode wide to SImode.
6458         (ashift->lea splitter): Ditto.
6459         * config/i386/i386.c (ix86_print_operand_address): Print address
6460         registers with 'q' modifier on 64bit targets.
6461         * config/i386/predicates.md (pic_32bit_opreand): Define as special
6462         predicate.  Reject non-SI and non-DI modes.
6463
6464 2011-07-25  Andrew Pinski  <apinski@cavium.com>
6465
6466         PR tree-opt/49671
6467         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
6468         TREE_THIS_NOTRAP into the inner most MEM_REF.
6469         Always copy TREE_THIS_VOLATILE.
6470         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
6471         arguments are not volatile references.
6472
6473 2011-07-25  Richard Henderson  <rth@redhat.com>
6474
6475         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
6476         * final.c (final_scan_insn): Don't test for it.
6477         (rest_of_clean_state): Likewise.
6478
6479 2011-07-25  Richard Henderson  <rth@redhat.com>
6480
6481         PR debug/49841
6482         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
6483         (emit_frame_save): Likewise.
6484         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
6485         insn onto a dummy blockage insn after the join label.
6486
6487 2011-07-25  Richard Henderson  <rth@redhat.com>
6488
6489         * dwarf2cfi.c (dw_trace_info): Add ID member.
6490         (get_trace_index): Remove.  Change users to use ID member.
6491         (before_next_cfi_note): New.
6492         (connect_traces): Remove unreachable traces before the main loop.
6493         Look across one trace and generate remember/restore_state if needed.
6494
6495 2011-07-25  Richard Henderson  <rth@redhat.com>
6496
6497         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
6498
6499 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
6500
6501         * genattr.c (write_upcase, gen_attr <enum definition writing>):
6502         Move to ...
6503         * genattr-common.c ... here.
6504         (main): Call gen_attr.
6505         * optc-gen.awk: Make generated program include insn-attr-common.h .
6506         * Makefile.in (oprions.o): Depend on insn-attr-common.h
6507
6508 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6509
6510         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6511         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6512         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
6513         m32c_print_operand, m32c_print_operand_address): Remove.
6514         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
6515         Change return type to bool. Change argument type to bool.
6516         (m32c_print_operand, m32c_print_operand_address): Make static.
6517         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6518         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6519
6520 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6521
6522         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
6523         attributes): Document mmap.
6524
6525 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
6526
6527         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
6528         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
6529         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
6530         mmix_print_operand, mmix_print_operand_address): Remove.
6531         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
6532         Change return type to bool. Change argument type to bool.
6533         (mmix_print_operand, mmix_print_operand_address): Make static.
6534         (mmix_intval, mmix_output_condition): Change 'x' argument type
6535         to const_rtx.
6536         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
6537         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6538
6539 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
6540
6541         PR target/39386
6542         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
6543         shift counter for x << x and x >> x shifts.
6544
6545 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6546
6547         PR target/47124
6548         * config.gcc: Reject *-*-solaris2 configuration.
6549
6550 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
6551
6552         PR tree-optimization/49809
6553         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
6554         gimple_get_lhs instead of gimple_assign_lhs.
6555
6556 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6557
6558         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
6559
6560 2011-07-25  Richard Guenther  <rguenther@suse.de>
6561
6562         PR tree-optimization/49822
6563         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6564         more.  Make sure to preserve stmts with side-effects.  Properly
6565         handle virtual defs, follow a longer def chain.
6566
6567 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
6568
6569         PR plugins/45348
6570         PR plugins/48425
6571         PR plugins/46577
6572         * Makefile.in: Do not flatten c-family directory when installing
6573         plugin headers.
6574
6575 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
6576
6577         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
6578         original nodes if we are dealing with virtual clones.
6579
6580 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
6581
6582         * common/config/c6x/c6x-common.c: New file.
6583
6584 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
6585
6586         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
6587
6588 2011-07-25  Richard Guenther  <rguenther@suse.de>
6589
6590         PR tree-optimization/49715
6591         * tree-vrp.c: Include expr.h and optabs.h.
6592         (range_fits_type_): New function.
6593         (simplify_float_conversion_using_ranges): Likewise.
6594         (simplify_stmt_using_ranges): Call it.
6595         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
6596         * optabs.c (can_float_p): Export.
6597         * optabs.h (can_float_p): Declare.
6598
6599 2011-07-25  Richard Guenther  <rguenther@suse.de>
6600
6601         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
6602         (get_value_range): For out-of-range SSA names or names created
6603         after propagation return a read-only varying range.
6604         (dump_all_value_ranges): Adjust.
6605         (vrp_initialize): Likewise.
6606         (vrp_finalize): Likewise.
6607
6608 2011-07-24  Richard Henderson  <rth@redhat.com>
6609
6610         PR debug/49831
6611         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
6612         them entirely.
6613
6614 2011-07-24  Richard Henderson  <rth@redhat.com>
6615
6616         PR debug/49825
6617         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
6618         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
6619
6620 2011-07-24  Richard Henderson  <rth@redhat.com>
6621
6622         PR debug/49827
6623         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
6624
6625 2011-07-24  Richard Henderson  <rth@redhat.com>
6626
6627         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
6628         Zero args_size for abnormal edges.  Adjust all callers.
6629
6630 2011-07-24  Richard Henderson  <rth@redhat.com>
6631
6632         PR debug/49825
6633         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
6634
6635 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         PR bootstrap/49835
6638         * collect2.c (demangle_flag): Removed.
6639
6640 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
6641
6642         * configure.ac (demangler_in_ld): Default to yes.
6643         * configure: Regenerated.
6644         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
6645         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
6646         --no-demangle options straight through to ld.  When
6647         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
6648         way that has the intended effect on Windows.
6649
6650 2011-07-23  Richard Henderson  <rth@redhat.com>
6651
6652         * dwarf2cfi.c: Include basic-block.h.
6653         (dw_label_info): Remove.
6654         (trace_work_list, trace_index): New.
6655         (remember_row, emit_cfa_remember): Remove.
6656         (dw_trace_info_hash, dw_trace_info_eq): New.
6657         (get_trace_index, get_trace_info): New.
6658         (save_point_p): New.
6659         (free_cfi_row): Remove.
6660         (add_cfi): Do not emit DW_CFA_remember_state.
6661         (cfa_row_equal_p): New.
6662         (barrier_args_size): Remove.
6663         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
6664         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
6665         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
6666         (dwarf2out_cfi_begin_epilogue): Remove.
6667         (dwarf2out_frame_debug_restore_state): Remove.
6668         (connect_traces, create_pseudo_cfg): New.
6669         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
6670         * Makefile.in (dwarf2cfi.o): Update.
6671
6672 2011-07-23  Richard Henderson  <rth@redhat.com>
6673
6674         * dwarf2cfi.c (dw_trace_info): New.
6675         (dw_label_info): New.
6676         (cie_return_save): New.
6677         (cur_trace): New.
6678         (queued_args_size): Rename from args_size.  Update all users.
6679         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
6680         (def_cfa_1): Use cur_trace instead of cfa_*.
6681         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
6682         (clobbers_queued_reg_save, reg_saved_in): Likewise.
6683         (dwarf2out_frame_debug_expr): Likewise.
6684         (create_cie_data): Split out from ...
6685         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
6686
6687 2011-07-23  Richard Henderson  <rth@redhat.com>
6688
6689         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
6690         Update all users to match.
6691         (execute_dwarf2_frame): Free reg_saved_in_data.
6692
6693 2011-07-23  Richard Henderson  <rth@redhat.com>
6694
6695         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
6696         (queued_reg_saves): Don't GTY.  Change to a VEC.
6697         (queue_reg_save): Update to match.
6698         (dwarf2out_flush_queued_reg_saves): Likewise.
6699         (clobbers_queued_reg_save): Likewise.
6700         (reg_saved_in): Likewise.
6701         (execute_dwarf2_frame): Free queued_reg_saves.
6702
6703 2011-07-23  Richard Henderson  <rth@redhat.com>
6704
6705         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
6706
6707 2011-07-23  Richard Henderson  <rth@redhat.com>
6708
6709         * dwarf2cfi.c (add_cfi_args_size): Split out from...
6710         (dwarf2out_args_size): ... here.
6711         (add_cfi_restore): Split out from ...
6712         (dwarf2out_frame_debug_cfa_restore): ... here.
6713         (def_cfa_0): Split out from ...
6714         (def_cfa_1): ... here.
6715         (cfi_oprnd_equal_p, cfi_equal_p): New.
6716         (change_cfi_row): New.
6717         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
6718         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
6719         (output_cfis): Remove.
6720         * dwarf2out.c (output_fde): Simplify output_cfi loop.
6721         (dwarf2out_switch_text_section): Don't call output_cfis.
6722         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
6723         * dwarf2out.h: Update decls.
6724         (enum dw_val_class): Add dw_val_class_none.
6725
6726 2011-07-23  Richard Henderson  <rth@redhat.com>
6727
6728         * dwarf2cfi.c (update_row_reg_save): New.
6729         (dwarf2out_frame_debug_cfa_expression): Use it.
6730         (dwarf2out_frame_debug_cfa_restore): Likewise.
6731         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
6732
6733 2011-07-23  Richard Henderson  <rth@redhat.com>
6734
6735         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
6736
6737 2011-07-23  Richard Henderson  <rth@redhat.com>
6738
6739         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
6740         (cie_cfi_row): New.
6741         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
6742         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
6743         (cur_row, remember_row): New.
6744         (def_cfa_1): Use cur_row instead of the old_* variables.
6745         (dwarf2out_frame_debug_restore_state): Similarly.
6746         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
6747         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
6748         (dwarf2out_frame_debug_adjust_cfa): Likewise.
6749         (dwarf2out_frame_debug_cfa_offset): Likewise.
6750         (dwarf2out_frame_debug_expr): Likewise.
6751         (execute_dwarf2_frame): Set up cur_row.
6752         * dwarf2out.h (struct cfa_loc): Mark for GTY.
6753
6754 2011-07-23  Richard Henderson  <rth@redhat.com>
6755
6756         * basic-block.h (EDGE_PRESERVE): New.
6757         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
6758         * bb-reorder.c: Include except.h.
6759         (fix_up_crossing_landing_pad): New.
6760         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
6761         landing pads in the right partition.  Duplicate as necessary.
6762         (partition_hot_cold_basic_blocks): Fix up DF info after
6763         duplicating landing pads.
6764         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
6765         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
6766         is set properly.  Validate that EH edges are not CROSSING.
6767         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
6768         (dw2_build_landing_pads): ... here.
6769         (convert_to_eh_region_ranges): Remove code to fixup crossing
6770         landing pads.
6771         * except.h (expand_dw2_landing_pad_for_region): Declare.
6772         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
6773
6774 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
6775
6776         PR target/49816
6777         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
6778
6779 2011-07-22  Jason Merrill  <jason@redhat.com>
6780
6781         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
6782
6783 2011-07-22  Richard Henderson  <rth@redhat.com>
6784
6785         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
6786
6787 2011-07-22  Richard Henderson  <rth@redhat.com>
6788
6789         * jump.c (maybe_propagate_label_ref): Split out of...
6790         (mark_all_labels): ... here.  Do not attempt label_ref
6791         propagation while in cfglayout mode.
6792
6793 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
6794
6795         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
6796         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
6797         (dwarf_attr_name): Handle DW_AT_GNU_macros.
6798         (dwarf2out_define): If the vector is empty and
6799         lineno is 0, emit a dummy entry first.
6800         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
6801         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
6802         optimize_macinfo_range): New functions.
6803         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
6804         mergeable, optimize longer strings using
6805         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
6806         optimize longer sequences of define/undef ops from headers
6807         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
6808         emit a section headers.
6809         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
6810         and macinfo_section_label to DEBUG_MACRO_SECTION
6811         resp. DEBUG_MACRO_SECTION_LABEL.
6812         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
6813         instead of DW_AT_macro_info.
6814
6815         PR other/32998
6816         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
6817         options.
6818         * dwarf2out.c: Include opts.h.
6819         (dchar_p): New typedef.  Define heap VEC for it.
6820         (producer_string): New variable.
6821         (gen_producer_string): New function.
6822         (gen_compile_unit_die): Use it.
6823         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
6824         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
6825         * doc/invoke.texi: Document -grecord-gcc-switches and
6826         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
6827         to -frecord-gcc-switches description.
6828
6829 2011-07-22  Jason Merrill  <jason@redhat.com>
6830
6831         PR c++/30112
6832         * c-decl.c (c_linkage_bindings): Define.
6833
6834 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
6835
6836         PR debug/49815
6837         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
6838
6839 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
6840
6841         * config/i386/i386.c (ix86_option_override_internal): Disallow
6842         MS ABI in x32 mode.
6843         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
6844         only for TARGET_LP64.
6845         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
6846
6847 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6848
6849         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
6850         avoid warnings when GCC is built with a C++ compiler.
6851
6852 2011-07-22  Martin Jambor  <mjambor@suse.cz>
6853
6854         PR lto/49796
6855         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
6856         if decl node is in another partition, call cgraph_get_node only once.
6857
6858 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
6859
6860         * config.gcc (x86_64-*-linux*): Set
6861         default_gnu_indirect_function to yes.
6862
6863 2011-07-22  Richard Guenther  <rguenther@suse.de>
6864
6865         PR tree-optimization/45819
6866         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6867         preserve volatile and notrap flags.
6868
6869 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6870             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6871
6872         PR bootstrap/49794
6873         * configure.ac: Test AM_ICONV with CXX.
6874         * configure: Regenerate.
6875         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
6876
6877 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6878
6879         PR bootstrap/49797
6880         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
6881         (set_cloog_options): Use it.
6882
6883 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
6884
6885         PR c++/49756
6886         * gcc.c (main): Call stack_limit_increase (64MB).
6887         * toplev.c (toplev_main): Likewise.
6888
6889 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6890
6891         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
6892         instead of force_reg.
6893
6894 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
6895
6896         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
6897         needed and use force_reg after convert.
6898         (ix86_expand_call): Likewise.
6899         (ix86_expand_special_args_builtin): Likewise.
6900         (ix86_expand_builtin): Likewise.
6901
6902 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6903
6904         PR middle-end/47654
6905         PR middle-end/49649
6906         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6907         in parameter.  Initialize v1 and v2 based on the values returned
6908         by clast_name_to_lb_ub.
6909         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6910         values.
6911         (type_for_clast_bin): Same.
6912         (type_for_clast_expr): Same.
6913         (type_for_clast_eq): Update calls to type_for_clast_expr.
6914         (type_for_clast_for): Same.
6915         (build_iv_mapping): Same.
6916         * graphite-ppl.h (value_min): New.
6917
6918 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6919
6920         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6921         types whenever possible.
6922
6923 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6924
6925         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6926         and ub fields.
6927         (new_clast_name_index): Add lb and ub parameters.
6928         (free_clast_name_index): New.
6929         (clast_name_to_lb_ub): New.
6930         (save_clast_name_index): Add lb and ub parameters.
6931         (compute_bounds_for_param): New.
6932         (type_for_level): Removed.
6933         (type_for_clast_for): Removed level parameter.  Do not call
6934         type_for_level.
6935         (graphite_create_new_loop): Store the lb and ub for the clast_name
6936         of the iterator of the loop that has been generated.
6937         (graphite_create_new_loop_guard): Remove parameter level.
6938         (create_params_index): Store the lb and ub of each parameter.
6939         (gloog): Use free_clast_name_index.  Pass to create_params_index
6940         the current scop.
6941
6942 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6943
6944         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6945         (max_precision_type): Inline max_signed_precision_type.
6946         (type_for_clast_red): Use max_precision_type.
6947         (type_for_clast_bin): Same.
6948         (type_for_clast_for): Same.
6949
6950 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6951
6952         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6953         type_for_interval.
6954         (gcc_type_for_value): Renamed type_for_value.
6955         (gcc_type_for_clast_term): Renamed type_for_clast_term.
6956         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6957         (gcc_type_for_clast_red): Renamed type_for_clast_red.
6958         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6959         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6960         (graphite_translate_clast_equation): Update calls.
6961         (compute_type_for_level): Renamed type_for_level.
6962         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6963         (build_iv_mapping): Update calls.
6964         (graphite_create_new_loop_guard): Same.
6965
6966 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6967
6968         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6969         comment.
6970
6971 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6972
6973         * graphite-clast-to-gimple.c (struct ivs_params): New.
6974         (clast_name_to_gcc): Use ivs_params to pass around parameters.
6975         (clast_to_gcc_expression): Same.
6976         (clast_to_gcc_expression_red): Same.
6977         (gcc_type_for_clast_term): Same.
6978         (gcc_type_for_clast_expr): Same.
6979         (gcc_type_for_clast_red): Same.
6980         (gcc_type_for_clast_bin): Same.
6981         (gcc_type_for_clast_eq): Same.
6982         (graphite_translate_clast_equation): Same.
6983         (graphite_create_guard_cond_expr): Same.
6984         (graphite_create_new_guard): Same.
6985         (graphite_create_new_loop): Same.
6986         (build_iv_mapping): Same.
6987         (translate_clast_user): Same.
6988         (graphite_create_new_loop_guard): Same.
6989         (translate_clast): Same.
6990         (translate_clast_for_loop): Same.
6991         (translate_clast_for): Same.
6992         (translate_clast_guard): Same.
6993         (initialize_cloog_names): Fix typo.
6994         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6995
6996 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
6997
6998         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6999         (new_clast_name_index): Add level parameter.
7000         (clast_name_to_level): New.
7001         (save_clast_name_index): Add level parameter.
7002         (newivs_to_depth_to_newiv): Removed.
7003         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
7004         (graphite_create_new_loop): Add level parameter.  Pass level to
7005         save_clast_name_index.
7006         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
7007         (create_params_index): Pass level to save_clast_name_index.
7008
7009 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7010
7011         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
7012         recompute type, lb, and ub.  Get them from...
7013         (graphite_create_new_loop_guard): ...here.  Pass in parameter
7014         pointers to type, lb, and ub.
7015         (translate_clast_for_loop): Update function calls.
7016         (translate_clast_for): Same.
7017
7018 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
7019
7020         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
7021         psct_dynamic_dim.
7022         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
7023         (gcc_type_for_iv_of_clast_loop): Update use of level.
7024         (gloog): Start counting nesting level from 0.
7025         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
7026         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
7027         psct_dynamic_dim on level.
7028
7029 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         * config/i386/i386.c (ix86_legitimize_address): Convert to
7032         Pmode if needed.
7033
7034 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
7035
7036         * config/i386/i386.c (function_value_64): Always return pointers
7037         in Pmode.
7038         (ix86_promote_function_mode): New.
7039         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
7040
7041 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7042
7043         PR tree-optimization/49749
7044         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
7045         remove no-longer-used maxrank variable.
7046
7047 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7048
7049         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
7050
7051 2011-07-21  Jason Merrill  <jason@redhat.com>
7052
7053         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
7054         * recog.h (struct insn_data_d): Check it instead of
7055         HAVE_DESIGNATED_INITIALIZERS.
7056         * genoutput.c (output_insn_data): Likewise.
7057
7058 2011-07-21  Richard Guenther  <rguenther@suse.de>
7059
7060         PR tree-optimization/49770
7061         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
7062         valueized any operand.  Renamed from ...
7063         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
7064         (valueize_shared_reference_ops_from_ref): Return whether we
7065         valueized any operand.
7066         (vn_reference_lookup): Only when we valueized any operand
7067         use the valueized reference for alias analysis.  Do not preserve
7068         the original reference tree in this case.
7069
7070 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
7071
7072         * config/i386/i386.c (ix86_decompose_address): Reject all but
7073         register operands and subregs of DImode hard registers in index.
7074
7075 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7076
7077         * fold-const.c (fold_unary_loc): Preserve indirect
7078         comparison cast to none-boolean type.
7079         * tree-ssa.c (useless_type_conversion_p): Preserve cast
7080         from/to boolean-type.
7081         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
7082         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7083         * tree-cfg.c (verify_gimple_comparison): Check result
7084         type of comparison expression.
7085         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
7086         of condition result and disallow type-cast sinking into comparison.
7087
7088 2011-07-21  Richard Guenther  <rguenther@suse.de>
7089
7090         * tree-ssa-forwprop.c (combine_conversions): Return whether
7091         we have to run cfg-cleanup.  Properly remove dead stmts.
7092         (ssa_forward_propagate_and_combine): Adjust.
7093
7094 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
7095
7096         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
7097
7098 2011-07-21  Kai Tietz  <ktietz@redhat.com>
7099
7100         * tree-ssa-propagate.c (substitute_and_fold): Use
7101         do_dce flag to deside, if BB's statements are scanned
7102         in last to first, or first to last order.
7103
7104 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
7105
7106         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
7107
7108 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
7109             Uros Bizjak  <ubizjak@gmail.com>
7110             Richard Henderson  <rth@redhat.com>
7111
7112         * config/i386/constraints.md (w): New.
7113
7114         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
7115         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
7116
7117         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
7118         instead of TARGET_64BIT.
7119
7120         * config/i386/i386.md (indirect_jump): Replace
7121         nonimmediate_operand with indirect_branch_operand.
7122         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
7123         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
7124         Convert operand 0 to Pmode for x32 if not PIC.
7125         (*tablejump_1): Replace nonimmediate_operand with
7126         indirect_branch_operand.  Replace constraint "m" with "w".
7127         (*call_vzeroupper): Replace constraint "m" with "w".
7128         (*call): Likewise.
7129         (*call_rex64_ms_sysv_vzeroupper): Likewise.
7130         (*call_rex64_ms_sysv): Likewise.
7131         (*call_value_vzeroupper): Likewise.
7132         (*call_value): Likewise.
7133         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
7134         (*call_value_rex64_ms_sysv): Likewise.
7135         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
7136
7137         * config/i386/predicates.md (indirect_branch_operand): New.
7138         (call_insn_operand): Support x32.
7139
7140 2011-07-20  Michael Eager  <eager@eagercon.com>
7141
7142         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
7143
7144 2011-07-20  Richard Henderson  <rth@redhat.com>
7145
7146         * cfg.c (dump_bb_info): Dump basic_block->flags.
7147         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
7148
7149 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7150
7151         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7152         of DImode hard registers in index.
7153         (ix86_legitimate_address_p): Allow subregs of base and index to span
7154         more than a word.  Assert that subregs of base and index satisfy
7155         register_no_elim_operand predicates.  Reject addresses where
7156         base and index have different modes.
7157
7158 2011-07-20  Robert Millan  <rmh@gnu.org>
7159
7160         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
7161
7162 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7163
7164         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
7165         removing now-unnecessary assignment.
7166
7167 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7168
7169         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
7170         memory address space to the type's address space.
7171
7172 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7173
7174         PR target/36467
7175         PR target/49687
7176         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
7177         and expand appropriately if there is a CONST_INT in operand2.
7178         (usmulqihi3): New insn.
7179         (*sumulqihi3): New insn.
7180         (*osmulqihi3): New insn.
7181         (*oumulqihi3): New insn.
7182         (*muluqihi3.uconst): New insn_and_split.
7183         (*muluqihi3.sconst): New insn_and_split.
7184         (*mulsqihi3.sconst): New insn_and_split.
7185         (*mulsqihi3.uconst): New insn_and_split.
7186         (*mulsqihi3.oconst): New insn_and_split.
7187         (*ashifthi3.signx.const): New insn_and_split.
7188         (*ashifthi3.signx.const7): New insn_and_split.
7189         (*ashifthi3.zerox.const): New insn_and_split.
7190         (mulsqihi3): New insn.
7191         (muluqihi3): New insn.
7192         (muloqihi3): New insn.
7193         * config/avr/predicates.md (const_2_to_7_operand): New.
7194         (const_2_to_6_operand): New.
7195         (u8_operand): New.
7196         (s8_operand): New.
7197         (o8_operand): New.
7198         (s9_operand): New.
7199         (register_or_s9_operand): New.
7200
7201 2011-07-20  Kai Tietz  <ktietz@redhat.com>
7202
7203         * builtins.c (fold_builtin_expect): See through the cast
7204         from truthvalue_type_node to long.
7205
7206 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
7207
7208         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
7209         where we can use them from the standard and altivec instruction
7210         sets, instead of always using the 3 operand VSX forms that require
7211         the destination to overlap one of the inputs.
7212         (vsx_fms*): Ditto.
7213         (vsx_fnma*): Ditto.
7214         (vsx_fnms*): Ditto.
7215
7216         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
7217         for DF types.
7218         (fmsdf4_fpr): Ditto.
7219         (nfmadf4_fpr): Ditto.
7220         (nfmsdf4_fpr): Ditto.
7221
7222 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
7223
7224         * genrecog.c (make_insn_sequence): Correct position numbering
7225         when filtering out match_scratch and match_dup.
7226
7227 2011-07-20  Richard Guenther  <rguenther@suse.de>
7228
7229         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
7230         against already removed statements.
7231         (forward_propagate_into_comparison): Remove dead defining stmts.
7232         (forward_propagate_into_gimple_cond): Likewise.
7233         (forward_propagate_into_cond): Simplify.
7234         (ssa_forward_propagate_and_combine): Handle changed cfg from
7235         forward_propagate_into_comparison.
7236         * tree-ssa-phiopt.c (conditional_replacement): Use proper
7237         locations for newly built statements.
7238
7239 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
7240
7241         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
7242
7243 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7244
7245         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
7246         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
7247
7248 2011-07-20  Richard Guenther  <rguenther@suse.de>
7249
7250         PR middle-end/18908
7251         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
7252         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
7253         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
7254
7255 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
7256
7257         * config/frv/frv.c (frv_register_move_cost): Define explicitly
7258         costs for subclasses of GR_REGS.
7259
7260 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
7261
7262         PR target/49780
7263         * config/i386/predicates.md (no_seg_addres_operand): No more special.
7264         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7265         of DImode hard registers in base.
7266         (ix86_legitimate_address_p): Allow SImode and DImode base and index
7267         registers.
7268
7269 2011-07-20  Richard Guenther  <rguenther@suse.de>
7270
7271         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
7272         (unify_nodes): Deal with that.
7273         (solve_graph): Likewise.
7274
7275 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
7276
7277         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
7278         canonicalize left operand from ZERO_EXTEND to AND.
7279
7280 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
7281
7282         * target.def (class_max_nregs): New hook.
7283         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
7284         * doc/tm.texi: Regenerate.
7285         * targhooks.c (default_class_max_nregs): New function.
7286         * targhooks.h (default_class_max_nregs): Declare.
7287         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
7288         x_ira_reg_class_min_nregs arrays to unsigned char.
7289         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
7290         hook instead of CLASS_MAX_NREGS macro.
7291         * reginfo.c (restore_register_info): Ditto.
7292         * ira-conflicts.c (process_regs_for_copy): Use
7293         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7294         Change type rclass and aclass vars to reg_class_t.
7295         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
7296         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
7297         reg_class_t.
7298         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
7299         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
7300
7301         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
7302         * config/i386/i386.c (ix86_class_max_nregs): New function.
7303         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
7304         instead of CLASS_MAX_NREGS macro.
7305         (TARGET_CLASS_MAX_NREGS): Define.
7306         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
7307         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
7308         * config/avr/avr.c (class_max_nregs): Remove function.
7309         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
7310         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
7311         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
7312         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
7313         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
7314         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
7315         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
7316         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
7317         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
7318         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
7319         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
7320         * config/score/score.h (CLASS_MAX_NREGS): Remove.
7321         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
7322         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
7323         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
7324
7325 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
7326
7327         * cif-code.def (OVERWRITABLE): Fix typo and move around.
7328         (TARGET_OPTIMIZATION_MISMATCH): Delete.
7329         (EH_PERSONALITY): Fix typo.
7330         (NON_CALL_EXCEPTIONS): Fix message.
7331         (OPTIMIZATION_MISMATCH): Adjust message.
7332         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
7333
7334 2011-07-19  Ian Lance Taylor  <iant@google.com>
7335
7336         * doc/install.texi (Configuration): Document
7337         --enable-build-poststage1-with-cxx.
7338
7339 2011-07-19  Robert Millan  <rmh@gnu.org>
7340
7341         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
7342         (GLIBC_DYNAMIC_LINKER): Remove.
7343
7344         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
7345         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7346         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7347         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
7348         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
7349         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
7350
7351         * config/mips/linux.h: Remove everything except for ...
7352         (GLIBC_DYNAMIC_LINKER): ... this macro.
7353
7354         * config/mips/linux64.h: Remove everything except for ...
7355         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
7356         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
7357         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
7358         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
7359         (GNU_USER_LINK_EMULATIONN32): New macros.
7360
7361         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
7362         Use the new headers.
7363
7364 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7365
7366         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
7367         Add offset_known_p and size_known_p fields.
7368         (MEM_OFFSET_KNOWN_P): Update accordingly.
7369         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
7370         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
7371         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
7372         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
7373         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
7374         (init_emit_regs): Likewise.
7375
7376 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7377
7378         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
7379         (MEM_OFFSET): Change from returning an rtx to returning a
7380         HOST_WIDE_INT.
7381         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
7382         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
7383         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7384         (clear_mem_offset): Declare.
7385         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
7386         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
7387         MEM_OFFSET to get a HOST_WIDE_INT offset.
7388         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
7389         (adjust_offset_for_component_ref): Take a bool "known_p"
7390         parameter and a HOST_WIDE_INT "offset" parameter.
7391         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
7392         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
7393         than an rtx.  Use clear_mem_offset to clear the offset.
7394         * cfgcleanup.c (merge_memattrs): Likewise.
7395         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
7396         * function.c (assign_parm_find_stack_rtl): Likewise.
7397         (assign_parm_setup_stack): Likewise.
7398         * print-rtl.c (print_rtx): Likewise.
7399         * reload.c (find_reloads_subreg_address): Likewise.
7400         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
7401         * var-tracking.c (INT_MEM_OFFSET): Likewise.
7402         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
7403         (get_mem_align_offset): Likewise.
7404         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
7405         (clear_mem_offset): New function.
7406         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
7407         offset rather than an rtx.  Assume both the expressio and offset
7408         are available.
7409         (r10k_needs_protection_p_1): Update accordingly, checking the
7410         expression and offset availability here instead.
7411
7412 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7413
7414         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
7415         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
7416         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
7417         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
7418         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7419         (clear_mem_size): Declare.
7420         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
7421         (clear_mem_size): New function.
7422         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
7423         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
7424         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
7425         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
7426         to clear the size.
7427         (nonoverlapping_memrefs_p): Likewise.
7428         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
7429         (expand_builtin_init_trampoline): Likewise.
7430         * calls.c (compute_argument_addresses): Likewise.
7431         * cfgcleanup.c (merge_memattrs): Likewise.
7432         * dce.c (find_call_stack_args): Likewise.
7433         * dse.c (record_store, scan_insn): Likewise.
7434         * dwarf2out.c (dw_sra_loc_expr): Likewise.
7435         * expr.c (emit_block_move_hints): Likewise.
7436         * function.c (assign_parm_find_stack_rtl): Likewise.
7437         * print-rtl.c (print_rtx): Likewise.
7438         * reload.c (find_reloads_subreg_address): Likewise.
7439         * rtlanal.c (may_trap_p_1): Likewise.
7440         * var-tracking.c (track_expr_p): Likewise.
7441         * varasm.c (assemble_trampoline_template): Likewise.
7442         * config/arm/arm.c (arm_print_operand): Likewise.
7443         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
7444         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
7445         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
7446         (expand_constant_setmem_prologue): Likewise.
7447         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
7448         * config/rs6000/rs6000.c (expand_block_move): Likewise.
7449         (adjacent_mem_locations): Likewise.
7450         * config/s390/s390.c (s390_expand_setmem): Likewise.
7451         (s390_expand_insv): Likewise.
7452         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
7453         (*extendqi<mode>2_short_displ): Likewise.
7454         * config/sh/sh.c (expand_block_move): Likewise.
7455         * config/sh/sh.md (extv, extzv): Likewise.
7456
7457 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7458
7459         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
7460         (mem_attrs_htab_eq): ...here.
7461         (find_mem_attrs): Replace with...
7462         (set_mem_attrs): ...this function.  Take a mem_attrs structure
7463         rather than individual fields.
7464         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7465         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7466         (set_mem_size, change_address, adjust_address_1, offset_address)
7467         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7468         Update accordingly.
7469
7470 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
7471
7472         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
7473         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
7474         Provide a dummy definition of MEM_ADDR_SPACE for generators.
7475         (target_rtl): Add x_mode_mem_attrs.
7476         (mode_mem_attrs): New macro.
7477         (get_mem_attrs): New function.
7478         * emit-rtl.c (get_mem_attrs): Rename to...
7479         (find_mem_attrs): ...this.
7480         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
7481         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
7482         (set_mem_size, change_address, adjust_address_1, offset_address)
7483         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
7484         Update accordingly.
7485         (init_emit_regs): Initialize mode_mem_attrs.
7486
7487 2011-07-19  Richard Guenther  <rguenther@suse.de>
7488
7489         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
7490         TRUTH_*_EXPR handling.
7491         * tree-ssa-operands.c (get_expr_operands): Likewise.
7492         * tree-ssa-pre.c (fully_constant_expression): Likewise.
7493         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
7494         Likewise.
7495         (is_and_or_or): Likewise.
7496         (is_norm_cond_subset_of): Likewise.
7497
7498 2011-07-19  Richard Guenther  <rguenther@suse.de>
7499
7500         * tree.h (fold_build_pointer_plus_loc): New helper function.
7501         (fold_build_pointer_plus_hwi_loc): Likewise.
7502         (fold_build_pointer_plus): Define.
7503         (fold_build_pointer_plus_hwi): Likewise.
7504         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
7505         (fold_builtin_memory_op): Likewise.
7506         (fold_builtin_stpcpy): Likewise.
7507         (fold_builtin_memchr): Likewise.
7508         (fold_builtin_strstr): Likewise.
7509         (fold_builtin_strchr): Likewise.
7510         (fold_builtin_strrchr): Likewise.
7511         (fold_builtin_strpbrk): Likewise.
7512         (fold_builtin_strcat): Likewise.
7513         (expand_builtin_memory_chk): Likewise.
7514         (fold_builtin_memory_chk): Likewise.
7515         * c-typeck.c (build_unary_op): Likewise.
7516         * cgraphunit.c (thunk_adjust): Likewise.
7517         * fold-const.c (build_range_check): Likewise.
7518         (fold_binary_loc): Likewise.
7519         * omp-low.c (extract_omp_for_data): Likewise.
7520         (expand_omp_for_generic): Likewise.
7521         (expand_omp_for_static_nochunk): Likewise.
7522         (expand_omp_for_static_chunk): Likewise.
7523         * tree-affine.c (add_elt_to_tree): Likewise.
7524         * tree-data-ref.c (split_constant_offset_1): Likewise.
7525         * tree-loop-distribution.c (generate_memset_zero): Likewise.
7526         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
7527         * tree-predcom.c (ref_at_iteration): Likewise.
7528         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
7529         (add_to_parts): Likewise.
7530         (create_mem_ref): Likewise.
7531         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7532         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
7533         (number_of_iterations_le): Likewise.
7534         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
7535         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7536         (vect_create_addr_base_for_vector_ref): Likewise.
7537         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
7538         (vect_create_cond_for_alias_checks): Likewise.
7539         * tree-vrp.c (extract_range_from_assert): Likewise.
7540         * config/alpha/alpha.c (alpha_va_start): Likewise.
7541         (alpha_gimplify_va_arg_1): Likewise.
7542         * config/i386/i386.c (ix86_va_start): Likewise.
7543         (ix86_gimplify_va_arg): Likewise.
7544         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7545         * config/mep/mep.c (mep_expand_va_start): Likewise.
7546         (mep_gimplify_va_arg_expr): Likewise.
7547         * config/mips/mips.c (mips_va_start): Likewise.
7548         (mips_gimplify_va_arg_expr): Likewise.
7549         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7550         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
7551         (rs6000_gimplify_va_arg): Likewise.
7552         * config/s390/s390.c (s390_va_start): Likewise.
7553         (s390_gimplify_va_arg): Likewise.
7554         * config/sh/sh.c (sh_va_start): Likewise.
7555         (sh_gimplify_va_arg_expr): Likewise.
7556         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
7557         * config/spu/spu.c (spu_va_start): Likewise.
7558         (spu_gimplify_va_arg_expr): Likewise.
7559         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7560         Likewise.
7561         (xstormy16_gimplify_va_arg_expr): Likewise.
7562         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
7563         (xtensa_gimplify_va_arg_expr): Likewise.
7564
7565 2011-07-19  Richard Guenther  <rguenther@suse.de>
7566
7567         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
7568         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
7569         handling.
7570
7571         PR middle-end/18908
7572         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
7573         result of BIT_*_EXPR to bitfield precision.
7574
7575 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
7576
7577         PR tree-optimization/49742
7578         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
7579         as a potential write.
7580
7581 2011-07-19  Richard Guenther  <rguenther@suse.de>
7582
7583         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
7584         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
7585         (forward_propagate_comparison): Simplify, remove obsolete code.
7586
7587 2011-07-19  Richard Guenther  <rguenther@suse.de>
7588
7589         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
7590         BIT_XOR_EXPR, same as the RTL expander does.
7591         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
7592         (verify_gimple_assign_unary): Likewise.
7593         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
7594         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
7595         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
7596
7597 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
7598
7599         PR tree-optimization/49768
7600         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
7601         if offset is smaller than bitoffset, but offset+size is bigger
7602         than bitoffset.
7603
7604 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
7605
7606         PR tree-optimization/49771
7607         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
7608         zero step, set segment length to the size of the data-ref's type.
7609
7610 2011-07-18  Martin Jambor  <mjambor@suse.cz>
7611
7612         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
7613         comments.
7614         (ipcp_values_pool): Declare.
7615         (ipcp_sources_pool): Likewise.
7616         (ipcp_lattice): Changed to forward declaration.
7617         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
7618         cannot_devirtualize.
7619         (ipa_node_params): New fields descriptors, lattices, known_vals,
7620         clone_for_all_contexts and node dead, removed fields params and
7621         count_scale.
7622         (ipa_set_param_count): Removed.
7623         (ipa_get_param_count): Made to work with descriptors vector.
7624         (ipa_get_param): Updated.
7625         (ipa_param_cannot_devirtualize_p): Removed.
7626         (ipa_param_types_vec_empty): Likewise.
7627         (ipa_set_param_used): New function.
7628         (ipa_get_param_used): Updated to use descriptors vector.
7629         (ipa_func_list): Removed.
7630         (ipa_init_func_list): Removed declaration.
7631         (ipa_push_func_to_list_1): Likewise.
7632         (ipa_pop_func_from_list): Likewise.
7633         (ipa_push_func_to_list): Removed.
7634         (ipa_lattice_from_jfunc): Remove declaration.
7635         (ipa_get_jf_pass_through_result): Declare.
7636         (ipa_get_jf_ancestor_result): Likewise.
7637         (ipa_value_from_jfunc): Likewise.
7638         (ipa_get_lattice): Update.
7639         (ipa_lat_is_single_const): New function.
7640         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
7641         (ipa_init_func_list): Likewise.
7642         (ipa_pop_func_from_list): Likewise.
7643         (ipa_get_param_decl_index): Fix coding style.
7644         (count_formal_params): Removed.
7645         (count_formal_params_1): Renamed to count_formal_params.
7646         (ipa_populate_param_decls): Update to use descriptors vector.
7647         (ipa_initialize_node_params): Likewise.
7648         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
7649         (ipa_analyze_params_uses): Likewise.
7650         (ipa_free_node_params_substructures): Likewise and free also lattices
7651         and known values.
7652         (duplicate_array): Removed.
7653         (ipa_edge_duplication_hook): Add the new edge to the list of edge
7654         clones.
7655         (ipa_node_duplication_hook): Update to use new lattices.
7656         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
7657         (ipa_free_all_structures_after_iinln): Likewise.
7658         (ipa_write_node_info): Update to use new lattices.
7659         (ipa_read_node_info): Likewise.
7660         (ipa_get_jf_pass_through_result): New function.
7661         (ipa_get_jf_ancestor_result): Likewise.
7662         (ipa_value_from_jfunc): Likewise.
7663         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
7664         * ipa-cp.c: Reimplemented.
7665         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
7666         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
7667         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
7668         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
7669         * doc/invoke.texi (devirt-type-list-size): Removed description.
7670         (ipa-cp-value-list-size): Added description.
7671
7672 2011-07-18  Richard Henderson  <rth@redhat.com>
7673
7674         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
7675         before calling create_basic_block.
7676
7677 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
7678
7679         PR middle-end/49675
7680         * tree.c (build_common_builtin_nodes): Register
7681         __builtin_return_address, __cyg_profile_func_enter
7682         and __cyg_profile_func_exit.
7683
7684 2011-07-18  Richard Henderson  <rth@redhat.com>
7685
7686         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
7687         (add_labels_and_missing_jumps): ... here.
7688         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
7689
7690 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
7691
7692         PR target/47744
7693         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
7694         of DImode hard registers in PLUS address chains.
7695
7696 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7697
7698         PR bootstrap/49769
7699         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
7700         (alpha*-*-freebsd*): Likewise.
7701         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7702         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7703         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
7704         crtprec80.o, crtfastmath.o to extra_parts for all targets.
7705         (ia64*-*-elf*): Remove extra_parts.
7706         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
7707         (sparc64-*-linux*): Likewise.
7708         (sparc64-*-freebsd*): Likewise.
7709
7710         Revert:
7711         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
7712         (ia64*-*-linux*): Likewise.
7713         (mips64*-*-linux*): Likewise.
7714         (mips*-*-linux*): Likewise.
7715
7716 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
7717
7718         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
7719
7720 2011-07-18  Richard Guenther  <rguenther@suse.de>
7721
7722         * gimplify.c (gimplify_expr): Use input_location, not saved_location
7723         when building new trees.
7724
7725 2011-07-18  Richard Guenther  <rguenther@suse.de>
7726
7727         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
7728         expansion result to bitfield precision if required.
7729
7730 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7731
7732         * config.gcc (i[3456x]86-*-netware*): Remove.
7733
7734         * gthr-nks.h: Remove.
7735         * configure.ac (enable_threads): Remove nks.
7736         * configure: Regenerate.
7737
7738         * config/i386/i386.c (ix86_encode_section_info): Remove netware
7739         reference.
7740         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
7741         <netware.h> reference.
7742
7743         * config/i386/netware-libgcc.c,
7744         gcc/config/i386/netware-libgcc.def,
7745         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
7746         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
7747         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
7748         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
7749
7750         * doc/extend.texi (Function Attributes,
7751         callee_pop_aggregate_return): Remove i?86-netware reference.
7752         * doc/install.texi (Configuration, --enable-threads): Remove nks.
7753
7754 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7755
7756         PR target/49746
7757         Revert:
7758         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7759
7760         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
7761         patterns.
7762
7763 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
7764
7765         PR middle-end/49732
7766         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
7767
7768 2011-07-16  Matthias Klose  <doko@ubuntu.com>
7769
7770         * doc/install.texi: Document --enable-static-libjava.
7771
7772 2011-07-15  Richard Henderson  <rth@redhat.com>
7773
7774         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7775         Replace all three arguments by returning a VEC of edges.
7776         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
7777         pointers and counts.
7778         (fix_edges_for_rarely_executed_code): Merge ...
7779         (rest_of_handle_partition_blocks): ... into...
7780         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
7781         any work was performed.
7782         (pass_partition_blocks): Clear todo_flags_finish.
7783
7784 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
7785             Jakub Jelinek  <jakub@redhat.com>
7786             Jonathan Wakely  <jwakely.gcc@gmail.com>
7787
7788         PR libstdc++/49745
7789         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
7790         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
7791
7792 2011-07-15  Jason Merrill  <jason@redhat.com>
7793
7794         PR testsuite/49741
7795         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
7796         rather than --tool_opts.
7797
7798 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
7799
7800         * doc/plugins.texi (Building GCC plugins): gengtype needs its
7801         corresponding gtype.state.
7802
7803 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7804
7805         PR target/49723
7806         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
7807
7808 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
7809
7810         PR target/48220
7811         * doc/md.texi (Standard Names): Document window_save.
7812         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
7813         expand_debug_expr and expand_debug_source_expr.  If the target has
7814         a window_save instruction, adjust the ENTRY_VALUE_EXP.
7815         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
7816         SSA_NAME_VAR is a parameter.
7817         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
7818         * var-tracking.c (parm_reg_t): New type and associated vector type.
7819         (windowed_parm_regs): New variable.
7820         (adjust_insn): If the target has a window_save instruction and this
7821         is the instruction, make its effect on parameter registers explicit.
7822         (next_non_note_insn_var_location): New function.
7823         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
7824         (vt_add_function_parameter): If the target has a window_save insn,
7825         adjust the incoming RTL and record that in windowed_parm_regs.
7826         (vt_finalize): Free windowed_parm_regs.
7827
7828 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
7829
7830         * doc/invoke.texi (C6X Options): New section.
7831         * doc/md.texi (TI C6X family): New section.
7832         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
7833         tic6x-*-uclinux.
7834         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
7835         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
7836         Provide C6X definitions.
7837         * config/c6x/c6x.md: New file.
7838         * config/c6x/constraints.md: New file.
7839         * config/c6x/predicates.md: New file.
7840         * config/c6x/c6x-sched.md.in: New file.
7841         * config/c6x/c6x-sched.md: New file.
7842         * config/c6x/gensched.sh: New file.
7843         * config/c6x/c6x-mult.md.in: New file.
7844         * config/c6x/genmult.sh: New file.
7845         * config/c6x/c6x-mult.md: New file.
7846         * config/c6x/sync.md: New file.
7847         * config/c6x/c6x-protos.h: New file.
7848         * config/c6x/sfp-machine.h: New file.
7849         * config/c6x/c6x.c: New file.
7850         * config/c6x/c6x.h: New file.
7851         * config/c6x/crti.s: New file.
7852         * config/c6x/crtn.s: New file.
7853         * config/c6x/lib1funcs.asm: New file.
7854         * config/c6x/c6x-modes.def: New file.
7855         * config/c6x/genopt.sh: New file.
7856         * config/c6x/c6x.opt: New file.
7857         * config/c6x/c6x-tables.opt: New file.
7858         * config/c6x/c6x-opts.h: New file.
7859         * config/c6x/c6x-isas.def: New file.
7860         * config/c6x/elf.h: New file.
7861         * config/c6x/elf-common.h: New file.
7862         * config/c6x/uclinux-elf.h: New file.
7863         * config/c6x/t-c6x: New file.
7864         * config/c6x/t-c6x-elf: New file.
7865         * config/c6x/t-c6x-uclinux: New file.
7866         * config/c6x/t-c6x-softfp: New file.
7867         * config/c6x/gtd.c: New file.
7868         * config/c6x/gtf.c: New file.
7869         * config/c6x/ltd.c: New file.
7870         * config/c6x/ltf.c: New file.
7871         * config/c6x/ged.c: New file.
7872         * config/c6x/gef.c: New file.
7873         * config/c6x/led.c: New file.
7874         * config/c6x/lef.c: New file.
7875         * config/c6x/eqd.c: New file.
7876         * config/c6x/eqf.c: New file.
7877         * config/c6x/libgcc-c6xeabi.ver: New file.
7878
7879         Revert
7880         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
7881         PR rtl-optimization/11320
7882         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
7883         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
7884         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
7885         current_sched_info->compute_jump_reg_dependencies. Record which
7886         registers are used and which registers are set by the jump.
7887         Clear deps->reg_conditional_sets after a barrier.
7888         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
7889         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
7890         (init_deps): Initialize reg_conditional_sets.
7891         (free_deps): Clear reg_conditional_sets.
7892         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
7893         Mark registers live on entry of the fallthrough block and conditionally
7894         set as set by the jump. Mark registers live on entry of non-fallthrough
7895         blocks as used by the jump.
7896         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
7897         Mark new parameters as unused.
7898
7899 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
7900
7901         PR tree-opt/49309
7902         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
7903         Use fold_build2_loc instead of build2.
7904         Use the correct type for the new tree.
7905
7906 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7907
7908         PR rtl-optimization/11320
7909         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7910         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7911
7912 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
7913
7914         PR target/49487
7915         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7916         of REG.
7917         (*rotw<mode>): Use const_int_operand for operand2.
7918         Use match_scatch for operand3.
7919         (*rotb<mode>): Ditto
7920         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7921
7922 2011-07-14  Richard Guenther  <rguenther@suse.de>
7923
7924         PR tree-optimization/49651
7925         * tree-ssa-structalias.c (get_constraint_for_1): Properly
7926         handle dereferences with subvariables.
7927
7928 2011-07-14  Richard Guenther  <rguenther@suse.de>
7929
7930         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7931         (fold_stmt_1): Do it here directly on gimple and as a first thing.
7932
7933 2011-07-14  Richard Guenther  <rguenther@suse.de>
7934
7935         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7936         not bool_var when folding bool_var != 1 or bool_var == 0.
7937
7938 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7939
7940         * haifa-sched.c (schedule_insns): Remove outdated comment.
7941         (schedule_block): When computing a known value for TODO_SPEC,
7942         just set it rather than using logical operations.
7943         (try_ready): Likewise.  Use a local variable rather than a
7944         pointer to TODO_SPEC.  Reorder an if statement to move the
7945         easy case to the then block.
7946         * sched-deps.c (dep_spec_p): New static function.
7947         (update_dep): Use it to decide whether to call
7948         change_spec_dep_to_hard.
7949         (get_back_and_forw_lists): Use it.
7950         (sd_resolve_dep): Likewise.
7951         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7952         (haifa_note_mem_dep): Likewise.
7953         (check_dep): Likewise.
7954         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7955         (sched_free_deps): Free in two passes.
7956
7957 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
7958
7959         PR middle-end/49736
7960         * expr.c (all_zeros_p): Undo bogus part of last change.
7961
7962 2011-07-14  Matthias Klose <doko@ubuntu.com>
7963
7964         * doc/extend.texi (optimize attribute): Fix typo.
7965
7966 2011-07-14  Richard Guenther  <rguenther@suse.de>
7967
7968         * gimplify.c (gimplify_expr): Only do required conversions.
7969
7970 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
7971
7972         PR target/43746
7973         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7974         i.e. use default_elf_select_section.
7975         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7976         (READONLY_DATA_SECTION_ASM_OP): Remove.
7977         (TARGET_ASM_NAMED_SECTION): Move from here...
7978         * config/avr/avr.c: ...to here.
7979         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7980         (avr_asm_named_section): Make static.
7981
7982 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7983
7984         PR bootstrap/49739
7985         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7986         and crtfastmath.o for Linux/x86.
7987
7988 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
7989
7990         * haifa-sched.c: Include "hashtab.h"
7991         (sched_no_dce): New global variable.
7992         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7993         SHADOW_P): New macros.
7994         (last_clock_var, cycle_issued_insns): Move declarations.
7995         (must_backtrack): New static variable.
7996         (struct delay_pair): New structure.
7997         (delay_htab, delay_htab_i2): New static variables.
7998         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7999         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
8000         functions.
8001         (dep_cost_1): If delay pairs exist, try to look up the insns and
8002         use the correct pair delay if we find them.
8003         (rank-for_schedule): Tweak priority for insns that must be scheduled
8004         soon to avoid backtracking.
8005         (queue_insn): Detect conditions which force backtracking.
8006         (ready_add): Likewise.
8007         (struct sched_block_state): Add member shadows_only_p.
8008         (struct haifa_save_data): New structure.
8009         (backtrack_queue): New static variable.
8010         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
8011         unschedule_insns_until, restore_last_backtrack_point,
8012         free_topmost_backtrack_point, free_backtrack_queue,
8013         estimate_insn_tick, estimate_shadow_tick): New functions.
8014         (prune_ready_list): New arg shadows_only_p.  All callers changed.
8015         If true, remove everything that isn't SHADOW_P.  Look up delay
8016         pairs and estimate ticks to avoid scheduling the first insn too early.
8017         (verify_shadows): New function.
8018         (schedule_block): Add machinery to enable backtracking.
8019         (sched_init): Take sched_no_dce into account when setting
8020         DF_LR_RUN_DCE.
8021         (free_delay_pairs): New function.
8022         (init_h_i_d): Initialize INSN_EXACT_TICK.
8023         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
8024         * sched-deps.c (sd_unresolve_dep): New function.
8025         * sched-int. (struct haifa_sched_info): New fields save_state
8026         and restore_state.
8027         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
8028         feeds_backtrack_insn and shadow_p.
8029         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
8030         (sched_no_dce): Declare variable.
8031         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
8032         sd_unresolve_dep): Declare functions.
8033         * modulo-sched.c (sms_sched_info): Clear the two new fields.
8034         * sched-rgn.c (rgn_const_sched_info): Likewise.
8035         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8036         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
8037         (ebb_sched_info): Add them for the two new fields.
8038         (add_deps_for_risky_insns): Call add_delay_dependencies.
8039
8040 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8041
8042         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
8043         Rename -mr11.
8044         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
8045         (rs6000_call_indirect_aix): Ditto.
8046         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
8047         (call_indirect_aix<ptrsize>_internal): Ditto.
8048         (call_indirect_aix<ptrsize>_nor11): Ditto.
8049         (call_indirect_aix<ptrsize>_internal2): Ditto.
8050         (call_value_indirect_aix<ptrsize>): Ditto.
8051         (call_value_indirect_aix<ptrsize>_internal): Ditto.
8052         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8053         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8054         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
8055
8056 2011-07-13  Jason Merrill  <jason@redhat.com>
8057
8058         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
8059
8060 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8061
8062         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
8063         * config/spu/spu.md ("clrsb<mode>2"): New expander.
8064
8065 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
8066
8067         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
8068         * configure: Regenerate.
8069
8070 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8071
8072         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
8073         (asm_file_start): Remove.
8074         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
8075         free_bb_for_insn around code that modifies insns before
8076         restarting df analysis.
8077
8078 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8079
8080         PR target/49541
8081         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
8082         (LINK_SPEC): ... here.
8083
8084 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8085
8086         * haifa-sched.c (struct sched_block_state): New.
8087         (schedule_block): Move some local variables into such a structure.
8088
8089 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8090
8091         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
8092         * config/i386/t-crtpc: Remove.
8093         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8094         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
8095         tmake_file.
8096         (x86_64-*-darwin*): Likewise.
8097         (i[34567]86-*-linux*): Likewise.
8098         (x86_64-*-linux*): Likewise.
8099
8100         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
8101         Handle -mpc32, -mpc64, -mpc80.
8102
8103 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8104
8105         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
8106         * config/alpha/t-crtfm: Remove.
8107         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
8108         * config/i386/t-crtfm: Remove.
8109         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
8110         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
8111         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
8112         * config/sparc/t-crtfm: Remove.
8113
8114         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
8115         (alpha*-*-freebsd*): Likewise.
8116         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
8117         (x86_64-*-darwin*): Likewise.
8118         (i[34567]86-*-linux*): Likewise.
8119         (x86_64-*-linux*): Likewise.
8120         (x86_64-*-mingw*): Likewise.
8121         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
8122         (ia64*-*-freebsd*): Likewise.
8123         (ia64*-*-linux*): Likewise.
8124         (mips64*-*-linux*): Likewise.
8125         (mips*-*-linux*): Likewise.
8126         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
8127         (sparc64-*-linux*): Likewise.
8128         (sparc64-*-freebsd*): Likewise.
8129
8130 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8131
8132         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
8133         * config/darwin-crt3.c: Move to ../libgcc/config.
8134         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
8135         ($(T)crt3$(objext)): Remove.
8136         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
8137         ($(T)crt2$(objext)): Remove.
8138         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
8139         (powerpc64-*-darwin*): Likewise.
8140
8141 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8142
8143         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
8144
8145         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
8146         (addsi_1_zext): This.
8147
8148 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8149
8150         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
8151         * doc/tm.texi: Regenerate.
8152         * target.def (mergeable_rodata_prefix): New defhookpod.
8153         * varasm.c (mergeable_string_section, mergeable_constant_section):
8154         Use it. Allocate name with alloca.
8155
8156 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8157
8158         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
8159
8160 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8161
8162         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
8163         overlap check.
8164
8165 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
8166
8167         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
8168         (count_type_elements): Delete.
8169         (complete_ctor_at_level_p): Declare.
8170         * expr.c (flexible_array_member_p): New function, split out from...
8171         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
8172         parameter with for_ctor_p.  When for_ctor_p is true, return the
8173         number of elements that should appear in the top-level constructor,
8174         otherwise return an estimate of the number of scalars.
8175         (categorize_ctor_elements): Replace p_must_clear with p_complete.
8176         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
8177         (complete_ctor_at_level_p): New function, borrowing union logic
8178         from old categorize_ctor_elements_1.
8179         (mostly_zeros_p): Return true if the constructor is not complete.
8180         (all_zeros_p): Update call to categorize_ctor_elements.
8181         * gimplify.c (gimplify_init_constructor): Update call to
8182         categorize_ctor_elements.  Don't call count_type_elements.
8183         Unconditionally prevent clearing for variable-sized types,
8184         otherwise rely on categorize_ctor_elements to detect
8185         incomplete initializers.
8186
8187 2011-07-13  Richard Guenther  <rguenther@suse.de>
8188
8189         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
8190         the final type is integral.
8191
8192 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
8193
8194         * sched-int.h (struct _dep): Add member cost.
8195         (DEP_COST, UNKNOWN_DEP_COST): New macros.
8196         * sched-deps.c (init_dep_1): Initialize DEP_COST.
8197         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
8198         (sched_change_pattern): Reset it for dependent insns.
8199
8200 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8201
8202         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
8203         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
8204         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
8205         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
8206         (CRT0_S, MCRT0_S): Remove.
8207         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
8208         Remove.
8209         (s-crt0): Remove.
8210         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
8211
8212 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
8213
8214         * cse.c (insert_with_costs): Put semi-colon after empty loop body
8215         on the next line.
8216         * emit-rtl.c (push_to_sequence): Likewise.
8217         * haifa-sched.c (max_issue): Likewise.
8218         * matrix-reorg.c (add_allocation_site): Likewise.
8219         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
8220         * reload.c (alternative_allows_const_pool_ref): Likewise.
8221         * sched-rgn.c (rgn_add_block): Likewise.
8222         (rgn_fix_recovery_cfg): Likewise.
8223         * tree.c (attribute_list_contained): Likewise.
8224
8225 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
8226
8227         * config/i386/i386.c: Tidy processor feature bitmasks.
8228         (m_P4_NOCONA): New.
8229
8230 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
8231
8232         PR rtl-opt/49474
8233         * cprop.c (find_implicit_sets): Correct the condition.
8234
8235 2011-07-12  Richard Henderson  <rth@redhat.com>
8236
8237         PR target/49713
8238         * dwarf2out.h (dwarf_frame_regnum): Remove.
8239         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
8240         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
8241         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
8242         (execute_dwarf2_frame): Initialize them.
8243         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
8244         users of the macros with the variables.
8245         (expand_builtin_dwarf_sp_column): Revert last change.
8246         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
8247         result of DWARF_FRAME_REGNUM into a local variable.
8248
8249 2011-07-12  Richard Henderson  <rth@redhat.com>
8250
8251         PR target/49714
8252         * config/i386/i386.c (x86_output_mi_thunk): Use
8253         machopic_indirect_call_target instead of machopic_indirection_name
8254         directly.
8255
8256 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
8257             Eric Botcazou  <ebotcazou@adacore.com>
8258
8259         * prefix.h: Wrap up in extern "C" block.
8260
8261 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
8262
8263         AMD bdver2 Enablement
8264         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
8265         (case ${target}): Add bdver2.
8266         * config/i386/driver-i386.c (host_detect_local_cpu): Let
8267         -march=native recognize bdver2 processors.
8268         * config/i386/i386-c.c (ix86_target_macros_internal): Add
8269         bdver2 def_and_undef
8270         * config/i386/i386.c (struct processor_costs bdver2_cost): New
8271         bdver2 cost table.
8272         (m_BDVER2): New definition.
8273         (m_AMD_MULTIPLE): Includes m_BDVER2.
8274         (initial_ix86_tune_features): Add bdver2 tuning.
8275         (processor_target_table): Add bdver2 entry.
8276         (static const char *const cpu_names): Add bdver2 entry.
8277         (ix86_option_override_internal): Add bdver2 instruction sets.
8278         (ix86_issue_rate): Add bdver2.
8279         (ix86_adjust_cost): Add bdver2.
8280         (has_dispatch): Add bdver2.
8281         * config/i386/i386.h (TARGET_BDVER2): New definition.
8282         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
8283         (enum processor_type): Add PROCESSOR_BDVER2.
8284         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
8285         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
8286         description.
8287
8288 2011-07-12  Richard Henderson  <rth@redhat.com>
8289
8290         PR target/49714
8291         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
8292         destination address in memory on some paths.
8293
8294 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
8295
8296         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
8297         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
8298         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
8299         * function.c (locate_and_pad_parm): Take it into account.
8300         * target.def (function_arg_round_boundary): New hook.
8301         * targhooks.c (default_function_arg_round_boundary): New function.
8302         * targhooks.h (default_function_arg_round_boundary): Declare.
8303         * doc/tm.texi: Regenerate.
8304
8305 2011-07-12  Richard Guenther  <rguenther@suse.de>
8306
8307         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
8308         Do not perform no-op changes.
8309
8310 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
8311
8312         * config/arm/predicates.md (neon_struct_operand): Make a normal
8313         predicate.
8314         (neon_struct_or_register_operand): New predicate.
8315         * config/arm/neon.md (movmisalign<mode>): Replace predicates
8316         with neon_struct_or_register_operand.
8317         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
8318         neon_struct_operand instead of memory_operand.
8319
8320 2011-07-12  Martin Jambor  <mjambor@suse.cz>
8321
8322         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
8323         * cgraph.c (cgraph_get_node_or_alias): Removed.
8324         (change_decl_assembler_name): Changed all calls to
8325         cgraph_get_node_or_alias to a call to cgraph_get_node.
8326         (cgraph_make_decl_local): Likewise.
8327         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
8328         * varasm.c (default_binds_local_p_1): Likewise.
8329         (decl_binds_to_current_def_p): Likewise.
8330
8331 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
8332
8333         PR tree-optimization/49712
8334         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
8335
8336 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
8337
8338         * genautomata.c (add_arc): Return void.  All callers changed.
8339         (make_automaton): Remove dead code.
8340
8341 2011-07-11  Richard Henderson  <rth@redhat.com>
8342
8343         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
8344         (DW_FRAME_POINTER_REGNUM): New.
8345         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
8346         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
8347         (dwf_regno): New.
8348         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
8349         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
8350         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
8351         Use it.
8352         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
8353         * dwarf2out.h (dwarf_frame_regnum): New.
8354         (struct cfa_loc): Document the domain of the reg member.
8355
8356 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
8357
8358         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
8359         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
8360
8361 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
8362
8363         PR debug/49676
8364         * dwarf2out.c (int_shift_loc_descriptor): New function.
8365         (int_loc_descriptor): If shorter, emit i as
8366         (i >> shift), shift, DW_OP_shl for suitable shift value.
8367         Similarly, try to optimize large negative values using
8368         DW_OP_neg of a positive value if shorter.
8369         (size_of_int_shift_loc_descriptor): New function.
8370         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
8371         changes.
8372         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
8373         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
8374         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
8375         is shorter.
8376         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
8377         addend as added DW_OP_plus if it is shorter.
8378
8379 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8380
8381         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
8382         (DTORS_SECTION_ASM_OP): Define.
8383
8384 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8385
8386         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
8387         * config/t-dfprules: Move to ../libgcc/config.
8388         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
8389         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
8390         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8391         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
8392         Likewise.
8393         (i[34567]86-*-cygwin*): Likewise.
8394         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
8395         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
8396         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
8397         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
8398         D64PBIT_FUNCS, D128PBIT_FUNCS.
8399
8400 2011-07-11  Richard Guenther  <rguenther@suse.de>
8401
8402         * tree-vrp.c (simplify_conversion_using_ranges): Manually
8403         translate the source value-range through the conversion chain.
8404
8405 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
8406
8407         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
8408
8409 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8410
8411         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
8412         a bi-arch compiler defaulting to 31-bit. In this case:
8413         (tmake_file): Add s390/t-linux64.
8414         * doc/install.texi: Add s390-linux to the list of targets supporting
8415         --enable-targets=all.
8416
8417 2011-07-11  Arthur Loiret  <aloiret@debian.org>
8418             Matthias Klose <doko@debian.org>
8419
8420         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
8421         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
8422         (tm_file): Add mips/linux64.h.
8423         (tmake_file): Add mips/t-linux64.
8424         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
8425         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
8426         instead of hardcoded mabi=n32.
8427         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
8428         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
8429         convention.
8430
8431 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8432
8433         * passes.c (init_optimization_passes): Add invariant motion pass
8434         after induction variable optimization.
8435
8436 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
8437
8438         PR target/39633
8439         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
8440         offsets 1..5 set cc0 in a usable way.
8441
8442 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
8443
8444         * tree.h (call_expr_arg): Remove.
8445         (call_expr_argp): Likewise.
8446
8447 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8448
8449         * config/sparc/sparc.md (save_register_window_1): Rename to...
8450         (window_save): ...this.
8451         * config/sparc/sparc.c (emit_save_register_window): Rename to...
8452         (emit_window_save): ...this.
8453         (sparc_expand_prologue): Adjust to above renaming.
8454
8455 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8456
8457         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
8458         of movabs for x32.
8459
8460 2011-07-10  Richard Henderson  <rth@redhat.com>
8461
8462         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
8463         run final, instead of emitting text directly.
8464
8465 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
8466
8467         * config/i386/i386.c (ix86_option_override_internal): Turn on
8468         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
8469         small PIC models for TARGET_X32.
8470
8471 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
8472
8473         PR target/49684
8474         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
8475         $(LIBGCC2_CFLAGS).
8476
8477         PR bootstrap/49680
8478         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
8479         stray notes and debug insns by using prev_nonnote_nondebug_insn
8480         instead of PREV_INSN.
8481
8482 2011-07-09  Richard Henderson  <rth@redhat.com>
8483
8484         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
8485         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
8486         * dwarf2out.c: ... here.
8487         (output_all_cfis): Remove.
8488         (dwarf2out_switch_text_section): Use output_cfis directly.
8489         (size_of_locs): Export.
8490         (output_loc_sequence, output_loc_sequence_raw): Export.
8491         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
8492         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
8493         output_cfa_loc_raw): Move to ...
8494         * dwarfcfi.c: ... here.
8495         * dwarf2out.h: Update decls.
8496
8497 2011-07-09  Richard Henderson  <rth@redhat.com>
8498
8499         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
8500         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
8501         * dwarf2cfi.c: ... here.
8502         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
8503         (DWARF_ROUND, DWARF_CIE_ID): Remove.
8504         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
8505         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
8506         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
8507
8508 2011-07-09  Richard Henderson  <rth@redhat.com>
8509
8510         * dwarf2cfi.c (cie_return_save): New.
8511         (queue_reg_save): Use compare_reg_or_pc.
8512         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
8513         (dwarf2out_frame_debug_expr): Likewise.
8514         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
8515         (initial_return_save): Likewise.
8516         (execute_dwarf2_frame): Save and restore initial return save from
8517         the cie to the fde.
8518         * config/mips/mips.c (mips_frame_set): Remove special case for
8519         DWARF_FRAME_RETURN_COLUMN.
8520
8521 2011-07-09  Richard Henderson  <rth@redhat.com>
8522
8523         * dwarf2cfi.c (lookup_cfa): Remove.
8524         (execute_dwarf2_frame): Assert queues are empty on entry.
8525         Setup initial cfa directly, not via lookup_cfa.
8526         Don't clear args_size state here.
8527
8528 2011-07-09  Richard Henderson  <rth@redhat.com>
8529
8530         * dwarf2cfi.c (add_cfi_vec): New.
8531         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
8532         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
8533         (execute_dwarf2_frame): Set add_cfi_vec.
8534
8535 2011-07-09  Richard Henderson  <rth@redhat.com>
8536
8537         * defaults.h (ASM_COMMENT_START): Move here...
8538         * dwarf2asm.c: ... from here.
8539         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
8540         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
8541         * varasm.c: Likewise.
8542
8543 2011-07-09  Richard Henderson  <rth@redhat.com>
8544
8545         PR debug/49686
8546         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
8547         (create_cfi_notes): ... do it here instead.
8548
8549 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
8550
8551         PR debug/49676
8552         * dwarf2out.c (size_of_int_loc_descriptor): New function.
8553         (address_of_int_loc_descriptor): Use it.
8554         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
8555
8556 2011-07-09  Richard Henderson  <rth@redhat.com>
8557
8558         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
8559         (prologue, epilogue): New.
8560         (return, *rts): New.
8561         (blockage, setd, seti): New.
8562         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8563         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
8564         (pdp11_saved_regno): New.
8565         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
8566         generate rtl instead of text.
8567         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
8568         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
8569         * config/pdp11/pdp11-protos.h: Update.
8570
8571 2011-07-09  Richard Henderson  <rth@redhat.com>
8572
8573         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8574         try to insert an rtl prologue here.
8575         (rs6000_output_function_epilogue): Similarly.
8576         * config/rs6000/rs6000.md (prologue): Emit a barrier to
8577         satisfy !TARGET_SCHED_PROLOG.
8578         (epilogue, sibcall_epilogue): Likewise.
8579
8580 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
8581
8582         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
8583         (FP_REG_P): Delete.
8584         (IN_OR_GLOBAL_P): Likewise.
8585
8586 2011-07-08  Jason Merrill  <jason@redhat.com>
8587
8588         PR c++/45437
8589         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
8590         compound assignment.
8591
8592         * cgraph.c (cgraph_add_to_same_comdat_group): New.
8593         * cgraph.h: Declare it.
8594         * ipa.c (function_and_variable_visibility): Make sure thunks
8595         have the right visibility.
8596
8597 2011-07-08  Richard Henderson  <rth@redhat.com>
8598
8599         PR bootstrap/49680
8600         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
8601         any tablejump vector.
8602
8603         PR bootstrap/49680
8604         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
8605         end of the prologue.
8606
8607 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
8608
8609         PR target/49621
8610         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
8611         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
8612         * config/rs6000/vector.md (vector_select_<mode>,
8613         vector_select_<mode>_uns): Change second operand of NE to
8614         CONST0_RTX (<MODE>mode) instead of const0_rtx.
8615         * config/rs6000/altivec.md (*altivec_vsel<mode>,
8616         *altivec_vsel<mode>_uns): Expect second operand of NE to be
8617         zero_constant of the corresponding vector mode.
8618         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
8619         Likewise.
8620
8621 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
8622
8623         * graphite-dependences.c (build_alias_set_powerset): Remove
8624         continue from loop, add one more assert.
8625
8626 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8627
8628         PR target/46779
8629         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
8630         In particular, allow 8-bit values in r28 and r29.
8631         (avr_hard_regno_scratch_ok): Disallow any register that might be
8632         part of the frame pointer.
8633         (avr_hard_regno_rename_ok): Same.
8634         (avr_legitimate_address_p): Don't allow SUBREGs.
8635
8636 2011-07-08  Julian Brown  <julian@codesourcery.com>
8637
8638         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
8639         big-endian mode.
8640         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
8641         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
8642         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
8643         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
8644         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
8645         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
8646         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
8647         registers in big-endian mode.
8648
8649 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8650
8651         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
8652         in terms of another.
8653         (write_attr_value): Write a cast if necessary.
8654
8655         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
8656         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
8657         (REG_WORDS_BIG_ENDIAN): Document.
8658         * doc/tm.texi: Regenerate.
8659         * reload.c (operands_match_p): Take it into account.
8660         (reload_adjust_reg_for_mode): Likewise.
8661         * rtlanal.c (subreg_get_info): Likewise.
8662
8663 2011-07-08  Richard Guenther  <rguenther@suse.de>
8664
8665         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
8666         folding.
8667
8668 2011-07-08  Kai Tietz  <ktietz@redhat.com>
8669
8670         * fold-const.c (fold_truth_andor): Factored out truth_andor
8671         label from fold_binary as function.
8672         (fold_binary_loc): Replace truth_andor lable
8673         by function fold_truth_andor.
8674
8675 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
8676
8677         PR middle-end/49519
8678         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
8679         check if address is stored in register. If so - give up.
8680         (check_sibcall_argument_overlap_1): Do not perform check of
8681         overlapping when it is call to address.
8682
8683 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
8684
8685         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
8686         of magic '31'.
8687
8688 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
8689
8690         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
8691         GET_MODE_BITSIZE where appropriate.
8692         (widen_leading, expand_parity, expand_ctz, expand_ffs,
8693         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
8694         expand_float, expand_fix): Likewise.
8695         * expr.c (convert_move, convert_modes, expand_expr_real_2,
8696         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8697         * stor-layout.c (get_mode_bounds): Likewise.
8698         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
8699         Likewise.
8700         * convert.c (convert_to_integer): Likewise.
8701         * expmed.c (expand_shift_1): Likewise.
8702
8703         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
8704         a bitsize.
8705
8706         * optabs.c (expand_binop): Tighten conditions for doubleword
8707         expansions.
8708         (widen_bswap): Assert that mode bitsize and precision are the same.
8709         * stor-layout.c (get_best_mode): Skip modes that have lower
8710         precision than bitsize.
8711         * recog.c (simplify_while_replacing): Assert that bitsize and
8712         precision are the same.
8713
8714 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8715
8716         * Makefile.in (LIBGCOV): Remove.
8717         (libgcc.mvars): Remove LIBGCOV.
8718         * libgov.c: Move to ../libgcc.
8719
8720 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8721
8722         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
8723
8724 2011-07-08  Martin Jambor  <mjambor@suse.cz>
8725
8726         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
8727         is too big for total scalarization.
8728
8729 2011-07-07  Richard Henderson  <rth@redhat.com>
8730
8731         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
8732         (DBX_DEBUGGING_INFO): Undef.
8733
8734 2011-07-07  Richard Henderson  <rth@redhat.com>
8735
8736         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
8737         Handle some opcodes specially for debugging.
8738         * print-rtl.c: Include dwarf2out.h
8739         (print_rtx): Handle NOTE_INSN_CFI.
8740         * Makefile.in (print-rtl.o): Update.
8741
8742 2011-07-07  Richard Henderson  <rth@redhat.com>
8743
8744         * tree-pass.h (pass_dwarf2_frame): Declare.
8745         * passes.c (init_optimization_passes): Add it.
8746         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
8747         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
8748         make static, do not call add_cfis_to_fde.
8749         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
8750         dwarf2out_frame_init): Merge into...
8751         (execute_dwarf2_frame): ... here.  New function.
8752         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
8753         saved_do_cfi_asm to a tri-state variable.
8754         (gate_dwarf2_frame, pass_dwarf2_frame): New.
8755         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
8756         if it has yet to be done.  Don't call dwarf2cfi_function_init.
8757         * dwarf2out.h, debug.h: Update decls.
8758         * final.c (final_start_function): Don't call
8759         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
8760         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
8761         * toplev.c (lang_dependent_init): Likewise.
8762
8763 2011-07-07  Richard Henderson  <rth@redhat.com>
8764
8765         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
8766         FDE_TABLE_INCREMENT): Replace with...
8767         (fde_vec): ... this, a new vector.
8768         (current_fde): Remove.  Replace all users with cfun->fde.
8769         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
8770         (size_of_aranges, dwarf2out_finish): Likewise.
8771         (dwarf2out_alloc_current_fde): Break out from ...
8772         (dwarf2out_begin_prologue): ... here.
8773         (dwarf2out_frame_init): Remove.
8774         * dwarf2cfi.c: Update all users of current_fde.
8775         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
8776         * dwarf2out.h: Update decls.
8777         (dw_fde_node): Add fde_index member.
8778         * function.h (struct function): Add fde member.
8779
8780 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8781             Richard Henderson  <rth@redhat.com>
8782
8783         * dwarf2cfi.c (add_cfi): Remove.
8784         (dwarf2out_cfi_label): Remove force argument.  Only generate the
8785         label name.
8786         (add_fde_cfi): Simplify the different code paths.
8787         (add_cie_cfi): New.
8788         (old_cfa, old_cfa_remember): New.
8789         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
8790         (last_reg_save_label): Remove.
8791         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
8792         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8793         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8794         dwarf2out_frame_debug_cfa_expression,
8795         dwarf2out_frame_debug_cfa_restore,
8796         dwarf2out_frame_debug_cfa_window_save,
8797         dwarf2out_frame_debug_expr): Remove label parameter.
8798         (cfi_label_required_p, add_cfis_to_fde): New.
8799         (dwarf2out_frame_debug_after_prologue): New.
8800         (dwarf2cfi_frame_init): Initialize old_cfa.
8801         (dwarf2out_frame_debug_restore_state): Likewise.
8802         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
8803         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
8804         * final.c (final_start_function): Call
8805         dwarf2out_frame_debug_after_prologue.
8806
8807 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8808             Richard Henderson  <rth@redhat.com>
8809
8810         * dwarf2cfi.c (cfi_insn): New.
8811         (dwarf2out_cfi_label): Don't emit cfi label here.
8812         (add_fde_cfi): Create a NOTE_INSN_CFI.
8813         (dwarf2out_frame_debug): Setup cfi_insn.
8814         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
8815         (dwarf2out_cfi_begin_epilogue): Make static.
8816         (dwarf2out_frame_debug_restore_state): Make static.
8817         * dwarf2out.c (output_cfi_directive): Make static.
8818         (dwarf2out_emit_cfi): New.
8819         * dwarf2out.h: Update.
8820         * final.c (final): Remove CFI notes.
8821         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
8822         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
8823         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
8824         * insn-notes.def (NOTE_INSN_CFI): New.
8825         (NOTE_INSN_CFI_LABEL): New.
8826         * rtl.h (union rtunion_def): Add rt_cfi member.
8827         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
8828
8829 2011-07-07  Richard Henderson  <rth@redhat.com>
8830
8831         * dwarf2cfi.c: New file.
8832         * Makefile.in (OBJS): Add it.
8833         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
8834         * gengtype.c (open_base_files): Include dwarf2out.h.
8835         * coretypes.h (enum var_init_status): Move from ...
8836         * rtl.h: ... here.
8837         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
8838         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
8839         expand_builtin_dwarf_sp_column, init_return_column_size,
8840         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
8841         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
8842         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
8843         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
8844         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
8845         compute_barrier_args_size, dwarf2out_args_size,
8846         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
8847         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
8848         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
8849         queue_reg_save, dwarf2out_flush_queued_reg_saves,
8850         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
8851         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8852         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8853         dwarf2out_frame_debug_cfa_expression,
8854         dwarf2out_frame_debug_cfa_restore,
8855         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
8856         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
8857         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
8858         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
8859         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
8860         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
8861         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
8862         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
8863         dw_loc_descr_node): Move to dwarf2out.h.
8864         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
8865         mem_loc_descriptor): Export.
8866         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
8867         (dwarf2out_frame_init): Extract CIE generation code to
8868         dwarf2cfi_frame_init.
8869
8870 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
8871
8872         PR target/49660
8873         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
8874         MASK_V8PLUS, remove commented out flag and reorder.
8875
8876 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
8877
8878         PR c/49644
8879         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
8880         one non-complex and one complex argument, call c_save_expr on both
8881         operands.
8882
8883 2011-07-07  Martin Jambor  <mjambor@suse.cz>
8884
8885         PR middle-end/49495
8886         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
8887         (verify_cgraph_node): Some functinality moved to
8888         verify_edge_corresponds_to_fndecl, call it.
8889
8890 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8891
8892         * config.gcc (*local*): Remove.
8893         * doc/install-old.texi: Don't mention local configurations.
8894
8895 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
8896
8897         PR debug/49522
8898         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
8899         referencing debug insns that have been reset.
8900         (dead_debug_insert_before): Don't assert reg is non-NULL,
8901         instead return immediately if it is NULL.
8902
8903 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
8904
8905         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8906
8907 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8908
8909         * hw-doloop.c: New file.
8910         * hw-doloop.h: New file.
8911         * Makefile.in (OBJS): Add hw-doloop.o.
8912         (hw-doloop.o): New rule.
8913         ($(obj_out_file)): Add hw-doloop.h dependency.
8914         * config/bfin/bfin.c: Include "hw-doloop.h".
8915         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8916         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8917         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
8918         type changed to hwloop_info.  Return bool, true if the loop was
8919         successfully optimized.  Remove code that was moved to
8920         hw-doloop.c, and adjust other parts.
8921         (hwloop_fail): New static function, containing parts that used
8922         to be in bfin_optimize_loop.
8923         (bfin_discover_loop, bfin_discover_loops, free_loops,
8924         bfin_reorder_loops): Remove.
8925         (hwloop_pattern_reg): New static function.
8926         (bfin_doloop_hooks): New variable.
8927         (bfin_reorg_loops): Remove most code, call reorg_loops.
8928         * config/bfin/bfin.md (doloop_end splitter): Also enable if
8929         loop counter is a memory_operand.
8930
8931 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8932
8933         * config.gcc: Support --with-multilib-list for x86 Linux targets.
8934
8935         * configure.ac: Mention x86-64 for --with-multilib-list.
8936         * configure: Regenerated.
8937
8938         * config/i386/gnu-user64.h (SPEC_64): Support x32.
8939         (SPEC_32): Likewise.
8940         (ASM_SPEC): Likewise.
8941         (LINK_SPEC): Likewise.
8942         (TARGET_THREAD_SSP_OFFSET): Likewise.
8943         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8944         (SPEC_X32): New.
8945
8946         * config/i386/i386.h (TARGET_X32): New.
8947         (TARGET_LP64): New.
8948         (LONG_TYPE_SIZE): Likewise.
8949         (POINTER_SIZE): Likewise.
8950         (POINTERS_EXTEND_UNSIGNED): Likewise.
8951         (OPT_ARCH64): Support x32.
8952         (OPT_ARCH32): Likewise.
8953
8954         * config/i386/i386.opt (mx32): New.
8955
8956         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8957         (GLIBC_DYNAMIC_LINKERX32): Likewise.
8958         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8959         (GLIBC_DYNAMIC_LINKERX32): Likewise.
8960
8961         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8962         (BIONIC_DYNAMIC_LINKERX32): Likewise.
8963         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8964
8965         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8966
8967         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8968
8969         * doc/invoke.texi: Document -mx32.
8970
8971 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
8972
8973         * doc/invoke.texi (mwords-little-endian): Deprecate.
8974         * config/arm/arm.opt (mwords-little-endian): Likewise.
8975         * config/arm/arm.c (arm_option_override): Warn about the deprecation
8976         of -mwords-little-endian.
8977
8978 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
8979
8980         * reload1.c (choose_reload_regs): Use mode sizes to check whether
8981         an old reload register completely defines the required value.
8982
8983 2011-07-07  Richard Guenther  <rguenther@suse.de>
8984
8985         * fold-const.c (fold_unary_loc): Do not strip sign-changes
8986         for NEGATE_EXPR.
8987
8988 2011-07-07  Richard Guenther  <rguenther@suse.de>
8989
8990         * tree-vrp.c (simplify_conversion_using_ranges): New function.
8991         (simplify_stmt_using_ranges): Call it.
8992
8993 2011-07-07  Kai Tietz  <ktietz@redhat.com>
8994
8995         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8996         (lookup_logical_inverted_value): Likewise.
8997         (simplify_bitwise_binary_1): Likewise.
8998         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8999
9000 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9001
9002         * gcc.c (%[Spec]): Don't document.
9003         (struct spec_list): Update comment.
9004         (do_spec_1): Don't handle %[Spec].
9005         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
9006
9007 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
9008
9009         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
9010         default based on TARGET_ASM_NAMED_SECTION.
9011         * common/common-target.def (have_named_sections): Default to true.
9012         * common/config/default-common.c: Don't include tm.h.
9013         * common/config/picochip/picochip-common.c
9014         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
9015         * common/config/m32c/m32c-common.c: Remove.
9016         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
9017         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9018         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9019         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9020         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9021         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9022         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
9023
9024 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
9025
9026         PR middle-end/49640
9027         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
9028         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
9029
9030 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9031
9032         PR libmudflap/49550
9033         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
9034
9035 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9036
9037         PR target/39150
9038         * configure.ac (gcc_cv_as_hidden): Also accept
9039         x86_64-*-solaris2.1[0-9]*.
9040         (gcc_cv_as_cfi_directive): Likewise.
9041         (gcc_cv_as_comdat_group_group): Likewise.
9042         (set_have_as_tls): Likewise.
9043         * configure: Regenerate.
9044         * config.gcc (i[34567]86-*-solaris2*): Also handle
9045         x86_64-*-solaris2.1[0-9]*.
9046         * config.host (i[34567]86-*-solaris2*): Likewise.
9047         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
9048         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
9049         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
9050         (TARGET_LD_EMULATION): Use it.
9051         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
9052         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
9053         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
9054         (ASM_CPU64_DEFAULT_SPEC): Define.
9055         (ASM_CPU_SPEC): Use %(asm_cpu_default).
9056         (ASM_SPEC): Redefine.
9057         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
9058         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
9059         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
9060         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
9061         configuration.
9062         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
9063
9064 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9065
9066         * config/sol2.h (ASM_SPEC): Split into ...
9067         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
9068         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
9069         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
9070         (ASM_SPEC): Use ASM_SPEC_BASE.
9071         * config/sparc/sol2.h (ASM_SPEC): Redefine.
9072
9073 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
9074
9075         * config/avr/avr.md (*reload_insi): Change predicate #1 to
9076         const_int_operand.  Ditto for peep2 producing this insn.
9077         Add argument to output_reload_insisf call.
9078         (*movsi,*movsf): Add argument to output_movsisf call.
9079         (*reload_insf): New insn and new peep2 to produce it.
9080         * config/avr/avr-protos.h (output_movsisf): Change prototype.
9081         (output_reload_insisf): Change prototype.
9082         * config/avr/avr.c (avr_asm_len): New function.
9083         (output_reload_insisf): Rewrite.
9084         (output_movsisf): Change prototype.  output_reload_insisf for
9085         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
9086         (adjust_insn_length): Add argument to output_movsisf and
9087         output_reload_insisf call.
9088
9089 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
9090
9091         * emit-rtl.c (paradoxical_subreg_p): New function.
9092         * rtl.h (paradoxical_subreg_p): Declare.
9093         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
9094         apply_distributive_law, simplify_comparison, simplify_set): Use it.
9095         * cse.c (record_jump_cond, cse_insn): Likewise.
9096         * expr.c (force_operand): Likewise.
9097         * rtlanal.c (num_sign_bit_copies1): Likewise.
9098         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
9099         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
9100         (push_reload): Use precision to check for paradoxical subregs.
9101         * expmed.c (extract_bit_field_1): Likewise.
9102
9103         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
9104         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
9105         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
9106         simplify_set, simplify_logical, expand_compound_operation,
9107         make_extraction, force_to_mode, if_then_else_cond, extended_count,
9108         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
9109         record_value_for_reg): Likewise.
9110         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
9111         * simplify-rtx. c (simplify_unary_operation_1,
9112         simplify_binary_operation_1, simplify_const_relational_operation):
9113         Likewise.
9114
9115         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
9116         instead of GET_MODE_BITSIZE where appropriate.
9117         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
9118         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
9119         init_num_sign_bit_copies_in_rep): Likewise.
9120         * cse.c (fold_rtx, cse_insn): Likewise.
9121         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
9122         * simplify-rtx.c (simplify_unary_operation_1,
9123         simplify_const_unary_operation, simplify_binary_operation_1,
9124         simplify_const_binary_operation, simplify_ternary_operation,
9125         simplify_const_relational_operation, simplify_subreg): Likewise.
9126         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
9127         simplify_if_then_else, simplify_set, expand_compound_operation,
9128         expand_field_assignment, make_extraction, if_then_else_cond,
9129         make_compound_operation, force_to_mode, make_field_assignment,
9130         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
9131         extended_count, try_widen_shift_mode, simplify_shift_const_1,
9132         simplify_comparison, record_promoted_value, simplify_compare_const,
9133         record_dead_and_set_regs_1): Likewise.
9134
9135         Revert:
9136         * simplify-rtx.c (simplify_const_binary_operation): Use the
9137         shift_truncation_mask hook instead of performing modulo by width.
9138         Compare against mode precision, not bitsize.
9139         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9140         Use shift_truncation_mask instead of constructing the value manually.
9141
9142 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9143
9144         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
9145         declaration.
9146         (rs6000_save_toc_in_prologue_p): Ditto.
9147
9148         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
9149         up the static chain (r11) during indirect function calls.
9150         (-msave-toc-indirect): New undocumented debug switch.
9151
9152         * config/rs6000/rs6000.c (struct machine_function): Add
9153         save_toc_in_prologue field to note whether the prologue needs to
9154         save the TOC value in the reserved stack location.
9155         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
9156         to save the TOC in the prologue, do so.
9157         (rs6000_trampoline_init): Don't allow creating AIX style
9158         trampolines if -mno-r11 is in effect.
9159         (rs6000_call_indirect_aix): New function to create AIX style
9160         indirect calls, adding support for -mno-r11 to suppress loading
9161         the static chain, and saving the TOC in the prologue instead of
9162         the call body.
9163         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
9164         TOC in the prologue.
9165
9166         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
9167         register numbers.
9168         (TOC_REGNUM): Ditto.
9169         (STATIC_CHAIN_REGNUM): Ditto.
9170         (ARG_POINTER_REGNUM): Ditto.
9171         (SFP_REGNO): Delete, unused.
9172         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
9173         function descriptor offsets.
9174         (TOC_SAVE_OFFSET_64BIT): Ditto.
9175         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
9176         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
9177         (AIX_FUNC_DESC_SC_32BIT): Ditto.
9178         (AIX_FUNC_DESC_SC_64BIT): Ditto.
9179         (ptrload): New mode attribute for the appropriate load of a pointer.
9180         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
9181         (call_indirect_aix64): Ditto.
9182         (call_value_indirect_aix32): Ditto.
9183         (call_value_indirect_aix64): Ditto.
9184         (call_indirect_nonlocal_aix32_internal): Ditto.
9185         (call_indirect_nonlocal_aix32): Ditto.
9186         (call_indirect_nonlocal_aix64_internal): Ditto.
9187         (call_indirect_nonlocal_aix64): Ditto.
9188         (call): Rewrite AIX indirect function calls.  Add support for
9189         eliminating the static chain, and for moving the save of the TOC
9190         to the function prologue.
9191         (call_value): Ditto.
9192         (call_indirect_aix<ptrsize>): Ditto.
9193         (call_indirect_aix<ptrsize>_internal): Ditto.
9194         (call_indirect_aix<ptrsize>_internal2): Ditto.
9195         (call_indirect_aix<ptrsize>_nor11): Ditto.
9196         (call_value_indirect_aix<ptrsize>): Ditto.
9197         (call_value_indirect_aix<ptrsize>_internal): Ditto.
9198         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
9199         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
9200         (call_nonlocal_aix32): Relocate in the rs6000.md file.
9201         (call_nonlocal_aix64): Ditto.
9202
9203         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
9204         -mno-r11 documentation.
9205
9206 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
9207
9208         PR other/49658
9209         * doc/extend.texi (Compound Literals): Fix typo.
9210
9211 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
9212
9213         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
9214
9215 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
9216
9217         * configure.ac (plugin-version.h): Generate
9218         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
9219         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
9220         macros.
9221
9222         * configure: Regenerate.
9223
9224         * doc/plugins.texi (Building GCC plugins): Mention
9225         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
9226
9227 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9228
9229         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
9230         * combine.c (make_extraction, gen_lowpart_or_truncate,
9231         apply_distributive_law, simplify_comparison,
9232         reg_truncated_to_mode, record_truncated_value): Use it.
9233         * cse.c (notreg_cost): Likewise.
9234         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
9235         * expr.c (convert_move, convert_modes): Likewise.
9236         * optabs.c (expand_binop, expand_unop): Likewise.
9237         * postreload.c (move2add_last_label): Likewise.
9238         * regmove.c (optimize_reg_copy_3): Likewise.
9239         * rtlhooks.c (gen_lowpart_general): Likewise.
9240         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9241
9242 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
9243
9244         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
9245
9246 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9247
9248         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
9249         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
9250         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
9251         (simplify_const_unary_operation, simplify_binary_operation_1,
9252         simplify_const_binary_operation, simplify_const_relational_operation):
9253         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
9254         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
9255         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
9256         simplify_shift_const_1, simplify_comparison): Likewise.
9257         * expr.c (convert_modes): Likewise.
9258         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
9259         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
9260         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
9261
9262         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
9263
9264 2011-07-06  Richard Guenther  <rguenther@suse.de>
9265
9266         PR tree-optimization/49645
9267         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
9268         register variables.
9269         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
9270         in type qualification here ...
9271         (copy_reference_ops_from_ref): ... not here.
9272         (vn_reference_lookup_3): ... or here.
9273         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
9274         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
9275
9276 2011-07-06  Ian Lance Taylor  <iant@google.com>
9277
9278         * doc/install.texi (Configuration): It's
9279         --enable-gnu-indirect-function, not --enable-indirect-function.
9280
9281 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
9282
9283         * simplify-rtx.c (simplify_const_binary_operation): Use the
9284         shift_truncation_mask hook instead of performing modulo by width.
9285         Compare against mode precision, not bitsize.
9286         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
9287         Use shift_truncation_mask instead of constructing the value manually.
9288
9289 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
9290
9291         PR middle-end/47383
9292         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
9293         address computation and convert to address_mode if needed.
9294
9295 2011-07-06  Richard Guenther  <rguenther@suse.de>
9296
9297         * tree.c (build_common_tree_nodes_2): Merge with
9298         build_common_tree_nodes.
9299         * tree.h (build_common_tree_nodes): Adjust prototype.
9300         (build_common_tree_nodes_2): Remove.
9301         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
9302         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
9303
9304 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
9305
9306         PR tree-optimization/49618
9307         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
9308         t recurse on the decl.
9309         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
9310         return true if expr isn't known to be defined in current
9311         TU or some other LTO partition.
9312
9313 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9314
9315         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
9316         override CASE_VALUES_THRESHOLD.
9317
9318         * stmt.c (toplevel): Include params.h.
9319         (case_values_threshold): Use the --param case-values-threshold
9320         value if non-zero, otherwise use machine dependent value.
9321         (expand_case): Use case_values_threshold.
9322
9323         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
9324
9325         * doc/invoke.texi (--param case-values-threshold): Document.
9326
9327 2011-07-05  Richard Henderson  <rth@redhat.com>
9328
9329         * dwarf2out.c (dwarf2out_cfi_label): Make static.
9330         (dwarf2out_flush_queued_reg_saves): Make static.
9331         (dwarf2out_reg_save): Remove.
9332         (dwarf2out_return_save): Remove.
9333         (dwarf2out_return_reg): Remove.
9334         (dwarf2out_reg_save_reg): Remove.
9335         (dwarf2out_def_cfa): Merge into ...
9336         (dwarf2out_frame_init): ... here.
9337         * dwarf2out.h, tree.h: Remove declarations as necessary.
9338
9339 2011-07-05  Richard Henderson  <rth@redhat.com>
9340
9341         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
9342         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9343         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
9344         the alloc insn.
9345
9346         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
9347         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
9348         (process_epilogue): Don't call dwarf2out_def_cfa.
9349
9350         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
9351         indicate the return address save.
9352         (process_cfa_register): Likewise.
9353
9354         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
9355         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
9356
9357         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
9358         for ar.pfs save at alloc insn.
9359
9360 2011-07-05  Richard Henderson  <rth@redhat.com>
9361
9362         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
9363         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9364         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
9365         stack pointer save.
9366         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
9367         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
9368         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
9369         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
9370
9371 2011-07-05  Richard Henderson  <rth@redhat.com>
9372
9373         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
9374         VUNSPEC_* constants here instead of via define_constants.
9375         (VUNSPEC_PEM): New constant.
9376         (procedure_entry_mask): New insn.
9377         (prologue): New expander.
9378         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
9379         (vax_expand_prologue): Rename from vax_output_function_prologue;
9380         emit rtl instead of text.
9381         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
9382         (print_operand): Add 'x' prefix.
9383
9384 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9385
9386         PR middle-end/47715
9387         * calls.c (precompute_register_parameters): Promote the function
9388         argument before checking non-legitimate constant.
9389
9390 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9391
9392         PR tree-optimization/47654
9393         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
9394         (lst_do_strip_mine_loop): Return an int.
9395         (lst_do_strip_mine): Same.
9396         (scop_do_strip_mine): Same.
9397         (scop_do_block): Loop blocking should strip-mine at least two loops.
9398         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
9399         (scop_do_interchange): Same.
9400         * graphite-poly.h (scop_do_interchange): Update declaration.
9401         (scop_do_strip_mine): Same.
9402
9403 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9404
9405         * graphite-clast-to-gimple.c (precision_for_value): Removed.
9406         (precision_for_interval): Removed.
9407         (gcc_type_for_interval): Use mpz_sizeinbase.
9408
9409 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9410
9411         * graphite-ppl.h (value_max): Correct computation of max.
9412
9413 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
9414
9415         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
9416
9417 2011-07-05  Richard Guenther  <rguenther@suse.de>
9418
9419         * c-decl.c (c_init_decl_processing): Defer building common
9420         tree nodes to c_common_nodes_and_builtins.
9421
9422 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
9423
9424         PR tree-optimization/49580
9425         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
9426         the loop's number of iterations.
9427         * tree-parloops.c (transform_to_exit_first_loop): Add the
9428         handling of the loop's number of iterations before the call
9429         to gimple_duplicate_sese_tail.
9430         Insert the stmt caclculating the new rhs of the loop's
9431         condition stmt to the preheader instead of iters_bb.
9432
9433 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9434
9435         PR rtl-optimization/47449
9436         * fwprop.c (forward_propagate_subreg): Don't propagate hard
9437         register nor zero/sign extended hard register.
9438
9439 2011-07-05  Richard Guenther  <rguenther@suse.de>
9440
9441         PR tree-optimization/49518
9442         PR tree-optimization/49628
9443         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
9444         irrelevant and invariant data-references.
9445         (vect_analyze_data_ref_access): For invariant loads clear the
9446         group association.
9447
9448 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
9449
9450         PR rtl-optimization/49619
9451         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
9452         pass VOIDmode as op0_mode to recursive call, and return temp even
9453         when different from tor, just if it is not IOR of the original
9454         PLUS arguments.
9455
9456         PR rtl-optimization/49472
9457         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
9458         negating MULT, negate the second operand instead of first.
9459         (simplify_binary_operation_1) <case MULT>: If one operand is
9460         a NEG and the other is MULT, don't attempt to optimize by negation
9461         of the MULT operand if it only moves the NEG operation around.
9462
9463         PR debug/49602
9464         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
9465         get_current_def return value if it can't be trusted to be
9466         the current value of the variable in the current bb.
9467
9468 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
9469
9470         PR target/49600
9471         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
9472         general register to memory for !TARGET_INTER_UNIT_MOVES.
9473
9474 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9475
9476         PR target/44643
9477         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
9478         instead of TREE_READONLY.
9479
9480 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9481
9482         * doc/extend.texi (AVR Built-in Functions): Update documentation
9483         of __builtin_avr_fmul*.
9484         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
9485         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
9486         * config/avr/avr.md (fmul): Rename to fmul_insn.
9487         (fmuls): Rename to fmuls_insn.
9488         (fmulsu): Rename to fmulsu_insn.
9489         (fmul,fmuls,fmulsu): New expander.
9490         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
9491         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
9492         * config/avr/libgcc.S (__fmul): New function.
9493         (__fmuls): New function.
9494         (__fmulsu,__fmulsu_exit): New function.
9495
9496 2011-07-04  Richard Guenther  <rguenther@suse.de>
9497
9498         PR tree-optimization/49615
9499         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
9500         basic-block index check.
9501
9502 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
9503
9504         * longlong.h (count_leading_zeros, count_trailing_zeros,
9505         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
9506         resp. 64.
9507
9508 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
9509
9510         PR tree-optimization/49610
9511         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
9512         a basic block.
9513
9514 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9515             Olivier Hainque  <hainque@adacore.com>
9516             Nicolas Setton  <setton@adacore.com>
9517
9518         * tree.h (TYPE_ARTIFICIAL): New flag.
9519         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
9520         the DIE of the type if it is artificial.
9521         (gen_array_type_die): Likewise.
9522         (gen_enumeration_type_die): Likewise.
9523         (gen_struct_or_union_type_die): Likewise.
9524         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
9525         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
9526
9527 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9528
9529         * tree-object-size.c (pass_through_call): Handle
9530         BUILT_IN_ASSUME_ALIGNED.
9531
9532 2011-07-01  Martin Jambor  <mjambor@suse.cz>
9533
9534         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
9535
9536 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
9537
9538         PR middle-end/48016
9539         * explow.c (update_nonlocal_goto_save_area): Use proper mode
9540         for stack save area.
9541         * function.c (expand_function_start): Likewise.
9542
9543 2011-07-01  Richard Guenther  <rguenther@suse.de>
9544
9545         PR middle-end/49596
9546         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
9547         may have unknown refs.
9548
9549 2011-07-01  Kai Tietz  <ktietz@redhat.com>
9550
9551         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
9552
9553 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9554
9555         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
9556         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
9557         (Specific, mips-sgi-irix6): Likewise.
9558
9559 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9560
9561         PR libmudflap/49549
9562         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
9563
9564 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
9565
9566         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
9567         [idx]= and [idx1 ... idx2]= before initializers if needed for
9568         array initializers.
9569
9570 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
9571
9572         * config.gcc (score-*-elf): Remove score7.o.
9573         * config/score/t-score-elf: Likewise.
9574         * config/score/score.c: Merge score7 to score.c and
9575         remove forwarding functions.
9576         * config/score/score7.c: Deleted.
9577         * config/score/score7.h: Deleted.
9578
9579 2011-07-01  Richard Guenther  <rguenther@suse.de>
9580
9581         PR tree-optimization/49603
9582         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
9583
9584 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9585
9586         * tree-sra.c (struct access): Rename total_scalarization to
9587         grp_total_scalarization
9588         (completely_scalarize_var): New function.
9589         (sort_and_splice_var_accesses): Set total_scalarization in the
9590         representative access.
9591         (analyze_access_subtree): Propagate total scalarization accross the
9592         tree, no holes in totally scalarized trees, simplify coverage
9593         computation.
9594         (analyze_all_variable_accesses): Call completely_scalarize_var instead
9595         of completely_scalarize_record.
9596
9597 2011-06-30  Richard Henderson  <rth@redhat.com>
9598
9599         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
9600         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
9601         * config/i386/i386.c: Don't include dwarf2out.h.
9602         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
9603         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
9604         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
9605         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
9606         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
9607
9608 2011-06-30  Richard Henderson  <rth@redhat.com>
9609
9610         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
9611         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9612         * final.c (final_scan_insn): Look for it, and invoke
9613         dwarf2out_frame_debug before the insn if found.
9614
9615 2011-06-30  Richard Henderson  <rth@redhat.com>
9616
9617         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
9618         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
9619
9620 2011-06-30  Richard Henderson  <rth@redhat.com>
9621
9622         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
9623         Define a vector of this type.
9624         (regs_saved_in_regs): Use a VEC.
9625         (num_regs_saved_in_regs): Remove.
9626         (compare_reg_or_pc): New.
9627         (record_reg_saved_in_reg): Split out from...
9628         (dwarf2out_flush_queued_reg_saves): ... here.
9629         (clobbers_queued_reg_save): Update for VEC.
9630         (reg_saved_in): Likewise.
9631         (dwarf2out_frame_debug_init): Likewise.
9632         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
9633         (dwarf2out_frame_debug_cfa_register): Likewise.
9634
9635 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9636
9637         PR tree-optimization/49572
9638         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
9639         type of the RHS instead of that of the LHS for the expression type.
9640
9641 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9642
9643         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
9644         unconditionally.
9645
9646 2011-06-30  Richard Guenther  <rguenther@suse.de>
9647
9648         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
9649         * tree-ssa-structalias.c (create_variable_info_for): Do not
9650         add initial constraints for non-var-decls.  Properly handle
9651         globals in other ltrans partitions.
9652         (intra_create_variable_infos): Manually create constraints for
9653         the fake no-alias parameter.
9654         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
9655         and assert there are no clones.
9656
9657 2011-06-30  Richard Guenther  <rguenther@suse.de>
9658
9659         PR tree-optimization/46787
9660         * tree-data-ref.c (dr_address_invariant_p): Remove.
9661         (find_data_references_in_stmt): Invariant accesses are ok now.
9662         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
9663         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9664         invariant loads.
9665
9666 2011-06-30  Martin Jambor  <mjambor@suse.cz>
9667
9668         PR tree-optimization/49094
9669         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
9670         (build_accesses_from_assign): Use it.
9671
9672 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9673
9674         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9675         handling of BUILT_IN_ASSUME_ALIGNED.
9676
9677         PR debug/49364
9678         * dwarf2out.c (output_abbrev_section): Don't return early
9679         if abbrev_die_table_in_use is 1.
9680         (dwarf2out_finish): Instead don't call output_abbrev_section
9681         nor emit abbrev_section_label in that case.
9682
9683 2011-06-30  Nick Clifton  <nickc@redhat.com>
9684
9685         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
9686         for the V850E.
9687
9688 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
9689
9690         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
9691         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
9692
9693 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
9694
9695         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
9696         both pattern and original statements if necessary.
9697         (vect_transform_loop): Likewise.
9698         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
9699         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
9700         Mark the pattern statement only if the original statement doesn't
9701         have its own uses.
9702         (process_use): Call vect_mark_relevant with additional parameter.
9703         (vect_mark_stmts_to_be_vectorized): Likewise.
9704         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
9705         (vect_analyze_stmt): Handle both pattern and original statements
9706         if necessary.
9707         (vect_transform_stmt): Don't store vectorized pattern statement
9708         in the original statement.
9709         (vect_is_simple_use_1): Use related pattern statement only if the
9710         original statement is irrelevant.
9711         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9712
9713 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
9714
9715         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
9716         option.
9717         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
9718         entry.
9719         (TARGET_AVX128_OPTIMAL): New definition.
9720         * config/i386/i386.c (initial_ix86_tune_features): Initialize
9721         X86_TUNE_AVX128_OPTIMAL entry.
9722         (ix86_option_override_internal): Enable the generation
9723         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
9724         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
9725         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
9726
9727 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9728
9729         PR tree-optimization/49539
9730         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
9731         names by means of stmt_references_abnormal_ssa_name.
9732         (associate_plusminus): Call can_propagate_from before propagating
9733         from definition statements.
9734         (ssa_forward_propagate_and_combine): Remove superfluous newline.
9735
9736 2011-06-29  Richard Guenther  <rguenther@suse.de>
9737
9738         * doc/invoke.texi: Document -scev dump modifier.
9739         * tree-pass.h (TDF_SCEV): New dump flag.
9740         * tree-dump.c (dump_option_value_in): Add scev.
9741         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
9742         * tree-scalar-evolution.c: Likewise.
9743
9744 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
9745
9746         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
9747         (cxa_type_match): Correct declaration.
9748         (__gnu_unwind_pr_common): Reconstruct additional indirection
9749         when __cxa_type_match returns succeeded_with_ptr_to_base.
9750
9751 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9752
9753         PR rtl-optimization/49114
9754         * reload.c (struct replacement): Remove SUBREG_LOC member.
9755         (push_reload): Do not set it.
9756         (push_replacement): Likewise.
9757         (subst_reload): Remove dead code.
9758         (copy_replacements): Remove assertion.
9759         (copy_replacements_1): Do not handle SUBREG_LOC.
9760         (move_replacements): Likewise.
9761         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
9762         Detect subregs via recursive descent instead of via SUBREG_LOC.
9763
9764 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9765
9766         * config/avr/avr.c (avr_encode_section_info): Dispatch to
9767         default_encode_section_info.
9768
9769 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
9770
9771         PR tree-optimization/49545
9772         * builtins.c (get_object_alignment_1): Update function comment.
9773         Do not use DECL_ALIGN for functions, but test
9774         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
9775         * fold-const.c (get_pointer_modulus_and_residue): Don't check
9776         for functions here.
9777         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9778
9779 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
9780
9781         PR debug/49567
9782         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
9783         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
9784
9785 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9786
9787         PR target/34734
9788         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
9789         about uninitialized data attributed 'progmem' from here...
9790         (avr_encode_section_info): ...to this new function.
9791         (TARGET_ENCODE_SECTION_INFO): New define.
9792         (avr_section_type_flags): For data in ".progmem.data", remove
9793         section flag SECTION_WRITE.
9794
9795 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
9796
9797         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
9798         _xmulhisi3_exit.
9799         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
9800         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
9801         (__umulhisi3): Ditto.
9802         * config/avr/avr.md (mulhisi3): New insn expender.
9803         (umulhisi3): New insn expender.
9804         (*mulhisi3_call): New insn.
9805         (*umulhisi3_call): New insn.
9806
9807 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9808
9809         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
9810
9811 2011-06-28  Richard Henderson  <rth@redhat.com>
9812
9813         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
9814         all code and arguments that handled pushes.  Update all callers.
9815
9816 2011-06-28  Richard Henderson  <rth@redhat.com>
9817
9818         * config/arm/arm.c (arm_output_function_prologue): Don't call
9819         thumb1_output_function_prologue.
9820         (arm_expand_prologue): Avoid dead store.
9821         (number_of_first_bit_set): Use ctz_hwi.
9822         (thumb1_emit_multi_reg_push): New.
9823         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
9824         to emit the entire prologue as rtl.
9825         (thumb1_output_interwork): Split out from
9826         thumb1_output_function_prologue.
9827         (thumb1_output_function_prologue): Remove.
9828         (arm_attr_length_push_multi): Handle thumb1.
9829         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
9830         (prologue_thumb1_interwork): New.
9831         (*push_multi): Allow thumb1; use push_mult_memory_operand.
9832         * config/arm/predicates.md (push_mult_memory_operand): New.
9833
9834 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9835
9836         * config/sparc/sync.md (*stbar): Delete.
9837         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
9838
9839 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
9840
9841         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
9842
9843 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9844
9845         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
9846         (TARGET_64BIT_DEFAULT): Define.
9847         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
9848         of tm_file.
9849         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
9850
9851 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9852
9853         * common.opt (in_lto_p): New Variable entry.
9854         * flags.h (in_lto_p): Move to common.opt.
9855         * gcc.c: Include params.h.
9856         (set_option_handlers): Also use common_handle_option and
9857         target_handle_option.
9858         (main): Call global_init_params, finish_params and init_options_struct.
9859         * opts.c (debug_type_names): Move from toplev.c.
9860         (print_filtered_help): Access quiet_flag through opts pointer.
9861         (common_handle_option): Return early in the driver for some options.
9862         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
9863         opts pointer.
9864         * toplev.c (in_lto_p): Move to common.opt.
9865         (debug_type_names): Move to opts.c.
9866         * Makefile.in (OBJS): Remove opts.o.
9867         (OBJS-libcommon-target): Add opts.o.
9868         (gcc.o): Update dependencies.
9869
9870 2011-06-28  Kai Tietz  <ktietz@redhat.com>
9871
9872         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
9873
9874 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9875
9876         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9877         with '=' constraint modifier.
9878         (*divdf3_vfp): Likewise.
9879         ("*mulsf3_vfp"): Likewise.
9880         ("*muldf3_vfp"): Likewise.
9881         ("*mulsf3negsf_vfp"): Likewise.
9882         ("*muldf3negdf_vfp"): Likewise.
9883
9884 2011-06-28  Nick Clifton  <nickc@redhat.com>
9885
9886         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
9887         relaxation when performing an incremental link.
9888
9889 2011-06-28  Kai Tietz  <ktietz@redhat.com>
9890
9891         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9892         within BB from last to first.
9893
9894 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
9895
9896         * genattr-common.c: New.  Based on genattr.c.
9897         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
9898         (MOSTLYCLEANFILES): Add insn-attr-common.h.
9899         (opts.o): Update dependencies.
9900         (.PRECIOUS): Add insn-attr-common.h.
9901         (simple_rtl_generated_h): Add insn-attr-common.h.
9902         (build/genattr-common.o): New.
9903         (genprogrtl): Add attr-common.
9904         * genattr.c (main): Include insn-attr-common.h.  Don't generate
9905         definitions of DELAY_SLOTS or INSN_SCHEDULING.
9906         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9907
9908 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
9909
9910         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9911         avr-*-* and avr-*-rtems* targets.
9912
9913         * config/avr/elf.h: New file.
9914         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9915         (TARGET_ASM_SELECT_SECTION): Define.
9916         (INIT_SECTION_ASM_OP): Undefine.
9917         (FINI_SECTION_ASM_OP): Undefine.
9918         (READONLY_DATA_SECTION_ASM_OP): Undefine.
9919         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9920         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9921         * config/avr/avr.h:
9922         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9923         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9924         (MAX_OFILE_ALIGNMENT): Move to elf.h.
9925         (STRING_LIMIT): Move to elf.h.
9926         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9927         (ASM_DECLARE_OBJECT_NAME): Remove.
9928         (ESCAPES): Remove.
9929         (ASM_OUTPUT_SKIP): Remove.
9930         (DWARF2_DEBUGGING_INFO): Remove.
9931         (OBJECT_FORMAT_ELF): Remove.
9932         (USER_LABEL_PREFIX): Remove.
9933         (ASM_OUTPUT_EXTERNAL): Remove.
9934         (ASM_OUTPUT_ASCII): Remove.
9935         (TYPE_ASM_OP): Remove.
9936         (SIZE_ASM_OP): Remove.
9937         (WEAK_ASM_OP): Remove.
9938         (STRING_ASM_OP): Remove.
9939         (SET_ASM_OP): Remove.
9940         (ASM_WEAKEN_LABEL): Remove.
9941         (TYPE_OPERAND_FMT): Remove.
9942         (ASM_DECLARE_FUNCTION_SIZE): Remove.
9943         (ASM_FINISH_DECLARE_OBJECT): Remove.
9944         (NO_DOLLAR_IN_LABEL): Remove.
9945         (ASM_GENERATE_INTERNAL_LABEL): Remove.
9946         (ASM_OUTPUT_CASE_LABEL): Remove.
9947         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9948         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9949         (gas_output_ascii): Remove.
9950         (gas_output_limited_string): Remove.
9951         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9952         * config/avr/avr-protos.h
9953         (gas_output_ascii): Remove prototye.
9954         (gas_output_limited_string): Remove prototype.
9955
9956 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
9957
9958         PR target/48637
9959         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
9960         asm operands.
9961
9962 2011-06-27  Jan Hubicka  <jh@suse.cz>
9963
9964         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9965         node instead of references in node.
9966
9967 2011-06-27  Richard Henderson  <rth@redhat.com>
9968
9969         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9970         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9971         inside ifdef.
9972
9973 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
9974
9975         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9976
9977         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9978         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9979         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9980         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9981         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9982         (evaluate_stmt, execute_fold_all_builtins): Handle
9983         BUILT_IN_ASSUME_ALIGNED.
9984         * tree-ssa-dce.c (propagate_necessity): Likewise.
9985         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9986         call_may_clobber_ref_p_1): Likewise.
9987         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9988         (expand_builtin_assume_aligned): New function.
9989         * doc/extend.texi (__builtin_assume_aligned): Document.
9990
9991         PR debug/49544
9992         * cselib.c (promote_debug_loc): If cselib_preserve_constants
9993         and l has two DEBUG_INSN owned locs instead of just one, adjust
9994         the second location's setting_insn too.
9995
9996 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9997
9998         PR libmudflap/38738
9999         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
10000
10001 2011-06-27  Nick Clifton  <nickc@redhat.com>
10002
10003         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
10004         bit position of highest bit set into a count of the high zero bits.
10005
10006 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10007
10008         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
10009
10010 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10011
10012         PR lto/48492
10013         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
10014         to a NULL parent.
10015
10016 2011-06-27  Richard Guenther  <rguenther@suse.de>
10017
10018         PR tree-optimization/49394
10019         * passes.c (execute_one_pass): Restore current_pass after
10020         applying IPA transforms.
10021
10022 2011-06-27  Kai Tietz  <ktietz@redhat.com>
10023
10024         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
10025         out of type precision after operation.
10026         (find_bswap): Take for limit value the integer auto-promotion
10027         into account.
10028
10029 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10030
10031         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
10032         forward scan as well.
10033
10034 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10035
10036         PR target/44241
10037         * config/vms/vms-protos.h: New file.
10038         * config/vms/vms-crtlmap.map: New file.
10039         * config/vms/vms.c: New file.
10040         * config/vms/make-crtlmap.awk: New file.
10041         * config/vms/vms-crtl.h: File removed.
10042         * config/vms/vms-crtl-64.h: File removed.
10043         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
10044         * config/alpha/vms64.h: Do not include vms-crtl-64.h
10045         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
10046         clear some builtins on VMS.  Calls vms_patch_builtins.
10047         (avms_asm_output_external): Remove.
10048         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
10049         (struct crtl_name_spec): Remove
10050         (DO_CTRL_NAMES): Remove.
10051         * config/ia64/vms.h (struct crtl_name_spec): Remove
10052         (DO_CTRL_NAMES): Remove.
10053         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
10054         clear some builtins on VMS.  Calls vms_patch_builtins.
10055         (ia64_asm_output_external): Remove DO_CRTL_NAME.
10056         * config/ia64/vms64.h: Do not include vms-crtl-64.h
10057         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
10058
10059 2011-06-27  Tristan Gingold  <gingold@adacore.com>
10060
10061         * config/alpha/alpha.c (alpha_end_function): Always generate .end
10062         directive on VMS.
10063
10064 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
10065
10066         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
10067         the function receives nonlocal gotos.
10068
10069 2011-06-27  Richard Guenther  <rguenther@suse.de>
10070
10071         PR tree-optimization/49536
10072         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
10073         For non-scalar inner types use a scalar type according to
10074         the scalar inner mode.
10075
10076 2011-06-27  Richard Guenther  <rguenther@suse.de>
10077
10078         PR tree-optimization/49365
10079         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
10080
10081 2011-06-27  Richard Guenther  <rguenther@suse.de>
10082
10083         PR tree-optimization/49169
10084         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
10085         the alignment of function decls.
10086
10087 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
10088
10089         PR target/47997
10090         * config/darwin.c (darwin_mergeable_string_section): Place string
10091         constants in '.cstring' rather than '.const' when CF/NSStrings are
10092         active.
10093
10094 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10095
10096         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
10097         (emit_save_register_window): Likewise.
10098         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
10099         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
10100         Swap back %o7/%i7 in register naming.
10101
10102 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
10103
10104         PR driver/49371
10105         * config/darwin.c (darwin_override_options): Improve warning when
10106         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
10107         is given with fpie/fPIE.
10108         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
10109         * config/darwin9.h (PIE_SPEC): New.
10110
10111 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
10112
10113         * timevar.c (timevar_print): Increase width for display of timevar
10114         name.
10115
10116 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
10117
10118         PR c++/46400
10119         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
10120         instead of TYPE_CHAIN for chain_next for types.
10121
10122 2011-06-24  Richard Henderson  <rth@redhat.com>
10123
10124         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
10125         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
10126         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
10127         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
10128         (sparc_flat_expand_prologue): Emit individual instructions
10129         instead of one of the above.
10130
10131 2011-06-24  Easwaran Raman  <eraman@google.com>
10132
10133         PR rtl-optimization/49429
10134         PR target/49454
10135         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
10136         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
10137         used to copy y into x.
10138         * calls.c (initialize_argument_information): Mark
10139         an argument addressable if it is passed by invisible reference.
10140         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
10141         if it is passed by reference.
10142
10143 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10144
10145         PR rtl-optimization/49504
10146         * rtlanal.c (nonzero_bits1): Properly handle addition or
10147         subtraction of a pointer in Pmode if pointers extend unsigned.
10148         (num_sign_bit_copies1): Likewise.
10149
10150 2011-06-24  Martin Jambor  <mjambor@suse.cz>
10151
10152         PR tree-optimizations/49516
10153         * tree-sra.c (sra_modify_assign): Choose the safe path for
10154         aggregate copies if we also did scalar replacements.
10155
10156 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10157
10158         PR target/49335
10159         * config/arm/predicates.md (add_operator): New.
10160         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
10161
10162 2011-06-24  Andi Kleen  <ak@linux.intel.com>
10163
10164         * tree-sra.c (type_internals_preclude_sra_p): Add msg
10165         parameter. Split up ifs and report reason in *msg.
10166         (reject): Add.
10167         (find_var_candiate): Add msg variable.
10168         Split up ifs and report reason to reject.
10169         (find_param_candidates): Add msg variable.
10170         Pass msg to type_internals_preclude_sra_p.
10171
10172 2011-06-23  Jeff Law  <law@redhat.com>
10173
10174         PR middle-end/48770
10175         * reload.h (reload): Change to return a bool.
10176         * ira.c (ira): If requested by reload, run a fast DCE pass after
10177         reload has completed.  Fix comment typo.
10178         * reload1.c (need_dce): New file scoped static.
10179         (reload): Set reload_completed here.  Return whether or not a DCE
10180         pass after reload is needed.
10181         (delete_dead_insn): Set need_dce as needed.
10182
10183         PR middle-end/49465
10184         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
10185         to detect threading through joiner block.  If there was already
10186         an edge to the new target, then do not change the PHI nodes.
10187
10188 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
10189
10190         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
10191         get_pointer_alignment to see if base isn't sufficiently aligned.
10192
10193 2011-06-23  Jan Hubicka  <jh@suse.cz>
10194
10195         PR tree-optimize/49373
10196         * tree-pass.h (all_late_ipa_passes): Declare.
10197         * cgraphunit.c (init_lowered_empty_function): Fix properties.
10198         (cgraph_optimize): Execute late passes; remove unreachable funcions
10199         after materialization.
10200         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
10201         LTOing.
10202         * passes.c (all_late_ipa_passes): Declare.
10203         (dump_passes, register_pass): Handle late ipa passes.
10204         (init_optimization_passes): Move ipa_pta to late passes; schedule
10205         fixup_cfg at beggining of all_passes.
10206         (apply_ipa_transforms): New function.
10207         (execute_one_pass): When doing simple ipa pass, apply all transforms.
10208
10209 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
10210
10211         * params.c: Include common/common-target.h.  Don't include tm.h.
10212         (lang_independent_params): Move from toplev.c.
10213         (global_init_params): New.
10214         * params.h (global_init_params): Declare.
10215         * target.def (default_params): Move to common-target.def.
10216         * toplev.c (lang_independent_options): Remove.
10217         (lang_independent_params): Move to params.c.
10218         (general_init): Use global_init_params.
10219         * common/common-target.def (option_default_params): Move from
10220         target.def.
10221         * common/config/ia64/ia64-common.c: Include params.h.
10222         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10223         from ia64.c.
10224         * common/config/rs6000/rs6000-common.c: Include params.h.
10225         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10226         from rs6000.c.
10227         * common/config/sh/sh-common.c: Include params.h.
10228         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10229         from sh.c.
10230         * common/config/spu/spu-common.c: Include params.h.
10231         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
10232         from spu.c.
10233         * config/ia64/ia64.c (ia64_option_default_params,
10234         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
10235         * config/rs6000/rs6000.c (rs6000_option_default_params,
10236         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
10237         * config/sh/sh.c (sh_option_default_params,
10238         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
10239         * config/spu/spu.c (spu_option_default_params,
10240         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
10241         * Makefile.in (OBJS): Remove params.o.
10242         (OBJS-libcommon-target): Add params.o.
10243         (params.o, $(common_out_object_file)): Update dependencies.
10244         * doc/tm.texi: Regenerate.
10245
10246 2011-06-23  Alan Modra  <amodra@gmail.com>
10247
10248         PR bootstrap/49383
10249         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
10250         invocation for 2011-06-09 changes.
10251
10252 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10253
10254         PR libgomp/49490
10255         * omp-low.c (expand_omp_for_static_nochunk): Only
10256         use n ceil/ nthreads size for the first n % nthreads threads in the
10257         team instead of all threads except for the last few ones which
10258         get less work or none at all.
10259
10260         PR debug/49496
10261         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
10262         uses.
10263
10264 2011-06-22  Richard Guenther  <rguenther@suse.de>
10265
10266         PR tree-optimization/49493
10267         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
10268         Refer to the alias target of variables.
10269         (associate_varinfo_to_alias_1): Remove.
10270         (ipa_pta_execute): Do not associate aliases with anything.
10271         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
10272         (cgraph_function_node): Likewise.
10273         (cgraph_function_or_thunk_node): Likewise.
10274         (varpool_variable_node): Likewise.
10275
10276 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10277
10278         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
10279         * config.gcc (arm*-*-linux*): Default to gnu tls.
10280         (arm*-*-*): Add --with-tls option.
10281         (all_defaults): Add 'tls'.
10282
10283 2011-06-22  Richard Henderson  <rth@redhat.com>
10284
10285         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
10286         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10287         (dwarf2out_frame_debug_cfa_window_save): Rename from
10288         dwarf2out_window_save; make static.
10289         * tree.h (dwarf2out_window_save): Don't declare.
10290
10291         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
10292         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
10293         (emit_save_register_window): Rename from gen_save_register_window;
10294         emit the insn and add REG_CFA_* notes.
10295         (sparc_expand_prologue): Update to match.
10296         * config/sparc/sparc.md (save_register_window_1): Simplify from
10297         save_register_window<P:mode>.
10298
10299 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10300
10301         PR target/49497
10302         * config/i386/i386.md (*lea_general_2): Always allow SImode.
10303         (*lea_general_2_zext): Likewise.
10304         (imul to lea peepholes): Use const359_operand and check
10305         TARGET_PARTIAL_REG_STALL.
10306
10307         * config/i386/predicates.md (const359_operand): New.
10308
10309 2011-06-22  Michael Matz  <matz@suse.de>
10310
10311         * cgraphunit.c (assemble_thunk): Use correct return type.
10312
10313 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
10314             Dmitry Melnik  <dm@ispras.ru>
10315
10316         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
10317         (neon_output_shift_immediate): Ditto.
10318         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
10319         prototype.
10320         (neon_output_shift_immediate): Ditto.
10321         * config/arm/neon.md (vashl<mode>3): Modified constraint.
10322         (vashr<mode>3_imm): New insn pattern.
10323         (vlshr<mode>3_imm): Ditto.
10324         (vashr<mode>3): Modified constraint.
10325         (vlshr<mode>3): Ditto.
10326         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
10327         predicate.
10328         (imm_for_neon_rshift_operand): Ditto.
10329         (imm_lshift_or_reg_neon): Ditto.
10330         (imm_rshift_or_reg_neon): Ditto.
10331
10332         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
10333
10334 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10335
10336         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
10337         builtin calls even if likelyvalue is not CONSTANT.
10338         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
10339         Return get_value_for_expr of first operand
10340         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
10341         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10342         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
10343         their non-checking counterparts.
10344         (call_may_clobber_ref_p_1): Likewise.
10345         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
10346         like their non-checking counterparts.
10347         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10348         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
10349         like their non-checking counterparts.
10350         (find_func_clobbers): Likewise.
10351         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
10352         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
10353
10354         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
10355         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
10356         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
10357         of base type reference as argument.
10358         (resolve_addr_in_expr): Likewise.  Fix keep computation.
10359         (convert_descriptor_to_signed): Renamed to...
10360         (convert_descriptor_to_mode): ... this.  For wider types convert to
10361         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
10362         (typed_binop): New function.
10363         (scompare_loc_descriptor, ucompare_loc_descriptor,
10364         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
10365         default to unsigned type instead of signed.
10366
10367         PR debug/47858
10368         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
10369         (gimple_build_debug_source_bind_stat): New prototype.
10370         (gimple_build_debug_source_bind): Define.
10371         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
10372         gimple_debug_source_bind_get_value,
10373         gimple_debug_source_bind_get_value_ptr,
10374         gimple_debug_source_bind_set_var,
10375         gimple_debug_source_bind_set_value): New inlines.
10376         * gimple.c (gimple_build_debug_source_bind_stat): New function.
10377         * gimple-pretty-print.c (dump_gimple_debug): Handle
10378         GIMPLE_DEBUG_SOURCE_BIND.
10379         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
10380         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10381         * tree-parloops.c (eliminate_local_variables,
10382         separate_decls_in_region): Likewise.
10383         (separate_decls_in_region_debug): Renamed from
10384         separate_decls_in_region_debug_bind.  Handle
10385         gimple_debug_source_bind_p.
10386         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
10387         prototypes.
10388         (DECL_HAS_DEBUG_ARGS_P): Define.
10389         (struct tree_function_decl): Add has_debug_args_flag field.
10390         * tree.c (debug_args_for_decl): New variable.
10391         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
10392         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
10393         (rewrite_debug_stmt_uses): New function.
10394         (rewrite_stmt): Use it to rewrite debug stmt uses.
10395         * rtl.def (DEBUG_PARAMETER_REF): New.
10396         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
10397         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
10398         DEBUG_PARAMETER_REF.
10399         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
10400         * print-rtl.c (print_rtx): Likewise.
10401         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
10402         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
10403         debug stmts in the first bb.
10404         * tree-inline.c (remap_ssa_name): If remapping default def
10405         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
10406         a source bind debug stmt.
10407         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
10408         (maybe_move_debug_stmts_to_successors): Likewise.
10409         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
10410         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
10411         debug args vector from old_decl to new_decl.
10412         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
10413         or modified parameters, add debug bind stmts before call
10414         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
10415         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
10416         on DECL_DEBUG_EXPRs from debug args vector.
10417         (expand_debug_source_expr): New function.
10418         (expand_debug_locations): Use it for source bind insns.
10419         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
10420         * var-tracking.c (prepare_call_arguments): Add debug args
10421         to call_arguments if any.
10422         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
10423         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
10424         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
10425         (get_ref_die_offset, parameter_ref_descriptor): New functions.
10426         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
10427         (gen_subprogram_die): Handle parameters identified by
10428         DEBUG_PARAMETER_REF.
10429
10430 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
10431
10432         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
10433         * doc/install.texi (Configuration): Document --with-tls.
10434         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
10435         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
10436         (arm_tls_descseq_addr): New.
10437         (legitimize_tls_address): Add tlsdesc support.
10438         (arm_cannot_copy_insn_p): Check for tlscall.
10439         (arm_emit_tls_decoration): Likewise.
10440         * config/arm/arm.h (TARGET_GNU2_TLS): New.
10441         (OPTION_DEFAULT_SPECS): Add with-tls support.
10442         * config/arm/arm.md (R1_REGNUM): Define.
10443         (tlscall): New.
10444         * config/arm/arm.opt (tls_type): New enumeration type and values.
10445         (mtls-dialect): New switch.
10446         * config/arm/arm-opts.h (enum tls_type): New.
10447
10448 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10449
10450         * attribs.c (register_attribute): Added assert to check that all
10451         attribute specs are registered with a name that is not empty and
10452         does not start with '_'.
10453         (decl_attributes): Avoid the lookup of the "naked" attribute spec
10454         if the function has no attributes.
10455         * tree.c (is_attribute_with_length_p): Removed.
10456         (is_attribute_p): Removed.
10457         (private_is_attribute_p): New.
10458         (private_lookup_attribute): New.
10459         (lookup_attribute): Removed.
10460         (lookup_ident_attribute): New.
10461         (remove_attribute): Require the first argument to be in the form
10462         'text', not '__text__'.  Updated asserts.
10463         (merge_attributes): Use lookup_ident_attributes instead of
10464         lookup_attribute.
10465         (merge_dllimport_decl_attributes): Use remove_attribute.
10466         (attribute_list_contained): Likewise.
10467         (attribute_list_equal): Immediately return 1 if the arguments are
10468         identical pointers.
10469         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
10470         'int'.  Require the first argument to be in the form 'text', not
10471         '__text__'.  Require the second argument to be an identifier.
10472         (lookup_attribute): Made inline.  Require the first argument to be
10473         in the form 'text', not '__text__'.
10474         (private_is_attribute_p, private_lookup_attribute): New.
10475         Updated comments.
10476
10477 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
10478
10479         * builtins.c: Add sync_ or SYNC__ to builtin names.
10480         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
10481         * omp-low.c: Add sync_ or SYNC__ to builtin names.
10482
10483 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10484
10485         PR target/33049
10486         * config/avr/avr.md (extzv): New expander.
10487         (*extzv): New insn.
10488         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
10489         * config/avr/constraints.md (C04): New constraint.
10490         * doc/md.texi (Machine Constraints): Document it.
10491
10492 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10493
10494         PR middle-end/49489
10495         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
10496         unsignedp argument instead of 1 for clrsb_optab.
10497         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
10498         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
10499         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
10500         * optabs.c (widen_leading): Call widen_operand and expand_unop
10501         with 0 as unsignedp argument instead of 1 for clrsb_optab.
10502         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
10503
10504 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
10505
10506         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
10507
10508 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
10509
10510         * gensupport.c (add_define_attr): New static function.
10511         (is_predicable): Allow multi-alternative lists for the "predicable"
10512         attribute.
10513         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
10514         (process_one_cond_exec): Call alter_attrs_for_insn.
10515         * doc/md.texi (Defining Attributes): Mention some standard names.
10516         (Conditional Execution): Update documentation for "predicable".
10517
10518         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
10519         __builtin_clrsbll): Document.
10520         * doc/rtl.texi (clrsb): New entry.
10521         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
10522         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
10523         (expand_unop): Handle clrsb_optab.
10524         (init_optabs): Initialize it.
10525         * optabs.h (enum optab_index): New entry OTI_clrsb.
10526         (clrsb_optab): Define.
10527         * genopinit.c (optabs): Add an entry for it.
10528         * builtins.c (expand_builtin): Handle clrsb builtin functions.
10529         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
10530         BUILT_IN_CLRSBLL): New.
10531         * rtl.def (CLRSB): New code.
10532         * dwarf2out.c (mem_loc_descriptor): Handle it.
10533         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10534         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
10535         and popcount.
10536         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
10537         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
10538         (__ctzDI2): Move declaration.
10539         * config/bfin/bfin.md (clrsbsi2): New expander.
10540         (signbitssi2): Use the CLRSB rtx.
10541         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
10542         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
10543
10544 2011-06-21  Richard Guenther  <rguenther@suse.de>
10545
10546         * ipa-inline-transform.c (inline_transform): Fix previous change.
10547
10548 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
10549
10550         PR tree-optimization/49478
10551         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
10552         with constant operand.
10553
10554 2011-06-21  Richard Guenther  <rguenther@suse.de>
10555
10556         * ipa-inline-transform.c (inline_transform): Fix typo.
10557
10558 2011-06-21  Richard Guenther  <rguenther@suse.de>
10559
10560         PR tree-optimization/49483
10561         * tree-vect-stmts.c (vectorizable_assignment): Also handle
10562         VIEW_CONVERT_EXPR conversions.
10563
10564 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
10565
10566         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
10567         * config/avr/avr-tables.opt: New file (generated).
10568         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
10569         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
10570         avr-mcus.def.
10571         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
10572         (avr_option_override): Don't process -mmcu= argument here.  Set
10573         avr_current_device using avr_mcu_index.
10574         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
10575         * config/avr/avr.opt (mmcu=): Use Enum.
10576         * config/avr/t-avr (avr-devices.o): Update dependencies.
10577         ($(srcdir)/config/avr/avr-tables.opt): New.
10578         * target.def (help): Remove.
10579         * doc/tm.texi.in (TARGET_HELP): Remove.
10580         * doc/tm.texi: Regenerate.
10581         * opts.c: Don't include target.h.
10582         (common_handle_option): Don't call targetm.help.
10583         * system.h (TARGET_HELP): Poison.
10584         * Makefile.in (opts.o): Update dependencies.
10585
10586 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10587
10588         * config/usegld.h: New file.
10589         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
10590         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
10591         (LIB_SPEC): Likewise.  Search /lib.
10592         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
10593         (RDYNAMIC_SPEC): Handle GNU ld.
10594         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
10595         Define.
10596         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
10597         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
10598         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
10599         (STACK_CHECK_STATIC_BUILTIN): Define.
10600         * config/sol2.opt (compat-bsd): Remove.
10601         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
10602         * config/sol2-bi.h: New file.
10603         * config/sol2-gld.h: Remove.
10604         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
10605         (NO_DBX_BNSYM_ENSYM): Remove.
10606         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10607         (STACK_CHECK_STATIC_BUILTIN): Remove.
10608         Test USE_GLD instead of TARGET_GNU_LD.
10609         * config/i386/sol2-10.h: Rename to ...
10610         * config/i386/sol2-bi.h .. this.
10611         (SUBTARGET_EXTRA_SPECS): Redefine.
10612         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
10613         (MULTILIB_DEFAULTS): Remove.
10614         (DEFAULT_ARCH32_P): Define.
10615         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
10616         (ARCH64_SUBDIR): Define.
10617         Test USE_GLD instead of TARGET_GNU_LD.
10618         (I386_EMULATION): Rename to ...
10619         (ARCH32_EMULATION): ... this.
10620         (X86_64_EMULATION): Rename to ...
10621         (ARCH64_EMULATION): ... this.
10622         (TARGET_LD_EMULATION): Remove.
10623         (LINK_ARCH_SPEC): Remove.
10624         * config/i386/sol2-gas.h: Remove.
10625         * config/i386/t-sol2-10: Rename to ...
10626         * config/i386/t-sol2-64: ... this.
10627         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
10628         (AS_SPARC64_FLAG): Define.
10629         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
10630         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
10631         depending on TARGET_CPU_DEFAULT.
10632         (CPP_CPU_SPEC): Redefine.
10633         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
10634         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
10635         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
10636         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
10637         ASM_ARCH_DEFAULT_SPEC): Redefine.
10638         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10639         LINK_ARCH_DEFAULT_SPEC.
10640         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
10641         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
10642         (ARCH64_SUBDIR): Define.
10643         (LINK_ARCH64_SPEC): Redefine.
10644         (CC1_SPEC): Redefine.
10645         (OPTION_DEFAULT_SPECS): Redefine.
10646         (MULTILIB_DEFAULTS): Define.
10647         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
10648         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
10649         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
10650         (NO_DBX_BNSYM_ENSYM): Remove.
10651         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
10652         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
10653         (TARGET_ASM_NAMED_SECTION): Likewise.
10654         (STACK_CHECK_STATIC_BUILTIN): Remove.
10655         * config/sparc/sol2-bi.h: Remove.
10656         * config/sparc/sol2-gas-bi.h: Remove.
10657         * config/sparc/sol2-gas.h: Remove.
10658         * config/sparc/sol2-gld-bi.h: Remove.
10659         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
10660         common parts ...
10661         (*-*-solaris2*): ... here.
10662
10663 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10664
10665         PR other/43564
10666         * ipa-inline.c (can_inline_edge_p): Check
10667         !DECL_DISREGARD_INLINE_LIMITS.
10668
10669 2011-06-21  Christian Bruel  <christian.bruel@st.com>
10670
10671         PR middle-end/49139
10672         * cgraphunit.c (process_function_and_variable_attributes): warn when
10673         always_inline functions that are not inline.
10674         * ipa-inline-transform.c (inline_transform): Always call
10675         optimize_inline.
10676         * tree-inline.c (tree_inlinable_function_p): Use error instead
10677         of sorry.
10678         (expand_call_inline): Likewise.
10679
10680 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
10681
10682         * Makefile.in (dg_target_exps): Set.
10683         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
10684         instead of 7, try to divide it more evenly.
10685
10686 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
10687
10688         PR target/49089
10689         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
10690         (avx256_split_unaligned_store): New definition.
10691         (ix86_option_override_internal): Enable avx256 unaligned load/store
10692         splitting only when avx256_split_unaligned_load/store is set.
10693
10694 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
10695
10696         * regrename.c (scan_rtx_reg): Handle the case where we write to an
10697         open chain in a smaller mode without failing the entire block.
10698
10699 2011-06-21  Alan Modra  <amodra@gmail.com>
10700
10701         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
10702         CONST high part large-toc address.
10703         (rs6000_tls_referenced_p): Make static.
10704         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
10705
10706 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10707
10708         PR target/49385
10709         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
10710         one of the operands is a register.
10711
10712 2011-06-20  Kai Tietz  <ktietz@redhat.com>
10713
10714         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
10715         operations in combination with binary and.
10716
10717 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
10718
10719         * regrename.c (do_replace): Don't update notes.
10720
10721 2011-06-20  Alan Modra  <amodra@gmail.com>
10722
10723         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
10724         of toc-relative address in CONST.
10725         (rs6000_delegitimize_address): Recognize changed address.
10726         (rs6000_legitimize_reload_address): Likewise.
10727         (rs6000_emit_move): Don't force these constants to memory.
10728         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
10729         toc-relative address in CONST.
10730         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
10731         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
10732
10733 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10734
10735         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10736         (count_trailing_zeros): Likewise.
10737
10738 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10739
10740         PR other/49325
10741         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
10742         .init_array can be used with .ctors on targets.
10743         * configure: Regenerated.
10744
10745 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10746
10747         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
10748         if the element type is volatile.
10749
10750 2011-06-18  Jan Hubicka  <jh@suse.cz>
10751
10752         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
10753         extra name aliases.
10754         (lto_symtab_resolve_can_prevail_p): Likewise.
10755         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
10756         * cgraphbuild.c (record_reference): Remove extra body alias code.
10757         (mark_load): Likewise.
10758         (mark_store): Likewise.
10759         * cgraph.h (varpool_node): Remove extra_name filed;
10760         add alias_of and extraname_alias.
10761         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
10762         (varpool_alias_aliased_node): New inline function.
10763         (varpool_variable_node): New function.
10764         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
10765         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
10766         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
10767         (input_varpool_node): Likewise.
10768         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
10769         (varpool_externally_visible_p): Remove extra body alias code.
10770         (function_and_variable_visibility): Likewise.
10771         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
10772         (ipa_pta_execute): Use it.
10773         * varpool.c (varpool_remove_node): Remove extra name alias code.
10774         (varpool_mark_needed_node): Likewise.
10775         (varpool_analyze_pending_decls): Analyze aliases.
10776         (assemble_aliases): New functoin.
10777         (varpool_assemble_decl): Use it.
10778         (varpool_create_variable_alias): New function.
10779         (varpool_extra_name_alias): Rewrite.
10780         (varpool_for_node_and_aliases): New function.
10781
10782 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
10783
10784         PR target/49411
10785         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
10786         last_arg_constant and last argument doesn't match its predicate,
10787         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
10788         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
10789         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
10790         spelling of error message.
10791         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
10792         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
10793         const_0_to_255_operand instead of const_int_operand.
10794
10795         Revert:
10796         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
10797
10798         * config/i386/sse.md (blendbits): Remove mode attribute.
10799         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
10800         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
10801         Check integer value of operand 3 in insn constraint.
10802
10803 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
10804
10805         PR rtl-optimization/48542
10806         * reload.c (find_equiv_reg): Stop looking when finding a
10807         setjmp-type call.
10808         * reload1.c (reload_as_needed): Invalidate all reload
10809         registers when crossing a setjmp-type call.
10810
10811 2011-06-16  Jeff Law  <law@redhat.com>
10812
10813         * tree-ssa-threadupdate.c (struct redirection_data): New field
10814         intermediate_edge.
10815         (THREAD_TARGET2): Define.
10816         (redirection_data_eq): Also check that the intermediate edge is equal.
10817         (lookup_redirection_data): Drop useless argument.  Extract the
10818         outgoing_edge and intermediate edge from E.  Callers updated.
10819         (copy_phi_args, update_destination_phis): New functions.
10820         (fix_duplicate_block_edges): Likewise.
10821         (create_edge_and_update_destination_phis): Duplicate all the edges
10822         hung off e->aux.  Use copy_phi_args.
10823         (create_duplicates): Use fix_duplicate_block_edges.
10824         (fixup_template_block): Likewise.
10825         (redirect_edges): If necessary, redirect the joiner block's incoming
10826         edge to the duplicate of the joiner block.
10827         (thread_block): Don't muck up loops when threading through a joiner
10828         block.
10829         (thread_through_loop_header): Handle threading through a joiner block.
10830         (mark_threaded_blocks, register_jump_thread): Likewise.
10831         * tree-flow.h (register_jump_thread): Add new argument.  Callers
10832         updated.
10833         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
10834         (thread_across_edge): Handle threading through a joiner block.
10835
10836 2011-06-16  Martin Jambor  <mjambor@suse.cz>
10837
10838         PR tree-optimization/49343
10839         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
10840         calculate offset, provide 2nd operand for the new COMPONENT_REF.
10841
10842 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
10843
10844         * config/darwin-protos.h (machopic_select_rtx_section): Move to
10845         inside RTX_CODE ifdef.
10846
10847 2011-06-16  Tom de Vries  <tom@codesourcery.com>
10848
10849         PR target/45098
10850         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
10851         Disallow NULL pointer for pointer arithmetic.
10852
10853 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10854
10855         PR target/49398
10856         Revert.
10857         2011-06-10  Wei Guozhi  <carrot@google.com>
10858
10859         PR target/45335
10860         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10861         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10862         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10863         related peephole2.
10864         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10865         related peephole2.
10866         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10867         (arm_legitimate_ldrd_p): New prototype.
10868         (arm_output_ldrd): New prototype.
10869         * config/arm/arm.c (arm_check_ldrd_operands): New function.
10870         (arm_legitimate_ldrd_p): New function.
10871         (arm_output_ldrd): New function.
10872
10873 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10874
10875         PR middle-end/46500
10876         * doc/tm.texi.in: Update Copyright date.
10877         * doc/tm.texi: Regenerate.
10878         * targhooks.c (default_setup_incoming_varargs): Replace
10879         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10880         (default_pretend_outgoing_varargs_named): Likewise.
10881         (hook_pass_by_reference_must_pass_in_stack): Likewise.
10882         (hook_callee_copies_named): Likewise.
10883         (default_function_arg_advance): Likewise.
10884         (default_function_arg): Likewise.
10885         (default_function_incoming_arg): Likewise.
10886         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10887         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10888         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10889         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10890         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10891         * targhooks.h (default_setup_incoming_varargs): Likewise.
10892         (default_pretend_outgoing_varargs_named): Likewise.
10893         (hook_pass_by_reference_must_pass_in_stack): Likewise.
10894         (hook_callee_copies_named): Likewise.
10895         (default_function_arg_advance): Likewise.
10896         (default_function_arg): Likewise.
10897         (default_function_incoming_arg): Likewise.
10898         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10899         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10900         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10901         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10902         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10903         * target.def (pass_by_reference): Likewise.
10904         (setup_incoming_varargs, strict_argument_naming): Likewise.
10905         (pretend_outgoing_varargs_named, callee_copies): Likewise.
10906         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10907         (function_incoming_arg): Likewise.
10908         * target.h: Don't include "tm.h" .
10909         (cumulative_args_t): New typedef.
10910         [GCC_TM_H] (get_cumulative_args): New static inline function.
10911         [GCC_TM_H] (pack_cumulative_args): Likewise.
10912         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10913         argument type with cumulative_args_t.
10914         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10915         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10916         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10917         (frv_arg_partial_bytes, frv_function_arg): Likewise.
10918         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10919         (frv_function_arg_1): Likewise.
10920         * config/s390/s390.c (s390_pass_by_reference): Likewise.
10921         (s390_function_arg_advance, s390_function_arg): Likewise.
10922         * config/m32c/m32c.c (m32c_function_arg): Likewise.
10923         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10924         (m32c_strict_argument_naming): Likewise.
10925         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10926         (spu_function_arg_advance): Likewise.
10927         (spu_setup_incoming_varargs): Likewise.  Make static.
10928         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10929         Remove prototype.
10930         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10931         CUMULATIVE_ARGS* argument type with cumulative_args_t.
10932         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10933         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10934         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10935         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10936         (mep_pass_by_reference, mep_function_arg): Likewise.
10937         (mep_function_arg_advance): Likewise.
10938         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10939         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10940         (m32r_function_arg, m32r_function_arg_advance): Likewise.
10941         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10942         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10943         (ix86_function_arg, ix86_pass_by_reference): Likewise.
10944         (ix86_setup_incoming_varargs): Likewise.
10945         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10946         (sh_strict_argument_naming): Likewise.
10947         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10948         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10949         (sh_function_arg_advance, sh_function_arg): Likewise.
10950         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10951         (pdp11_function_arg_advance): Likewise.
10952         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10953         Likewise.
10954         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10955         * config/avr/avr.c (avr_function_arg): Likewise.
10956         (avr_function_arg_advance): Likewise.
10957         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10958         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10959         (xtensa_function_arg_1): Likewise.
10960         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10961         Likewise.
10962         (xstormy16_function_arg): Likewise.
10963         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10964         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10965         (fr30_function_arg_advance): Likewise.
10966         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10967         (lm32_function_arg, lm32_function_arg_advance): Likewise.
10968         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10969         (moxie_function_arg, moxie_function_arg_advance): Likewise.
10970         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10971         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10972         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10973         (cris_function_arg, cris_function_incoming_arg): Likewise.
10974         (cris_function_arg_advance, cris_function_arg_1): Likewise.
10975         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10976         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10977         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10978         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10979         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10980         (mn10300_arg_partial_bytes): Likewise.
10981         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10982         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10983         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10984         (ia64_function_arg_1): Likewise.
10985         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10986         (m68k_function_arg): Likewise.
10987         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10988         (rs6000_function_arg, setup_incoming_varargs): Likewise.
10989         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10990         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10991         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10992         (picochip_arg_advance): Likewise.
10993         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10994         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10995         (mcore_function_arg_advance): Likewise.
10996         * config/score/score.c (score_pass_by_reference): Likewise.
10997         (score_function_arg_advance): Likewise.
10998         (score_arg_partial_bytes): Likewise.  Make static.
10999         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
11000         * config/arm/arm.c (arm_arg_partial_bytes): Replace
11001         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11002         (arm_function_arg, arm_function_arg_advance): Likewise.
11003         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
11004         * config/pa/pa.c (pa_pass_by_reference): Likewise.
11005         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
11006         (pa_function_arg): Likewise.
11007         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
11008         (mips_function_arg, mips_function_arg_advance): Likewise.
11009         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
11010         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
11011         * config/vax/vax.c (vax_function_arg): Likewise.
11012         (vax_function_arg_advance): Likewise.
11013         * config/h8300/h8300.c (h8300_function_arg): Likewise.
11014         (h8300_function_arg_advance): Likewise.
11015         * config/v850/v850.c (v850_pass_by_reference): Likewise.
11016         (v850_strict_argument_naming, v850_function_arg): Likewise.
11017         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
11018         (v850_setup_incoming_varargs): Likewise.
11019         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
11020         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
11021         (mmix_function_arg, mmix_pass_by_reference): Likewise.
11022         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
11023         with const void *.
11024         * config/bfin/bfin.c (setup_incoming_varargs): Replace
11025         CUMULATIVE_ARGS* argument type with cumulative_args_t.
11026         (bfin_function_arg_advance, bfin_function_arg): Likewise.
11027         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
11028         * calls.c (emit_call_1): Change type of args_so_far to
11029         cumulative_args_t.  Changed all callers.
11030         (initialize_argument_information): Likewise.
11031         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
11032         * dse.c (get_call_args): Likewise.
11033         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11034         * function.c (pass_by_reference, reference_callee_copied): Likewise.
11035         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
11036         New member args_so_far_v.  Changed all users.
11037         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
11038         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11039         * config/mips/mips.c (mips_output_args_xfer): Likewise.
11040         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11041         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11042         * config/microblaze/microblaze.c (microblaze_expand_prologue):
11043         Likewise.
11044         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
11045         m32r_pass_by_reference.
11046
11047 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
11048
11049         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
11050         argument to be a VEC of statements.
11051         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
11052         assert that pattern statements have to have their vector type set.
11053         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
11054         Change the first argument to be a VEC of statements.  Update
11055         documentation.
11056         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
11057         (vect_handle_widen_mult_by_const): New function.
11058         (vect_recog_widen_mult_pattern):  Change the first argument to be a
11059         VEC of statements.  Update documentation.  Check that the constant is
11060         INTEGER_CST.  Support multiplication by a constant that fits an
11061         intermediate type - call vect_handle_widen_mult_by_const.
11062         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
11063         call.  Handle additional pattern statements if necessary.
11064
11065 2011-06-16  Nick Clifton  <nickc@redhat.com>
11066
11067         PR target/49427
11068         * config.gcc: Set cpu_type to v850 for any V850 architecture.
11069         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
11070         md_file, extra_modes, out_file and extra_options are these are all
11071         deduced from cpu_type.
11072
11073 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11074
11075         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
11076         truncation mask to 63.
11077
11078 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
11079
11080         PR target/49313
11081         PR target/29524
11082         * longlong.h: Add AVR support:
11083         (count_leading_zeros): New macro.
11084         (count_trailing_zeros): New macro.
11085         (COUNT_LEADING_ZEROS_0): New macro.
11086         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
11087         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
11088         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
11089         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
11090         (LIB2FUNCS_EXCLUDE): Add _clz.
11091         * config/avr/libgcc.S (XCALL): Move up in file.
11092         (XJMP): New C Macro.
11093         (DEFUN): New asm macro.
11094         (ENDF): New asm macro.
11095         (__ffssi2): New function.
11096         (__ffshi2): New function.
11097         (__loop_ffsqi2): New function.
11098         (__ctzsi2): New function.
11099         (__ctzhi2): New function.
11100         (__clzdi2): New function.
11101         (__clzsi2): New function.
11102         (__clzhi2): New function.
11103         (__paritydi2): New function.
11104         (__paritysi2): New function.
11105         (__parityhi2): New function.
11106         (__parityqi2): New function.
11107         (__popcounthi2): New function.
11108         (__popcountsi2): New function.
11109         (__popcountdi2): New function.
11110         (__popcountqi2): New function.
11111         (__bswapsi2): New function.
11112         (__bswapdi2): New function.
11113         (__ashldi3): New function.
11114         (__ashrdi3): New function.
11115         (__lshrdi3): New function.
11116         Fix suspicous lines.
11117
11118 2011-06-16  Richard Guenther  <rguenther@suse.de>
11119
11120         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
11121         the same as x != 0.
11122         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
11123         to (bool) X & 1.
11124         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
11125         equality compares against zero for the lower bit.
11126
11127 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
11128
11129         PR tree-optimization/49419
11130         * tree-vrp.c (execute_vrp): Call init_range_assertions
11131         before estimate_numbers_of_iterations, call
11132         free_number_of_iterations_estimates before calling
11133         remove_range_assertions.
11134
11135 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11136
11137         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
11138         (struct partial_schedule): Add rows_length field.
11139         (verify_partial_schedule): Check rows_length.
11140         (ps_insert_empty_row): Handle rows_length.
11141         (create_partial_schedule): Likewise.
11142         (free_partial_schedule): Likewise.
11143         (reset_partial_schedule): Likewise.
11144         (create_ps_insn): Remove rest_count argument.
11145         (remove_node_from_ps): Update rows_length.
11146         (add_node_to_ps): Update rows_length and call create_ps_insn
11147         without passing row_rest_count.
11148         (rotate_partial_schedule): Update rows_length.
11149
11150 2011-06-16  Revital Eres  <revital.eres@linaro.org>
11151
11152         * ddg.c (add_intra_loop_mem_dep): New function.
11153         (build_intra_loop_deps): Call it.
11154
11155 2011-06-13  Jeff Law  <law@redhat.com>
11156
11157         * df-problems.c (df_lr_local_compute): Manually CSE
11158         PIC_OFFSET_TABLE_REGNUM.
11159         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
11160         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
11161
11162 2011-06-13  Jan Hubicka  <jh@suse.cz>
11163
11164         * cgraphunit.c (handle_alias_pairs): New function.
11165         (cgraph_finalize_compilation_unit): Use it.
11166         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
11167         as externally visible.
11168
11169 2011-06-15  Richard Guenther  <rguenther@suse.de>
11170
11171         * expr.c (expand_expr_real_2): Reduce all integral types to
11172         bitfield precision.
11173         (expand_expr_real_1): Likewise.
11174
11175 2011-06-15  Martin Jambor  <mjambor@suse.cz>
11176
11177         PR tree-optimization/48613
11178         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
11179         ipa_node_params_vector is NULL.
11180
11181 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
11182
11183         PR debug/49382
11184         * dwarf2out.c (dw_loc_list_node): Add force field.
11185         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
11186         location in the list, even if it is modified before first real insn.
11187         (output_loc_list): Emit empty ranges with force flag set.
11188         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
11189
11190 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
11191
11192         PR target/49349
11193         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
11194         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
11195         above a fence.  Update comments.
11196         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
11197         placed just above it.  Do not allow NULL place_to_insert.
11198
11199 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
11200
11201         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
11202         (slpeel_tree_peel_loop_to_edge): Don't call
11203         remove_dead_stmts_from_loop.
11204         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
11205         remove irrelevant pattern statements.  For irrelevant statements
11206         check if it is the last statement of a detected pattern, use
11207         corresponding pattern statement instead.
11208         (destroy_loop_vec_info): No need to remove pattern statements,
11209         only free stmt_vec_info.
11210         (vect_transform_loop): For irrelevant statements check if it is
11211         the last statement of a detected pattern, use corresponding
11212         pattern statement instead.
11213         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
11214         pattern statements.  Set basic block for the new statement.
11215         (vect_pattern_recog): Update documentation.
11216         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
11217         operands of pattern statements.
11218         (vectorizable_call): Fix printing.  In case of a pattern statement
11219         use the lhs of the original statement when creating a dummy
11220         statement to replace the original call.
11221         (vect_analyze_stmt): For irrelevant statements check if it is
11222         the last statement of a detected pattern, use corresponding
11223         pattern statement instead.
11224         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
11225         statements use gsi of the original statement.
11226
11227 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11228
11229         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
11230         common/common-target-def.h.
11231         * target.def (default_target_flags, handle_option,
11232         supports_split_stack, optimization_table, init_struct,
11233         except_unwind_info, unwind_tables_default, have_named_sections):
11234         Move to common/common-target.def.
11235         * target.h (enum opt_levels, struct default_options): Move to
11236         common/common-target.h.
11237         * targhooks.c (default_except_unwind_info,
11238         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11239         default_target_handle_option, empty_optimization_table): Move to
11240         common/common-targhooks.c.
11241         * targhooks.h (default_except_unwind_info,
11242         dwarf2_except_unwind_info, sjlj_except_unwind_info,
11243         default_target_handle_option, empty_optimization_table): Move to
11244         common/common-targhooks.h.
11245         * common/common-target-def.h: Include common/common-targhooks.h.
11246         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
11247         defined.
11248         * common/common-target.def (handle_option, option_init_struct,
11249         option_optimization_table, default_target_flags,
11250         except_unwind_info, supports_split_stack, unwind_tables_default,
11251         have_named_sections): Move from target.def.
11252         (HOOK_PREFIX): Undefine at end of file.
11253         * common/common-target.h: Include input.h.
11254         (enum opt_levels, struct default_options): Move from target.h.
11255         * common/common-targhooks.c, common/common-targhooks.h: New.
11256         * config.gcc (target_has_targetm_common): Default to yes.
11257         (moxie*): Set target_has_targetm_common=no.
11258         (hppa*-*-*): Don't set target_has_targetm_common=yes.
11259         * doc/tm.texi: Regenerate.
11260         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
11261         (C_TARGET_DEF_H): Add common/common-targhooks.h.
11262         (GCC_OBJS): Remove vec.o.
11263         (OBJS): Remove hooks.o and vec.o.
11264         (OBJS-libcommon-target): Add vec.o, hooks.o and
11265         common/common-targhooks.o.
11266         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
11267         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
11268         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
11269         cfglayout.o, $(out_object_file), $(common_out_object_file)):
11270         Update dependencies.
11271         (common/common-targhooks.o): New.
11272         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
11273         * common/config/pa/pa-common.c: Include more headers.  Take
11274         copyright dates from pa.c.
11275         (pa_option_optimization_table, pa_handle_option,
11276         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
11277         TARGET_HANDLE_OPTION): Move from pa.c.
11278         * common/config/alpha/alpha-common.c,
11279         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
11280         common/config/bfin/bfin-common.c,
11281         common/config/cris/cris-common.c,
11282         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
11283         common/config/h8300/h8300-common.c,
11284         common/config/i386/i386-common.c,
11285         common/config/ia64/ia64-common.c,
11286         common/config/iq2000/iq2000-common.c,
11287         common/config/lm32/lm32-common.c,
11288         common/config/m32c/m32c-common.c,
11289         common/config/m32r/m32r-common.c,
11290         common/config/m68k/m68k-common.c,
11291         common/config/mcore/mcore-common.c,
11292         common/config/mep/mep-common.c,
11293         common/config/microblaze/microblaze-common.c,
11294         common/config/mips/mips-common.c,
11295         common/config/mmix/mmix-common.c,
11296         common/config/mn10300/mn10300-common.c,
11297         common/config/pdp11/pdp11-common.c,
11298         common/config/picochip/picochip-common.c,
11299         common/config/rs6000/rs6000-common.c,
11300         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
11301         common/config/score/score-common.c, common/config/sh/sh-common.c,
11302         common/config/sparc/sparc-common.c,
11303         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
11304         common/config/vax/vax-common.c,
11305         common/config/xstormy16/xstormy16-common.c,
11306         common/config/xtensa/xtensa-common.c: New.
11307         * config/alpha/alpha.c: Include common/common-target.h.
11308         (alpha_option_optimization_table, alpha_handle_option,
11309         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11310         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
11311         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
11312         * config/arm/arm.c (arm_option_optimization_table,
11313         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11314         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
11315         arm-common.c.
11316         * config/avr/avr.c (avr_option_optimization_table,
11317         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11318         to avr-common.c.
11319         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
11320         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
11321         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
11322         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
11323         * config/cris/cris.c (cris_option_optimization_table,
11324         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11325         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
11326         cris-common.c.
11327         * config/fr30/fr30.c (fr30_option_optimization_table,
11328         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
11329         to fr30-common.c.
11330         * config/frv/frv.c (frv_option_optimization_table,
11331         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
11332         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
11333         * config/h8300/h8300.c (h8300_option_optimization_table,
11334         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11335         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
11336         * config/i386/i386-protos.h (ix86_handle_option): Declare.
11337         * config/i386/i386.c: Include common/common-target.h.
11338         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
11339         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
11340         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
11341         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
11342         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
11343         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
11344         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
11345         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
11346         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
11347         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
11348         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
11349         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
11350         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
11351         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
11352         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
11353         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
11354         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
11355         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
11356         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
11357         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
11358         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
11359         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
11360         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
11361         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
11362         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
11363         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
11364         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
11365         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
11366         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
11367         ix86_option_optimization_table, ix86_option_init_struct,
11368         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
11369         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11370         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
11371         i386-common.c.
11372         * config/i386/t-i386 (i386.o): Update dependencies.
11373         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
11374         * config/ia64/ia64.c (ia64_option_optimization_table,
11375         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11376         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11377         ia64_handle_option): Move to ia64-common.c.
11378         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
11379         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
11380         * config/lm32/lm32.c (lm32_option_optimization_table,
11381         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
11382         to lm32-common.c.
11383         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
11384         m32c-common.c.
11385         * config/m32r/m32r.c (m32r_option_optimization_table,
11386         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11387         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
11388         m32r_handle_option): Move to m32r-common.c.
11389         (m32r_memory_move_cost): Remove comment referring to
11390         TARGET_HANDLE_OPTION.
11391         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
11392         Move to m68k-common.c.
11393         * config/mcore/mcore.c (mcore_option_optimization_table,
11394         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11395         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
11396         * config/mep/mep.c (mep_option_optimization_table,
11397         mep_handle_option, TARGET_HANDLE_OPTION,
11398         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
11399         Move to mep-common.c.
11400         * config/microblaze/microblaze.c
11401         (microblaze_option_optimization_table,
11402         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
11403         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
11404         * config/mips/mips.c (mips_handle_option,
11405         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11406         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
11407         mips-common.c.
11408         * config/mmix/mmix.c (mmix_option_optimization_table,
11409         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11410         Move to mmix-common.c.
11411         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
11412         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
11413         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11414         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
11415         * config/pa/pa.c: Include common/common-target.h.
11416         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
11417         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11418         pa_handle_option): Move to pa-common.c.
11419         (pa_option_override): Use targetm_common.except_unwind_info.
11420         (pa_asm_output_mi_thunk, pa_function_section): Use
11421         targetm_common.have_named_sections.
11422         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
11423         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11424         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11425         pdp11_handle_option, pdp11_option_init_struct): Move to
11426         pdp11-common.c.
11427         * config/picochip/picochip.c (picochip_option_optimization_table,
11428         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
11429         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
11430         * config/rs6000/rs6000.c: Include common/common-target.h.
11431         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
11432         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
11433         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
11434         rs6000_handle_option): Move to rs6000-common.c.
11435         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11436         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
11437         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11438         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
11439         * config/s390/s390.c (processor_flags_table,
11440         s390_option_optimization_table, s390_option_init_struct,
11441         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
11442         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
11443         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
11444         * config/s390/s390.h (processor_flags_table): Declare.
11445         * config/score/score.c (score_option_optimization_table,
11446         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11447         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
11448         score_handle_option): Move to score-common.c.
11449         * config/sh/sh.c (sh_option_optimization_table,
11450         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
11451         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
11452         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
11453         * config/sparc/sparc.c: Include common/common-target.h.
11454         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11455         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
11456         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
11457         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
11458         spu_option_init_struct): Move to spu-common.c.
11459         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
11460         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
11461         * config/v850/v850.c (small_memory_physical_max,
11462         v850_handle_memory_optionn v850_handle_option,
11463         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
11464         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
11465         v850-common.c.
11466         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
11467         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
11468         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
11469         Move to xtensa-common.c.
11470         * cfglayout.c: Include common/common-target.h.
11471         (fixup_reorder_chain): Use targetm_common.have_named_sections.
11472         * cfgrtl.c: Include common/common-target.h.
11473         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
11474         targetm_common.have_named_sections.
11475         * dbxout.c: Include common/common-target.h.
11476         (dbxout_function_end): Use targetm_common.have_named_sections.
11477         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
11478         targetm_common.except_unwind_info.
11479         * dwarf2out.c: Include common/common-target.h.
11480         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
11481         dwarf2out_begin_prologue, dwarf2out_frame_init,
11482         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
11483         targetm_common.except_unwind_info.
11484         * except.c: Include common/common-target.h.
11485         (init_eh, finish_eh_generation,
11486         output_one_function_exception_table): Use
11487         targetm_common.except_unwind_info.
11488         (switch_to_exception_section): Use targetm_common.have_named_sections.
11489         * explow.c: Include common/common-target.h.
11490         * expr.c: Include common/common-target.h.
11491         (build_personality_function): Use targetm_common.except_unwind_info.
11492         * function.c: Include common/common-target.h.
11493         (expand_function_end): Use targetm_common.except_unwind_info.
11494         * haifa-sched.c: Include common/common-target.h.
11495         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
11496         * lto-opts.c: Include common/common-target.h instead of target.h.
11497         (lto_reissue_options): Use targetm_common.handle_option.
11498         * opts.c: Include common/common-target.h.
11499         (target_handle_option): Use targetm_common.handle_option.
11500         (init_options_struct): Update comment referring to
11501         targetm.target_option.optimization.  Use
11502         targetm_common.default_target_flags,
11503         targetm_common.unwind_tables_default and
11504         targetm_common.option_init_struct.
11505         (default_options_optimization): Use
11506         targetm_common.option_optimization_table.
11507         (finish_options): Use targetm_common.except_unwind_info,
11508         targetm_common.unwind_tables_default,
11509         targetm_common.have_named_sections and
11510         targetm_common.supports_split_stack.
11511         * toplev.c: Include common/common-target.h.
11512         (process_options): Use targetm_common.have_named_sections.
11513         * tree-tailcall.c: Include common/common-target.h.
11514         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
11515         * tree.c: Include common/common-target.h.
11516         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
11517         * varasm.c: Include common/common-target.h.
11518         (resolve_unique_section, hot_function_section,
11519         default_function_section): Use targetm_common.have_named_sections.
11520
11521 2011-06-14  Easwaran Raman  <eraman@google.com>
11522
11523         PR rtl-optimization/44194
11524         * dse.c: Include tree-flow.h
11525         (insn_info): Add new field non_frame_wild_read.
11526         (group_info): Add new fields escaped_n and escaped_p.
11527         (kill_on_calls): New variable.
11528         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
11529         (dse_step0): Initialize kill_on_calls.
11530         (can_escape): New function.
11531         (set_usage_bits): Add additional parameter; record information
11532         about escaped locations.
11533         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
11534         (dse_step2_nospill): Set kill_on_calls based on
11535         group->escaped_n and group->escaped_n.
11536         (add_wild_read): Refactor into...
11537         (reset_active_stores): ... New function, and
11538         (free_read_records): ... New function.
11539         (add_non_frame_wild_read): New function.
11540         (scan_insn): Call add_non_frame_wild_read on non-const calls.
11541         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
11542         (dse_step5_nospill): Call scan_reads_nospill for instructions
11543         marked as non_frame_wild_read.
11544         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
11545
11546 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
11547
11548         * common/common-target-def.h, common/common-target.def,
11549         common/common-target.h, common/config/default-common.c,
11550         common/config/pa/pa-common.c: New files.
11551         * Makefile.in (common_out_file, common_out_object_file,
11552         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
11553         (OBJS-libcommon-target): Include $(common_out_object_file).
11554         (prefix.o): Update dependencies.
11555         ($(common_out_object_file), common/common-target-hooks-def.h,
11556         s-common-target-hooks-def-h): New.
11557         (s-tm-texi): Also check timestamp on common-target.def.
11558         (build/genhooks.o): Update dependencies.
11559         * config.gcc (common_out_file, target_has_targetm_common): Define.
11560         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
11561         TARGET_ALWAYS_STRIP_DOTDOT.
11562         * configure.ac (common_out_object_file): Define.
11563         (common_out_file, common_out_object_file): Substitute.
11564         (common): Create directory.
11565         * configure: Regenerate.
11566         * doc/tm.texi.in (targetm_common): Document.
11567         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
11568         * doc/tm.texi: Regenerate.
11569         * genhooks.c (hook_array): Also include common/common-target.def.
11570         * prefix.c (tm.h): Don't include.
11571         (common/common-target.h): Include.
11572         (ALWAYS_STRIP_DOTDOT): Don't define.
11573         (update_path): Use targetm_common.always_strip_dotdot instead of
11574         ALWAYS_STRIP_DOTDOT.
11575         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
11576
11577 2011-06-14  David Li  <davidxl@google.com>
11578
11579         * passes.c (execute_function_todo): Remove TODO_dump_func.
11580         (execute_one_pass): Remove TODO_dump_func.
11581         (execute_function_dump): New function.
11582         * tree-vrp.c: Remove TODO_dump_func.
11583         * regrename.c: Remove TODO_dump_func.
11584         * fwprop.c: Remove TODO_dump_func.
11585         * tree-into-ssa.c: Remove TODO_dump_func.
11586         * tree-complex.c: Remove TODO_dump_func.
11587         * tracer.c: Remove TODO_dump_func.
11588         * tree-loop-distribution.c: Remove TODO_dump_func.
11589         * postreload-gcse.c: Remove TODO_dump_func.
11590         * postreload.c: Remove TODO_dump_func.
11591         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
11592         * tree-tailcall.c: Remove TODO_dump_func.
11593         * ipa-cp.c: Remove TODO_dump_func.
11594         * final.c: Remove TODO_dump_func.
11595         * tree-emutls.c: Remove TODO_dump_func.
11596         * omp-low.c: Remove TODO_dump_func.
11597         * tree-ssa-dse.c: Remove TODO_dump_func.
11598         * tree-ssa-uncprop.c: Remove TODO_dump_func.
11599         * auto-inc-dec.c: Remove TODO_dump_func.
11600         * reorg.c: Remove TODO_dump_func.
11601         * tree-ssa-copyrename.c: Remove TODO_dump_func.
11602         * tree-ssa-ccp.c: Remove TODO_dump_func.
11603         * compare-elim.c: Remove TODO_dump_func.
11604         * mode-switching.c: Remove TODO_dump_func.
11605         * modulo-sched.c: Remove TODO_dump_func.
11606         * tree-call-cdce.c: Remove TODO_dump_func.
11607         * cse.c: Remove TODO_dump_func.
11608         * web.c: Remove TODO_dump_func.
11609         * tree-stdarg.c: Remove TODO_dump_func.
11610         * lto-streamer-out.c: Remove TODO_dump_func.
11611         * tree-ssa-math-opts.c: Remove TODO_dump_func.
11612         * tree-ssa-dom.c: Remove TODO_dump_func.
11613         * tree-nrv.c: Remove TODO_dump_func.
11614         * loop-init.c: Remove TODO_dump_func.
11615         * gimple-low.c: Remove TODO_dump_func.
11616         * ipa-inline.c: Remove TODO_dump_func.
11617         * tree-ssa-sink.c: Remove TODO_dump_func.
11618         * jump.c: Remove TODO_dump_func.
11619         * ifcvt.c: Remove TODO_dump_func.
11620         * tree-ssa-loop.c: Remove TODO_dump_func.
11621         * recog.c: Remove TODO_dump_func.
11622         * dse.c: Remove TODO_dump_func.
11623         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
11624         * matrix-reorg.c: Remove TODO_dump_func.
11625         * tree-eh.c: Remove TODO_dump_func.
11626         * regmove.c: Remove TODO_dump_func.
11627         * function.c: Remove TODO_dump_func.
11628         * tree-vectorizer.c: Remove TODO_dump_func.
11629         * ipa-split.c: Remove TODO_dump_func.
11630         * gcse.c: Remove TODO_dump_func.
11631         * tree-if-conv.c: Remove TODO_dump_func.
11632         * init-regs.c: Remove TODO_dump_func.
11633         * tree-ssa-phiopt.c: Remove TODO_dump_func.
11634         * implicit-zee.c: Remove TODO_dump_func.
11635         * lower-subreg.c: Remove TODO_dump_func.
11636         * bt-load.c: Remove TODO_dump_func.
11637         * tree-dfa.c: Remove TODO_dump_func.
11638         * except.c: Remove TODO_dump_func.
11639         * emit-rtl.c: Remove TODO_dump_func.
11640         * store-motion.c: Remove TODO_dump_func.
11641         * cfgexpand.c: Remove TODO_dump_func.
11642         * tree-cfgcleanup.c: Remove TODO_dump_func.
11643         * cfgcleanup.c: Remove TODO_dump_func.
11644         * tree-ssa-pre.c: Remove TODO_dump_func.
11645         * tree-sra.c: Remove TODO_dump_func.
11646         * tree-mudflap.c: Remove TODO_dump_func.
11647         * tree-ssa-copy.c: Remove TODO_dump_func.
11648         * cfglayout.c: Remove TODO_dump_func.
11649         * tree-ssa-forwprop.c: Remove TODO_dump_func.
11650         * tree-ssa-dce.c: Remove TODO_dump_func.
11651         * ira.c: Remove TODO_dump_func.
11652         * tree-ssa.c: Remove TODO_dump_func.
11653         * integrate.c: Remove TODO_dump_func.
11654         * tree-optimize.c: Remove TODO_dump_func.
11655         * tree-ssa-phiprop.c: Remove TODO_dump_func.
11656         * tree-object-size.c: Remove TODO_dump_func.
11657         * combine.c: Remove TODO_dump_func.
11658         * bb-reorder.c: Remove TODO_dump_func.
11659         * cprop.c: Remove TODO_dump_func.
11660         * var-tracking.c: Remove TODO_dump_func.
11661         * tree-profile.c: Remove TODO_dump_func.
11662         * tree-vect-generic.c: Remove TODO_dump_func.
11663         * reg-stack.c: Remove TODO_dump_func.
11664         * sched-rgn.c: Remove TODO_dump_func.
11665         * tree-ssa-structalias.c: Remove TODO_dump_func.
11666         * tree-switch-conversion.c: Remove TODO_dump_func.
11667         * tree-cfg.c: Remove TODO_dump_func.
11668         * tree-ssa-reassoc.c: Remove TODO_dump_func.
11669         * combine-stack-adj.c: Remove TODO_dump_func.
11670         * dce.c: Remove TODO_dump_func.
11671         * tree-ssanames.c: Remove TODO_dump_func.
11672         * regcprop.c: Remove TODO_dump_func.
11673
11674 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11675
11676         PR middle-end/47364
11677         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
11678         and properly handle result not in Pmode.
11679
11680 2011-06-14  Robert Millan  <rmh@gnu.org>
11681
11682         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
11683         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
11684         `config/linux.h'.
11685
11686         * config/i386/kfreebsd-gnu64.h: New file.
11687         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
11688         with `i386/kfreebsd-gnu64.h'.
11689
11690         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
11691         (GNU_USER_LINK_EMULATION64): New macros.
11692         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
11693         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
11694         of hardcoding `elf_i386' and `elf_x86_64'.
11695
11696 2011-06-14  Nick Clifton  <nickc@redhat.com>
11697
11698         PR target/49403
11699         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
11700
11701         PR target/49402
11702         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
11703
11704 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
11705
11706         PR fortran/49103
11707         * tree.h (DECL_NONSHAREABLE): Define.
11708         (struct tree_decl_common): Change decl_common_unused to
11709         decl_nonshareable_flag.
11710         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
11711         Ignore vars with DECL_NONSHAREABLE bit set.
11712         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
11713         on stores to automatic aggregate vars.
11714
11715         PR rtl-optimization/49390
11716         Revert:
11717         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
11718
11719         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
11720         MEM_ALIAS_SET.
11721
11722 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
11723             Tom de Vries  <tom@codesourcery.com>
11724
11725         PR target/45098
11726         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
11727         Document changed semantics.
11728         (max_stmt_executions, max_stmt_executions_int): Declare.
11729         * tree-data-ref.c (estimated_loop_iterations)
11730         (estimated_loop_iterations_int): Move functions...
11731         * tree-ssa-loop-niter.c (estimated_loop_iterations)
11732         (estimated_loop_iterations_int): here.
11733         (record_estimate): Change nb_iterations_upper_bound and
11734         nb_iterations_estimate semantics.
11735         (max_stmt_executions, max_stmt_executions_int): New function.
11736         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
11737         (max_stmt_executions_tree): this.
11738         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
11739         estimated_loop_iterations_tree.
11740         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
11741         max_stmt_executions_int instead of estimated_loop_iterations_int.
11742         * predict.c (predict_loops): Idem.
11743         * tree-parloops.c (parallelize_loops): Idem.
11744         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
11745         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
11746         (init_omega_for_ddr_1): Idem.
11747         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
11748         (loop_prefetch_arrays): Idem
11749         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
11750         max_stmt_executions instead of estimated_loop_iterations.
11751         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
11752         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
11753         instead of nb_iterations_upper_bound.
11754
11755 2011-06-13  Jan Hubicka  <jh@suse.cz>
11756
11757         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
11758
11759 2011-06-14  Richard Henderson  <rth@redhat.com>
11760
11761         PR debug/48459
11762         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
11763         (based_loc_descr): Assert it's true.
11764         (compute_frame_pointer_to_fb_displacement): Set it, rather than
11765         aborting immediately.
11766
11767 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
11768             Mingfeng Wu  <mingfeng@faraday-tech.com>
11769
11770         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
11771
11772 2011-06-13  Jan Hubicka  <jh@suse.cz>
11773
11774         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
11775
11776 2011-06-13  Jan Hubicka  <jh@suse.cz>
11777
11778         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
11779         similarly to DECL_COMDAT.
11780         * cgraphunit.c (cgraph_analyze_function): Likewise.
11781         * ipa.c (function_and_variable_visibility): Likewise.
11782
11783 2011-06-13  Jan Hubicka  <jh@suse.cz>
11784
11785         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
11786         BINFO_VIRTUALS when streaming for ltrans unit.
11787
11788 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
11789
11790         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
11791         (movdi_internal64): Same.
11792
11793 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
11794
11795         PR target/44618
11796         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
11797         a set of similar patterns, where the MATCH_OPERAND for the function
11798         argument is replaced with individual references to hardware registers.
11799         (save_fpregs_<mode>): Ditto
11800         (restore_gpregs_<mode>): Ditto
11801         (return_and_restore_gpregs_<mode>): Ditto
11802         (return_and_restore_fpregs_<mode>): Ditto
11803         (return_and_restore_fpregs_aix_<mode>): Ditto
11804
11805 2011-06-13  Jan Hubicka  <jh@suse.cz>
11806
11807         * ipa-utils.c (postorder_stack): New structure.
11808         (ipa_reverse_postorder): Handle aliases.
11809
11810 2011-06-13  Jan Hubicka  <jh@suse.cz>
11811
11812         * ipa-inline.c (reset_edge_caches): Walk aliases.
11813         (update_caller_keys): Do not test inlinability of aliases.
11814         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
11815         (do_estimate_growth): Fix typo.
11816
11817 2011-06-13  Jan Hubicka  <jh@suse.cz>
11818
11819         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
11820         (can_remove_node_now_p): ... here; handle same comdat groups.
11821         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
11822         (inline_call): Update use of can_remove_node_now_p.
11823
11824 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11825
11826         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
11827         condition to disallow non-identical memory locations.
11828         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
11829         preference to bit manipulation instructions.
11830
11831 2011-06-13  Jan Hubicka  <jh@suse.cz>
11832
11833         * cgraph.c (cgraph_for_node_thunks_and_aliases,
11834         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
11835         (nonremovable_p): New function.
11836         (cgraph_can_remove_if_no_direct_calls_p): New function.
11837         (used_from_object_file_p): New functoin.
11838         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
11839         references from aliases.
11840         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
11841         * ipa-inline.c (check_caller_edge): New function.
11842         (want_inline_function_called_once_p): Use it; accept aliases called
11843         once, too.
11844         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
11845
11846 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11847
11848         PR target/48454
11849         * config/arm/neon.md (vec_pack_trunc): Set the lengths
11850         correctly for the case with Quad vectors.
11851
11852 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
11853            Ira Rosen  <ira.rosen@linaro.org>
11854
11855         PR tree-optimization/49352
11856         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
11857         all, make sure loop_use_stmt after the loop is a def stmt of a used
11858         SSA_NAME that is the only one defined inside of the loop.  Don't
11859         check for COND_EXPR and GIMPLE_BINARY_RHS.
11860         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
11861         check_reduction is true.
11862
11863 2011-06-11  Jan Hubicka  <jh@suse.cz>
11864
11865         PR middle-end/49373
11866         * ipa.c (cgraph_externally_visible_p): Check resolution info.
11867
11868 2011-06-11  Jan Hubicka  <jh@suse.cz>
11869
11870         PR middle-end/48836
11871         * ipa-inline-transform.c: Include tree-pass.h
11872         (inline_transform): Set TODO_update_ssa_only_virtuals.
11873         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
11874
11875 2011-06-11  Jan Hubicka  <jh@suse.cz>
11876
11877         PR middle-end/49378
11878         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
11879         aliases and thunks.
11880
11881 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
11882
11883         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
11884         Take number of iterations to peel into account for equally frequent
11885         misalignment values.
11886
11887 2011-06-11  Jan Hubicka  <jh@suse.cz>
11888
11889         * lto-streamer-out.c (produce_symtab): Stream out the newly
11890         represented aliases.
11891
11892 2011-06-11  Jan Hubicka  <jh@suse.cz>
11893
11894         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
11895         varying args.
11896         (ipa_update_after_lto_read): Likewise.
11897         (ipa_write_node_info): Do not sream call_with_var_arguments.
11898         (ipa_read_node_info): Likewise.
11899
11900 2011-06-11  Jan Hubicka  <jh@suse.cz>
11901
11902         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
11903
11904 2011-06-11  Jan Hubicka  <jh@suse.cz>
11905
11906         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11907         (lto_symtab_resolve_can_prevail_p): Likewise.
11908         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11909         * cgraph.c (same_body_aliases_done): New global var.
11910         (cgraph_same_body_alias_1): Rename to ...
11911         (cgraph_create_function_alias): ... this one; reorg to new
11912         representation.
11913         (cgraph_same_body_alias): Use cgraph_create_function_alias;
11914         record references when asked to.
11915         (cgraph_add_thunk): Fix formating.
11916         (cgraph_get_node): Kill same body alias code.
11917         (cgraph_node_for_asm): Likewise.
11918         (cgraph_remove_same_body_alias): Remove.
11919         (cgraph_remove_node): Kill same body alias code.
11920         (cgraph_mark_address_taken_node): Mark also the aliased function
11921         as having address taken.
11922         (dump_cgraph_node): Dump same body aliases.
11923         (cgraph_for_node_thunks_and_aliases): Update for new alias
11924         representation.
11925         (cgraph_for_node_and_aliases): Likewise.
11926         * cgraph.h (same_body): Kll pointer.
11927         (same_body_alias): Update comment.
11928         (same_body_aliases_done): Declare.
11929         (cgraph_remove_same_body_alias): Remove declaration.
11930         (cgraph_create_function_alias): Declare.
11931         (cgraph_process_same_body_aliases): Declare.
11932         (cgraph_function_with_gimple_body_p): Check for alias.
11933         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11934         (cgraph_alias_aliased_node): New function.
11935         (cgraph_function_node): Update for new aliases.
11936         (cgraph_function_or_thunk_node): Likewise.
11937         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11938         (inline_call): Remove dead aliases.
11939         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11940         name hack for same body aliases.
11941         (clone_of_p): Look through aliases.
11942         (verify_cgraph_node): Verify aliases.
11943         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11944         (cgraph_process_same_body_aliases): New function.
11945         (process_function_and_variable_attributes): Disable weakref warning on
11946         alias.
11947         (cgraph_analyze_functions): Handle aliases.
11948         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11949         (assemble_thunks): Rename to ...
11950         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11951         (cgraph_expand_function): Remove alias output code.
11952         (cgraph_output_in_order): Skip aliases.
11953         (cgraph_preserve_function_body_p): Aliases don't need preserving.
11954         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11955         (ipa_record_reference): Do not assert on alias references.
11956         (ipa_ref_has_aliases_p): New function.
11957         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11958         (ipa_ref_has_aliases_p): Declare.
11959         * lto-cgraph.c (lto_output_node): Handle aliases.
11960         (input_node): Likewise.
11961         * lto-streamer-out.c (lto_output): Skip aliases.
11962         (produce_symtab): Kill same_body_alias code.
11963         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11964         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11965         * ipa-inline.c (update_caller_keys): Walk aliases.
11966         (inline_small_functions): Fix thinko in previous patch.
11967         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11968         (function_and_variable_visibility): Do not walk same body aliases.
11969         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11970         (ipa_pta_execute): Use it.
11971
11972 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11973
11974         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11975         (*vec_dupv2df): Rename from vec_dupv2df.
11976         (vec_dupv2df): New expander.
11977
11978 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11979
11980         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11981
11982 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
11983
11984         * config/i386/i386.md: Use default value in "isa" attribute.
11985         * config/i386/sse.md: Ditto.
11986         * config/i386/mmx.md: Ditto.
11987
11988 2011-06-10  Wei Guozhi  <carrot@google.com>
11989
11990         PR target/45335
11991         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11992         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11993         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11994         related peephole2.
11995         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11996         related peephole2.
11997         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11998         (arm_legitimate_ldrd_p): New prototype.
11999         (arm_output_ldrd): New prototype.
12000         * config/arm/arm.c (arm_check_ldrd_operands): New function.
12001         (arm_legitimate_ldrd_p): New function.
12002         (arm_output_ldrd): New function.
12003
12004 2011-06-10  David Li  <davidxl@google.com>
12005
12006         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12007         * passes.c (passr_eq): New function.
12008         (create_pass_tab): New function.
12009         (pass_traverse): New function.
12010         (dump_one_pass): New function.
12011         (dump_pass_list): New function.
12012         (dump_passes): New function.
12013
12014 2011-06-10  Jan Hubicka  <jh@suse.cz>
12015
12016         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
12017         setting the nothrow flag.
12018         * ipa-reference.c (propagate): Skip aliases.
12019         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
12020         (propagate_nothrow): Skip aliases; do not update cgraph.
12021         (local_pure_const): Do not update cgraph.
12022         * tree-profile.c (tree_profiling): Do fixup_cfg.
12023
12024 2011-06-10  Jan Hubicka  <jh@suse.cz>
12025
12026         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
12027         (cgraph_local_node_p): ... here; handle aliases.
12028         (has_addr_references_p): Break out from ...;
12029         (cgraph_remove_unreachable_nodes) ... here.
12030
12031 2011-06-10  Jan Hubicka  <jh@suse.cz>
12032
12033         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
12034         * common.opt (flag_inline_functions_called_once): Do not
12035         initialize to 1.
12036
12037 2011-06-10  Jan Hubicka  <jh@suse.cz>
12038
12039         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
12040         (ipcp_initialize_node_lattices): Do not deal with aliases;
12041         Do not try to propagate through thunks.
12042         (ipcp_change_tops_to_bottom): Do not deal with aliases.
12043
12044 2011-06-10  Jan Hubicka  <jh@suse.cz>
12045
12046         * ipa-prop.c (ipa_write_node_info): Stream jump functions
12047         for indirect calls.
12048         (ipa_read_node_info): Likewise.
12049
12050 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12051
12052         PR lto/49302
12053         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
12054         (build_and_insert_call): Likewise.
12055         (build_and_insert_ref): New.
12056         (gimple_expand_builtin_pow): Minor cleanup.
12057         (gimple_expand_builtin_cabs): New.
12058         (execute_cse_sincos): Add case for BUILT_IN_CABS.
12059
12060 2011-06-10  Jan Hubicka  <jh@suse.cz>
12061
12062         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
12063         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
12064         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
12065         (ipcp_propagate_stage): Skip aliases when propagating.
12066         (ipcp_need_redirect_p): Skip aliases.
12067         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
12068         collect_callers_of_node.
12069         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
12070         for aliases.
12071         (ipa_compute_jump_functions): Look through aliases.
12072
12073 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12074
12075         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
12076
12077 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12078
12079         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
12080         Adjust comments.
12081         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
12082
12083 2011-06-10  Jan Hubicka  <jh@suse.cz>
12084
12085         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
12086         Update call of gimple_get_virt_method_for_binfo.
12087         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
12088         refuse_thunks parameter.
12089         (gimple_fold_call): Update.
12090         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
12091
12092 2011-06-10  Jan Hubicka  <jh@suse.cz>
12093
12094         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
12095         (not_all_callers_have_enough_arguments_p): ... this one; turn into
12096         worker for cgraph_for_node_and_aliases.
12097         (convert_callers_for_node): Break out from ...
12098         (convert_callers): ... here.
12099         (modify_function): Use collect_callers_of_node.
12100         (ipa_early_sra): Use cgraph_for_node_and_aliases.
12101
12102 2011-06-10  Richard Guenther  <rguenther@suse.de>
12103
12104         PR tree-optimization/49361
12105         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
12106         when not already in gimple form.
12107
12108 2011-06-10  Richard Guenther  <rguenther@suse.de>
12109
12110         PR bootstrap/49344
12111         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
12112         FOR_EACH_PHI_OR_STMT_USE.
12113
12114 2011-06-10  Jan Hubicka  <jh@suse.cz>
12115
12116         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
12117         (clone_inlined_nodes): ... here.
12118         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
12119         to real destination prior inlining.
12120         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
12121         can_early_inline_edge_p, want_early_inline_function_p,
12122         want_early_inline_function_p, want_inline_small_function_p,
12123         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
12124         edge_badness, update_all_callee_keys, lookup_recursive_calls,
12125         add_new_edges_to_heap, inline_small_functions, flatten_function,
12126         inline_always_inline_functions, early_inline_small_functions): Use
12127         cgraph_function_or_thunk_node.
12128         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
12129         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
12130         (do_estimate_edge_growth_1): Break out from ...
12131         (do_estimate_growth) ... here; walk aliases.
12132         (inline_generate_summary): Skip aliases.
12133
12134 2011-06-10  Richard Guenther  <rguenther@suse.de>
12135
12136         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
12137         forward when combining, visit inserted stmts when a stmt was changed.
12138
12139 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
12140
12141         * tree.h (error_operand_p): Add.
12142         * dbxout.c (dbxout_type_fields): Use the latter.
12143         * c-decl.c (add_stmt): Likewise.
12144         * gimplify.c (omp_add_variable, omp_notice_variable,
12145         gimplify_scan_omp_clauses): Likewise.
12146
12147 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
12148
12149         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
12150         when a value is actually passed in regs.
12151
12152 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
12153             Laurent Rougé  <laurent.rouge@menta.fr>
12154
12155         * doc/invoke.texi (SPARC options): Add -mflat.
12156         * config/sparc/sparc.opt: Likewise.
12157         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
12158         (sparc_flat_expand_prologue): Declare.
12159         (sparc_flat_expand_epilogue): Likewise.
12160         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
12161         (CPP_ENDIAN_SPEC): Replace with...
12162         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
12163         (CPP_SPEC): Adjust to above change.
12164         (EXTRA_SPECS): Likewise.
12165         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
12166         (INCOMING_REGNO): Likewise.
12167         (OUTGOING_REGNO): Likewise.
12168         (LOCAL_REGNO): Likewise.
12169         (SETUP_FRAME_ADDRESSES): Likewise.
12170         (FIXED_REGISTERS): Set 0 for %fp.
12171         (CALL_USED_REGISTERS): Likewise.
12172         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
12173         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
12174         (RETURN_ADDR_REGNUM): Define.
12175         (RETURN_ADDR_RTX): Use it.
12176         (INCOMING_RETURN_ADDR_REGNUM): Define.
12177         (INCOMING_RETURN_ADDR_RTX): Use it.
12178         (DWARF_FRAME_RETURN_COLUMN): Likewise.
12179         (EH_RETURN_REGNUM): Define.
12180         (EH_RETURN_STACKADJ_RTX): Use it.
12181         (EH_RETURN_HANDLER_RTX): Delete.
12182         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
12183         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
12184         Delete.
12185         (struct machine_function): Add frame_size, apparent_frame_size,
12186         frame_base_reg, frame_base_offset, n_global_fp_regs and
12187         save_local_in_regs_p fields.
12188         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
12189         sparc_frame_base_offset, sparc_n_global_fp_regs,
12190         sparc_save_local_in_regs_p): New macros.
12191         (sparc_option_override): Error out if -fcall-saved-REG is specified
12192         for Out registers.
12193         (eligible_for_restore_insn): Fix formatting.
12194         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
12195         (eligible_for_sibcall_delay): Likewise.
12196         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
12197         (sparc_legitimate_address_p): Adjust to above change.
12198         (save_global_or_fp_reg_p): New predicate.
12199         (return_addr_reg_needed_p): Likewise.
12200         (save_local_or_in_reg_p): Likewise.
12201         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
12202         (SORR_SAVE, SORR_RESTORE): Delete.
12203         (sorr_pred_t): New typedef.
12204         (sorr_act_t): New enum.
12205         (save_or_restore_regs): Rename to...
12206         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
12207         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
12208         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
12209         mechanism.  Add CFI information for double-word saves in 32-bit mode.
12210         (emit_adjust_base_to_offset): New function extracted from...
12211         (emit_save_or_restore_regs): ...this.  Rename the rest to...
12212         (emit_save_or_restore_regs_global_fp_regs): ...this.
12213         (emit_save_or_restore_regs_local_in_regs): New function.
12214         (gen_create_flat_frame_[123]): New functions.
12215         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
12216         (sparc_flat_expand_prologue): New function.
12217         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
12218         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
12219         (sparc_flat_expand_epilogue): New function.
12220         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
12221         (output_return): Likewise.
12222         (output_sibcall): Likewise.
12223         (sparc_output_mi_thunk): Likewise.
12224         (sparc_frame_pointer_required): Likewise.
12225         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
12226         function optimization.
12227         * config/sparc/sparc.md (flat): New attribute.
12228         (prologue): Add TARGET_FLAT handling.
12229         (save_register_window): Disable if TARGET_FLAT.
12230         (create_flat_frame_[123]): New patterns.
12231         (epilogue): Add TARGET_FLAT handling.
12232         (sibcall_epilogue): Likewise.
12233         (eh_return): New expander.
12234         (eh_return_internal): New insn and splitter.
12235         (return_internal): Add TARGET_FLAT handling.
12236         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
12237         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
12238         (nonlocal_goto): Add TARGET_FLAT handling.
12239         * config/sparc/t-elf: Add -mflat multilib.
12240         * config/sparc/t-leon: Likewise.
12241
12242 2011-06-10  Jan Hubicka  <jh@suse.cz>
12243
12244         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
12245         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
12246         (self_recursive_p): Use cgraph_function_node.
12247         (propagate_pure_const): Likewise.
12248         (propagate_nothrow): Likewise.
12249         * ipa-reference.c (ipa_reference_get_not_read_global): Use
12250         cgraph_function_node.
12251         (propagate_bits): Likewise.
12252         (propagate): Likewise.
12253
12254 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12255             Richard Earnshaw  <rearnsha@arm.com>
12256
12257         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
12258         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
12259         (*thumb2_movdi_vfp): Delete.
12260         (*arm_movdi_vfp_cortexa8): Delete.
12261         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
12262         (*movdi_vfp_cortexa8): Likewise.
12263
12264 2011-06-10  Richard Guenther  <rguenther@suse.de>
12265
12266         * stor-layout.c (initialize_sizetypes): Give names to all
12267         sizetype kinds.
12268
12269 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
12270
12271         PR tree-optimization/49318
12272         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
12273         irrelevant pattern statements.
12274
12275 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12276
12277         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
12278
12279         PR bootstrap/49354
12280         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
12281         to last assignment.
12282
12283 2011-06-09  Jan Hubicka  <jh@suse.cz>
12284
12285         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
12286         do not recompute reachable flag.
12287         (cgraph_finalize_function, cgraph_analyze_functions): Set
12288         redefined_extern_inline here.
12289
12290 2011-06-09  Jan Hubicka  <jh@suse.cz>
12291
12292         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
12293         (cgraph_only_called_directly_p): ... this one; bring offline.
12294         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12295         varpool_used_from_object_file_p): Drop names from the declaratoin.
12296         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
12297         collect_callers_of_node): New.
12298         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
12299         (cgraph_edge_recursive_p): Use cgraph_function_node.
12300         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
12301         (cgraph_node_cannot_be_local_p_1): Break out from ...
12302         (cgraph_node_can_be_local_p): ... here; walk aliases.
12303         (cgraph_for_node_thunks_and_aliases): New function.
12304         (cgraph_for_node_and_aliases): New function.
12305         (cgraph_make_node_local_1): Break out from ...
12306         (cgraph_make_node_local) ... here; use
12307         cgraph_for_node_thunks_and_aliases.
12308         (cgraph_set_nothrow_flag_1): Break out from ...
12309         (cgraph_set_nothrow_flag) ... here;
12310         use cgraph_for_node_thunks_and_aliases.
12311         (cgraph_set_const_flag_1): Break out from ...
12312         (cgraph_set_const_flag) ... here;
12313         use cgraph_for_node_thunks_and_aliases.
12314         (cgraph_set_pure_flag_1): Break out from ...
12315         (cgraph_set_pure_flag) ... here;
12316         use cgraph_for_node_thunks_and_aliases.
12317         (cgraph_propagate_frequency_1): Break out from ...
12318         (cgraph_propagate_frequency) ... here; use
12319         cgraph_for_node_thunks_and_aliases.
12320         (cgraph_used_from_object_file_p): Do not care about aliases.
12321         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
12322         New functions.
12323         (collect_callers_of_node_1, collect_callers_of_node): New functions.
12324
12325 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12326
12327         PR rtl-optimization/49154
12328         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
12329         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
12330         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12331         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
12332         * config/cris/cris.h (cris_register_move_cost): Remove
12333         !TARGET_V32 code.  Tweak comments.
12334
12335 2011-06-09  Jan Hubicka  <jh@suse.cz>
12336
12337         * cgraphbuild.c (record_eh_tables): Mark personality function as having
12338         address taken.
12339
12340 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
12341
12342         PR rtl-optimization/49154
12343         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
12344         is a matching slot in the hashtable, assign it to classes_ptr.
12345
12346         PR rtl-optimization/49154
12347         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
12348         register classes.
12349         * doc/tm.texi: Regenerate.
12350
12351 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
12352
12353         PR target/49307
12354         * config/sh/sh.md (UNSPEC_CHKADD): New.
12355         (chk_guard_add): New define_insn_and_split.
12356         (symGOT_load): Use chk_guard_add instead of blockage.
12357
12358 2011-06-09  Kai Tietz  <ktietz@redhat.com>
12359
12360         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
12361
12362 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12363
12364         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
12365
12366 2011-06-09  Wei Guozhi  <carrot@google.com>
12367
12368         PR target/46975
12369         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
12370         (peephole2 for conditional move): Generate 16 bit instructions.
12371
12372 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
12373
12374         * config/i386/i386.md (*movdi_internal_rex64): Merge
12375         alternatives 6 and 8.
12376
12377 2011-06-09  David Li  <davidxl@google.com>
12378
12379         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
12380         * passes.c (passr_eq): New function.
12381         (create_pass_tab): New function.
12382         (pass_traverse): New function.
12383         (dump_one_pass): New function.
12384         (dump_pass_list): New function.
12385         (dump_passes): New function.
12386
12387 2011-06-09  David Li  <davidxl@google.com>
12388
12389         * tree-complex.c (tree_lower_complex): Gate cleanup.
12390         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
12391         (execute_optimize_stdarg): Ditto.
12392         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
12393         (execute_cleanup_eh_1): Ditto.
12394         (execute_cleanup_eh): Ditto.
12395         * gcse.c (gate_rtl_pre): Ditto.
12396         (execute_rtl_pre): Ditto.
12397         * except.c (finish_eh_generation): Ditto.
12398         (convert_to_eh_region_ranges): Ditto.
12399         * cprop.c (one_cprop_pass): Ditto.
12400
12401 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12402
12403         PR target/48673
12404         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
12405         in all basic blocks.
12406
12407 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12408
12409         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
12410         (HAVE_ENABLE_EXECUTE_STACK): Define.
12411         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
12412         (HAVE_ENABLE_EXECUTE_STACK): Define.
12413         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
12414         (HAVE_ENABLE_EXECUTE_STACK): Define.
12415         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
12416         (ENABLE_EXECUTE_STACK): Remove.
12417         (HAVE_ENABLE_EXECUTE_STACK): Define.
12418         [IN_LIBGCC2]: Don't include <windows.h>.
12419         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12420         (HAVE_ENABLE_EXECUTE_STACK): Define.
12421         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
12422         (HAVE_ENABLE_EXECUTE_STACK): Define.
12423         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
12424         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
12425         (HAVE_ENABLE_EXECUTE_STACK): Define.
12426         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
12427         (HAVE_ENABLE_EXECUTE_STACK): Define.
12428         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
12429         (HAVE_ENABLE_EXECUTE_STACK): Define.
12430         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
12431         (HAVE_ENABLE_EXECUTE_STACK): Define.
12432         * config/alpha/alpha.c (alpha_trampoline_init): Test
12433         HAVE_ENABLE_EXECUTE_STACK.
12434         * config/i386/i386.c (ix86_trampoline_init): Likewise.
12435         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12436         (sparc64_initialize_trampoline): Likewise.
12437         * libgcc2.c [L_enable_execute_stack]: Remove.
12438         * system.h (ENABLE_EXECUTE_STACK): Poison.
12439         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
12440         * doc/tm.texi: Regenerate.
12441         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
12442
12443 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
12444
12445         PR middle-end/49308
12446         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
12447         variable.  After resetting and rescanning insn continue with previous
12448         statement.
12449
12450 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12451
12452         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
12453         (gcc_cv_ld_hidden): Likewise.
12454         * configure: Regenerate.
12455         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
12456         (ix86_stack_protect_fail): Mark unused.
12457         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
12458         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
12459         [TARGET_MACHO]: Don't define.
12460         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
12461         (TARGET_STACK_PROTECT_FAIL): Likewise.
12462         (rs6000_stack_protect_fail): Mark unused.
12463         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
12464         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
12465
12466 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12467
12468         * varasm.c (get_section): Print location of other conflict
12469         for section conflicts.
12470
12471 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12472
12473         * config/i386/driver-i386.c (host_detect_local_cpu):
12474         Add model 0x2d Intel CPU.
12475
12476 2011-06-08  Andi Kleen  <ak@linux.intel.com>
12477
12478         * reginfo.c (global_regs_decl): Add.
12479         (globalize_reg): Add decl parameter. Compute location.  Pass location
12480         to warnings and add inform. Store decl in global_regs_decl.
12481         * rtl.h (globalize_reg): Update prototype.
12482         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
12483
12484 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
12485
12486         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
12487
12488 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12489
12490         PR target/49305
12491         * config/sh/predicates.md (general_movsrc_operand): Check
12492         mode for memory with indexed address for QI and HImode.
12493         (general_movdst_operand): Likewise.
12494
12495 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
12496
12497         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
12498
12499 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
12500
12501         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
12502         (num_ssa_operands): Likewise.
12503         (op_iter_init_phiuse): Forward-declare.
12504         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
12505
12506 2011-06-08  Nick Clifton  <nickc@redhat.com>
12507
12508         * doc/invoke.texi (ARM Options): Update description of
12509         -mthumb-interwork.
12510
12511 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
12512
12513         * config/i386/driver-i386.c (host_detect_local_cpu): Support
12514         unknown Intel family 0x6 CPUs.
12515
12516 2011-06-08  Martin Jambor  <mjambor@suse.cz>
12517
12518         * tree-sra.c (mark_rw_status): Removed.
12519         (analyze_access_subtree): New parameter parent instead of
12520         mark_read and mark_write, propagate from that.
12521
12522 2011-06-08  Julian Brown  <julian@codesourcery.com>
12523
12524         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
12525         for double-precision helper functions in hard-float mode if only
12526         single-precision arithmetic is supported in hardware.
12527
12528 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
12529
12530         PR rtl-optimization/49303
12531         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
12532         code_motion_path_driver returned 0 or 1.
12533         (sel_region_finish): Clear h_d_i_d.
12534
12535 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12536
12537         * config/sh/sh.c (prepare_move_operands): Set pic register
12538         appropriately for global and local dynamic tls models even
12539         if flag_pic is unset.
12540
12541 2011-06-07  Jason Merrill  <jason@redhat.com>
12542
12543         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
12544
12545 2011-06-07  Xinliang David Li  <davidxl@google.com>
12546         * passes.c (enable_disable_pass): Handle assembler name.
12547         (is_pass_explicitly_enabled_or_disabled): Ditto.
12548
12549 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12550
12551         PR tree-optimization/48497
12552         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
12553
12554 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12555
12556         PR tree-optimization/46728
12557         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
12558         to use gimple_val_nonnegative_real_p.
12559         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12560         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
12561
12562 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
12565
12566 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
12567
12568         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
12569         constant vectors.
12570
12571 2011-06-07  Richard Guenther  <rguenther@suse.de>
12572
12573         * stor-layout.c (initialize_sizetypes): Initialize all
12574         sizetypes based on target definitions.
12575         (set_sizetype): Remove.
12576         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
12577         * tree.h (set_sizetype): Remove.
12578
12579 2011-06-07  Nick Clifton  <nickc@redhat.com>
12580
12581         * config.gcc: Unify V850 architecture options and add support for
12582         newer V850 architectures.
12583         * config/v850/t-v850e: Delete.
12584
12585 2011-06-07  Richard Guenther  <rguenther@suse.de>
12586
12587         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
12588         Call set_sizetype from here.
12589
12590 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
12591
12592         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
12593         (*maddhisi4tb, *maddhisi4tt): New define_insns.
12594
12595 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
12596             Andrew Stubbs  <ams@codesourcery.com>
12597
12598         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
12599         multiplies.
12600         * doc/md.texi (Canonicalization of Instructions): Document widening
12601         multiply canonicalization.
12602
12603 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
12604
12605         PR gcov-profile/49299
12606         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
12607
12608 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
12609
12610         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
12611         a pointer.
12612         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
12613         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
12614         vect_recog_pow_pattern): Likewise.
12615         (vect_pattern_recog_1): Remove declaration.
12616         (widened_name_p): Remove declaration.  Add new argument to specify
12617         whether to check that both types are either signed or unsigned.
12618         (vect_recog_widen_mult_pattern): Update documentation.  Handle
12619         unsigned patterns and multiplication by constants.
12620         (vect_pattern_recog_1): Update vect_recog_func references.  Use
12621         statement information from the statement returned from pattern
12622         detection functions.
12623         (vect_pattern_recog): Update vect_recog_func reference.
12624         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
12625         multiplication by a constant use the type of the other operand.
12626
12627 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
12628
12629         PR rtl-optimization/49145
12630         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
12631
12632 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
12633
12634         PR debug/49262
12635         * dwarf2out.c (native_encode_initializer): Decrement count in each
12636         iteration.
12637
12638         PR debug/49294
12639         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
12640         non-MODE_INT modes.
12641
12642         PR c++/49264
12643         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
12644         if stmt folded into nothing.
12645         * tree-inline.c (fold_marked_statements): If a builtin at the end of
12646         a bb folded into nothing, just update cgraph edges and move to next bb.
12647         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
12648         to be NULL.  Don't compute count and frequency if new_call is NULL.
12649
12650 2011-06-04  Diego Novillo  <dnovillo@google.com>
12651
12652         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
12653         (cgraph.o): Likewise.
12654         (cgraphunit.o): Likewise.
12655         * cgraphunit.c: Include lto-streamer.h
12656         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
12657         if LTO is enabled.
12658         * lto-streamer-in.c (unpack_value_fields): Call
12659         streamer_hooks.unpack_value_fields if set.
12660         (lto_materialize_tree): For unhandled nodes, first try to
12661         call lto_streamer_hooks.alloc_tree, if it exists.
12662         (lto_input_ts_decl_common_tree_pointers): Move reading of
12663         DECL_INITIAL to lto_streamer_read_tree.
12664         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
12665         (lto_streamer_read_tree): New.
12666         (lto_reader_init): Rename from lto_init_reader.
12667         Move initialization code to lto/lto.c.
12668         * lto-streamer-out.c (pack_value_fields): Call
12669         streamer_hooks.pack_value_fields if set.
12670         (lto_output_tree_ref): For tree nodes that are not normally indexable,
12671         call streamer_hooks.indexable_with_decls_p before giving up.
12672         (lto_output_ts_decl_common_tree_pointers): Move handling
12673         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
12674         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
12675         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
12676         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
12677         (lto_streamer_write_tree): New.
12678         (lto_output): Call lto_streamer_init directly.
12679         (lto_writer_init): Remove.
12680         * lto-streamer.c (streamer_hooks): New.
12681         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
12682         instead of lto_preload_common_nodes.
12683         (lto_is_streamable): Move from lto-streamer.h
12684         (lto_streamer_hooks_init): New.
12685         (streamer_hooks): New.
12686         (streamer_hooks_init): New.
12687         * lto-streamer.h (struct output_block): Forward declare.
12688         (struct lto_input_block): Likewise.
12689         (struct data_in): Likewise.
12690         (struct bitpack_d): Likewise.
12691         (struct streamer_hooks): Declare.
12692         (streamer_hooks): Declare.
12693         (lto_streamer_hooks_init): Declare.
12694         (lto_streamer_write_tree): Declare.
12695         (lto_streamer_read_tree): Declare.
12696         (streamer_hooks_init): Declare.
12697         (lto_is_streamable): Move to lto-streamer.c
12698
12699 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12700
12701         * longlong.h (smul_ppmm): The resulting register pair contains the
12702         higher order word first.
12703
12704 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12705
12706         PR tree-optimization/46728
12707         * builtins.c (powi_table): Remove.
12708         (powi_lookup_cost): Remove.
12709         (powi_cost): Remove.
12710         (expand_powi_1): Remove.
12711         (expand_powi): Remove.
12712         (expand_builtin_pow_root): Remove.
12713         (expand_builtin_pow): Remove.
12714         (expand_builtin_powi): Eliminate handling of constant exponent.
12715         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
12716
12717 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12718
12719         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
12720
12721 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12722
12723         * dce.c (reset_unmarked_insns_debug_uses): New.
12724         (delete_unmarked_insns): Skip debug insns.
12725         (prescan_insns_for_dce): Likewise.
12726         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
12727         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
12728         active reg can be found.
12729         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
12730         (convert_regs_1): Use it.
12731
12732 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12733
12734         * tree-pretty-print.c (dump_function_header): Add flags.
12735         Don't dump decl_uid with nouid.
12736         * tree-pretty-print.h (dump_function_header): Adjust.
12737         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
12738         * passes.c (pass_init_dump_file): Pass dump_flags on.
12739         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
12740
12741 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
12742
12743         PR bootstrap/49270
12744         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
12745
12746 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
12747
12748         PR tree-optimization/49243
12749         * calls.c (setjmp_call_p): Also check if fndecl has the
12750         returns_twice attribute.
12751
12752 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12753
12754         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
12755         -ffast-math etc.
12756
12757 2011-06-06  Richard Henderson  <rth@redhat.com>
12758             Georg-Johann Lay  <avr@gjlay.de>
12759
12760         PR target/42210
12761         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
12762         New predicates.
12763         * config/avr/avr.md ("insv"): New insn expander.
12764         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
12765         "*insv.not.io", "*insv.reg"): New insns.
12766
12767 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
12768
12769         PR target/49285
12770         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
12771         to nonimmediate_operand from memory_operand for the operand that is to
12772         be forced to memory by the expander.  Lose the constraints.
12773
12774 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
12775
12776         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
12777         EH return when delayed branches are disabled.
12778
12779 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
12780
12781         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
12782         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
12783         calculation.
12784         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
12785         Simplify MODE_V1DF and MODE_V2SF handling.
12786         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
12787         Simplify MODE_SF handling.
12788
12789 2011-06-04  Jan Hubicka  <jh@suse.cz>
12790
12791         PR tree-optimization/48893
12792         PR tree-optimization/49091
12793         PR tree-optimization/49179
12794         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
12795         Bounds check.
12796
12797 2011-06-04  Jan Hubicka  <jh@suse.cz>
12798
12799         PR lto/48954
12800         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
12801         bitmaps.
12802
12803 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
12804
12805         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
12806
12807 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12808
12809         PR target/49281
12810         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
12811         to be strictly smaller than 1 << shiftcount.
12812
12813 2011-06-04  Jan Hubicka  <jh@suse.cz>
12814
12815         PR tree-optimize/48929
12816         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
12817         of empty predicate.
12818
12819 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
12820
12821         PR debug/48333
12822         * calls.c (emit_call_1): Prefer the __builtin declaration of
12823         builtin functions.
12824
12825 2011-06-03   Diego Novillo  <dnovillo@google.com>
12826
12827         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
12828         (lto_input_tree_pointers): Likewise.
12829         * lto-streamer-out.c (pack_value_fields): Likewise.
12830         (lto_output_tree_pointers): Likewise.
12831         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
12832         and OPTIMIZATION_NODE.
12833
12834 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12835
12836         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
12837         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
12838         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
12839         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
12840         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
12841         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
12842         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
12843         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
12844         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
12845         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
12846         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
12847         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
12848         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
12849         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
12850         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
12851         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
12852         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
12853         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
12854         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
12855         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
12856         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
12857         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
12858         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
12859         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
12860         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
12861         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
12862         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
12863         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
12864         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
12865         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
12866         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
12867         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
12868         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
12869         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
12870         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
12871         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
12872         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
12873         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
12874         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
12875         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
12876         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
12877         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
12878         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
12879         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
12880         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
12881         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
12882         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
12883         * system.h (MD_UNWIND_SUPPORT): Poison.
12884         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
12885         * doc/tm.texi: Regenerate.
12886         * unwind-dw2.c: Include md-unwind-support.h instead of
12887         MD_UNWIND_SUPPORT.
12888         * config/ia64/unwind-ia64.c: Likewise.
12889         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
12890
12891 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
12892
12893         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
12894
12895 2011-06-03  Richard Henderson  <rth@redhat.com>
12896             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12897
12898         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
12899         (sigill_hdlr): Correct insn, insn size.
12900         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12901
12902 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12903
12904         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12905         t-slibgcc-dummy.
12906         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12907         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12908         * config/mips/t-iris: Remove.
12909         * config/mips/t-irix6: New file.
12910         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12911
12912 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12913
12914         * Makefile.in (LIB2ADDEHDEP): Remove.
12915         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12916         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12917         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12918         * config/t-darwin (LIB2ADDEHDEP): Remove.
12919         * config/t-freebsd (LIB2ADDEHDEP): Remove.
12920         * config/t-linux (LIB2ADDEHDEP): Remove.
12921
12922 2011-06-03  Diego Novillo  <dnovillo@google.com>
12923
12924         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12925         (lto_register_var_decl_in_symtab): Likewise.
12926         (lto_register_function_decl_in_symtab): Likewise.
12927         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12928         logic to uniquify_nodes.
12929
12930 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12931
12932         * config/alpha/t-osf5: Remove.
12933         * config/alpha/t-osf-pthread: Remove.
12934         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12935         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12936
12937 2011-06-03  Julian Brown  <julian@codesourcery.com>
12938
12939         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12940         (strongarm1110): Use strongarm tuning.
12941         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12942         * config/arm/arm.c (arm_strongarm_tune): New.
12943         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12944         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12945         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12946         setting, using previous defaults or 1 for Cortex-A5.
12947         (arm_option_override): Set max_insns_skipped from current tuning.
12948
12949 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
12950
12951         * doc/install.texi (Options specification): Document --with-specs.
12952
12953 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12954
12955         * config/arm/neon.md (orndi3_neon): Actually split it.
12956
12957 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
12958
12959         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12960         * var-tracking.c (reverse_op): Limite recurse depth to 5.
12961
12962 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
12963
12964         PR debug/47590
12965         * target.def (delay_sched2, delay_vartrack): New.
12966         * doc/tm.texi.in: Update.
12967         * doc/tm.texi: Rebuild.
12968         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12969         * var-tracking.c (gate_handle_var_tracking): Likewise.
12970         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12971         (bfin_flag_var_tracking): Drop.
12972         (output_file_start): Don't save and override flag_var_tracking.
12973         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12974         (bfin_reorg): Test original variables.
12975         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12976         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12977         (ia64_flag_var_tracking): Drop.
12978         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12979         (ia64_file_start): Don't save and override flag_var_tracking.
12980         (ia64_override_options_after_change): Ditto
12981         flag_schedule_insns_after_reload.
12982         (ia64_reorg): Test original variables.
12983         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12984         (picochip_flag_var_tracking): Drop.
12985         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12986         (picochip_option_override): Don't save and override
12987         flag_schedule_insns_after_reload.
12988         (picochip_asm_file_start): Ditto flag_var_tracking.
12989         (picochip_reorg): Test original variables.
12990         * config/spu/spu.c (spu_flag_var_tracking): Drop.
12991         (TARGET_DELAY_VARTRACK): Define.
12992         (spu_var_tracking): New.
12993         (spu_machine_dependent_reorg): Call it.
12994         (asm_file_start): Don't save and override flag_var_tracking.
12995
12996 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
12997
12998         PR target/49163
12999         * config/sh/predicates.md (general_movsrc_operand): Return 0
13000         for memory and memory subreg of which address is an invalid
13001         indexed address for QI and HImode.
13002         (general_movdst_operand): Likewise.
13003
13004 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13005
13006         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
13007         edges only, when there is a non-local label in the function.
13008         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
13009
13010 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13011
13012         * config/i386/constraints.md (Y3): New register constraint.
13013         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
13014         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
13015         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
13016         *sse2_interleave_lowv2df.
13017
13018 2011-06-02  Julian Brown  <julian@codesourcery.com>
13019
13020         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
13021         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
13022         (arm_cortex_a5_tune): New.
13023
13024 2011-06-02  Julian Brown  <julian@codesourcery.com>
13025
13026         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
13027         * config/arm/arm.c (arm_default_branch_cost): New.
13028         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
13029         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
13030         (arm_fa726_tune): Set branch_cost field using
13031         arm_default_branch_cost.
13032         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
13033         current_tune structure.
13034         * dojump.c (tm_p.h): Include file.
13035
13036 2011-06-02  Julian Brown  <julian@codesourcery.com>
13037
13038         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
13039         tuning.
13040         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
13041         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
13042         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
13043         field.
13044         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
13045         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
13046         (arm_fa726te_tune): Add prefer_constant_pool setting.
13047         (arm_v6t2_tune, arm_cortex_tune): New.
13048         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
13049         prefer_constant_pool setting.
13050
13051 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
13052
13053         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
13054         switch statement.
13055         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
13056         (*movdf_internal) <case 6,7,8>: Ditto.
13057
13058         * config/i386/constraints.md (Y4): New register constraint.
13059         * config/i386/sse.md (vec_set<mode>_0): Merge with
13060         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
13061         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
13062         *vec_extractv2di_1_sse.
13063         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
13064         and *vec_concatv2di_rex64_sse.
13065
13066 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
13067
13068         PR target/48807
13069         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
13070         of cgraph_local_info for null before attempting to use it.
13071
13072 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13073
13074         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
13075         (current_function_dynamic_alloc_count): Delete.
13076         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
13077         (expand_builtin_nonlocal_goto): Remove obsolete comment.
13078         (expand_builtin_update_setjmp_buf): Remove dead code.
13079         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
13080         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
13081         support.
13082         * function.c (instantiate_virtual_regs): Likewise.
13083         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
13084         for a block with a single abnormal incoming edge.
13085         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
13086         (SETJMP_VIA_SAVE_AREA): Delete.
13087         * config/sparc/sparc-protos.h (load_got_register): Declare.
13088         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
13089         (load_got_register): Make global.
13090         (sparc_frame_pointer_required): Add 'static'.
13091         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
13092         (sparc_builtin_setjmp_frame_value): New function.
13093         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
13094         (save_stack_nonlocal): New expander.
13095         (restore_stack_nonlocal): Likewise.
13096         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
13097         (nonlocal_goto_internal): New insn.
13098         (goto_handler_and_restore): Delete.
13099         (builtin_setjmp_setup): Likewise.
13100         (do_builtin_setjmp_setup): Likewise.
13101         (setjmp): Likewise.
13102         (builtin_setjmp_receiver): New expander.
13103
13104 2011-06-01  David Li  <davidxl@google.com>
13105
13106         PR middle-end/49261
13107         * tree-pretty-print.c (dump_function_header): Format cleanup.
13108
13109 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
13110
13111         PR target/49238
13112         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
13113         needed when original operands are used for msw_skip comparison.
13114
13115 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13116
13117         PR debug/49250
13118         * var-tracking.c (add_uses, add_stores): Don't call
13119         cselib_subst_to_values on ENTRY_VALUE.
13120
13121 2011-06-01  Diego Novillo  <dnovillo@google.com>
13122
13123         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
13124         output_record_start with LTO_null instead of output_zero.
13125         (lto_output_ts_binfo_tree_pointers): Likewise.
13126         (lto_output_tree): Likewise.
13127         (output_eh_try_list): Likewise.
13128         (output_eh_region): Likewise.
13129         (output_eh_lp): Likewise.
13130         (output_eh_regions): Likewise.
13131         (output_bb): Likewise.
13132         (output_function): Likewise.
13133         (output_unreferenced_globals): Likewise.
13134         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
13135         instead of NUM_TREE_CODES.
13136         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
13137         (lto_output_int_in_range): Change << to >> when shifting VAL.
13138
13139 2011-06-01  Diego Novillo  <dnovillo@google.com>
13140
13141         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
13142         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
13143
13144 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13145
13146         PR target/45074
13147         * optabs.h (valid_multiword_target_p): Declare.
13148         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
13149         doing multi-word operations.
13150         * optabs.c (expand_binop): Likewise.
13151         (expand_doubleword_bswap): Likewise.
13152         (expand_absneg_bit): Likewise.
13153         (expand_unop): Likewise.
13154         (expand_copysign_bit): Likewise.
13155         (multiword_target_p): New function.
13156
13157 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13158
13159         PR rtl-optimization/48830
13160         PR rtl-optimization/48808
13161         PR rtl-optimization/48792
13162         * reload.c (push_reload): Check contains_reg_of_mode.
13163         * reload1.c (strip_paradoxical_subreg): New function.
13164         (gen_reload_chain_without_interm_reg_p): Use it to handle
13165         paradoxical subregs.
13166         (emit_output_reload_insns, gen_reload): Likewise.
13167
13168 2011-06-01  David Li  <davidxl@google.com>
13169
13170         * predict.c : Change pass name
13171         * ipa.c: Ditto.
13172         * dce.c: Ditto.
13173         * tree-profile.c: Ditto.
13174         * except.c: Ditto.
13175
13176 2011-06-01  David Li  <davidxl@google.com>
13177
13178         * tree-pretty-print.c (dump_function_header): New function.
13179         * final.c (rest_of_clean_state): Use header dumper.
13180         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
13181         * passes.c (pass_init_dump_file): Use header dumper.
13182
13183 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13184
13185         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
13186         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
13187         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
13188         New functions.
13189         (mem_loc_descriptor): Use them.
13190
13191         * var-tracking.c (create_entry_value): New function.
13192         (vt_add_function_parameter): Use it.
13193
13194 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13195
13196         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
13197         Include <signal.h>, <ucontext.h>.
13198         (sigill_caught): Define.
13199         (sigill_hdlr): New function.
13200         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
13201         insns can be executed.
13202         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
13203         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
13204
13205 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13206
13207         * config/t-slibgcc-darwin: Move to ...
13208         * config/t-slibgcc-dummy: ... this.  Clarify comments.
13209         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
13210         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
13211         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
13212         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
13213         Remove i386/t-crtstuff from tmake_file.
13214         (i[34567]86-*-solaris2*): Remove t-svr4,
13215         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
13216         t-slibgcc-dummy.
13217         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
13218         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
13219         sparc/t-crtfm from tmake_file.
13220         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
13221         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
13222         Remove extra_parts.
13223         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
13224         * config/i386/t-nwld (SHLIB_LINK): Remove.
13225         * config/i386/t-rtems-i386: Rename to ...
13226         * config/i386/t-rtems: ... this.
13227         ($(T)crti.o, $(T)crtn.o): Remove.
13228         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
13229         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
13230         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
13231         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
13232         EXTRA_MULTILIB_PARTS): Remove.
13233         * config/sparc/t-sol2-64: Likewise.
13234         * config/sparc/t-sol2: Remove.
13235         * config/sparc/t-crtin: Remove.
13236         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
13237         * config/i386/gmon-sol2.c: Remove.
13238         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
13239         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
13240         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
13241         * config/i386/sol2-gc1.asm: Remove.
13242         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
13243         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
13244         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
13245         * config/t-slibgcc-sld: Remove.
13246
13247 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
13248
13249         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
13250         base_type_for_mode with op_mode instead of mode.
13251
13252 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
13253
13254         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
13255         Cortex-A15.
13256         * config/arm/arm-tune.md: Regenerate.
13257         * config/arm/arm-tables.opt: Regenerate.
13258         * config/arm/arm.c (FL_DIV): Rename...
13259         (FL_THUMB_DIV): ... to this.
13260         (FL_ARM_DIV): Define.
13261         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
13262         (arm_arch_hwdiv): Remove.
13263         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
13264         (arm_issue_rate): Add cortexr5.
13265         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
13266         __ARM_ARCH_EXT_IDIV__.
13267         (TARGET_IDIV): Define.
13268         (arm_arch_hwdiv): Remove.
13269         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
13270         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
13271         (divsi3, udivsi3): New patterns.
13272         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
13273         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
13274
13275 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13276
13277         * ipa-utils.c (ipa_dfs_info): New field scc_no.
13278         * ipa-utils.c (searchc): Set scc_no.
13279
13280 2011-06-01  Martin Jambor  <mjambor@suse.cz>
13281
13282         * ipa-utils.c (searchc_env): New field allow_overwritable.
13283         (searchc): do not ignore edges to overwritable nodes if indicated
13284         by env->allow_overwritable.
13285         (ipa_reduced_postorder): Set env.allow_overwritable.
13286
13287 2011-06-01  Richard Guenther  <rguenther@suse.de>
13288
13289         * tree.c (free_lang_data): Do not reset boolean_type_node nor
13290         char_type_node.
13291         * lto-streamer.c (lto_record_common_node): Take node pointer,
13292         do not register types.
13293         (lto_preload_common_nodes): Explicitly skip preloading nodes
13294         that differ between frontends.
13295
13296 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13297
13298         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
13299         NON_FLOAT_REGS.
13300
13301 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
13302
13303         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
13304         parameter value for dump. Dump cost on outermost call only.
13305         (rs6000_memory_move_cost): Dump cost on outermost call only.
13306
13307 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13308
13309         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
13310         DW_OP_GNU_convert ops.
13311
13312         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
13313         cselib_preserve_constants.
13314         (cselib_lookup_1): If cselib_preserve_constants,
13315         a new VALUE is being created for REG and there is a VALUE for the
13316         same register in wider mode, add another loc with lowpart SUBREG of
13317         the wider VALUE.
13318         (cselib_subst_to_values): Handle ENTRY_VALUE.
13319         * var-tracking.c  (replace_expr_with_values): Return NULL for
13320         ENTRY_VALUE too.
13321         * dwarf2out.c (convert_descriptor_to_signed): New function.
13322         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
13323         instead of two shifts.
13324         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
13325         the right mode if needed.
13326         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
13327         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
13328         convert_descriptor_to_signed.
13329         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
13330         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
13331
13332         PR target/48688
13333         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
13334
13335 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13336
13337         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
13338         of X87MODEI12 and SWI48x instead of SSEMODEI24.
13339         (SWI248x): New mode iterator, rename from X87MODEI.
13340         (X87MODEI): Remove mode iterator.
13341         (X87MODEI12): Ditto.
13342         (SSEMODEI24): Ditto.
13343
13344 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13345
13346         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
13347         * doc/invoke.texi: Document max-vartrack-expr-depth.
13348         * var-tracking.c (EXPR_DEPTH): New.
13349         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
13350
13351 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13352
13353         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
13354         * config/i386/sse.md: Add n to negated FMA pattern names.
13355
13356 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13357
13358         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
13359
13360 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
13361
13362         * gengtype-state.c (read_state_params_structs): Initialize previous.
13363
13364 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13365
13366         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
13367         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
13368
13369 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
13370
13371         * config/i386/i386.md (*movtf_internal): Avoid allocating general
13372         registers.  Penalize F*r->o alternative to prevent partial memory
13373         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
13374         CONST_DOUBLE immediates when optimizing function for size.  Do not move
13375         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13376         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
13377         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
13378         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
13379         alternatives.
13380         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
13381
13382         (fp_register_operand splitters): Use fp_register_operand
13383         constraint.  Do not use FP_REG_P in insn condition.
13384         (any_fp_register_operand splitters): Use any_fp_register_operand
13385         constraint.  Do not use ANY_FP_REG_P in insn condition.
13386
13387 2011-05-31  Jan Hubicka  <jh@suse.cz>
13388
13389         * cgraph.h (cgraph_inline_failed_t): Give enum a name
13390         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
13391         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
13392         (lto_output_edge): Use output_enum and var_len_unsigned.
13393         (lto_output_varpool_node): Likewise.
13394         (input_overwrite_node): Do not take resolution parameter;
13395         extract it from a bitpack.
13396         (input_node): Do not read resolution; use input_enum and
13397         var_len_unsigned.
13398         (input_varpool_node): Likewise.
13399         (input_edge): Likewise.
13400         (input_cgraph_1): Likewise.
13401
13402 2011-05-31  Richard Guenther  <rguenther@suse.de>
13403
13404         * gimple.c (gimple_register_canonical_type): Do not register
13405         any types via gimple_register_type.
13406
13407 2011-05-31  Jan Hubicka  <jh@suse.cz>
13408
13409         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
13410         of thunks.
13411
13412 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
13413
13414         PR rtl-optimization/49235
13415         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
13416         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
13417
13418 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
13419
13420         PR tree-optimization/49093
13421         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
13422         data references.
13423
13424 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
13425
13426         PR debug/49047
13427         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
13428         for concrete functions containing the code of cloned functions.
13429
13430 2011-05-31  Richard Guenther  <rguenther@suse.de>
13431
13432         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
13433         to ...
13434         (forward_propagate_into_comparison_1): ... this.
13435         (forward_propagate_comparison): Rename to ...
13436         (forward_propagate_into_comparison): ... this.  Split out
13437         real forward propagation code to ...
13438         (forward_propagate_comparison): ... this.
13439         (forward_propagate_into_gimple_cond): Remove looping.
13440         (forward_propagate_into_cond): Likewise.
13441         (simplify_not_neg_expr): Return whether we have done something.
13442         (simplify_gimple_switch): Likewise.
13443         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
13444         (ssa_forward_propagate_and_combine): ... this.  Re-structure
13445         to do a forward forward-propagation walk on BBs and a backward
13446         stmt combining walk on BBs.  Consistently re-scan changed statements.
13447         (pass_forwprop): Adjust.
13448
13449 2011-05-30  Ian Lance Taylor  <iant@google.com>
13450
13451         * godump.c (go_format_type): Correct length of name added to
13452         obstack for anonymous field.
13453
13454 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
13455
13456         PR target/49186
13457         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
13458         part of the second operand is 0.
13459
13460 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
13461
13462         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
13463         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
13464         to memory for !TARGET_MEMORY_MISMATCH_STALL.
13465         (*movdf_internal_rex64): Do not penalize F->r alternative.
13466         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
13467         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
13468         when optimizing function for size.  Do not move CONST_DOUBLEs
13469         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
13470         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
13471         SUBREGs.  Do not check for MEM_P operands in the insn condition,
13472         check for ANY_FP_REGNO_P instead.
13473         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
13474         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
13475         function for speed.
13476         * config/i386/i386.c (ix86_option_override_internal): Do not
13477         set TARGET_INTEGER_DFMODE_MOVES here.
13478
13479 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
13480
13481         PR target/49168
13482         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
13483
13484 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13485
13486         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
13487         DW_TAG_rvalue_reference_type even for
13488         -gdwarf-4 -fno-debug-types-section.
13489
13490 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13491
13492         PR tree-optimization/46728
13493         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
13494         (build_and_insert_binop): New.
13495         (gimple_expand_builtin_pow): Reorder args for
13496         build_and_insert_call; use build_and_insert_binop; add more
13497         optimizations for fractional exponents.
13498
13499 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
13500
13501         PR bootstrap/49190
13502
13503         Revert:
13504         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13505
13506         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13507         tree_common.
13508         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13509         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13510         TS_BASE instead of TS_COMMON.
13511         * varasm.c (assemble_name): Remove assert.
13512
13513 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
13514
13515         * config.gcc: Keep obselete list sorted.
13516
13517 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
13518             Eric Botcazou  <ebotcazou@adacore.com>
13519
13520         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
13521         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
13522         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
13523         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
13524         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
13525
13526 2011-05-30  Richard Guenther  <rguenther@suse.de>
13527
13528         * gimple.c (gimple_types_compatible_p_1): Compare record
13529         and union type members properly.
13530
13531 2011-05-30  Richard Guenther  <rguenther@suse.de>
13532
13533         PR tree-optimization/49210
13534         * ipa-split.c (split_function): Care for the case where the call
13535         result is not trivially convertible to the result holding variable.
13536
13537 2011-05-30  Richard Guenther  <rguenther@suse.de>
13538
13539         PR tree-optimization/49218
13540         * tree-vrp.c (adjust_range_with_scev): Properly check whether
13541         overflow occured.
13542
13543 2011-05-30  Richard Guenther  <rguenther@suse.de>
13544
13545         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
13546         New function split out from ...
13547         (forward_propagate_into_gimple_cond): ... here.  Adjust.
13548         (forward_propagate_into_cond): Likewise.
13549         (forward_propagate_comparison): Also propagate into
13550         comparisons on assignment RHS.  Change return value to
13551         behave similar to forward_propagate_into_cond.
13552         (tree_ssa_forward_propagate_single_use_vars): Handle
13553         strict-overflow warnings properly for forward_propagate_comparison.
13554
13555 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13556
13557         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
13558         from plugin linker.
13559         * configure: Regenerate.
13560
13561 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
13562
13563         PR tree-optimization/49199
13564         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
13565         non-reduction operands are either defined in the loop or by induction.
13566
13567 2011-05-29  Xinliang David Li  <davidxl@google.com>
13568
13569         * opts-global.c (handle_common_deferred_options): Handle new options.
13570         * passes.c (register_one_dump_file): Call register_pass_name.
13571         (execute_one_pass): Check explicit enable/disable flag.
13572         (passr_hash): New function.
13573         (passr_eq): Ditto.
13574         (register_pass_name): Ditto.
13575         (get_pass_by_name): Ditto.
13576         (pass_hash): Ditto.
13577         (pass_eq): Ditto.
13578         (enable_pass): Ditto.
13579         (disable_pass): Ditto.
13580         (is_pass_explicitly_enabled_or_disabled): Ditto.
13581
13582 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
13583
13584         * config/i386/i386.md (*movoi_internal_avx): Use
13585         standard_sse_constant_opcode for alternative 0.
13586         (*movti_internal_sse): Ditto.
13587         (*movti_internal_rex64): Use standard_sse_constant_opcode for
13588         alternative 2.
13589         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
13590         sselog1 type moves.
13591         (*movsi_internal): Ditto.
13592         (*movdi_internal): Ditto.  Add ssecvt type moves.
13593
13594 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13595
13596         PR target/48830
13597         * rtlanal.c (simplify_subreg_regno): Adjust comment.
13598
13599 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
13600
13601         PR rtl-optimization/49095
13602         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
13603         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
13604
13605 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13606
13607         PR target/43995
13608         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
13609         recurse_p argument.  Only follow register copies if it is set,
13610         and prevent mips_find_pic_call_symbol from recursing.
13611         (mips_find_pic_call_symbol): Add a recurse_p argument.
13612         Pass it to mips_pic_call_symbol_from_set.
13613         (mips_annotate_pic_calls): Update accordingly.
13614
13615 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
13616
13617         * emit-rtl.c (try_split): Use a loop to search for
13618         NOTE_INSN_CALL_ARG_LOCATIONs.
13619
13620 2011-05-29  Richard Guenther  <rguenther@suse.de>
13621
13622         PR tree-optimization/49217
13623         * ipa-pure-const.c (propagate_pure_const): Fix typos.
13624
13625 2011-05-28  Jan Hubicka  <jh@suse.cz>
13626
13627         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
13628         length.
13629         (string_slot_free): Remove
13630         (create_output_block): Initialize obstack.
13631         (destroy_output_block): Free obstack.
13632         (lto_string_index): Add PERSISTENT parameter; do not duplicate
13633         the string unless it needs to be added into the hash.
13634         (lto_output_string_with_length): Add persistent attribute;
13635         handle NULL strings.
13636         (lto_output_string): Add PERSISTENT parameter.
13637         (output_string_cst, output_identifier): Simplify.
13638         (lto_output_location_bitpack): Update.
13639         (lto_output_builtin_tree): Update.
13640         * lto-streamer.h (struct output_block): Add obstack.
13641         (lto_output_string, lto_output_string_with_length): Remove
13642         declarations; functions are static now.
13643
13644 2011-05-28  Jan Hubicka  <jh@suse.cz>
13645
13646         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
13647         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
13648         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
13649         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
13650         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
13651         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
13652         unpack_ts_decl_with_vis_value_fields,
13653         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
13654         lto_get_builtin_tree): Use enum and variable length i/o.
13655         * basic-block.h (profile_status_d): Add PROFILE_LAST.
13656         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
13657         New functions.
13658         (bp_pack_enum, bp_unpack_enum): New macros.
13659
13660 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13661
13662         * genrecog.c: Remove redundant forward declarations.
13663
13664 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13665
13666         * config.gcc: Deprecate mips*-*-openbsd*.
13667
13668 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
13669
13670         PR bootstrap/49195
13671         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
13672         for match_op_dup.
13673
13674 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
13675
13676         PR middle-end/48981
13677         * gengtype.c (vec_prefix_type): New function.
13678         (note_def_vec): Use vec_prefix_type and change the length
13679         attribute to be based on the prefix.
13680         * vec.c: Include coretypes.h before vec.h.
13681         (struct vec_prefix): Remove.
13682         (vec_gc_p_reserve): Change the offsetof to sizeof.
13683         (vec_gc_p_reserve_exact): Likewise.
13684         (vec_heap_p_reserve): Likewise.
13685         (vec_heap_p_reserve_exact): Likewise.
13686         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
13687         (vec_stack_p_reserve): Change the offsetof to sizeof.
13688         (vec_stack_p_reserve_exact): Likewise.
13689         * vec.h (struct vec_prefix): New struct definition.
13690         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
13691         (VEC_T_GTY(T,B)): Likewise.
13692         (DEF_VEC_FUNC_P(T)): Use prefix field.
13693         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
13694         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
13695
13696 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13697
13698         PR tree-optimization/46728
13699         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
13700         (powi_as_mults): Add gimple_set_location.
13701         (build_and_insert_call): New.
13702         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
13703         0.5, 0.25, 0.75, 1./3., or 1./6.
13704
13705 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
13706
13707         * doc/contrib.texi: Update copyright years.
13708         (Contributors): Add Zdenek Sojka.
13709
13710 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
13711
13712         * c-decl.c (c_push_function_context): Copy the current statement
13713         list stack.
13714         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
13715         (finish_struct): Call building_stmt_list_p instead of checking
13716         cur_stmt_list.
13717         * c-parser.c (c_parser_postfix_expression): Likewise.
13718         * c-typeck.c (c_end_compound_stmt): Likewise.
13719         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
13720         * tree-iterator.c (stmt_list_cache): Change to a VEC.
13721         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
13722         (free_stmt_list): Likewise.
13723         * tree.h (struct tree_statement_list): Include typed_tree instead
13724         of tree_common.
13725         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
13726         as TS_TYPED instead of TS_COMMON.
13727
13728 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13729             Uros Bizjak  <ubizjak@gmail.com>
13730
13731         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
13732         (HAVE_AS_IX86_TLSGDPTL): Define.
13733         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
13734         (HAVE_AS_IX86_TLSLDMPLT): Define.
13735         * configure: Regenerate.
13736         * config.in: Regenerate.
13737         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
13738         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
13739         TARGET_SUN_TLS, use @tlsgdplt or @plt.
13740         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
13741         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
13742         @tlsldmplt or @plt.
13743         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
13744
13745 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
13746
13747         * sched-int.h (struct _haifa_deps_insn_data): New members cond
13748         and reverse_cond.
13749         (INSN_COND, INSN_REVERSE_COND): New macros.
13750         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
13751         once.
13752         (sched_get_condition_with_rev): Cache the results, and look them up
13753         if possible.
13754         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
13755         are clobbered by the current insn.
13756         * target.def (exposed_pipline): New sched data hook.
13757         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
13758         * doc/tm.texi: Regenerate.
13759
13760 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13761
13762         PR tree-optimization/49170
13763         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
13764         sincos or cexp.
13765
13766 2011-05-27  Richard Guenther  <rguenther@suse.de>
13767
13768         PR middle-end/49189
13769         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
13770         of comparisons.
13771
13772 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
13773
13774         * haifa-sched.c (sched_scan_info): Remove.
13775         (schedule_block): Call sched_extend_luids rather than sched_init_luids
13776         with NULL args.
13777         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
13778         Remove functions.
13779         (sched_scan): Remove.
13780         (sched_extend_luids): Renamed from luids_extend_insn and no longer
13781         static.  All callers changed.
13782         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
13783         static.  All callers changed.
13784         (sched_init_luids): Remove all arguments except the first.  All
13785         callers changed.  Don't use sched_scan.
13786         (haifa_init_h_i_d): Likewise.
13787         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
13788         manually rather than using sched_init_luids.  Likewise with
13789         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
13790         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
13791         rather than sched_init_luids with NULL args.
13792         * sel-sched-ir.c (new_insns): Remove variable.
13793         (sched_scan): New static function, previously in haifa-sched.c.  Remove
13794         all arguments but the first two; all callers changed.
13795         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
13796         rather than sched_init_luids.
13797         (sel_init_bbs): Remove second argument.  All callers changed.
13798         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
13799         with NULL arguments.
13800         (create_insn_rtx_from_pattern): Likewise.
13801         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
13802         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
13803         (sched_init_insn_luid, sched_extend_luids): Declare.
13804         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
13805         declarations.
13806
13807 2011-05-27  Richard Guenther  <rguenther@suse.de>
13808
13809         PR middle-end/49177
13810         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
13811         A CMP B ? (T) true : (T) false for non-integral types T again.
13812
13813 2011-05-27  Jan Hubicka  <jh@suse.cz>
13814
13815         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
13816         so 0 means NULL string.
13817         (lto_output_string_with_length): ... here.
13818         (lto_output_string, output_string_cst, output_identifier): Update
13819         handling of NULL strings.
13820         (lto_output_location_bitpack): New function.
13821         (lto_output_location): Use it.
13822         (lto_output_tree_ref): Use output_record_start.
13823         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
13824         len values.
13825         * lto-streamer-in.c (string_for_index): Break out from ...; offset
13826         values by 1.
13827         (input_string_internal): ... here;
13828         (input_string_cst, input_identifier, lto_input_string): Update handling
13829         of NULL strings.
13830         (lto_input_location_bitpack): New function
13831         (lto_input_location): Use it.
13832         (unpack_ts_type_common_value_fields): Pack align & alias in var len
13833         values.
13834         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
13835         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
13836         (bp_pack_value): Sanity check the value range.
13837         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
13838         New functions.
13839         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
13840         New functions.
13841
13842 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
13843
13844         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
13845         call_arg_location instructions down the floor.
13846
13847 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
13848
13849         PR rtl-optimization/49154
13850         * ira.c (setup_pressure_classes): Process class without sublcasses
13851         as a candidate for pressure classes.
13852
13853 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
13854
13855         PR rtl-optimization/48575
13856         * genrecog.c (position_type): New enum.
13857         (position): New structure.
13858         (decision): Use position structure instead of a string.
13859         (root_pos, peep2_insn_pos_list): New variables.
13860         (next_position, compare_positions): New functions.
13861         (new_decision): Use position structures instead of strings.
13862         (maybe_both_true): Likewise.
13863         (change_state): Likewise.
13864         (write_tree): Likewise.
13865         (make_insn_sequence): Likewise.
13866
13867 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13868
13869         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
13870         TS_BASE instead of TS_COMMON.
13871         (find_decls_types_r): Check for TS_TYPED structure before looking at
13872         TREE_TYPE.
13873         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
13874         Add chain field.
13875         (BLOCK_CHAIN): Use new chain field.
13876
13877 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
13878
13879         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
13880         moves expensive on Power7 also.
13881
13882 2011-05-26  Richard Guenther  <rguenther@suse.de>
13883
13884         * fold-const.c (fold_unary_loc): Remove bogus code.
13885
13886 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
13887
13888         * tree.h (struct tree_identifier): Inherit from tree_typed, not
13889         tree_common.
13890         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13891         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13892         TS_BASE instead of TS_COMMON.
13893         * varasm.c (assemble_name): Remove assert.
13894
13895 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
13896
13897         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
13898         substituted first.
13899         * libgcc-std.ver: Delete file.
13900
13901 2011-05-26  Richard Guenther  <rguenther@suse.de>
13902
13903         PR tree-optimization/48702
13904         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13905         only when we know the base address is within bounds.
13906         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13907         assume the base address of TARGET_MEM_REFs is in bounds.
13908
13909 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13910
13911         PR target/49099
13912         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13913         declaration in TARGET_SOLARIS.
13914
13915 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
13916
13917         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13918         The instruction is then expanded explicitly.
13919         (supported_compare): Callable instruction.
13920         (compare): Likewise.
13921
13922 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
13923
13924         PR c++/49165
13925         * gimplify.c (shortcut_cond_r): Don't special case
13926         COND_EXPRs if they have void type on one of their arms.
13927
13928 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
13929
13930         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13931         to reduce duplication, and to achieve a slightly more logical order
13932         of operations.
13933
13934 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
13935
13936         PR tree-optimization/49161
13937         * tree-vrp.c (struct case_info): New type.
13938         (compare_case_labels): Sort case_info structs instead of
13939         trees, and not primarily by CASE_LABEL uids but by
13940         label_for_block indexes.
13941         (find_switch_asserts): Put case labels into struct case_info
13942         array instead of TREE_VEC, adjust sorting, compare label_for_block
13943         values instead of CASE_LABELs.
13944
13945 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13946
13947         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13948         ("orndi3_neon"): Likewise.
13949         ("bic<mode>3_neon"): Likewise.
13950
13951 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
13952
13953         PR tree-optimization/49038
13954         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13955         Ensure at least one epilogue iteration if required by data
13956         accesses with gaps.
13957         * tree-vectorizer.h (struct _loop_vec_info): Add new field
13958         to mark loops that require peeling for gaps.
13959         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13960         (vect_get_known_peeling_cost): Take peeling for gaps into
13961         account.
13962         (vect_transform_loop): Generate epilogue if required by data
13963         access with gaps.
13964         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13965         loop as requiring an epilogue if there are gaps in the end of
13966         the strided group.
13967
13968 2011-05-25  Ian Lance Taylor  <iant@google.com>
13969
13970         * godump.c (go_format_type): Output the first field with a usable
13971         Go type, if any.
13972
13973 2011-05-25  Ian Lance Taylor  <iant@google.com>
13974
13975         * godump.c (go_format_type): Check for invalid type names, pointer
13976         target types, and struct field types.
13977
13978 2011-05-25  Jason Merrill  <jason@redhat.com>
13979
13980         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13981
13982 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
13983
13984         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13985
13986 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13987
13988         * config/i386/i386.md (*movqi_extv_1)): Put back
13989         "register_operand" check in "type" calculation.
13990         (*movqi_extzv_2): Likewise.
13991
13992 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
13993
13994         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13995
13996 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
13997
13998         PR bootstrap/49160
13999         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
14000         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
14001         __divxc3, __divtc3): Wrap definitions in #ifndef.
14002
14003 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14004
14005         PR target/49142
14006         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
14007         "register_operand" check and replace q_regs_operand with
14008         QIreg_operand in "type" calculation.
14009         (*movqi_extv_1): Likewise.
14010         (*movqi_extzv_2_rex64): Likewise.
14011         (*movqi_extzv_2): Likewise.
14012
14013         * config/i386/predicates.md (QIreg_operand): New.
14014
14015 2011-05-25  Richard Guenther  <rguenther@suse.de>
14016
14017         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14018         type-based offset disambiguation, streamline MEM_REF and
14019         TARGET_MEM_REF handling.
14020
14021 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14022
14023         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
14024         (bdesc_special_args): Add pause intrinsic.
14025
14026         * config/i386/i386.md (UNSPEC_PAUSE): New.
14027         (pause): Likewise.
14028         (*pause): Likewise.
14029         * config/i386/ia32intrin.h (__pause): Likewise.
14030
14031         * doc/extend.texi (X86 Built-in Functions): Add documentation for
14032         pause intrinsic.
14033
14034 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14035
14036         PR tree-optimization/46728
14037         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
14038         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
14039
14040 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
14041
14042         * tree.h (struct tree_exp): Inherit from struct tree_typed.
14043         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
14044         instead of TS_COMMON.
14045
14046 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
14047
14048         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
14049         LIBGCC2_GNU_PREFIX is defined.
14050         (__N): New macro.
14051         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
14052         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
14053         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
14054         __clz_tab): Define using __N.
14055         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
14056         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
14057         * target.def (libfunc_gnu_prefix): New hook.
14058         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
14059         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
14060         * doc/tm.texi: Regenerate.
14061         * system.h (LIBGCC2_GNU_PREFIX): Poison.
14062         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
14063         account.
14064         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
14065         (init_optabs): Likewise for the bswap libfuncs.
14066         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
14067         and divide.
14068         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
14069         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
14070         * libgcc-std.ver: Remove.
14071         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
14072         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
14073         libgcc-std.ver.
14074         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14075         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
14076         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
14077         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
14078         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
14079         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14080         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
14081         * config/fixed-bit.h (FIXED_OP): Define differently depending on
14082         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
14083         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
14084
14085 2011-05-25  Jan Hubicka  <jh@suse.cz>
14086
14087         * lto-streamer-out.c (output_record_start): Use lto_output_enum
14088         (lto_output_tree): Use output_record_start.
14089         * lto-streamer-in.c (input_record_start): Use lto_input_enum
14090         (lto_get_pickled_tree): Use input_record_start.
14091         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
14092         (lto_value_range_error): New function.
14093         * lto-streamer.h (lto_value_range_error): Declare.
14094         (lto_output_int_in_range, lto_input_int_in_range): New functions.
14095         (lto_output_enum, lto_input_enum): New macros.
14096
14097 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14098
14099         * common.opt (flag_stack_usage_info): New variable.
14100         (-Wstack-usage): New option.
14101         * doc/invoke.texi (Warning options): Document -Wstack-usage.
14102         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
14103         <OPT_fstack_usage>: Likewise.
14104         * toplev.c (output_stack_usage): Handle -Wstack-usage.
14105         * calls.c (expand_call): Test flag_stack_usage_info variable instead
14106         of flag_stack_usage.
14107         (emit_library_call_value_1): Likewise.
14108         * explow.c (allocate_dynamic_stack_space): Likewise.
14109         * function.c (instantiate_virtual_regs ): Likewise.
14110         (prepare_function_start): Likewise.
14111         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
14112         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
14113         * config/arm/arm.c (arm_expand_prologue): Likewise.
14114         (thumb1_expand_prologue): Likewise.
14115         * config/avr/avr.c (expand_prologue): Likewise.
14116         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14117         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14118         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
14119         * config/mips/mips.c (mips_expand_prologue): Likewise.
14120         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14121         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14122         * config/s390/s390.c (s390_emit_prologue): Likewise.
14123         * config/sh/sh.c (sh_expand_prologue): Likewise.
14124         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14125         * config/spu/spu.c (spu_expand_prologue): Likewise.
14126
14127 2011-05-25  Richard Guenther  <rguenther@suse.de>
14128
14129         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
14130         (gimple_canonical_types_compatible_p): Likewise.
14131
14132 2011-05-25  Jan Hubicka  <jh@suse.cz>
14133
14134         PR middle-end/49062
14135         * ipa.c (function_and_variable_visibility): Only add to same
14136         comdat group list if DECL_ONE_ONLY.
14137
14138 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
14139
14140         PR rtl-optimization/49014
14141         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
14142
14143 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
14144
14145         PR target/49128
14146         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
14147
14148 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14149
14150         PR rtl-optimization/48757
14151         * ira-build.c (loop_with_eh_edge_p): Rename to
14152         loop_with_complex_edge_p, check edges on complexity, make function
14153         conditional.
14154         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
14155         conditional.
14156
14157 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14158
14159         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
14160         force flag_ira_share_save_slots to 0.
14161
14162 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14163
14164         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
14165         (vt_initialize): Set PROLOGUE_BB unconditionally.
14166         Add block comment about CFA_BASE_RTX machinery.
14167         Reset FP_CFA_OFFSET to -1 on all invalid paths.
14168         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
14169
14170 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
14171
14172         PR objc/48187
14173         * c-parser.c (c_parser_objc_class_instance_variables): More robust
14174         parsing of syntax error in ObjC instance variable lists.  In
14175         particular, avoid an infinite loop if there is a stray ']'.
14176         Updated error message.
14177
14178 2011-05-24  Ian Lance Taylor  <iant@google.com>
14179
14180         * godump.c (go_define): Don't accept a string immediately after
14181         another operand.
14182
14183 2011-05-24  Ian Lance Taylor  <iant@google.com>
14184
14185         * godump.c (struct godump_container): Add invalid_hash field.
14186         (go_format_type): Return false if type is found in invalid_hash.
14187         (go_output_typedef): Add invalid type to invalid_hash.
14188         (go_finish): Create and delete invalid_hash.
14189
14190 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14191
14192         PR tree-optimization/46728
14193         * tree-ssa-math-opts.c (powi_table): New.
14194         (powi_lookup_cost): New.
14195         (powi_cost): New.
14196         (powi_as_mults_1): New.
14197         (powi_as_mults): New.
14198         (gimple_expand_builtin_powi): New.
14199         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
14200         (gate_cse_sincos): Remove sincos/cexp restriction.
14201
14202 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14203
14204         PR target/3746
14205         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
14206         mips-tdump native.
14207         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
14208         * mips-tdump.c: Likewise.
14209
14210 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14211
14212         PR target/49128
14213         * config/i386/driver-i386.c (host_detect_local_cpu): Always
14214         add -mno-XXX.  Handle FMA.
14215
14216 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14217
14218         PR rtl-optimization/48633
14219         * ira-build.c (loop_with_eh_edge_p): New function.
14220         (mark_loops_for_removal): Use it.
14221
14222 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
14223
14224         PR rtl-optimization/48971
14225         * ira.c (setup_pressure_classes): Don't check register move cost
14226         for classes with one registers.  Don't add pressure class if there
14227         is a pressure class with the same available hard registers.
14228         Check contains_reg_of_mode.  Fix a typo in collecting
14229         temp_hard_regset.  Ignore hard registers not belonging to a class.
14230
14231 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
14232
14233         PR target/49133
14234         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
14235
14236 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
14237             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14238
14239         PR gcov-profile/48845
14240         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
14241
14242 2011-05-24  Richard Guenther  <rguenther@suse.de>
14243
14244         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
14245         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
14246         (gimple_types_compatible_p_1): Adjust.
14247         (iterative_hash_canonical_type): Do not bother about complete vs.
14248         incomplete types.
14249         (gimple_canonical_types_compatible_p): Likewise.
14250
14251 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14252
14253         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
14254
14255 2011-05-24  Richard Guenther  <rguenther@suse.de>
14256
14257         PR bootstrap/49078
14258         * gimple.c (gimple_register_canonical_type): Revert
14259         previous change.
14260         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
14261         does not for a tree for the case where it matters.  Cache
14262         pointer-type alias-sets.
14263
14264 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
14265
14266         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
14267         (OBJS): Remove options.o, opts-common.o and prefix.o.
14268         (OBJS-libcommon-target): New.
14269         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
14270         (BACKEND): Include libcommon-target.a.
14271         (MOSTLYCLEANFILES): Include libcommon-target.a.
14272         (libcommon-target.a): New.
14273         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
14274         prefix.o.
14275
14276 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
14277
14278         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
14279         parts of output shared with the driver.
14280         * optc-gen.awk: Don't generate parts of output not shared with the
14281         driver.
14282         * opth-gen.awk: Remove GCC_DRIVER conditionals.
14283         * doc/options.texi (SourcerInclude): Mention options-save.c.
14284         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
14285         (OBJS): Add options-save.o.
14286         (options-save.c, options-save.o): New.
14287         (options.o): Update dependencies.
14288         (gcc-options.o): Remove.
14289         (mostlyclean): Remove options-save.c.
14290
14291 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14292
14293         PR debug/49032
14294         * dbxout.c: Include cgraph.h.
14295         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
14296         and without value expr, return NULL if no varpool node exists for
14297         it or if it is not needed.
14298         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
14299
14300         PR c/49120
14301         * c-decl.c (start_decl): Convert expr to void_type_node.
14302
14303 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
14304
14305         PR rtl-optimization/48826
14306         * emit-rtl.c (try_split): When splitting a call that is followed
14307         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
14308
14309 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14310
14311         * cfgexpand.c (expand_debug_expr): For unused non-addressable
14312         parameters passed in memory prefer using DECL_INCOMING_RTL over
14313         the pseudos it will be copied into.
14314
14315 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
14316
14317         PR target/47315
14318         * config/i386/i386.c (ix86_option_override_internal): Save the
14319         initial options after checking vzeroupper.
14320
14321 2011-05-23  David Li  <davidxl@google.com>
14322
14323         PR tree-optimization/48988
14324         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
14325         Initialize has_valid_pred for each pred chain.
14326
14327 2011-05-23  Richard Guenther  <rguenther@suse.de>
14328
14329         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
14330         (iterative_hash_gimple_type): Always hash type names.
14331
14332 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
14333
14334         * c-typeck.c (build_function_call_vec): Tweak call to
14335         check_function_arguments.
14336
14337 2011-05-23  Richard Guenther  <rguenther@suse.de>
14338
14339         PR tree-optimization/49115
14340         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
14341         is not necessarily carried out, do not claim it kills the ref.
14342         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
14343
14344 2011-05-23  Richard Guenther  <rguenther@suse.de>
14345
14346         PR middle-end/15419
14347         * builtins.c (fold_builtin_memory_op): Be less restrictive about
14348         what pointer types we accept for folding.
14349
14350 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14351
14352         * gthr-gnat.c: Remove.
14353         * gthr-gnat.h: Remove.
14354         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
14355         * config/t-freebsd (LIB2ADDEH): Likewise.
14356         * config/t-linux (LIB2ADDEH): Likewise.
14357         * config/t-sol2 (LIB2ADDEH): Likewise.
14358         * config/ia64/t-vms (LIB2ADDEH): Likewise.
14359         * configure.ac (target_thread_file): Remove gnat handling.
14360         * configure: Regenerate.
14361         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
14362
14363 2011-05-23  Tristan Gingold  <gingold@adacore.com>
14364             Eric Botcazou  <ebotcazou@adacore.com>
14365
14366         * gcov.c (create_file_names): If no object directory is specified,
14367         keep the directory of the file.
14368
14369 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14370
14371         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
14372         * configure: Regenerate.
14373
14374 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
14375
14376         PR middle-end/48973
14377         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
14378         failed and the comparison has a single bit signed type, use
14379         constm1_rtx instead of const1_rtx for true value.
14380         (do_store_flag): If ops->type is single bit signed type, disable
14381         signel bit test optimization and pass -1 instead of 1 as last
14382         parameter to emit_store_flag_force.
14383
14384 2011-05-23  Tom de Vries  <tom@codesourcery.com>
14385
14386         PR target/45098
14387         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
14388         function.
14389         (infer_loop_bounds_from_undefined): Use new function.
14390
14391 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14392
14393         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
14394         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
14395         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
14396         and -O0 otherwise.
14397         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
14398
14399 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14400
14401         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
14402         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
14403         returns true.
14404
14405 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
14406
14407         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
14408
14409 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14410
14411         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
14412         UNSPEC_MOVE_PIC pattern.
14413
14414 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
14415
14416         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
14417         (sparc-*-rtems*): Likewise.
14418         (sparc64-*-elf*): Likewise.
14419         (sparc64-*-rtems*): Likewise.
14420         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
14421         * config/sparc/t-crtin: New file.
14422         * config/sparc/t-sol2 (crti.o): Delete rule.
14423         (crtn.o): Likewise.
14424         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
14425         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
14426         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
14427         (ENDFILE_SPEC): Add crtn.o.
14428
14429 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14430
14431         PR middle-end/48689
14432         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
14433         CODE_CONTAINS_STRUCT (TS_COMMON).
14434
14435 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
14436
14437         PR middle-end/49029
14438         * expmed.c (extract_fixed_bit_field): Test whether target can be used
14439         only after deciding which mode to use.
14440
14441 2011-05-22  Tom de Vries  <tom@codesourcery.com>
14442
14443         PR target/45098
14444         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
14445         for call to get_shiftadd_cost.
14446
14447 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
14448
14449         PR target/49104
14450         * config/i386/cpuid.h (bit_MMXEXT): New define.
14451
14452 2011-05-22  Nick Clifton  <nickc@redhat.com>
14453
14454         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
14455         initialisation of non-existant args[2] element.  Use args[] array
14456         not arg[] array to pass arguments to build_function_type_list.
14457
14458 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
14459
14460         PR tree-optimization/49087
14461         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
14462
14463 2011-05-21  Jason Merrill  <jason@redhat.com>
14464
14465         PR c++/49092
14466         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
14467         static storage duration.
14468
14469 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14470
14471         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
14472         frame pointer.
14473
14474 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14475
14476         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
14477         false if there are call-saved registers here...
14478         (sparc_can_use_return_insn_p): ...but here instead.
14479         (save_or_restore_regs): Fix thinko.
14480         (sparc_expand_prologue): Use current_function_is_leaf.
14481         (sparc_frame_pointer_required): Likewise.
14482
14483 2011-05-21  Nick Clifton  <nickc@redhat.com>
14484
14485         PR target/49098
14486         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
14487
14488 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
14489
14490         * gengtype.c (walk_type): Implemented "atomic" GTY option.
14491         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
14492
14493 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
14494
14495         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
14496         * optc-gen.awk: Move common code to opt-read.awk.
14497         * opth-gen.awk: Likewise.
14498         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
14499
14500 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
14501
14502         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
14503
14504 2011-05-20  Tom de Vries  <tom@codesourcery.com>
14505
14506         PR target/45098
14507         * tree-ssa-loop-ivopts.c: Include expmed.h.
14508         (get_shiftadd_cost): New function.
14509         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
14510
14511 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14512
14513         PR bootstrap/49086
14514         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
14515         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
14516
14517 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14518
14519         * Makefile.in: Update comment referring to $(OBJS-common).
14520
14521 2011-05-20  Ian Lance Taylor  <iant@google.com>
14522
14523         * godump.c (go_output_typedef): Put enum constants in the macro
14524         hash table to avoid duplicate Go const definitions.
14525
14526 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
14527
14528         * Makefile.in (LIBDEPS): Add libcommon.a.
14529         (LIBS): Likewise.
14530         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
14531         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
14532         pretty-print.o and version.o.
14533         (OBJS-libcommon): New.
14534         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
14535         (BACKEND): Add libcommon.a.
14536         (MOSTLYCLEANFILES): Likewise.
14537         (libcommon.a): New.
14538         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
14539         (cpp$(exeext)): Likewise.
14540         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
14541         pretty-print.o and input.o.
14542         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
14543         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
14544         (errors.o): Remove.
14545         (mips-tfile): Don't explicitly use version.o.
14546         (mips-tdump): Likewise.
14547         (gcov.o): Depend on $(DIAGNOSTIC_H).
14548         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
14549         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
14550         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
14551         * gcov-dump.c: Include intl.h and diagnostic.h.
14552         (main): Initialize diagnostics.
14553         * gcov.c: Include diagnostic.h.
14554         (fnotice): Remove.
14555         (main): Initialize diagnostics.
14556         * lto-wrapper.c: Include diagnostic.h.
14557         (main): Initialize diagnostics.
14558
14559 2011-05-20  Michael Matz  <matz@suse.de>
14560
14561         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
14562
14563 2011-05-20  Michael Matz  <matz@suse.de>
14564             Richard Guenther  <rguenther@suse.de>
14565
14566         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
14567         use lto_streamer_cache_append directly instead of returning a VEC.
14568         (preload_common_node): Remove.
14569         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
14570         track seen nodes.
14571         (lto_streamer_cache_create): Call lto_preload_common_nodes.
14572
14573 2011-05-20  Richard Guenther  <rguenther@suse.de>
14574
14575         PR tree-optimization/49079
14576         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
14577         MEM_REFs correctly for the trailing array access detection.
14578         Special case constants the same way as decls for overall size
14579         constraining.
14580
14581 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
14582
14583         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
14584         argument expansion.
14585
14586 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
14587
14588         PR tree-optimization/49073
14589         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
14590         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
14591         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
14592
14593 2011-05-20  Richard Guenther  <rguenther@suse.de>
14594
14595         PR middle-end/48849
14596         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
14597         of pointer types the same way the middle-end does.
14598
14599 2011-05-20  Richard Guenther  <rguenther@suse.de>
14600
14601         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
14602         or pointer-to chains.  Delay all fixup to uniquify_nodes.
14603
14604 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
14605
14606         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
14607         (fma4_fmaddsub): Likewise
14608
14609 2011-05-19  Jan Hubicka  <jh@suse.cz>
14610
14611         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
14612         (GIMPLE_TYPE_PAIR_SIZE): New macro.
14613         (type_pair_cache): New static var.
14614         (lookup_type_pair): Use fixed sized custom hash; make inline.
14615         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
14616         calls of lookup_type_pair.
14617         (print_gimple_types_stats): Remove cache stats.
14618         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
14619         and gtc_ob.
14620
14621 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
14622
14623         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
14624         when TARGET_RDRND is active.
14625         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
14626         Generate dummy SImode target register when target is NULL.
14627
14628 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14629
14630         * config/arm/arm-fpus.def: New.
14631         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
14632         arm-fpus.def.
14633         * config/arm/arm-tables.opt: Regenerate.
14634         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
14635         (arm_option_override): Don't decode FPU name to string here.
14636         * config/arm/arm.opt (mfpu=): Use Enum.
14637         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
14638         Update dependencies.
14639
14640 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
14641
14642         * collect2.c: Include diagnostic.h.
14643         (fatal_perror, fatal, error, fancy_abort): Remove.
14644         (main): Set progname.  Call xmalloc_set_program_name and
14645         diagnostic_initialize.
14646         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
14647         scan_libraries, resolve_lib_name): Call fatal_error instead of
14648         fatal and fatal_perror.
14649         * collect2.h (error, fatal, fatal_perror): Don't declare.
14650         * tlink.c: Include diagnostic-core.h.
14651         (recompile_files): Call fatal_error instead of fatal_perror.
14652         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
14653         pretty-print.o and input.o.
14654         (collect2.o, tlink.o): Update dependencies.
14655
14656 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14657
14658         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
14659
14660 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14661
14662         PR target/40483
14663         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
14664         COMDAT group syntax, both SPARC and x86 variants.
14665         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
14666         * configure: Regenerate.
14667         * config/sol2.h (TARGET_SOLARIS): Define.
14668         (PUSHSECTION_FORMAT): Remove.
14669         (SECTION_NAME_FORMAT): Define.
14670         * config/sol2.c: Include hashtab.h.
14671         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
14672         expansion, using SECTION_NAME_FORMAT.
14673         (solaris_comdat_htab): New variable.
14674         (struct comdat_entry): Define.
14675         (comdat_hash): New function.
14676         (comdat_eq): New function.
14677         (solaris_elf_asm_comdat_section): New function.
14678         (solaris_define_comdat_signature): New function.
14679         (solaris_code_end): New function.
14680         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
14681         (solaris_code_end): Declare.
14682         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
14683         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
14684         solaris_code_end.
14685         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
14686         Remove ATTRIBUTE_UNUSED.
14687         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
14688         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
14689         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
14690         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
14691         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
14692         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
14693         (PUSHSECTION_FORMAT): Remove.
14694         (SECTION_NAME_FORMAT): Redefine.
14695
14696 2011-05-19  Kai Tietz  <ktietz@redhat.com>
14697
14698         * tree-cfg.c (verify_gimple_assign_binary): Barf on
14699         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
14700         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
14701
14702 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
14703             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14704
14705         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
14706
14707 2011-05-19  Richard Guenther  <rguenther@suse.de>
14708
14709         PR middle-end/48985
14710         * tree-object-size.c (addr_object_size): If the pointed-to
14711         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
14712
14713 2011-05-19  Richard Guenther  <rguenther@suse.de>
14714
14715         * gimple.c (gimple_types_compatible_p_1): Compare names of
14716         the types themselves.
14717         (iterative_hash_gimple_type): And hash them that way.
14718         (gimple_register_type_1): If we register a main variant properly
14719         initialize the leader to ourselves.
14720
14721 2011-05-19  Tom de Vries  <tom@codesourcery.com>
14722
14723         PR target/45098
14724         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
14725         get_loop_invariant_expr_id.
14726         (get_loop_invariant_expr_id): Use get_expr_id.
14727         (parm_decl_cost): New function.
14728         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
14729         Improve bound cost estimation.  Use different inv_expr_id for elim and
14730         express cases.
14731
14732 2011-05-19  Tom de Vries  <tom@codesourcery.com>
14733
14734         PR target/45098
14735         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
14736         cost_base.cost == 0.
14737
14738 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
14739
14740         PR target/49002
14741         * config/i386/sse.md
14742         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
14743         load cast.
14744
14745 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
14746
14747         PR tree-optimization/49039
14748         * tree-vrp.c (extract_range_from_binary_expr): For
14749         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
14750         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
14751
14752 2011-05-18  Tom de Vries  <tom@codesourcery.com>
14753
14754         PR target/45098
14755         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
14756
14757 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
14758
14759         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
14760         (*tls_global_dynamic_64): Ditto.
14761         (*tls_local_dynamic_base_32_gnu): Ditto.
14762         (*tls_local_dynamic_base_64): Ditto.
14763         (tls_initial_exec_64_sun): Ditto.
14764
14765 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
14766
14767         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
14768         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
14769         bf592-none.
14770         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
14771         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
14772         * config/bfin/bfin.c (bfin_cpus): Add bf592.
14773         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14774         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
14775         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
14776         * config/bfin/elf.h (LIB_SPEC): Add bf592.
14777
14778 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
14779
14780         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
14781         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
14782         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
14783         target_thread_pointer, arm_structure_size_boundary, struct
14784         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
14785         struct abi_name, arm_all_abis): Remove.
14786         (arm_option_override) Don't process most enumerated option values here.
14787         Don't process target_fpe_name here.  Work with integer not string for
14788         structure size boundary; use separate diagnostics for each case.
14789         * config/arm/arm.h (enum float_abi_type, enum
14790         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
14791         to arm-opts.h.
14792         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
14793         arm_structure_size_boundary): Remove.
14794         * config/arm/arm.opt (mabi=): Use Enum and Init.
14795         (arm_abi_type): New Enum and EnumValue entries.
14796         (mfloat-abi=): Use Enum and Init.
14797         (float_abi_type): New Enum and EnumValue entries.
14798         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
14799         (mfp16-format=): Use Enum and Init.
14800         (arm_fp16_format_type): New Enum and EnumValue entries.
14801         (mstructure-size-boundary=): Use UInteger and Init.
14802         (mtp=): Use Enum and Init.
14803         (arm_tp_type): New Enum and EnumValue entries.
14804
14805 2011-05-18  Richard Guenther  <rguenther@suse.de>
14806
14807         PR tree-optimization/49018
14808         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
14809         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
14810         gimple_has_side_effects.
14811
14812 2011-05-18  Richard Guenther  <rguenther@suse.de>
14813
14814         * gimple.c (gimple_register_type_1): New function, split out from ...
14815         (gimple_register_type): ... here.  Avoid infinite recursion.
14816
14817 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
14818
14819         PR tree-optimization/41881
14820         * tree-vectorizer.h (struct _loop_vec_info): Add new field
14821         reduction_chains along with a macro for its access.
14822         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
14823         (destroy_loop_vec_info): Free reduction chains.
14824         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
14825         (vect_is_slp_reduction): New function.
14826         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
14827         (vect_create_epilog_for_reduction): Support SLP reduction chains.
14828         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
14829         definition types for reduction chains.
14830         (vect_supported_load_permutation_p): Don't allow permutations for
14831         reduction chains.
14832         (vect_analyze_slp_instance): Support reduction chains.
14833         (vect_analyze_slp): Try to build SLP instance from reduction chains.
14834         (vect_get_constant_vectors):  Handle reduction chains.
14835         (vect_schedule_slp_instance): Mark the first statement of the
14836         reduction chain as reduction.
14837
14838 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
14839
14840         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
14841         names for group elements access.
14842         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
14843         reduction chains as well.  Remove data reference and interleaving
14844         related words from the fields names.
14845         * tree-vect-loop.c (vect_transform_loop): Use new names for group
14846         elements access.
14847         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
14848         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
14849         vect_update_interleaving_chain, vect_same_range_drs,
14850         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
14851         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
14852         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
14853         vect_analyze_group_access, vect_analyze_data_ref_access,
14854         vect_create_data_ref_ptr, vect_transform_strided_load,
14855         vect_record_strided_load_vectors): Likewise.
14856         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
14857         vect_model_load_cost, vectorizable_store, vectorizable_load,
14858         vect_remove_stores, new_stmt_vec_info): Likewise.
14859         * tree-vect-slp.c (vect_build_slp_tree,
14860         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
14861
14862 2011-05-18  Richard Guenther  <rguenther@suse.de>
14863
14864         PR middle-end/48989
14865         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
14866         operand verification.
14867         (verify_gimple_assign_binary): Likewise.
14868         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
14869         to non-1-precision BOOLEAN_TYPEs.
14870
14871 2011-05-18  Tom de Vries  <tom@codesourcery.com>
14872
14873         PR target/45098
14874         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
14875
14876 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
14877
14878         PR tree-optimization/49000
14879         * tree-ssa.c (execute_update_addresses_taken): Call
14880         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
14881         be rewritten and decl has been marked for renaming, reset
14882         the debug stmt.
14883
14884 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
14885
14886         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
14887         enum_opts_set when testing if attributes have set -mfpmath=.
14888
14889 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
14890
14891         * config/mips/mips.c (mips_handle_option): Remove unused variable.
14892
14893 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
14894
14895         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
14896         info->entry with 0
14897         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
14898         id.transform_lang_insert_block with NULL.
14899
14900 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
14901
14902         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
14903         (output_fp_compare): Change args 3 and 4 to bool.
14904         (ix86_expand_call): Change arg 6 to bool.
14905         (ix86_attr_length_immediate_default): Change arg 2 to bool.
14906         (ix86_attr_length_vex_default): Change arg 3 to bool.
14907         * config/i386/i386.md: Update all uses.
14908         * config/i386/i386.c: Ditto.
14909         (ix86_flags_dependent): Change return type to bool.
14910
14911 2011-05-17  Richard Guenther  <rguenther@suse.de>
14912
14913         * gimple.c (type_hash_pair_compare): Fix comparison.
14914
14915 2011-05-17  Richard Guenther  <rguenther@suse.de>
14916
14917         * gimple.c (iterative_hash_gimple_type): Simplify singleton
14918         case some more, fix final hash value of the non-singleton case.
14919
14920 2011-05-17  Richard Guenther  <rguenther@suse.de>
14921
14922         PR bootstrap/49013
14923         Revert
14924         2011-05-16  Richard Guenther  <rguenther@suse.de>
14925
14926         * gimple.c (gimple_types_compatible_p_1): Use names of the
14927         type itself, not its main variant.
14928         (iterative_hash_gimple_type): Likewise.
14929
14930 2011-05-17  Richard Guenther  <rguenther@suse.de>
14931
14932         * gimple.c (gimple_register_canonical_type): Use the main-variant
14933         leader for computing the canonical type.
14934
14935 2011-05-17  Nick Clifton  <nickc@redhat.com>
14936
14937         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14938         moves.
14939
14940         * config/rx/rx.md: Add peephole to remove redundant extensions
14941         after loads.
14942         (bitset_in_memory): Use rx_restricted_mem_operand.
14943         (bitinvert_in_memory): Likewise.
14944         (bitclr_in_memory): Likewise.
14945
14946 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
14947             Nick Clifton  <nickc@redhat.com>
14948
14949         * config/rx/rx.md: Add peepholes to match a register move followed
14950         by a comparison of the moved register.  Replace these with an
14951         addition of zero that does both actions in one instruction.
14952
14953 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
14954
14955         PR target/48986
14956         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14957         predicate to allow CONST_INT.
14958         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14959
14960 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
14961
14962         * opts-common.c (opt_enum_arg_to_value): New.
14963         * opts.h (opt_enum_arg_to_value): Declare.
14964         * config/i386/i386.opt (fpmath): Remove.
14965         (mfpmath=): Use Enum, Init and Save.
14966         (fpmath_unit): New Enum and EnumValue entries.
14967         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14968         name for function fpmath state.
14969         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14970         * config/i386/i386.c: Include diagnostic.h.
14971         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14972         (ix86_target_string): Take enum fpmath_unit value instead of string.
14973         (ix86_debug_options): Update call to ix86_target_string.
14974         (ix86_option_override_internal): Don't process fpmath strings here.
14975         (x86_function_specific_save, ix86_function_specific_restore):
14976         Don't handle fpmath state specially.
14977         (ix86_function_specific_print): Pass fpmath state to
14978         ix86_target_string instead of printing in this function.
14979         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14980         Handle enum attributes.
14981         (IX86_ATTR_ENUM, ix86_opt_enum): New.
14982         (ix86_valid_target_attribute_tree): Update option_strings
14983         handling.  Handle fpmath as enum option.
14984         (ix86_can_inline_p): Update field names for function fpmath state.
14985         (ix86_expand_builtin): Update call to ix86_target_string.
14986         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14987         (ix86_fpmath): Remove.
14988         * config/i386/t-i386 (i386.o): Update dependencies.
14989
14990 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
14991
14992         PR preprocessor/48677
14993         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14994         from decoded_options[0], not from itself.
14995
14996 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
14997
14998         * config/i386/constraints.md (z): New constraint.
14999         * config/i386/i386.c (c): New mode attribute.
15000         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
15001         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
15002         constraint for operand 0.
15003         (*call_vzeroupper): Ditto.
15004         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
15005         (*call_rex64_ms_sysv_vzeroupper): Ditto.
15006         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
15007         Use "lzm" constraint for operand 0.
15008         (*call_pop_vzeroupper): Ditto.
15009         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
15010         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
15011         constraint for operand 0.
15012         (*sibcall_vzeroupper): Ditto.
15013         (*sibcall_rex64_ms_sysv): Ditto.
15014         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
15015         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
15016         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
15017         (*sibcall_pop_vzeroupper): Ditto.
15018         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
15019         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
15020         mode iterator.  Use "<c>zm" constraint for operand 1.
15021         (*call_value_vzeroupper): Ditto.
15022         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
15023         for operand 1.
15024         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
15025         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
15026         *call_value_pop_1.  Use "lzm" constraint for operand 1.
15027         (*call_value_pop_vzeroupper): Ditto.
15028         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
15029         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
15030         mode iterator.  Use "Uz" constraint for operand 1.
15031         (*sibcall_value_vzeroupper): Ditto.
15032         (*sibcall_value_rex64_ms_sysv): Ditto.
15033         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
15034         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
15035         constraint for operand 1.
15036         (*sibcall_value_pop_vzeroupper): Ditto.
15037         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
15038         and "z" constraint for operand 2.
15039         (*tls_global_dynamic_32_gnu): Ditto.
15040         (*tls_local_dynamic_base_32_gnu): Ditto.
15041         (*tls_local_dynamic_base_64): Ditto.
15042         (*tls_local_dynamic_32_once): Ditto.
15043         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
15044         Update all callers.
15045         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
15046
15047 2011-05-16  Richard Guenther  <rguenther@suse.de>
15048
15049         * gimple.c (gimple_types_compatible_p_1): Use names of the
15050         type itself, not its main variant.
15051         (iterative_hash_gimple_type): Likewise.
15052
15053 2011-05-16  Richard Guenther  <rguenther@suse.de>
15054
15055         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
15056         always visit pointer target and function result and argument types.
15057
15058 2011-05-16  Jason Merrill  <jason@redhat.com>
15059
15060         PR c++/48999
15061         * tree-inline.c (copy_statement_list): Put back recursion.
15062
15063 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15064
15065         PR target/27663
15066         PR target/41076
15067         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
15068         * config/avr/avr.md ("*ior<mode>qi.byte0",
15069         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
15070
15071 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
15072
15073         PR target/45099
15074         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
15075         register is needed for a function argument.
15076
15077 2011-05-16  Richard Guenther  <rguenther@suse.de>
15078
15079         * gimple.c (struct type_hash_pair): New type.
15080         (type_hash_pair_compare): New function.
15081         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
15082
15083 2011-05-16  Revital Eres  <revital.eres@linaro.org>
15084
15085         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
15086
15087 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15088
15089         * config/i386/i386.md (floating point move splitters): Fix
15090         usage of standard_80387_constant_p.
15091         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
15092
15093 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
15094
15095         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
15096
15097 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15098
15099         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
15100         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
15101         (tree_ssa_lim_finalize): Likewise.
15102
15103 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
15104
15105         * config/i386/constraint.md (Yd, Yx): New register constraints.
15106         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
15107         Yd conditional register constraint.
15108         (*movtf_internal): Use standard_sse_constant_opcode.
15109         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
15110         Yx conditional register constraint.
15111         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
15112         Yd conditional register constraint.  Use standard_sse_constant_p to
15113         check for valid SSE constants and call standard_sse_constant_opcode to
15114         output SSE insn.
15115         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
15116         constants and call standard_sse_constant_opcode to output SSE insn.
15117         * config/i386/i386.c (ix86_option_ovverride_internal): Set
15118         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
15119         optimize_size is set.
15120         (standard_sse_constant_opcode): Output conditional AVX insn templates.
15121
15122 2011-05-14  Tobias Burnus  <burnus@net-b.de>
15123
15124         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
15125
15126 2011-05-13  Martin Jambor  <mjambor@suse.cz>
15127
15128         * ipa-prop.c (ipa_cst_from_jfunc): New function.
15129         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
15130         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
15131         (evaluate_conditions_for_ipcp_clone): Removed.
15132         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
15133         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
15134         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
15135
15136 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15137
15138         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
15139         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
15140         lieu of MAY_HAVE_DEBUG_STMTS.
15141         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
15142         debug statements if !MAY_HAVE_DEBUG_STMTS.
15143
15144 2011-05-13  Martin Thuresson  <martint@google.com>
15145
15146         PR gcov-profile/47793
15147         * libgcov.c (gcov_exit): Support relative profile paths.
15148         * doc/invoke.texi (-fprofile-dir): Update for above change.
15149
15150 2011-05-13  Richard Guenther  <rguenther@suse.de>
15151
15152         * gimple.c (gimple_canonical_types_compatible_p): Do not use
15153         type-pair caching, do not compare hashes.
15154
15155 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
15156
15157         PR middle-end/48965
15158         * tree-cfg.c (edge_to_cases_cleanup): Return true.
15159         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
15160
15161 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15162
15163         * gimplify.c (gimplify_expr): Make sure operand is boolified.
15164         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
15165         compatible type for TRUTH_NOT_EXPR.
15166
15167 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15168
15169         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
15170         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
15171         can_create_pseudo_p ().
15172
15173 2011-05-13  Richard Guenther  <rguenther@suse.de>
15174
15175         PR lto/48978
15176         * gimple.c (iterative_hash_gimple_type): Revert change in
15177         pointer target and function result and argument hashing.
15178
15179 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
15180
15181         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
15182         (*movxf_internal_nointeger): Ditto.
15183         (*movdf_internal_rex64): Ditto.
15184         (*movdf_internal): Ditto.
15185         (*movdf_internal_nointeger): Ditto.
15186         (*movsf_internal): Ditto.
15187         (sincos splitters): Use can_create_pseudo ().
15188
15189 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
15190
15191         * config/i386/i386-opts.h: New.
15192         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
15193         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
15194         ix86_section_threshold): Remove.
15195         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
15196         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
15197         OPT_mbranch_cost_.
15198         (ix86_option_override_internal): Don't decode strings for options
15199         other than -march=, -mtune= and -mfpmath=.  Don't allow for
15200         __attribute__ uses in remaining diagnostics for options with
15201         string arguments.  Don't check for integer arguments being negative.
15202         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
15203         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
15204         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
15205         ix86_branch_cost, ix86_section_threshold): Remove.
15206         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
15207         HeaderInclude.
15208         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
15209         but not Var.
15210         (masm=): Use Enum and Init.
15211         (asm_dialect): New Enum and EnumValue entries.
15212         (mbranch-cost=): Use UInteger.
15213         (mlarge-data-threshold=): Use UInteger and Init.
15214         (mcmodel=): Use Enum and Init.
15215         (cmodel): New Enum and EnumValue entries.
15216         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
15217         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
15218         mregparm=): Use UInteger.
15219         (mstringop-strategy=): Use Enum and Init.
15220         (stringop_alg): New Enum and EnumValue entries.
15221         (mtls-dialect=): Use Enum and Init.
15222         (tls_dialect): New Enum and EnumValue entries.
15223         (mabi=): Use Enum and Init.
15224         (calling_abi): New Enum and EnumValue entries.
15225         (mveclibabi=): Use Enum and Init.
15226         (ix86_veclibabi): New Enum and EnumValue entries.
15227
15228 2011-05-13  Nick Clifton  <nickc@redhat.com>
15229
15230         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
15231         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
15232
15233 2011-05-13  Kai Tietz  <ktietz@redhat.com>
15234
15235         PR middle-end/48984
15236         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
15237         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
15238         (gimple_boolify): Check for cast for boolean_type_node instead for
15239         BOOLEAN_TYPE.
15240
15241 2011-05-13  Richard Guenther  <rguenther@suse.de>
15242
15243         PR tree-optimization/48172
15244         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
15245         multiplying by number of iterations for equal step.
15246         (vect_create_cond_for_alias_checks): Likewise.
15247
15248 2011-05-13  Andreas Schwab  <schwab@redhat.com>
15249
15250         * configure.ac: Use AS_HELP_STRING throughout.
15251         * configure: Regenerate.
15252
15253 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15254
15255         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
15256         (ix86_emit_restore_regs_using_mov): Likewise.
15257         (ix86_emit_restore_sse_regs_using_mov): Likewise.
15258
15259 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
15260
15261         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
15262         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
15263         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
15264         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
15265         RTX_OK_FOR_OLO10_P): ...here.
15266         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
15267         SYMBOLIC_CONST.
15268
15269 2011-05-12  Kai Tietz  <ktietz@redhat.com>
15270
15271         * gimplify.c (gimple_boolify): Re-boolify expression
15272         arguments even if expression type is of kind BOOLEAN_TYPE.
15273         (gimplify_boolean_expr): Removed.
15274         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
15275         and XOR. Additional take care that we keep expression's type.
15276         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
15277         of TRUTH_AND|OR|XOR_EXPR.
15278
15279 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15280
15281         PR tree-optimization/48975
15282         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
15283         on all bbs here and free and clear ifc_bbs at the end.
15284
15285 2011-05-12  Richard Guenther  <rguenther@suse.de>
15286
15287         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
15288         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
15289         until after simple checks.
15290         (gimple_types_compatible_p): Likewise.
15291         (iterative_hash_gimple_type): Always hash pointer targets
15292         and function return and argument types.
15293         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
15294         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
15295         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
15296         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
15297         completely in the simple compare section.
15298         (gimple_register_canonical_type): Query the cache again after
15299         registering.
15300
15301 2011-05-12  Richard Guenther  <rguenther@suse.de>
15302
15303         PR tree-optimization/48172
15304         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
15305         the number of iterations from the segment size calculation.
15306         (vect_create_cond_for_alias_checks): Adjust.
15307
15308 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
15309
15310         PR debug/48967
15311         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
15312         if validate_subreg fails.
15313
15314 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
15315
15316         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
15317         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
15318         early.
15319
15320 2011-05-12  DJ Delorie  <dj@redhat.com>
15321
15322         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
15323         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
15324         created builtin into rx_builtins array.
15325         (rx_builtin_decl): New function.
15326         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
15327
15328 2011-05-12  DJ Delorie  <dj@redhat.com>
15329             Nick Clifton  <nickc@redhat.com>
15330
15331         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
15332         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
15333         (rx_is_legitimate_address): Add pre-decrement and post-increment
15334         addressing in HImode and QImode.  Fix test for out of range
15335         REG+INT addressing.
15336         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
15337         (rx_align_for_label): Test label before extracting its usage count.
15338         (rx_adjust_insn_lengths): Fix selection of insn codes.
15339         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
15340
15341 2011-05-11  Jason Merrill  <jason@redhat.com>
15342
15343         * tree.c (type_hash_canon): Use struct tree_type_non_common.
15344
15345 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15346
15347         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
15348         reindent the subsequent block.
15349
15350 2011-05-11  Satoru Takabayashi  <satorux@google.com>
15351             Paul Pluzhnikov  <ppluzhnikov@google.com>
15352
15353         * doc/install.texi (Configuration): Document --with-linker-hash-style.
15354         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
15355         * config.in: Add LINKER_HASH_STYLE.
15356         * configure.ac: Add --with-linker-hash-style.
15357         * configure: Regenerate.
15358
15359 2011-05-11  Richard Guenther  <rguenther@suse.de>
15360
15361         PR middle-end/48964
15362         * gimple.c (iterative_hash_canonical_type): Fix typo.
15363
15364 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
15365
15366         * config/i386/i386.c (legitimize_tls_address)
15367         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15368         expanders directly for TARGET_GNU2_TLS.  Determine pic and
15369         __tls_get_addr symbol reference here.  Update call to
15370         gen_tls_global_dynamic_{32,64} for added arguments.
15371         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
15372         expanders directly for TARGET_GNU2_TLS.  Determine
15373         __tls_get_addr symbol reference here.  Update call to
15374         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
15375         unique UNSPEC REG_EQUIV to libcall block.
15376         (ix86_tls_get_addr): Declare static.
15377         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
15378         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
15379         Do not determine pic and __tls_get_addr symbol reference here. Do not
15380         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
15381         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
15382         (tls_global_dynamic_64): Add operand 2.  Do not determine
15383         __tls_get_addr symbol reference here.  Do not call
15384         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
15385         (tls_local_dynamic_base64): Ditto for operand 1.
15386
15387 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
15388
15389         * function.c (expand_function_start): Initialize stack_check_probe_note
15390         only if the generic stack checking mechanism is used.
15391
15392 2011-05-11  Richard Guenther  <rguenther@suse.de>
15393
15394         PR tree-optimization/15256
15395         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
15396         (A & B) | C, combine (A op CST1) op CST2.
15397         (tree_ssa_forward_propagate_single_use_vars): Only bother to
15398         visit assigns that have uses.
15399
15400 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
15401
15402         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
15403         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
15404         (unpack_ts_type_common_value_fields): ...this.  Update comment.
15405         (unpack_value_fields): Adjust for renaming.
15406         (lto_input_ts_type_tree_pointers): Split into...
15407         (lto_input_ts_type_common_tree_pointer): ...this and...
15408         (lto_input_ts_type_non_common_tree_pointers): ...this.
15409         (lto_input_tree_pointers): Adjust for above split.
15410         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
15411         (pack_ts_type_common_value_fields): ...this.  Update comment.
15412         (lto_output_ts_type_tree_pointers): Split into...
15413         (lto_output_ts_type_common_tree_pointers): ...this and...
15414         (lto_output_ts_type_non_common_tree_pointers): ...this.
15415         (lto_output_tree_pointers): Adjust for above split.
15416         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
15417         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
15418         * stor-layout.c (vector_type_mode): Adjust location of mode field.
15419         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
15420         Define.
15421         (struct tree_type): Split into...
15422         (struct tree_type_common: ...this and...
15423         (struct tree_type_with_lang_specific): ...this and...
15424         (struct tree_type_non_common): ...this.  Adjust accessor macros
15425         accordingly.
15426         (TYPE_VALUES_RAW): Define.
15427         (union tree_node): Update for above changes.
15428         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
15429         TS_TYPE_NON_COMMON.
15430         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
15431         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
15432         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
15433         * treestructu.def (TS_TYPE): Remove.
15434         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
15435         Define.
15436
15437 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
15438
15439         PR debug/48159
15440         * tree-ssa.c (reset_debug_uses): New function.
15441         * tree-flow.h (reset_debug_uses): New prototype.
15442         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
15443         * tree-loop-distribution.c (generate_loops_for_partition): Call
15444         reset_debug_uses on the stmts that will be removed.  Keep around
15445         all debug stmts, don't count them as bits in partition bitmap.
15446         (generate_builtin): Don't count debug stmts or labels as bits in
15447         partition bitmap.
15448
15449 2011-05-11  Richard Guenther  <rguenther@suse.de>
15450
15451         * gimple.c (gimple_type_hash_1): Merge with ...
15452         (gimple_type_hash): ... this.
15453         (gtc_visit): Remove mode parameter and simplify accordingly.
15454         (gimple_types_compatible_p_1): Likewise.
15455         (gimple_types_compatible_p): Likewise.
15456         (iterative_hash_gimple_type): Likewise.
15457         (visit): Likewise.
15458         (gimple_type_eq): Adjust.
15459
15460 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15461
15462         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
15463         enters the branch create an anti edge in the opposite direction
15464         to prevent the creation of reg-moves.
15465         * modulo-sched.c: Adjust comment to reflect the fact we are
15466         scheduling closing branch.
15467         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
15468         (stage_count): New field in struct partial_schedule.
15469         (calculate_stage_count): New function.
15470         (normalize_sched_times): Rename to reset_sched_times and handle
15471         incrementing the sched time of the nodes by a constant value
15472         passed as parameter.
15473         (duplicate_insns_of_cycles): Skip closing branch.
15474         (sms_schedule_by_order): Schedule closing branch.
15475         (ps_insn_find_column): Handle closing branch.
15476         (sms_schedule): Call reset_sched_times and adjust the code to
15477         support scheduling of the closing branch.
15478         (ps_insert_empty_row): Update calls to normalize_sched_times
15479         and rotate_partial_schedule functions.
15480
15481 2011-05-11  Richard Guenther  <rguenther@suse.de>
15482
15483         PR middle-end/48953
15484         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
15485
15486 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
15487
15488         * opts.c (finish_options): Move warning settings from process_options.
15489         * toplev.c (process_options): Move warning settings to finish_options.
15490
15491 2011-05-11  Richard Guenther  <rguenther@suse.de>
15492
15493         PR tree-optimization/18041
15494         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
15495         (simplify_bitwise_binary): ... this.  Handle operand conversions
15496         by applying them to the result instead.
15497         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
15498
15499 2011-05-11  Richard Guenther  <rguenther@suse.de>
15500
15501         * gimple.c (gimple_canonical_types_compatible_p): Split out
15502         from gimple_types_compatible_p and friends.  Do not recurse
15503         to pointed-to types.
15504         (gimple_canonical_type_eq): Use it.
15505         (iterative_hash_canonical_type): Split out from
15506         iterative_hash_gimple_type and friends.  Do not recurse
15507         to pointed-to types.
15508         (gimple_canonical_type_hash): Use it, allocate the hash here.
15509
15510 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15511
15512         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
15513         recognizing doloop.
15514
15515 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15516
15517         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
15518         instead of PREV_INSN.
15519
15520 2011-05-11  Revital Eres  <revital.eres@linaro.org>
15521
15522         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
15523         * loop-doloop.c (doloop_condition_get): Likewise.
15524         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
15525         (doloop_end): New.
15526         * config/arm/arm.md (*addsi3_compare0): Remove "*".
15527
15528 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
15529
15530         * tree.def (CASE_LABEL_EXPR): Add an operand.
15531         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
15532
15533 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15534
15535         * c-decl.c (c_override_global_bindings_to_false): Remove.
15536         (global_bindings_p): Don't check
15537         c_override_global_bindings_to_false.
15538         * c-tree.h (c_override_global_bindings_to_false): Remove.
15539         * c-typeck.c (composite_type): Don't set
15540         c_override_global_bindings_to_false.
15541
15542 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15543
15544         PR target/48857, 48495
15545         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
15546         (VSX_MODE): Ditto.
15547         (VSX_MOVE_MODE): Ditto.
15548         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
15549         VSX vector types.  Add V2DImode.
15550         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
15551         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
15552         (MODES_TIEABLE_P): Ditto.
15553
15554         * config/rs6000/rs6000.c (rs6000_emit_move): Use
15555         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
15556         VSX_VECTOR_MODE.
15557         (init_cumulative_args): Ditto.
15558         (rs6000_function_arg_boundary): Ditto.
15559         (rs6000_function_arg_advance_1): Ditto.
15560         (rs6000_function_arg): Ditto.
15561         (rs6000_function_ok_for_sibcall): Ditto.
15562         (emit_frame_save): Ditto.
15563         (rs6000_function_value): Ditto.
15564         (rs6000_libcall_value): Ditto.
15565
15566 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15567
15568         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15569         i386/darwin-lib.h to $libgcc_tm_file.
15570         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
15571
15572 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15573
15574         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
15575
15576 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15577
15578         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
15579         * config/rs6000/rs6000-tables.opt: New file (generated).
15580         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
15581         rs6000/rs6000-tables.opt to extra_options.
15582         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
15583         * config/rs6000/rs6000.c (rs6000_select): Remove.
15584         (processor_target_table): Move contents to rs6000-cpus.def.
15585         (darwin_rs6000_override_options): Check
15586         global_options_set.x_rs6000_cpu_index instead of
15587         rs6000_select[1].string.
15588         (rs6000_option_override_internal): Likewise.
15589         (rs6000_handle_option): Don't assert that global structures are in
15590         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
15591         (rs6000_default_cpu): New variable.
15592         (rs6000_file_start): Set it instead of local default_cpu.  Check
15593         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
15594         global_options_set.x_rs6000_tune_index instead of rs6000_select.
15595         (rs6000_darwin_file_start): Check rs6000_default_cpu and
15596         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
15597         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
15598         rs6000_select): Remove.
15599         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
15600         Remove.
15601         (mcpu=, mtune=): Use Var, Init, Enum and Save.
15602         * config/rs6000/t-rs6000
15603         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
15604         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15605         global_options_set.x_rs6000_cpu_index instead of
15606         rs6000_select[1].string.
15607         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
15608         global_options_set.x_rs6000_cpu_index instead of
15609         rs6000_select[1].string.
15610
15611 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
15612
15613         * config.gcc (libgcc_tm_file): Define instead of including files
15614         from ../../libgcc/config/ in tm_file.
15615         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
15616         * configure: Regenerate.
15617         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
15618         libgcc_tm.h, cs-libgcc_tm.h): New.
15619         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
15620         (clean): Remove libgcc_tm.h.
15621         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
15622         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
15623         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
15624
15625 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
15626
15627         PR target/48896
15628         * config/avr/avr.c (avr_ret_register): Return unsigned int
15629         instead of int.
15630         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
15631         it to avr_libcall_value.
15632         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
15633         expand_expr.
15634         (avr_expand_binop_builtin): Ditto.
15635         (avr_expand_unop_builtin): Ditto.
15636
15637 2011-05-10  DJ Delorie  <dj@redhat.com>
15638
15639         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
15640         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
15641         * config/rx/rx.c (rx_align_for_label): Add label and
15642         uses_threshold parameters.  Do not align when the label is not
15643         used enough.
15644         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
15645
15646 2011-05-10  Richard Guenther  <rguenther@suse.de>
15647
15648         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
15649         a series of conversions and apply foldings similar to what
15650         fold-const does.
15651         (tree_ssa_forward_propagate_single_use_vars): Call it.
15652
15653 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
15654
15655         PR tree-optimization/48611
15656         PR tree-optimization/48794
15657         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
15658         referenced from RESX or EH_DISPATCH arguments.
15659
15660         PR debug/48928
15661         * dfp.c (decimal_to_decnumber): Handle conversion from
15662         dconst{1,2,m1,half}.
15663
15664 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15665
15666         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
15667         for !flag_prefer_avx128.
15668         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
15669
15670 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
15671
15672         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
15673         (fold_ternary_loc): Use expr_location_or.
15674
15675 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15676
15677         PR debug/48853
15678         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
15679         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
15680         Pmode and mem_mode is not VOIDmode.
15681
15682 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
15683
15684         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
15685         TYPE_QUAL_RESTRICT): Convert to enum.
15686
15687 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15688
15689         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
15690         (const_pow2_1_to_8_operand): Ditto.
15691         (const_pow2_1_to_128_operand): Ditto.
15692         (const_pow2_1_to_32768_operand): Ditto.
15693         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
15694         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
15695         in insn constraint to check integer value of operand 3.
15696         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
15697
15698         (PINSR_MODE): New mode iterator.
15699         (sse2p4_1): New mode attribute.
15700         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
15701         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
15702         iterator.  Use const_int_operand instead of
15703         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
15704         exact_log2 in insn constraint to check integer value of operand 3.
15705
15706 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15707
15708         * config/i386/sse.md (blendbits): Remove mode attribute.
15709         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
15710         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
15711         Check integer value of operand 3 in insn constraint.
15712
15713 2011-05-09  Richard Guenther  <rguenther@suse.de>
15714
15715         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
15716         for diagnostics.
15717         (lto_symtab_merge): Likewise.  Do not register types here.
15718         (lto_symtab_merge_decls_2): Likewise.
15719         (lto_symtab_merge_decls_1): Likewise.
15720         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
15721         * gimple.c (enum gtc_mode): Declare.
15722         (gimple_types_compatible_p): Make static.
15723
15724 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15725
15726         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
15727         temporary register to match Pmode.
15728
15729 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15730
15731         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
15732         and *vec_concatv4si_1_avx.
15733
15734 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
15735
15736         PR rtl-optimization/48927
15737         * ira-conflicts.c (commutative_constraint_p): Use
15738         recog_data.alternative_enabled_p to disable alternatives where
15739         "enabled" attribute is false.
15740         (get_dup_num): Ditto.
15741         * ira-lives.c (single_reg_class): Ditto.
15742         (ira_implicitly_set_insn_hard_regs): Ditto.
15743
15744 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
15745
15746         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
15747         (dataflow_set_preserve_mem_locs): Likewise.
15748
15749 2011-05-09  Philipp Thomas  <pth@suse.de>
15750
15751         * config/mep/mep.c (mep_validate_vliw): Syntax description
15752         should not be translated.
15753
15754 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
15755
15756         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
15757         * config/mips/mips-tables.opt: New file (generated).
15758         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
15759         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
15760         MIPS_ARCH_OPTION_NATIVE): Define.
15761         * config/mips/mips.c (mips_cpu_info_table): Move contents to
15762         mips-cpus.def.
15763         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
15764         mips_parse_cpu): Remove.
15765         (mips_cpu_info_from_opt, mips_default_arch): New.
15766         (mips_handle_option): Don't assert that global structures are in
15767         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
15768         (mips_option_override): Use new variables and functions to set
15769         state of these options.  Use strcmp to check for individual CPU names.
15770         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
15771         definition.
15772         * config/mips/mips.opt (march=): Use ToLower and Enum.
15773         (mips): Use ToLower, Enum and Var.
15774         (mtune=): Use ToLower and Enum.
15775         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
15776
15777 2011-05-08  Jan Hubicka  <jh@suse.cz>
15778
15779         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
15780         Arrange type pairs to be UID ordered.
15781         (gimple_lookup_type_leader): Make inline.
15782
15783 2011-05-09  Nick Clifton  <nickc@redhat.com>
15784
15785         PR target/48899
15786         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
15787         PROCESSOR_DEFAULT.
15788
15789         PR target/48897
15790         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
15791         variable 's'.
15792
15793 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
15794
15795         * combine.c (simplify_comparison): Abstract out parts into...
15796         (simplify_compare_const): ... new function.
15797         (try_combine): Generalize parallel arithmetic/compare combining
15798         to call simplify_compare_const() and CANONICALIZE_COMPARE().
15799
15800 2011-05-08  Jan Hubicka  <jh@suse.cz>
15801
15802         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
15803         (cgraph_create_virtual_clone): Call hooks once virtual clone
15804         is finished.
15805         * cgraph.h (cgraph_clone_node): Update prototype.
15806         * ipa-cp.c (ipcp_estimate_growth): Use
15807         estimate_ipcp_clone_size_and_time.
15808         * ipa-inline-transform.c (clone_inlined_nodes): Update.
15809         * lto-cgraph.c (input_node): Update.
15810         * ipa-inline.c (recursive_inlining): Update.
15811         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
15812         (evaluate_conditions_for_known_args): Break out from ...
15813         (evaluate_conditions_for_edge): ... here.
15814         (evaluate_conditions_for_ipcp_clone): New function.
15815         (inline_node_duplication_hook): Update clone summary based
15816         on parameter map.
15817         (estimate_callee_size_and_time): Rename to ...
15818         (estimate_node_size_and_time): take NODE instead of EDGE;
15819         take POSSIBLE_TRUTHS as argument.
15820         (estimate_callee_size_and_time): Update.
15821         (estimate_ipcp_clone_size_and_time): New function.
15822         (do_estimate_edge_time): Update.
15823
15824 2011-05-08  Richard Guenther  <rguenther@suse.de>
15825
15826         PR middle-end/48908
15827         PR middle-end/48905
15828         * expmed.c (expand_shift_1): Compute adjusted constant shift
15829         amount manually.
15830
15831 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15832
15833         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
15834
15835 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15836
15837         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
15838
15839 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
15840
15841         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
15842
15843 2011-05-07  Jan Hubicka  <jh@suse.cz>
15844
15845         * ipa-inline-transform.c (inline_call): Account when program size
15846         decreases.
15847         * ipa-inline.c (relative_time_benefit): New function.
15848         (edge_badness): Reorganize to be power 2 based; fix thinko when
15849         computing badness for negative growth; update comments to match
15850         reality; better dumps.
15851
15852 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
15853
15854         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
15855         type to bool and adjust comment.
15856         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
15857         (fold_mathfn_compare): Remove calls to global_bindings_p.
15858         (fold_inf_compare): Likewise.
15859         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
15860         * c-tree.h (global_bindings_p): Adjust prototype.
15861         * c-decl.c (global_bindings_p): Return bool and simplify.
15862
15863 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
15864
15865         PR tree-optimization/48837
15866         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
15867         when accumulator transformation is performed.
15868
15869 2011-05-06  Jan Hubicka  <jh@suse.cz>
15870
15871         * i386.h (ix86_tune_indices): Add
15872         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
15873         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
15874         * i386.c (initial_ix86_tune_features): Add
15875         X86_SOFTARE_PREFETCHING_BENEFICIAL.
15876         (software_prefetching_beneficial_p): Remove predicate.
15877         (ix86_option_override_internal): Use new macro.
15878
15879 2011-05-06  Jan Hubicka  <jh@suse.cz>
15880
15881         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
15882
15883 2011-05-06  Jan Hubicka  <jh@suse.cz>
15884
15885         * cgraph.c (cgraph_add_thunk): Create real function node instead
15886         of alias node; finalize it and mark needed/reachale; arrange visibility
15887         to be right and add it into the corresponding same comdat group list.
15888         (dump_cgraph_node): Dump thunks.
15889         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
15890         cgraph_function_with_gimple_body_p,
15891         cgraph_first_function_with_gimple_body,
15892         cgraph_next_function_with_gimple_body): New functions.
15893         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
15894         New macros.
15895         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
15896         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15897         * cgraphunit.c (cgraph_finalize_function): Only look into possible
15898         devirtualization when optimizing.
15899         (verify_cgraph_node): Verify thunks.
15900         (cgraph_analyze_function): Analyze thunks.
15901         (cgraph_mark_functions_to_output): Output thunks only in combination
15902         with function they are assigned to.
15903         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
15904         alias into normal node.
15905         (assemble_thunks): New functoin.
15906         (cgraph_expand_function): Use it.
15907         * lto-cgraph.c (lto_output_node): Stream thunks.
15908         (input_overwrite_node): Stream in thunks.
15909         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15910         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15911         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15912         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15913         (inline_analyze_function): Do not care about thunk jump functions.
15914         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15915         * ipa-prop.c (ipa_prop_write_jump_functions): Use
15916         cgraph_function_with_gimple_body_p.
15917         * passes.c (do_per_function_toporder): Use
15918         cgraph_function_with_gimple_body_p.
15919         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15920         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15921         (function_called_by_processed_nodes_p): Likewise.
15922
15923 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
15924
15925         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15926         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15927         entries.
15928         (mabi=): Replace with separate entries for mabi=altivec,
15929         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15930         mabi=ieeelongdouble and mabi=ibmlongdouble.
15931         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15932         check for -mabi=spe without SPE ABI support here.
15933         (rs6000_handle_option): Replace OPT_mabi_ handling with
15934         OPT_mabi_altivec and OPT_mabi_spe handling.
15935
15936 2011-05-06  Cary Coutant  <ccoutant@google.com>
15937
15938         * dwarf2out.c (contains_subprogram_definition): New function.
15939         (should_move_die_to_comdat): Call it.
15940
15941 2011-05-06  Jeff Law  <law@redhat.com>
15942
15943         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15944         remove_ctrl_stmt_and_useless_edges.
15945         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15946         (fixup_template_block, thread_single_edge): Likewise.
15947         (mark_threaded_blocks): Use THREAD_TARGET.
15948
15949 2011-05-06  Alan Modra  <amodra@gmail.com>
15950
15951         PR target/48900
15952         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15953         const0_rtx as the arg to the dummy __tls_get_addr libcall.
15954
15955 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
15956
15957         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15958         constraint modifier to "r".
15959
15960 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
15961
15962         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15963         fall through for OPT_mcmodel_.
15964
15965 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15966
15967         * config/s390/s390.c (s390_asm_trampoline_template): Comment
15968         instruction sizes.
15969         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15970
15971 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15972
15973         PR target/47930
15974         * config/arm/arm.opt (marm): Document it.
15975         (mthumb): Reject negative variant.
15976
15977 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
15978
15979         PR target/48898
15980         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15981         Fix typo in "ccvt" variable name.
15982
15983 2011-05-06  Tristan Gingold  <gingold@adacore.com>
15984
15985         PR target/48895
15986         * config/vms/vms-ar.c (main): Remove cwd variable.
15987
15988 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
15989
15990         PR debug/48902
15991         * var-tracking.c (prepare_call_arguments): Move else before #endif.
15992
15993 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
15994
15995         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15996         * gimplify.c (gimplify_switch_expr): Likewise.
15997         * omp-low.c (expand_omp_sections): Likewise.
15998         * tree-eh.c (lower_try_finally_switch): Likewise.
15999         (lower_eh_dispatch): Likewise.
16000         * tree.h (build_case_label): Declare.
16001         * tree.c (build_case_label): Define.
16002
16003 2011-05-05  Jason Merrill  <jason@redhat.com>
16004
16005         PR c++/40975
16006         * tree-inline.c (copy_tree_r): Use copy_statement_list.
16007         (copy_statement_list): Don't recurse.
16008         * stor-layout.c (copy_self_referential_tree_r): Don't allow
16009         STATEMENT_LIST.
16010
16011 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16012
16013         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
16014         through from -mfpu= handling.
16015         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
16016
16017 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
16018
16019         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
16020         POST_MODIFY.
16021
16022 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
16023
16024         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
16025         for 11.31.
16026         (hppa[12]*-*-hpux11*): Ditto.
16027         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
16028         * config/ia64/hpux-unix2003.h: New.
16029         * config/pa/pa-hpux1131.opt: New.
16030         * config/pa/pa-hpux1131.h: New.
16031         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
16032         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
16033         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
16034
16035 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16036
16037         PR debug/48853
16038         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
16039         instead of mode as 3rd argument to recursive call.
16040         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
16041         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
16042         VOIDmode.
16043         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
16044         don't give up if mode is Pmode and mem_mode is not VOIDmode.
16045         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
16046         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
16047
16048 2011-05-05  Julian Brown  <julian@codesourcery.com>
16049
16050         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
16051         parenthesis in D-register case.
16052
16053 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16054
16055         * opt-functions.awk (var_type_struct): Handle Enum options.
16056         * optc-gen.awk: Don't check range of variables of character type.
16057         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
16058         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
16059         rs6000_sdata_name, rs6000_explicit_options): Remove.
16060         (rs6000_option_override_internal): Check for -malign-power here.
16061         Use global_options_set instead of rs6000_explicit_options.
16062         (rs6000_parse_fpu_option): Remove.
16063         (rs6000_handle_option): Access variables via opts and opts_set
16064         pointers.  Use error_at and warning_at.  Add fall-through
16065         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
16066         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
16067         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
16068         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
16069         here.  Don't use rs6000_parse_fpu_option.
16070         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
16071         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
16072         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
16073         (mrecip=): Use Var.
16074         (mspe): Use Var and Save.
16075         (mtraceback=): Use Enum and Var.
16076         (rs6000_traceback_type): New Enum and EnumValue entries.
16077         (mfloat-gprs=): Use Enum, Var and Save.
16078         (rs6000_float_gprs): New Enum and EnumValue entries.
16079         (mlong-double-): use Var and Save.
16080         (msched-costly-dep=, minsert-sched-nops=): Use Var.
16081         (malign-): Use Enum and Var.
16082         (rs6000_alignment_flags): New Enum and EnumValue entries.
16083         (mfpu=): Use Enum.
16084         (fpu_type_t): New Enum and EnumValue entries.
16085         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16086         global_options_set instead of rs6000_explicit_options.
16087         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16088         global_options_set instead of rs6000_explicit_options.
16089         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16090         global_options_set instead of rs6000_explicit_options.
16091         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
16092         global_options_set instead of rs6000_explicit_options.
16093         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
16094         global_options_set instead of rs6000_explicit_options.
16095         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16096         global_options_set instead of rs6000_explicit_options.
16097         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
16098         definition.
16099         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16100         global_options_set instead of rs6000_explicit_options.
16101         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
16102         (rs6000_cmodel): New Enum and EnumValue entries.
16103         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
16104         global_options_set instead of rs6000_explicit_options.
16105         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
16106         (mtls-size=): Use Enum and Var.
16107         (rs6000_tls_size): New Enum and EnumValue entries.
16108
16109 2011-05-05  Michael Matz  <matz@suse.de>
16110
16111         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
16112         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
16113         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
16114         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
16115         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
16116         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
16117         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
16118         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
16119         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
16120         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
16121         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
16122         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
16123         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
16124         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
16125         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
16126         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
16127
16128 2011-05-05  Richard Guenther  <rguenther@suse.de>
16129
16130         * expmed.c (expand_variable_shift): Rename to ...
16131         (expand_shift_1): ... this.  Take an expanded shift amount.
16132         For rotates recurse directly not building trees for the shift amount.
16133         (expand_variable_shift): Wrap around expand_shift_1.
16134         (expand_shift): Adjust.
16135
16136 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
16137
16138         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
16139
16140 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16141
16142         * tree.h (get_pending_sizes): Remove prototype.
16143         (put_pending_size): Likewise.
16144         (put_pending_sizes): Likewise.
16145         * stor-layout.c (pending_sizes): Delete.
16146         (get_pending_sizes): Likewise.
16147         (put_pending_size): Likewise.
16148         (put_pending_sizes): Likewise.
16149         (variable_size): Do not call put_pending_size and tidy up.
16150         * function.h (struct function): Remove dont_save_pending_sizes_p.
16151         * lto-streamer-in.c (input_function): Do not stream it.
16152         * lto-streamer-out.c (output_function): Likewise.
16153         * tree-inline.c (initialize_cfun): Do not copy it.
16154         * c-decl.c (store_parm_decls): Do not set it.
16155         * omp-low.c (create_task_copyfn): Likewise.
16156         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16157
16158 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
16159
16160         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
16161         conditions.
16162         (*movdf_internal): Ditto.
16163         (*movdf_internal_nointeger): Ditto.
16164         (*movsf_internal): Ditto.
16165
16166 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
16167
16168         * c-decl.c (finish_decl): Don't call get_pending_sizes.
16169         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
16170         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
16171         (c_variable_size): Remove.
16172         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
16173         call put_pending_sizes.
16174         (get_parm_info): Add parameter expr.  Use it to set
16175         arg_info->pending_sizes.
16176         (store_parm_decls): Use arg_info->pending_sizes instead or calling
16177         get_pending_sizes.
16178         * c-parser.c (c_parser_parms_declarator): Update call to
16179         c_parser_parms_list_declarator.
16180         (c_parser_parms_list_declarator): Take parameter expr.  Update
16181         call to push_parm_decl.  Update recursive call.  Don't call
16182         get_pending_sizes.  Update calls to get_parm_info.
16183         (c_parser_objc_method_definition): Update calls to
16184         c_parser_objc_method_decl and objc_start_method_definition.
16185         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
16186         (c_parser_objc_method_decl): Add parameter expr.  Update call to
16187         grokparm.
16188         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
16189         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
16190         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
16191
16192 2011-05-05  Michael Hope  <michael.hope@linaro.org>
16193
16194         PR pch/45979
16195         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
16196         __ARM_EABI__ hosts.
16197
16198 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16199
16200         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16201         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
16202         (spu_output_mi_thunk): New function.
16203
16204 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16205
16206         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
16207         targetm.asm_out.print_operand.
16208         * config/sol2.c: Include target.h.
16209
16210 2011-05-04  Jan Hubicka  <jh@suse.cz>
16211
16212         * ipa-inline.c (reset_edge_caches): New function.
16213         (update_caller_keys): Add check_inlinablity_for; do not
16214         reset edge caches; remove now unnecesary loop.
16215         (update_callee_keys): Add comments; reset node_growth_cache of callee.
16216         (update_all_callee_keys): Likewise.
16217         (inline_small_functions): Sanity check cache; update code
16218         recomputing it.
16219
16220 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
16221
16222         PR rtl-optimization/47612
16223         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
16224         as the last insn of the sequence to be moved.
16225
16226 2011-05-04  Tobias Burnus  <burnus@net-b.de>
16227
16228         PR fortran/48864
16229         * doc/invoke.texi (Ofast): Document that it
16230         enables Fortran's -fno-protect-parens.
16231
16232 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16233
16234         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
16235
16236 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16237
16238         * stor-layout.c (variable_size): Do not issue errors.
16239
16240 2011-05-04  Richard Guenther  <rguenther@suse.de>
16241
16242         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
16243         for array-ref indices.
16244         (tree_coverage_counter_addr): Likewise.
16245         (build_fn_info_type): Use size_int for index types.
16246         (build_gcov_info): Likewise.
16247
16248 2011-05-04  Richard Guenther  <rguenther@suse.de>
16249
16250         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
16251         to build_int_cst.
16252         * c-typeck.c (really_start_incremental_init): Use bitsize_int
16253         for constructor indices.
16254         (push_init_level): Likewise.
16255
16256 2011-05-04  Richard Guenther  <rguenther@suse.de>
16257
16258         * explow.c (promote_mode): Move variable declarations before code.
16259
16260 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
16261
16262         * tree.h (build_function_type_array): Declare.
16263         (build_varargs_function_type_array): Declare.
16264         (build_function_type_vec, build_varargs_function_type_vec): Define.
16265         * tree.c (build_function_type_array_1): New function.
16266         (build_function_type_array): New function.
16267         (build_varargs_function_type_array): New function.
16268
16269 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
16270
16271         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
16272         before setting STMT_VINFO_TYPE.
16273
16274 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16275
16276         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
16277         instead of spu_pass_by_reference.
16278
16279 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16280
16281         * calls.c (emit_library_call_value_1): Invoke
16282         promote_function_mode hook on libcall arguments.
16283         * explow.c (promote_function_mode, promote_mode): Handle TYPE
16284         argument being NULL.
16285         * targhooks.c (default_promote_function_mode): Lisewise.
16286         * config/s390/s390.c (s390_promote_function_mode): Likewise.
16287         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
16288
16289         * doc/tm.texi: Document that TYPE argument might be NULL.
16290
16291 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16292
16293         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
16294
16295 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16296
16297         From Bernd Schmidt
16298         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
16299
16300 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16301
16302         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
16303         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
16304         Move ...
16305         * mips-tfile.c: ... here.
16306         Don't include coretypes.h, tm.h, filenames.h.
16307         (saber_stop): Remove definition and all calls.
16308         [__SABER__]: Remove.
16309         (__LINE__): Remove default.
16310         (Size_t, Ptrdiff_t): Remove definitions.
16311         Replace by size_t, ptrdiff_t.
16312         [!MIPS_DEBUGGING_INFO]: Remove.
16313         (SHASH_SIZE, THASH_SIZE): Remove defaults.
16314         (progname): Add const.
16315         (STATIC): Remove.
16316         Replace all uses by static.
16317         (ALIGN_SYMTABLE_OFFSET): Remove default.
16318         * mips-tdump.c: Don't include coretypes.h, tm.h.
16319         Remove !MIPS_IS_STAB guard.
16320         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
16321         $(TM_H), filenames.h dependencies.
16322         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
16323
16324 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16325
16326         From Jie Zhang
16327         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
16328         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
16329
16330 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16331
16332         From Bernd Schmidt
16333         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
16334         account and save/restore RETS.
16335         (PROFILE_BEFORE_PROLOGUE): Define.
16336         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
16337         the push insn to use predecrement.
16338
16339 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
16340
16341         From Jie Zhang
16342         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
16343
16344 2011-05-04  Nick Clifton  <nickc@redhat.com>
16345
16346         * config/mn10300/mn10300.c: Include cfgloop.h.
16347         (DUMP): New macro.
16348         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
16349         Lcc or a FLcc insn into the instruction stream.
16350         (mn10300_block_contains_call): New function.  Returns true if the
16351         given basic block contains a CALL insn.
16352         (mn10300_loop_contains_call_insn): New function.  Returns true if
16353         the given loop contains a CALL insn.
16354         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
16355         to use the SETLB and Lcc or FLcc insns.
16356         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
16357         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
16358         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
16359         disable the SETLB optimization.
16360         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
16361         __SETLB__ or __NO_SETLB__.
16362         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
16363         (movsf_internal): Handle MDR register.
16364         (cmpsi): Make visible.
16365         (setlb): New pattern.
16366         (Lcc): New pattern.
16367         (FLcc): New pattern.
16368
16369 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
16370
16371         PR target/48860
16372         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
16373         for reg<->xmm moves.
16374         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
16375         (vec_concatv2di_rex64_sse): Ditto.
16376         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
16377         (*vec_extractv2di_1_rex64): Ditto.
16378
16379         Revert:
16380         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16381
16382         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16383         reg<->xmm moves.
16384         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
16385
16386 2011-05-04  Richard Guenther  <rguenther@suse.de>
16387
16388         * tree.h (int_const_binop): Remove notrunc argument.
16389         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
16390         create integer constants that are properly truncated.
16391         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
16392         (const_binop): Remove zero notrunc argument to int_const_binop.
16393         (size_binop_loc): Likewise.
16394         (fold_div_compare): Likewise.
16395         (maybe_canonicalize_comparison_1): Likewise.
16396         (fold_comparison): Likewise.
16397         (fold_binary_loc): Likewise.
16398         (multiple_of_p): Likewise.
16399         * expr.c (store_constructor): Likewise.
16400         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16401         (maybe_fold_stmt_addition): Likewise.
16402         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
16403         * stor-layout.c (layout_type): Likewise.
16404         * tree-data-ref.c (tree_fold_divides_p): Likewise.
16405         * tree-sra.c (build_ref_for_offset): Likewise.
16406         (build_user_friendly_ref_for_offset): Likewise.
16407         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
16408         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
16409         * tree-ssa-loop-niter.c (inverse): Likewise.
16410         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16411         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
16412         * tree-switch-conversion.c (check_range): Likewise.
16413         (build_constructors): Likewise.
16414         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16415         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
16416         (extract_range_from_assert): Likewise.
16417         (vrp_int_const_binop): Likewise.
16418         (extract_range_from_binary_expr): Likewise.
16419         (extract_range_from_unary_expr): Likewise.
16420         (check_array_ref): Likewise.
16421         (find_case_label_range): Likewise.
16422         (simplify_div_or_mod_using_ranges): Likewise.
16423         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
16424         comparing case labels for merging.
16425
16426 2011-05-03  Mark Wielaard  <mjw@redhat.com>
16427
16428         * dwarf2out.c (debug_str_hash_forced): Removed.
16429         (gen_label_for_indirect_string): Removed.
16430         (get_debug_string_label): Removed.
16431         (AT_string_form): Generate label directly.
16432         (output_indirect_string): Test indirect_string_node for
16433         DW_FORM_strp instead of checking label and refcount.
16434         (prune_indirect_string): Removed.
16435         (prune_unused_types): Don't check debug_str_hash_forced or
16436         call prune_indirect_string.
16437
16438 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16439
16440         PR other/48093
16441         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
16442
16443 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
16444
16445         PR debug/47994
16446         PR debug/47919
16447         * combine.c (try_combine): Skip debug insns at m_split tests.
16448
16449 2011-04-26  Mark Wielaard  <mjw@redhat.com>
16450
16451         PR42288
16452         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
16453         when info_section_emitted.
16454
16455 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
16456
16457         * config/mips/mips-opts.h: New.
16458         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
16459         to mips-opts.h.
16460         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
16461         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
16462         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
16463         via opts pointer.
16464         * config/mips/mips.h (enum mips_code_readable_setting): Move to
16465         mips-opts.h.
16466         (mips_abi, mips_code_readable): Don't declare.
16467         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
16468         (mabi=): Use Enum and Var.
16469         (mips_abi): New Enum and EnumValue entries.
16470         (mcode-readable=): Use Enum and Var.
16471         (mips_code_readable_setting): New Enum and EnumValue entries.
16472         (mr10k-cache-barrier=): Use Enum and Var.
16473         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
16474
16475 2011-05-03  Jan Hubicka  <jh@suse.cz>
16476
16477         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
16478         replace hash by pointer map.
16479         (cgraph_node_set_element_def, cgraph_node_set_element,
16480         const_cgraph_node_set_element, varpool_node_set_element_def,
16481         varpool_node_set_element, const_varpool_node_set_element): Remove.
16482         (free_cgraph_node_set, free_varpool_node_set): New function.
16483         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
16484         * tree-emutls.c: Free varpool node set.
16485         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
16486         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16487         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
16488         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16489         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
16490         Move here from ipa.c; implement using pointer_map
16491         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
16492         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
16493         debug_cgraph_node_set, varpool_node_set_new,
16494         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
16495         dump_varpool_node_set, debug_varpool_node_set):
16496         Move to ipa-uitls.c.
16497         * passes.c (ipa_write_summaries): Update.
16498
16499 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16500
16501         From Mike Frysinger:
16502         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
16503         bf542/bf544/bf547/bf548/bf549.
16504
16505 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16506
16507         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
16508
16509 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16510
16511         From Bernd Schmidt:
16512         * config/bfin/bfin.md (MOVCC): New mode_macro.
16513         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
16514         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
16515         comments from generated assembly.
16516
16517 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16518
16519         From Bernd Schmidt
16520         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
16521         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
16522         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
16523         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
16524         * config/bfin/lib1funcs.asm (___muldi3): New function.
16525
16526 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16527
16528         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
16529         build_function_type_list instead of build_function_type.
16530         Rearrange initialization of `args' to do so.
16531
16532 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16533
16534         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
16535         instead of build_function_type.
16536
16537 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16538
16539         * config/rs6000/rs6000.c (spe_init_builtins): Call
16540         build_function_type_list instead of build_function_type.
16541         (paired_init_builtins, altivec_init_builtins): Likewise.
16542         (builtin_function_type): Likewise.
16543
16544 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16545
16546         * config/sh/sh.c (sh_media_init_builtins): Call
16547         build_function_type_list instead of build_function_type.
16548
16549 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16550
16551         * config/sparc/sparc.c (sparc_file_end): Call
16552         build_function_type_list instead of build_function_type.
16553
16554 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16555
16556         * config/alpha/alpha.c (alpha_init_builtins): Call
16557         build_function_type_list instead of build_function_type.
16558
16559 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16560
16561         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
16562         build_function_type_list instead of build_function_type.
16563
16564 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16565
16566         * config/iq2000/i2000.c (iq2000_init_builtins): Call
16567         build_function_type_list instead of build_function_type.
16568         Delete `endlink' variable.
16569
16570 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16571
16572         * config/avr/avr.c (avr_init_builtins): Call
16573         build_function_type_list instead of build_function_type.
16574
16575 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16576
16577         * config/picochip/picochip.c (picochip_init_builtins): Call
16578         build_function_type_list instead of build_function_type.
16579         Delete `endlink' variable.
16580
16581 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
16582
16583         * config/bfin/bfin.c (bfin_init_builtins): Call
16584         build_function_type_list instead of build_function_type.
16585
16586 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16587
16588         From Bernd Schmidt
16589         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
16590         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
16591
16592 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16593
16594         From Jie Zhang:
16595         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
16596         libbffastfp overrides libgcc when -mfast-fp.
16597
16598 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16599
16600         Originally from Bernd Schmidt
16601         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
16602         * config/bfin/bfin.c (override_options): Test it and error if
16603         TARGET_FDPIC.
16604
16605 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
16606
16607         Originally From Bernd Schmidt
16608         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
16609         FD-PIC.
16610
16611 2011-05-03  Jeff Law  <law@redhat.com>
16612
16613         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
16614         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
16615         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
16616         than accessing AUX field directly.  Free the AUX field before
16617         clearing it.
16618         (thread_block, thread_through_loop_header): Likewise.
16619         (thread_single_edge, mark_threaded_blocks): Likewise.
16620         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
16621         (register_jump_thread): Do not attempt to thread to a NULL edge.
16622
16623 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16624
16625         * function.c (init_function_start): Call decide_function_section.
16626         * varasm.c (decide_function_section): New function.
16627         (assemble_start_function): When not using
16628         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
16629         or first_function_block_is_cold.
16630         * rtl.h (decide_function_section): Declare.
16631
16632 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
16633             Jakub Jelinek  <jakub@redhat.com>
16634
16635         PR target/48774
16636         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
16637         only succeed if req_mode is the same as set_mode.
16638
16639 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
16640
16641         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
16642         * genemit.c (gen_exp): Handle RETURN.
16643         * emit-rtl.c (verify_rtx_sharing): Likewise.
16644         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
16645         * rtl.c (copy_rtx): RETURN is shared.
16646         * rtl.h (enum global_rtl_index): Add GR_RETURN.
16647         (ret_rtx): New.
16648         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
16649         * config/s390/s390.c (s390_emit_epilogue): Likewise.
16650         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
16651         * config/cris/cris.c (cris_expand_return): Likewise.
16652         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
16653         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
16654         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
16655         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
16656         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
16657         Likewise.
16658         * config/v850/v850.c (expand_epilogue): Likewise.
16659         * config/bfin/bfin.c (bfin_expand_call): Likewise.
16660         * config/arm/arm.md (epilogue): Likewise.
16661         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
16662         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
16663         variable to ret_reg.
16664
16665 2011-05-03  Richard Guenther  <rguenther@suse.de>
16666
16667         PR lto/48846
16668         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
16669         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
16670         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16671
16672 2011-05-03  Richard Guenther  <rguenther@suse.de>
16673
16674         * c-decl.c (grokdeclarator): Instead of looking at
16675         TREE_OVERFLOW check if the constant fits in the index type.
16676
16677 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16678
16679         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
16680         (vec_store_lanes<mode><mode>): Likewise.
16681
16682 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16683
16684         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
16685         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
16686         convert_optab_index values.
16687         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
16688         * genopinit.c (optabs): Initialize the new optabs.
16689         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
16690         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
16691         (expand_STORE_LANES): New functions.
16692         * tree.h (build_array_type_nelts): Declare.
16693         * tree.c (build_array_type_nelts): New function.
16694         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
16695         (vect_model_load_cost): Likewise.
16696         (vect_store_lanes_supported, vect_load_lanes_supported)
16697         (vect_record_strided_load_vectors): Declare.
16698         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
16699         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
16700         (vect_transform_strided_load): Split out statement recording into...
16701         (vect_record_strided_load_vectors): ...this new function.
16702         * tree-vect-stmts.c (create_vector_array, read_vector_array)
16703         (write_vector_array, create_array_ref): New functions.
16704         (vect_model_store_cost): Add store_lanes_p argument.
16705         (vect_model_load_cost): Add load_lanes_p argument.
16706         (vectorizable_store): Try to use store-lanes functions for
16707         interleaved stores.
16708         (vectorizable_load): Likewise load-lanes and loads.
16709         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
16710         to vect_model_store_cost.
16711         (vect_build_slp_tree): Likewise vect_model_load_cost.
16712
16713 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
16714
16715         * hooks.h (hook_bool_mode_uhwi_false): Declare.
16716         * hooks.c (hook_bool_mode_uhwi_false): New function.
16717         * target.def (array_mode_supported_p): New hook.
16718         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
16719         * doc/tm.texi: Regenerate.
16720         * stor-layout.c (mode_for_array): New function.
16721         (layout_type): Use it.
16722         * config/arm/arm.c (arm_array_mode_supported_p): New function.
16723         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
16724
16725 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
16726
16727         PR target/48723
16728         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
16729         for -fstack-check if the size to allocate is negative.
16730
16731 2011-05-02  Lawrence Crowl  <crowl@google.com>
16732
16733         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
16734         (timevar_cond_start): New for starting a timer only when it is not
16735         already running.
16736         (timevar_cond_stop): New for stopping a timer when it was not already
16737         running.
16738
16739         * timevar.c (timevar_stop): Enable start/stop timers to start again.
16740         (timevar_cond_start): New as above.
16741         (timevar_cond_stop): New as above.
16742
16743         * timevar.def: Add start/stop timers for compiler phases,
16744         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
16745         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
16746         and TV_PHASE_FINALIZE.
16747         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
16748         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
16749         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
16750         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
16751         Make unused TV_OVERLOAD into a start/stop timer.
16752
16753         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
16754         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
16755         to indicate that they are start/stop timers.
16756
16757         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
16758         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
16759         Move initialization to do_compile.
16760         (do_compile): Add initialization from above.
16761         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
16762
16763         * c-decl.c (c_write_global_declarations): Add start/stop of
16764         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
16765
16766         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
16767         or TV_PARSE_INLINE, as appropriate.
16768         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
16769         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
16770
16771 2011-05-02  Jason Merrill  <jason@redhat.com>
16772
16773         PR c++/40975
16774         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
16775
16776 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
16777
16778         PR c/35445
16779         * c-decl.c (finish_decl): Only create a composite if the types are
16780         compatible.
16781
16782 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
16783
16784         * config/fr30/fr30-protos.h (Mmode): Don't define.
16785         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
16786         definition where used.
16787         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
16788         define.  Expand definitions where used.
16789         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
16790         Expand definitions where used.
16791         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
16792         rx_function_arg, rx_function_arg_advance,
16793         rx_function_arg_boundary): Expand definitions of those macros.
16794         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
16795         definition where used.
16796
16797 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16798
16799         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
16800         reg<->xmm moves.
16801         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
16802         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
16803         with *movv2sf_internal_rex64_avx.
16804         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
16805         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
16806         Use %v prefix in insn mnemonic to handle TARGET_AVX.
16807         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
16808         "vex" in "prefix" attribute calculation.
16809         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
16810
16811 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
16812
16813         PR target/47951
16814         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
16815         inputs match the output.
16816
16817 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
16818
16819         PR target/47955
16820         * config/m68k/m68k.c (m68k_expand_prologue): Set
16821         current_function_static_stack_size.
16822
16823 2011-05-02   Jan Hubicka  <jh@suse.cz>
16824
16825         * lto-streamer.c (lto_streamer_cache_insert_1,
16826         lto_streamer_cache_lookup, lto_streamer_cache_create,
16827         lto_streamer_cache_delete): Use pointer map instead of hashtable.
16828         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
16829
16830 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
16831
16832         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
16833         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
16834         config/m68k/t-opts: New files.
16835         * config/m68k/m68k-tables.opt: New file (generated).
16836         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
16837         extra_options and m68k/t-opts to tmake_file.
16838         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
16839         (all_isas): Initialize using m68k-isas.def.
16840         (all_microarchs): Initialize using m68k-microarchs.def.
16841         (m68k_find_selection): Remove.
16842         (m68k_handle_option): Don't assert that global structures are in
16843         use.  Use error_at.  Access variables via opts pointer.  Don't
16844         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
16845         directly for -m68020-40 and -m68020-60.
16846         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
16847         m68k_tune_entry here.
16848         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
16849         to m68k-opts.h.
16850         (m68k_library_id_string): Remove declaration.
16851         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
16852         (m68k_library_id_string): New Variable.
16853         (march=, mcpu=, mtune=): Use Enum and Var.
16854
16855 2011-05-02  Richard Guenther  <rguenther@suse.de>
16856
16857         * varasm.c (output_constructor_regular_field): Compute zero-based
16858         index with double-ints.  Make sure to ICE instead of producing
16859         wrong code.
16860         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
16861         in asserts.  Properly use a signed type.
16862
16863 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
16864
16865         * config/i386/sse.md (V): New mode iterator.
16866         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
16867         TARGET_SSE2.
16868         (V_256): Rename from AVX256MODE.
16869         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
16870         condition to all users.
16871         (VF1): Ditto.
16872         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
16873         condition to all users.
16874         (VF_128): Make V4SF mode unconditional.
16875         (VF_256): Rename from AVX256MODEF2P.
16876         (VI4F_128): Rename from SSEMODE4S.
16877         (VI8F_128): Rename from SSEMODE2D.
16878         (VI4F_256): Rename from AVX256MODE8P.
16879         (VI8F_256): Rename from AVX256MODE4P.
16880         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
16881         (ssescalarmodesuffix): Remove SF and DF modes.
16882         (SSEMODE124): Remove.
16883         (SSEMODE1248): Ditto.
16884         (SSEMODEF2P): Ditto.
16885         (AVXMODEF2P): Ditto.
16886         (AVXMODEFDP): Ditto.
16887         (AVXMODEFSP): Ditto.
16888         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
16889         unconditional.
16890         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
16891         unconditional.
16892         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
16893         xop_pcmov_<mode>256.  Use V mode iterator.
16894
16895         Adjust RTX patterns globally for renamed mode attributes.
16896
16897 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16898
16899         * haifa-sched.c (sched_emit_insn): Emit insn before first
16900         non-scheduled insn.  Inform back-end about new insn.  Add
16901         new insn to scheduled_insns list.
16902
16903 2011-05-02  Richard Guenther  <rguenther@suse.de>
16904
16905         PR tree-optimization/48822
16906         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16907         (process_scc): Indicate which iteration we start.
16908
16909 2011-05-02  Jan Hubicka  <jh@suse.cz>
16910
16911         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16912         (lto_section_overrun): New.
16913         * lto-section-out.c (append_block): Rename to ...
16914         (lto_append_block): ... this one; export.
16915         (lto_output_1_stream): Move lto lto-streamer.h
16916         (lto_output_data_stream): Update.
16917         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16918         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16919         functions.
16920
16921 2011-05-02  Richard Guenther  <rguenther@suse.de>
16922
16923         * tree.c (tree_code_counts): New global array.
16924         (record_node_allocation_statistics): Count individual tree codes.
16925         (dump_tree_statistics): Dump individual code stats.
16926
16927 2011-05-01  Jan Hubicka  <jh@suse.cz>
16928
16929         * ipa-inline.c (caller_growth_limits): Fix thinko when
16930         looking for largest stack frame.
16931         * ipa-inline.h (dump_inline_summary): Declare.
16932         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16933         on stack usage.
16934         (dump_inline_summary): Export.
16935         (debug_inline_summary): Declare as DEBUG_FUNCTION.
16936
16937 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
16938
16939         * reginfo.c (memory_move_cost): Change rclass argument type form
16940         'enum reg_class' to reg_class_t.
16941         * reload.h (memory_move_cost): Update prototype.
16942         * postreload.c reload_cse_simplify_set): Change type dclass var to
16943         reg_class_t.
16944         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16945         Update prototype.
16946         (ira_allocate_and_set_costs): Change aclass argument type form
16947         'enum reg_class' to reg_class_t.
16948         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16949         Change aclass argument type to reg_class_t.
16950         (update_conflict_hard_reg_costs): Change type aclass and pref vars
16951         to reg_class_t.
16952         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16953         memory_move_cost call.
16954
16955         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16956         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16957         Change type tmp var to reg_class_t.
16958
16959 2011-04-30  Jan Hubicka  <jh@suse.cz>
16960
16961         * ipa-inline.c (can_inline_edge_p): Disregard limits when
16962         inlining into function with flatten attribute.
16963         (want_inline_small_function_p): Be more realistic about inlining
16964         cold calls where callee size grows.
16965
16966 2011-04-30  Jan Hubicka  <jh@suse.cz>
16967
16968         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16969         flags.
16970
16971 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
16972
16973         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16974         PRINT_OPERAND_PUNCT_VALID_P): Remove.
16975         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16976         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16977         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16978         (print_operand): Rename to...
16979         (sparc_print_operand): ...this. Make static. Adjust
16980         sparc_print_operand function call.
16981         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16982         functions.
16983
16984 2011-04-30  Jan Hubicka  <jh@suse.cz>
16985
16986         PR middle-end/48752
16987         * ipa-inline.c (early_inliner): Disable when doing late
16988         addition of function.
16989
16990 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
16991
16992         * dwarf2out.c (get_address_mode): New inline.
16993         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16994         if not dwarf_strict emit
16995         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16996         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16997         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
16998         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16999         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
17000         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
17001         mem_loc_descriptor callers.
17002         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17003         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
17004         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
17005         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
17006         (base_types): New variable.
17007         (get_base_type_offset, calc_base_type_die_sizes,
17008         base_type_for_mode, mark_base_types, base_type_cmp,
17009         move_marked_base_types): New functions.
17010         (calc_die_sizes): Assert that die_offset is 0 or equal to
17011         next_die_offset.
17012         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
17013         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
17014         callers.  If not dwarf_strict, call mem_loc_descriptor even for
17015         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
17016         (gen_subprogram_die): Don't give up on call site parameters
17017         with non-integral or large integral modes.  Adjust
17018         mem_loc_descriptor callers.
17019         (prune_unused_types): Call prune_unused_types_mark on base_types
17020         vector entries.
17021         (resolve_addr): Call mark_base_types.
17022         (dwarf2out_finish): Call move_marked_base_types.
17023
17024         PR tree-optimization/48809
17025         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
17026         type.
17027         (gen_inbound_check): Don't compute index_expr - range_min in utype
17028         again, instead reuse SSA_NAME initialized in build_arrays.
17029         Remove two useless gsi_for_stmt calls.
17030
17031 2011-04-29  Jeff Law  <law@redhat.com>
17032
17033         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
17034
17035 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17036
17037         * cgraph.h (cgraph_postorder): Remove declaration.
17038         * ipa-utils.h (ipa_free_postorder_info): Declare.
17039         (ipa_reverse_postorder): Likewise.
17040         * cgraphunit.c: Include ipa-utils.h.
17041         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
17042         * ipa-inline.c: Include ipa-utils.h.
17043         (ipa_inline): Update call to ipa_reverse_postorder.
17044         * ipa-pure-const.c (propagate_pure_const): Update call to
17045         ipa_reduced_postorder and ipa_print_order.  Call
17046         ipa_free_postorder_info to clean up.
17047         (propagate_nothrow): Likewise.
17048         * ipa-reference.c (propagate): Removed a useless call to
17049         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
17050         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
17051         * ipa.c: Include ipa-utils.h.
17052         (ipa_profile): Update call to ipa_reverse_postorder.
17053         (cgraph_postorder): Moved to...
17054         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
17055         (ipa_utils_print_order): Renamed to ipa_print_order.
17056         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
17057         comments.
17058         (ipa_free_postorder_info): New function.
17059         * passes.c: Include ipa-utils.h.
17060         (do_per_function_toporder): Update call to ipa_reverse_postorder.
17061         (ipa_write_summaries): Likewise.
17062         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
17063         (cgraphunit.o): Likewise.
17064         (ipa.o): Likewise.
17065         (ipa-inline.o): Likewise.
17066
17067 2011-04-29  Jan Hubicka  <jh@suse.cz>
17068
17069         * gcc.dg/tree-ssa/inline-10.c: New testcase.
17070         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
17071         * ipa-inline.h (clause_t): Turn into unsigned int.
17072         * ipa-inline-analysis.c (add_clause): Do more simplification.
17073         (and_predicates): Shortcut more cases.
17074         (predicates_equal_p): Move forward; check that clauses are properly
17075         ordered.
17076         (or_predicates): Shortcut more cases.
17077         (edge_execution_predicate): Rewrite as...
17078         (set_cond_stmt_execution_predicate): ... this function; handle
17079         __builtin_constant_p.
17080         (set_switch_stmt_execution_predicate): New .
17081         (compute_bb_predicates): New.
17082         (will_be_nonconstant_predicate): Update TODO.
17083         (estimate_function_body_sizes): Use compute_bb_predicates
17084         and free them later, always try to estimate if stmt is constant.
17085         (estimate_time_after_inlining, estimate_size_after_inlining):
17086         Gracefully handle optimized out edges.
17087         (read_predicate): Fix off by one error.
17088
17089 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
17090
17091         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
17092
17093 2011-04-27  Xinliang David Li  <davidxl@google.com>
17094
17095         * tree-profile.c (init_ic_make_global_vars): Set
17096         tls attribute on ic vars.
17097         * coverage.c (coverage_end_function): Initialize
17098         function_list with zero.
17099
17100 2011-04-29  Richard Guenther  <rguenther@suse.de>
17101
17102         * builtins.c (fold_builtin_classify_type): Use integer_type_node
17103         for the type of the result.
17104         (fold_builtin_isascii): Likewise.
17105         (fold_builtin_toascii): Use integer_type_node where appropriate.
17106         (fold_builtin_logb): Likewise.
17107         (fold_builtin_frexp): Likewise.
17108         (fold_builtin_strstr): Likewise.
17109         (fold_builtin_strpbrk): Likewise.
17110         (fold_builtin_fputs): Likewise.
17111         (fold_builtin_sprintf): Likewise.
17112         (fold_builtin_snprintf): Likewise.
17113         (fold_builtin_printf): Likewise.
17114         (do_mpfr_remquo): Use a proper type for the assigned constant.
17115         (do_mpfr_lgamma_r): Likewise.
17116         * dwarf2out.c (resolve_one_addr): Use size_int.
17117         * except.c (init_eh): Likewise.
17118         (assign_filter_values): Use integer_type_node for filter values.
17119         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
17120         indices.
17121         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
17122         for EH region numbers.
17123         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
17124         for the shift amount.
17125
17126 2011-04-29  Richard Guenther  <rguenther@suse.de>
17127
17128         * expr.h (expand_shift): Rename to ...
17129         (expand_variable_shift): ... this.
17130         (expand_shift): Take a constant shift amount.
17131         * expmed.c (expand_shift): Rename to ...
17132         (expand_variable_shift): ... this.
17133         (expand_shift): New wrapper around expand_variable_shift.
17134         * expr.c (convert_move, emit_group_load_1, emit_group_store,
17135         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
17136         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
17137         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
17138         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
17139         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
17140         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
17141         emit_store_flag_1, emit_store_flag): Likewise.
17142         * builtins.c (expand_builtin_signbit): Likewise.
17143         * calls.c (load_register_parameters): Likewise.
17144         * function.c (assign_parm_setup_block): Likewise.
17145         * lower-subreg.c (resolve_shift_zext): Likewise.
17146         * optabs.c (widen_bswap, expand_abs_nojump,
17147         expand_one_cmpl_abs_nojump, expand_float): Likewise.
17148         * spu/spu.c (spu_expand_extv): Likewise.
17149         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
17150
17151 2011-04-29  Richard Guenther  <rguenther@suse.de>
17152
17153         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
17154         for the remapped region number.
17155         * predict.c (build_predict_expr): Use integer_type_node for the
17156         predict kind.
17157         * fold-const.c (fold_binary_loc): Use integer_type_node for
17158         the shift amount.  Use a proper type for the PLUS_EXPR operand.
17159
17160 2011-04-29  Michael Matz  <matz@suse.de>
17161
17162         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
17163         other trees that just builtins.
17164         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
17165
17166 2011-04-29  Richard Guenther  <rguenther@suse.de>
17167
17168         * tree-nested.c (get_trampoline_type): Use size_int.
17169         (get_nl_goto_field): Likewise.
17170         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
17171         for all indexes.
17172         (lower_eh_constructs_2): Likewise.
17173         (lower_resx): Likewise.
17174         (lower_eh_dispatch): Likewise.
17175         * tree-mudflap.c (mf_build_string): Use size_int.
17176         (mudflap_register_call): Use integer_type_node for the flag.
17177         (mudflap_enqueue_constant): Use size_int.
17178         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
17179         instead of rebuilding it.
17180
17181 2011-04-29  Richard Guenther  <rguenther@suse.de>
17182
17183         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
17184         Handle OBJ_TYPE_REF.
17185         (find_func_aliases_for_call): Use it more consistently.
17186
17187 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
17188
17189         * haifa-sched.c (last_nondebug_scheduled_insn): New.
17190         (rank_for_schedule): Use it.
17191         (schedule_block): Set it.
17192
17193 2011-04-28  David Li  <davidxl@google.com>
17194
17195         * tree.c (crc32_string): Use crc32_byte.
17196         (crc32_byte): New function.
17197         * tree.h (crc32_byte): New function.
17198         * gcov.c (read_graph_file): Handle new cfg_cksum.
17199         (read_count_file): Ditto.
17200         * profile.c (instrument_values): Ditto.
17201         (get_exec_counts): Ditto.
17202         (read_profile_edge_counts): Ditto.
17203         (compute_branch_probabilities): Ditto.
17204         (compute_value_histograms): Ditto.
17205         (branch_prob): Ditto.
17206         (end_branch_prob): Ditto.
17207         * coverage.c (read_counts_file): Ditto.
17208         (get_coverage_counts): Ditto.
17209         (tree_coverage_counter_addr): Ditto.
17210         (coverage_checksum_string): Ditto.
17211         (coverage_begin_output): Ditto.
17212         (coverage_end_function): Ditto.
17213         (build_fn_info_type): Ditto.
17214         (build_fn_info_value): Ditto.
17215         * libgcov.c (gcov_exit): Ditto.
17216         * gcov-dump.c (tag_function): Ditto.
17217         (compute_checksum): Remove.
17218
17219 2011-04-29  Alan Modra  <amodra@gmail.com>
17220
17221         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17222         unspec plus offset.  Tidy macho code.
17223
17224 2011-04-29  Martin Jambor  <mjambor@suse.cz>
17225
17226         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
17227         node instead of a decl.  Update all callers.
17228         * cgraph.h: Update declaration.
17229
17230 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
17231
17232         PR tree-optimization/48765
17233         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
17234         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
17235         to indicate if loop aware SLP is being used.  Scan the statements
17236         and update the vectorization factor according to the type of
17237         vectorization before statement analysis.
17238         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
17239         pass it to vect_analyze_loop_operations.
17240         (vectorizable_reduction): Set number of copies to 1 in case of pure
17241         SLP statement.
17242         * tree-vect-stmts.c (vectorizable_conversion,
17243         vectorizable_assignment, vectorizable_shift,
17244         vectorizable_operation, vectorizable_type_demotion,
17245         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
17246         Likewise.
17247         (vectorizable_condition): Move the check that it is not SLP
17248         vectorization before the number of copies check.
17249         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
17250         to vectorize the loop using SLP.
17251
17252 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
17253
17254         PR middle-end/48597
17255         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
17256         inline asm.
17257
17258 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
17259
17260         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
17261         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
17262         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17263         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17264         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
17265         linux*.h headers.
17266         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
17267         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17268         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17269         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17270         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
17271         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
17272         REG_NAME.
17273         * config/i386/linux.h (REG_NAME): Don't define.
17274         * config/i386/linux64.h (REG_NAME): Don't define.
17275         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
17276         Undefine before defining.
17277
17278 2011-04-28  Jan Hubicka  <jh@suse.cz>
17279
17280         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
17281         nonconstant_names array.
17282         (estimate_function_body_sizes): Build nonconstant_names array; handle
17283         BUILT_IN_CONSTANT_P.
17284
17285 2011-04-28  Richard Guenther  <rguenther@suse.de>
17286
17287         PR bootstrap/48804
17288         Revert
17289         2011-04-28  Richard Guenther  <rguenther@suse.de>
17290
17291         * tree-ssa-structalias.c (solve_constraints): Build succ graph
17292         as late as possible.
17293
17294 2011-04-28  Richard Guenther  <rguenther@suse.de>
17295
17296         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
17297         (debug_constraint): Do it here.
17298         (dump_constraints): And here.
17299         (rewrite_constraints): And here.
17300         (dump_constraint_edge): Remove.
17301         (dump_constraint_graph): Rewrite to produce DOT output.
17302         (solve_constraints): Build succ graph as late as possible.
17303         Dump constraint graphs before and after solving.
17304
17305 2011-04-28  Richard Guenther  <rguenther@suse.de>
17306
17307         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17308         New function split out from ...
17309         (find_func_aliases): ... here.  Call it.
17310         (find_func_aliases_for_call): Likewise.
17311
17312 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17313
17314         * internal-fn.h (internal_fn_name_array): Declare.
17315         (internal_fn_flags_array): Likewise.
17316
17317 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17318
17319         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
17320         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
17321         Move from sse.md.
17322         (ssemodefsuffix): Remove.
17323         (ssevecmodesuffix): New mode attribute.
17324         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
17325         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
17326         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
17327         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
17328         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
17329         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
17330         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
17331         ssemodesuffix mode attribute.
17332         (float splitters): Use ssevecmodesuffix mode attribute.
17333         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
17334         (sseinsmode): Rename from avxvecmode.
17335         (avxsizesuffix): Rename from avxmodesuffix.
17336         (sseintvecmode): Rename from avxpermvecmode.
17337         (ssedoublevecmode): Rename from ssedoublesizemode.
17338         (ssehalfvecmode): Rename from avxhalfvecmode.
17339         (ssescalarmode): Rename from avxscalarmode.
17340         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
17341         templates for ssemodesuffix mode attribute.
17342         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
17343         mode attribute.
17344
17345         Adjust RTX patterns globally for renamed mode attributes.
17346
17347 2011-04-27  Jan Hubcika  <jh@suse.cz>
17348
17349         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
17350         * ipa-inline-analysis.c: Include alloc-pool.h.
17351         (edge_predicate_pool): New.
17352         (trye_predicate_p): New function
17353         (false_predicate_p): New function.
17354         (add_clause): Sanity check that false clauses are "optimized";
17355         never add clauses to predicate that is already known to be false.
17356         (and_predicate): Use flase_predicate_p.
17357         (evaulate_predicate): Rename to ...
17358         (evaluate_predicate): ... this one; update all callers; assert
17359         that false is not listed among possible truths.
17360         (dump_predicate): Use true_predicate_p.
17361         (account_size_time): Use false_predicate_p.
17362         (evaulate_conditions_for_edge): Rename to ...
17363         (evaluate_conditions_for_edge) ... this one.
17364         (edge_set_predicate): New function.
17365         (inline_edge_duplication_hook): Duplicate edge predicates.
17366         (inline_edge_removal_hook): Free edge predicates.
17367         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
17368         (dump_inline_summary): Update.
17369         (estimate_function_body_sizes): Set edge predicates.
17370         (estimate_calls_size_and_time): Handle predicates.
17371         (estimate_callee_size_and_time): Update.
17372         (remap_predicate): Add toplev_predicate; update comment.
17373         (remap_edge_predicates): New function.
17374         (inline_merge_summary): Compute toplev predicate; update.
17375         (read_predicate): New function.
17376         (read_inline_edge_summary): Use it.
17377         (inline_read_section): Likewise.
17378         (write_predicate): New function.
17379         (write_inline_edge_summary): Use it.
17380         (inline_write_summary): Likewise.
17381         (inline_free_summary): Free alloc pool and edge summary vec.
17382
17383 2011-04-27  Richard Guenther  <rguenther@suse.de>
17384
17385         * tree-ssa-structalias.c (changed_count): Remove.
17386         (changed): Use a bitmap.
17387         (unify_nodes): Adjust.
17388         (do_sd_constraint): Likewise.
17389         (do_ds_constraint): Likewise.
17390         (do_complex_constraint): Likewise.
17391         (solve_graph): Likewise.
17392
17393 2011-04-27  Jan Hubicka  <jh@suse.cz>
17394
17395         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
17396
17397 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
17398
17399         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
17400         (avx_vperm2f128_*_operand): Ditto.
17401         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
17402         Use avx_vpermilp_parallel in insn condition.
17403         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
17404         Use avx_vperm2f128_parallel in insn condition.
17405
17406 2011-04-27  Richard Guenther  <rguenther@suse.de>
17407
17408         * Makefile.in (tree-ssa-structalias.o): Remove
17409         gt-tree-ssa-structalias.h dependency.
17410         (GTFILES): Remove tree-ssa-structalias.c.
17411         * tree.c (allocate_decl_uid): New function.
17412         (make_node_stat): Use it.
17413         (copy_node_stat): Likewise.
17414         * tree.h (allocate_decl_uid): Declare.
17415         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
17416         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
17417         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
17418         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
17419         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
17420         (struct heapvar_map): Likewise.
17421         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
17422         heapvar_insert): Likewise.
17423         (make_heapvar_for): Rename to ...
17424         (make_heapvar): ... this.  Simplify.
17425         (fake_var_decl_obstack): New global var.
17426         (build_fake_var_decl): New function.
17427         (make_constraint_from_heapvar): Adjust.
17428         (handle_lhs_call): Likewise.
17429         (create_function_info_for): Likewise.
17430         (intra_create_variable_infos): Likewise.
17431         (init_alias_vars): Allocate fake_var_decl_obstack.
17432         (init_alias_heapvars, delete_alias_heapvars): Remove.
17433         (compute_points_to_sets): Do not call init_alias_heapvars.
17434         (ipa_pta_execute): Likewise.
17435         (delete_points_to_sets): Free fake_var_decl_obstack.
17436
17437 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17438
17439         * config/spu/divmovti4.c (union qword_UTItype): New data type.
17440         (si_from_UTItype, si_to_UTItype): New functions.
17441         (__udivmodti4): Use them to implement type-punning.
17442         * config/spu/multi3.c (union qword_TItype): New data type.
17443         (si_from_TItype, si_to_TItype): New functions.
17444         (__multi3): Use them to implement type-punning.
17445
17446 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17447
17448         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
17449
17450 2011-04-27  Jan Hubicka  <jh@suse.cz>
17451
17452         * ipa-prop.c (function_insertion_hook_holder): New holder.
17453         (ipa_add_new_function): New function.
17454         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
17455         Register/deregister holder.
17456
17457 2011-04-27  Richard Guenther  <rguenther@suse.de>
17458
17459         PR tree-optimization/48772
17460         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
17461
17462 2011-04-27  Richard Guenther  <rguenther@suse.de>
17463
17464         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
17465         TARGET_MEM_REF handling.
17466
17467 2011-04-27  Nick Clifton  <nickc@redhat.com>
17468
17469         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
17470         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
17471         (REG_CLASS_NAMES): Likewise.
17472         (REG_CLASS_CONTENTS): Likewise.
17473         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17474         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
17475         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
17476         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
17477         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
17478         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
17479         duplicate register classes.
17480         (frv_class_likely_spilled_p): Likewise.
17481         (frv_register_move_cost): Likewise.
17482
17483         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
17484         end of the regno_reg_class array.
17485
17486 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
17487
17488         PR c/48742
17489         * c-typeck.c (build_binary_op): Don't wrap arguments if
17490         int_operands is true.
17491
17492 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
17493
17494         PR target/48767
17495         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
17496         targetm.calls.must_pass_in_stack for void type.
17497
17498 2011-04-26  Jan Hubicka  <jh@suse.cz>
17499
17500         * cgraphbuild.c (build_cgraph_edges): Update call
17501         of cgraph_create_edge and cgraph_create_indirect_edge.
17502         * cgraph.c (cgraph_create_edge_including_clones,
17503         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
17504         cgraph_update_edges_for_call_stmt_node): Do not take nest
17505         argument; do not initialize call_stmt_size/time.
17506         (dump_cgraph_node): Do not dump nest.
17507         (cgraph_clone_edge): Do not take loop_nest argument;
17508         do not propagate it; do not clone call_stmt_size/time.
17509         (cgraph_clone_node): Likewise.
17510         (cgraph_create_virtual_clone): Update.
17511         * cgraph.h (struct cgraph_edge): Remove
17512         call_stmt_size/call_stmt_time/loop_nest.
17513         (cgraph_create_edge, cgraph_create_indirect_edge,
17514         cgraph_create_edge_including_clones, cgraph_clone_node): Update
17515         prototype.
17516         * tree-emutls.c (gen_emutls_addr): Update.
17517         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
17518         loop_nest; handle indirect calls, too.
17519         (clone_inlined_nodes): Do not care about updating inline summaries.
17520         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
17521         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
17522         stream call_stmt_size/call_stmt_time/loop_nest.
17523         * ipa-inline.c (edge_badness): Update.
17524         (ipa_inline): dump summaries after inlining.
17525         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
17526         New.
17527         (inline_edge_summary): New function.
17528         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
17529         (inline_edge_removal_hook): Handle edge summaries.
17530         (inline_edge_duplication_hook): New hook.
17531         (inline_summary_alloc): Alloc hooks.
17532         (initialize_growth_caches): Do not register removal hooks.
17533         (free_growth_caches); Do not free removal hook.
17534         (dump_inline_edge_summary): New function.
17535         (dump_inline_summary): Use it.
17536         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
17537         (inline_update_callee_summaries): New function.
17538         (inline_merge_summary): Use it.
17539         (do_estimate_edge_time, do_estimate_edge_growth): Update.
17540         (read_inline_edge_summary): New function.
17541         (inline_read_section): Use it.
17542         (write_inline_edge_summary): New function.
17543         (inline_write_summary): Use it.
17544         (inline_free_summary): Free edge new holders.
17545         * tree-inline.c (copy_bb): Update.
17546
17547 2011-04-26  Jason Merrill  <jason@redhat.com>
17548
17549         * tree-eh.c (lower_try_finally_switch): Create the label along with
17550         the CASE_LABEL_EXPR.
17551
17552 2011-04-26  David S. Miller  <davem@davemloft.net>
17553             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17554
17555         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
17556         * configure: Regenerate.
17557
17558 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
17559
17560         PR target/48258
17561         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
17562         reduction.
17563         (VEC_reduc): New code iterator and splitters for vector reduction.
17564         (VEC_reduc_name): Ditto.
17565         (VEC_reduc_rtx): Ditto.
17566         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
17567         (reduc_<VEC_reduc_name>_v4sf): Ditto.
17568
17569         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17570         support for extracting SF on VSX.
17571
17572         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
17573         generating xscvspdp.
17574         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
17575         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
17576         double add, minimum, maximum vector reduction.
17577         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
17578         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
17579         optimize double vector reduction.
17580         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
17581
17582 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
17583
17584         * config/fr30/fr30.h (inhibit_libc): Don't define.
17585         * config/m32r/m32r-protos.h: Correct comment.
17586         * config/v850/v850.h (GHS_default_section_names,
17587         GHS_current_section_names): Use tree, not union tree_node *.
17588
17589 2011-04-26  Xinliang David Li  <davidxl@google.com>
17590
17591         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
17592         * c-family/c-opts.c (c_common_handle_option): Set
17593         warn_maybe_uninitialized.
17594         * opts.c (common_handle_option): Ditto.
17595         * common.opt:  New option.
17596         * tree-ssa.c (warn_uninit): Add one more parameter.
17597         (warn_uninitialized_var): Pass warning code.
17598         * tree-flow.h: Interface change.
17599
17600 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17601
17602         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
17603         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
17604         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
17605
17606 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17607
17608         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
17609         * config/mips/mips.opt (mmips-tfile): Remove.
17610
17611         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
17612         mips-tdump reference to ...
17613         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
17614         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
17615         reference by Tru64 UNIX.
17616
17617 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
17618
17619         PR debug/48768
17620         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
17621         is error_mark_node, set value to NULL.
17622
17623         PR tree-optimization/48734
17624         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
17625         if return value from maybe_fold_*_comparsions isn't something
17626         the code is prepared to handle.
17627
17628 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
17629
17630         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
17631         mode check.
17632         (ext_QIreg_nomode_operands): Remove.
17633         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
17634         (*andsi_1): Ditto.
17635         (*andhi_1): Ditto.
17636
17637 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
17638
17639         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
17640
17641 2011-04-26  Richard Guenther  <rguenther@suse.de>
17642
17643         * c-typeck.c (build_unary_op): Do not expand array-refs via
17644         pointer arithmetic.  Only adjust qualifiers for function types.
17645
17646 2011-04-26  Richard Guenther  <rguenther@suse.de>
17647
17648         PR middle-end/48694
17649         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
17650         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
17651         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
17652         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
17653
17654 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
17655
17656         * doc/extend.texi: Document __underlying_type.
17657
17658 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
17659
17660         * config/rs6000/titan.md (automata_option "progress"): Remove.
17661
17662 2011-04-25  Jeff Law  <law@redhat.com>
17663
17664         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
17665
17666 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
17667
17668         * system.h (ENUM_BITFIELD): Remove.
17669
17670 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
17671             Eric Botcazou  <ebotcazou@adacore.com>
17672
17673         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
17674         for STORE_FLAG_VALUE==-1 case.
17675
17676 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
17677
17678         PR target/43804
17679         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
17680         LEGITIMATE_PIC_OPERAND_P.
17681
17682 2011-04-24  Jan Hubicka  <jh@suse.cz>
17683
17684         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
17685         WPA hack.
17686         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
17687         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
17688         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
17689         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
17690         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
17691         Sanity check predicate length.
17692         (remap_predicate): Likewise; sanity check jump functions.
17693         (inline_read_section, inline_write_summary): Sanity check
17694         predicate length.
17695
17696 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
17697
17698         PR other/48748
17699         * doc/extend.texi (Type Traits): Document __is_standard_layout,
17700         __is_literal_type, and __is_trivial; update throughout about
17701         possibly cv-qualified void types.
17702
17703 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17704
17705         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
17706         testsuite and make it version agnostic.
17707
17708 2011-04-22  Jan Hubicka  <jh@suse.cz>
17709
17710         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
17711
17712 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
17713
17714         PR c/48685
17715         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
17716         to VOID_TYPE even around MODIFY_EXPR.
17717
17718 2011-04-22  Mike Stump  <mikestump@comcast.net>
17719
17720         * gensupport.c (read_md_rtx): Fix typo in comment.
17721         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
17722         comment.
17723
17724 2011-04-22  Jan Hubicka  <jh@suse.cz>
17725
17726         * gengtype.c (open_base_files): Add ipa-inline.h include.
17727         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
17728         ipa-prop.c; update all uses.
17729         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
17730         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
17731         merge summary of inlined function into former caller.
17732         * ipa-inline.c (max_benefit): Remove.
17733         (edge_badness): Compensate for removal of benefits.
17734         (update_caller_keys): Use
17735         reset_node_growth_cache/reset_edge_growth_cache.
17736         (update_callee_keys): Likewise.
17737         (update_all_callee_keys): Likewise.
17738         (inline_small_functions): Do not collect max_benefit; do not reset
17739         estimated_growth; call free_growth_caches and initialize_growth_caches.
17740         * ipa-inline.h (struct condition, type clause_t, struct predicate,
17741         struct size_time_entry): New structures.
17742         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
17743         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
17744         and estimated_growth.
17745         (edge_growth_cache_entry): New structure.
17746         (node_growth_cache, edge_growth_cache): New global vars.
17747         (estimate_growth): Turn into inline.
17748         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
17749         initialize_growth_caches, free_growth_caches): Declare.
17750         (estimate_edge_growth): Rewrite.
17751         (estimate_edge_time): Implement as inline cache lookup.
17752         (reset_node_growth_cache, reset_edge_growth_cache): New inline
17753         functions.
17754         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
17755         (NUM_CONDITIONS): New constant.
17756         (predicate_conditions): New enum.
17757         (IS_NOT_CONSTANT): New constant.
17758         (edge_removal_hook_holder): New var.
17759         (node_growth_cache, edge_growth_cache): New global vars.
17760         (true_predicate, single_cond_predicate, false_predicate,
17761         not_inlined_predicate, add_condition, add_clause, and_predicates,
17762         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
17763         dump_clause, dump_predicate, account_size_time,
17764         evaulate_conditions_for_edge): New functions.
17765         (inline_summary_alloc): Move to heap.
17766         (inline_node_removal_hook): Clear condition and entry vectors.
17767         (inline_edge_removal_hook): New function.
17768         (initialize_growth_caches, free_growth_caches): New function.
17769         (dump_inline_summary): Update.
17770         (edge_execution_predicate): New function.
17771         (will_be_nonconstant_predicate): New function.
17772         (estimate_function_body_sizes): Compute BB and constantness predicates.
17773         (compute_inline_parameters): Do not clear estimated_growth.
17774         (estimate_edge_size_and_time): New function.
17775         (estimate_calls_size_and_time): New function.
17776         (estimate_callee_size_and_time): New function.
17777         (remap_predicate): New function.
17778         (inline_merge_summary): New function.
17779         (do_estimate_edge_time): New function based on...
17780         (estimate_edge_time): ... this one.
17781         (do_estimate_edge_growth): New function.
17782         (do_estimate_growth): New function based on....
17783         (estimate_growth): ... this one.
17784         (inline_analyze_function): Analyze after deciding on jump functions.
17785         (inline_read_section): New function.
17786         (inline_read_summary): Use it.
17787         (inline_write_summary): Write all the new data.
17788         * ipa-prop.c (ipa_get_param_decl_index): Export.
17789         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
17790         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
17791         Declare.
17792         (ipa_get_lattice): Move here from ipa-cp.c
17793         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
17794         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
17795         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
17796         cgraph_edge_inlinable_p): Remove.
17797         * cgraphunit.c: Include ipainline.h
17798         (cgraph_process_new_functions): Update call of
17799         compute_inline_parameters.
17800
17801 2011-04-22  Richard Guenther  <rguenther@suse.de>
17802
17803         * tree.c (build_int_cst): Properly create canonicalized integer
17804         constants.
17805         (build_int_cst_type): Remove scary comments.
17806
17807 2011-04-22  Xinliang David Li  <davidxl@google.com>
17808
17809         * toplev.c (process_options): Enable -Werror=coverage-mismatch
17810         by default when -Wno-error is not specified.
17811         * opts-global.c (decode_options): Remove call to
17812         control_warning_options.
17813
17814 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
17815
17816         PR tree-optimization/48717
17817         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
17818         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
17819
17820 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
17821
17822         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
17823         definition where used.
17824
17825 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
17826
17827         PR c/48716
17828         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
17829         TREE_STATIC variables declared inside of some OpenMP construct.
17830
17831 2011-04-22  Martin Jambor  <mjambor@suse.cz>
17832
17833         PR middle-end/48585
17834         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
17835
17836 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
17837
17838         PR c/36750
17839         * c-typeck.c (pop_init_level): Do not warn about initializing
17840         with ` = {0}'.
17841
17842 2011-04-22  Alan Modra  <amodra@gmail.com>
17843
17844         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
17845         when returning call_cookie.
17846         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
17847         pointers, to functions with no more vector args than the current
17848         function, and some non-local calls for ABI_V4.
17849         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
17850         sibcall_nonlocal_aix64): Combine to ..
17851         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
17852         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
17853         (sibcall_value_nonlocal_aix<mode>): ..likewise.
17854         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
17855         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
17856         operand.
17857         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17858         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
17859         sibcall_value_symbolic_64): Delete.
17860
17861 2011-04-21  Xinliang David Li  <davidxl@google.com>
17862
17863         * cgraph.h: Remove pid.
17864         * cgraph.c: Remove pid.
17865         * value-prof.c (init_node_map): New function.
17866         (del_node_map): New function.
17867         (find_func_by_funcdef_no): New function.
17868         (gimple_ic_transform): Call new function.
17869         * cgraphunit.c (cgraph_finalize_function): Remove pid.
17870         * function.c (get_last_funcdef_no): New function.
17871         * function.h (get_last_funcdef_no): New function.
17872         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
17873         to libgcov function.
17874         (tree-profiling): Call node map init and delete function.
17875
17876 2011-04-21  Ian Lance Taylor  <iant@google.com>
17877
17878         * godump.c (go_format_type): Use exported Go name for anonymous
17879         field name.
17880
17881 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17882
17883         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
17884         Call builtin_function_type_list instead of builtin_function_type.
17885         (UNARY, BINARY, TRINARY, QUAD): Likewise.
17886
17887 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17888
17889         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
17890         build_function_type_list instead of build_function_type.
17891         Delete variable `endlink'.
17892
17893 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17894
17895         * config/s390/s390.c (s390_init_builtins): Call
17896         build_function_type_list instead of build_function_type.
17897
17898 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
17899
17900         * config/ia64/ia64.c (ia64_init_builtins): Call
17901         build_function_type_list instead of builtin_function_type.
17902
17903 2011-04-21  Easwaran Raman  <eraman@google.com>
17904
17905         * cfgexpand.c (stack_var): Remove OFFSET...
17906         (add_stack_var): ...and its reference here...
17907         (expand_stack_vars): ...and here.
17908         (stack_var_cmp): Sort by descending order of size.
17909         (partition_stack_vars): Change heuristic.
17910         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17911         (dump_stack_var_partition): Add newline after each partition.
17912
17913 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
17914             Jeff Law  <law@redhat.com>
17915
17916         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17917         * gengtype.c (matching_file_name_substitute): Likewise.
17918
17919 2011-04-21  Richard Guenther  <rguenther@suse.de>
17920
17921         PR lto/48703
17922         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17923
17924 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
17925
17926         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17927
17928 2011-04-21  Richard Guenther  <rguenther@suse.de>
17929
17930         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17931         file name.
17932
17933 2011-04-21  Richard Guenther  <rguenther@suse.de>
17934
17935         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17936         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17937         Use DECL_P, not SSA_VAR_P.
17938         (ptr_derefs_may_alias_p): Likewise.
17939         (ptr_deref_may_alias_ref_p_1): Likewise.
17940         (decl_refs_may_alias_p): Likewise.
17941         (refs_may_alias_p_1): Likewise.
17942         (ref_maybe_used_by_call_p_1): Likewise.
17943         (call_may_clobber_ref_p_1): Likewise.
17944         (indirect_ref_may_alias_decl_p): Assume indirect refrences
17945         are either MEM_REF or TARGET_MEM_REF.
17946         (indirect_refs_may_alias_p): Likewise.
17947         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17948         for MEM_EXPR of indirect calls.
17949
17950 2011-04-21  Tristan Gingold  <gingold@adacore.com>
17951
17952         * vmsdbgout.c (write_srccorr): Compute file length from the string.
17953         (dst_file_info_struct): Remove flen field.
17954         (lookup_filename): Remove code that set flen field.
17955
17956 2011-04-21  Tristan Gingold  <gingold@adacore.com>
17957
17958         * config/ia64/ia64.c (ia64_start_function): Add a guard.
17959
17960 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
17961
17962         PR target/48708
17963         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17964         vec_extract and vec_concat for non-SSE4_1 targets.
17965
17966 2011-04-21  Richard Guenther  <rguenther@suse.de>
17967
17968         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17969         return statements.
17970
17971 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
17972
17973         * config/i386/cygming.h (union tree_node, TREE): Don't define or
17974         undefine.
17975         (FILE): Don't undefine.
17976
17977 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
17978
17979         * config/alpha/alpha.c (struct machine_function): Use rtx, not
17980         struct rtx_def *.
17981         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17982         struct rtx_def *.
17983         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17984         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17985         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17986         rtx_def *.
17987         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
17988         definitions where used.
17989         * config/microblaze/microblaze.h (struct microblaze_args): Use
17990         rtx, not struct rtx_def *.
17991         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17992         rtx_def *.
17993         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17994         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17995         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17996         not struct rtx_def *.
17997         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17998         struct rtx_def *.
17999         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
18000         rtx_def *.
18001         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
18002
18003 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18004
18005         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
18006         operand_equal_p to compare DR_BASE_ADDRESSes.
18007         (vect_check_interleaving): Likewise.
18008
18009 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18010
18011         PR target/46329
18012         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
18013         for all Neon struct constants.
18014
18015 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18016
18017         * target.def (legitimate_constant_p): New hook.
18018         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
18019         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
18020         * doc/tm.texi: Regenerate.
18021         * hooks.h (hook_bool_mode_rtx_true): Declare.
18022         * hooks.c (hook_bool_mode_rtx_true): Define.
18023         * system.h (LEGITIMATE_CONSTANT_P): Poison.
18024         * calls.c (precompute_register_parameters): Replace uses of
18025         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
18026         (emit_library_call_value_1): Likewise.
18027         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
18028         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
18029         * ira-costs.c (scan_one_insn): Likewise.
18030         * recog.c (general_operand, immediate_operand): Likewise.
18031         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
18032         * reload1.c (init_eliminable_invariants): Likewise.
18033
18034         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
18035         mode argument.
18036         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
18037         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
18038         argument.
18039         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18040         * config/alpha/predicates.md (input_operand): Update call to
18041         alpha_legitimate_constant_p.
18042
18043         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
18044         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
18045         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
18046         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18047         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
18048         (arm_legitimate_constant_p): New functions.
18049         (arm_cannot_force_const_mem): Make static.
18050
18051         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
18052
18053         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
18054         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
18055         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
18056         instead of bfin_legitimate_constant_p.
18057         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
18058         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18059
18060         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
18061
18062         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
18063
18064         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
18065         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
18066         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18067         (frv_legitimate_constant_p): Make static.  Add a mode argument.
18068
18069         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
18070         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
18071         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
18072
18073         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
18074         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
18075         * config/i386/i386.c (legitimate_constant_p): Rename to...
18076         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
18077         argument.
18078         (ix86_cannot_force_const_mem): Update accordingly.
18079         (ix86_legitimate_address_p): Likewise.
18080         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18081         * config/i386/i386.md: Update commentary.
18082
18083         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
18084         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
18085         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18086         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
18087
18088         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
18089
18090         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
18091         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
18092         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18093         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
18094
18095         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
18096         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
18097         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
18098
18099         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
18100         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18101         (m32r_legitimate_constant_p): New function.
18102
18103         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
18104         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
18105         LEGITIMATE_CONSTANT_P.
18106         (LEGITIMATE_CONSTANT_P): Delete.
18107         * config/m68k/m68k.c (m68k_expand_prologue): Call
18108         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
18109         (m68k_legitimate_constant_p): New function.
18110         * config/m68k/m68k.md: Update comments.
18111
18112         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
18113         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18114         (mcore_legitimate_constant_p): New function.
18115
18116         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
18117         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
18118         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
18119         Add a mode argument.
18120         (mep_legitimate_address): Update accordingly.
18121         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18122
18123         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
18124         Delete.
18125         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
18126         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
18127         static.  Check OP's mode for VOIDmode.
18128         (microblaze_legitimate_constant_p): New function.
18129         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18130
18131         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
18132         * config/mips/mips.c (mips_legitimate_constant_p): New function.
18133         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
18134         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18135         * config/mips/predicates.md: Update comments.
18136
18137         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
18138         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
18139         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18140         (mmix_legitimate_constant_p): Make static, return a bool, and take
18141         a mode argument.
18142         (mmix_print_operand_address): Update accordingly.
18143
18144         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
18145         Delete.
18146         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
18147         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
18148         static.  Add a mode argument.
18149         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18150
18151         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
18152
18153         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
18154         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18155         (pa_legitimate_constant_p): New function.
18156
18157         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
18158
18159         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
18160         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18161         (pdp11_legitimate_constant_p): New function.
18162
18163         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
18164         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18165         (rs6000_legitimate_constant_p): New function.
18166
18167         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
18168         (rx_legitimate_constant_p): ...this.
18169         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
18170         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
18171         (rx_legitimate_constant_p): ...this.
18172         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18173         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
18174
18175         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
18176         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
18177         * config/s390/s390.c (legitimate_constant_p): Rename to...
18178         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
18179         and add a mode argument.
18180         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18181
18182         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
18183
18184         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
18185         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18186         (sh_legitimate_constant_p): New function.
18187
18188         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
18189         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
18190         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18191         (legitimate_constant_p): Rename to...
18192         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
18193         argument.
18194         (constant_address_p): Update accordingly.
18195
18196         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
18197         argument and return a bool.
18198         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
18199         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18200         (spu_legitimate_constant_p): Add a mode argument and return a bool.
18201         (spu_rtx_costs): Update accordingly.
18202         * config/spu/predicates.md (vec_imm_operand): Likewise.
18203
18204         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
18205
18206         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
18207         * config/v850/v850.c (v850_legitimate_constant_p): New function.
18208         (TARGET_LEGITIMATE_CONSTANT_P): Define.
18209
18210         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
18211         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
18212         * config/vax/vax.c (legitimate_constant_p): Likewise.
18213
18214         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
18215         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
18216         (xtensa_legitimate_constant_p): New function.
18217
18218 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
18219
18220         * target.def (cannot_force_const_mem): Add a mode argument.
18221         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
18222         * doc/tm.texi: Regenerate.
18223         * hooks.h (hook_bool_mode_rtx_false): Declare.
18224         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
18225         (hook_bool_mode_const_rtx_true): Likewise.
18226         (hook_bool_mode_rtx_false): New function.
18227         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
18228         to be non-VOID.  Update call to cannot_force_const_mem.
18229         (find_reloads): Update accordingly.
18230         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
18231         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
18232         argument.
18233         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
18234         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
18235         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
18236         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
18237         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
18238         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
18239         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
18240         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18241         (m68k_cannot_force_const_mem): ...this new function.
18242         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
18243         argument.
18244         (mips_const_insns, mips_legitimize_const_move): Update calls.
18245         (mips_secondary_reload_class): Likewise.
18246         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
18247         (pa_cannot_force_const_mem): ...this new function.
18248         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
18249         (rs6000_cannot_force_const_mem): ...this new function.
18250         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
18251         argument.
18252         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
18253         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
18254         to...
18255         (xtensa_cannot_force_const_mem): ...this new function.
18256
18257 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18258
18259         * config/mips/mips.c (mips16_build_function_stub): Call
18260         build_function_type_list instead of build_function_type.
18261         (mips16_build_call_stub): Likewise.
18262
18263 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18264
18265         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
18266         instead of build_function_type.
18267
18268 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
18269
18270         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
18271         instead of build_function_type.
18272
18273 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
18274
18275         PR target/48678
18276         * config/i386/i386.md (insv): Change operand 0 constraint to
18277         "register_operand".  Change operand 1 and 2 constraint to
18278         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
18279         * config/i386/sse.md (sse4_1_pinsrb): Export.
18280         (sse2_pinsrw): Ditto.
18281         (sse4_1_pinsrd): Ditto.
18282         (sse4_1_pinsrq): Ditto.
18283         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
18284         * config/i386/i386.c (ix86_expand_pinsr): New.
18285
18286 2011-04-20  Easwaran Raman  <eraman@google.com>
18287
18288         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
18289         containing union type only with -fstrict-aliasing.
18290
18291 2011-04-20  Jim Meyering  <meyering@redhat.com>
18292
18293         Remove useless if-before-free tests.
18294         * calls.c (expand_call, save_area): Likewise.
18295         * cfgcleanup.c (try_forward_edges): Likewise.
18296         * collect2.c (collect_execute): Likewise.
18297         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
18298         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
18299         * coverage.c (coverage_checksum_string): Likewise.
18300         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
18301         * cselib.c (cselib_init): Likewise.
18302         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
18303         (df_set_clean_cfg): Likewise.
18304         * function.c (free_after_compilation): Likewise.
18305         * gcc.c (do_spec_1, main): Likewise.
18306         * gcov.c (create_file_names): Likewise.
18307         * gensupport.c (identify_predicable_attribute): Likewise.
18308         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
18309         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
18310         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
18311         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
18312         * ipa-pure-const.c (local_pure_const): Likewise.
18313         * ipa-reference.c (propagate): Likewise.
18314         * ira-costs.c (free_ira_costs): Likewise.
18315         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
18316         * matrix-reorg.c (mat_free): Likewise.
18317         * prefix.c (get_key_value): Likewise.
18318         * profile.c (compute_value_histograms): Likewise.
18319         * reload1.c (free_reg_equiv): Likewise.
18320         * sched-deps.c (free_deps): Likewise.
18321         * sel-sched-ir.c (fence_clear): Likewise.
18322         * sese.c (set_rename, if_region_set_false_region): Likewise.
18323         * tree-data-ref.c (free_rdg): Likewise.
18324         * tree-eh.c (lower_try_finally): Likewise.
18325         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
18326         * tree-ssa-live.c (delete_var_map): Likewise.
18327         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
18328         * tree-ssa-pre.c (phi_trans_add): Likewise.
18329
18330 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
18331
18332         PR tree-optimization/48611
18333         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
18334         beyond ERT_MUST_NOT_THROW region.
18335
18336 2011-04-20  Catherine Moore  <clm@codesourcery.com>
18337
18338         * config/mips/mips.opt (mfix-24k): New.
18339         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
18340         * config/mips/mips.md (length): Increase by 4 for stores if
18341         fixing 24K errata.
18342         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
18343         all noreorder if fixing 24K errata.
18344         * doc/invoke.texi: Document mfix-24k.
18345
18346 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
18347
18348         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
18349         quad-word modes, reduce to 9-bit index range when above 1016 limit.
18350
18351 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18352
18353         * config/arm/arm.c (arm_gen_constant): Move movw support ....
18354         (const_ok_for_op): ... to here.
18355
18356 2011-04-20  Kai Tietz  <ktietz@redhat.com>
18357
18358         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
18359         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
18360
18361 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
18362
18363         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
18364
18365 2011-04-20  Richard Guenther  <rguenther@suse.de>
18366
18367         PR tree-optimization/47892
18368         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
18369         are if-convertible.
18370
18371 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
18372
18373         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
18374
18375 2011-04-20  Tristan Gingold  <gingold@adacore.com>
18376
18377         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
18378
18379 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
18380
18381         PR target/18145
18382
18383         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
18384         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
18385         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
18386         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
18387         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
18388
18389         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
18390         New prototype.
18391
18392         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
18393         (avr_asm_named_section, avr_asm_output_aligned_common,
18394         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
18395         New functions to update...
18396         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
18397         (avr_asm_init_sections): Overwrite section callbacks for
18398         data_section, bss_section.
18399         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
18400         from here to...
18401         (avr_file_end): ...here.
18402
18403 2011-04-20  Richard Guenther  <rguenther@suse.de>
18404
18405         PR middle-end/48695
18406         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
18407         objects and types here.  Adjust for their offset before comparing.
18408
18409 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18410
18411         * tree-vect-stmts.c (vectorizable_store): Only chain one related
18412         statement per copy.
18413
18414 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
18415
18416         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
18417         (GIMPLE_H): Include $(INTERNAL_FN_H).
18418         (OBJS-common): Add internal-fn.o.
18419         (internal-fn.o): New rule.
18420         * internal-fn.def: New file.
18421         * internal-fn.h: Likewise.
18422         * internal-fn.c: Likewise.
18423         * gimple.h: Include internal-fn.h.
18424         (GF_CALL_INTERNAL): New gf_mask.
18425         (gimple_statement_call): Put fntype into a union with a new
18426         internal_fn field.
18427         (gimple_build_call_internal): Declare.
18428         (gimple_build_call_internal_vec): Likewise.
18429         (gimple_call_same_target_p): Likewise.
18430         (gimple_call_internal_p): New function.
18431         (gimple_call_internal_fn): Likewise.
18432         (gimple_call_fntype): Return null for internal calls.
18433         (gimple_call_set_fntype): Assert that the function is not internal.
18434         (gimple_call_set_fn): Likewise.
18435         (gimple_call_set_fndecl): Likewise.
18436         (gimple_call_set_internal_fn): New function.
18437         (gimple_call_addr_fndecl): Handle null functions.
18438         (gimple_call_return_type): Likewise null types.
18439         * gimple.c (gimple_build_call_internal_1): New function.
18440         (gimple_build_call_internal): Likewise.
18441         (gimple_build_call_internal_vec): Likewise.
18442         (gimple_call_same_target_p): Likewise.
18443         (gimple_call_flags): Handle calls to internal functions.
18444         (gimple_call_fnspec): New function.
18445         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
18446         (gimple_has_side_effects): Handle null functions.
18447         (gimple_rhs_has_side_effects): Likewise.
18448         (gimple_call_copy_skip_args): Handle calls to internal functions.
18449         * cfgexpand.c (expand_call_stmt): Likewise.
18450         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
18451         * gimple-fold.c (gimple_fold_call): Handle null functions.
18452         (gimple_fold_stmt_to_constant_1): Don't fold
18453         calls to internal functions.
18454         * gimple-low.c (gimple_check_call_args): Handle calls to internal
18455         functions.
18456         * gimple-pretty-print.c (dump_gimple_call): Likewise.
18457         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
18458         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
18459         (do_warn_unused_result): Likewise.
18460         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
18461         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
18462         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
18463         the target of a call.
18464         (initialize_hash_element): Update accordingly.
18465         (hashable_expr_equal_p): Use gimple_call_same_target_p.
18466         (iterative_hash_hashable_expr): Handle calls to internal functions.
18467         (print_expr_hash_elt): Likewise.
18468         * tree-ssa-pre.c (can_value_number_call): Likewise.
18469         (eliminate): Handle null functions.
18470         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
18471         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
18472         (find_func_aliases): Likewise.
18473         * value-prof.c (gimple_ic_transform): Likewise.
18474         (gimple_indirect_call_to_profile): Likewise.
18475         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18476         * lto-streamer-out.c (output_gimple_stmt): Likewise.
18477
18478 2011-04-19  Jan Hubicka  <jh@suse.cz>
18479
18480         * ipa-inline-transform.c (save_inline_function_body): Add comments.
18481         * ipa-inline.c (inline_small_functions): Compute summaries first,
18482         populate heap later.
18483
18484 2011-04-19  Jan Hubicka  <jh@suse.cz>
18485
18486         * cgraph.h (save_inline_function_body): Remove.
18487         * ipa-inline-transform.c: New file, broke out of...
18488         * ipa-inline.c: ... this one; Update toplevel comment.
18489         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
18490         make global.
18491         (update_noncloned_frequencies): Move to ipa-inline-transform.c
18492         (cgraph_mark_inline_edge): Rename to inline_call; move to
18493         ipa-inline-transform.c.
18494         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
18495         move to ipa-inline-transform.c
18496         (recursive_inlining, inline_small_functions, flatten_function,
18497         ipa_inline, inline_always_inline_functions,
18498         early_inline_small_functions): Update.
18499         (inline_transform): Move to ipa-inline-transform.c.
18500         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
18501         Declare.
18502         * Makefile.in (ipa-inline-transform.o): New file.
18503         * cgraphunit.c (save_inline_function_body): Move to
18504         ipa-inline-transform.c
18505
18506 2011-04-19  DJ Delorie  <dj@redhat.com>
18507
18508         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
18509         registers if we already know there aren't any.
18510         (m32c_emit_epilogue): Don't emit a barrier here.
18511         (m32c_emit_eh_epilogue): Likewise.
18512         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
18513         operands at expand time.
18514         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
18515         int" wchar type.
18516         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
18517         duplicates.  Provide aliases instead.
18518         * config/m32c/prologue.md (eh_return): Emit a barrier here.
18519         (eh_epilogue): Add a "(return)" here as a hint to other parts of
18520         the compiler.
18521
18522 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
18523
18524         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
18525         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
18526         (general_or_i64_p, sparc_register_move_cost): New function.
18527
18528 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18529
18530         * doc/install.texi (Configuration, --enable-threads): Remove mach.
18531         Add lynx, mipssde.  Sort table.
18532
18533 2011-04-19  Xinliang David Li  <davidxl@google.com>
18534
18535         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
18536         not negative.
18537
18538 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
18539
18540         PR target/48678
18541         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
18542         is a SUBREG with non-MODE_INT mode inside of it.
18543
18544 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18545
18546         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
18547         also according to actual contants.
18548         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
18549         (gimple_fold_call): Use it.
18550         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
18551
18552 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18553
18554         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
18555         non-pointer assignments.
18556
18557 2011-04-19  Martin Jambor  <mjambor@suse.cz>
18558
18559         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
18560         account anc_offset and otr_type from the indirect edge info.
18561         * ipa-prop.c (get_ancestor_addr_info): New function.
18562         (compute_complex_ancestor_jump_func): Assignment analysis moved to
18563         get_ancestor_addr_info, call it.
18564         (ipa_note_param_call): Do not initialize information about polymorphic
18565         calls, return the indirect call graph edge.  Remove the last
18566         parameter, adjust all callers.
18567         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
18568         parameters.  Initialize polymorphic information in the indirect edge.
18569
18570 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18571
18572         PR lto/48148
18573         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
18574         the types if they have different enumeration identifiers.
18575
18576 2011-04-19  Jan Hubicka  <jh@suse.cz>
18577
18578         * cgraph.h (cgraph_optimize_for_size_p): Declare.
18579         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
18580         * predict.c (cgraph_optimize_for_size_p): Break out from ...
18581         (optimize_function_for_size_p) ... here.
18582
18583 2011-04-19  Richard Guenther  <rguenther@suse.de>
18584
18585         PR lto/48207
18586         * tree.c (free_lang_data): Do not reset the decl-assembler-name
18587         langhook.
18588
18589 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
18590
18591         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
18592         if DECL_NO_INLINE_WARNING_P is set on the function.
18593
18594 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
18595
18596         PR fortran/47976
18597         * reload1.c (inc_for_reload): Return void. All callers changed.
18598         (emit_input_reload_insns): Don't try to delete previous output
18599         reloads to a register, or record spill_reg_store for autoincs.
18600
18601 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
18602
18603         * gengtype.h: Updated copyright year.
18604         (struct input_file_st): Add inpisplugin field.
18605         (type_fileloc): New function.
18606         * gengtype.c
18607         (write_typed_struct_alloc_def): Add gcc_assert.
18608         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
18609         (write_typed_alloc_defns): Don't output for plugin files.
18610         (input_file_by_name): Clear inpisplugin field.
18611         (main): Set inpisplugin field for plugin files.
18612
18613 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
18614
18615         * gengtype-state.c (string_eq): New.
18616         (read_state): Use string_eq instead of strcmp when creating the
18617         state_ident_tab.
18618
18619 2011-04-19  Wei Guozhi  <carrot@google.com>
18620
18621         PR target/47855
18622         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
18623         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
18624         linkage.
18625         * config/arm/constraints.md (Uu): New constraint.
18626         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
18627
18628 2011-04-19  Tristan Gingold  <gingold@adacore.com>
18629
18630         * config.gcc (-*-*-*vms): Added.
18631         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
18632         definitions moved.
18633         * config/vms/vms-ld.c: New file.
18634         * config/vms/vms-ar.c: New file.
18635         * config/vms/t-vmsnative: New file.
18636
18637 2011-04-18  Xinliang David Li  <davidxl@google.com>
18638
18639         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
18640
18641 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18642
18643         PR middle-end/48661
18644         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
18645         if TREE_TYPE (v) is non-NULL.
18646
18647         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
18648         gimple_get_virt_mehtod_for_binfo.
18649         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
18650         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
18651         callers.
18652         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
18653
18654 2011-04-18  Michael Matz  <matz@suse.de>
18655             Steve Ellcey  <sje@cup.hp.com>
18656
18657         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
18658         use its mode as source mode if it isn't VOIDmode.
18659
18660 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
18661
18662         * doc/passes.texi: Fill crossref nodes.
18663
18664 2011-04-18  Jim Meyering  <meyering@redhat.com>
18665
18666         Fix doubled-word typos in comments and strings
18667         * config/alpha/vms-unwind.h: s/for for/for/
18668         * config/arm/unwind-arm.h: Likewise.
18669         * config/microblaze/microblaze.c: Likewise.
18670         * config/sh/constraints.md: s/in in/in/
18671         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
18672
18673 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
18674
18675         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
18676         (AVX_FLOAT_MODE_P): Ditto.
18677         (AVX128_VEC_FLOAT_MODE_P): Ditto.
18678         (AVX256_VEC_FLOAT_MODE_P): Ditto.
18679         (AVX_VEC_FLOAT_MODE_P): Ditto.
18680         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
18681         (UNSPEC_MASKSTORE): Ditto.
18682         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
18683         Merge from <sse>_movmsk<ssemodesuffix> and
18684         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
18685         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
18686         iterator.
18687         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
18688         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
18689         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
18690
18691 2011-04-18  Jan Hubicka  <jh@suse.cz>
18692
18693         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
18694
18695         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
18696         (want_inline_function_called_once_p): Break out the logic from
18697         ipa_inline.
18698         (edge_badness): Ensure that profile is not misupdated.
18699         (lookup_recursive_calls): Prioritize by call frequencies.
18700         (inline_small_functions): Move program size estimates here;
18701         actually process whole queue even when unit growth has been
18702         met. (to properly compute inline_failed reasons and for the
18703         case unit size decrease.) Revisit comments on recursive inlining.
18704         (ipa_inline): Remove unit summary code; first inline hot calls
18705         of functions called once, cold calls next.
18706         (order, nnodes): Remove unused variables.
18707         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
18708         (GTFILES): Remove ipa-inline.c
18709         * sel-sched.c (fill_insns): Silence uninitialized var warning.
18710
18711 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18712
18713         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
18714
18715 2011-04-18  Jie Zhang  <jie@codesourcery.com>
18716             Richard Earnshaw  <rearnsha@arm.com>
18717
18718         * arm.c (neon_builtin_type_bits): Remove.
18719         (typedef enum neon_builtin_mode): New.
18720         (T_MAX): Don't define.
18721         (typedef enum neon_builtin_datum): Remove bits, codes[],
18722         num_vars and base_fcode.  Add mode, code and fcode.
18723         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
18724         VAR10): Change accordingly.
18725         (neon_builtin_data[]): Change accordingly
18726         (arm_init_neon_builtins): Change accordingly.
18727         (neon_builtin_compare): Remove.
18728         (locate_neon_builtin_icode): Remove.
18729         (arm_expand_neon_builtin): Change accordingly.
18730
18731         * arm.h (enum arm_builtins): Move to ...
18732         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
18733
18734         * arm.c (arm_builtin_decl): Declare.
18735         (TARGET_BUILTIN_DECL): Define.
18736         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
18737         (arm_builtin_decls[]): New.
18738         (arm_init_neon_builtins): Store builtin declarations in
18739         arm_builtin_decls[].
18740         (arm_init_tls_builtins): Likewise.
18741         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
18742         (arm_builtin_decl): New.
18743
18744 2011-04-18  Richard Guenther  <rguenther@suse.de>
18745
18746         * tree.c (upper_bound_in_type): Build properly canonicalized
18747         INTEGER_CSTs.
18748         (lower_bound_in_type): Likewise.
18749
18750 2011-04-18  Richard Guenther  <rguenther@suse.de>
18751
18752         * gimple.h (gimple_call_addr_fndecl): New function.
18753         (gimple_call_fndecl): Use it.
18754         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
18755         for direct calls.
18756         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
18757         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
18758
18759 2011-04-18  Richard Guenther  <rguenther@suse.de>
18760
18761         PR middle-end/48650
18762         * tree.c (build_string): STRING_CST is now derived from tree_typed.
18763
18764 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18765
18766         PR lto/48492
18767         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
18768         DECL_IN_CONSTANT_POOL without RTL.
18769
18770 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
18771             Ira Rosen  <ira.rosen@linaro.org>
18772
18773         PR target/48252
18774         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
18775         to match neon_vzip/vuzp/vtrn_internal.
18776         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
18777         outputs explicitly dependent on both inputs.
18778         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
18779
18780 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
18781
18782         PR tree-optimization/48616
18783         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
18784         whether the shift is by scalar or vector based on whether all SLP
18785         scalar stmts have the same rhs.
18786
18787 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
18788
18789         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
18790         memory operands.
18791
18792 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
18793
18794         PR target/43700
18795         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
18796         registers.
18797
18798 2011-04-17  Jan Hubicka  <jh@suse.cz>
18799
18800         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
18801         * cgrpahunit.c (cgraph_finalize_function): Do not set
18802         finalized_by_frontend.
18803         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18804         finalized_by_frontend.
18805
18806 2011-04-17  Jan Hubicka  <jh@suse.cz>
18807
18808         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
18809         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
18810         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
18811         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
18812         method.
18813         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
18814         gimple-fold.c
18815         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
18816
18817 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
18818
18819         PR lto/48538
18820         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
18821         is non-null before accessing it.
18822         (input_cgraph): Remove trailing spaces.
18823
18824 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18825
18826         * params.def (sms-min-sc): New param flag.
18827         * modulo-sched.c (sms_schedule): Use it.
18828         * doc/invoke.texi (sms-min-sc): Document it.
18829
18830 2011-04-17  Jan Hubicka  <jh@suse.cz>
18831
18832         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
18833         present, also set gimple_call_set_cannot_inline.
18834         * ipa-inline.c: Update toplevel comment.
18835         (MAX_TIME): Remove.
18836         (cgraph_clone_inlined_nodes): Fix linebreaks.
18837         (cgraph_check_inline_limits): Restructure to ...
18838         (caller_growth_limits): ... this one; be more tolerant
18839         on growth in nested inline chains; add explanatory comment;
18840         fix stack accounting thinko introduced by previous patch.
18841         (cgraph_default_inline_p): Remove.
18842         (report_inline_failed_reason): New function.
18843         (can_inline_edge_p): New function.
18844         (can_early_inline_edge_p): New function.
18845         (leaf_node_p): Move upwards in file.
18846         (want_early_inline_function_p): New function.
18847         (want_inline_small_function_p): New function.
18848         (want_inline_self_recursive_call_p): New function.
18849         (cgraph_edge_badness): Rename to ...
18850         (edge_badness) ... this one; fix linebreaks.
18851         (update_edge_key): Update call of edge_baddness; add
18852         detailed dump about queue updates.
18853         (update_caller_keys): Use can_inline_edge_p and
18854         want_inline_small_function_p.
18855         (cgraph_decide_recursive_inlining): Rename to...
18856         (recursive_inlining): Use can_inline_edge_p and
18857         want_inline_self_recursive_call_p; simplify and remove no longer
18858         valid FIXME.
18859         (cgraph_set_inline_failed): Remove.
18860         (add_new_edges_to_heap): Use can_inline_edge_p and
18861         want_inline_small_function_p.
18862         (cgraph_decide_inlining_of_small_functions): Rename to ...
18863         (inline_small_functions): ... this one; cleanup; use
18864         can/want predicates; cleanup debug ouput; work edges till fibheap
18865         is exhausted and do not stop once unit growth is reached; remove
18866         later loop processing remaining edges.
18867         (cgraph_flatten): Rename to ...
18868         (flatten_function): ... this one; use can_inline_edge_p
18869         and can_early_inline_edge_p predicates.
18870         (cgraph_decide_inlining): Rename to ...
18871         (ipa_inline): ... this one; remove unreachable nodes before
18872         inlining functions called once; simplify the pass.
18873         (cgraph_perform_always_inlining): Rename to ...
18874         (inline_always_inline_functions): ... this one; use
18875         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
18876         (cgraph_decide_inlining_incrementally): Rename to ...
18877         (early_inline_small_functions): ... this one; simplify
18878         using new predicates; cleanup; make dumps prettier.
18879         (cgraph_early_inlining): Rename to ...
18880         (early_inliner): newer inline regular functions into always-inlines;
18881         fix updating of call stmt summaries.
18882         (pass_early_inline): Update for new names.
18883         (inline_transform): Fix formating.
18884         (gate_cgraph_decide_inlining): Rename to ...
18885         (pass_ipa_inline): ... this one.
18886         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
18887         * ipa-inline-analysis.c (dump_inline_summary): Update.
18888         (compute_inline_parameters): Do not compute disregard_inline_limits;
18889         look for mismatching arguments.
18890         (estimate_growth): Fix handlig of non-trivial self recursion.
18891         (inline_read_summary): Do not read info->disregard_inline_limits.
18892         (inline_write_summary): Do not write info->disregard_inline_limits.
18893         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
18894         and move all checks into can_inline_edge_p predicate; re-enable code
18895         comparing optimization levels.
18896         (expand_call_inline): Do not test inline_forbidden_into_p.
18897         * Makefile.in (ipa-inline.o): Update arguments.
18898
18899 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18900
18901         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
18902
18903 2011-04-17  Revital Eres  <revital.eres@linaro.org>
18904
18905         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18906
18907 2011-04-17  Michael Matz  <matz@suse.de>
18908
18909         PR tree-optimization/48622
18910         PR lto/48645
18911         * ipa-inline-analysis.c (inline_read_summary): Read size/time
18912         in same order as they're written.
18913
18914 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18915
18916         * config/pa/predicates.md: Reorganize and simplify predicates.
18917         Eliminate duplicate code checks.
18918         (arith_operand): Rename to arith14_operand
18919         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18920         * config/pa/pa.md: Use renamed operands.
18921         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18922         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18923         arith11_operand, adddi3_operand, indexed_memory_operand,
18924         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18925         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18926         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18927         move_dest_operand, move_src_operand, prefetch_cc_operand,
18928         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18929         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18930         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18931         div_operand, int5_operand, movb_comparison_operator,
18932         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18933         arith_double_operand, ireg_operand, lhs_lshift_operand,
18934         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18935         integer_store_memory_operand): Likewise.
18936         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18937         (integer_store_memory_operand, read_only_operand,
18938         function_label_operand, borx_reg_operand,
18939         non_hard_reg_operand): Likewise.
18940         (eq_neq_comparison_operator): Delete unused operator.
18941         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18942         function_label_operand.
18943         (emit_move_sequence): Likewise.
18944
18945 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
18946
18947         * config/i386/sse.md (sseunpackmode): New mode attribute.
18948         (ssepackmode): Ditto.
18949         (vec_pack_trunc_<mode>): Macroize expander from
18950         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18951         (vec_unpacks_lo_<mode>): Macroize expander from
18952         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18953         (vec_unpacks_hi_<mode>): Macroize expander from
18954         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18955         (vec_unpacku_lo_<mode>): Macroize expander from
18956         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18957         (vec_unpacku_hi_<mode>): Macroize expander from
18958         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18959         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18960         ix86_expand_sse4_unpack.
18961         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18962
18963 2011-04-16  Jan Hubicka  <jh@suse.cz>
18964
18965         * cgraphbuild.c: Include ipa-inline.h.
18966         (reset_inline_failed): Use initialize_inline_failed.
18967         * cgraph.c: Include ipa-inline.h.
18968         (cgraph_create_node_1): Do not initialize estimated_growth.
18969         (initialize_inline_failed): More to ipa-inline-analysis.c
18970         (dump_cgraph_node): Do not dump inline flags.
18971         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18972         and disregard_inline_limits flags.
18973         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18974         time, size, estimated_growth.
18975         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18976         Update.
18977         * cgraphunit.c (cgraph_decide_is_function_needed): Use
18978         DECL_DISREGARD_INLINE_LIMITS.
18979         (cgraph_analyze_function): Do not initialize
18980         node->local.disregard_inline_limits.
18981         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18982         inlinable, versionable and disregard_inline_limits.
18983         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18984         cgraph_check_inline_limits, cgraph_default_inline_p,
18985         cgraph_edge_badness, update_caller_keys, update_callee_keys,
18986         add_new_edges_to_heap): Update.
18987         (cgraph_decide_inlining_of_small_function): Update; set
18988         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18989         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18990         cgraph_decide_inlining_incrementally): Update.
18991         * ipa-inline.h (inline_summary): Add inlinable, versionable,
18992         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18993         time, size and estimated_growth parameters.
18994         (estimate_edge_growth): Update.
18995         (initialize_inline_failed): Declare.
18996         * ipa-split.c: Include ipa-inline.h
18997         (execute_split_functions): Update.
18998         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18999         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
19000         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
19001         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
19002         estimated_growth to INT_MIN.
19003         (inline_node_duplication_hook): Likewise.
19004         (dump_inline_summary): Dump new fields.
19005         (compute_inline_parameters): Update.
19006         (estimate_edge_time, estimate_time_after_inlining,
19007         estimate_size_after_inlining, estimate_growth, inline_read_summary,
19008         inline_write_summary):
19009         (initialize_inline_failed): Move here from cgraph.c.
19010         * tree-sra.c: Include ipa-inline.h.
19011         (ipa_sra_preliminary_function_checks): Update.
19012         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
19013         ipa-inline.h.
19014
19015 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
19016
19017         * config/i386/sse.md (V16): New mode iterator.
19018         (VI1, VI8): Ditto.
19019         (AVXMODEQI, AVXMODEDI): Remove.
19020         (sse2, sse3): New mode attribute.
19021         (mov<mode>): Use V16 mode iterator.
19022         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
19023         (push<mode>1): Use V16 mode iterator.
19024         (movmisalign<mode>): Ditto.
19025         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19026         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
19027         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
19028         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
19029         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
19030         avx_movdqu<avxmodesuffix>.
19031         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
19032         *avx_movdqu<avxmodesuffix>.
19033         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
19034         avx_lddqu<avxmodesuffix>.
19035         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
19036         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
19037         avx_movnt<AVXMODEDI:mode>.
19038         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
19039         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
19040
19041 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
19042
19043         PR target/48629
19044         * haifa-sched.c (prune_ready_list, schedule_block): Use
19045         sched_pressure_p rather than flag_sched_pressure.
19046
19047 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
19048
19049         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19050         cgraph_get_node instead of cgraph_get_create_node.
19051
19052 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
19053
19054         * cfgexpand.c (expand_debug_expr): Use
19055         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
19056
19057 2011-04-15  Michael Matz  <matz@suse.de>
19058
19059         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
19060         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
19061         * function.c (gimplify_parameters): Ditto.
19062         * gimplify.c (gimplify_vla_decl): Ditto.
19063
19064         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
19065         (gimple_call_set_alloca_for_var): New inline function.
19066         (gimple_call_alloca_for_var_p): Ditto.
19067         * gimple.c (gimple_build_call_from_tree): Remember
19068         CALL_ALLOCA_FOR_VAR_P state.
19069         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
19070
19071         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
19072         calls if they were for VLA objects.
19073
19074 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19075
19076         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
19077         of ADR_EXPRs.
19078
19079 2011-04-15  Martin Jambor  <mjambor@suse.cz>
19080
19081         PR middle-end/48601
19082         * tree-emutls.c (lower_emutls_function_body): Call
19083         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
19084         result is non-NULL.
19085
19086 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
19087
19088         * c-decl.c (detect_field_duplicates): Call
19089         objc_detect_field_duplicates instead of objc_get_interface_ivars.
19090
19091 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
19092
19093         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
19094         * gimple.c (gimple_asm_clobbers_memory_p): Define.
19095         * ipa-pure-const.c (check_stmt): Call it.
19096         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
19097
19098 2011-04-15  Richard Guenther  <rguenther@suse.de>
19099
19100         PR tree-optimization/48290
19101         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
19102         Properly decide inhibiting propagation based on the valueized
19103         operand.  Do loop-closed SSA form preserving here ...
19104         (init_copy_prop): ... not here.
19105
19106 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
19107
19108         PR target/48612
19109         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
19110         (*ieee_smax<mode>3): Likewise.
19111
19112 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19113
19114         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
19115         Replace match_operand with match_dup for the third operand in
19116         these expanders.
19117
19118 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19119
19120         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
19121         to track processing of conditionals.  Update all callers.
19122         (try_combine, simplify_if_then_else): Update.
19123
19124 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
19125
19126         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
19127         -fsched-pressure.
19128
19129 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
19130
19131         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
19132         instead of match_operand for operand 3.
19133
19134 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
19135
19136         * recog.h (insn_operand_data): Add an "allows_mem" field.
19137         * genoutput.c (output_operand_data): Initialize it.
19138         * optabs.c (maybe_legitimize_operand_same_code): New function.
19139         (maybe_legitimize_operand): Use it when matching the original
19140         op->value.
19141
19142 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19143
19144         * gimplify.c: Fix issues in comments throughout.
19145         (voidify_wrapper_expr): Fix long line.
19146         (build_stack_save_restore): Likewise.
19147         (gimplify_loop_expr): Likewise.
19148         (gimplify_compound_lval): Likewise.
19149         (gimplify_init_ctor_eval): Likewise.
19150         (gimplify_modify_expr_rhs): Likewise.
19151         (omp_notice_threadprivate_variable): Likewise.
19152
19153 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
19154
19155         * cfgexpand.c (expand_call_stmt): Convert the function type to the
19156         original one if this is not a builtin function.
19157
19158 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
19159
19160         PR target/48605
19161         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
19162         offset it as needed based on top 2 bits in operands[3], change
19163         MEM mode to SFmode and mask those 2 bits away from operands[3].
19164
19165 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19166
19167         * c-parser.c (c_parser_objc_protocol_definition): Updated for
19168         change from objc_declare_protocols() to objc_declare_protocol().
19169
19170 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
19171
19172         * config/i386/sse.md (sse4_1): New mode attribute.
19173         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
19174         avx_blend<ssemodesuffix><avxmodesuffix> and
19175         sse4_1_blend<ssemodesuffix> using VF mode iterator.
19176         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
19177         avx_blendv<ssemodesuffix><avxmodesuffix> and
19178         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
19179         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
19180         avx_dp<ssemodesuffix><avxmodesuffix> and
19181         sse4_1_dp<ssemodesuffix> using VF mode iterator.
19182         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
19183         (sse4_1_packusdw): Merge with *avx_packusdw.
19184         (sse4_1_pblendvb): Merge with *avx_pblendvb.
19185         (sse4_1_pblendw): Merge with *avx_pblendw.
19186         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
19187         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
19188         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
19189         VF mode iterator.
19190         (sse4_1_round<ssescalarmodesuffix>): Merge with
19191         *avx_round<ssescalarmodesuffix>.
19192         (aesenc): Merge with *avx_aesenc.
19193         (aesenclast): Merge with *avx_aesenclast.
19194         (aesdec): Merge with *avx_aesdec.
19195         (aesdeclast): Merge with *avx_aesdeclast.
19196         (pclmulqdq): Merge with *pclmulqdq.
19197         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
19198         New predicate.
19199         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
19200
19201 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
19202
19203         PR middle-end/48608
19204         * cfgexpand.c (get_decl_align_unit): Renamed to ...
19205         (align_local_variable): This.  Update DECL_ALIGN.
19206         (add_stack_var): Updated.
19207         (expand_one_stack_var): Likewise.
19208
19209 2011-04-14  Richard Guenther  <rguenther@suse.de>
19210
19211         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
19212         Remove.
19213         (dse_initialize_block_local_data, dse_leave_block,
19214         record_voperand_set, get_stmt_uid): Likewise.
19215         (dse_possible_dead_store_p): Allow any kind of killing stmt.
19216         (dse_optimize_stmt): Remove voperand set handling code.
19217         Simplify and improve to handle any kind of killing stmt.
19218         (dse_record_phi): Remove.
19219         (dse_enter_block): Simplify.
19220         (tree_ssa_dse): Likewise.
19221         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
19222
19223 2011-04-14  Jan Hubicka  <jh@suse.cz>
19224
19225         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
19226         * cgraph.h (struct inline_summary): Move to ipa-inline.h
19227         (cgraph_local_info): Remove inline_summary.
19228         * ipa-cp.c: Include ipa-inline.h.
19229         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
19230         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
19231         accesor.
19232         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
19233         (input_overwrite_node): Do not set inline summary.
19234         (input_node): Do not stream inline summary.
19235         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
19236         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
19237         growth; we do not have inline parameters computed for that anyway.
19238         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
19239         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
19240         (inline_summary_t): New type and VECtor.
19241         (debug_inline_summary, dump_inline_summaries): Declare.
19242         (inline_summary): Use VOCtor.
19243         (estimate_edge_growth): Kill hack computing call stmt size directly.
19244         * lto-section-in.c (lto_section_name): Add inline section.
19245         * ipa-inline-analysis.c: Include lto-streamer.h
19246         (node_removal_hook_holder, node_duplication_hook_holder): New holders
19247         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
19248         (inline_summary_vec): Define.
19249         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
19250         dump_inline_summaries): New functions.
19251         (estimate_function_body_sizes): Properly compute size/time of outgoing
19252         calls.
19253         (compute_inline_parameters): Alloc inline_summary; do not compute
19254         size/time of incomming calls.
19255         (estimate_edge_time): Avoid missing time summary hack.
19256         (inline_read_summary): Read inline summary info.
19257         (inline_write_summary): Write inline summary info.
19258         (inline_free_summary): Free all hooks and inline summary vector.
19259         * lto-streamer.h: Add LTO_section_inline_summary section.
19260         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
19261         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
19262
19263 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19264
19265         * tree-vectorizer.h (vect_strided_store_supported): Add a
19266         HOST_WIDE_INT argument.
19267         (vect_strided_load_supported): Likewise.
19268         (vect_permute_store_chain): Return void.
19269         (vect_transform_strided_load): Likewise.
19270         (vect_permute_load_chain): Delete.
19271         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
19272         count argument.  Check that the count is a power of two.
19273         (vect_strided_load_supported): Likewise.
19274         (vect_permute_store_chain): Return void.  Update after above changes.
19275         Assert that the access is supported.
19276         (vect_permute_load_chain): Likewise.
19277         (vect_transform_strided_load): Return void.
19278         * tree-vect-stmts.c (vectorizable_store): Update calls after
19279         above interface changes.
19280         (vectorizable_load): Likewise.
19281         (vect_analyze_stmt): Don't check for strided powers of two here.
19282
19283 2011-04-14  Richard Guenther  <rguenther@suse.de>
19284
19285         PR tree-optimization/48590
19286         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19287         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19288         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
19289         BUILT_IN_STACK_SAVE.
19290         * tree-ssa-dce.c (propagate_necessity): Handle
19291         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
19292
19293 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
19294
19295         * c-parser.c (c_parser_objc_class_declaration): Updated call to
19296         objc_declare_class.
19297
19298 2011-04-14  Richard Guenther  <rguenther@suse.de>
19299
19300         * tree.h (get_object_alignment_1): Declare.
19301         * builtins.c (get_object_alignment_1): Split out worker from ...
19302         (get_object_alignment): ... here.
19303         * fold-const.c (get_pointer_modulus_and_residue): Use
19304         get_object_alignment_1.
19305
19306 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19307
19308         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
19309         type parameter.
19310         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
19311         parameter.  Generalise code to handle arrays as well as vectors.
19312         (vect_setup_realignment): Update accordingly.
19313         * tree-vect-stmts.c (vectorizable_store): Likewise.
19314         (vectorizable_load): Likewise.
19315
19316 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19317
19318         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
19319         within the per-copy loop.
19320
19321 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19322
19323         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
19324         in the dump file.
19325
19326 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
19327
19328         * doc/options.texi (Negative): Explicitly mention that the
19329         Negative chain must be circular.
19330
19331 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
19332
19333         * function.h (block_chainon): Declare.
19334         * function.c (block_chainon): Define.
19335
19336 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
19337             Eric Weddington  <eric.weddington@atmel.com>
19338             Georg-Johann Lay  <avr@gjlay.de>
19339
19340         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
19341         New Includes
19342         (avr_init_builtins, avr_expand_builtin,
19343         avr_expand_delay_cycles, avr_expand_unop_builtin,
19344         avr_expand_binop_builtin ): New functions.
19345         (avr_builtin_id): New enum
19346         (struct avr_builtin_description): New struct
19347         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
19348         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19349
19350         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
19351         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
19352         UNSPECV_DELAY_CYCLES): new enumeration values
19353         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
19354         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
19355         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
19356         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
19357         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
19358         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
19359         "fmulsu"): New insns
19360
19361         * config/avr/avr-c.c: fix line endings
19362         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
19363         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
19364         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
19365         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
19366         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
19367
19368         * doc/extend.texi (AVR Built-in Functions): New node
19369         (Target Builtins): Add documentation of AVR
19370         built-in functions.
19371
19372 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
19373
19374         PR target/44643
19375         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
19376         alone. Error if non-const data has attribute progmem.
19377
19378 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19379
19380         * tree.h (struct tree_constructor): Include tree_typed instead of
19381         tree_common.
19382         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
19383         TS_TYPED instead of TS_COMMON.
19384
19385 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19386
19387         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
19388         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
19389         (sse2_psadbw): Merge with *avx_psadbw.
19390         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
19391         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
19392         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
19393         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
19394         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
19395         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
19396         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
19397         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
19398         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
19399         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
19400         (ssse3_palignrti): Merge with *avx_palignrti.
19401
19402 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19403
19404         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
19405         * tree-ssanames.c (fini_ssanames): VEC_free it.
19406         (make_ssa_name_fn): Update for VECness of free_ssanames.
19407         (release_ssa_name, release_dead_ssa_names): Likewise.
19408         * tree.h (struct tree_ssa_name): Include tree_typed instead of
19409         tree_common.
19410         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
19411         TS_TYPED instead of TS_COMMON.
19412
19413 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19414
19415         * postreload-gcse.c (gcse_after_reload_main): Add calls to
19416         statistics_counter_event.
19417         * tree-ssa-copyrename.c (stats): Define.
19418         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
19419         statistics_counter_event.
19420         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
19421         (bswap_stats, widen_mul_stats): Define.
19422         (insert_reciprocals): Increment rdivs_inserted.
19423         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
19424         rfuncs_inserted.  Add calls to statistics_counter_event.
19425         (execute_cse_sincos_1): Increment inserted.
19426         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
19427         statistics_counter_event.
19428         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
19429         of bswap_stats.  Add calls to statistics_counter_event.
19430         (convert_mult_to_widen): Increment widen_mults_inserted.
19431         (convert_plusminus_to_widen): Increment maccs_inserted.
19432         (convert_mult_to_fma): Increment fmas_inserted.
19433         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
19434         calls to statistics_counter_event.
19435
19436 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
19437
19438         PR rtl-optimization/48455
19439         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
19440         `temp_costs->mem_cost'.
19441
19442 2011-04-13  Jan Hubicka  <jh@suse.cz>
19443
19444         * ipa-inline.h: New file.
19445         * ipa-inline-analysis.c: New file. Broken out of ...
19446         * ipa-inline.c: ... this file; update toplevel comment;
19447         include ipa-inline.h
19448         (inline_summary): Move to ipa-inline.h
19449         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
19450         ipa-inline-analysis.c.
19451         (cgraph_estimate_time_after_inlining): Rename to
19452         estiamte_time_after_inlining; move to ipa-inline-analysis.c
19453         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
19454         to estimate_edge_growth.
19455         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
19456         rename to estimate_size_after_inlining.
19457         (cgraph_mark_inline_edge): Update for new naming convention.
19458         (cgraph_check_inline_limits): Likewise.
19459         (cgraph_edge_badness): Likewise.
19460         (cgraph_decide_recursive_inlining): Likewise.
19461         (cgraph_decide_inlining_of_small_functions): Likewise.
19462         (cgraph_decide_inlining_incrementally): Likewise.
19463         (cgraph_estimate_growth): Rename to estimate_growth; move to
19464         ipa-inline-analysis.c.
19465         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
19466         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
19467         (compute_inline_parameters): Likewise.
19468         (compute_inline_parameters_for_current): Likewise.
19469         (pass_inline_parameters): Likewise.
19470         (inline_indirect_intraprocedural_analysis): Likewise.
19471         (analyze_function): Rename to inline_analyze_function; likewise.
19472         (add_new_function): Move to ipa-inline-analysis.c.
19473         (inline_generate_summary): Likewise.
19474         (inline_read_summary): Likewise.
19475         (inline_write_summary): Likewise.
19476         * Makefile.in (ipa-inline-analysis.c): New file.
19477
19478 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19479
19480         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
19481         * configure: Regenerate.
19482
19483 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
19484
19485         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
19486         instead of tree_common.
19487         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
19488         Likewise.
19489         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
19490         TS_TYPED rather than TS_COMMON.
19491         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
19492
19493 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
19494
19495         PR target/45263
19496         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
19497         r20 around calls of __tablejump_elpm__
19498
19499 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
19500
19501         PR middle-end/48591
19502         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
19503         NULL.
19504         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
19505
19506 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
19507
19508         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
19509         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
19510         (cfi_vec): New typedef.
19511         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
19512         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
19513         (cie_cfi_vec): New static variable.
19514         (cie_cfi_head): Delete.
19515         (add_cfi): Accept a cfi_vec * as first argument. All callers and
19516         declaration changed. Use vector rather than list operations.
19517         (new_cfi): Don't initialize the dw_cfi_next field.
19518         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
19519         rather than list operations.
19520         (lookup_cfa): Use vector rather than list operations.
19521         (output_cfis): New argument upto. Accept a cfi_vec rather than
19522         a dw_cfi_ref list head as argument. All callers changed.
19523         Iterate over the vector using upto as a maximum index.
19524         (output_all_cfis): New static function.
19525         (output_fde): Use vector rather than list operations. Use the
19526         new upto argument for output_cfis rather than manipulating a
19527         list.
19528         (dwarf2out_begin_prologue): Change initializations to match
19529         new struct members.
19530         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
19531         from the vector length rather than searching for the end of a list.
19532         Use output_all_cfis.
19533         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
19534
19535 2011-04-13  Nick Clifton  <nickc@redhat.com>
19536
19537         * config/rx/rx.md (movmemsi): Do not use this pattern when
19538         volatile pointers are involved.
19539
19540 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
19541
19542         * config/i386/sse.md (pinsrbits): Remove.
19543         (sse2_packsswb): Merge with *avx_packsswb.
19544         (sse2_packssdw): Merge with *avx_packssdw.
19545         (sse2_packuswb): Merge with *avx_packuswb.
19546         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
19547         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
19548         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
19549         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
19550         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
19551         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
19552         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
19553         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
19554         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
19555         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
19556         (sse2_loadld): Merge with *avx_loadld.
19557         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
19558         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
19559         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
19560         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
19561         (vec_concatv2di): Merge with *vec_concatv2di_avx.
19562
19563 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
19564
19565         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
19566         calling TREE_CHAIN.
19567         * print-tree.c (print_node): Likewise.
19568         * tree-inline.c (copy_tree_r): Likewise.
19569         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
19570         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
19571         instead of TS_COMMON.
19572         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
19573         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
19574         (copy_node_stat): Zero TREE_CHAIN only if necessary.
19575         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
19576         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
19577         ...and these...
19578         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
19579         * tree.h: ...here.
19580         (TREE_CHAIN): Check for a TS_COMMON structure.
19581         (TREE_TYPE): Check for a TS_TYPED structure.
19582
19583 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
19584
19585         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
19586         cgraph_get_create_node instead of cgraph_node.
19587
19588 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19589
19590         * c-parser.c (c_parser_initelt): Updated call to
19591         objc_build_message_expr.
19592         (c_parser_postfix_expression): Likewise.
19593
19594 2011-04-12  Kai Tietz  <ktietz@redhat.com>
19595
19596         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
19597         MASK_MS_BITFIELD_LAYOUT bit.
19598
19599 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19600
19601         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
19602         assert it is always true.
19603         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
19604         moves.
19605
19606 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
19607
19608         * c-parser.c (c_lex_one_token): Rewritten conditional used when
19609         compiling Objective-C to be more efficient.
19610
19611 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
19612
19613         * opts-common.c (decode_cmdline_options_to_array): Remove variable
19614         argv_copied.
19615
19616 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19617
19618         * recog.h, genoutput.c, optabs.c: Revert last patch.
19619
19620 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19621
19622         PR target/48090
19623         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
19624
19625 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19626
19627         * recog.h (insn_operand_data): Add an "allows_mem" field.
19628         * genoutput.c (output_operand_data): Initialize it.
19629         * optabs.c (maybe_legitimize_operand_same_code): New function.
19630         (maybe_legitimize_operand): Use it when matching the original
19631         op->value.
19632
19633 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19634
19635         * genpreds.c (process_define_predicate): Move most processing
19636         to gensupport.c.  Continue to validate the expression.
19637         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
19638         (process_define_predicate): Move processing to gensupport.c.
19639         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
19640         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
19641         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
19642         argument.
19643         (valid_predicate_name_p): New function, split out from old
19644         genpreds.c:process_define_predicate.
19645         (process_define_predicate): New function, combining code from
19646         old genpreds.c and genrecog.c functions.
19647         (process_rtx): Call it for DEFINE_PREDICATE and
19648         DEFINE_SPECIAL_PREDICATE.
19649
19650 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
19651
19652         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
19653         size of a '%A' memory reference.
19654         (T_DREG, T_QREG): New neon_builtin_type_bits.
19655         (arm_init_neon_builtins): Assert that the load and store operands
19656         are neon_struct_operands.
19657         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
19658         (NEON_ARG_MEMORY): New builtin_arg.
19659         (neon_dereference_pointer): New function.
19660         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
19661         Handle NEON_ARG_MEMORY.
19662         (arm_expand_neon_builtin): Update after above interface changes.
19663         Use NEON_ARG_MEMORY for loads and stores.
19664         * config/arm/predicates.md (neon_struct_operand): New predicate.
19665         * config/arm/iterators.md (V_two_elem): Tweak formatting.
19666         (V_three_elem): Use BLKmode for accesses that have no associated mode.
19667         (V_four_elem): Tweak formatting.
19668         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
19669         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
19670         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
19671         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
19672         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
19673         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
19674         (neon_vst4<mode>): Replace pointer operand with a memory operand.
19675         Use %A in the output template.
19676         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
19677         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
19678         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
19679         the width of the memory access.  Remove post-increment.
19680         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
19681
19682 2011-04-12  Nick Clifton  <nickc@redhat.com>
19683
19684         * config/v850/v850.c (expand_prologue): Do not use the CALLT
19685         instruction for interrupt handlers if the target is the basic V850
19686         architecture.
19687         (expand_epilogue): Likewise.
19688
19689 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19690
19691         PR rtl-optimization/48549
19692         * combine.c (propagate_for_debug): Also stop after BB_END of
19693         this_basic_block.  Process LAST and just stop processing after it.
19694         (combine_instructions): If last_combined_insn has been deleted,
19695         set last_combined_insn to its PREV_INSN.
19696
19697 2011-04-12  Richard Guenther  <rguenther@suse.de>
19698
19699         PR tree-optimization/46076
19700         * gimple.h (struct gimple_statement_call): Add fntype field.
19701         (gimple_call_fntype): Adjust.
19702         (gimple_call_set_fntype): New function.
19703         * gimple.c (gimple_build_call_1): Set the call function type.
19704         * gimplify.c (gimplify_call_expr): Preserve the function
19705         type the frontend used for the call.
19706         (gimplify_modify_expr): Likewise.
19707         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
19708         function type.
19709         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
19710         function type.
19711         * tree-ssa.c (useless_type_conversion_p): Function pointer
19712         conversions are useless.
19713
19714 2011-04-12  Martin Jambor  <mjambor@suse.cz>
19715
19716         * cgraph.h (cgraph_node): Remove function declaration.
19717         (cgraph_create_node): Declare.
19718         (cgraph_get_create_node): Likewise.
19719         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
19720         Updated all callers.
19721         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
19722         the decl does not already exist.  Call cgraph_get_create_node instead
19723         of cgraph_node.
19724         (cgraph_get_create_node): New function.
19725         (cgraph_same_body_alias): Update comment.
19726         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
19727         assert it does not return NULL.
19728         (cgraph_update_edges_for_call_stmt): Likewise.
19729         (cgraph_clone_edge): Likewise.
19730         (cgraph_create_virtual_clone): Likewise.
19731         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
19732         instead of cgraph_node.
19733         (cgraph_add_new_function): Call cgraph_create_node or
19734         cgraph_get_create_node instead of cgraph_node.
19735         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
19736         instead of cgraph_node.
19737         (record_eh_tables): Likewise.
19738         (mark_address): Likewise.
19739         (mark_load): Likewise.
19740         (build_cgraph_edges): Call cgraph_get_create_node instead
19741         of cgraph_node.
19742         (rebuild_cgraph_edges): Likewise.
19743         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
19744         instead of cgraph_node.
19745         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
19746         cgraph_node.
19747         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
19748         cgraph_create_node instead of cgraph_node.
19749         * c-decl.c (finish_function): Call cgraph_get_create_node instead
19750         of cgraph_node.
19751         * lto-cgraph.c (input_node): Likewise.
19752         * lto-streamer-in.c (input_function): Likewise.
19753         * varasm.c (mark_decl_referenced): Likewise.
19754         (assemble_alias): Likewise.
19755
19756 2011-04-12  Martin Jambor  <mjambor@suse.cz>
19757
19758         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
19759         instead of cgraph_node and assert it does not return NULL.
19760         * lto-streamer-in.c (lto_read_body): Likewise.
19761         * omp-low.c (new_omp_context): Likewise.
19762         (create_task_copyfn): Likewise.
19763         * tree-emutls.c (lower_emutls_function_body): Likewise.
19764         * matrix-reorg.c (transform_allocation_sites): Likewise.
19765
19766 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
19767
19768         PR c/48552
19769         * c-typeck.c (build_asm_expr): Error out on attempts to use
19770         void type outputs or inputs for constraints that allow reg or
19771         don't allow memory.
19772
19773 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
19774             Richard Earnshaw  <rearnsha@arm.com>
19775
19776         PR target/48250
19777         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
19778         to use sign-magnitude offsets. Reject unsupported unaligned
19779         cases. Add detailed description in comments.
19780         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
19781         condition from TARGET_32BIT to TARGET_ARM.
19782
19783 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
19784
19785         * tree.h (struct typed_tree): New.
19786         (struct tree_common): Include it instead of tree_base.
19787         (TREE_TYPE): Update for new location of type field.
19788         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
19789         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
19790         (union tree_node): Add typed field.
19791         * treestruct.def (TS_TYPED): New.
19792         * lto-streamer.c (check_handled_ts_structures): Handle it.
19793         * tree.c (MARK_TS_TYPED): New macro.
19794         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
19795
19796 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
19797
19798         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
19799         (force_nonfallthru): Do not alter the loop nest if no basic block
19800         was created.
19801
19802 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
19803
19804         * config/i386/sse.md (VI): New mode iterator.
19805         (SSEMODEI): Remove.
19806         (AVX256MODEI): Ditto.
19807         (AVXMODEF4P): Ditto.
19808         (avxvecpsmode): Ditto.
19809         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
19810         (sse2_andnot<mode>3): New expander.
19811         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
19812         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
19813         (<any_logic:code><mode>3): Use VI mode iterator.
19814         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
19815         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
19816         (*andnottf3): Handle AVX three-operand constraints.
19817         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
19818
19819 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19820             Robert Millan  <rmh@gnu.org>
19821
19822         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
19823         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
19824         GNU_USER_DYNAMIC_LINKER64): Define.
19825         (REG_NAME): Don't undefine.
19826         (MD_UNWIND_SUPPORT): Undefine.
19827         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
19828         (REG_NAME): Don't undefine.
19829         (MD_UNWIND_SUPPORT): Undefine.
19830         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
19831
19832 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19833
19834         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
19835         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
19836
19837 2011-04-11  Xinliang David Li  <davidxl@google.com>
19838
19839         * value-profile.c (check_ic_target): New function.
19840         (gimple_ic_transform): Sanity check indirect call target.
19841         * gimple-low.c (gimple_check_call_args): Interface change.
19842         (gimple_check_call_matching_types): New function.
19843         * tree-inline.c (tree_can_inline_p): Call new function.
19844
19845 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
19846
19847         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
19848         tree-pretty-print.h & realmpfr.h.
19849
19850 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
19851
19852         PR middle-end/48464
19853         * ira.c (setup_pressure_classes): Fix typo in loop condition.
19854         (setup_allocno_and_important_classes): Ditto.
19855
19856 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19857
19858         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
19859         GNU_USER_DYNAMIC_LINKER.
19860         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
19861         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19862         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
19863         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19864         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19865         GNU_USER_TARGET_OS_CPP_BUILTINS.
19866         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
19867         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19868         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19869         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19870         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
19871         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19872         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19873         GNU_USER_TARGET_OS_CPP_BUILTINS.
19874         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19875         GNU_USER_DYNAMIC_LINKER.
19876         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19877         GNU_USER_TARGET_OS_CPP_BUILTINS.
19878         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
19879         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19880         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
19881         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19882         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
19883         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
19884         GNU_USER_DYNAMIC_LINKER64): Remove.
19885         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
19886         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19887         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19888         GNU_USER_DYNAMIC_LINKER.
19889         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19890         GNU_USER_TARGET_OS_CPP_BUILTINS.
19891         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19892         GNU_USER_TARGET_OS_CPP_BUILTINS.
19893         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
19894         to GNU_USER_TARGET_OS_CPP_BUILTINS.
19895         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19896         GNU_USER_TARGET_OS_CPP_BUILTINS.
19897         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
19898         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
19899         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19900         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
19901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19902         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19903         GNU_USER_DYNAMIC_LINKER.
19904         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19905         GNU_USER_TARGET_OS_CPP_BUILTINS.
19906         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19907         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19908         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19909         GNU_USER_DYNAMIC_LINKER.
19910         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19911         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19912         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19913         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19914         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19915         GNU_USER_DYNAMIC_LINKER.
19916         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19917         GNU_USER_DYNAMIC_LINKERN32.
19918         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19919         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
19920         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
19921         GNU_USER_DYNAMIC_LINKER32.
19922         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19923         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19924         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19925         GNU_USER_DYNAMIC_LINKER.
19926         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19927         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19928         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19929         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19930         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19931         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19932         GNU_USER_DYNAMIC_LINKER32.
19933         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19934         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19935         GNU_USER_DYNAMIC_LINKER.
19936         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19937         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19938         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19939         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
19940         GNU_USER_DYNAMIC_LINKER64.
19941         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19942         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19943         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19944         GNU_USER_DYNAMIC_LINKER.
19945         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19946         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19947         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19948         GNU_USER_DYNAMIC_LINKER.
19949         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19950         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19951         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19952         GNU_USER_DYNAMIC_LINKER32.
19953         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19954         GNU_USER_DYNAMIC_LINKER64.
19955         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19956         GNU_USER_DYNAMIC_LINKER64.
19957         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19958         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19959         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19960         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19961         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19962
19963 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
19964
19965         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
19966         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19967         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19968         GNU_USER_DYNAMIC_LINKER.
19969         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19970         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
19971         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19972         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19973         GNU_USER_DYNAMIC_LINKER64.
19974         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19975         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19976         GNU_USER_LINK_EMULATION.
19977         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19978         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19979         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19980         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19981         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19982         CPP_SPEC, CC1_SPEC): Remove.
19983         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19984         (GNU_USER_DYNAMIC_LINKER): Define.
19985         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19986         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19987         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19988         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19989         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19990         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19991         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19992         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19993         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19994         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19995         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19996         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19997         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19998         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19999         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
20000         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
20001         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20002         GNU_USER_DYNAMIC_LINKER.
20003         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20004         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20005         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20006         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20007         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
20008         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
20009         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
20010         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
20011         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
20012         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
20013
20014 2011-04-11  Kai Tietz  <ktietz@redhat.com>
20015
20016         PR target/9601
20017         PR target/11772
20018         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
20019         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
20020         comment.
20021         (ix86_is_msabi_thiscall): Removed.
20022         (ix86_is_type_thiscall): Likewise.
20023         (ix86_get_callcvt): New function.
20024         (ix86_comp_type_attributes): Simplify check.
20025         (ix86_function_regparm): Use ix86_get_callcvt for calling
20026         convention attribute checks.
20027         (ix86_return_pops_args): Likewise.
20028         (ix86_static_chain): Likewise.
20029         (x86_this_parameter): Likewise.
20030         (x86_output_mi_thunk): Likewise.
20031         (ix86_function_type_abi): Optimize check for types without attributes.
20032         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
20033         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
20034         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
20035         by flag-values.
20036         (IX86_BASE_CALLCVT): Helper macro.
20037         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
20038         Use ix86_get_callcvt for calling convention attribute checks and avoid
20039         symbol-decoration for stdcall in TARGET_RTD case.
20040         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
20041         Likewise.
20042         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
20043         for declaration.
20044
20045 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
20046
20047         * config/i386/sse.md (VI_128): New mode iterator.
20048         (VI12_128): Rename from SSEMODE12.
20049         (VI14_128): Rename from SSEMODE14.
20050         (VI124_128): New mode iterator.
20051         (VI24_128): Rename from SSEMODE248.
20052         (VI248_128): Rename from SSEMODE248.
20053         (SSEMODE124C8): Remove.
20054         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20055         (*sse2_<plusminus_insn><mode>3): Merge with
20056         *avx_<plusminus_insn><mode>3.
20057         (*mulv8hi3): Merge with *avx_mulv8hi3.
20058         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
20059         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
20060         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
20061         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
20062         (ashr<mode>3): Merge with *avx_ashr<mode>3.
20063         (lshr<mode>3): Merge with *avx_lshr<mode>3.
20064         (ashl<mode>3): Merge with *avx_ashl<mode>3.
20065         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
20066         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
20067         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20068         (*<smaxmin:code>v8hi3): Ditto.
20069         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
20070         (*<smaxmin:code>v16qi3): Ditto.
20071         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
20072         (*sse2_eq<mode>3): Ditto.
20073         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
20074         (*sse2_gt<mode>3): Ditto.
20075         (vcondv2di): Split out of vcond<mode>.
20076         (vconduv2di): Split out of vcondu<mode>.
20077
20078 2011-04-11  Richard Guenther  <rguenther@suse.de>
20079
20080         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
20081         before calling tree_low_cst.
20082
20083 2011-04-11  Richard Guenther  <rguenther@suse.de>
20084
20085         * stor-layout.c (layout_type): Compute all array index size operations
20086         in the original type.
20087         (initialize_sizetypes): Add comment.
20088         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
20089
20090 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
20091
20092         * common.opt (Tbss=, Tdata=, Ttext=): New options.
20093
20094 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20095
20096         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
20097         of cgraph_node, handle NULL return value.
20098         (cgraph_global_info): Likewise.
20099         (cgraph_rtl_info): Likewise.
20100         * tree-inline.c (estimate_num_insns): Likewise.
20101         * gimplify.c (unshare_body): Likewise.
20102         (unvisit_body): Likewise.
20103         (gimplify_body): Likewise.
20104         * predict.c (optimize_function_for_size_p): Likewise.
20105         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20106         (call_may_clobber_ref_p_1): Likewise.
20107         * varasm.c (function_section_1): Likewise.
20108         (assemble_start_function): Likewise.
20109
20110 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20111
20112         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
20113         of cgraph_node.
20114         * final.c (rest_of_clean_state): Likewise.
20115         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
20116         * passes.c (pass_init_dump_file): Likewise.
20117         (execute_all_ipa_transforms): Likewise.
20118         (function_called_by_processed_nodes_p): Likewise.
20119         * predict.c (maybe_hot_frequency_p): Likewise.
20120         (probably_never_executed_bb_p): Likewise.
20121         (compute_function_frequency): Likewise.
20122         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
20123         (unnest_nesting_tree_1): Likewise.
20124         (lower_nested_functions): Likewise.
20125         * tree-optimize.c (execute_fixup_cfg): Likewise.
20126         (tree_rest_of_compilation): Likewise.
20127         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
20128         * tree-sra.c (ipa_early_sra): Likewise.
20129         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
20130         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
20131         * ipa.c (record_cdtor_fn): Likewise.
20132         * ipa-inline.c (cgraph_early_inlining): Likewise.
20133         (compute_inline_parameters_for_current): Likewise.
20134         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20135         * ipa-pure-const.c (local_pure_const): Likewise.
20136         * ipa-split.c (split_function): Likewise.
20137         (execute_split_functions): Likewise.
20138         * cgraphbuild.c (build_cgraph_edges): Likewise.
20139         (rebuild_cgraph_edges): Likewise.
20140         (cgraph_rebuild_references): Likewise.
20141         (remove_cgraph_callee_edges): Likewise.
20142         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
20143         (verify_cgraph_node): Likewise.
20144         (cgraph_analyze_functions): Likewise.
20145         (cgraph_preserve_function_body_p): Likewise.
20146         (save_inline_function_body): Likewise.
20147         (save_inline_function_body): Likewise.
20148         * tree-inline.c (copy_bb): Likewise.
20149         (optimize_inline_calls): Likewise.
20150
20151 2011-04-11  Martin Jambor  <mjambor@suse.cz>
20152
20153         PR tree-optimization/48195
20154         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
20155         ipa_check_create_edge_args.
20156         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
20157         ipa_check_create_edge_args.
20158         * ipa-inline.c (inline_generate_summary): Do not call
20159         ipa_check_create_node_params and ipa_check_create_edge_args.
20160         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
20161         ipa_check_create_edge_args.
20162
20163 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
20164
20165         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
20166         instead of loop.
20167         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
20168         * function.c (record_hard_reg_sets): Likewise.
20169         * ira.c (compute_regs_asm_clobbered): Likewise.
20170         * sched-deps.c (sched_analyze_1): Likewise.
20171         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
20172
20173 2011-04-09  Xinliang David Li  <davidxl@google.com>
20174
20175         PR tree-optimization/PR48484
20176         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
20177         has_valid_pred lazily
20178
20179 2011-04-09  Duncan Sands  <baldrick@free.fr>
20180
20181         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
20182
20183 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
20184
20185         * combine.c (combine_validate_cost): Adjust comments.  Set registered
20186         cost of I0 to zero at the end, if any.
20187
20188 2011-04-08  Xinliang David Li  <davidxl@google.com>
20189
20190         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
20191         to insane profile data.
20192
20193 2011-04-08  Xinliang David Li  <davidxl@google.com>
20194
20195         * ipa-cp.c (ipcp_update_profiling): Correct
20196          negative scale factor due to insane profile data.
20197
20198 2011-04-08  Xinliang David Li  <davidxl@google.com>
20199
20200         * final.c (dump_basic_block_info): New function.
20201         (final): Dump basic block.
20202         (final_scan_insn): Remove old dump.
20203
20204 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
20205
20206         PR target/47829
20207         * config.gcc (i386-*-freebsd): Disable unwind table generation for
20208         crtbegin/crtend.
20209
20210 2011-04-08  Michael Matz  <matz@suse.de>
20211
20212         PR middle-end/48389
20213         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
20214         functions.
20215         (rebuild_jump_labels): Call rebuild_jump_labels_1.
20216         * rtl.h (rebuild_jump_labels_chain): Declare.
20217         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
20218         insns inserted on edges.
20219
20220 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
20221
20222         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
20223         * config/arm/arm-arches.def: New.
20224         * config/arm/arm-opts.h: New.
20225         * config/arm/genopt.sh: New.
20226         * config/arm/arm-tables.opt: New (generated).
20227         * config/arm/arm.c (arm_handle_option, arm_target_help,
20228         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
20229         (all_architectures): Get most table contents from arm-arches.def.
20230         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
20231         arm_selected_tune here.
20232         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
20233         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
20234         (march=, mcpu=, mtune=): Use Enum and Var.
20235         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
20236         (arm.o): Update dependencies.
20237
20238 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
20239
20240         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
20241         of header_file.
20242         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
20243         (write_typed_alloc_defns): Likewise.
20244         (main): Calls write_typed_alloc_defns with output_header.
20245
20246 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
20247
20248         PR inline-asm/48435
20249         * ira-color.c (setup_profitable_hard_regs): Add comments.
20250         Don't take prohibited hard regs into account.
20251         (setup_conflict_profitable_regs): Rename to
20252         get_conflict_profitable_regs.
20253         (check_hard_reg_p): Check prohibited hard regs.
20254
20255 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
20256
20257         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
20258         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
20259         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
20260
20261 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20262
20263         PR target/48366
20264         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
20265         move from floating point to shift amount register.
20266         (emit_move_sequence): Remove secondary reload support for floating
20267         point to shift amount amount register copies.
20268         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
20269         amount register copies.
20270         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
20271         register, return false if mode isn't a scalar integer mode.
20272         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
20273
20274 2011-04-08  Richard Guenther  <rguenther@suse.de>
20275
20276         * gimple.c (gimple_call_flags): Remove kludge.
20277
20278 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20279
20280         * sel-sched.c (sel_region_init): Move call to
20281         sel_setup_region_sched_flags after setup_current_loop_nest.
20282
20283 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
20284
20285         PR rtl-optimization/48272
20286         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
20287         init_insn_reg_pressure_info.  Adjust a caller.
20288         * sched-int.h (init_insn_reg_pressure_info): Declare.
20289         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
20290         when sched-pressure is enabled.
20291
20292 2011-04-08  Richard Guenther  <rguenther@suse.de>
20293
20294         * gimple.c (gimple_set_modified): Do not queue calls to
20295         MODIFIED_NORETURN_CALLS here ...
20296         * tree-ssa-operands.c (update_stmt_operands): ... but here.
20297
20298 2011-04-08  Richard Guenther  <rguenther@suse.de>
20299
20300         PR lto/48467
20301         * toplev.c (lang_dependent_init): Do not open asm_out_file
20302         in WPA mode, nor perform debug machinery initialization.
20303         (finalize): Do not unlink asm_out_file in WPA mode.
20304
20305 2011-04-08  Richard Guenther  <rguenther@suse.de>
20306
20307         * gimple.h (gimple_call_fntype): New function.
20308         (gimple_call_return_type): Use it.
20309         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
20310         * gimple-low.c (gimple_check_call_args): Likewise.
20311         * gimple.c (gimple_call_flags): Likewise.
20312         (gimple_call_arg_flags): Likewise.
20313         (gimple_call_return_flags): Likewise.
20314         * tree-cfg.c (verify_gimple_call): Likewise.
20315         (do_warn_unused_result): Likewise.
20316         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20317         * value-prof.c (gimple_ic_transform): Fix fndecl check.
20318
20319 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
20320
20321         PR rtl-optimization/48235
20322         * sel-sched.c (code_motion_process_successors): Recompute the last
20323         insn in basic block if control flow changed.
20324         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
20325         Update condition for ilist_remove.
20326
20327 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20328
20329         PR rtl-optimization/48302
20330         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
20331         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
20332         it to record added preheader blocks.
20333         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
20334         on to sel_add_loop_preheaders.
20335         (sel_region_init): Move call to setup_current_loop_nest after
20336         sel_init_bbs.
20337
20338 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20339
20340         PR target/48273
20341         * cfgloop.h (loop_has_exit_edges): New helper.
20342         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
20343         non-clonable.
20344         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
20345         that have no exit edges.
20346
20347 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
20348
20349         PR rtl-optimization/48442
20350         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
20351         all callers.  Adjust assert.
20352
20353 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
20354
20355         PR tree-optimization/48377
20356         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
20357         is_packed to true even for types with smaller TYPE_ALIGN than
20358         TYPE_SIZE.
20359
20360 2011-04-08  Richard Guenther  <rguenther@suse.de>
20361
20362         PR bootstrap/48513
20363         * doc/tm.texi: Re-generate.
20364
20365 2011-04-08  Wei Guozhi  <carrot@google.com>
20366
20367         PR target/47855
20368         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
20369         * config/arm/arm.c (arm_attr_length_push_multi): New function.
20370         * config/arm/arm.md (*push_multi): Change the length computation to
20371         call a C function.
20372
20373 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
20374
20375         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
20376         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
20377         * doc/tm.texi: Regenerate.
20378         * system.h (ASM_OUTPUT_BSS): Poison.
20379         * varasm.c (asm_output_bss): Remove function.
20380         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
20381
20382         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
20383         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
20384         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
20385         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20386         Likewise.
20387         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20388         Likewise.
20389         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
20390         Likewise.
20391         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
20392
20393 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20394
20395         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
20396         EnumValue lines.
20397
20398 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
20399
20400         * config/m68k/m68k.c (m68k_handle_option): Don't handle
20401         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
20402         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
20403         OPT_mcpu32.
20404         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20405         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
20406         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
20407         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
20408         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
20409         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
20410         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20411         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
20412         options.  Don't map other m68k options manually.  Don't handle
20413         old-style options as canonical.
20414         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
20415         * doc/install.texi (m68k-*-*): Document binutils version requirement.
20416
20417 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
20418
20419         * basic-block.h (force_nonfallthru): Move to...
20420         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
20421         (force_nonfallthru): ...here.
20422         * cfghooks.c (force_nonfallthru): New function.
20423         * cfgrtl.c (force_nonfallthru): Rename into...
20424         (rtl_force_nonfallthru): ...this.
20425         (commit_one_edge_insertion): Do not set AUX field.
20426         (commit_edge_insertions): Do not discover new basic blocks.
20427         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
20428         (cfg_layout_rtl_cfg_hooks): Likewise.
20429         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
20430         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
20431         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
20432
20433 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
20434
20435         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20436         Remove macros.
20437
20438 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
20439
20440         * config/i386/sse.md: Update copyright year.
20441         (avxcvtvecmode): Remove.
20442         (sse_movhlps): Merge with *avx_movhlps.
20443         (sse_movlhps): Merge with *avx_movlhps.
20444         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
20445         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
20446         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
20447         (sse_loadhps): Merge with *avx_loadhps.
20448         (sse_storelps): Merge with *avx_storelps.
20449         (sse_loadlps): Merge with *avx_loadlps.
20450         (sse_movss): Merge with *avx_movss.
20451         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
20452         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
20453         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
20454         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
20455         (vec_set<mode>_0): Ditto.
20456         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
20457         (sse4_1_insertps): Merge with *avx_insertps.
20458         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
20459         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
20460         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
20461         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
20462         (sse2_storehpd): Merge with *avx_storehpd.
20463         (sse2_loadhpd): Merge with *avx_loadhpd.
20464         (sse2_loadlpd): Merge with *avx_loadlpd.
20465         (sse2_movsd): Merge with *avx_movsd.
20466         (*vec_concatv2df): Merge with *vec_concatv2df.
20467
20468 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
20469
20470         PR debug/48343
20471         * combine.c (combine_instructions): Add last_combined_insn,
20472         update it if insn is after it, pass it to all try_combine calls.
20473         (try_combine): Add last_combined_insn parameter, pass it instead of
20474         i3 to propagate_for_debug.
20475
20476 2011-04-07  Nick Clifton  <nickc@redhat.com>
20477
20478         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
20479         to handle MDR <-> data register transfers.
20480         (movhi_internal): Likewise.
20481
20482 2011-04-07  Alan Modra  <amodra@gmail.com>
20483
20484         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
20485         previous stack info.
20486
20487 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20488
20489         PR target/43920
20490         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
20491         flow_find_cross_jump.  Swap variables to implement backward replacement.
20492         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
20493
20494 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20495
20496         PR target/43920
20497         * cfgcleanup.c (walk_to_nondebug_insn): New function.
20498         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
20499         and bb2.
20500         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
20501         src1 or src2.  Redirect edges to the last basic block.  Update
20502         frequency and count on multiple basic blocks in case of fallthru.
20503
20504 2011-04-07  Tom de Vries  <tom@codesourcery.com>
20505
20506         PR target/43920
20507         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
20508         function.
20509         (old_insns_match_p): Change return type.  Replace return false/true
20510         with return dir_none/dir_both.  Use can_replace_by.
20511         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
20512         direction from dir_p.  Register replacement direction in dir, last_dir
20513         and afterlast_dir.  Handle new return type of old_insns_match_p using
20514         merge_dir.  Return replacement direction in dir_p.
20515         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
20516         return type of old_insns_match_p.
20517         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
20518         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
20519         flow_find_cross_jump.
20520         * basic-block.h (enum replace_direction): New type.
20521         (flow_find_cross_jump): Add parameter to declaration.
20522
20523 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20524
20525         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
20526         (AVXMODEDCVTPS2DQ): Ditto.
20527         (VEC_FLOAT_MODE): Ditto.
20528         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
20529         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20530         (<any_logic:code><mode>3): Use VF mode iterator.
20531         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
20532         Use VF mode iterator.
20533         (copysign<mode>3): Use VF mode iterator.
20534         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
20535         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
20536         (*<any_logic:code><MODEF:mode>3): Merge with
20537         *avx_<any_logic:code><MODEF:mode>3.
20538         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
20539         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
20540         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
20541         (avx_cvtdq2ps<avxmodesuffix>): Remove.
20542         (sse2_cvtdq2ps): Use %v modifier.
20543         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
20544         (avx_cvtps2dq<avxmodesuffix>): Remove.
20545         (sse2_cvtps2dq): Use %v modifier.
20546         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
20547         (avx_cvttps2dq<avxmodesuffix>): Remove.
20548         (sse2_cvttps2dq): Use %v modifier.
20549         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
20550         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
20551         (sse2_cvtsd2siq): Fix insn template.
20552         (sse2_cvtsd2siq_2): Ditto.
20553         (sse2_cvttsd2siq): Ditto.
20554         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
20555         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
20556
20557 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20558
20559         * gcov-io.c: Use GCC Runtime Library Exception.
20560
20561 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
20562
20563         PR debug/48466
20564         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
20565         as base_reg whatever register reg has been eliminated to, instead
20566         of hardcoding STACK_POINTER_REGNUM.
20567
20568 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
20569
20570         * doc/tm.texi.in: Document C target hooks as separate from general
20571         target hooks.
20572         * doc/tm.texi: Regenerate.
20573         * genhooks.c (struct hook_desc): Add docname field.
20574         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
20575         docname field.
20576         (hook_array): Include c-target.def.
20577         (emit_documentation): Use docname field in output.
20578         (emit_init_macros): Take docname argument.  Only emit definitions
20579         for hooks matching docname.
20580         (main): Expect additional arguments in all cases.  Pass argument
20581         to emit_init_macros.
20582         * target.def: Move initial macro definitions and comments to
20583         target-hooks-macros.h.
20584         (gcc_targetcm): Move to c-family/c-target.def.
20585         * target.h (targetcm): Move declaration to c-family/c-target.h.
20586         * targhooks.c (default_handle_c_option): Move to
20587         c-family/c-opts.c.
20588         * targhooks.h (default_handle_c_option): Move declaration to
20589         c-family/c-common.h.
20590         * target-hooks-macros.h: New file.
20591         * config.gcc (target_has_targetcm): Define and use to add to
20592         c_target_objs and cxx_target_objs.
20593         * config/default-c.c: New file.
20594         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
20595         of target.h and target-def.h.
20596         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
20597         (darwin_objc_construct_string, darwin_cfstring_ref_p,
20598         darwin_check_cfstring_format_arg): Make static.
20599         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20600         TARGET_STRING_OBJECT_REF_TYPE_P,
20601         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
20602         * config/darwin-protos.h (darwin_objc_construct_string,
20603         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
20604         declare.
20605         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
20606         TARGET_STRING_OBJECT_REF_TYPE_P,
20607         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
20608         * config/t-darwin (darwin-c.o): Update dependencies.
20609         * system.h (TARGET_HAS_TARGETCM): Poison.
20610         * Makefile.in (TARGET_H): Update.
20611         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
20612         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
20613         (default-c.o): New target.
20614         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
20615         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
20616         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
20617         c-target.def.
20618         (build/genhooks.o): Update dependencies.
20619
20620 2011-04-06  Richard Guenther  <rguenther@suse.de>
20621
20622         * ipa-inline.c (enum inlining_mode): Remove.
20623         (cgraph_flatten): Use some other token.
20624         (cgraph_edge_early_inlinable_p): New function, split out from ...
20625         (cgraph_perform_always_inlining): New function, split out from ...
20626         (cgraph_decide_inlining_incrementally): ... here.
20627         (cgraph_mark_inline_edge): Adjust.
20628         (cgraph_early_inlining): Re-structure.
20629         (pass_early_inline): Require SSA form.
20630
20631 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
20632             Julian Brown  <julian@codesourcery.com>
20633             Mark Shinwell  <shinwell@codesourcery.com>
20634
20635         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
20636         LO_REGS only for Thumb-1.
20637         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
20638         be used in short instructions when optimising for size on Thumb-2.
20639
20640 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
20641
20642         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
20643         associated with user returns to be preserved.
20644
20645 2011-04-06  Tristan Gingold  <gingold@adacore.com>
20646
20647         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
20648         symbol_queue_size, DBXOUT_DECR_NESTING,
20649         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
20650         if XCOFF_DEBUGGING_INFO.
20651
20652 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
20653
20654         * config/i386/i386.md (attribute isa): New.
20655         (attribute enabled): New.
20656         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
20657         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
20658         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
20659         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
20660         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
20661         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20662         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
20663         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
20664
20665         * config/i386/sse.md (VF): New mode iterator.
20666         (VF1): Ditto.
20667         (VF2): Ditto.
20668         (VF_128): Ditto.
20669         (SSEMODEF4): Remove.
20670         (attribute sse): Handle V8SF and V4DF modes.
20671         (<absneg:code><mode>2): Use VF mode iterator.
20672         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
20673         mode iterator.
20674         (<plusminus_insn><mode>3): Use VF mode iterator.
20675         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
20676         Use VF mode iterator.
20677         (<sse>_vm<plusminus_insn><mode>3): Merge with
20678         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
20679         (mul<mode>3): Use VF mode iterator.
20680         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
20681         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
20682         mode iterator.
20683         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
20684         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
20685         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
20686         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
20687         mode iterator.
20688         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
20689         Use VF1 mode iterator.
20690         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
20691         (sqrt<VF2:mode>2): New expander.
20692         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
20693         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
20694         and sqrtv2df2.  Use VF mode iterator.
20695         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
20696         mode iterator.
20697         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
20698         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
20699         Use VF1 mode iterator.
20700         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
20701         (<smaxmin:code><mode>3): Use VF mode iterator.
20702         (*<smaxmin:code><mode>3_finite): Merge with
20703         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
20704         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
20705         (<sse>_vm<smaxmin:code><mode>2): Merge with
20706         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
20707         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
20708         mode iterator.
20709         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
20710         mode iterator.
20711         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
20712         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
20713         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
20714         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
20715         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
20716         VF mode iterator.
20717         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
20718         Use VF_128 mode iterator.
20719         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
20720         mode iterator.
20721         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
20722         VF_128 mode iterator.
20723         (vcond<mode>): Use VF mode iterator.
20724         * config/i386/predicates.md (sse_comparison_operator): Merge with
20725         avx_comparison_float_operator.  Do not declare as special_predicate.
20726         * config/i386/i386.c (struct builtin_description): Update for renamed
20727         compare patterns.
20728         (ix86_expand_args_builtin): Ditto.
20729         (ix86_expand_sse_compare_mask): Ditto.
20730
20731 2011-04-06  Richard Guenther  <rguenther@suse.de>
20732
20733         * tree-inline.c (estimate_num_insns): For calls simply account
20734         for all passed arguments and a used return value.
20735
20736 2011-04-06  Richard Guenther  <rguenther@suse.de>
20737
20738         PR tree-optimization/47663
20739         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
20740         call_stmt_time fields.
20741         (cgraph_edge_inlinable_p): Declare.
20742         (cgraph_edge_recursive_p): New inline function.
20743         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
20744         (cgraph_clone_edge): Copy it.
20745         * ipa-inline.c (cgraph_estimate_edge_time): New function.
20746         Account for call stmt time.
20747         (cgraph_estimate_time_after_inlining): Take edge argument.
20748         (cgraph_estimate_edge_growth): Account call stmt size.
20749         (cgraph_estimate_size_after_inlining): Take edge argument.
20750         (cgraph_mark_inline_edge): Adjust.
20751         (cgraph_check_inline_limits): Likewise.
20752         (cgraph_recursive_inlining_p): Remove.
20753         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
20754         (cgraph_decide_recursive_inlining): Take edge argument and
20755         adjust.
20756         (cgraph_decide_inlining_of_small_functions): Do not avoid
20757         diags for recursive inlining here.
20758         (cgraph_flatten): Adjust.
20759         (cgraph_decide_inlining_incrementally): Likewise.
20760         (estimate_function_body_sizes): Remove call cost handling.
20761         (compute_inline_parameters): Initialize caller edge call costs.
20762         (cgraph_estimate_edge_growth): New function.
20763         (cgraph_estimate_growth): Use it.
20764         (cgraph_edge_badness): Likewise.
20765         (cgraph_check_inline_limits): Take an edge argument.
20766         (cgraph_decide_inlining_of_small_functions): Adjust.
20767         (cgraph_decide_inlining): Likewise.
20768         * tree-inline.c (estimate_num_insns): Only account for call
20769         return value if it is used.
20770         (expand_call_inline): Avoid diagnostics on recursive inline
20771         functions here.
20772         * lto-cgraph.c (lto_output_edge): Output edge call costs.
20773         (input_edge): Input edge call costs.
20774
20775 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20776
20777         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
20778
20779 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
20780
20781         * doc/invoke.texi (Spec Files): Fix typo.
20782
20783 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
20784
20785         * profile.c (branch_prob): Move declaration of local variable.  Remove
20786         obsolete ??? comment.  Expand the location explicitly instead of using
20787         the LOCATION_FILE and LOCATION_LINE macros.
20788
20789 2011-04-06  Wei Guozhi  <carrot@google.com>
20790
20791         PR target/47855
20792         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
20793         (arm_cond_branch): Likewise.
20794         (arm_cond_branch_reversed): Likewise.
20795         (arm_jump): Likewise.
20796         (push_multi): Likewise.
20797         * config/arm/constraints.md (Py): New constraint.
20798
20799 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20800
20801         PR bootstrap/48471
20802         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
20803         Move these...
20804         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
20805         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
20806         #ifdef DBX_DEBUGGING_INFO.
20807
20808 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
20809
20810         PR bootstrap/48403
20811         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
20812         if old and new states differ.
20813
20814 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
20815
20816         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
20817         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
20818         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
20819         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
20820         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
20821         mcfv4e): Use Alias.
20822         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
20823         ColdFire options to -mcpu= options.
20824
20825 2011-04-05  Jeff Law  <law@redhat.com>
20826
20827         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
20828         check if BB is a successor of LOOP->header and return
20829         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
20830
20831 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
20832
20833         * cprop.c (struct reg_use): Remove.
20834         (reg_use_table): Make an array of RTX.
20835         (find_used_regs, constprop_register, local_cprop_pass,
20836         bypass_block): Simplify users of reg_use_table.
20837         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
20838         on one of the uses found by find_used_regs.
20839
20840 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20841
20842         PR bootstrap/48469
20843         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
20844         declaration.
20845
20846 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20847
20848         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
20849         as an rtx.
20850         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
20851
20852 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
20853
20854         PR middle-end/48441
20855         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
20856
20857 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20858
20859         * combine.c: Include obstack.h.
20860         (struct insn_link): Define.
20861         (uid_log_links): Adjust type.
20862         (FOR_EACH_LOG_LINK): New macro.
20863         (insn_link_obstack): Declare.
20864         (alloc_insn_link): Define.
20865         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
20866         type of link variables.
20867         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
20868         (try_combine, record_promoted_values, distribute_notes): Likewise.
20869         (distribute_links): Likewise.  Tweak prototype.
20870         (clear_log_links): Delete.
20871         (adjust_for_new_dest): Call alloc_insn_link.
20872         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
20873
20874 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20875
20876         * gcse.c (modify_mem_list): Convert to an array of VECs.
20877         (canon_modify_mem_list, compute_transp): Tweak formatting.
20878         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
20879         (load_killed_in_block_p): Likewise.
20880         (record_last_mem_set_info): Likewise.
20881         (clear_modify_mem_tables): Likewise.
20882
20883 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20884
20885         PR middle-end/48461
20886         * function.c (emit_use_return_register_into_block): Only define if
20887         HAVE_return.
20888
20889 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
20890
20891         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
20892
20893 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
20894
20895         * config/rx/rx-opts.h: New.
20896         * config/rx/rx.c (rx_cpu_type): Remove.
20897         (rx_handle_option): Don't assert that global structures are in
20898         use.  Access variables via opts pointer.  Defer most handling of
20899         OPT_mint_register_.  Use error_at.
20900         (rx_option_override): Handle deferred OPT_mint_register_ here.
20901         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
20902         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
20903         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
20904         (rx_cpu_types): New Enum and EnumValue entries.
20905         (mint-register=): Use Defer and use Var accordingly.
20906
20907 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20908
20909         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20910         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20911         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20912         Move these...
20913         (debug_free_queue, debug_nesting, symbol_queue_index):
20914         ...and these...
20915         * dbxout.c: ...to here.  Make static.
20916
20917 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
20918
20919         * gcse.c (modify_pair): Define.  Define a VEC of it.
20920         (canon_modify_mem_list): Convert to an array of VECs.
20921         (free_insn_expr_list_list): Delete.
20922         (clear_modify_mem_tables): Call VEC_free instead.
20923         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20924         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20925         (canon_list_insert, compute_transp): Likewise.
20926
20927 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20928
20929         PR target/43920
20930         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20931         for size.
20932
20933 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20934
20935         PR target/43920
20936         * function.c (emit_use_return_register_into_block): New function.
20937         (thread_prologue_and_epilogue_insns): Use
20938         emit_use_return_register_into_block.
20939
20940 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20941
20942         PR target/43920
20943         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20944         insn.
20945
20946 2011-04-05  Tom de Vries  <tom@codesourcery.com>
20947
20948         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20949
20950 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
20951
20952         * config/arm/arm.md (define_constants for unspec): Replace with
20953         define_c_enum.
20954         (define_constants for unspecv): Replace with define_c_enum.
20955         * config/arm/neon.md (define_constants for unspec): Replace with
20956         define_c_enum.
20957
20958 2011-04-04  Richard Henderson  <rth@redhat.com>
20959
20960         PR bootstrap/48400
20961         * dwarf2out.c (output_line_info): Always emit line info from
20962         at least one section.
20963         (dwarf2out_init): Create text_section_line_info here ...
20964         (set_cur_line_info_table): ... not here.
20965
20966 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
20967
20968         PR target/48380
20969         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20970         not called.
20971
20972         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20973
20974 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
20975
20976         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20977         (expr_equiv_p): Remove.
20978         (insert_set_in_table): Look at <dest, src> pair instead of expr.
20979         (hash_scan_set): Update call to insert_set_in_table.
20980         (dump_hash_table): Dump <dest, src> pair.
20981         (lookup_set): Simplify.  Lookup <dest, src> pair.
20982         (compute_transp): Remove, fold heavily simplified code into...
20983         (compute_local_properties): ...here.  Expect COMP and TRANSP
20984         unconditionally.
20985         (find_avail_set): Take set directly from struct expr.
20986         (find_bypass-set): Likewise.
20987         (bypass_block): Likewise.
20988         (cprop_insn): Likewise.  Remove redundant INSN_P test.
20989
20990         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20991         checks on form of COND from find_implicit_sets to here.
20992         (find_implicit_sets): Cleanup control flow. Split critical edges
20993         if it exposes implicit sets.  Allocate/resize implicit_sets as
20994         necessary.
20995         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20996         changed something.  Run df_analyze after find_implicit_sets if any
20997         edges were split.  Do not allocate implicit_sets here.
20998
20999         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
21000         (gcse_obstack): Renamed to cprop_obstack.
21001         (GNEW, GNEWVEC, GNEWVAR): Remove.
21002         (gmalloc): Remove.
21003         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
21004         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
21005         (gcse_alloc): Likewise, and rename to cprop_alloc.
21006         (alloc_gcse_men, free_gcse_mem): Remove.
21007         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
21008         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
21009         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
21010
21011         * cprop.c (oprs_not_set_p): Remove.
21012         (mark_set, mark_clobber): Remove.
21013         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
21014         (reg_not_set_p): New function.
21015         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
21016         (cprop_insn): Likewise.
21017         (cprop_jump): Use FOR_EACH_EDGE.
21018
21019 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
21020
21021         PR bootstrap/48403
21022         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
21023         (rank_for_schedule): Use scheduled_insns vector instead of
21024         last_scheduled_insn.
21025         (ok_for_early_queue_removal): Likewise.
21026         (queue_to_ready): Search forward in nonscheduled_insns_begin if
21027         we have a dbg_cnt.
21028         (choose_ready): Likewise.
21029         (commit_schedule): Use VEC_iterate.
21030         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
21031         a dbg_cnt, use it and ensure the first insn is in the ready list.
21032         (haifa_sched_init): Allocate scheduled_insns.
21033         (sched_extend_ready_list): Don't allocate it; reserve space.
21034         (haifa_sched_finish): Free it.
21035
21036 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21037
21038         * optc-gen.awk: Always remove type from Variable entry before
21039         recording in var_seen.
21040
21041 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
21042
21043         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
21044         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
21045         call to tidy_fallthru_edges.
21046
21047 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
21048
21049         * doc/options.texi (ToLower): Document.
21050         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
21051         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
21052         * opts.h (cl_option): Add cl_tolower field.
21053         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
21054         arguments with lowercase strings.
21055         * config/rx/rx.opt (mcpu=): Add ToLower.
21056         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
21057         argument.
21058
21059 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21060
21061         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
21062
21063 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
21064
21065         * config/vax/vax.c: Include reload.h.
21066
21067 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
21068
21069         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
21070         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
21071         (sparc_preferred_reload_class): New function.
21072
21073 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
21074
21075         PR debug/48401
21076         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21077         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
21078
21079 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
21080
21081         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
21082         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
21083
21084 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
21085
21086         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
21087         (ASM_OUTPUT_ALIGNED_BSS): Define.
21088
21089 2011-04-03  Michael Matz  <matz@suse.de>
21090
21091         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
21092         and next_slot members.
21093         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
21094         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
21095         (lto_streamer_cache_append): Declare.
21096         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
21097         unsigned index, remove offset parameter, ensure that we append
21098         or update existing entries.
21099         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
21100         parameter, update next_slot for append.
21101         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
21102         parameter.
21103         (lto_streamer_cache_insert_at): Likewise.
21104         (lto_streamer_cache_append): New function.
21105         (lto_streamer_cache_lookup): Use unsigned index.
21106         (lto_streamer_cache_get): Likewise.
21107         (lto_record_common_node): Don't test tree_node_can_be_shared.
21108         (preload_common_node): Adjust call to lto_streamer_cache_insert.
21109         (lto_streamer_cache_delete): Don't free offsets member.
21110         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
21111         (lto_output_string_with_length): Use lto_output_data_stream.
21112         (lto_output_tree_header): Remove ix parameter, don't write it.
21113         (lto_output_builtin_tree): Likewise.
21114         (lto_write_tree): Adjust callers to above, don't track and write
21115         offset, write unsigned index.
21116         (output_unreferenced_globals): Don't emit all global vars.
21117         (write_global_references): Use unsigned indices.
21118         (lto_output_decl_state_refs): Likewise.
21119         (write_symbol): Likewise.
21120         * lto-streamer-in.c (lto_input_chain): Move earlier.
21121         (input_function): Use unsigned index.
21122         (input_alias_pairs): Don't read and then ignore all global vars.
21123         (lto_materialize_tree): Remove ix_p parameter, don't read index,
21124         don't pass it back, use lto_streamer_cache_append.
21125         (lto_register_var_decl_in_symtab): Use unsigned index.
21126         (lto_register_function_decl_in_symtab): Likewise.
21127         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
21128         index.
21129         (lto_get_builtin_tree): Don't read index, use
21130         lto_streamer_cache_append.
21131         (lto_read_tree): Adjust call to lto_materialize_tree.
21132
21133         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
21134         don't use function calls in arguments to MIN.
21135
21136         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
21137         twice.
21138
21139         * gimple.c (gimple_type_leader_entry): Mark deletable.
21140
21141 2011-04-03  Alan Modra  <amodra@gmail.com>
21142
21143         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
21144
21145 2011-04-03  Michael Matz  <matz@suse.de>
21146
21147         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
21148         an integer.
21149         * tree.h (tree_decl_non_common.vindex): Adjust comment.
21150
21151 2011-04-03  Michael Matz  <matz@suse.de>
21152
21153         * cgraphbuild.c (record_reference): Canonicalize constructor values.
21154         * gimple-fold.c (canonicalize_constructor_val): Accept being called
21155         without function context.
21156         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
21157         current_function_decl and cfun.
21158
21159 2011-04-03  Michael Matz  <matz@suse.de>
21160
21161         * tree.c (decl_init_priority_insert): Don't create entry for
21162         default priority.
21163         (decl_fini_priority_insert): Ditto.
21164         (fields_compatible_p, find_compatible_field): Remove.
21165         * tree.h (fields_compatible_p, find_compatible_field): Remove.
21166         * gimple.c (gimple_compare_field_offset): Adjust block comment.
21167
21168 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
21169
21170         * combine.c (try_combine): Remove useless local variable.
21171
21172 2011-04-03  Richard Guenther  <rguenther@suse.de>
21173             Ira Rosen  <ira.rosen@linaro.org>
21174
21175         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
21176         non-variable offsets and compare the remaining bases of the two
21177         accesses instead of looking for exact same data-ref.
21178
21179 2011-04-02  Kai Tietz  <ktietz@redhat.com>
21180
21181         PR target/48416
21182         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
21183
21184         * i386.c (ix86_is_msabi_thiscall): New helper function.
21185         (ix86_is_type_thiscall): New helper function.
21186         (ix86_comp_type_attributes): Handle thiscall for method-functions
21187         special.
21188         (init_cumulative_args): Likewise.
21189         (find_drap_reg): Likewise.
21190         (ix86_static_chain): Likewise.
21191         (x86_this_parameter): Likewise.
21192         (x86_output_mi_thunk): Likewise.
21193
21194 2011-04-01  Olivier Hainque  <hainque@adacore.com>
21195             Nicolas Setton  <setton@adacore.com>
21196             Eric Botcazou  <ebotcazou@adacore.com>
21197
21198         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
21199         (add_gnat_descriptive_type_attribute): New function.
21200         (gen_array_type_die): Call it.
21201         (gen_enumeration_type_die): Likewise.
21202         (gen_struct_or_union_type_die): Likewise.
21203         (modified_type_die): Likewise.
21204         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
21205         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
21206         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
21207
21208 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21209
21210         PR bootstrap/48148
21211         * dwarf2out.c (resolve_addr): Don't call force_decl_die
21212         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
21213
21214         Revert:
21215         2011-03-17  Richard Guenther  <rguenther@suse.de>
21216
21217         PR bootstrap/48148
21218         * lto-cgraph.c (input_overwrite_node): Clear the abstract
21219         origin for decls in other ltrans units.
21220         (input_varpool_node): Likewise.
21221
21222 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
21223
21224         PR middle-end/48335
21225         * expr.c (expand_assignment): Handle all possibilities
21226         if TO_RTX is CONCAT.
21227         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
21228         (store_split_bit_field): If SUBREG_REG (op0) or
21229         op0 itself has smaller mode than word, return it
21230         for offset 0 and const0_rtx for out-of-bounds stores.
21231         If word is const0_rtx, skip it.
21232
21233 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
21234
21235         * config/h8300/h8300.c (print_operand_address): Rename to...
21236         (h8300_print_operand_address): ...this. Make static. Adjust comments.
21237         Call h8300_print_operand and h8300_print_operand_address instead of
21238         print_operand and print_operand_address. Declare.
21239         (print_operand): Renake to...
21240         (h8300_print_operand): ...this. Make static. Adjust comments.
21241         Call h8300_print_operand instead of print_operand. Declare.
21242         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
21243         (h8300_register_move_cost): Likewise.
21244         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
21245         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
21246         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
21247         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
21248         * config/h8300/h8300-protos.h (print_operand): Delete.
21249         (print_operand_address): Delete.
21250
21251 2011-04-01  Richard Henderson  <rth@redhat.com>
21252
21253         PR 48400
21254         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
21255         in strict mode before dwarf4.  Re-order tests to early out
21256         before switching sections.
21257
21258 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
21259
21260         * config/h8300/constraints.md: New file.
21261         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
21262         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
21263         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
21264         * config/h8300/predicates.md (bit_operand): Likewise.
21265         (incdec_operand): Use satisfies_constraint_M and
21266         satisfies_constraint_O.  Don't use C code block.
21267         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
21268         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
21269         (compute_mov_length): Use satisfies_constraint_G.
21270         (fix_bit_operand): Use satisfies_constraint_U.
21271         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
21272         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
21273         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
21274         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
21275         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
21276         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
21277         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21278         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
21279         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
21280         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
21281         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
21282         (EXTRA_MEMORY_CONSTRAINT): Delete.
21283
21284 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
21285             Michael Meissner  <meissner@linux.vnet.ibm.com>
21286
21287         PR target/48262
21288         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
21289         operands, as per the specifications.
21290
21291         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
21292         (vec_extract_evenv4sf): Ditto.
21293         (vec_extract_evenv8hi): Ditto.
21294         (vec_extract_evenv16qi): Ditto.
21295         (vec_extract_oddv4si): Ditto.
21296
21297 2011-03-31  Mark Wielaard  <mjw@redhat.com>
21298
21299         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
21300         high_pc attribute if the CU has no associated code. Only output
21301         DW_AT_entry_pc for CU if not generating strict dwarf and
21302         dwarf_version < 4.
21303
21304 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
21305
21306         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
21307         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
21308         out of ...
21309         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
21310         * final.c (final_start_function): Call the new function rather
21311         than using a NULL argument for dwarf2out_frame_debug.
21312
21313         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
21314         that contains the prologue.
21315
21316         * haifa-sched.c (queue_insn): New arg REASON.  All callers
21317         changed.  Print it in debugging output.
21318
21319         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
21320
21321         * sched-ebb.c (begin_schedule_ready): Remove second argument.
21322         Split most of the code into...
21323         (begin_move_insn): ... here.  New function.
21324         (ebb_sched_info): Add a pointer to it.
21325         * haifa-sched.c (scheduled_insns): New static variable.
21326         (sched_extend_ready_list): Allocate it.
21327         (schedule_block): Use it to record the order of scheduled insns.
21328         Perform RTL changes to move insns only after all scheduling
21329         decisions have been made.
21330         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
21331         begin_move_insn field.
21332         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
21333         * sched-int.h (struct haifa_sched_info): Remove second argument
21334         from begin_schedule_ready hook.  Add new member begin_move_insn.
21335         * sched-rgn.c (begin_schedule_ready): Remove second argument.
21336         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
21337
21338         * haifa-sched.c (prune_ready_list): New function, broken out of
21339         schedule_block.
21340         (schedule_block): Use it.
21341
21342 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21343
21344         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
21345
21346 2011-04-01  Kai Tietz  <ktietz@redhat.com>
21347
21348         * config.gcc (*-*-mingw*): Allow as option the
21349         posix threading model.
21350         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
21351         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
21352         definition.
21353         (CPP_SPEC): Add pthread/no-pthread handling.
21354         (LIB_SPEC): Likewise.
21355         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
21356         (LIB_SPEC): Likewise.
21357         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
21358         flag to pass -pthread option for shared libgcc build.
21359         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
21360         for shared libgcc build.
21361         * config/i386/t-mingw-pthread: New file.
21362         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
21363         New define to enable use of library pthread by default.
21364         * config/i386/mingw.opt (pthread): New driver option.
21365         (no-pthread): New driver option.
21366         * config/i386/cygming.opt: Make sure trailing empty line is retained.
21367         * config/i386/mingw-w64.opt: Likewise.
21368
21369 2011-04-01  Gary Funck  <gary@intrepid.com>
21370
21371         * c-decl.c (grokdeclarator): Fix formatting.
21372
21373 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21374
21375         * expr.c (emit_block_move_via_movmem): Use n_generator_args
21376         instead of n_operands.
21377         (set_storage_via_setmem): Likewise.
21378         * optabs.c (maybe_gen_insn): Likewise.
21379         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
21380         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
21381         (mips_expand_builtin_direct): Likewise.
21382         * config/spu/spu.c (expand_builtin_args): Likewise.
21383
21384 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21385
21386         * recog.h (insn_data_d): Add n_generator_args.
21387         * genoutput.c (data): Likewise.
21388         (output_insn_data): Print it.
21389         (max_opno, num_dups): Delete.
21390         (scan_operands): Just fill in "d->operand[...]".
21391         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
21392
21393 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
21394
21395         * gensupport.h (pattern_stats): New structure.
21396         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
21397         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
21398         (max_operand_1, max_operand_vec): Delete.
21399         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
21400
21401 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
21402
21403         * emit-rtl.c (emit_pattern_after_setloc): New function.
21404         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
21405         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
21406         (emit_pattern_after): New function.
21407         (emit_insn_after, emit_jump_insn_after): Call it.
21408         (emit_call_insn_after, emit_debug_insn_after): Likewise.
21409         (emit_pattern_before_setloc): New function.
21410         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
21411         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
21412         Likewise.
21413         (emit_pattern_before): New function.
21414         (emit_insn_before, emit_jump_insn_before): Call it.
21415         (emit_call_insn_before, emit_debug_insn_before): Likewise.
21416
21417 2011-03-31  Richard Henderson  <rth@redhat.com>
21418
21419         * dwarf2out.c (dw_separate_line_info_ref): Remove.
21420         (dw_separate_line_info_entry): Remove.
21421         (enum dw_line_info_opcode): New.
21422         (dw_line_info_entry): Use it.
21423         (dw_line_info_table, dw_line_info_table_p): New.
21424         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
21425         (line_info_table, line_info_label_num): Remove.
21426         (line_info_table_in_use): Remove.
21427         (separate_line_info_table): Remove.
21428         (separate_line_info_table_allocated): Remove.
21429         (separate_line_info_table_in_use): Remove.
21430         (LINE_INFO_TABLE_INCREMENT): Remove.
21431         (line_info_label_num): New.
21432         (cur_line_info_table): New.
21433         (text_section_line_info, cold_text_section_line_info): New.
21434         (separate_line_info): New.
21435         (SEPARATE_LINE_CODE_LABEL): Remove.
21436         (print_dwarf_line_table): Remove.
21437         (debug_dwarf): Don't dump it.
21438         (output_one_line_info_table): New.
21439         (output_line_info): Use it.
21440         (new_line_info_table): New.
21441         (set_cur_line_info_table): New.
21442         (dwarf2out_switch_text_section): Use it.
21443         (dwarf2out_begin_function): Likewise.
21444         (push_dw_line_info_entry): New.
21445         (dwarf2out_source_line): Rewrite for new line info tables.
21446         (dwarf2out_init): Remove dead initailizations.
21447
21448 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21449
21450         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
21451         various flags.
21452         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
21453         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
21454         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
21455         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
21456         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
21457         * opt-functions.awk (flag_init, switch_bit_fields): New.
21458         (switch_flags): Don't handle flags moved to bit-fields.  Don't
21459         generate CL_MISSING_OK or CL_SAVE.
21460         * optc-gen.awk: Update to generate bit-field output as well as
21461         flags field.
21462         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
21463         bit-field instead of CL_REJECT_DRIVER flag.
21464         * opts-common.c (generate_canonical_option,
21465         decode_cmdline_option): Use bit-fields instead of CL_* flags.
21466         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
21467         instead of CL_REJECT_NEGATIVE flag.
21468         * toplev.c (print_switch_values): Use cl_report bit-field instead
21469         of CL_REPORT flag.
21470
21471 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21472
21473         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
21474         a zero minimum index only if it is redundant.
21475
21476 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
21477
21478         PR rtl-optimization/48381
21479         * ira-color.c (assign_hard_reg): Use hard reg set intersection
21480         instead of ira_class_hard_reg_index for calculating conflicting
21481         hard registers.
21482
21483 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
21484
21485         * cprop.c: Clean up hash table building.
21486         (reg_avail_info): Remove.
21487         (oprs_available_p): Remove.
21488         (record_last_reg_set_info): Remove.
21489         (record_last_set_info): Remove.
21490         (reg_available_p): New function.
21491         (gcse_constant_p): Do not treat unfolded conditions as constants.
21492         (make_set_regs_unavailable): New function.
21493         (hash_scan_set): Simplify with new reg_available_p.
21494         (compute_hash_table_work): Traverse insns stream only once.
21495         Do not compute reg_avail_info. Traverse insns in reverse order.
21496         Record implicit sets after recording explicit sets from the block.
21497
21498 2011-03-31  Michael Matz  <matz@suse.de>
21499
21500         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
21501
21502 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
21503
21504         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
21505         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
21506         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21507         (h8300_mode_dependent_address_p): New function.
21508         (h8300_get_index): Make static.
21509
21510 2011-03-31  Jeff Law  <law@redhat.com>
21511
21512         * reload1.c (elimination_effects): Fix typo in recent change.
21513
21514         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
21515         typo potentially leading to null pointer dereference.
21516
21517         * caller-save.c (new_saved_hard_reg): Eliminate return value.
21518         (setup_save_areas): Corresponding changes to avoid useless
21519         assignments.
21520
21521         * jump.c (reversed_comparison_code_parts): Avoid successive return
21522         statements when REVERSE_CONDITION is defined.
21523
21524         * expr.c (expand_assignment): Avoid useless assignments.
21525         (expand_expr_real_1): Likewise.
21526         (expand_expr_real_2): Avoid useless statements.
21527
21528         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
21529
21530         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
21531
21532         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
21533         statements.
21534
21535         * stmt.c (expand_expr_stmt): Avoid useless assignment.
21536
21537 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
21538
21539         PR target/47109
21540         * doc/tm.texi.in (TARGET_VERSION): Remove.
21541         * doc/tm.texi: Regenerate.
21542         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
21543         * collect2.c (main): Don't use TARGET_VERSION.
21544         * mips-tdump.c (main): Don't use TARGET_VERSION.
21545         * mips-tfile.c (main): Don't use TARGET_VERSION.
21546         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
21547         * config/rs6000/vxworksae.h: Remove.
21548         * config/alpha/alpha.h (TARGET_VERSION): Remove.
21549         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
21550         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
21551         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
21552         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21553         * config/arm/arm.h (TARGET_VERSION): Remove.
21554         * config/arm/coff.h (TARGET_VERSION): Remove.
21555         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
21556         * config/arm/elf.h (TARGET_VERSION): Remove.
21557         * config/arm/freebsd.h (TARGET_VERSION): Remove.
21558         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
21559         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
21560         * config/arm/pe.h (TARGET_VERSION): Remove.
21561         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
21562         * config/arm/semi.h (TARGET_VERSION): Remove.
21563         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
21564         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
21565         * config/arm/vxworks.h (TARGET_VERSION): Remove.
21566         * config/avr/avr.h (TARGET_VERSION): Remove.
21567         * config/bfin/bfin.h (TARGET_VERSION): Remove.
21568         * config/fr30/fr30.h (TARGET_VERSION): Remove.
21569         * config/frv/frv.h (TARGET_VERSION): Remove.
21570         * config/h8300/h8300.h (TARGET_VERSION): Remove.
21571         * config/i386/cygwin.h (TARGET_VERSION): Remove.
21572         * config/i386/darwin.h (TARGET_VERSION): Remove.
21573         * config/i386/darwin64.h (TARGET_VERSION): Remove.
21574         * config/i386/djgpp.h (TARGET_VERSION): Remove.
21575         * config/i386/freebsd.h (TARGET_VERSION): Remove.
21576         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
21577         * config/i386/gnu.h (TARGET_VERSION): Remove.
21578         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
21579         * config/i386/i386elf.h (TARGET_VERSION): Remove.
21580         * config/i386/linux.h (TARGET_VERSION): Remove.
21581         * config/i386/linux64.h (TARGET_VERSION): Remove.
21582         * config/i386/lynx.h (TARGET_VERSION): Remove.
21583         * config/i386/mingw32.h (TARGET_VERSION): Remove.
21584         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
21585         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
21586         * config/i386/netware.h (TARGET_VERSION): Remove.
21587         * config/i386/nto.h (TARGET_VERSION): Remove.
21588         * config/i386/openbsd.h (TARGET_VERSION): Remove.
21589         * config/i386/vxworks.h (TARGET_VERSION): Remove.
21590         * config/ia64/elf.h (TARGET_VERSION): Remove.
21591         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
21592         * config/ia64/hpux.h (TARGET_VERSION): Remove.
21593         * config/ia64/linux.h (TARGET_VERSION): Remove.
21594         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
21595         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
21596         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21597         * config/lm32/lm32.h (TARGET_VERSION): Remove.
21598         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
21599         * config/m32c/m32c.h (TARGET_VERSION): Remove.
21600         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
21601         * config/m32r/m32r.h (TARGET_VERSION): Remove.
21602         * config/m68k/linux.h (TARGET_VERSION): Remove.
21603         * config/m68k/m68k.h (TARGET_VERSION): Remove.
21604         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
21605         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
21606         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
21607         * config/mep/mep.h (TARGET_VERSION): Remove.
21608         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
21609         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
21610         * config/mips/iris6.h (MACHINE_TYPE): Remove.
21611         * config/mips/linux.h (TARGET_VERSION): Remove.
21612         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
21613         * config/mips/vxworks.h (TARGET_VERSION): Remove.
21614         * config/mmix/mmix.h (TARGET_VERSION): Remove.
21615         * config/mn10300/linux.h (TARGET_VERSION): Remove.
21616         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
21617         * config/pa/pa.h (TARGET_VERSION): Remove.
21618         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
21619         * config/picochip/picochip.h (TARGET_VERSION): Remove.
21620         * config/rs6000/aix.h (TARGET_VERSION): Remove.
21621         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
21622         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
21623         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
21624         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
21625         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
21626         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
21627         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
21628         * config/rs6000/linux.h (TARGET_VERSION): Remove.
21629         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
21630         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
21631         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
21632         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
21633         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
21634         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
21635         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
21636         * config/s390/linux.h (TARGET_VERSION): Remove.
21637         * config/s390/s390.h (TARGET_VERSION): Remove.
21638         * config/s390/tpf.h (TARGET_VERSION): Remove.
21639         * config/score/score.h (TARGET_VERSION): Remove.
21640         * config/sh/linux.h (TARGET_VERSION): Remove.
21641         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
21642         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
21643         * config/sh/sh.h (TARGET_VERSION): Remove.
21644         * config/sh/sh64.h (TARGET_VERSION): Remove.
21645         * config/sh/superh.h (TARGET_VERSION): Remove.
21646         * config/sh/vxworks.h (TARGET_VERSION): Remove.
21647         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
21648         * config/sparc/linux.h (TARGET_VERSION): Remove.
21649         * config/sparc/linux64.h (TARGET_VERSION): Remove.
21650         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
21651         TARGET_NAME32, TARGET_NAME): Remove.
21652         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
21653         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
21654         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
21655         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
21656         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
21657         * config/spu/spu.h (TARGET_VERSION): Remove.
21658         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
21659         * config/v850/v850.h (TARGET_VERSION): Remove.
21660         * config/vax/linux.h (TARGET_VERSION): Remove.
21661         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
21662         * config/xtensa/elf.h (TARGET_VERSION): Remove.
21663         * config/xtensa/linux.h (TARGET_VERSION): Remove.
21664
21665 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
21666
21667         PR target/48142
21668         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
21669         frame-related from frame-unrelated adjustments to the stack pointer.
21670
21671 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
21672
21673         * common.opt (fdebug-types-section): Move earlier.
21674         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
21675
21676 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
21677
21678         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
21679         var.
21680
21681 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
21682
21683         * tree.h (CASE_CHAIN): Define.
21684         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
21685         (gimple_redirect_edge_and_branch): Likewise.
21686
21687 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21688
21689         PR middle-end/48367
21690         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
21691         calculation.
21692
21693 2011-03-30  Jeff Law  <law@redhat.com>
21694
21695         * PR bootstrap/48371
21696         * reload1.c (reload): Fix botch in last change.
21697
21698         * reload.h (struct reload): Fix typo introduced in last change.
21699
21700 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21701
21702         * config/arm/arm.opt (mhard-float, msoft-float): Mark
21703         Undocumented.  Remove help text.
21704         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
21705         -mhard-float.
21706
21707 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21708
21709         * doc/options.texi (NegativeAlias): Document.
21710         (Alias): Mention NegativeAlias.
21711         * opt-functions.awk: Handle NegativeAlias.
21712         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
21713         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
21714         * opts.h (CL_NEGATIVE_ALIAS): Define.
21715         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
21716         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
21717         OPT_mspe_.
21718         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
21719         Alias entries.
21720         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
21721         mno-spe and mno-isel instead of mspe=no and -misel=no.
21722
21723 2011-03-29  Mark Wielaard  <mjw@redhat.com>
21724
21725         * common.opt (fdebug-types-section): New flag.
21726         * doc/invoke.texi: Document new -fno-debug-types-section flag.
21727         * dwarf2out.c (use_debug_types): New define.
21728         (struct die_struct): Mark die_id with GTY desc use_debug_types.
21729         (print_die): Guard output of type unit signatures using
21730         use_debug_types.
21731         (build_abbrev_table): Replace assert of dwarf_version >= 4
21732         with assert on use_debug_types.
21733         (size_of_die): Likewise.
21734         (unmark_dies): Likewise.
21735         (value_format): Decide AT_ref_external form on use_debug_types.
21736         (output_die): Replace dwarf_version version check guard with
21737         use_debug_types where appropriate.
21738         (modified_type_die): Likewise.
21739         (gen_reference_type_die): Likewise.
21740         (dwarf2out_start_source_file): Likewise.
21741         (dwarf2out_end_source_file): Likewise.
21742         (prune_unused_types_walk_attribs): Likewise.
21743         (dwarf2out_finish): Likewise.
21744
21745 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
21746
21747         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
21748
21749 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21750
21751         PR rtl-optimization/48332
21752         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
21753         mode of input operand N and modeN to its actual mode.
21754
21755 2011-03-30  Jeff Law  <law@redhat.com>
21756
21757         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
21758         define accessor macro.
21759         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
21760         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
21761         (reg_equiv_init): Likewise.
21762         (reg_equivs_size): New variable.
21763         (reg_equiv_init_size): Remove.
21764         (allocate_initial_values): Move prototype to here from....
21765         * integrate.h (allocate_initial_values): Remove prototype.
21766         * integrate.c: Include reload.h.
21767         (allocate_initial_values): Corresponding changes.
21768         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
21769         (fix_reg_equiv_init, no_equiv): Corresponding changes.
21770         (update_equiv_regs): Corresponding changes.
21771         (ira): Corresponding changes.
21772         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
21773         (push_secondary_reload): Corresponding changes.
21774         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
21775         (make_memloc, find_reloads_address): Corresponding changes.
21776         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
21777         (find_reloads_address_1): Corresponding changes.
21778         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
21779         (refers_to_regno_for_reload_p): Corresponding changes.
21780         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
21781         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
21782         * reload1.c: Include ggc.h.
21783         (grow_reg_equivs): New function.
21784         (replace_pseudos_in, reload): Corresponding changes.
21785         (calculate_needs_all_insns, alter_regs): Corresponding changes.
21786         (eliminate_regs_1, elimination_effects): Corresponding changes.
21787         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
21788         (delete_output_reload): Likewise.
21789         * caller-save.c (mark_referenced_regs): Corresponding changes.
21790         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
21791         * frv/predicates.md (frv_load_operand): Corresponding changes.
21792         * microblaze/microblaze.c (double_memory_operand): Corresponding
21793         changes.
21794         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
21795         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
21796         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
21797         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
21798         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
21799         changes.
21800         * pa/pa.c (emit_move_sequence): Corresponding changes.
21801         * vax/vax.c (nonindexed_address_p): Corresponding changes.
21802
21803 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21804
21805         PR target/47551
21806         * config/arm/arm.c (coproc_secondary_reload_class): Handle
21807         structure modes.  Don't check neon_vector_mem_operand for
21808         vector or structure modes.
21809
21810 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
21811             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
21812
21813         PR target/43590
21814         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
21815         operand 1 and reshuffle the operands to match.
21816         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
21817
21818 2011-03-30  Christian Schüler  <cschueler@gmx.de>
21819
21820         PR driver/48208
21821         * config/c.opt (F): Added 'Driver' to -F option.
21822
21823         PR driver/48260
21824         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
21825           handler function.
21826         * config/darwin.opt: Added '-arch' option.
21827
21828 2011-03-30  Nick Clifton  <nickc@redhat.com>
21829
21830         * config/rx/rx.md: Add peepholes and patterns to combine
21831         extending loads and simple arithmetic instructions.
21832         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
21833         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
21834         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
21835         modes to use pre-decrement and post-increment addressing.
21836         (rx_is_restricted_memory_address): Add range checking of REG+INT
21837         addresses.
21838         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
21839         (rx_memory_move_cost): Adjust cost of stores.
21840         (rx_adjust_insn_length): New function.
21841
21842 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
21843
21844         PR c/48305
21845         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21846         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
21847         matching arg00/arg01 types.
21848
21849 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
21850
21851         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
21852         last_location to UNKNOWN_LOCATION.
21853
21854 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
21855
21856         PR target/48349
21857         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
21858         FLOAT_SSE_REGS.
21859
21860 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
21861             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21862
21863         PR bootstrap/48337
21864         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
21865         Init(PROCESSOR_V7).
21866         (sparc_cpu): Likewise.
21867         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
21868         PROCESSOR_V7.
21869
21870 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21871
21872         PR target/48336
21873         PR middle-end/48342
21874         PR rtl-optimization/48345
21875         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
21876         hard regs for given mode from profitable regs when doing secondary
21877         allocation.
21878
21879 2011-03-29  Jeff Law  <law@redhat.com>
21880
21881         PR bootstrap/48327
21882         * tree-ssa-threadupdate.c (struct redirection_data): Remove
21883         do_not_duplicate field.
21884         (lookup_redirection_data): Corresponding changes.
21885         (create_duplicates): Always create a template block.
21886         (redirect_edges): Remove code which reused the original block
21887         when it was going to become unreachable code.
21888         (thread_block): Don't set do_not_duplicate field.
21889
21890 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
21891
21892         * lto-opts.c (register_user_option_p, lto_register_user_option):
21893         Make type argument unsigned.
21894         * lto-streamer.h (lto_register_user_option): Make type argument
21895         unsigned.
21896         * opth-gen.awk: Make CL_* macros unsigned.
21897         * opts-common.c (find_opt): Make lang_mask argument unsigned.
21898         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
21899         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
21900         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
21901         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
21902         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
21903         (find_opt): Make lang_mask argument unsigned.
21904
21905 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21906
21907         PR rtl-optimization/48331
21908         PR rtl-optimization/48334
21909         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21910         for any used algorithm.
21911
21912 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21913
21914         * ira-conflicts.c (build_object_conflicts): Add unused attribute
21915         to parent_max.
21916
21917 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
21918
21919         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21920         (alpha_option_override): Don't set alpha_sr_alias_set.
21921         (emit_frame_store_1): Use gen_frame_mem rather than calling
21922         set_mem_alias_set.
21923         (alpha_expand_epilogue): Ditto.
21924
21925 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
21926
21927         PR tree-optimization/48290
21928         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21929         vectorization, check that relevant phis in the basic block after
21930         the inner loop are really inner loop's exit phis.
21931
21932 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
21933
21934         PR debug/48190
21935         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21936         (cached_dw_loc_list_def): New structure.
21937         (cached_dw_loc_list): New typedef.
21938         (cached_dw_loc_list_table): New variable.
21939         (cached_dw_loc_list_table_hash): New function.
21940         (cached_dw_loc_list_table_eq): Likewise.
21941         (add_location_or_const_value_attribute): Take a bool cache_p.
21942         Cache the list when the parameter is true.
21943         (gen_formal_parameter_die): Update caller.
21944         (gen_variable_die): Likewise.
21945         (dwarf2out_finish): Likewise.
21946         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21947         while generating debug info for the decl.
21948         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21949         (dwarf2out_init): Initialize cached_dw_loc_list_table.
21950         (resolve_addr): Cache the result of resolving a chain of
21951         location lists.
21952
21953 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
21954
21955         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21956         conflict object hard regset nodes have intersecting hard reg sets.
21957
21958         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21959         after regstat_init_n_sets_and_refs.
21960
21961         * ira.c: Add more comments at the top.
21962         (setup_stack_reg_pressure_class, setup_pressure_classes):
21963         Add comments how we compute the register pressure classes.
21964         (setup_allocno_and_important_classes): Add more comments.
21965         (setup_class_translate_array, reorder_important_classes)
21966         (setup_reg_class_relations): Add comments.
21967
21968         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
21969         start of the file.
21970
21971         * ira-color.c: Add 2011 to the Copyright line.
21972         (assign_hard_reg):  Add more comments.
21973         (improve_allocation): Ditto.
21974
21975         * ira-costs.c: Add 2011 to the Copyright line.
21976         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21977         comments.
21978         (setup_regno_cost_classes_by_mode): Ditto.
21979
21980         Initial patches from ira-improv branch:
21981
21982         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
21983
21984         * ira-build.c (ira_create_object): Remove initialization of
21985         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
21986         (ira_create_allocno): Remove initialization of
21987         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21988         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21989         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21990         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21991         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21992         Initialize ALLOCNO_ADD_DATA.
21993         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21994         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21995         ALLOCNO_REG.
21996         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
21997         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21998
21999         * ira.c (ira_reallocate): Remove.
22000         (setup_pressure_classes): Call
22001         ira_init_register_move_cost_if_necessary.  Use
22002         ira_register_move_cost instead of ira_get_register_move_cost.
22003         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
22004         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
22005
22006         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
22007         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
22008         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
22009         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
22010         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
22011         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
22012         Fix formatting.
22013         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
22014         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22015         (struct allocno_color_data): New.
22016         (allocno_color_data_t): New typedef.
22017         (allocno_color_data): New definition.
22018         (ALLOCNO_COLOR_DATA): New macro.
22019         (struct object_color_data): New.
22020         (object_color_data_t): New typedef.
22021         (object_color_data): New definition.
22022         (OBJECT_COLOR_DATA): New macro.
22023         (update_copy_costs, calculate_allocno_spill_cost): Call
22024         ira_init_register_move_cost_if_necessary.  Use
22025         ira_register_move_cost instead of ira_get_register_move_cost.
22026         (move_spill_restore, update_curr_costs): Ditto.
22027         (allocno_spill_priority): Make it inline.
22028         (color_pass): Allocate and free allocno_color_dat and object_color_data.
22029         (struct coalesce_data, coalesce_data_t): New.
22030         (allocno_coalesce_data): New definition.
22031         (ALLOCNO_COALESCE_DATA): New macro.
22032         (merge_allocnos, coalesced_allocno_conflict_p): Use
22033         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
22034         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
22035         (coalesce_allocnos): Ditto.
22036         (setup_coalesced_allocno_costs_and_nums): Ditto.
22037         (collect_spilled_coalesced_allocnos): Ditto.
22038         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
22039         (setup_slot_coalesced_allocno_live_ranges): Ditto.
22040         (coalesce_spill_slots): Ditto.
22041         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
22042         free allocno_coalesce_data.
22043
22044         * ira-conflicts.c: Fix formatting.
22045         (process_regs_for_copy): Call
22046         ira_init_register_move_cost_if_necessary.  Use
22047         ira_register_move_cost instead of ira_get_register_move_cost.
22048         (build_object_conflicts): Optimize.
22049
22050         * ira-costs.c (record_reg_classes): Optimize.  Call
22051         ira_init_register_move_cost_if_necessary.  Use
22052         ira_register_move_cost, ira_may_move_in_cost, and
22053         ira_may_move_out_cost instead of ira_get_register_move_cost and
22054         ira_get_may_move_cost.
22055         (record_address_regs): Ditto.
22056         (scan_one_insn): Optimize.
22057         (find_costs_and_classes): Optimize.
22058         (process_bb_node_for_hard_reg_moves): Call
22059         ira_init_register_move_cost_if_necessary.  Use
22060         ira_register_move_cost instead of ira_get_register_move_cost.
22061
22062         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
22063         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
22064         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
22065         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
22066         definitions.
22067         (ira_initiate_emit_data, ira_finish_emit_data)
22068         (create_new_allocno): New functions.
22069         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
22070         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
22071         Use ira_register_move_cost instead of ira_get_register_move_cost.
22072
22073         * ira-int.h: Fix some comments.
22074         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
22075         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
22076         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
22077         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
22078         add_data.
22079         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
22080         bitfield after mode.  Make hard_regno a short int.  Make
22081         hard_regno short.  Remove first_coalesced_allocno and
22082         next_coalesced_allocno.  Move mem_optimized_dest_p,
22083         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
22084         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
22085         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
22086         temp, colorable_p.  Add new member add_data.
22087         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
22088         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
22089         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
22090         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
22091         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
22092         (ALLOCNO_ADD_DATA): New macro.
22093         (ira_emit_data_t): New typedef.
22094         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
22095         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
22096         from struct ira_allocno.
22097         (ALLOCNO_EMIT_DATA): New macro.
22098         (ira_allocno_emit_data, allocno_emit_reg): New.
22099         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
22100         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
22101         (OBJECT_ADD_DATA): New macro.
22102         (ira_reallocate): Remove.
22103         (ira_initiate_emit_data, ira_finish_emit_data): New.
22104         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
22105         (ira_init_register_move_cost_if_necessary): New.
22106         (ira_object_conflict_iter_next): Merge into
22107         ira_object_conflict_iter_cond.
22108         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
22109
22110         * ira-live.c (process_single_reg_class_operands): Call
22111         ira_init_register_move_cost_if_necessary.  Use
22112         ira_register_move_cost instead of ira_get_register_move_cost.
22113
22114         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
22115
22116         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
22117
22118         * ira-costs.c: Fix formatting.
22119         (cost_classes, cost_classes_num): Remove.
22120         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
22121         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
22122         (cost_classes_del, cost_classes_htab): New.
22123         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
22124         (initiate_regno_cost_classes, setup_cost_classes): New.
22125         (setup_regno_cost_classes_by_aclass): New.
22126         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
22127         (record_reg_classes): Use regno_cost_classes instead of
22128         cost_classes.  Move checking opposite operand up.
22129         (record_address_regs): Use regno_cost_classes
22130         instead of cost_classes.
22131         (scan_one_insn): Ditto.  Use always general register.
22132         (print_allocno_costs): Use regno_cost_classes instead of
22133         cost_classes.
22134         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
22135         (find_costs_and_classes): Set up cost classes for each registers.
22136         Use also their mode for this.  Use regno_cost_classes instead of
22137         cost_classes.
22138         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
22139         cost_classes.
22140         (free_ira_costs, ira_init_costs): Don't use cost_classes.
22141         (ira_costs, ira_set_pseudo_classes): Call
22142         initiate_regno_cost_classes and finish_regno_cost_classes.
22143
22144         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
22145
22146         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
22147
22148         * target.def (ira_cover_classes): Remove.
22149
22150         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
22151
22152         * doc/tm.texi.in: Ditto.
22153
22154         * ira-conflicts.c: Remove mentioning cover classes from the file.
22155         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
22156         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
22157
22158         * targhooks.c (default_ira_cover_classes): Remove.
22159
22160         * targhooks.h (default_ira_cover_classes): Ditto.
22161
22162         * haifa-sched.c: Remove mentioning cover classes from the file.
22163         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22164         ira_pressure_classes and ira_pressure_classes_num instead of
22165         ira_reg_class_cover_size and ira_reg_class_cover.  Use
22166         sched_regno_pressure_class instead of sched_regno_cover_class.
22167         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
22168         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22169
22170         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
22171         classes from the file.
22172         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
22173         (struct object_hard_regs, struct object_hard_regs_node): New.
22174         (struct ira_object): New members profitable_hard_regs,
22175         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
22176         (struct ira_allocno): Rename cover_class to aclass.  Rename
22177         cover_class_cost and updated_cover_class_cost to class_cost and
22178         updated_class_cost.  Remove splay_removed_p and
22179         left_conflict_size.  Add new members colorable_p.
22180         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
22181         (ALLOCNO_COLORABLE_P): New macro.
22182         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
22183         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
22184         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
22185         (OBJECT_...): Rename parameter C to O.
22186         (OBJECT_PROFITABLE_HARD_REGS): New macro.
22187         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
22188         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
22189         (struct target_ira_int): New members x_ira_max_memory_move_cost,
22190         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
22191         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
22192         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
22193         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
22194         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
22195         x_ira_reg_class_subunion.
22196         (ira_max_memory_move_cost, ira_max_register_move_cost)
22197         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
22198         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
22199         (ira_important_class_nums, ira_reg_class_superunion): New macros.
22200         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
22201         (ira_reg_class_union): Rename to ira_reg_class_subunion.
22202         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22203         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22204         (ira_tune_allocno_costs_and_cover_classes): Rename to
22205         ira_tune_allocno_costs.
22206         (ira_debug_hard_regs_forest): New.
22207         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
22208         (ira_object_conflict_iter_next): Fix comments.
22209         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
22210         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
22211         cover_class to aclass.
22212         (ira_allocate_and_accumulate_costs): Ditto.
22213         (ira_allocate_and_set_or_copy_costs): Ditto.
22214
22215         * opts.c (decode_options): Remove ira_cover_class check.
22216
22217         * ira-color.c: Remove mentioning cover classes from the file.  Use
22218         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
22219         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
22220         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22221         (splay-tree.h): Remove include.
22222         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
22223         before copy_freq_compare_func.
22224         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
22225         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
22226         New definitions.
22227         (hard_regs_roots, hard_regs_node_vec): Ditto.
22228         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
22229         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
22230         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
22231         (create_new_object_hard_regs_node): Ditto.
22232         (add_new_object_hard_regs_node_to_forest): Ditto.
22233         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
22234         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
22235         Ditto.
22236         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
22237         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
22238         (remove_unused_object_hard_regs_nodes): Ditto.
22239         (enumerate_object_hard_regs_nodes): Ditto.
22240         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
22241         (object_hard_regs_subnode_t): Ditto.
22242         (struct object_hard_regs_subnode): Ditto.
22243         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
22244         (setup_object_hard_regs_subnode_index): Ditto.
22245         (get_object_hard_regs_subnodes_num): Ditto.
22246         (form_object_hard_regs_nodes_forest): Ditto.
22247         (finish_object_hard_regs_nodes_tree): Ditto.
22248         (finish_object_hard_regs_nodes_forest): Ditto.
22249         (allocnos_have_intersected_live_ranges_p): Rename to
22250         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22251         (pseudos_have_intersected_live_ranges_p): Rename to
22252         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
22253         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
22254         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
22255         (update_copy_costs): Remove assert.  Skip cost update if the hard
22256         reg does not belong the class.
22257         (assign_hard_reg): Process only profitable hard regs.
22258         (uncolorable_allocnos_num): Make it scalar.
22259         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
22260         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
22261         and ira_reg_class_max_nregs.
22262         (bucket_allocno_compare_func): Check frequency first.
22263         (sort_bucket): Add compare function as a parameter.
22264         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
22265         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
22266         (push_allocno_to_stack): Rewrite for checking new allocno
22267         colorability.
22268         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
22269         (push_only_colorable): Pass new parameter to sort_bucket.
22270         (push_allocno_to_spill): Remove.
22271         (allocno_spill_priority_compare): Make it inline and rewrite.
22272         (splay_tree_allocate, splay_tree_free): Remove.
22273         (allocno_spill_sort_compare): New function.
22274         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
22275         build and use splay tree.  Choose first allocno in uncolorable
22276         allocno bucket to spill.  Remove setting spill cost.
22277         (all_conflicting_hard_regs): Remove.
22278         (setup_allocno_available_regs_num): Check only profitable hard
22279         regs.  Print info about hard regs nodes.
22280         (setup_allocno_left_conflicts_size): Remove.
22281         (put_allocno_into_bucket): Don't call
22282         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
22283         (improve_allocation): New.
22284         (color_allocnos): Call setup_profitable_hard_regs,
22285         form_object_hard_regs_nodes_forest, improve_allocation,
22286         finish_object_hard_regs_nodes_forest.  Setup spill cost.
22287         (print_loop_title): Use pressure classes.
22288         (color_allocnso): Ditto.
22289         (do_coloring): Remove allocation and freeing splay_tree_node_pool
22290         and allocnos_for_spilling.
22291         (ira_sort_regnos_for_alter_reg): Don't setup members
22292         {first,next}_coalesced_allocno.
22293         (color): Remove allocating and freeing removed_splay_allocno_vec.
22294         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
22295         prohibited_class_mode_regs.
22296
22297         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
22298         formatting.
22299         (update_allocno_pressure_excess_length): Use pressure classes.
22300         (inc_register_pressure, dec_register_pressure): Check for pressure
22301         class.
22302         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
22303         pressure class.  Use ira_reg_class_nregs instead of
22304         ira_reg_class_max_nregs.
22305         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
22306         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
22307         (single_reg_class): Use ira_reg_class_nregs instead of
22308         ira_reg_class_max_nregs.
22309         (process_bb_node_lives): Use pressure classes.
22310
22311         * ira-emit.c: Remove mentioning cover classes from the file.  Use
22312         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22313         (change_loop): Use pressure classes.
22314         (modify_move_list): Call ira_set_allocno_class instead of
22315         ira_set_allocno_cover_class.
22316
22317         * ira-build.c: Remove mentioning cover classes from the file.  Use
22318         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
22319         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
22320         ALLOCNO_UPDATED_CLASS_COST instead of
22321         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
22322         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
22323         (ira_create_allocno): Remove initialization of
22324         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
22325         ALLOCNO_COLORABLE_P.
22326         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
22327         Update conflict regs for the objects.
22328         (create_cap_allocno): Remove assert.  Don't propagate
22329         ALLOCNO_AVAILABLE_REGS_NUM.
22330         (ira_free_allocno_costs): New function.
22331         (finish_allocno): Change a part of code into call of
22332         ira_free_allocno_costs.
22333         (low_pressure_loop_node_p): Use pressure classes.
22334         (object_range_compare_func): Don't compare classes.
22335         (setup_min_max_conflict_allocno_ids): Ditto.
22336
22337         * loop-invariant.c: Remove mentioning cover classes from the file.
22338         Use ira_pressure_classes and ira_pressure_classes_num instead of
22339         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
22340         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
22341         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22342         Use reg_allocno_class instead of reg_cover_class.
22343         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
22344         STACK_REG_COVER_CLASS.
22345         (get_regno_cover_class): Rename to get_regno_pressure_class.
22346         (move_loop_invariants): Initialize and finalize regstat.
22347
22348         * ira.c: Remove mentioning cover classes from the file.  Add
22349         comments about coloring without cover classes.  Use ALLOCNO_CLASS
22350         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
22351         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
22352         setup_class_subset_and_memory_move_costs.
22353         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
22354         (setup_cover_and_important_classes): Rename to
22355         setup_allocno_and_important_classes.
22356         (setup_class_translate_array): New.
22357         (setup_class_translate): Call it for allocno and pressure classes.
22358         (cover_class_order): Rename to allocno_class_order.
22359         (comp_reg_classes_func): Use ira_allocno_class_translate instead
22360         of ira_class_translate.
22361         (reorder_important_classes): Set up ira_important_class_nums.
22362         (setup_reg_class_relations): Set up ira_reg_class_superunion.
22363         (print_class_cover): Rename to print_classes.  Add parameter.
22364         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
22365         Print pressure classes too.
22366         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
22367         setup_reg_subclasses.
22368         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22369         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22370         (setup_prohibited_class_mode_regs): Use
22371         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
22372         (clarify_prohibited_class_mode_regs): New function.
22373         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
22374         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
22375         (ira_init_once): Initialize them.
22376         (free_register_move_costs): Process them.
22377         (ira_init): Move calls of find_reg_classes and
22378         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
22379         Call clarify_prohibited_class_mode_regs.
22380         (ira_no_alloc_reg): Remove.
22381         (too_high_register_pressure_p): Use pressure classes.
22382
22383         * sched-deps.c: Remove mentioning cover classes from the file.
22384         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
22385         ira_pressure_classes and ira_pressure_classes_num instead of
22386         ira_reg_class_cover_size and ira_reg_class_cover.
22387         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
22388         sched_regno_pressure_class instead of sched_regno_cover_class.
22389         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
22390         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
22391
22392         * ira.h: Add 2010 to Copyright.
22393         (ira_no_alloc_reg): Remove external.
22394         (struct target_ira): Rename x_ira_hard_regno_cover_class,
22395         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
22396         x_ira_class_translate to x_ira_hard_regno_allocno_class,
22397         x_ira_allocno_classes_num, x_ira_allocno_classes, and
22398         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
22399         x_ira_pressure_classes, x_ira_pressure_class_translate, and
22400         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
22401         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
22402         x_ira_no_alloc_regs.
22403         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
22404         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
22405         ira_allocno_classes_num and ira_allocno_classes.
22406         (ira_class_translate): Rename to ira_allocno_class_translate.
22407         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
22408         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
22409         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
22410         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
22411         (ira_no_alloc_regs): New.
22412
22413         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
22414         classes from the file.  Use ALLOCNO_CLASS instead of
22415         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
22416         ALLOCNO_COVER_CLASS_COST.
22417         (regno_cover_class): Rename to regno_aclass.
22418         (record_reg_classes): Use ira_reg_class_subunion instead of
22419         ira_reg_class_union.
22420         (record_address_regs): Check overflow.
22421         (scan_one_insn): Ditto.
22422         (print_allocno_costs): Print total mem cost fore regional allocation.
22423         (print_pseudo_costs): Use REG_N_REFS.
22424         (find_costs_and_classes): Use classes intersected with them on the
22425         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
22426         ira_reg_class_union.  Use ira_allocno_class_translate and
22427         regno_aclass instead of ira_class_translate and regno_cover_class.
22428         Modify code for finding regno_aclass.  Setup preferred classes for
22429         the next pass.
22430         (setup_allocno_cover_class_and_costs): Rename to
22431         setup_allocno_class_and_costs.  Use regno_aclass instead of
22432         regno_cover_class.  Use ira_set_allocno_class instead of
22433         ira_set_allocno_cover_class.
22434         (init_costs, finish_costs): Use regno_aclass instead of
22435         regno_cover_class.
22436         (ira_costs): Use setup_allocno_class_and_costs instead of
22437         setup_allocno_cover_class_and_costs.
22438         (ira_tune_allocno_costs_and_cover_classes): Rename to
22439         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
22440         by processing objects.  Use ira_reg_class_max_nregs instead of
22441         ira_reg_class_nregs.
22442
22443         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
22444
22445         * sched-int.h: Remove mentioning cover classes from the file.
22446         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
22447
22448         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
22449         classes from the file.
22450         (struct reg_pref): Rename coverclass into allocnoclass.
22451         (reg_cover_class): Rename to reg_allocno_class.
22452
22453         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
22454
22455         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
22456
22457         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
22458
22459         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
22460
22461         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
22462
22463         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
22464
22465         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
22466
22467         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
22468
22469         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
22470
22471         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
22472
22473         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
22474         (i386_ira_cover_classes): Ditto.
22475
22476         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
22477
22478         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
22479
22480         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
22481
22482         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
22483
22484         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
22485
22486         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
22487
22488         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
22489         (mips_ira_cover_classes): Ditto.
22490
22491         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
22492
22493         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
22494
22495         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
22496
22497         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
22498
22499         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
22500
22501         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
22502         (IRA_COVER_CLASSES_VSX): Ditto.
22503
22504         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
22505         (rs6000_ira_cover_classes): Ditto.
22506
22507         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
22508
22509         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
22510
22511         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
22512
22513         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
22514
22515         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
22516
22517         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
22518
22519         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
22520
22521         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
22522
22523         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
22524
22525         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
22526
22527 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
22528
22529         PR debug/48253
22530         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
22531         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
22532         dw_fde_unlikely_section_end_label, cold_in_std_section,
22533         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
22534         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
22535         fields.
22536         (output_fde): Use dw_fde_second_{begin,end} if second is
22537         true, otherwise dw_fde_{begin,end}.
22538         (output_call_frame_info): Test dw_fde_second_begin != NULL
22539         instead of dw_fde_switched_sections.
22540         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
22541         fields, initialize new fields.  Initialize in_std_section
22542         unconditionally from the first partition.
22543         (dwarf2out_end_epilogue): Don't override dw_fde_end when
22544         dw_fde_second_begin is non-NULL.
22545         (dwarf2out_switch_text_section): Stop initializing removed
22546         dw_fde_struct fields, initialize new fields, initialize
22547         also dw_fde_end here.  Set dw_fde_switch_cfi even when
22548         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
22549         (struct var_loc_list_def): Add last_before_switch field.
22550         (arange_table, arange_table_allocated, arange_table_in_use,
22551         ARANGE_TABLE_INCREMENT, add_arange): Removed.
22552         (size_of_aranges): Count !in_std_section and !second_in_std_section
22553         hunks in fdes, instead of looking at arange_table_in_use.
22554         (output_aranges): Add aranges_length argument, don't call
22555         size_of_aranges here.  Instead of using aranges_table*
22556         emit ranges for fdes when !in_std_section resp.
22557         !second_in_std_section.
22558         (dw_loc_list): Break ranges crossing section switch.
22559         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
22560         use dw_fde_second_end instead of dw_fde_end as end of last range.
22561         (gen_subprogram_die): Don't call add_arange.  Use
22562         dw_fde_{begin,end} for first partition and if switched
22563         section dw_fde_second_{begin,end} for the second.
22564         (var_location_switch_text_section_1,
22565         var_location_switch_text_section): New functions.
22566         (dwarf2out_begin_function): Initialize cold_text_section even
22567         when function_section () isn't text_section.
22568         (prune_unused_types): Don't walk arange_table.
22569         (dwarf2out_finish): Don't needlessly test
22570         flag_reorder_blocks_and_partition when testing cold_text_section_used.
22571         If info_section_emitted, call size_of_aranges and if it indicates
22572         non-empty .debug_aranges, call output_aranges with the computed
22573         size.  Stop using removed dw_fde_struct fields, use
22574         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
22575         for second.
22576
22577         PR debug/48203
22578         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
22579         create ENTRY_VALUE if incoming or address of incoming's MEM
22580         is a hard REG.
22581         * dwarf2out.c (mem_loc_descriptor): Don't emit
22582         DW_OP_GNU_entry_value of DW_OP_fbreg.
22583         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
22584         on ENTRY_VALUE is able to find the canonical parameter VALUE.
22585         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
22586         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
22587         ENTRY_VALUE_EXPs.
22588         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
22589         is a REG_P or MEM_P with REG_P address, compute hash directly
22590         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
22591         (preserve_only_constants): Don't clear VALUES forwaring
22592         ENTRY_VALUE to some other VALUE.
22593
22594 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
22595
22596         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
22597         instead of GEN_INT.
22598
22599 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22600
22601         * cfgexpand.c (expand_gimple_cond): Always set the source location and
22602         block before expanding the statement.
22603         (expand_gimple_stmt_1): Likewise.  Set them here...
22604         (expand_gimple_stmt): ...and not here.  Tidy.
22605         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
22606         unknown.
22607
22608 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22609
22610         * Makefile.in: New rule for cprop.o.
22611         * gcse.c: Move constant/copy propagation to cprop.c.
22612         (compute_local_properties): Only handle expression tables.
22613         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
22614         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
22615         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
22616         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
22617         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
22618         compute_cprop_data, find_used_regs, try_replace_reg,
22619         find_avail_set, cprop_jump, constprop_register, cprop_insn,
22620         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
22621         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
22622         find_bypass_set, reg_killed_on_edge, bypass_block,
22623         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
22624         execute_rtl_cprop, pass_rtl_cprop): Move to...
22625         * cprop.c: ...here.  New file, constant/copy propagation for RTL
22626         moved from gcse.c to here with minor cleanups in duplicated code.
22627
22628 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
22629
22630         * config/i386/i386.c (flag_opts): Fix a typo in
22631         -mavx256-split-unaligned-store.
22632
22633 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22634
22635         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22636         LIBCALL_VALUE): Remove macros.
22637         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22638         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22639         (h8300_function_value, h8300_libcall_value,
22640         h8300_function_value_regno_p): New functions.
22641
22642 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
22643
22644         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
22645
22646 2011-03-28  Jeff Law  <law@redhat.com>
22647
22648         * tree-ssa-threadupdate.c (redirect_edges): Call
22649         create_edge_and_update_destination_phis as needed.
22650         (create_edge_and_update_destination_phis): Accept new BB argument.
22651         All callers updated.
22652         (thread_block): Do not update the profile when threading around
22653         intermediate blocks.
22654         (thread_single_edge): Likewise.
22655         (determine_bb_domination_status): If BB is not a successor of the
22656         loop header, return NONDOMINATING.
22657         (register_jump_thread): Note when we register a jump thread around
22658         an intermediate block.
22659         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
22660         (thread_across_edge): Use it.
22661
22662 2011-03-28  Tristan Gingold  <gingold@adacore.com>
22663
22664         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
22665         when for_return is 2.
22666
22667 2011-03-28  Jeff Law  <law@redhat.com>
22668
22669         * var-tracking.c (canonicalize_values_mark): Delete unused
22670         lhs assignment.
22671         (canonicalize_values_star, set_variable_part): Likewise.
22672         (clobber_variable_part, delete_variable_part): Likewise.
22673
22674 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
22675
22676         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
22677
22678 2011-03-28  Martin Jambor  <mjambor@suse.cz>
22679
22680         * tree-inline.c (expand_call_inline): Do not check that destination
22681         node is analyzed.
22682         (optimize_inline_calls): Assert that destination node is analyzed.
22683         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
22684         not call tree_lowering_passes.
22685         * cgraph.h (cgraph_analyze_function): Declare.
22686         * cgraphunit.c (cgraph_analyze_function): Make public.
22687
22688 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
22689
22690         * config/sparc/sparc-opts.h: New.
22691         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
22692         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
22693         (sparc_option_override): Store processor_type enumeration rather
22694         than string in cpu_default.  Remove name and enumeration from
22695         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
22696         without using sparc_select.  Use target_flags_explicit instead of
22697         fpu_option_set.
22698         * config/sparc/sparc.h (enum processor_type): Move to
22699         sparc-opts.h.
22700         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
22701         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
22702         HeaderInclude entry.
22703         (mcpu=, mtune=): Use Var and Enum.
22704         (sparc_processor_type): New Enum and EnumValue entries.
22705
22706 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22707             Iain Sandoe  <iains@gcc.gnu.org>
22708
22709         PR target/48245
22710         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
22711
22712 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
22713
22714         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
22715         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
22716         Insert new statements at it in lieu of STMT.
22717         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
22718         * tree-vect-stmts.c (vectorizable_store): Likewise.
22719         (vectorizable_load): Likewise.
22720
22721 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
22722
22723         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
22724         (divtf3): Ditto.
22725         (multf3): Ditto.
22726         (subtf3): Ditto.
22727
22728 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22729
22730         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
22731         unaligned 256bit load/store.
22732         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
22733         (*avx_movdqu<avxmodesuffix>): Likewise.
22734
22735 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22736
22737         PR target/48288
22738         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
22739         * config/pa/pa.md (iordi3): Use new predicate in expander.
22740         (iorsi3): Likewise.
22741
22742 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
22743
22744         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
22745         FUNCTION_VALUE_REGNO_P): Remove macros.
22746         * config/mips/mips-protos.h (mips_function_value): Remove.
22747         * config/mips/mips.c (mips_function_value): Rename to...
22748         (mips_function_value_1): ... this. Make static.  Handle receiving
22749         the function type in 'fn_decl_or_type' argument.
22750         (mips_function_value, mips_libcall_value,
22751         mips_function_value_regno_p): New function.
22752         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22753         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22754
22755 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
22756
22757         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
22758         and -mavx256-split-unaligned-store.
22759         (ix86_option_override_internal): Split 32-byte AVX unaligned
22760         load/store by default.
22761         (ix86_avx256_split_vector_move_misalign): New.
22762         (ix86_expand_vector_move_misalign): Use it.
22763
22764         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
22765         -mavx256-split-unaligned-store.
22766
22767         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
22768         256bit load/store.  Generate unaligned store on misaligned memory
22769         operand.
22770         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
22771         256bit load/store.
22772         (*avx_movdqu<avxmodesuffix>): Likewise.
22773
22774         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
22775         -mavx256-split-unaligned-store.
22776
22777 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
22778
22779         PR target/38598
22780         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
22781         Update commentary.
22782
22783 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
22784
22785         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
22786         opno arguments with an expand_operand.  Use create_input_operand.
22787         (mips_prepare_builtin_target): Delete.
22788         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
22789         functions.
22790         (mips_expand_builtin_direct): Use create_output_operand and
22791         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
22792         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
22793         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
22794
22795 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
22796
22797         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
22798         function.
22799         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
22800
22801 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
22802
22803         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
22804         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
22805         basic blocks and call commit_edge_insertions directly.
22806         (fixup_abnormal_edges): Move from here to...
22807         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
22808         on the edges and return whether some have actually been inserted.
22809         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
22810         compensation code.
22811
22812 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
22813
22814         PR rtl-optimization/48144
22815         * sel-sched-ir.c (merge_history_vect): Factor out from ...
22816         (merge_expr_data): ... here.
22817         (av_set_intersect): Rename to av_set_code_motion_filter.
22818         Update all callers.  Call merge_history_vect when an expression
22819         is found in both sets.
22820         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
22821
22822 2011-03-26  Alan Modra  <amodra@gmail.com>
22823
22824         * config/rs6000/predicates.md (word_offset_memref_op): Handle
22825         cmodel medium addresses.
22826         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
22827         64-bit gpr loads and stores.
22828         (rs6000_secondary_reload_ppc64): New function.
22829         * config/rs6000/rs6000-protos.h: Declare it.
22830         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
22831
22832 2011-03-26  Alan Modra  <amodra@gmail.com>
22833
22834         PR target/47487
22835         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
22836         GNU Go in traceback table.
22837
22838 2011-03-25  Richard Henderson  <rth@redhat.com>
22839
22840         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
22841         if there are exactly 6 operands.
22842         (set_storage_via_setmem): Similarly.
22843
22844 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22845
22846         * collect2.c (write_c_file_stat): Handle backslash
22847         as right-hand directory separator.
22848         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
22849         checking just for slash.
22850         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
22851         instead of checking for trailing slash.
22852         * gcc.c (record_temp_file): Use filename_cmp instead
22853         of strcmp.
22854         (do_spec_1): Likewise.
22855         (replace_outfile_spec_function): Likewise.
22856         (is_directory): Use filename_ncmp instead of strncmp.
22857         (print_multilib_info): Likewise.
22858         * gcov.c (find_source): Use filename_cmp instead
22859         instead of strcmp.
22860         (make_gcov_file_name): Fix order of slash/backslash
22861         checks.
22862         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
22863         (add_standard_paths): Likewise.
22864         * mips-tfile.c (saber_stop): Handle backslash.
22865         * prefix.c (update_path): Use filename_ncmp instead of
22866         strncmp.
22867         * profile.c (output_location): Use filename_cmp instead
22868         of strcmp.
22869         * read-md.c (handle_toplevel_file): Handle backslash.
22870         * tlink.c (frob_extension):  Likewise.
22871         * tree-cfg.c (same_line_p): Use filename_cmp instead of
22872         strcmp.
22873         * tree-dump.c (dequeue_and_dump): Handle backslash.
22874         * tree.c (get_file_function_name): Likewise.
22875         * gengtype.c (read_input_list): Likewise.
22876         (get_file_realbasename): Likewise.
22877         (get_output_file_with_visibility): Use filename_cmp
22878         instead of strcmp.
22879
22880 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
22881
22882         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
22883         case to VFPv1.
22884
22885 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
22886
22887         * fold-const.c (expr_location_or): New function.
22888         (fold_truth_not_expr): Call it.
22889
22890 2011-03-25  Jeff Law  <law@redhat.com>
22891
22892         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
22893         va_end.
22894         * c-family/c-common.c (def_fn_type): Likewise.
22895         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
22896         * emit-rtl.c (gen_rtvec): Likewise.
22897         * lto/lto-lang.c (def_fn_type): Likewise.
22898
22899 2011-03-25  Richard Guenther  <rguenther@suse.de>
22900
22901         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
22902         also generate copies.
22903         (fini_copy_prop): Handle constant values properly.
22904
22905 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
22906
22907         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22908         mode size instead of bitsize with DWARF2_ADDR_SIZE.
22909         (hash_loc_operands, compare_loc_operands): Handle
22910         DW_OP_GNU_entry_value.
22911
22912 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22913
22914         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22915         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22916         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22917         comment and use macro TARGET_64BIT_MS_ABI instead.
22918         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22919         and change default behavior for 32-bit MS_ABI.
22920         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22921         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22922         32-bit, too.
22923         (ix86_cfun_abi): Likewise.
22924         (ix86_maybe_switch_abi): Adjust comment.
22925         (init_cumulative_args): Check for bit-ness in MS_ABI case.
22926         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22927         instead of checking for SYSV_ABI.
22928         (ix86_nsaved_sseregs): Likewise.
22929         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22930         to 16 bytes.
22931         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22932         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22933         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22934         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22935         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22936
22937 2011-03-25  Richard Guenther  <rguenther@suse.de>
22938
22939         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22940         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22941         (verify_gimple): Remove.
22942         * tree-cfg.c (verify_gimple_call): Merge verification
22943         from verify_stmts.
22944         (verify_gimple_phi): Merge verification from verify_stmts.
22945         (verify_gimple_label): New function.
22946         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22947         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22948         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22949         (verify_stmts): Rename to verify_gimple_in_cfg.
22950         (verify_gimple_in_cfg): New function.
22951         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22952         * tree-ssa.c (verify_ssa): Likewise.
22953         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22954
22955 2011-03-25  Richard Guenther  <rguenther@suse.de>
22956
22957         * passes.c (init_optimization_passes): Add FRE pass after
22958         early SRA.
22959
22960 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
22961             Andrew Stubbs  <ams@codesourcery.com>
22962
22963         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22964         for Cortex-A8.
22965         (arm_movdi_vfp_cortexa8): New pattern.
22966         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22967         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22968         instructions when tuning for Cortex-A8.  Set attribute "arch".
22969         * config/arm/arm.md: Move include arm-tune.md up a bit.
22970         (define_attr "arch"): Add "onlya8" and "nota8" values.
22971         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22972
22973 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
22974
22975         PR bootstrap/48282
22976         Revert:
22977         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
22978
22979         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22980         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
22981         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22982         * passes.c (init_optimization_passes): Move
22983         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22984
22985 2011-03-25  Kai Tietz  <ktietz@redhat.com>
22986
22987         * c-typeck.c (comptypes_internal): Replace target
22988         hook call of comp_type_attributes by version in tree.c file.
22989         * gimple.c (gimple_types_compatible_p_1): Likewise.
22990         * tree-ssa.c (useless_type_conversion_p): Likewise.
22991         * tree.c (build_type_attribute_qual_variant): Likewise.
22992         (attribute_value_equal): New static helper function.
22993         (comp_type_attributes): New function.
22994         (merge_attributes): Use attribute_value_equal for comparison.
22995         (attribute_list_contained): Likewise.
22996         * tree.h (comp_type_attributes): New prototype.
22997
22998 2011-03-25  Richard Guenther  <rguenther@suse.de>
22999
23000         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
23001         of complex types at -O0.
23002         (verify_gimple_assign_binary): Likewise.
23003         (verify_gimple_assign_ternary): Likewise.
23004
23005 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23006
23007         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
23008         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
23009
23010 2011-03-24  Mark Wielaard  <mjw@redhat.com>
23011
23012         PR debug/48041
23013         * dwarf2out.c (output_abbrev_section): Only write table when
23014         abbrev_die_table_in_use > 1.
23015
23016 2011-02-24  Richard Henderson  <rth@redhat.com>
23017
23018         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
23019         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
23020         (alpha_expand_unaligned_load_words): Use extql.
23021         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
23022         (emit_insxl): Handle all modes for consistency.
23023
23024 2011-02-24  Richard Henderson  <rth@redhat.com>
23025
23026         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
23027         (alpha_expand_unaligned_load): Likewise.
23028         (alpha_expand_unaligned_store): Likewise.
23029         (alpha_expand_unaligned_load_words): Likewise.
23030         (alpha_expand_unaligned_store_words): Likewise.
23031         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
23032         (alpha_split_lock_test_and_set_12): Likewise.
23033         (print_operand, alpha_fold_builtin_extxx): Likewise.
23034         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
23035         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
23036         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
23037         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
23038         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
23039         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
23040         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
23041         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
23042         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
23043         (extwl, extll, extql): Similarly.
23044         (inswh, inslh, insqh): Similarly.
23045         (mskbl, mskwl, mskll, mskql): Similarly.
23046         (mskwh, msklh, mskqh): Similarly.
23047
23048 2011-02-24  Richard Henderson  <rth@redhat.com>
23049
23050         * config/alpha/alpha.md (attribute isa): Add er, ner.
23051         (attribute enabled): Handle them.
23052         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
23053
23054 2011-02-24  Richard Henderson  <rth@redhat.com>
23055
23056         * config/alpha/alpha.md (attribute isa): Add vms.
23057         (attribute enabled): Handle it.
23058         (*movsf): Merge *movsf_{nofix,fix,nofp}.
23059         (*movdf): Merge *movdf_{nofix,fix,nofp}.
23060         (*movtf): Rename from *movtf_internal for consistency.
23061         (*movsi): Merge with *movsi_nt_vms.
23062         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
23063         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
23064         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
23065         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
23066
23067 2011-02-24  Richard Henderson  <rth@redhat.com>
23068
23069         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
23070         (extendqisi2, extendhisi2): Likewise.
23071         (extendqidi2): Simplify BWX/non-BWX expansions.
23072         (extendhidi2): Similarly.
23073
23074 2011-02-24  Richard Henderson  <rth@redhat.com>
23075
23076         * config/alpha/alpha.md (attribute isa): New.
23077         (attribute enabled): New.
23078         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
23079         (zero_extendqisi2, zero_extendqidi2): Similarly.
23080         (zero_extendhisi2, zero_extendhidi2): Similarly.
23081         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
23082
23083 2011-02-24  Richard Henderson  <rth@redhat.com>
23084
23085         * config/alpha/predicates.md (input_operand): Revert last change;
23086         update comment to mention 32-bit VMS rather than Windows.
23087
23088 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23089
23090         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
23091         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
23092         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
23093         * passes.c (init_optimization_passes): Move
23094         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
23095
23096 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23097
23098         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
23099
23100 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23101
23102         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
23103         correctly.
23104
23105 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
23106
23107         PR debug/48204
23108         * simplify-rtx.c (simplify_const_unary_operation): Call
23109         real_convert when changing mode class with FLOAT_EXTEND.
23110
23111 2011-03-24  Nick Clifton  <nickc@redhat.com>
23112
23113         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
23114         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
23115         * config/rx/rx.c (rx_option_override): Set align_jumps,
23116         align_loops and align_labels if not set by the user.
23117         (rx_align_for_label): New function.
23118         (rx_max_skip_for_label): New function.
23119         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
23120         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
23121         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
23122         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
23123         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
23124
23125 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23126
23127         PR rtl-optimization/48263
23128         * optabs.c (expand_binop_directly): Reinstate convert_modes code
23129         and original commutative_p handling.  Use maybe_gen_insn.
23130
23131 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23132
23133         * reload.c (find_reloads_subreg_address): Add address_reloaded
23134         parameter and return true there if the full address has been
23135         reloaded.
23136         (find_reloads_toplev): Pass address_reloaded flag.
23137         (find_reloads_address_1): Don't use address_reloaded parameter.
23138
23139 2011-03-24  Jeff Law  <law@redhat.com>
23140
23141         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
23142         unused variable "ann".
23143         (remove_unused_locals): Likewise.
23144
23145         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
23146         statement.
23147
23148         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
23149         after it is freed.
23150
23151 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23152
23153         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
23154         for invalid symbolic addresses.
23155         (s390_secondary_reload): Don't use s390_check_symref_alignment for
23156         larl operands.
23157
23158 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23159
23160         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
23161         the argument in calls to fold_truth_not_expr.
23162
23163 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23164
23165         * tree.c (record_node_allocation_statistics): New function.
23166         (make_node_stat, copy_node_stat, build_string): Call it.
23167         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
23168         (build1_stat, build_omp_clause): Likewise.
23169
23170 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23171
23172         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
23173         last commit.
23174
23175 2011-03-24  Richard Guenther  <rguenther@suse.de>
23176
23177         PR tree-optimization/48271
23178         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
23179         blocks that still exist.
23180
23181 2011-03-24  Richard Guenther  <rguenther@suse.de>
23182
23183         PR tree-optimization/48270
23184         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
23185         not free datarefs before ddrs.
23186
23187 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
23188
23189         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
23190         from the address built for a reference with variable offset.
23191
23192 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
23193
23194         PR target/48237
23195         * config/i386/i386.md (*movdf_internal_rex64): Do not split
23196         alternatives that can be handled with movq or movabsq insn.
23197         (*movdf_internal): Disable for !TARGET_64BIT.
23198         (*movdf_internal_nointeger): Ditto.
23199         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
23200
23201 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
23202
23203         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23204         (FUNCTION_ARG_ADVANCE): Likewise.
23205         * tm.texi.in: Change references to them to hook references.
23206         * tm.texi: Regenerate.
23207         * targhooks.c (default_function_arg): Eliminate check for target macro.
23208         (default_function_incoming_arg): Likewise.
23209         (default_function_arg_advance): Likewise.
23210         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23211         (function_arg_advance): Likewise.
23212         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23213
23214 2011-03-24  Richard Guenther  <rguenther@suse.de>
23215
23216         PR middle-end/48269
23217         * tree-object-size.c (addr_object_size): Do not double-account
23218         for MEM_REF offsets.
23219
23220 2011-03-24  Diego Novillo  <dnovillo@google.com>
23221
23222         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
23223         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
23224         (lto_input_data_block): Move from lto-opts.c.  Make extern.
23225         Update all users.
23226         (lto_input_string): Rename from input_string.  Make extern.
23227         Update all users.
23228         * lto-streamer-out.c (lto_output_string_with_length): Rename from
23229         output_string_with_length.
23230         Output 0 to indicate a non-NULL string.  Update all callers to
23231         not emit 0.
23232         (lto_output_string): Rename from output_string.  Make extern.
23233         Update all users.
23234         (lto_output_decl_state_streams): Make extern.
23235         (lto_output_decl_state_refs): Make extern.
23236         * lto-streamer.h (lto_input_string): Declare.
23237         (lto_input_data_block): Declare.
23238         (lto_output_string): Declare.
23239         (lto_output_string_with_length): Declare.
23240         (lto_output_decl_state_streams): Declare.
23241         (lto_output_decl_state_refs): Declare.
23242
23243 2011-03-24  Richard Guenther  <rguenther@suse.de>
23244
23245         PR tree-optimization/46562
23246         * tree.c (build_invariant_address): New function.
23247         * tree.h (build_invariant_address): Declare.
23248         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
23249         a renamed function moved ...
23250         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
23251         Take valueization callback parameter.
23252         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
23253         * gimple-fold.h: New file.
23254         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
23255         (ccp_fold, fold_const_aggregate_ref,
23256         fold_ctor_reference, fold_nonarray_ctor_reference,
23257         fold_array_ctor_reference, fold_string_cst_ctor_reference,
23258         get_base_constructor): Move ...
23259         * gimple-fold.c: ... here.
23260         (gimple_fold_stmt_to_constant_1): New function
23261         split out from ccp_fold.  Take a valueization callback parameter.
23262         Valueize all operands.
23263         (gimple_fold_stmt_to_constant): New wrapper function.
23264         (fold_const_aggregate_ref_1): New function split out from
23265         fold_const_aggregate_ref.  Take a valueization callback parameter.
23266         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
23267         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
23268         invariant POINTER_PLUS_EXPRs to invariant form.
23269         (vn_valueize): New function.
23270         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
23271         * tree-vrp.c (vrp_valueize): New function.
23272         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
23273         to fold statements to constants.
23274         * tree-ssa-pre.c (eliminate): Properly guard propagation of
23275         function declarations.
23276         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
23277         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
23278
23279 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
23280
23281         * config/h8300/predicates.md (jump_address_operand): Fix register
23282         mode check.
23283
23284 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
23285
23286         * doc/invoke.texi (max-stores-to-sink): Document.
23287         * params.h (MAX_STORES_TO_SINK): Define.
23288         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
23289         if either vectorization or if-conversion is disabled.
23290         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
23291         tree-vect-data-refs.c vect_equal_offsets.
23292         (dr_equal_offsets_p): New function.
23293         (find_data_references_in_bb): Remove static.
23294         * tree-data-ref.h (find_data_references_in_bb): Declare.
23295         (dr_equal_offsets_p): Likewise.
23296         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
23297         (vect_drs_dependent_in_basic_block): Update calls to
23298         vect_equal_offsets.
23299         (vect_check_interleaving): Likewise.
23300         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
23301         (cond_if_else_store_replacement): Rename to...
23302         (cond_if_else_store_replacement_1): ... this.  Change arguments and
23303         documentation.
23304         (cond_if_else_store_replacement): New function.
23305         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
23306         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
23307
23308 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
23309
23310         PR target/46934
23311         * config/arm/arm.md (casesi): Use the gen_int_mode() function
23312         to subtract lower bound instead of GEN_INT().
23313
23314 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
23315
23316         PR other/48179
23317         PR other/48221
23318         PR other/48234
23319         * doc/extend.texi (Alignment): Move section to match order in TOC.
23320         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
23321         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
23322
23323 2011-03-23  Jeff Law  <law@redhat.com>
23324
23325         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
23326         before removing the edge.
23327
23328         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
23329         it may have been freed by redirect_branch_edge or
23330         redirect_edge_succ_nodup.
23331
23332 2011-03-23  Richard Guenther  <rguenther@suse.de>
23333
23334         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
23335         (check_va_list_escapes): Likewise.
23336         (check_all_va_list_escapes): Likewise.
23337
23338 2011-03-23  Richard Guenther  <rguenther@suse.de>
23339
23340         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
23341         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
23342         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
23343         (alias.o): Likewise.
23344         (ipa-type-escape.o): Remove.
23345         (ipa-struct-reorg.o): Likewise.
23346         (GTFILES): Remove ipa-struct-reorg.c.
23347         * alias.c: Do not include ipa-type-escape.h.
23348         * tree-ssa-alias.c: Likewise.
23349         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
23350         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
23351         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
23352         and ipa-type-escape passes.
23353         * tree-pass.h (pass_ipa_type_escape): Remove.
23354         (pass_ipa_struct_reorg): Likewise.
23355         * ipa-struct-reorg.h: Remove.
23356         * ipa-struct-reorg.c: Likewise.
23357         * ipa-type-escape.h: Likewise.
23358         * ipa-type-escape.c: Likewise.
23359         * doc/invoke.texi (-fipa-struct-reorg): Remove.
23360         (--param struct-reorg-cold-struct-ratio): Likewise.
23361         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23362         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
23363         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
23364
23365 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23366
23367         * config/s390/2084.md: Enable all insn reservations also for z9_ec
23368         cpu attribute value.
23369         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
23370         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
23371         * config/s390/s390.c (processor_flags_table): New constant array.
23372         (s390_handle_arch_option): Remove.
23373         (s390_handle_option): Remove s390_handle_arch_option invocations
23374         and OPT_mwarn_framesize_ handling.
23375         (s390_option_override): Remove s390_handle_arch_option invocation.
23376         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
23377         warnings.
23378         * config/s390/s390.md (cpu attribute): Add z9_ec value.
23379         * config/s390/s390.opt (s390_tune, s390_arch)
23380         (march=): Replace s390_arch_option enum and values with
23381         processor_type.  Set variable name to s390_arch.  Set
23382         initialization value.
23383         (mtune=): Replace s390_arch_option with processor_type.  Set
23384         variable name to s390_tune.  Set initialization value.
23385
23386 2011-03-23  Julian Brown  <julian@codesourcery.com>
23387
23388         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
23389         accesses which are not naturally aligned.
23390
23391 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23392
23393         PR target/47553
23394         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
23395
23396 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
23397
23398         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
23399         parameter from "int" to "enum insn_code".
23400         (expand_operand_type): New enum.
23401         (expand_operand): New structure.
23402         (create_expand_operand): New function.
23403         (create_fixed_operand, create_output_operand): Likewise
23404         (create_input_operand, create_convert_operand_to): Likewise.
23405         (create_convert_operand_from, create_address_operand): Likewise.
23406         (create_integer_operand): Likewise.
23407         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
23408         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23409         (expand_insn, expand_jump_insn): Likewise.
23410         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
23411         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
23412         (expand_movstr, expand_builtin___clear_cache): Likewise.
23413         (expand_builtin_lock_release): Likewise.
23414         * explow.c (allocate_dynamic_stack_space): Likewise.
23415         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
23416         and use the default handling in that case.
23417         * expmed.c (check_predicate_volatile_ok): Delete.
23418         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
23419         (emit_cstore): Likewise.
23420         * expr.c (emit_block_move_via_movmem): Likewise.
23421         (set_storage_via_setmem, expand_assignment): Likewise.
23422         (emit_storent_insn, try_casesi): Likewise.
23423         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
23424         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
23425         (expand_vec_shift_expr, expand_binop_directly): Likewise.
23426         (expand_twoval_unop, expand_twoval_binop): Likewise.
23427         (expand_unop_direct, emit_indirect_jump): Likewise.
23428         (emit_conditional_move, vector_compare_rtx): Likewise.
23429         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
23430         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
23431         (expand_sync_lock_test_and_set): Likewise.
23432         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
23433         (emit_unop_insn): Likewise.
23434         (expand_copysign_absneg): Change icode to an insn_code.
23435         (create_convert_operand_from_type): New function.
23436         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
23437         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
23438         (expand_insn, expand_jump_insn): Likewise.
23439         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
23440         than const_int_operand for operand 2.
23441
23442 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23443
23444         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
23445         if possible.
23446
23447 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23448
23449         * emit-rtl.c (emit_pattern_before_noloc): New function.
23450         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
23451         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
23452         (emit_pattern_after_noloc): New function.
23453         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
23454         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
23455
23456 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
23457
23458         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
23459         (__ffsDI2): Likewise.
23460
23461 2011-03-22  Richard Henderson  <rth@redhat.com>
23462
23463         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
23464         of !TARGET_ABI_OPEN_VMS.
23465         (alpha_trampoline_init, alpha_start_function): Likewise.
23466         (alpha_expand_epilogue, alpha_file_start): Likewise.
23467         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
23468         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
23469         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
23470         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
23471         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
23472
23473 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23474
23475         * config/s390/s390-opts.h: New.
23476         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
23477         s390_arch_flags, s390_warn_framesize, s390_stack_size,
23478         s390_stack_guard): Remove.
23479         (s390_handle_arch_option): Return void.  Take enum
23480         s390_arch_option value instead of string and searching array.
23481         (s390_handle_option): Don't assert that global structures are in
23482         use.  Access variables via opts pointer.  Use error_at.  Don't use
23483         sscanf for -mstack-guard= or -mstack-size=.  Update call to
23484         s390_handle_arch_option.
23485         (s390_option_override): Update call to s390_handle_arch_option.
23486         (s390_emit_prologue): Use %d format for s390_stack_size in
23487         diagnostic.  Use %wd for HOST_WIDE_INT.
23488         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
23489         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
23490         * config/s390/s390.opt (config/s390/s390-opts.h): New
23491         HeaderInclude entry.
23492         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
23493         s390_arch_flags, s390_warn_framesize): New Variable entries.
23494         (s390_arch_option): New Enum and EnumValue entries.
23495         (march=): Use Enum instead of Var.
23496         (mstack-guard=, mstack-size=): Use UInteger and Var.
23497         (mtune=): Use Enum.
23498
23499 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23500
23501         * config/score/score.c (score_handle_option): Don't assert that
23502         global structures are in use.  Access target_flags via opts
23503         pointer.  Use value of -march= option to determine target_flags
23504         settings.
23505         * config/score/score.opt (march=): Use Enum.
23506         (score_arch): New Enum and EnumValue entries.
23507
23508 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23509
23510         * config/mep/mep.c (option_mtiny_specified): Remove.
23511         (mep_option_override): Move register handling for -mivc2 from
23512         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
23513         instead of option_mtiny_specified.
23514         (mep_handle_option): Access target_flags via opts pointer.  Don't
23515         assert that global structures are in use.  Defer part of -mivc2
23516         handling and move it to mep_option_override.
23517         * config/mep/mep.opt (IVC2): New Mask entry.
23518         (mivc2): Use Var and Defer instead of Mask.
23519
23520 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23521
23522         * config/v850/v850-opts.h: New.
23523         * config/v850/v850.c (small_memory): Replace with
23524         small_memory_physical_max array.  Make that array static const.
23525         (v850_handle_memory_option): Take integer value of argument.  Take
23526         gcc_options pointer, option text and location.  Return void.
23527         Update for changes to small memory structures.
23528         (v850_handle_option): Access target_flags via opts pointer.  Don't
23529         assert that global structures are in use.  Update calls to
23530         v850_handle_memory_option.
23531         (v850_encode_data_area): Update references to small memory settings.
23532         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
23533         (enum small_memory_type): Move to v850-opts.h.
23534         * config/v850/v850.opt (config/v850/v850-opts.h): New
23535         HeaderInclude entry.
23536         (small_memory_max): New Variable entry.
23537         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
23538         (mtda, mzda): Likewise.
23539
23540 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23541
23542         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
23543         pointer.  Don't assert that global structures are in use.
23544
23545 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23546
23547         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
23548         via opts pointer.  Don't assert that global structures are in use.
23549
23550 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23551
23552         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
23553         (munix=93): Use Var.
23554         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
23555         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
23556         * config/pa/pa-opts.h: New.
23557         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
23558         (pa_handle_option): Don't assert that global structures are in
23559         use.  Access target_flags via opts pointer.  Don't handle
23560         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
23561         OPT_munix_98 here.
23562         (pa_option_override): Handle deferred OPT_mfixed_range_.
23563
23564 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23565
23566         * config/mn10300/mn10300-opts.h: New.
23567         * config/mn10300/mn10300.c (mn10300_processor,
23568         mn10300_tune_string): Remove.
23569         (mn10300_handle_option): Don't assert that global structures are
23570         in use.  Access mn10300_processor via opts pointer.  Don't handle
23571         OPT_mtune_ here.
23572         * config/mn10300/mn10300.h (enum processor_type): Move to
23573         mn10300-opts.h.
23574         (mn10300_processor): Remove.
23575         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
23576         HeaderInclude entry.
23577         (mn10300_processor): New Variable entry.
23578         (mtune=): Use Var.
23579
23580 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23581
23582         * config/microblaze/microblaze.c: Don't include opts.h.
23583         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
23584         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
23585         (mno-clearbss): Use Var and Warn.
23586
23587 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23588
23589         * config/m32r/m32r-opts.h: New.
23590         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
23591         (m32r_handle_option): Don't assert that global structures are in
23592         use.  Access target_flags and m32r_cache_flush_func via opts
23593         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
23594         OPT_mno_flush_trap here.
23595         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
23596         include of m32r-opts.h.
23597         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
23598         HeaderInclude entry.
23599         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
23600         (mmodel=): Use Enum and Var.
23601         (m32r_model): New Enum and EnumValue entries.
23602         (mno-flush-trap): Use Var.
23603         (msdata=): Use Enum and Var.
23604         (m32r_sdata): New Enum and EnumValue entries.
23605
23606 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23607
23608         * config/m32c/m32c.c: Don't include opts.h.
23609         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
23610         m32c_handle_option): Remove.
23611         (m32c_option_override): Check global_options_set.x_target_memregs
23612         instead of target_memregs_set.
23613         * config/m32c/m32c.h (target_memregs): Remove.
23614         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
23615         variable.
23616
23617 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23618
23619         * config/iq2000/iq2000-opts.h: New.
23620         * config/iq2000/iq2000.c: Don't include opts.h.
23621         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
23622         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
23623         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
23624         HeaderInclude entry.
23625         (iq2000_tune): New Variable entry.
23626         (march=): Add comment.  Use Enum.
23627         (iq2000_arch): New Enum and EnumValue entries.
23628         (mcpu=): Use Enum and Var.
23629         (iq2000_tune): New Enum and EnumValue entries.
23630
23631 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23632
23633         * config/ia64/ia64-opts.h: New.
23634         * config/ia64/ia64.c (ia64_tune): Remove.
23635         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
23636         here.  Use error_at.
23637         (ia64_option_override): Handle deferred OPT_mfixed_range_.
23638         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
23639         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
23640         HeaderInclude entry.
23641         (ia64_tune): New Variable entry.
23642         (mfixed-range=): Use Defer and Var.
23643         (mtune=): Use Enum and Var.
23644         (ia64_tune): New Enum and EnumValue entries.
23645
23646 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23647
23648         * config/frv/frv-opts.h: New.
23649         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
23650         frv-opts.h.
23651         (frv_cpu_type): Remove.
23652         * config/frv/frv.c: Don't include opts.h.
23653         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
23654         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
23655         (frv_cpu_type): New Variable entry.
23656         (frv_cpu): New Enum and EnumValue entries.
23657
23658 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23659
23660         * config/cris/cris.c (cris_handle_option): Access target_flags via
23661         opts pointer.  Don't assert that global structures are in use.
23662         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
23663         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
23664
23665 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23666
23667         * config/bfin/bfin-opts.h: New.
23668         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
23669         bfin_si_revision, bfin_workarounds): Remove.
23670         (bfin_cpus): Make static const.
23671         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
23672         not bfin_lib_id_given.
23673         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
23674         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
23675         pointer. Use error_at.  Don't assert that global structures are in use.
23676         * config/bfin/bfin.h: Include bfin-opts.h.
23677         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
23678         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
23679         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
23680         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
23681         entries.
23682
23683 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23684
23685         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
23686         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
23687         or -msoft-float here.
23688         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
23689         -msoft-float and -mhard-float.
23690         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
23691         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23692         msoft-float.
23693         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
23694         -msoft-float.
23695         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
23696         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
23697         not mhard-float.
23698         (LIBGCC_SPEC): Don't handle -msoft-float.
23699         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
23700         -mhard-float.
23701         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
23702         msoft-float.
23703         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
23704         -mfloat-abi=*, not -msoft-float and -mhard-float.
23705         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
23706         -msoft-float.
23707         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
23708         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
23709         mhard-float and msoft-float.
23710         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
23711         mfloat-abi=soft in comments, not mhard-float and msoft-float.
23712         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
23713         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
23714         mhard-float.
23715         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
23716         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
23717         msoft-float.
23718         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
23719         not mhard-float.
23720         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
23721         not msoft-float.
23722
23723 2011-03-22  Richard Henderson  <rth@redhat.com>
23724
23725         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
23726         TARGET_ABI_WINDOWS_NT.
23727         (alpha_output_function_end_prologue): Likewise.
23728         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
23729         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
23730         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
23731         (trap, *movsi_nt_vms): Likewise.
23732         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
23733         (*tablejump_osf_nt_internal): Remove.
23734         * config/alpha/predicates.md (input_operand): Only test Pmode.
23735
23736 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23737
23738         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
23739         via opts pointer.  Use error_at.  Don't assert that global
23740         structures are in use.
23741
23742 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23743
23744         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
23745         (ix86_handle_option): Access ix86_isa_flags and
23746         ix86_isa_flags_explicit via opts pointer.  Don't assert that
23747         global structures are in use.
23748         (ix86_function_specific_save, ix86_function_specific_restore):
23749         Update ix86_isa_flags_explicit field name.
23750         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
23751         (ix86_isa_flags_explicit): Rename TargetSave entry to
23752         x_ix86_isa_flags_explicit.
23753
23754 2011-03-22  Richard Henderson  <rth@redhat.com>
23755
23756         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
23757         (alpha_option_override, direct_return): Likewise.
23758         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
23759         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
23760         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
23761         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23762         (alpha_expand_epilogue, alpha_end_function): Likewise.
23763         (alpha_init_libfuncs): Likewise.
23764         (struct machine_function): Remove unicosmk members.
23765         (print_operand) ['t']: Remove.
23766         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
23767         unicosmk_output_module_name, unicosmk_output_common,
23768         current_section_align, unicosmk_output_text_section_asm_op,
23769         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
23770         unicosmk_section_type_flags, unicosmk_unique_section,
23771         unicosmk_asm_named_section, unicosmk_insert_attributes,
23772         unicosmk_output_align, unicosmk_defer_case_vector,
23773         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
23774         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
23775         unicosmk_output_ssib, unicosmk_add_call_info_word,
23776         unicosmk_extern_head, unicosmk_output_default_externs,
23777         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
23778         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
23779         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
23780         * config/alpha/alpha-protos.h: Update.
23781         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
23782         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
23783         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
23784         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
23785         (*mulsi_se, mulvsi3): Likewise.
23786         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
23787         (*divmodsi_internal, call, call_value, realign): Likewise.
23788         (moddi3, umoddi3): Likewise; remove duplicate expander.
23789         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
23790         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
23791         (*movdi_nofix): Remove r/U alternative.
23792         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
23793         * config/alpha/constraints.md ("U"): Remove.
23794         * config/alpha/predicates.md (call_operand"): Don't test
23795         TARGET_ABI_UNICOSMK.
23796
23797 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23798
23799         * target.def (handle_option): Take gcc_options and
23800         cl_decoded_option pointers and location_t.
23801         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
23802         * doc/tm.texi: Regenerate.
23803         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
23804         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
23805         * lto-opts.c (lto_reissue_options): Generate option structure for
23806         targetm.handle_option call.
23807         * opts.c (target_handle_option): Update call to
23808         targetm.handle_option.  Remove assertions about values now passed
23809         down to hook.
23810         * targhooks.c (default_target_handle_option): New.
23811         * targhooks.h (default_target_handle_option): Declare.
23812         * config/alpha/alpha.c: Include opts.h.
23813         (alpha_handle_option): Update to new hook interface.
23814         * config/arm/arm.c: Include opts.h.
23815         (arm_handle_option): Update to new hook interface.
23816         * config/arm/t-arm (arm.o): Update dependencies.
23817         * config/bfin/bfin.c: Include opts.h.
23818         (bfin_handle_option): Update to new hook interface.
23819         * config/cris/cris.c: Include opts.h.
23820         (cris_handle_option): Update to new hook interface.
23821         * config/frv/frv.c: Include opts.h.
23822         (frv_handle_option): Update to new hook interface.
23823         * config/i386/i386.c: Include opts.h.
23824         (ix86_handle_option): Update to new hook interface.
23825         (ix86_valid_target_attribute_inner_p): Generate option structure
23826         for call to ix86_handle_option.
23827         * config/i386/t-i386 (i386.o): Update dependencies.
23828         * config/ia64/ia64.c: Include opts.h.
23829         (ia64_handle_option): Update to new hook interface.
23830         * config/ia64/t-ia64 (ia64.o): Update dependencies.
23831         * config/iq2000/iq2000.c: Include opts.h.
23832         (iq2000_handle_option): Update to new hook interface.
23833         * config/m32c/m32c.c: Include opts.h.
23834         (m32c_handle_option): Update to new hook interface.
23835         * config/m32r/m32r.c: Include opts.h.
23836         (m32r_handle_option): Update to new hook interface.
23837         * config/m68k/m68k.c: Include opts.h.
23838         (m68k_handle_option): Update to new hook interface.
23839         * config/mep/mep.c: Include opts.h.
23840         (mep_handle_option): Update to new hook interface.
23841         * config/microblaze/microblaze.c: Include opts.h.
23842         (microblaze_handle_option): Update to new hook interface.
23843         * config/mips/mips.c: Include opts.h.
23844         (mips_handle_option): Update to new hook interface.
23845         * config/mn10300/mn10300.c: Include opts.h.
23846         (mn10300_handle_option): Update to new hook interface.
23847         * config/pa/pa.c: Include opts.h.
23848         (pa_handle_option): Update to new hook interface.
23849         * config/pdp11/pdp11.c: Include opts.h.
23850         (pdp11_handle_option): Update to new hook interface.
23851         * config/rs6000/rs6000.c: Include opts.h.
23852         (rs6000_handle_option): Update to new hook interface.
23853         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
23854         * config/rx/rx.c: Include opts.h.
23855         (rx_handle_option): Update to new hook interface.
23856         * config/s390/s390.c: Include opts.h.
23857         (s390_handle_option): Update to new hook interface.
23858         * config/score/score.c: Include opts.h.
23859         (score_handle_option): Update to new hook interface.
23860         * config/sh/sh.c: Include opts.h.
23861         (sh_handle_option): Update to new hook interface.
23862         * config/sparc/sparc.c: Include opts.h.
23863         (sparc_handle_option): Update to new hook interface.
23864         * config/v850/v850.c: Include opts.h.
23865         (v850_handle_option): Update to new hook interface.
23866
23867 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23868
23869         * gcc.c (driver_unknown_option_callback): Only permit and save
23870         unknown -Wno- options.
23871         (driver_wrong_lang_callback): Save options directly instead of via
23872         driver_unknown_option_callback.
23873
23874 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
23875
23876         * combine.c (simplify_set): Try harder to find the best CC mode when
23877         simplifying a nested COMPARE on the RHS.
23878
23879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
23880
23881         * config/alpha/gnu.h: Remove.
23882         * config/arc: Remove directory.
23883         * config/arm/netbsd.h: Remove.
23884         * config/arm/t-pe: Remove.
23885         * config/crx: Remove directory.
23886         * config/i386/netbsd.h: Remove.
23887         * config/m68hc11: Remove directory.
23888         * config/m68k/uclinux-oldabi.h: Remove.
23889         * config/mcore/mcore-pe.h: Remove.
23890         * config/mcore/t-mcore-pe: Remove.
23891         * config/netbsd-aout.h: Remove.
23892         * config/rs6000/gnu.h: Remove.
23893         * config/sh/sh-symbian.h: Remove.
23894         * config/sh/symbian-base.c: Remove.
23895         * config/sh/symbian-c.c: Remove.
23896         * config/sh/symbian-cxx.c: Remove.
23897         * config/sh/symbian-post.h: Remove.
23898         * config/sh/symbian-pre.h: Remove.
23899         * config/sh/t-symbian: Remove.
23900         * config/svr3.h: Remove.
23901         * config/vax/netbsd.h: Remove.
23902         * config.build: Don't handle i[34567]86-*-pe.
23903         * config.gcc: Remove handling of deprecations for most deprecated
23904         targets.
23905         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23906         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23907         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23908         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23909         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23910         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23911         Remove cases.
23912         * config.host: Don't handle i[34567]86-*-pe.
23913         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23914         (ASM_SPEC32): Don't handle -mcall-gnu.
23915         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23916         -mcall-gnu.
23917         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23918         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23919         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23920         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23921         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23922         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23923         conditional on SYMBIAN.
23924         * configure.ac: Don't handle powerpc*-*-gnu*.
23925         * configure: Regenerate.
23926         * doc/extend.texi (interrupt attribute): Don't mention CRX.
23927         * doc/install-old.texi (m6811, m6812): Don't mention.
23928         * doc/install.texi (arc-*-elf*): Don't document multilib option.
23929         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23930         (m68k-uclinuxoldabi): Don't mention.
23931         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23932         Remove.
23933         (-mcall-gnu): Remove.
23934         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23935         families): Remove constraint documentation.
23936
23937 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
23938
23939         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23940         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23941         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23942
23943 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
23944
23945         PR target/48226
23946         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23947         vector when peeking at the next token for vector, don't expand the
23948         keywords.
23949
23950 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
23951
23952         * config/avr/avr-protos.h (expand_epilogue): Change prototype
23953         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23954         * config/avr/avr.c (init_cumulative_args)
23955         (avr_function_arg_advance): Use it.
23956         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23957         sibcall epilogues.
23958         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23959         (avr_function_ok_for_sibcall): ...this new function.
23960         (avr_lookup_function_attribute1): New static Function.
23961         (avr_naked_function_p, interrupt_function_p)
23962         (signal_function_p, avr_OS_task_function_p)
23963         (avr_OS_main_function_p): Use it.
23964         * config/avr/avr.md ("sibcall", "sibcall_value")
23965         ("sibcall_epilogue"): New expander.
23966         ("*call_insn", "*call_value_insn"): New insn.
23967         ("call_insn", "call_value_insn"): Remove
23968         ("call", "call_value", "epilogue"): Change expander to handle
23969         sibling calls.
23970
23971 2011-03-21  Nick Clifton  <nickc@redhat.com>
23972
23973         * doc/invoke.texi (Overall Options): Move closing brace to end of
23974         options list.
23975         (Optimization Options): Add missing @gol.
23976         (Directory Options): Likewise.
23977         (i386 and x86-64 Options): Likewise.
23978         (RS6000 and PowerPC Options): Likewise.
23979         (i386 and x86-64 Windows Options): Likewise.
23980         (V850 Options): Add text missing from descriptions.
23981
23982 2011-03-22  Richard Henderson  <rth@redhat.com>
23983
23984         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23985         (avr_incoming_return_addr_rtx): New.
23986         (emit_push_byte): New.
23987         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
23988         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
23989         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
23990         (emit_pop_byte): New.
23991         (expand_epilogue): Use it.  Pop frame pointer by bytes.
23992         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23993         (INCOMING_RETURN_ADDR_RTX): New.
23994         (INCOMING_FRAME_SP_OFFSET): New.
23995         (ARG_POINTER_CFA_OFFSET): New.
23996         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23997         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23998         (pophi): Remove.
23999
24000         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
24001
24002 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24003
24004         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
24005         (FUNCTION_ARG_ADVANCE): Likewise.
24006         * tm.texi.in: Change references to them to hook references.
24007         * tm.texi: Regenerate.
24008         * targhooks.c (default_function_arg): Eliminate check for target
24009         macro.
24010         (default_function_incoming_arg): Likewise.
24011         (default_function_arg_advance): Likewise.
24012         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
24013         (function_arg_advance): Likewise.
24014         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
24015
24016 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
24017
24018         * tree.c (build_call_1): New function.
24019         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
24020
24021 2011-03-22  Richard Guenther  <rguenther@suse.de>
24022
24023         PR tree-optimization/48228
24024         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
24025         for single-arg PHIs.
24026
24027 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
24028
24029         PR rtl-optimization/48143
24030         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
24031         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
24032         sse2_cvtps2pd): Likewise.
24033
24034 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24035
24036         * recog.c (canonicalize_change_group): Use validate_unshare_change.
24037
24038 2011-03-22  Richard Guenther  <rguenther@suse.de>
24039
24040         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
24041         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
24042         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
24043         and REALIGN_LOAD_EXPR.
24044         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
24045         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
24046         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
24047         DOT_PROD_EXPR case ...
24048         (expand_expr_real_2): ... here.
24049         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
24050         and REALIGN_LOAD_EXPR.
24051         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
24052         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
24053         (vect_create_epilog_for_reduction): Likewise.
24054         (vectorizable_reduction): Likewise.
24055         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
24056         * tree-vect-stmts.c (vectorizable_load): Likewise.
24057
24058 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
24059
24060         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
24061
24062 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24063
24064         * config/s390/s390.c (s390_delegitimize_address): Fix offset
24065         handling for PLTOFF/GOTOFF.
24066
24067 2011-03-22  Nick Clifton  <nickc@redhat.com>
24068
24069         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
24070         trailing backslash from the end of the macro definition.
24071
24072 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24073
24074         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
24075         and PLT unspecs.
24076
24077 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
24078
24079         * expr.h (prepare_operand): Move to...
24080         * optabs.h (prepare_operand): ...here and change the insn code
24081         parameter from "int" to "enum insn_code".
24082         (insn_operand_matches): Declare.
24083         * expr.c (init_expr_target): Use insn_operand_matches.
24084         (compress_float_constant): Likewise.
24085         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
24086         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
24087         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
24088         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
24089         Likewise.
24090         (gen_cond_trap): Likewise.
24091         (prepare_operand): Likewise.  Change icode to an insn_code.
24092         (insn_operand_matches): New function.
24093         * reload.c (find_reloads_address_1): Use insn_operand_matches.
24094         * reload1.c (gen_reload): Likewise.
24095         * targhooks.c (default_secondary_reload): Likewise.
24096
24097 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24098
24099         * config/alpha/alpha.md (unspec): New define_c_enum.
24100         (unspecv): Ditto.
24101
24102 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
24103
24104         PR debug/48214
24105         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
24106         between a call and its CALL_ARG_LOCATION note.
24107
24108 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
24109
24110         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
24111
24112 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24113
24114         PR c/42544
24115         PR c/48197
24116         * c-common.c (shorten_compare): If primopN is first sign-extended
24117         to opN and then zero-extended to result type, set primopN to opN.
24118
24119 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
24120
24121         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
24122         for barrier handlers.
24123
24124 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
24125
24126         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
24127         UNSPEC constants to be in the unspec enumeration, and redefine
24128         all UNSPECV constants to be in the unspecv enumeration, so that
24129         dumps print which unspec/unspec_volatile this is.
24130         * config/rs6000/vector.md (UNSPEC_*): Ditto.
24131         * config/rs6000/paired.md (UNSPEC_*): Ditto.
24132         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
24133         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
24134         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
24135
24136         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
24137         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
24138         UNSPECV_LWSYNC, since these are used as unspec_volatile.
24139         * config/rs6000/sync.md (isync, lwsync): Ditto.
24140
24141 2011-03-21  Richard Guenther  <rguenther@suse.de>
24142
24143         * params.def (lto-min-partition): Fix typo.
24144
24145 2011-03-21  Richard Guenther  <rguenther@suse.de>
24146
24147         PR c/47939
24148         * c-decl.c (grokdeclarator): Drop to the main variant only
24149         for array types.  Drop flag_gen_aux_info check.
24150
24151 2011-03-21  Richard Guenther  <rguenther@suse.de>
24152
24153         PR translation/47911
24154         * params.def (lto-partitions): Fix typo.
24155         (lto-min-partition): Fix wording.
24156
24157 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
24158
24159         * config/rs6000/t-freebsd: Remove duplication from file.
24160
24161 2011-03-21  Richard Guenther  <rguenther@suse.de>
24162
24163         PR middle-end/47661
24164         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
24165
24166 2011-03-21  Richard Guenther  <rguenther@suse.de>
24167
24168         PR lto/48210
24169         * params.def (lto-partitions): Require at least 1 partition.
24170
24171 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24172
24173         * gthr-solaris.h: Remove.
24174         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
24175         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
24176         (LIB_SPEC): Likewise.
24177         * config/sol2.opt (threads): Remove.
24178         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
24179         (sparc*-*-solaris2*): Likewise.
24180         * configure.ac (enable_threads): Enable solaris support.
24181         * configure: Regenerate.
24182         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
24183         * doc/install.texi (Configuration, --enable-threads=lib): Remove
24184         solaris.
24185
24186 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24187
24188         * config.gcc: Obsolete *-*-solaris2.8*.
24189         * doc/install.texi (Specific, *-*-solaris2*): Document it.
24190
24191 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24192
24193         PR bootstrap/48135
24194         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
24195         reference.  Solaris 8 perl works.
24196
24197 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24198
24199         PR bootstrap/48135
24200         * doc/install.texi (Prerequisites): Move jar etc. up.
24201         Explain support library version requirements.
24202
24203 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24204
24205         PR bootstrap/48135
24206         * doc/install.texi (Prerequisites): Move Perl to build
24207         requirements.  Always necessary on Solaris 2 with Sun ld.
24208
24209 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24210
24211         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
24212         binutils 2.21.
24213         (Specific, i?86-*-solaris2.[89]): Likewise.
24214         (Specific, i?86-*-solaris2.10): Likewise.
24215         (Specific, mips-sgi-irix6): Likewise.
24216         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
24217         Update for binutils 2.21.
24218
24219 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24220
24221         * configure.ac (gcc_cv_lto_plugin): Fix typo.
24222         Allow -fuse-linker-plugin for non-default plugin linker.
24223         * configure: Regenerate.
24224
24225 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
24226
24227         PR bootstrap/48167
24228         * gengtype.c (files_rules): Added rule for cp/parser.h.
24229
24230 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
24231
24232         PR target/48213
24233         * config/s390/s390.c (s390_delegitimize_address): Don't call
24234         lowpart_subreg if orig_x has BLKmode.
24235
24236 2011-03-21  Kai Tietz  <ktietz@redhat.com>
24237
24238         PR target/12171
24239         * doc/plugins.texi: Adjust documentation for plugin register_callback.
24240         * tree.h (attribute_spec): Add new member affects_type_identity.
24241         * attribs.c (empty_attribute_table): Adjust attribute_spec
24242         initializers.
24243         * config/alpha/alpha.c: Likewise.
24244         * config/arc/arc.c: Likewise.
24245         * config/arm/arm.c: Likewise.
24246         * config/avr/avr.c: Likewise.
24247         * config/bfin/bfin.c: Likewise.
24248         * config/crx/crx.c: Likewise.
24249         * config/darwin.h: Likewise.
24250         * config/h8300/h8300.c: Likewise.
24251         * config/i386/cygming.h: Likewise.
24252         * config/i386/i386.c: Likewise.
24253         * config/ia64/ia64.c: Likewise.
24254         * config/m32c/m32c.c: Likewise.
24255         * config/m32r/m32r.c: Likewise.
24256         * config/m68hc11/m68hc11.c: Likewise.
24257         * config/m68k/m68k.c: Likewise.
24258         * config/mcore/mcore.c: Likewise.
24259         * config/mep/mep.c: Likewise.
24260         * config/microblaze/microblaze.c: Likewise.
24261         * config/mips/mips.c: Likewise.
24262         * config/rs6000/rs6000.c: Likewise.
24263         * config/rx/rx.c: Likewise.
24264         * config/sh/sh.c: Likewise.
24265         * config/sol2.h: Likewise.
24266         * config/sparc/sparc.c: Likewise.
24267         * config/spu/spu.c: Likewise.
24268         * config/stormy16/stormy16.c: Likewise.
24269         * config/v850/v850.c: Likewise.
24270
24271 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24272
24273         * simplify-rtx.c (simplify_binary_operation_1): Handle
24274         (xor (and A B) C) case when B and C are both constants.
24275
24276 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
24277
24278         * tree-dfa.c (add_referenced_var): Fix typo in comment.
24279
24280 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24281
24282         PR bootstrap/48168
24283         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
24284
24285 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
24286
24287         PR rtl-optimization/48156
24288         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
24289         assume df and df_lr are not NULL.
24290
24291 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24292
24293         PR debug/48023
24294         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
24295         between a call and its CALL_ARG_LOCATION note.
24296
24297 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24298
24299         PR debug/48178
24300         * config/sh/sh.c (find_barrier): Don't emit a constant pool
24301         between a call and its corresponding CALL_ARG_LOCATION note.
24302
24303 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
24304
24305         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
24306         instead of loop. Use HARD_REGISTER_NUM_P predicate.
24307         * haifa-sched.c (setup_ref_regs): Ditto.
24308         * caller-save.c (add_used_regs_1): Ditto.
24309         * dse.c (look_for_hardregs): Ditto.
24310         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
24311         * sched-rgn.c (check_live_1): Ditto.
24312
24313 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24314
24315         * c-decl.c (diagnose_mismatched_decls): Give an error for
24316         redefining a typedef with variably modified type.
24317
24318 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
24319
24320         * c-decl.c (grokfield): Don't allow typedefs for structures or
24321         unions with no tag by default.
24322         * doc/extend.texi (Unnamed Fields): Update.
24323
24324 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
24325
24326         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24327         Rewrite using indirect functions.
24328         (lwp_slwpcb): Ditto.
24329         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
24330         (avx_vinsertf128<mode>): Ditto.
24331
24332 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24333
24334         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
24335         unspecs.
24336
24337 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24338
24339         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
24340         splitting between a call and its corresponding CALL_ARG_LOCATION note.
24341
24342 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
24343
24344         PR rtl-optimization/48170
24345         * gcse.c (hoist_code): Remove bogus asserts.
24346
24347 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
24348
24349         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
24350         computation for prologue/epilogue.
24351
24352 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24353
24354         * Makefile.in (check-consistency): Remove.
24355
24356 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
24357
24358         PR debug/48176
24359         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
24360         arange_table_in_use is 0, but either text_section_used or
24361         cold_text_section_used is true.  Don't call it if
24362         !info_section_emitted.
24363
24364 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
24365
24366         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
24367         FUNCTION_VALUE_REGNO_P): Remove.
24368         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
24369         Remove.
24370         * config/avr/avr.c (avr_ret_register): Make static inline.
24371         (avr_function_value_regno_p): New function.
24372         (avr_libcall_value): Make static. Add 'func' argument.
24373         (avr_function_value): Make static. Rename 'func' argument to
24374         'fn_decl_or_type', forward it to avr_libcall_value. Call
24375         avr_ret_register function instead of RET_REGISTER macro.
24376         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24377
24378 2011-03-18  Jason Merrill  <jason@redhat.com>
24379
24380         PR c++/23372
24381         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
24382
24383 2011-03-18  Richard Guenther  <rguenther@suse.de>
24384
24385         * doc/install.texi (--enable-gold): Remove.
24386         (--with-plugin-ld): Document.
24387         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
24388
24389 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
24390
24391         PR middle-end/47790
24392         * expr.c (optimize_bitfield_assignment_op): Revamp to work
24393         again after expansion changes.
24394
24395 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
24396
24397         * combine.c (try_combine): Do simplification only call of
24398         subst() on i2 even when i1 is present. Update comments.
24399
24400 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
24401
24402         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
24403         and UNSPEC_PCREL_SYMOFF.
24404
24405 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24406
24407         * config/s390/s390.md: Use define_c_enum for the unspec constant
24408         definitions.
24409
24410 2011-03-18  Richard Henderson  <rth@redhat.com>
24411             Jakub Jelinek  <jakub@redhat.com>
24412
24413         PR bootstrap/48161
24414         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
24415         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
24416
24417 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
24418
24419         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24420         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
24421         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
24422         Change return type to bool.
24423         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24424
24425 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24426
24427         PR debug/48163
24428         * var-tracking.c (prepare_call_arguments): If CALL target
24429         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
24430         pc instead of looking it up using cselib_lookup and use
24431         Pmode for it if x has VOIDmode.
24432         * dwarf2out.c (gen_subprogram_die): If also both first and
24433         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
24434
24435         PR debug/48163
24436         * function.c (assign_parms): For data.passed_pointer parms
24437         use MEM of data.entry_parm instead of data.entry_parm itself
24438         as DECL_INCOMING_RTL.
24439         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
24440         also when passed and declared mode is the same, DECL_RTL
24441         is a MEM with pseudo as address and DECL_INCOMING_RTL is
24442         a MEM too.
24443
24444 2011-03-16  Jeff Law  <law@redhat.com>
24445
24446         PR rtl-optimization/37273
24447         * ira-costs.c (scan_one_insn): Detect constants living in memory and
24448         handle them like argument loads from stack slots.  Do not double
24449         count memory for memory constants and argument loads from stack slots.
24450
24451 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24452
24453         PR debug/48160
24454         * var-tracking.c (prepare_call_arguments): Check SUBREG.
24455
24456 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
24457
24458         PR target/48171
24459         * config/i386/i386.opt: Add Save to -mavx and -mfma.
24460
24461 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24462
24463         PR bootstrap/48153
24464         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
24465         if dwarf_strict.
24466         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
24467         Clear call_arg_locations and call_arg_loc_last always.
24468
24469         PR middle-end/48152
24470         * var-tracking.c (prepare_call_arguments): If argument needs to be
24471         passed by reference, adjust argtype and mode.
24472
24473 2011-03-17  Richard Guenther  <rguenther@suse.de>
24474
24475         PR middle-end/48134
24476         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
24477         a value make sure to fold the statement.
24478
24479 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
24480
24481         PR target/43872
24482         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
24483         return condition with !cfun->calls_alloca.
24484
24485 2011-03-17  Richard Guenther  <rguenther@suse.de>
24486
24487         PR bootstrap/48148
24488         * lto-cgraph.c (input_overwrite_node): Clear the abstract
24489         origin for decls in other ltrans units.
24490         (input_varpool_node): Likewise.
24491
24492 2011-03-17  Richard Guenther  <rguenther@suse.de>
24493
24494         PR middle-end/48165
24495         * tree-object-size.c (compute_object_offset): Properly return
24496         the offset operand of MEM_REFs as sizetype.
24497
24498 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
24499
24500         PR rtl-optimization/48141
24501         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
24502         * dse.c: Include params.h.
24503         (active_local_stores_len): New variable.
24504         (add_wild_read, dse_step1): Clear it when setting active_local_stores
24505         to NULL.
24506         (record_store, check_mem_read_rtx): Decrease it when removing
24507         from the chain.
24508         (scan_insn): Likewise.  Increase it when adding to chain, if it
24509         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
24510         set active_local_stores to NULL before the addition.
24511         * Makefile.in (dse.o): Depend on $(PARAMS_H).
24512
24513         PR rtl-optimization/48141
24514         * dse.c (record_store): If no positions are needed in an insn
24515         that cannot be deleted, at least unchain it from active_local_stores.
24516
24517 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
24518
24519         PR debug/47510
24520         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
24521         (lookup_type_die_strip_naming_typedef): ... here.
24522         (get_context_die): Use it.
24523         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
24524         the anonymous struct named by the naming typedef.
24525
24526 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24527
24528         PR target/48154
24529         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
24530         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24531
24532 2011-03-16  Jeff Law  <law@redhat.com>
24533
24534         * tree-vrp.c (identify_jump_threads): Slightly simplify type
24535         check for operands of conditional.  Allow type to be a pointer.
24536
24537 2011-03-16  Richard Guenther  <rguenther@suse.de>
24538
24539         PR tree-optimization/48149
24540         * fold-const.c (fold_binary_loc): Fold
24541         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
24542
24543 2011-03-16  Richard Guenther  <rguenther@suse.de>
24544
24545         PR tree-optimization/26134
24546         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
24547         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
24548         (non_rewritable_mem_ref_base): Handle complex type component
24549         accesses, constrain offsets for vector and complex extracts
24550         more properly.
24551
24552 2011-03-16  Richard Guenther  <rguenther@suse.de>
24553
24554         PR tree-optimization/48146
24555         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
24556         operands avoiding the need for renaming.
24557
24558 2011-03-16  Richard Guenther  <rguenther@suse.de>
24559
24560         * gimple-fold.c (maybe_fold_reference): Open-code relevant
24561         constant folding.  Move MEM_REF canonicalization first.
24562         Rely on fold_const_aggregate_ref for initializer folding.
24563         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
24564
24565 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24566
24567         PR middle-end/48136
24568         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
24569         arg0/arg1 or their arguments are always fold converted to matching
24570         types.
24571
24572         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
24573         to nargs.
24574
24575 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24576
24577         PR lto/46944
24578         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
24579         Handle in-tree gold.
24580         (ld_vers): Extract binutils version for gold.
24581         (gcc_cv_ld_hidden): Handle gold here.
24582         (gcc_cv_lto_plugin): Determine level of linker plugin support.
24583         * configure: Regenerate.
24584         * config.in: Regenerate.
24585         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
24586         -fuse-linker-plugin otherwise.
24587         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
24588         (LINK_COMMAND_SPEC): Use it.
24589         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
24590
24591 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
24592
24593         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
24594         * calls.c: Remove debug.h include.
24595         (emit_call_1): Don't call virtual_call_token debug hook.
24596         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
24597         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
24598         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
24599         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
24600         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
24601         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
24602         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
24603         dwarf2out_virtual_call): Remove.
24604         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
24605         copy_call_info and virtual_call hooks.
24606         (dwarf2out_init): Don't initialize vcall_insn_table,
24607         debug_dcall_section and debug_vcall_section.
24608         (prune_unused_types): Don't mark nodes from dcall_table.
24609         (dwarf2out_finish): Don't output dcall or vcall tables.
24610         * final.c (final_scan_insn): Don't call direct_call or
24611         virtual_call debug hooks.
24612         * debug.h (struct gcc_debug_hooks): Remove direct_call,
24613         virtual_call_token, copy_call_info and virtual_call hooks.
24614         (debug_nothing_uid): Remove prototype.
24615         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
24616         copy_call_info and virtual_call hooks.
24617         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
24618         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
24619         * debug.c (do_nothing_debug_hooks): Likewise.
24620         (debug_nothing_uid): Remove.
24621         * doc/invoke.texi (-fenable-icf-debug): Remove.
24622         * common.opt (-fenable-icf-debug): Likewise.
24623
24624         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
24625         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
24626         call's MEM.  Handle functions returning aggregate through a hidden
24627         first pointer.  For virtual calls add clobbered pc to call arguments
24628         chain.
24629         * dwarf2out.c (gen_subprogram_die): Emit
24630         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
24631         can't be emitted.
24632
24633         PR debug/45882
24634         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
24635         * rtl.h (ENTRY_VALUE_EXP): Define.
24636         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
24637         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
24638         * print-rtl.c (print_rtx): Likewise.
24639         * gengtype.c (adjust_field_rtx_def): Likewise.
24640         * var-tracking.c (vt_add_function_parameter): Adjust
24641         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
24642         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
24643         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
24644         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
24645         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
24646
24647         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
24648         Call var_location debug hook even on CALL_INSNs.
24649         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
24650         * rtl.def (ENTRY_VALUE): New.
24651         * dwarf2out.c: Include cfglayout.h.
24652         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
24653         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
24654         (struct call_arg_loc_node): New type.
24655         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
24656         tail_call_site_count): New variables.
24657         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
24658         DW_TAG_GNU_call_site_parameter.
24659         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
24660         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
24661         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
24662         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
24663         and DW_AT_GNU_all_source_call_sites.
24664         (mem_loc_descriptor): Handle ENTRY_VALUE.
24665         (add_src_coords_attributes): Don't add enything if
24666         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
24667         (dwarf2out_abstract_function): Save and clear call_arg_location,
24668         call_site_count and tail_call_site_count around dwarf2out_decl call.
24669         (gen_call_site_die): New function.
24670         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
24671         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
24672         (dwarf2out_function_decl): Clear call_arg_locations,
24673         call_arg_loc_last, set call_site_count and tail_call_site_count
24674         to -1 and free block_map.
24675         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
24676         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
24677         followed by any real instructions.
24678         (dwarf2out_begin_function): Set call_site_count and
24679         tail_call_site_count to 0.
24680         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
24681         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
24682         attempt to force a DIE for it and worst case remove the attribute.
24683         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
24684         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
24685         the decl itself.
24686         * var-tracking.c: Include tm_p.h.
24687         (vt_stack_adjustments): For calls call note_register_arguments.
24688         (argument_reg_set): New variable.
24689         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
24690         ensure the VALUE is resolved.
24691         (call_arguments): New variable.
24692         (prepare_call_arguments): New function.
24693         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
24694         (struct expand_loc_callback_data): Add ignore_cur_loc field.
24695         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
24696         always use the best expression.
24697         (vt_expand_loc): Add ignore_cur_loc argument.
24698         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
24699         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
24700         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
24701         note for all calls.
24702         (vt_add_function_parameter): Use cselib_lookup_from_insn.
24703         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
24704         argument.  Don't call cselib_preserve_only_values and
24705         cselib_reset_table.
24706         (note_register_arguments): New function.
24707         (vt_initialize): Compute argument_reg_set.  Call
24708         vt_add_function_parameters before processing basic blocks instead of
24709         afterwards.  For calls call prepare_call_arguments before calling
24710         cselib_process_insn.
24711         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
24712         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
24713         (var-tracking.o): Depend on $(TM_P_H).
24714         * cfglayout.h (insn_scope): New prototype.
24715         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
24716         * cfglayout.c (insn_scope): No longer static.
24717         * insn-notes.def (CALL_ARG_LOCATION): New.
24718         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
24719         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
24720         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
24721         nothing for DECL_EXTERNAL BLOCK_VARS.
24722
24723 2011-03-16  Alan Modra  <amodra@gmail.com>
24724
24725         PR target/45844
24726         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
24727         create invalid offset address for vsx splat insn.
24728         * config/rs6000/predicates.md (splat_input_operand): New.
24729         * config/rs6000/vsx.md (vsx_splat_*): Use it.
24730
24731 2011-03-15  Xinliang David Li  <davidxl@google.com>
24732
24733         PR c/47837
24734         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
24735         (normalize_preds): New function.
24736         (is_use_properly_guarded): Normalize def predicates.
24737
24738 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24739
24740         PR target/46788
24741         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
24742         in the output template.
24743
24744 2011-03-15  Richard Guenther  <rguenther@suse.de>
24745
24746         PR middle-end/47650
24747         * tree-pretty-print.c (dump_function_declaration): Properly
24748         dump unprototyped and varargs function types.
24749
24750 2011-03-15  Richard Guenther  <rguenther@suse.de>
24751
24752         PR tree-optimization/13954
24753         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
24754         and friends.
24755
24756 2011-03-15  Richard Guenther  <rguenther@suse.de>
24757
24758         PR tree-optimization/48037
24759         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
24760         selects into BIT_FIELD_REFs.
24761         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
24762         vector select.
24763
24764 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
24765
24766         PR tree-optimization/48129
24767         * builtins.c (fold_builtin_snprintf): Convert to type of
24768         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
24769         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
24770
24771 2011-03-15  Richard Guenther  <rguenther@suse.de>
24772
24773         PR tree-optimization/41490
24774         * tree-ssa-dce.c (propagate_necessity): Handle returns without
24775         value but with VUSE.
24776         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
24777         return statements.
24778         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
24779         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
24780         * tree-tailcall.c (find_tail_calls): Ignore returns.
24781
24782 2011-03-15  Richard Guenther  <rguenther@suse.de>
24783
24784         PR middle-end/48031
24785         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
24786         or variable-indexed array accesses when in gimple form.
24787
24788 2011-03-15  Richard Guenther  <rguenther@suse.de>
24789
24790         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
24791
24792 2011-03-15  Alan Modra  <amodra@gmail.com>
24793
24794         PR target/48032
24795         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
24796         presume symbol_refs without a symbol_ref_decl are suitably
24797         aligned, nor other trees we may see here.  Handle anchor symbols.
24798         (legitimate_constant_pool_address_p): Comment.  Add mode param.
24799         Check cmodel=medium addresses.  Adjust all calls.
24800         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
24801         creating cmodel=medium optimized access to locals.
24802         * config/rs6000/constraints.md (R): Pass QImode to
24803         legitimate_constant_pool_address_p.
24804         * config/rs6000/predicates.md (input_operand): Pass mode to
24805         legitimate_constant_pool_address_p.
24806         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
24807         Update prototype.
24808
24809 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24810
24811         PR target/48053
24812         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
24813         64-bit constants being loaded into registers other than GPRs such
24814         as loading 0 into a VSX register.
24815
24816 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24817
24818         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
24819
24820 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24821
24822         PR middle-end/47917
24823         * builtins.c (fold_builtin_snprintf): New function.
24824         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
24825         (fold_builtin_4): Likewise.
24826
24827         PR middle-end/38878
24828         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
24829         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
24830         and C - X == X also strip nops from +/-/p+ operand.
24831         When optimizing -X == C, fold C to arg0's type.
24832
24833         PR debug/47946
24834         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
24835         emit it as add_AT_int instead of add_AT_unsigned.
24836
24837 2011-03-14  Tom Tromey  <tromey@redhat.com>
24838
24839         * unwind-dw2.c: Include sys/sdt.h if it exists.
24840         (_Unwind_DebugHook): Use STAP_PROBE2.
24841         * config.in, configure: Rebuild.
24842         * configure.ac: Check for sys/sdt.h.
24843
24844 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
24845
24846         * config/i386/i386.md (ROUND_FLOOR): New constant.
24847         (ROUND_CEIL): Ditto.
24848         (ROUND_TRUNC): Ditto.
24849         (ROUND_MXCSR): Ditto.
24850         (ROUND_NO_EXC): Ditto.
24851         (rint<mode>2): Use new defines instead of numerical constants.
24852         (floor<mode>2): Ditto.
24853         (ceil<mode>2): Ditto.
24854         (btrunc<mode>2): Ditto.
24855         * config/i386/i386-builtin-types.def: Define ROUND function type
24856         aliases.
24857         * config/i386/i386.c (enum ix86_builtins): Add
24858         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
24859         (struct builtin_description): Add
24860         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
24861         (ix86_expand_sse_round): New static function.
24862         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
24863         function types.
24864         (ix86_builtin_vectorized_function): Handle
24865         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24866
24867 2011-03-14  Tom Tromey  <tromey@redhat.com>
24868
24869         * c-parser.c (c_parser_asm_string_literal): Clear
24870         warn_overlength_strings.
24871
24872 2011-03-14  Tom Tromey  <tromey@redhat.com>
24873
24874         * c-parser.c (disable_extension_diagnostics): Save
24875         warn_overlength_strings.
24876         (restore_extension_diagnostics): Restore warn_overlength_strings.
24877
24878 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24879
24880         * BASE-VER: Change to 4.7.0.
24881
24882 2011-03-14  Richard Guenther  <rguenther@suse.de>
24883
24884         PR middle-end/48098
24885         * tree.c (build_vector_from_val): Adjust assert to requirements
24886         and reality.
24887
24888 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
24889
24890         PR bootstrap/48102
24891         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
24892
24893 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
24894
24895         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
24896         terms of target_flags_explicit. Adjust copyright year.
24897
24898         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
24899         * config/rs6000/t-freebsd: New file. Add override for
24900         LIB2FUNCS_EXTRA.
24901
24902 2011-03-13  Chris Demetriou  <cgd@google.com>
24903
24904         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24905         (-fno-diagnostics-show-option): this, to reflect current default.
24906         (-Werror=): Update text about -fno-diagnostics-show-option.
24907
24908 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
24909
24910         PR target/48053
24911         * config/rs6000/predicates.md (easy_vector_constant_add_self,
24912         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24913         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24914         mode is not V2DImode or V2DFmode.
24915         (vspltis_constant): Do not handle V2DImode and V2DFmode.
24916         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24917         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24918         registers to 0.
24919         (movdi_internal64): Likewise.
24920
24921 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
24922
24923         PR tree-optimization/47127
24924         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24925         parameter.
24926         (set_cloog_options): Same.
24927         (scop_to_clast): Same.
24928         (print_clast_stmt): Do not call cloog_state_malloc and
24929         cloog_state_free.
24930         (print_generated_program): Same.
24931         (gloog): Same.
24932         * graphite-clast-to-gimple.h (cloog_state): Declared.
24933         (scop_to_clast): Adjust declaration.
24934         * graphite.c (cloog_state): Defined here.
24935         (graphite_initialize): Call cloog_state_malloc.
24936         (graphite_finalize): Call cloog_state_free.
24937
24938 2011-03-11  Jason Merrill  <jason@redhat.com>
24939
24940         * attribs.c (lookup_attribute_spec): Take const_tree.
24941         * tree.h: Adjust.
24942
24943 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
24944
24945         * config/sparc/sparc.c (sparc_option_override): Use
24946         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24947
24948 2011-03-11  Richard Guenther  <rguenther@suse.de>
24949
24950         PR tree-optimization/48067
24951         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24952         multiplication result will be only used once on the target
24953         stmt.
24954
24955 2011-03-11  Richard Guenther  <rguenther@suse.de>
24956
24957         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24958
24959 2011-03-11  Richard Guenther  <rguenther@suse.de>
24960
24961         PR lto/48073
24962         * tree.c (find_decls_types_r): Do not walk types only reachable
24963         from IDENTIFIER_NODEs.
24964
24965 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
24966
24967         PR middle-end/48044
24968         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24969         all vnode->force_output nodes as needed.
24970
24971 2011-03-11  Jason Merrill  <jason@redhat.com>
24972
24973         PR c++/48069
24974         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24975         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24976
24977 2011-03-11  Martin Jambor  <mjambor@suse.cz>
24978
24979         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24980         cgraph_node.
24981
24982 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
24983
24984         PR tree-optimization/48063
24985         * ipa-inline.c (cgraph_decide_inlining): Don't try to
24986         inline functions called once if !tree_can_inline_p (node->callers).
24987
24988 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
24989
24990         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24991         extra_objs.
24992         * config/score/score3.c: Delete.
24993         * config/score/score3.h: Delete.
24994         * config/score/mul-div.S: Delete.
24995         * config/score/sfp-machine.h: Add new file.
24996         * config/score/constraints.md: Add new file.
24997         * config/score/t-score-softfp: Add new file.
24998         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24999         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
25000         (score7_extra_constraint): Delete.
25001         (score7_option_override): Remove unused code.
25002         * config/score/score.c: Remove score3 and score5 define and code.
25003         * config/score/score.h: Remove score3 and score5 define and code.
25004         * config/score/score.md: Remove score3 template and unusual insn.
25005         * config/score/score.opt: Remove score3 and score5 options.
25006
25007 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25008
25009         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
25010         when _HPUX_SOURCE is defined.
25011         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
25012
25013 2011-03-10  Jason Merrill  <jason@redhat.com>
25014
25015         PR c++/48029
25016         * stor-layout.c (layout_type): Don't set structural equality
25017         on arrays of incomplete type.
25018         * tree.c (type_hash_eq): Handle comparing them properly.
25019
25020 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25021
25022         PR debug/48043
25023         * config/s390/s390.c (s390_delegitimize_address): Make sure the
25024         result mode matches original rtl mode.
25025
25026 2011-03-10  Nick Clifton  <nickc@redhat.com>
25027
25028         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
25029         (andsi3, andsi3_flags): Fix timings for three operand alternative.
25030
25031 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
25032
25033         PR rtl-optimization/47866
25034         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
25035         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
25036         if target wasn't scalar.
25037         * function.c (assign_stack_temp_for_type): Assert that neither
25038         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
25039         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
25040         macro.
25041         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
25042
25043 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25044
25045         * config/s390/s390-protos.h (s390_label_align): New prototype.
25046         * config/s390/s390.c (s390_label_align): New function.
25047         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
25048
25049 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
25050
25051         PR target/47755
25052         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
25053         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
25054         (output_vec_const_move): Ditto.
25055
25056 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
25057
25058         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
25059         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
25060         * config/mips/mips.c (mips_preferred_reload_class): Make static.
25061         Change 'rclass' argument and result type to reg_class_t.
25062         (TARGET_PREFERRED_RELOAD_CLASS): Define.
25063
25064 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
25065
25066         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
25067         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
25068         (TARGET_MEMORY_MOVE_COST): Define.
25069         (avr_register_move_cost, avr_memory_move_cost): New Functions.
25070
25071 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
25072
25073         PR debug/47881
25074         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
25075         removed anything.
25076
25077         PR tree-optimization/48022
25078         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
25079         for EQ/NE_EXPR.
25080
25081 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
25082
25083         PR debug/47991
25084         * var-tracking.c (find_use_val): Return NULL for
25085         cui->sets && cui->store_p BLKmode MEMs.
25086
25087 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
25088
25089         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
25090         Remove.
25091         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
25092         xstormy16_print_operand_address): Remove.
25093         * config/stormy16/stormy16.c (xstormy16_print_operand,
25094         xstormy16_print_operand_address): Make static.
25095         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25096
25097 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
25098
25099         PR target/47862
25100         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25101         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
25102         before definition.
25103
25104 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
25105
25106         PR bootstrap/48000
25107         * cfgloopmanip.c (fix_bb_placements): Return immediately
25108         if FROM is BASE_LOOP's header.
25109
25110 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
25111
25112         * gimplify.c (gimplify_function_tree): Fix building calls
25113         to __builtin_return_address.
25114
25115 2011-03-07  Alan Modra  <amodra@gmail.com>
25116
25117         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
25118         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
25119         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
25120         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
25121         return_mode args.
25122         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
25123         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
25124         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
25125         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
25126         * config/rs6000/rs6000.c
25127         (rs6000_elf_end_indicate_exec_stack): Rename to..
25128         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
25129         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
25130         (rs6000_file_start): ..here.
25131         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
25132         file scope variables.
25133         (call_ABI_of_interest): New function.
25134         (init_cumulative_args): Set above vars when function return value
25135         is a float, vector, or small struct.
25136         (rs6000_function_arg_advance_1): Likewise for function args.
25137         (rs6000_va_start): Set rs6000_passes_float if variable arg function
25138         references float args.
25139
25140 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
25141
25142         * doc/cfg.texi: Remove "See" before @ref.
25143         * doc/invoke.texi: Likewise.
25144
25145 2011-03-05  Jason Merrill  <jason@redhat.com>
25146
25147         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
25148
25149 2011-03-05  Anthony Green  <green@moxielogic.com>
25150
25151         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
25152
25153 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
25154
25155         PR rtl-optimization/47899
25156         * cfgloopmanip.c (fix_bb_placements): Fix first argument
25157         to flow_loop_nested_p when moving the loop upward.
25158
25159 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
25160
25161         PR target/47719
25162         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
25163
25164 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
25165
25166         PR tree-optimization/47967
25167         * ipa-cp.c (build_const_val): Return NULL instead of creating
25168         VIEW_CONVERT_EXPR for mismatching sizes.
25169         (ipcp_create_replace_map): Return NULL if build_const_val failed.
25170         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
25171         give up on versioning.
25172
25173 2011-03-05  Alan Modra  <amodra@gmail.com>
25174
25175         PR target/47986
25176         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
25177         full cmodel medium/large lo_sum + high addresses.
25178
25179 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25180
25181         * config/s390/s390.c (s390_decompose_address): Reject non-literal
25182         pool references in UNSPEC_LTREL_OFFSET.
25183
25184 2011-03-04  Jan Hubicka  <jh@suse.cz>
25185
25186         PR lto/47497
25187         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
25188         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
25189         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
25190         Add node pointers.
25191         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
25192         cgraph_add_thunk): Add node pointers.
25193         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
25194         associated to right node.
25195         (input_node): Update use of cgraph_same_body_alias
25196         and cgraph_add_thunk.
25197
25198 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
25199
25200         * config/i386/i386.opt (mprefer-avx128): New flag.
25201         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
25202         modes when the flag -mprefer-avx128 is on.
25203
25204 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
25205
25206         * dwarf2out.c (compare_loc_operands): Fix address handling.
25207
25208 2011-03-04  Alan Modra  <amodra@gmail.com>
25209
25210         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
25211
25212 2011-03-04  Richard Guenther  <rguenther@suse.de>
25213
25214         PR middle-end/47968
25215         * expmed.c (extract_bit_field_1): Prefer vector modes that
25216         vec_extract patterns can handle.
25217
25218 2011-03-04  Richard Guenther  <rguenther@suse.de>
25219
25220         PR middle-end/47975
25221         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
25222
25223 2011-03-04  Richard Henderson  <rth@redhat.com>
25224
25225         * explow.c (emit_stack_save): Remove 'after' parameter.
25226         (emit_stack_restore): Likewise.
25227         * expr.h: Update to match.
25228         * builtins.c, calls.c, stmt.c: Likewise.
25229         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
25230         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
25231         * function.c (expand_function_end): Insert the emit_stack_save
25232         sequence before parm_birth_insn instead of after.
25233
25234 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
25235
25236         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
25237         (ssse3_pmaddubsw128): Ditto.
25238         (ssse3_pmaddubsw): Ditto.
25239
25240 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
25241
25242         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
25243
25244 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
25245
25246         PR c/47963
25247         * gimplify.c (omp_add_variable): Only call omp_notice_variable
25248         on TYPE_SIZE_UNIT if it is a DECL.
25249
25250         PR debug/47283
25251         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
25252         first operand is not is_gimple_mem_ref_addr, try to fold it.
25253         If the operand still isn't is_gimple_mem_ref_addr, clear
25254         MEM_EXPR on op0.
25255
25256 2011-03-03  Richard Guenther  <rguenther@suse.de>
25257
25258         PR middle-end/47283
25259         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
25260         match comment.
25261         (refs_may_alias_p_1): For release branches return true if
25262         we are confused by our input.
25263
25264 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25265
25266         * config/s390/s390.c (s390_function_value): Rename to ...
25267         (s390_function_and_libcall_value): ... this.
25268         (s390_function_value): New function.
25269         (s390_libcall_value): New function.
25270         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
25271         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
25272         target macro definitions.
25273         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
25274
25275 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
25276
25277         * config/i386/freebsd64.h (CC1_SPEC): Define.
25278         * config/i386/linux64.h (CC1_SPEC): Define.
25279         * config/i386/x86-64.h (CC1_SPEC): Don't define.
25280
25281 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
25282
25283         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25284         Remove.
25285         * config/stormy16/stormy16.c: Include reload.h.
25286         (xstormy16_memory_move_cost): New function.
25287         (TARGET_MEMORY_MOVE_COST): Define.
25288
25289 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
25290
25291         PR rtl-optimization/47925
25292         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
25293         with side effects.  Remove the more-specific check for volatile asms.
25294
25295 2011-03-02  Alan Modra  <amodra@gmail.com>
25296
25297         PR target/47935
25298         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
25299         toc relative addresses for valid offsets.
25300
25301 2011-03-01  Richard Guenther  <rguenther@suse.de>
25302
25303         PR tree-optimization/47890
25304         * tree-vect-loop.c (get_initial_def_for_induction): Set
25305         related stmt properly.
25306
25307 2011-03-01  Richard Guenther  <rguenther@suse.de>
25308
25309         PR lto/47924
25310         * lto-streamer.c (lto_record_common_node): Also register
25311         the canonical type.
25312
25313 2011-03-01  Richard Guenther  <rguenther@suse.de>
25314
25315         PR lto/46911
25316         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25317         Do not stream DECL_ABSTRACT_ORIGIN.
25318         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25319         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25320         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25321         Do not stream DECL_ABSTRACT_ORIGIN.
25322         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
25323         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
25324
25325 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
25326
25327         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
25328         FUNCTION_VALUE_REGNO_P): Remove.
25329         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
25330         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
25331         Add 'outgoing' argument.
25332         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
25333         function.
25334         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25335         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25336
25337 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
25338
25339         PR debug/28047
25340         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
25341         (lookup_filename): Likewise.
25342         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
25343
25344 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
25345             Jakub Jelinek  <jakub@redhat.com>
25346
25347         PR middle-end/47893
25348         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
25349         (assign_stack_local_1): Change last argument type to int.
25350         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
25351         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
25352         don't record padding space into frame_space_list nor use those areas.
25353         (assign_stack_local): Adjust caller.
25354         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
25355         of assign_stack_local, pass 0 as last argument.
25356         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
25357         callers.
25358
25359 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
25360
25361         PR debug/47283
25362         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
25363         Use target address_mode and pointer_mode hooks instead of hardcoded
25364         Pmode and ptr_mode.  Handle some simple cases of extending if
25365         POINTERS_EXTEND_UNSIGNED < 0.
25366         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
25367         Call convert_debug_memory_address.
25368         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
25369         convert_debug_memory_address.
25370
25371         PR middle-end/46790
25372         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
25373         * configure: Regenerated.
25374         * config.in: Regenerated.
25375         * varasm.c (default_function_section): Return NULL
25376         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
25377
25378 2011-02-28  Martin Jambor  <mjambor@suse.cz>
25379
25380         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
25381         the description to match the printed values.
25382
25383 2011-02-28  Richard Guenther  <rguenther@suse.de>
25384
25385         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
25386         of the copied scope tree.
25387
25388 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25389
25390         * doc/extend.texi (Function Attributes): Avoid deeply (and
25391         wrongly) nested tables.
25392
25393 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
25394
25395         PR middle-end/47903
25396         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
25397         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
25398         r isn't op0 nor op1.
25399
25400 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25401
25402         * config/avr/avr.md: Remove magic comment for emacs.
25403
25404 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
25405
25406         PR target/45261
25407         * config/avr/avr.c (avr_option_override): Use error on bad options.
25408         (avr_help): New function.
25409         (TARGET_HELP): Define.
25410
25411 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
25412
25413         PR target/42240
25414         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
25415         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
25416
25417 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
25418
25419         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
25420         (ARM Options): Ditto.
25421         (i386 and x86-64 Options): Ditto.
25422         (RX Options): Ditto.
25423         (SPARC Options): Ditto.
25424
25425 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
25426
25427         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
25428         FreeBSD 6 and later.  Generally use cpu generic.
25429
25430 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
25431
25432         * doc/cpp.texi: Update copyright years.
25433
25434 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
25435
25436         PR target/46898
25437         * config/lm32/lm32.md (ashrsi3): Added needed variable.
25438
25439 2011-02-25  Jon Beniston  <jon@beniston.com>
25440
25441         PR target/46898
25442         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
25443         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
25444         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
25445         (lm32_block_move_inline): Add type cast to remove warning.
25446         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
25447         (gen_int_relational): Move declarations to start of function.
25448
25449 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
25450
25451         PR tree-optimization/45470
25452         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25453         can throw internally only.
25454         * tree-vect-stmts.c (vectorizable_call): Likewise.
25455
25456 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
25457
25458         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
25459         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25460         * config/stormy16/stormy16-protos.h
25461         (xstormy16_preferred_reload_class): Remove.
25462         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
25463         static. Change 'rclass' argument and return type to reg_class_t.
25464         (TARGET_PREFERRED_RELOAD_CLASS,
25465         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25466
25467 2011-02-24  Richard Guenther  <rguenther@suse.de>
25468
25469         * lto-streamer-in.c (input_bb): Do not find referenced vars
25470         in debug statements.
25471
25472 2011-02-23  Jason Merrill  <jason@redhat.com>
25473
25474         * common.opt (fabi-version): Document v5 and v6.
25475
25476 2011-02-23  Richard Guenther  <rguenther@suse.de>
25477
25478         PR tree-optimization/47849
25479         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
25480
25481 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25482
25483         * opts-common.c (decode_cmdline_option): Print empty string
25484         argument as "" in decoded->orig_option_with_args_text.
25485         * gcc.c (execute): Print empty string argument as ""
25486         in the verbose output.
25487         (do_spec_1): Keep empty string argument.
25488
25489 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
25490
25491         * config.gcc: Declare score-* and crx-* obsolete.
25492
25493 2011-02-23  Jie Zhang  <jie@codesourcery.com>
25494
25495         PR rtl-optimization/47763
25496         * web.c (web_main): Ignore naked clobber when replacing register.
25497
25498 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
25499
25500         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
25501         Remove.
25502
25503 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
25504
25505         PR doc/47848
25506         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
25507
25508 2011-02-22  Mike Stump  <mikestump@comcast.net>
25509
25510         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
25511         assembler.
25512         * configure: Regenerate.
25513
25514 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
25515
25516         PR rtl-optimization/46002
25517         * ira-color.c (update_copy_costs): Change class intersection
25518         test to reg_class_contents[] test of 'hard_regno'.
25519
25520 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
25521
25522         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
25523         than Driver option.
25524         * config/hpux11.opt (mt): Likewise.
25525         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
25526         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
25527         * config/vax/elf.opt (mno-asm-pic): Likewise.
25528         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
25529
25530 2011-02-21  Mike Stump  <mikestump@comcast.net>
25531
25532         PR target/47822
25533         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
25534         tree so we can get save the type.
25535         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
25536         for CFString instead of trying to use past the end of the builtins.
25537         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
25538         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
25539         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
25540         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
25541         Rename to darwin_builtin_cfstring.
25542         (darwin_init_cfstring_builtins): Return the built type.
25543
25544 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
25545
25546         PR target/47840
25547         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
25548         (_mm256_insert_epi64): Use _mm_insert_epi64.
25549
25550 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
25551
25552         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25553         * config/stormy16/stormy16-protos.h
25554         (xstormy16_mode_dependent_address_p): Remove.
25555         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
25556         Make static. Change return type to bool. Change argument type to
25557         const_rtx. Remove dead code.
25558         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25559
25560 2011-02-21  Richard Guenther  <rguenther@suse.de>
25561
25562         PR lto/47820
25563         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
25564         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25565         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
25566         TUs context.
25567         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25568         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
25569
25570 2011-02-20  Richard Guenther  <rguenther@suse.de>
25571
25572         PR lto/47822
25573         * tree.c (free_lang_data_in_decl): Clean builtins from
25574         the TU decl BLOCK_VARS.
25575
25576 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
25577
25578         PR debug/47620
25579         PR debug/47630
25580         * haifa-sched.c (fix_tick_ready): Skip tick computation
25581         for debug insns.
25582
25583 2011-02-19  Richard Guenther  <rguenther@suse.de>
25584
25585         PR lto/47647
25586         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
25587         Remove lazy BLOCK_VARS streaming.
25588         (lto_input_ts_block_tree_pointers): Likewise.
25589         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
25590
25591 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25592
25593         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
25594
25595 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
25596
25597         * config/i386/biarch32.h, config/i386/mach.h,
25598         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
25599
25600 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
25601
25602         PR target/47800
25603         * config/i386/i386.md (peephole2 for shift and plus): Use
25604         operands[1] original mode in the first insn.
25605
25606 2011-02-18  Mike Stump  <mikestump@comcast.net>
25607
25608         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
25609
25610 2011-02-18  Jan Hubicka  <jh@suse.cz>
25611
25612         PR middle-end/47788
25613         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
25614         to zero when the function is not inlinable at all.
25615
25616 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25617
25618         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
25619         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25620         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
25621         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
25622         * config/pa/t-pa64: Likewise.
25623         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
25624
25625 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25626
25627         PR driver/47787
25628         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
25629
25630 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25631
25632         PR target/47792
25633         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
25634
25635 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
25636
25637         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
25638         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
25639         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
25640         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
25641         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
25642         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
25643         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
25644         m32r_load_postinc_p, m32r_store_preinc_predec_p,
25645         m32r_legitimate_address_p): New functions.
25646         * config/m32r/constraints.md (constraint "S"): Don't use
25647         STORE_PREINC_PREDEC_P.
25648         (constraint "U"): Don't use LOAD_POSTINC_P.
25649
25650 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
25651
25652         PR rtl-optimization/46178
25653         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
25654         compute ira_hard_regno_cover_class[].
25655
25656 2011-02-18  Richard Guenther  <rguenther@suse.de>
25657
25658         PR lto/47798
25659         * lto-streamer.h (lto_global_var_decls): Declare.
25660         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
25661         statics for global var processing.
25662
25663 2011-02-18  Richard Guenther  <rguenther@suse.de>
25664
25665         PR tree-optimization/47737
25666         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
25667         edge dominance check.
25668
25669 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
25670
25671         PR debug/47780
25672         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
25673         avoid invalid rtx sharing.
25674
25675 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
25676
25677         * doc/cpp.texi (Obsolete Features): Add background on the
25678         origin of assertions.
25679
25680 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
25681
25682         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
25683         objc_abi == 2.
25684         * config/darwin.c (output_objc_section_asm_op): Added support for
25685         ABI v1 and v2.
25686         (is_objc_metadata): New.
25687         (darwin_objc2_section): New.
25688         (darwin_objc1_section): New.
25689         (machopic_select_section): Added support for ABI v1 and v2.
25690         (darwin_emit_objc_zeroed): New.
25691         (darwin_output_aligned_bss): Detect objc metadata and treat it
25692         appropriately.
25693         (darwin_asm_output_aligned_decl_common): Same.
25694         (darwin_asm_output_aligned_decl_local): Same.
25695         * config/darwin-sections.def: Updated for ABI v1 and v2.
25696         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
25697         compiling Objective-C code for the NeXT runtime, default to using
25698         ABI version 0 for 32-bit, and version 2 for 64-bit.
25699
25700 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25701
25702         * common.opt (optimize_fast): New Variable.
25703         * opts.c (default_options_optimization): Use opts->x_optimize_fast
25704         instead of local variable ofast.
25705
25706 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
25707
25708         * doc/invoke.texi (fobjc-abi-version): Documented.
25709         (fobjc-nilcheck): Documented.
25710         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
25711         version.
25712
25713 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25714
25715         PR driver/47390
25716         * common.opt (export-dynamic): New Driver option.
25717         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
25718
25719 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25720
25721         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
25722
25723 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
25724             Jan Hubicka  <jh@suse.cz>
25725
25726         PR debug/47106
25727         PR debug/47402
25728         * cfgexpand.c (account_used_vars_for_block): Remove.
25729         (estimated_stack_frame_size): Use referenced vars.
25730         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
25731         that were referenced in the original function.  Test src_fn
25732         rather than cfun.  Drop redundant get_var_ann.
25733         (setup_one_parameter): Drop redundant get_var_ann.
25734         (declare_return_variable): Likewise.
25735         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
25736         (copy_arguments_for_versioning): Drop redundant get_var_ann.
25737         * ipa-inline.c (compute_inline_parameters): Do not compute
25738         disregard_inline_limits here.
25739         (compute_inlinable_for_current, pass_inlinable): New.
25740         (pass_inline_parameters): Require PROP_referenced_vars.
25741         * cgraphunit.c (cgraph_process_new_functions): Don't run
25742         compute_inline_parameters explicitly unless function is in SSA form.
25743         (cgraph_analyze_function): Set .disregard_inline_limits.
25744         * tree-sra.c (convert_callers): Compute inliner parameters
25745         only for functions already in SSA form.
25746
25747 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25748
25749         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
25750         -mlittle-endian-data.
25751
25752 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
25753
25754         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
25755         -mno-fpu, not -fpu and -no-fpu.
25756         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
25757         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
25758
25759 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
25760
25761         PR target/43653
25762         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
25763         input reload with PLUS RTX.
25764
25765 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25766
25767         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
25768         of InverseVar(MDMX).
25769
25770 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25771
25772         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
25773         --m4-340.
25774
25775 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25776
25777         * config/mn10300/mn10300.opt (mno-crt0): New.
25778
25779 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25780
25781         * config/m68k/uclinux.opt (static-libc): New Driver option.
25782
25783 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25784
25785         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
25786
25787 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
25788
25789         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
25790         %{muser-extend-enabled}.
25791
25792 2011-02-16  Richard Guenther  <rguenther@suse.de>
25793
25794         PR tree-optimization/47738
25795         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
25796         the TODO from tree_predictive_commoning.
25797
25798 2011-02-15  Jeff Law  <law@redhat.com>
25799
25800         Revert
25801         2011-01-25  Jeff Law  <law@redhat.com>
25802
25803         PR rtl-optimization/37273
25804         * ira-costs.c (scan_one_insn): Detect constants living in memory and
25805         handle them like argument loads from stack slots.  Do not double
25806         count memory for memory constants and argument loads from stack slots.
25807
25808 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
25809
25810         PR target/47755
25811         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
25812         mode for vector constants.  Remove code that checks for TImode.
25813
25814 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25815
25816         PR debug/47106
25817         PR debug/47402
25818         * cgraph.h (compute_inline_parameters): Return void.
25819         * ipa-inline.c (compute_inline_parameters): Adjust.
25820
25821 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25822
25823         PR debug/47106
25824         PR debug/47402
25825         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
25826         rather than decl.
25827         * cfgexpand.c (estimated_stack_frame_size): Likewise.
25828         * ipa-inline.c (compute_inline_parameters): Adjust.
25829
25830 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25831
25832         PR debug/47106
25833         PR debug/47402
25834         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
25835         Adjust all users.  Pass FN to...
25836         * tree-flow-inline.h (first_referenced_var): ... this.  Add
25837         fn argument.
25838         * ipa-struct-reorg.c: Adjust.
25839         * tree-dfa.c: Adjust.
25840         * tree-into-ssa.c: Adjust.
25841         * tree-sra.c: Adjust.
25842         * tree-ssa-alias.c: Adjust.
25843         * tree-ssa-live.c: Adjust.
25844         * tree-ssa.c: Adjust.
25845         * tree-ssanames.c: Adjust.
25846         * tree-tailcall.c: Adjust.
25847
25848 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
25849
25850         PR debug/47106
25851         PR debug/47402
25852         * tree-flow.h (referenced_var_lookup): Add fn parameter.
25853         Adjust all callers.
25854         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
25855         * tree-flow-inline.h: Adjust.
25856         * gimple-pretty-print.c: Adjust.
25857         * tree-into-ssa.c: Adjust.
25858         * tree-ssa.c: Adjust.
25859         * cfgexpand.c: Adjust.
25860
25861 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25862
25863         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
25864         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25865         (EXTRA_CONSTRAINT): Delete.
25866         * config/iq2000/constraints.md: New file.
25867         * config/iq2000/iq2000.md: Include it.
25868         (define_insn ""): Delete.
25869         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
25870         unsupported constraint letters from patterns.
25871         (call_value, call_value_internal1): Likewise.
25872         (call_value_multiple_internal1): Likewise.
25873
25874 2011-02-15  Nick Clifton  <nickc@redhat.com>
25875
25876         * config/mn10300/mn10300.c: Include tm-constrs.h.
25877         (struct liw_data): New data structure describing an LIW candidate
25878         instruction.
25879         (extract_bundle): Use struct liw_data.  Allow small integer
25880         operands for some instructions.
25881         (check_liw_constraints): Use struct liw_data.  Remove swapped
25882         parameter.  Add comments describing the checks.  Fix bug when
25883         assigning the source of liw1 to the source of liw2.
25884         (liw_candidate): Delete.  Code moved into extract_bundle.
25885         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
25886         before swapping.
25887         * config/mn10300/predicates.md (liw_operand): New predicate.
25888         Allows registers and small integer constants.
25889         * config/mn10300/constraints.md (O): New constraint.  Accetps
25890         integers in the range -8 to +7 inclusive.
25891         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
25892         for moving a small integer into a register.  Give this alternative
25893         LIW attributes.
25894         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
25895         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
25896         using the J,K,L and M constraints,
25897         (liw): Remove SI mode on second operands to allow for HI and QI
25898         mode values.
25899         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
25900         instruction.
25901
25902 2011-02-15  Richard Guenther  <rguenther@suse.de>
25903
25904         PR tree-optimization/47743
25905         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25906         for a non-type-compatible VN lookup bail out.
25907
25908 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25909
25910         * config/fr30/constraints.md: New file.
25911         * config/fr30/fr30.md: Include it.
25912         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25913         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25914         (EXTRA_CONSTRAINT): Delete.
25915
25916 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
25917
25918         * config/frv/constraints.md: New file.
25919         * config/frv/predicates.md: Include it.
25920         * config/frv/frv.c (reg_class_from_letter): Delete.
25921         (frv_option_override): Don't initialize it.
25922         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25923         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25924         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25925         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25926         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25927         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25928         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25929         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25930         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25931         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25932         (REG_CLASS_FROM_CONSTRAINT): Delete.
25933
25934 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
25935
25936         PR middle-end/47581
25937         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25938         if frame size is 0 in a leaf function.
25939
25940 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25941
25942         PR pch/14940
25943         * config/alpha/host-osf.c: New file.
25944         * config/alpha/x-osf: New file.
25945         * config.host (alpha*-dec-osf*): Use it.
25946
25947 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
25948
25949         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25950         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25951         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25952         (rx_mode_dependent_address_p): ...this. Make static. Change argument
25953         type to const_rtx.
25954         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25955
25956 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
25957
25958         * config/stormy16/constraints.md: New file.
25959         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25960         Use satisfies_constraint_Q and satisfies_constraint_R.
25961         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25962         Delete.
25963         (xstormy16_legitiamte_address_p): Declare.
25964         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25965         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25966         (EXTRA_CONSTRAINT): Delete.
25967         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25968         Un-staticize.
25969         (xstormy16_extra_constraint_p): Delete.
25970
25971 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
25972
25973         PR tree-optimization/46494
25974         * loop-unroll.c (split_edge_and_insert): Adjust comment.
25975         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25976         (pass_rtl_loop_done): Add TODO_verify_flow.
25977         * fwprop.c (pass_rtl_fwprop): Likewise.
25978         * modulo-sched.c (pass_sms): Likewise.
25979         * tree-ssa-dom.c (pass_dominator): Likewise.
25980         * tree-ssa-loop-ch.c (pass_ch): Likewise.
25981         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25982         (pass_tree_loop_done): Likewise.
25983         * tree-ssa-pre.c (execute_pre): Likewise.
25984         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25985         * tree-ssa-sink.c (pass_sink_code): Likewise.
25986         * tree-vrp.c (pass_vrp): Likewise.
25987
25988 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
25989
25990         * config/v850/constraints.md: New file.
25991         * config/v850/v850.md: Include it.
25992         * config/v850/predicates.md (reg_or_0_operand): Use
25993         satisfies_constraint_G.
25994         (special_symbolref_operand): Use satisfies_constraint_K.
25995         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25996         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25997         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25998         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25999         (EXTRA_CONSTRAINT): Delete.
26000         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
26001         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
26002         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
26003
26004 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
26005
26006         PR target/47696
26007         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
26008         description.
26009
26010 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
26011
26012         * config/mcore/constraints.md: New file.
26013         * config/mcore/mcore.md: Include it.
26014         * config/mcore/mcore.c (reg_class_from_letter): Delete.
26015         * config/mcore/mcore.h (reg_class_from_letter): Delete.
26016         (REG_CLASS_FROM_LETTER): Delete.
26017         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
26018         insn_const_int_ok_for_constraint.
26019         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
26020         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
26021         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
26022         (EXTRA_CONSTRAINT): Delete.
26023
26024 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26025
26026         PR ada/41929
26027         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
26028         (IS_SIGHANDLER): Define.
26029         (sparc64_is_sighandler): New function, split off from
26030         sparc64_fallback_frame_state.
26031         (sparc_is_sighandler): New function, split off from
26032         sparc_fallback_frame_state.
26033         (sparc64_fallback_frame_state): Merge with ...
26034         (sparc_fallback_frame_state): ... this into ...
26035         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
26036         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
26037         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
26038         stack instead of hardcoded offsets.
26039
26040 2011-02-14  Andriy Gapon  <avg@freebsd.org>
26041
26042         PR target/45808
26043         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
26044
26045 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26046
26047         * configure: Regenerate.
26048
26049 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
26050
26051         PR driver/45731
26052         * gcc.c (asm_options): Correct spec matching --target-help.
26053
26054 2011-02-12  Martin Jambor  <mjambor@suse.cz>
26055
26056         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
26057         to gimple call error.
26058
26059 2011-02-12  Mike Stump  <mikestump@comcast.net>
26060
26061         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
26062         comments in backslash regions.
26063
26064 2011-02-12  Mike Stump  <mikestump@comcast.net>
26065             Jakub Jelinek  <jakub@redhat.com>
26066             Iain Sandoe  <iains@gcc.gnu.org>
26067
26068         PR target/47324
26069         * dwarf2out.c (output_cfa_loc): When required, apply the
26070         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
26071         (output_loc_sequence): Likewise.
26072         (output_loc_operands_raw): Likewise.
26073         (output_loc_sequence_raw): Likewise.
26074         (output_cfa_loc): Likewise.
26075         (output_loc_list): Suppress register number adjustment when
26076         calling output_loc_sequence()
26077         (output_die): Likewise.
26078
26079 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
26080
26081         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
26082         Remove macros.
26083         * config/xtensa/xtensa.c (xtensa_register_move_cost,
26084         xtensa_memory_move_cost): New functions.
26085         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
26086
26087 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
26088
26089         PR lto/47225
26090         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
26091         in the current directory.
26092         * configure: Rebuilt.
26093
26094 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26095
26096         * config/darwin.c (darwin_override_options): Add a hunk missed
26097         from the commit of r168571.  Trim comment line lengths and
26098         correct indents of the preceding block.
26099
26100 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
26101
26102         * gcc.c (driver_handle_option): Concatenate the argument to -F with
26103         the switch.
26104
26105 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26106
26107         * common.opt (nostartfiles): New Driver option.
26108
26109 2011-02-11  Xinliang David Li  <davidxl@google.com>
26110
26111         PR tree-optimization/47707
26112         * tree-chrec.c (convert_affine_scev): Keep type precision.
26113
26114 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
26115
26116         PR tree-optimization/47420
26117         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
26118
26119 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
26120
26121         PR rtl-optimization/47614
26122         * rtl.h (check_for_inc_dec): Declare.
26123         * dse.c (check_for_inc_dec): Externalize...
26124         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
26125         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
26126
26127 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
26128
26129         PR driver/47678
26130         * gcc.c (main): Do not compile inputs if there were errors in
26131         option handling.
26132         * opts-common.c (read_cmdline_option): Check for wrong language
26133         after other error checks.
26134
26135 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
26136
26137         * cgraph.c: Fix comment typos.
26138         * cgraph.h: Likewise.
26139         * cgraphunit.c: Likewise.
26140         * ipa-cp.c: Likewise.
26141         * ipa-inline.c: Likewise.
26142         * ipa-prop.c: Likewise.
26143         * ipa-pure-const.c: Likewise.
26144         * ipa-ref.c: Likewise.
26145         * ipa-reference.c: Likewise.
26146
26147 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
26148
26149         PR debug/47684
26150         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
26151
26152 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26153
26154         PR testsuite/47400
26155         * doc/sourcebuild.texi (Require Support): Document
26156         dg-require-ascii-locale.
26157
26158 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
26159
26160         * doc/lto.texi (Write summary): Fix missing parentheses.
26161
26162 2011-02-10  DJ Delorie  <dj@redhat.com>
26163
26164         * config/m32c/m32c.c (m32c_option_override): Disable
26165         -fcombine-stack-adjustments until flag value tracking and compare
26166         optimization can be rewritten.
26167
26168 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
26169
26170         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
26171         PROCESSOR_POWER7.
26172         (PROCESSOR_DEFAULT64): Likewise.
26173
26174 2011-02-10  Richard Henderson  <rth@redhat.com>
26175
26176         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
26177         change from 2011-02-03.
26178         * config/rx/rx.c (flags_from_code): Likewise.
26179         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
26180         is valid, n/pz otherwise.
26181         (rx_select_cc_mode): Return CCmode if Y is not zero.
26182
26183 2011-02-10  Richard Guenther  <rguenther@suse.de>
26184
26185         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
26186
26187 2011-02-10  Richard Guenther  <rguenther@suse.de>
26188
26189         PR tree-optimization/47677
26190         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
26191
26192 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
26193
26194         PR target/47665
26195         * combine.c (make_compound_operation): Only change shifts into
26196         multiplication for SCALAR_INT_MODE_P.
26197
26198 2011-02-10  Jie Zhang  <jie@codesourcery.com>
26199
26200         PR testsuite/47622
26201         Revert
26202         2011-02-05  Jie Zhang  <jie@codesourcery.com>
26203         PR debug/42631
26204         * web.c (entry_register): Don't clobber the number of the
26205         first uninitialized reference in used[].
26206
26207 2011-02-09  Richard Guenther  <rguenther@suse.de>
26208
26209         PR tree-optimization/47664
26210         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
26211         all edges again.
26212
26213 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
26214
26215         PR target/46481
26216         PR target/47032
26217         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
26218         PROCESSOR_POWER7.
26219         (PROCESSOR_DEFAULT64): Same.
26220         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
26221
26222 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26223
26224         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
26225
26226 2011-02-09  Martin Jambor  <mjambor@suse.cz>
26227
26228         PR middle-end/45505
26229         * tree-sra.c (struct access): New flags grp_scalar_read and
26230         grp_scalar_write.  Changed description of assignment read and write
26231         flags.
26232         (dump_access): Dump new flags, reorder all of them.
26233         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
26234         to detect multiple scalar reads.
26235         (analyze_access_subtree): Use the new scalar read write flags instead
26236         of the old flags.  Adjusted comments.
26237
26238 2011-02-08  DJ Delorie  <dj@redhat.com>
26239
26240         PR target/47548
26241         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
26242         patterns.
26243
26244 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26245
26246         * config/m68k/uclinux.opt: New.
26247         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
26248
26249 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26250
26251         * config/cris/elf.opt (sim): New Driver option.
26252
26253 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26254
26255         * config/xtensa/elf.opt: New.
26256         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
26257
26258 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26259
26260         * config/vax/elf.opt: New.
26261         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
26262
26263 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26264
26265         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
26266
26267 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26268
26269         * config/gnu-user.opt: New.
26270         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
26271         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
26272         *-*-uclinux*): Use gnu-user.opt.
26273
26274 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
26275
26276         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
26277         * config/i386/gnu.h (CPP_SPEC): Likewise.
26278
26279 2011-02-08  Ian Lance Taylor  <iant@google.com>
26280
26281         * common.opt (fcx-limited-range): Add SetByCombined flag.
26282         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
26283         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
26284         (fassociative-math, freciprocal-math): Likewise.
26285         (funsafe-math-optimizations): Likewise.
26286         * opth-gen.awk: Handle SetByCombined.
26287         * optc-gen.awk: Likewise.
26288         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
26289         (set_unsafe_math_optimizations_flags): Likewise.
26290         * doc/options.texi (Option properties): Document SetByCombined.
26291
26292 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
26293
26294         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
26295         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
26296         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
26297         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
26298         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
26299
26300 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
26301
26302         PR tree-optimization/46834
26303         PR tree-optimization/46994
26304         PR tree-optimization/46995
26305         * graphite-sese-to-poly.c (used_outside_reduction): New.
26306         (detect_commutative_reduction): Call used_outside_reduction.
26307         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
26308         translate_scalar_reduction_to_array only when at least one
26309         loop-phi/close-phi tuple has been detected.
26310
26311 2011-02-08  Richard Guenther  <rguenther@suse.de>
26312
26313         PR middle-end/47639
26314         * tree-vect-generic.c (expand_vector_operations_1): Update
26315         stmts here ...
26316         (expand_vector_operations): ... not here.  Cleanup EH info
26317         and the CFG if required.
26318
26319 2011-02-08  Richard Guenther  <rguenther@suse.de>
26320
26321         PR tree-optimization/47641
26322         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
26323         require type compatibility.
26324
26325 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26326
26327         * gimple-low.c (lower_function_body): Don't remove the location of
26328         the return statement here.
26329         (lower_gimple_return): Do it here instead but only if the return
26330         statement is actually used twice.
26331
26332 2011-02-08  Richard Guenther  <rguenther@suse.de>
26333
26334         PR tree-optimization/47632
26335         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
26336         unused up_to_stmt parameter, return whether cfg-cleanup is
26337         necessary, remove EH info properly.
26338         (forward_propagate_into_gimple_cond): Adjust caller.
26339         (forward_propagate_into_cond): Likewise.
26340         (forward_propagate_comparison): Likewise.
26341         (tree_ssa_forward_propagate_single_use_vars): Make
26342         forward_propagate_comparison case similar to the two others.
26343
26344 2011-02-08  Nick Clifton  <nickc@redhat.com>
26345
26346         * config/mn10300/mn10300.opt (mliw): New command line option.
26347         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
26348         (liw_bundling): New automaton.
26349         (liw): New attribute.
26350         (liw_op): New attribute.
26351         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
26352         (movsi_internal): Add LIW attributes.
26353         (andsi3): Likewise.
26354         (iorsi3): Likewise.
26355         (xorsi3): Likewise.
26356         (addsi3): Separate register and immediate alternatives.
26357         Add LIW attributes.
26358         (subsi3): Likewise.
26359         (cmpsi): Likewise.
26360         (aslsi3): Likewise.
26361         (lshrsi3): Likewise.
26362         (ashrsi3): Likewise.
26363         (liw): New pattern.
26364         * config/mn10300/mn10300.c (liw_op_names): New
26365         (mn10300_print_operand): Handle 'W' operand descriptor.
26366         (extract_bundle): New function.
26367         (check_liw_constraints): New function.
26368         (liw_candidate): New function.
26369         (mn10300_bundle_liw): New function.
26370         (mn10300_reorg): New function.
26371         (TARGET_MACHINE_DEPENDENT_REORG): Define.
26372         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
26373         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
26374         __LIW__ or __NO_LIW__.
26375         * doc/invoke.texi: Describe the -mliw command line option.
26376
26377 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26378
26379         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
26380         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
26381         pthread_mutex_unlock): Remove.
26382         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
26383         * config/pa/t-pa64: Likewise.
26384         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
26385         shared libc if not linking against libpthread.
26386         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26387
26388 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
26389
26390         PR target/47558
26391         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
26392         on 10.6 and later to ensure that we always use the unwinder from
26393         the system.  Only add -no_compact_unwind when tarteting darwin
26394         10.6 or later.
26395
26396 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
26397
26398         PR target/46997
26399         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
26400         (vec_interleave_lowv2sf): Ditto.
26401         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
26402         (vec_extract_oddv2sf): Ditto.
26403
26404 2011-02-07  Mike Stump  <mikestump@comcast.net>
26405
26406         PR target/42333
26407         Add __ieee_divdc3 entry point.
26408         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
26409         entry point.
26410         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
26411         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
26412         * config/darwin.c (darwin_rename_builtins): Add.
26413         * config/darwin-protos.h (darwin_rename_builtins): Add.
26414
26415 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
26416
26417         PR target/47636
26418         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
26419         for the condition.
26420
26421 2011-02-07  Mike Stump  <mikestump@comcast.net>
26422
26423         * config/darwin.opt (mmacosx-version-min): Update default OS version.
26424
26425 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
26426
26427         PR target/47534
26428         * config/avr/libgcc.S (exit): Move .endfunc
26429
26430 2011-02-07  Richard Guenther  <rguenther@suse.de>
26431
26432         PR tree-optimization/47615
26433         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
26434         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
26435         (run_scc_vn): Initialize it.
26436         (visit_reference_op_load): Use it.
26437         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
26438
26439 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26440
26441         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
26442         DImode trapping arithmetic libfuncs.
26443
26444 2011-02-07  Richard Guenther  <rguenther@suse.de>
26445
26446         PR tree-optimization/47621
26447         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
26448         two duplicates ...
26449         (execute_update_addresses_taken): ... here.  Make it more
26450         conservative in what we accept.
26451
26452 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26453
26454         * config/sparc/freebsd.h (ASM_SPEC): Define.
26455         * config/sparc/vxworks.h (ASM_SPEC): Define.
26456
26457 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
26458
26459         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
26460
26461 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
26462
26463         * doc/invoke.texi: Remove reference to compiler internals from
26464         user documentation.
26465
26466         * reg-notes.def: Remove REG_VALUE_PROFILE.
26467         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
26468
26469 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
26470
26471         PR middle-end/47610
26472         * varasm.c (default_section_type_flags): If decl is NULL,
26473         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
26474
26475 2011-02-05  Jie Zhang  <jie@codesourcery.com>
26476
26477         PR debug/42631
26478         * web.c (entry_register): Don't clobber the number of the
26479         first uninitialized reference in used[].
26480
26481 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
26482
26483         PR tree-optimization/46194
26484         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
26485         (build_classic_dist_vector_1): Do not represent classic distance
26486         vectors when the access functions are variating in different loops.
26487
26488 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26489
26490         * config/mips/iris6.opt: New.
26491         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
26492
26493 2011-02-04  Richard Henderson  <rth@redhat.com>
26494             Steve Ellcey  <sje@cup.hp.com>
26495
26496         PR target/46997
26497         * config/ia64/predicates.md (mux1_brcst_element): New.
26498         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
26499         * config/ia64/ia64.c (ia64_unpack_assemble): New.
26500         (ia64_unpack_sign): New.
26501         (ia64_expand_unpack): Rewrite using new routines.
26502         (ia64_expand_widen_sum): Ditto.
26503         (ia64_expand_dot_prod_v8qi): Ditto.
26504         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
26505         routines, add endian check.
26506         (pmpy2_even): Rename from pmpy2_r, add endian check.
26507         (pmpy2_odd): Rename from pmpy2_l, add endian check.
26508         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
26509         (vec_widen_smult_hi_v4hi): Ditto.
26510         (vec_widen_umult_lo_v4hi): Ditto.
26511         (vec_widen_umult_hi_v4hi): Ditto.
26512         (mulv2si3): Change endian checks.
26513         (sdot_prodv4hi): Rewrite with new calls.
26514         (udot_prodv4hi): New.
26515         (vec_pack_ssat_v4hi): Add endian check.
26516         (vec_pack_usat_v4hi): Ditto.
26517         (vec_pack_ssat_v2si): Ditto.
26518         (max1_even): Rename from max1_r, add endian check.
26519         (max1_odd): Rename from max1_l, add endian check.
26520         (*mux1_rev): Format change.
26521         (*mux1_mix): Ditto.
26522         (*mux1_shuf): Ditto.
26523         (*mux1_alt): Ditto.
26524         (*mux1_brcst_v8qi): Use new predicate.
26525         (vec_extract_evenv8qi): Remove endian check.
26526         (vec_extract_oddv8qi): Ditto.
26527         (vec_interleave_lowv4hi): Format change.
26528         (vec_interleave_highv4hi): Ditto.
26529         (mix2_even): Rename from mix2_r, add endian check.
26530         (mix2_odd): Rename from mux2_l, add endian check.
26531         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
26532         (vec_extract_evenodd_helper): Format change.
26533         (vec_extract_evenv4hi): Remove endian check.
26534         (vec_extract_oddv4hi): Remove endian check.
26535         (vec_interleave_lowv2si): Format change.
26536         (vec_interleave_highv2si): Format change.
26537         (vec_initv2si): Remove endian check.
26538         (vecinit_v2si): Add endian check.
26539         (reduc_splus_v2sf): Add endian check.
26540         (reduc_smax_v2sf): Ditto.
26541         (reduc_smin_v2sf): Ditto.
26542         (vec_initv2sf): Remove endian check.
26543         (fpack): Add endian check.
26544         (fswap): Add endian check.
26545         (vec_interleave_highv2sf): Add endian check.
26546         (vec_interleave_lowv2sf): Add endian check.
26547         (fmix_lr): Add endian check.
26548         (vec_setv2sf): Format change.
26549         (*vec_extractv2sf_0_be): Use shift to extract operand.
26550         (*vec_extractv2sf_1_be): New.
26551         (vec_pack_trunc_v4hi): Add endian check.
26552         (vec_pack_trunc_v2si): Format change.
26553
26554 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
26555
26556         PR inline-asm/23200
26557         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
26558         do bb, locus and block comparison and disallow loads if it is not set.
26559         (stmt_is_replaceable_p): New function.
26560         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
26561         callers.
26562         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
26563         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
26564         SSA_NAME_DEF_STMT.
26565         * tree-flow.h (stmt_is_replaceable_p): New prototype.
26566
26567 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26568
26569         * config/rs6000/xilinx.opt: New.
26570         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
26571
26572 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
26573
26574         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
26575
26576 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
26577
26578         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
26579         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
26580         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
26581         secondary_reload_info, xtensa_secondary_reload): Remove.
26582         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
26583         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
26584         (xtensa_preferred_reload_class): Make static. Change return and
26585         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
26586         Use CONST_DOUBLE_P predicate.
26587         (xtensa_preferred_output_reload_class): New function.
26588         (xtensa_secondary_reload): Make static.
26589
26590 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
26591
26592         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
26593         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
26594         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
26595
26596 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26597
26598         PR middle-end/31490
26599         * output.h (SECTION_RELRO): Define.
26600         (SECTION_MACH_DEP): Adjust.
26601         (get_variable_section): New prototype.
26602         * varpool.c (varpool_finalize_named_section_flags): New function.
26603         (varpool_assemble_pending_decls): Call it.
26604         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
26605         * cgraphunit.c (cgraph_output_in_order): Call
26606         varpool_finalize_named_section_flags.
26607         * varasm.c (get_section): Allow section flags conflicts between
26608         relro and read-only sections if the section hasn't been declared yet.
26609         Set SECTION_OVERRIDE after diagnosing section type conflict.
26610         (get_variable_section): No longer static.
26611         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
26612         readonly sections that need relocations.
26613         (decl_readonly_section_1): New function.
26614         (decl_readonly_section): Use it.
26615
26616         Revert:
26617         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
26618                     Steve Ellcey  <sje@cup.hp.com>
26619
26620         PR middle-end/31490
26621         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
26622         if section attribute used.
26623
26624 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26625
26626         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
26627         * config/darwin.c (SECTION_NO_ANCHOR): Define.
26628         (darwin_init_sections): Remove assertion.
26629
26630 2011-02-03  Nick Clifton  <nickc@redhat.com>
26631
26632         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
26633         lt and ge.
26634         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
26635         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
26636         instead of "n" and "pz".
26637         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
26638         CC_FLAG_S.
26639
26640 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
26641
26642         PR target/47312
26643         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
26644         fma, expand FMA_EXPR as fma{,f,l} call.
26645
26646         PR lto/47274
26647         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
26648         copy them into a unsigned char variable and pass address of it to
26649         lto_output_data_stream.
26650
26651         PR target/47564
26652         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
26653         around backend_init_target and lang_dependent_init_target calls.
26654         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
26655         (verify_cgraph_node): Don't call set_cfun here.  Use
26656         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
26657         Set error_found for incorrectly represented calls to thunks.
26658
26659 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26660
26661         PR debug/43092
26662         PR rtl-optimization/43494
26663         * rtl.h (for_each_inc_dec_fn): New type.
26664         (for_each_inc_dec): Declare.
26665         * rtlanal.c (struct for_each_inc_dec_ops): New type.
26666         (for_each_inc_dec_find_inc_dec): New fn.
26667         (for_each_inc_dec_find_mem): New fn.
26668         (for_each_inc_dec): New fn.
26669         * dse.c (struct insn_size): Remove.
26670         (replace_inc_dec, replace_inc_dec_mem): Remove.
26671         (emit_inc_dec_insn_before): New fn.
26672         (check_for_inc_dec): Use it, along with for_each_inc_dec.
26673         (canon_address): Pass mem modes to cselib_lookup.
26674         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
26675         (cselib_lookup_from_insn): Likewise.
26676         (cselib_subst_to_values): Likewise.
26677         * cselib.c (find_slot_memmode): New var.
26678         (cselib_find_slot): New fn.  Use it instead of
26679         htab_find_slot_with_hash everywhere.
26680         (entry_and_rtx_equal_p): Use find_slot_memmode.
26681         (autoinc_split): New fn.
26682         (rtx_equal_for_cselib_p): Rename and implement in terms of...
26683         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
26684         Deal with autoinc.  Special-case recursion into MEMs.
26685         (cselib_hash_rtx): Likewise.
26686         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
26687         address and MEM modes.
26688         (cselib_subst_to_values): Add memmode, pass it on.
26689         Deal with autoinc.
26690         (cselib_lookup): Add memmode argument, pass it on.
26691         (cselib_lookup_from_insn): Add memmode.
26692         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
26693         (struct cselib_record_autoinc_data): New.
26694         (cselib_record_autoinc_cb): New fn.
26695         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
26696         mode to cselib_lookup.  Reset autoinced REGs here instead of...
26697         (cselib_process_insn): ... here.
26698         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
26699         to cselib_lookup.
26700         (add_uses): Likewise, also to cselib_subst_to_values.
26701         (add_stores): Likewise.
26702         * sched-deps.c (add_insn_mem_dependence): Pass mode to
26703         cselib_subst_to_values.
26704         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
26705         * gcse.c (do_local_cprop): Adjusted.
26706         * postreload.c (reload_cse_simplify_set): Adjusted.
26707         (reload_cse_simplify_operands): Adjusted.
26708         * sel-sched-dump (debug_mem_addr_value): Pass mode.
26709
26710 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
26711
26712         PR tree-optimization/45122
26713         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
26714         unsafe assumptions when there's more than one loop exit.
26715
26716 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26717
26718         PR target/47272
26719         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26720         Document using vector double with the load/store builtins, and
26721         that the load/store builtins always use Altivec instructions.
26722
26723         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
26724         to use altivec memory instructions, even on VSX.
26725         (vector_altivec_store_<mode>): Ditto.
26726
26727         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
26728         function.
26729
26730         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26731         V2DF, V2DI support to load/store overloaded builtins.
26732
26733         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
26734         altivec load/store builtins for V2DF/V2DI types.
26735
26736         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
26737         set avoid indexed addresses on power6 if -maltivec.
26738         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
26739         vector_altivec_load/vector_altivec_store builtins.
26740         (altivec_expand_st_builtin): Ditto.
26741         (altivec_expand_builtin): Add VSX memory builtins.
26742         (rs6000_init_builtins): Add V2DI types to internal types.
26743         (altivec_init_builtins): Add support for V2DF/V2DI altivec
26744         load/store builtins.
26745         (rs6000_address_for_altivec): Insure memory address is appropriate
26746         for Altivec.
26747
26748         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
26749         vec_vsx_ld and vec_vsx_st.
26750         (vsx_store_<mode>): Ditto.
26751
26752         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
26753         variables to hold long long types for VSX vector memory builtins.
26754         (RS6000_BTI_unsigned_long_long): Ditto.
26755         (long_long_integer_type_internal_node): Ditti.
26756         (long_long_unsigned_type_internal_node): Ditti.
26757
26758         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
26759         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
26760         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
26761
26762         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
26763         short cuts.
26764         (vec_vsx_st): Ditto.
26765
26766 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26767
26768         * config/pa/pa-hpux10.opt: New.
26769         * config/hpux11.opt (pthread): New Driver option.
26770         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
26771         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
26772
26773 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26774
26775         * config/ia64/vms.opt: New.
26776         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
26777
26778 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
26779
26780         PR target/47580
26781         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
26782         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
26783         generator functions.
26784         (vsx_floatuns<VSi><mode>2): Ditto.
26785         (vsx_fix_trunc<mode><VSi>2): Ditto.
26786         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
26787
26788 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
26789
26790         * config/i386/djgpp.opt (posix): New Driver option.
26791
26792 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
26793
26794         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
26795         Move to the unsupported targets list.
26796
26797 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
26798
26799         PR rtl-optimization/47525
26800         * df-scan.c: Update copyright years.
26801         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
26802         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
26803
26804 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26805
26806         * config/i386/sysv4.h (TARGET_VERSION): Remove.
26807         (SUBTARGET_RETURN_IN_MEMORY): Remove.
26808         (ASM_OUTPUT_ASCII): Remove.
26809         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
26810
26811 2011-02-02  Jeff Law  <law@redhat.com>
26812
26813         PR middle-end/47543
26814         * reload.c (find_reloads_address): Handle reg+d address where both
26815         components are invalid by reloading the entire address.
26816
26817 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
26818             Richard Guenther  <rguenther@suse.de>
26819
26820         PR tree-optimization/40979
26821         PR bootstrap/47044
26822         * passes.c (init_optimization_passes): After LIM call copy_prop
26823         and DCE to clean up.
26824         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
26825
26826 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
26827
26828         PR tree-optimization/47576
26829         PR tree-optimization/47555
26830         * doc/invoke.texi (scev-max-expr-complexity): Documented.
26831         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26832         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
26833         * tree-scalar-evolution.c (follow_ssa_edge): Use
26834         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
26835
26836 2011-02-02  Richard Guenther  <rguenther@suse.de>
26837
26838         PR tree-optimization/47566
26839         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
26840
26841 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
26842
26843         PR debug/47106
26844         PR debug/47402
26845         * tree-inline.c (declare_return_variable): Remove unused caller
26846         variable.
26847
26848         PR debug/47106
26849         PR debug/47402
26850         * tree-flow-inline.h (clear_is_used, is_used_p): New.
26851         * cfgexpand.c (account_used_vars_for_block): Use them.
26852         * tree-nrv.c (tree_nrv): Likewise.
26853         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
26854         (dump_scope_block): Likewise.
26855         (remove_unused_locals): Likewise.
26856
26857         PR debug/47106
26858         PR debug/47402
26859         * tree-inline.c (declare_return_variable): Add result decl to
26860         local decls only once.
26861         * gimple-low.c (record_vars_into): Mark newly-created variables
26862         as referenced.
26863
26864 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
26865
26866         PR debug/47498
26867         PR debug/47501
26868         PR debug/45136
26869         PR debug/45130
26870         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26871         debug insns.
26872         (no_real_insns_p, schedule_block, set_priorities): Drop special
26873         treatment of boundary debug insns.
26874         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26875         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
26876         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26877         (BOUNDARY_DEBUG_INSN_P): Likewise.
26878         (SCHEDULE_DEBUG_INSN_P): Likewise.
26879         * sched-rgn.c (init_ready_list): Drop special treatment of
26880         boundary debug insns.
26881         * final.c (rest_of_clean_state): Clear notes' BB.
26882
26883 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26884
26885         * config/openbsd.opt (assert=): New Driver option.
26886
26887 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26888
26889         * config/i386/nto.opt: New.
26890         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
26891
26892 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26893
26894         * config/i386/netware.opt: New.
26895         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
26896
26897 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26898
26899         * config/interix.opt (posix): New Driver option.
26900
26901 2011-02-01  DJ Delorie  <dj@redhat.com>
26902
26903         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
26904
26905         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26906         class for A0/A1.
26907
26908 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
26909
26910         PR tree-optimization/47561
26911         * toplev.c (process_options): Print the Graphite flags.  Add
26912         flag_loop_flatten to the list of options requiring Graphite.
26913
26914 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26915
26916         * config/i386/cygming.opt (posix): New Driver option.
26917
26918 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26919
26920         * config/arm/vxworks.opt: New.
26921         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26922
26923 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
26924
26925         * config/alpha/elf.opt: New.
26926         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26927         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26928
26929 2011-02-01  Richard Guenther  <rguenther@suse.de>
26930
26931         PR tree-optimization/47559
26932         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26933         store-motion on references that can throw.
26934
26935 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
26936
26937         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26938         * tree-pass.h (TDF_CSELIB): New macro.
26939         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26940         cselib_lookup): Check for it rather than for TDF_DETAILS.
26941
26942 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
26943
26944         PR driver/47547
26945         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26946         is HOST_BIT_BUCKET.
26947
26948         * opts.c (finish_options): Don't add x_aux_base_name if it is
26949         HOST_BIT_BUCKET.
26950
26951 2011-02-01  Richard Guenther  <rguenther@suse.de>
26952
26953         PR tree-optimization/47555
26954         Revert
26955         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
26956
26957         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26958
26959 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
26960
26961         PR gcc/46692
26962         * config/lm32/t-lm32: Add multilib for all CPU options.
26963
26964 2011-02-01  Richard Guenther  <rguenther@suse.de>
26965
26966         PR tree-optimization/47541
26967         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26968         sure to have a field at offset zero.
26969
26970 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26971
26972         * config/arc/arc.opt (EB, EL): New Driver options.
26973
26974 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26975
26976         * config/alpha/osf5.opt: New.
26977         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26978
26979 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
26980
26981         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26982
26983 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
26984
26985         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26986         -floop-interchange.
26987         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26988         is an alias of -floop-interchange and that it requires the
26989         Graphite infrastructure.
26990         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26991         flag_loop_interchange based on the value of flag_tree_loop_linear.
26992
26993 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
26994             Richard Guenther  <rguenther@suse.de>
26995
26996         PR tree-optimization/47538
26997         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26998         type instead of r1type, except for comparisons.  For right
26999         shifts and comparisons punt if there are mismatches in
27000         sizetype vs. non-sizetype types.
27001
27002 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27003
27004         * doc/sourcebuild.texi (Effective-Target Keywords): Document
27005         avx_runtime.
27006
27007 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27008
27009         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
27010         version number.
27011         * configure: Regenerate.
27012
27013 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27014
27015         * configure.ac (gcc_cv_ld_static_option): Define.
27016         (gcc_cv_ld_dynamic_option): Define.
27017         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
27018         instead.
27019         (HAVE_LD_STATIC_DYNAMIC): Update message.
27020         (LD_STATIC_OPTION): Define.
27021         (LD_DYNAMIC_OPTION): Define.
27022         * configure: Regenerate.
27023         * config.in: Regenerate.
27024         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
27025         HAVE_LD_STATIC_DYNAMIC]: Use them.
27026
27027 2011-01-31  Nick Clifton  <nickc@redhat.com>
27028
27029         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
27030         registers inside interrupt handlers if the handler is not a leaf
27031         function.
27032
27033 2011-01-31  Nick Clifton  <nickc@redhat.com>
27034
27035         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
27036         reg_renumber returning an INVALID_REGNUM.
27037
27038 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27039
27040         PR libgcj/44341
27041         * doc/install.texi: Document host options discarded when cross
27042         configuring target libraries.
27043
27044 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
27045
27046         Reverted:
27047         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27048         PR debug/45136
27049         PR debug/45130
27050         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27051         debug insns.
27052         (no_real_insns_p, schedule_block, set_priorities): Drop special
27053         treatment of boundary debug insns.
27054         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27055         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27056         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27057         (BOUNDARY_DEBUG_INSN_P): Likewise.
27058         (SCHEDULE_DEBUG_INSN_P): Likewise.
27059         * sched-rgn.c (init_ready_list): Drop special treatment of
27060         boundary debug insns.
27061         * final.c (rest_of_clean-state): Clear notes' BB.
27062
27063 2011-01-31  Alan Modra  <amodra@gmail.com>
27064
27065         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
27066         toc relative expressions as we do in print_operand_address.
27067
27068 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
27069
27070         * doc/extend.texi: Follow spelling conventions.
27071         * doc/invoke.texi: Fix a typo.
27072
27073 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
27074
27075         * config/hpux11.opt: New.
27076         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
27077         ia64*-*-hpux*): Use hpux11.opt.
27078
27079 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
27080
27081         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
27082         to tmake_file.
27083
27084 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27085
27086         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
27087         support sites.
27088
27089 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27090
27091         * doc/install.texi (Binaries): Remove outdated reference for
27092         Motorola 68HC11/68HC12 downloads.
27093
27094 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
27095
27096         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
27097         Drepper's paper.
27098
27099 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
27100
27101         PR bootstrap/47147
27102         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
27103         used by NetBSD.
27104
27105 2011-01-28  Ahmad Sharif  <asharif@google.com>
27106
27107         * value-prof.c (check_counter): Corrected error message.
27108
27109 2011-01-29  Jie Zhang  <jie@codesourcery.com>
27110
27111         * config/arm/arm.c (arm_legitimize_reload_address): New.
27112         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
27113         arm_legitimize_reload_address.
27114         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
27115
27116 2011-01-28  Ian Lance Taylor  <iant@google.com>
27117
27118         * godump.c (go_define): Ignore macros whose definitions include
27119         two adjacent operands.
27120
27121 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
27122
27123         PR target/42894
27124         * varasm.c (force_const_mem): Store copy of x in desc->constant
27125         instead of x itself.
27126         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
27127         itself into REG_EQUAL note.
27128
27129 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
27130
27131         * config/freebsd.opt (posix, rdynamic): New Driver options.
27132
27133 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27134
27135         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
27136         -Bstatic/-Bdynamic.
27137         * configure: Regenerate.
27138
27139 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
27140
27141         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
27142         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
27143
27144 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
27145
27146         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
27147         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
27148         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
27149         (s390_preferred_reload_class): Make static. Change return and
27150         'rclass' argument type to reg_class_t.
27151
27152 2011-01-27  Jan Hubicka  <jh@suse.cz>
27153
27154         PR middle-end/46949
27155         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
27156         (process_function_and_variable_attributes): Check defined weakrefs.
27157
27158 2011-01-27  Martin Jambor  <mjambor@suse.cz>
27159
27160         PR tree-optimization/47228
27161         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
27162         build_ref_for_offset.
27163
27164 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27165
27166         * config/spu/spu-elf.h (ASM_SPEC): Remove.
27167
27168 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
27169
27170         PR rtl-optimization/46856
27171         * postreload.c (reload_combine_recognize_const_pattern): Do not
27172         separate cc0 setter and user on cc0 targets.
27173
27174 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
27175
27176         PR c/43082
27177         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
27178         passed a VOID_TYPE expression, immediately emit an error and
27179         return error_mark_node.
27180
27181 2011-01-26  Jeff Law  <law@redhat.com>
27182
27183         PR rtl-optimization/47464
27184         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
27185         rather than may_trap_p as needed.
27186
27187 2011-01-26  DJ Delorie  <dj@redhat.com>
27188
27189         PR rtl-optimization/46878
27190         * combine.c (insn_a_feeds_b): Check for the implicit cc0
27191         setter/user dependency as well.
27192
27193 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
27194
27195         PR rtl-optimization/44469
27196         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
27197         after removing trivially dead basic blocks.
27198
27199 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27200
27201         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
27202         * config/frv/frv.h (LINK_SPEC): Likewise.
27203         * config/i386/netware.h (LINK_SPEC): Likewise.
27204         * config/m68k/linux.h (ASM_SPEC): Likewise.
27205         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
27206         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27207         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27208         * config/sparc/linux.h (ASM_SPEC): Likewise.
27209         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27210         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27211
27212 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27213
27214         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
27215         * config/frv/frv.h (ASM_SPEC): Likewise.
27216         * config/m68k/linux.h (ASM_SPEC): Likewise.
27217         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27218         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
27219         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27220         * config/sparc/linux.h (ASM_SPEC): Likewise.
27221         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27222         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27223
27224 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27225
27226         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
27227         * config/frv/frv.h (LINK_SPEC): Likewise.
27228         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
27229
27230 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
27231
27232         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
27233         * config/frv/frv.h (ASM_SPEC): Likewise.
27234         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
27235         * config/m68k/linux.h (ASM_SPEC): Likewise.
27236         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
27237         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
27238         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
27239         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
27240         * config/sparc/linux.h (ASM_SPEC): Likewise.
27241         * config/sparc/linux64.h (ASM_SPEC): Likewise.
27242         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
27243         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
27244
27245 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
27246
27247         PR target/46997
27248         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
27249         (*mux2): Ditto.
27250         (vec_extract_evenodd_help): Ditto.
27251         (vec_extract_evenv4hi): Ditto.
27252         (vec_extract_oddv4hi): Ditto.
27253         (vec_interleave_lowv2si): Ditto.
27254         (vec_interleave_highv2si): Ditto.
27255         (vec_extract_evenv2si): Ditto.
27256         (vec_extract_oddv2si: Ditto.
27257         (vec_pack_trunc_v2si): Ditto.
27258
27259 2011-01-22  Jan Hubicka  <jh@suse.cz>
27260
27261         PR target/47237
27262         * cgraph.h (cgraph_local_info): New field can_change_signature.
27263         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
27264         signature can change.
27265         (ipcp_estimate_growth): Call sequence simplify only if calle signature
27266         can change.
27267         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
27268         (cgraph_function_versioning): We can not change signature of functions
27269         that don't allow that.
27270         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
27271         (lto_input_node): Likewise.
27272         * ipa-inline.c (compute_inline_parameters): Compute
27273         local.can_change_signature.
27274         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
27275         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
27276         functions that can not change signature.
27277         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
27278         init_cumulative_args): Do not use local calling conventions
27279         for functions that can not change signature.
27280
27281 2011-01-22  Jan Hubicka  <jh@suse.cz>
27282
27283         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
27284
27285 2011-01-26  Richard Guenther  <rguenther@suse.de>
27286
27287         PR tree-optimization/47190
27288         * cgraphunit.c (process_common_attributes): New function.
27289         (process_function_and_variable_attributes): Use it.
27290
27291 2011-01-26  Richard Guenther  <rguenther@suse.de>
27292
27293         PR lto/47423
27294         * cgraphbuild.c (record_eh_tables): Record reference to personality
27295         function.
27296
27297 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
27298
27299         PR debug/45454
27300         * sel-sched.c (moveup_expr): Don't let debug insns prevent
27301         non-debug insns from moving up.
27302
27303 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27304
27305         PR target/40125
27306         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
27307         t-dlldir{,-x} fragment for build and add it to tmake_file.
27308         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
27309         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
27310         * config/i386/t-dlldir: New file.
27311         (SHLIB_DLLDIR): Define.
27312         * config/i386/t-dlldir-x: New file.
27313         (SHLIB_DLLDIR): Define.
27314         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
27315         (SHLIB_INSTALL): Use it.
27316
27317 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
27318
27319         PR target/47246
27320         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
27321         lower bound of the allowed Thumb-2 coprocessor load/store
27322         index range to -256. Add explaining comment.
27323
27324 2011-01-25  Ian Lance Taylor  <iant@google.com>
27325
27326         * godump.c (go_define): Improve lexing of macro expansion to only
27327         accept expressions which match Go spec.
27328
27329 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
27330
27331         PR c++/43601
27332         * tree.c (handle_dll_attribute): Handle it.
27333         * doc/extend.texi (@item dllexport): Mention it.
27334         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
27335
27336 2011-01-25  Ian Lance Taylor  <iant@google.com>
27337
27338         PR tree-optimization/26854
27339         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
27340         (decl_jump_unsafe): Move higher in file, with no other change.
27341         (bind): Set has_jump_unsafe_decl if appropriate.
27342         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
27343         (check_earlier_gotos): Likewise.
27344         (c_check_switch_jump_warnings): Likewise.
27345
27346 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
27347
27348         * doc/invoke.texi (Warning Options): Add missing hyphen.
27349         (-fprofile-dir): Minor grammatical fixes.
27350         (-fbranch-probabilities): Likewise.
27351
27352 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
27353
27354         PR debug/45136
27355         PR debug/45130
27356         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
27357         debug insns.
27358         (no_real_insns_p, schedule_block, set_priorities): Drop special
27359         treatment of boundary debug insns.
27360         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
27361         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
27362         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
27363         (BOUNDARY_DEBUG_INSN_P): Likewise.
27364         (SCHEDULE_DEBUG_INSN_P): Likewise.
27365         * sched-rgn.c (init_ready_list): Drop special treatment of
27366         boundary debug insns.
27367         * final.c (rest_of_clean-state): Clear notes' BB.
27368
27369 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27370
27371         * Makefile.in (LAMBDA_H): Removed.
27372         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
27373         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
27374         lambda-trans.o, and tree-loop-linear.o.
27375         (lto-symtab.o): Remove dependence on LAMBDA_H.
27376         (tree-loop-linear.o): Remove rule.
27377         (lambda-mat.o): Same.
27378         (lambda-trans.o): Same.
27379         (lambda-code.o): Same.
27380         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
27381         (tree-vect-slp.o): Same.
27382         * hwint.h (gcd): Moved here.
27383         (least_common_multiple): Same.
27384         * lambda-code.c: Removed.
27385         * lambda-mat.c: Removed.
27386         * lambda-trans.c: Removed.
27387         * lambda.h: Removed.
27388         * tree-loop-linear.c: Removed.
27389         * lto-symtab.c: Do not include lambda.h.
27390         * omega.c (gcd): Removed.
27391         * passes.c (init_optimization_passes): Remove pass_linear_transform.
27392         * tree-data-ref.c (print_lambda_vector): Moved here.
27393         (lambda_vector_copy): Same.
27394         (lambda_matrix_copy): Same.
27395         (lambda_matrix_id): Same.
27396         (lambda_vector_first_nz): Same.
27397         (lambda_matrix_row_add): Same.
27398         (lambda_matrix_row_exchange): Same.
27399         (lambda_vector_mult_const): Same.
27400         (lambda_vector_negate): Same.
27401         (lambda_matrix_row_negate): Same.
27402         (lambda_vector_equal): Same.
27403         (lambda_matrix_right_hermite): Same.
27404         * tree-data-ref.h: Do not include lambda.h.
27405         (lambda_vector): Moved here.
27406         (lambda_matrix): Same.
27407         (dependence_level): Same.
27408         (lambda_transform_legal_p): Removed declaration.
27409         (lambda_collect_parameters): Same.
27410         (lambda_compute_access_matrices): Same.
27411         (lambda_vector_gcd): Same.
27412         (lambda_vector_new): Same.
27413         (lambda_vector_clear): Same.
27414         (lambda_vector_lexico_pos): Same.
27415         (lambda_vector_zerop): Same.
27416         (lambda_matrix_new): Same.
27417         * tree-flow.h (least_common_multiple): Removed declaration.
27418         * tree-parloops.c (lambda_trans_matrix): Moved here.
27419         (LTM_MATRIX): Same.
27420         (LTM_ROWSIZE): Same.
27421         (LTM_COLSIZE): Same.
27422         (LTM_DENOMINATOR): Same.
27423         (lambda_trans_matrix_new): Same.
27424         (lambda_matrix_vector_mult): Same.
27425         (lambda_transform_legal_p): Same.
27426         * tree-pass.h (pass_linear_transform): Removed declaration.
27427         * tree-ssa-loop.c (tree_linear_transform): Removed.
27428         (gate_tree_linear_transform): Removed.
27429         (pass_linear_transform): Removed.
27430         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
27431         flag_loop_interchange.
27432
27433 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27434
27435         PR tree-optimization/47265
27436         PR tree-optimization/47443
27437         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
27438         if name still has some uses.
27439
27440 2011-01-25  Martin Jambor  <mjambor@suse.cz>
27441
27442         PR tree-optimization/47382
27443         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
27444         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
27445
27446 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
27447
27448         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
27449         sjlj_except_unwind_info.
27450
27451 2011-01-25  Richard Guenther  <rguenther@suse.de>
27452
27453         PR tree-optimization/47426
27454         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
27455         visible functions results escape.
27456
27457 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27458
27459         PR target/45701
27460         * config/arm/arm.c (any_sibcall_uses_r3): New function.
27461         (arm_get_frame_offsets): Use it.
27462
27463 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27464             Jakub Jelinek  <jakub@redhat.com>
27465
27466         PR tree-optimization/47271
27467         * tree-if-conv.c (bb_postdominates_preds): New.
27468         (if_convertible_bb_p): Call bb_postdominates_preds.
27469         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
27470         (predicate_scalar_phi): Call bb_postdominates_preds.
27471
27472 2011-01-25  Nick Clifton  <nickc@redhat.com>
27473
27474         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
27475         * config/rx/rx.c (rx_function_value): Likewise.
27476         (rx_promote_function_mode): Likewise.
27477         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
27478         in order to make it legitimate.
27479         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
27480         make sure that the first operand is the same as the result register.
27481         (addsi3_unspec): Delete.
27482         (subdi3): Do not accept immediate operands.
27483         (subdi3_internal): Likewise.
27484
27485 2011-01-25  Jeff Law  <law@redhat.com>
27486
27487         PR rtl-optimization/37273
27488         * ira-costs.c (scan_one_insn): Detect constants living in memory and
27489         handle them like argument loads from stack slots.  Do not double
27490         count memory for memory constants and argument loads from stack slots.
27491
27492 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
27493
27494         PR tree-optimization/47427
27495         PR tree-optimization/47428
27496         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
27497         coalesce if the new root var would be TREE_READONLY.
27498
27499 2011-01-25  Richard Guenther  <rguenther@suse.de>
27500
27501         PR middle-end/47414
27502         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
27503         correct type for TBAA.
27504
27505 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27506
27507         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
27508         (close_phi_written_to_memory): Call for_each_index with
27509         dr_indices_valid_in_loop.
27510
27511 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27512
27513         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
27514         when it is initialized.
27515
27516 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27517
27518         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
27519         call to graphite_find_data_references_in_stmt.
27520         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
27521         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
27522         call to graphite_find_data_references_in_stmt.
27523         (analyze_drs_in_stmts): Same.
27524         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
27525         in which the scalar analysis of indices is performed.
27526         (create_data_ref): Same.  Update call to dr_analyze_indices.
27527         (find_data_references_in_stmt): Update call to create_data_ref.
27528         (graphite_find_data_references_in_stmt): Same.
27529         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
27530         declaration.
27531         (create_data_ref): Same.
27532         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
27533         call to create_data_ref.
27534
27535 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27536
27537         * graphite-sese-to-poly.c (build_poly_scop): Move
27538         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
27539
27540 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27541
27542         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
27543         VAR_DECL, PARM_DECL, and RESULT_DECL.
27544
27545 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27546
27547         * graphite-dependences.c (reduction_dr_1): Allow several reductions
27548         in a reduction PBB.
27549         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
27550         that have already been marked as PBB_IS_REDUCTION.
27551
27552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27553
27554         * graphite-scop-detection.c (same_close_phi_node): New.
27555         (remove_duplicate_close_phi): New.
27556         (make_close_phi_nodes_unique): New.
27557         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
27558
27559 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27560
27561         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
27562         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
27563         of both data references to be the same.
27564
27565 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27566
27567         * graphite-dependences.c (build_lexicographical_constraint): Remove
27568         the gdim parameter.
27569         (build_lexicographical_constraint): Adjust call to
27570         ppl_powerset_is_empty.
27571         (dependence_polyhedron): Same.
27572         (graphite_legal_transform_dr): Same.
27573         (graphite_carried_dependence_level_k): Same.
27574         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
27575         parameter.
27576         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
27577
27578 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27579
27580         * graphite-sese-to-poly.c
27581         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
27582         (close_phi_written_to_memory): New.
27583         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
27584         and unshare_expr.
27585
27586 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27587
27588         * doc/install.texi: Update the expected version number of PPL to 0.11.
27589         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
27590         #if PPL_VERSION_MINOR < 11.
27591
27592 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27593
27594         * graphite-dependences.c: Include graphite-cloog-util.h.
27595         (new_poly_ddr): Inlined into dependence_polyhedron.
27596         (free_poly_ddr): Moved close by new_poly_ddr.
27597         (dependence_polyhedron_1): Renamed dependence_polyhedron.
27598         Early return NULL when ppl_powerset_is_empty returns true.
27599         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
27600         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
27601         (graphite_legal_transform_dr): Call new_poly_ddr.
27602         (graphite_carried_dependence_level_k): Same.
27603         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
27604         (dot_transformed_deps_stmt_1): Removed.
27605         (dot_deps_stmt_1): Call dot_deps_stmt_2.
27606         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
27607         (dot_deps_1): Call dot_deps_2.
27608         * Makefile.in (graphite-dependences.o): Add missing dependence on
27609         graphite-cloog-util.h.
27610
27611 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27612
27613         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
27614         (build_lexicographical_constraint): Same.
27615         (dependence_polyhedron_1): Same.
27616         (graphite_legal_transform_dr): Same.
27617         (graphite_carried_dependence_level_k): Same.
27618         * graphite-ppl.c (ppl_powerset_is_empty): New.
27619         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27620         * tree-data-ref.c (dump_data_reference): Print the basic block index.
27621
27622 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27623
27624         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
27625         the "a followed by b" relation and document it.
27626
27627 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27628
27629         * graphite-dependences.c (build_lexicographical_constraint): Stop the
27630         iteration when the bag of constraints is empty.
27631
27632 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27633
27634         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
27635
27636 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27637
27638         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
27639         nest and two loop depths as parameters.
27640         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
27641         lst_perfect_nestify.
27642
27643 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27644
27645         * graphite-dependences.c (print_pddr): Call
27646         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
27647
27648 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
27649
27650         * graphite-ppl.c (debug_gmp_value): New.
27651         * graphite-ppl.h (debug_gmp_value): Declared.
27652
27653 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
27654
27655         * doc/install.texi: Document availability of cloog-0.16.
27656
27657 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
27658
27659         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
27660         invalid postdominance info.
27661
27662 2011-01-24  Jan Hubicka  <jh@suse.cz>
27663
27664         PR c/21659
27665         * doc/extend.texi (weak pragma): Drop claim that it must
27666         appear before definition.
27667         * varasm.c (merge_weak, declare_weak): Only sanity check
27668         that DECL is not output at a time it is declared weak.
27669
27670 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
27671
27672         * machmode.def: Fixed comments.
27673
27674 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
27675
27676         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
27677
27678 2011-01-24  Paul Koning  <ni1d@arrl.net>
27679
27680         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
27681         WORDS_BIG_ENDIAN.
27682
27683 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27684
27685         PR target/46519
27686         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
27687         (block_info): Add scanned and prev.
27688         (move_or_delete_vzeroupper_2): Return if the basic block
27689         has been scanned and the upper 128bit state is unchanged
27690         from the last scan.
27691         (move_or_delete_vzeroupper_1): Return true if the exit
27692         state is changed.
27693         (move_or_delete_vzeroupper): Visit basic blocks using the
27694         work-list based algorithm based on vt_find_locations in
27695         var-tracking.c.
27696
27697         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
27698
27699 2011-01-24  Nick Clifton  <nickc@redhat.com>
27700
27701         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
27702         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
27703         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
27704         then define __v850e1__.
27705         * doc/invoke.texi: Document -mv850es.
27706
27707 2011-01-24  Richard Henderson  <rth@redhat.com>
27708
27709         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
27710         compound unordered comparisons.
27711         * config/rx/rx.c (rx_split_fp_compare): Remove.
27712         * config/rx/rx-protos.h: Update.
27713         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
27714         (cbranchsf4): Don't call rx_split_fp_compare.
27715         (*cbranchsf4): Use rx_split_cbranch.
27716         (*cmpsf): Don't accept "i" constraint.
27717         (*conditional_branch): Only valid after reload.
27718         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
27719
27720 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
27721
27722         PR target/47385
27723         * config/rs6000/altivec.md (vector constant splitters): Add
27724         support for creating vector single precision constants if -mvsx is
27725         used and we would create the constant using Altivec primitives.
27726
27727 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
27728             Richard Sandiford  <rdsandiford@googlemail.com>
27729
27730         PR rtl-optimization/47166
27731         * reload1.c (emit_reload_insns): Disable the spill_reg_store
27732         mechanism for PRE_MODIFY and POST_MODIFY.
27733         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
27734         reloadreg.
27735
27736 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
27737
27738         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
27739
27740 2011-01-22  Jan Hubicka  <jh@suse.cz>
27741
27742         PR lto/47333
27743         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
27744
27745 2011-01-22  Jan Hubicka  <jh@suse.cz>
27746
27747         PR tree-optimization/43884
27748         PR lto/44334
27749         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
27750         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
27751
27752 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
27753
27754         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
27755         * config/s390/s390.c (s390_register_move_cost,
27756         s390_memory_move_cost): New.
27757         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
27758
27759 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27760
27761         PR middle-end/47401
27762         * except.c (sjlj_assign_call_site_values): Move setting the
27763         crtl->uses_eh_lsda flag to ...
27764         (sjlj_mark_call_sites): ... here.
27765         (sjlj_emit_function_enter): Support NULL dispatch label.
27766         (sjlj_build_landing_pads): In a function with no landing pads
27767         that still has must-not-throw regions, generate code to register
27768         a personality function with empty LSDA.
27769
27770 2011-01-21  Richard Henderson  <rth@redhat.com>
27771
27772         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
27773
27774         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
27775
27776         * compare-elim.c: New file.
27777         * Makefile.in (OBJS-common): Add it.
27778         (compare-elim.o): New.
27779         * common.opt (fcompare-elim): New.
27780         * opts.c (default_options_table): Add OPT_fcompare_elim.
27781         * tree-pass.h (pass_compare_elim_after_reload): New.
27782         * passes.c (init_optimization_passes): Add it.
27783         * recog.h: Protect against re-inclusion.
27784         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
27785         * doc/invoke.texi (-fcompare-elim): Document it.
27786         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
27787         * doc/tm.texi: Rebuild.
27788
27789 2011-01-22  Nick Clifton  <nickc@redhat.com>
27790
27791         * config/rx/rx.md (cstoresf4): Pass comparison operator to
27792         rx_split_fp_compare.
27793
27794 2011-01-22  Nick Clifton  <nickc@redhat.com>
27795
27796         * config/rx/rx.md (UNSPEC_CONST): New.
27797         (deallocate_and_return): Wrap the amount popped off the stack in
27798         an UNSPEC_CONST in order to stop it being rejected by
27799         -mmax-constant-size.
27800         (pop_and_return): Add a "(return)" rtx.
27801         (call): Drop the immediate operand.
27802         (call_internal): Likewise.
27803         (call_value): Likewise.
27804         (call_value_internal): Likewise.
27805         (sibcall_internal): Likewise.
27806         (sibcall_value_internal): Likewise.
27807         (sibcall): Likewise.  Generate an explicit call using
27808         sibcall_internal.
27809         (sibcall_value): Likewise.
27810         (mov<>): FAIL if a constant operand is not legitimate.
27811         (addsi3_unpsec): New pattern.
27812
27813         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
27814         (ok_for_max_constant): New function.
27815         (gen_safe_add): New function.
27816         (rx_expand_prologue): Use gen_safe_add.
27817         (rx_expand_epilogue): Likewise.
27818         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
27819         UNSPEC CONSTs.
27820
27821 2011-01-21  Jeff Law  <law@redhat.com>
27822
27823         PR tree-optimization/47053
27824         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
27825         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
27826         statements are deleted.
27827         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
27828         is nonempty, then purge dead edges and cleanup the CFG.
27829
27830 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27831
27832         PR debug/47402
27833         Temporarily revert:
27834         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27835         PR debug/47106
27836         * tree-dfa.c (create_var_ann): Mark variable as used.
27837
27838 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27839
27840         PR middle-end/45566
27841         * except.c (convert_to_eh_region_ranges): Emit queued no-region
27842         notes from other section in hot/cold partitioning even if
27843         last_action is -3.  Increment call_site_base.
27844
27845         PR rtl-optimization/47366
27846         * fwprop.c (forward_propagate_into): Return bool.  If
27847         any changes are made, -fnon-call-exceptions is used and
27848         REG_EH_REGION note is present, call purge_dead_edges
27849         and return true if it purged anything.
27850         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
27851         any EH edges were purged.
27852
27853 2011-01-21  Jeff Law  <law@redhat.com>
27854
27855         PR rtl-optimization/41619
27856         * caller-save.c (setup_save_areas): Break out code to determine
27857         which hard regs are live across calls by examining the reload chains
27858         so that it is always used.
27859         Eliminate code which checked REG_N_CALLS_CROSSED.
27860
27861 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27862
27863         PR tree-optimization/47355
27864         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
27865         NOP has non-debug uses beyond PHIs in new_bb.
27866
27867 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
27868
27869         PR debug/47106
27870         * cfgexpand.c (account_used_vars_for_block): Only account vars
27871         that are annotated as used.
27872         (estimated_stack_frame_size): Don't set TREE_USED.
27873         * tree-dfa.c (create_var_ann): Mark variable as used.
27874
27875 2011-01-21  Richard Guenther  <rguenther@suse.de>
27876
27877         PR middle-end/47395
27878         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
27879
27880 2011-01-21  Richard Guenther  <rguenther@suse.de>
27881
27882         PR tree-optimization/47365
27883         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
27884         (vn_reference_lookup_pieces): Adjust.
27885         (vn_reference_lookup): Likewise.
27886         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
27887         (vn_reference_lookup_3): Only look through kills if in
27888         VN_WALKREWRITE mode.
27889         (vn_reference_lookup_pieces): Adjust.
27890         (vn_reference_lookup): Likewise.
27891         (visit_reference_op_load): Likewise.
27892         (visit_reference_op_store): Likewise.
27893         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
27894         (compute_avail): Likewise.
27895         (eliminate): Likewise.
27896
27897 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
27898
27899         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
27900         DECL_IGNORED_P non-reg vars if they are used.
27901
27902         PR tree-optimization/47391
27903         * varpool.c (const_value_known_p): Return false if
27904         decl is volatile.
27905
27906 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
27907
27908         PR bootstrap/47215
27909         * config/i386/i386.c (ix86_local_alignment): Handle
27910         case for va_list_type_node is nil.
27911         (ix86_canonical_va_list_type): Likewise.
27912
27913 2011-01-21  Alan Modra  <amodra@gmail.com>
27914
27915         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27916         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27917
27918 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27919
27920         * config/arm/arm.md (define_attr type): Rename f_load
27921         and f_store to f_fpa_load and f_fpa_store. Update.
27922         (write_conflict): Deal with rename fallout.
27923         (*push_fp_multi): Likewise.
27924         * config/arm/fpa.md (f_load): Use f_fpa_load.
27925         (f_store): Use f_fpa_store.
27926         (*movsf_fpa): Likewise.
27927         (*movdf_fpa): Likewise.
27928         (*movxf_fpa): Likewise.
27929         (*thumb2_movsf_fpa): Likewise.
27930         (*thumb2_movdf_fpa): Likewise.
27931         (*thumb2_movxf_fpa): Likewise.
27932         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27933         f_loadd and f_stored.
27934         (*thumb2_movdi_vfp): Likewise.
27935         (*thumb2_movsf_vfp): Fix attribute to f_loads.
27936         (*thumb2_movsi_vfp): Likewise.
27937         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27938         Use f_loads instead of f_load.
27939         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27940
27941 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
27942
27943         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27944         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27945         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27946         (xtensa_mode_dependent_address_p): New function.
27947         (constantpool_address_p): Make static. Change return type to bool.
27948         Change argument type to const_rtx. Use CONST_INT_P predicate.
27949
27950 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
27951
27952         PR debug/46583
27953         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27954
27955 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
27956
27957         PR debug/47283
27958         * cfgexpand.c (expand_debug_expr): Instead of generating
27959         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27960         etc. handling.
27961
27962 2011-01-20  Richard Guenther  <rguenther@suse.de>
27963
27964         PR middle-end/47370
27965         * tree-inline.c (remap_gimple_op_r): Recurse manually for
27966         the pointer operand of MEM_REFs.
27967
27968 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
27969
27970         PR tree-optimization/46130
27971         * ipa-split.c (consider_split): If return_bb contains non-virtual
27972         PHIs other than for retval or if split_function would not adjust it,
27973         refuse to split.
27974
27975 2011-01-20  Richard Guenther  <rguenther@suse.de>
27976
27977         PR tree-optimization/47167
27978         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27979         Revert previous change, only avoid enumeral type changes.
27980
27981 2011-01-19  Mike Stump  <mikestump@comcast.net>
27982
27983         * doc/tm.texi.in (BRANCH_COST): Englishify.
27984         * doc/tm.texi (BRANCH_COST): Likewise.
27985
27986 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
27987
27988         PR c++/47291
27989         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27990         (gen_scheduled_generic_parms_dies): New functions.
27991         (gen_struct_or_union_type_die): Schedule template parameters DIEs
27992         generation for the end of CU compilation.
27993         (dwarf2out_finish): Generate template parameters DIEs here.
27994
27995 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
27996
27997         PR debug/46240
27998         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27999         debug bind stmt on merge edges.
28000
28001 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28002
28003         PR debug/47079
28004         PR debug/46724
28005         * function.c (instantiate_expr): Instantiate incoming rtl of
28006         implicit arguments, and recurse on VALUE_EXPRs.
28007         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
28008         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
28009
28010 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
28011
28012         * c-parser.c (c_parser_for_statement): Initialize
28013         collection_expression.
28014
28015 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28016
28017         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
28018
28019 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28020
28021         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
28022         (LINK_SHLIB_SPEC): Don't use %(link_path).
28023         (SUBTARGET_EXTRA_SPECS): Remove link_path.
28024
28025 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28026
28027         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
28028         (NO_SHARED_LIB_SUPPORT): Remove.
28029         (LINK_SHLIB_SPEC): Remove one conditional definition.
28030
28031 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
28032
28033         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
28034         %{call_shared}.
28035         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
28036         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
28037         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
28038         %{call_shared} and conditionals on these options not being passed.
28039         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
28040         %{call_shared}.
28041
28042 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28043
28044         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
28045         simplify.
28046
28047         * ipa-split.c: Spelling fixes.
28048
28049 2011-01-19  Richard Henderson  <rth@redhat.com>
28050
28051         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
28052         (*mulsi3): Likewise.
28053
28054         * longlong.h [__mn10300__] (count_leading_zeros): New.
28055         [__mn10300__] (umul_ppmm, smul_ppmm): New.
28056         [__mn10300__] (add_ssaaaa, subddmmss): New.
28057         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
28058         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
28059
28060 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28061
28062         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
28063
28064 2011-01-19  Richard Henderson  <rth@redhat.com>
28065
28066         * config/mn10300/mn10300.md (addsi3_flags): New.
28067         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
28068         (subsi3_flags, subc_internal, subdi3): New.
28069         (subdi3_internal, *subdi3_degenerate): New.
28070         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
28071
28072         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
28073         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
28074         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
28075         * config/mn10300/mn10300-protos.h: Update.
28076         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
28077         (return_ret): Likewise.  Rename from return_internal_regs.
28078         (return_internal): Remove.
28079
28080         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
28081         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
28082         (mn10300_legitimate_constant_p): Likewise.
28083         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
28084         (mn10300_frame_size): New.
28085         (mn10300_expand_prologue): Use it.
28086         (mn10300_expand_epilogue): Likewise.
28087         (mn10300_initial_offset): Likewise.
28088         * config/mn10300/mn10300-protos.h: Update.
28089         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
28090         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
28091         (prologue, epilogue, return_internal): Tidy output code.
28092         (mn10300_store_multiple_operation, return): Likewise.
28093         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
28094         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
28095         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
28096         (load_pic, am33_load_pic): New.
28097         (mn10300_load_pic0, mn10300_load_pic1): New.
28098
28099         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
28100         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
28101         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
28102         (cc_flags_for_mode, cc_flags_for_code): New.
28103         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
28104         overflow flag is not valid.  Validate that the flags we need
28105         for the comparison are valid.
28106         (mn10300_output_cmp): Remove.
28107         (mn10300_output_add): New.
28108         (mn10300_select_cc_mode): Use cc_flags_for_code.
28109         (mn10300_split_cbranch): New.
28110         (mn10300_match_ccmode): New.
28111         (mn10300_split_and_operand_count): New.
28112         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
28113         to the function.
28114         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
28115         (addsi3): ... here.  Use mn10300_output_add.
28116         (*addsi3_flags): New.
28117         (*am33_subsi3, *mn10300_subsi3): Merge...
28118         (subsi3): ... here.  Use attribute isa.
28119         (*subsi3_flags): New.
28120         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
28121         when possible.
28122         (*am33_andsi3, *mn10300_andsi3): Merge...
28123         (andsi3): ... here.
28124         (*andsi3_flags): New.
28125         (andsi3 splitters): New.
28126         (*am33_iorsi3, *mn10300_iorsi3): Merge...
28127         (iorsi3): ... here.
28128         (*iorsi3_flags): New.
28129         (*am33_xorsi3, *mn10300_xorsi3): Merge...
28130         (xorsi3): ... here.
28131         (*xorsi3_flags): New.
28132         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
28133         (one_cmplsi2): ... here.
28134         (*one_cmplsi2_flags): New.
28135         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
28136         instead of "dax" in constraints.  Use mn10300_split_cbranch.
28137         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
28138         use matching constraints to eliminate a self-comparison.
28139         (*integer_conditional_branch): Rename from integer_conditional_branch.
28140         Use int_mode_flags to match CC_REG.
28141         (*cbranchsi4_btst, *btstsi): New.
28142         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
28143         mn10300_split_cbranch.
28144         (*am33_cmpsf): Rename from am33_cmpsf.
28145         (*float_conditional_branch): Rename from float_conditional_branch.
28146         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
28147         (zero_extendqisi2): ... here.
28148         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
28149         (zero_extendhisi2): ... here.
28150         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
28151         (extendqisi2): ... here.
28152         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
28153         (extendhisi2): ... here.
28154         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
28155         (ashlsi3): ... here.
28156         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
28157         (lshrsi3): ... here.
28158         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
28159         (ashrsi3): ... here.
28160         (consecutive add peephole): Remove.
28161         * config/mn10300/predicates.md (label_ref_operand): New.
28162         (int_mode_flags): New.
28163         (CCZN_comparison_operator): New.
28164
28165         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
28166         (throughput_42_latency_43): New reservation.
28167         (mulsidi3, umulsidi3): New expanders.
28168         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
28169         the MDR register to allocation; separately allocate the low and
28170         high parts of the DImode result.
28171         (umulsidi3_internal): Similarly.
28172         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
28173         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
28174         (udivsi3, umodsi3): Remove.
28175         (udivmodsi4, divmodsi4): New expanders.
28176         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
28177         (*divmodsi4): Simiarly.
28178         (ext_internal): New.
28179
28180         * config/mn10300/constraints.md ("z"): New constraint.
28181         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
28182         (FIXED_REGISTERS): Don't fix MDR.
28183         (CALL_USED_REGSITERS): Reformat nicely.
28184         (REG_ALLOC_ORDER): Add MDR.
28185         (enum regclass): Add MDR_REGS.
28186         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
28187         (IRA_COVER_CLASSES): Add MDR_REGS.
28188         (REGNO_REG_CLASS): Handle MDR_REG.
28189         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
28190         (mn10300_register_move_cost): Likewise.
28191         * config/mn10300/mn10300.md (MDR_REG): New.
28192         (*movsi_internal): Handle moves to/from MDR_REGS.
28193
28194         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
28195         POST_MODIFY.
28196         (mn10300_secondary_reload): Tidy combination reload classes.
28197         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
28198         addresses for AM33.  Allow symbolic offsets for reg+imm.
28199         (mn10300_regno_in_class_p): New.
28200         (mn10300_legitimize_reload_address): New.
28201         * config/mn10300/mn10300.h (enum reg_class): Remove
28202         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
28203         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
28204         SP_OR_GENERAL_REGS.
28205         (REG_CLASS_NAMES): Update to match.
28206         (REG_CLASS_CONTENTS): Likewise.
28207         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
28208         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
28209         (REGNO_IN_RANGE_P): Remove.
28210         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
28211         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
28212         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
28213         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
28214         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
28215         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
28216         (REGNO_GENERAL_P): New.
28217         (HAVE_POST_MODIFY_DISP): New.
28218         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
28219         (LEGITIMIZE_RELOAD_ADDRESS): New.
28220         * config/mn10300/mn10300-protos.h: Update.
28221
28222         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
28223         DATA_REGS for AM33 stack-pointer destination.
28224         (mn10300_preferred_output_reload_class): Likewise.
28225         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
28226         into a form appropriate for ...
28227         (TARGET_SECONDARY_RELOAD): New.
28228         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
28229         * config/mn10300/mn10300-protos.h: Update.
28230         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
28231         reload_insi; use the "A" constraint for the scratch; handle AM33
28232         moves of sp to non-address registers.
28233
28234         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
28235         (*movqi_internal): ... here.
28236         (*am33_movhi, *mn10300_movhi): Merge into...
28237         (*movhi_internal): ... here.
28238         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
28239         as the source/destination of moves from/to SP.
28240         (movsf): Only allow for AM33-2.
28241         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
28242         any integer constant constraint.  Only allow for AM33-2.  Tidy
28243         all of the alternative outputs.
28244         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
28245         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
28246         for MN103.
28247         (udivsi3, umodsi3): New patterns for MN103 only.
28248
28249 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
28250
28251         * doc/tm.texi.in: Spell out that a lack of register class unions
28252         can lead to ICEs.
28253         * doc/tm.texi: Regenerate.
28254
28255 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
28256
28257         PR rtl-optimization/47337
28258         * dce.c (check_argument_store): New function.
28259         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
28260
28261         PR tree-optimization/47290
28262         * tree-eh.c (infinite_empty_loop_p): New function.
28263         (cleanup_empty_eh): Use it.
28264
28265 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
28266
28267         PR target/46997
28268         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
28269         (a64_expand_widen_sum): Ditto.
28270         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
28271         (vec_extract_evenodd_help): Ditto.
28272         (vec_extract_evenv4hi): Ditto.
28273         (vec_extract_oddv4hi): Ditto.
28274         (vec_extract_evenv2si): Ditto.
28275         (vec_extract_oddv2si): Ditto.
28276         (vec_extract_evenv2sf): Ditto.
28277         (vec_extract_oddv2sf): Ditto.
28278         (vec_pack_trunc_v4hi: Ditto.
28279         (vec_pack_trunc_v2si): Ditto.
28280         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
28281         (vec_interleave_highv8qi): Ditto.
28282         (mix1_r): Ditto.
28283         (vec_extract_oddv8qi): Ditto.
28284         (vec_interleave_lowv4hi): Ditto.
28285         (vec_interleave_highv4hi): Ditto.
28286         (vec_interleave_lowv2si): Ditto.
28287         (vec_interleave_highv2si): Ditto.
28288
28289 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28290
28291         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
28292         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
28293         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
28294         (pa_c_mode_for_suffix): New.
28295         (TARGET_EXPAND_BUILTIN): Define.
28296         (TARGET_C_MODE_FOR_SUFFIX): Define.
28297         (pa_builtins): Define.
28298         (pa_init_builtins): Register __float128 type and init new support
28299         builtins.
28300         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
28301         * config/pa/quadlib.c (_U_Qfcopysign): New.
28302
28303 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
28304
28305         PR middle-end/46894
28306         * explow.c (allocate_dynamic_stack_space): Do not assume more than
28307         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
28308         are defined.
28309
28310 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28311
28312         PR tree-optimization/47179
28313         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
28314         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
28315
28316 2011-01-18  Richard Guenther  <rguenther@suse.de>
28317
28318         PR rtl-optimization/47216
28319         * emit-rtl.c: Include tree-flow.h.
28320         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
28321         of replicating it with different semantics.
28322         * Makefile.in (emit-rtl.o): Adjust.
28323
28324 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28325
28326         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
28327         (cortex_a9_dp): Handle neon types correctly.
28328
28329 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
28330
28331         PR rtl-optimization/47299
28332         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
28333         subtarget.  Use normal multiplication if both operands are constants.
28334         * expmed.c (expand_widening_mult): Don't try to optimize constant
28335         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
28336         before using it.
28337
28338 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28339
28340         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
28341         spacing after 'e.g.', typos, comma, hyphenation.
28342
28343 2011-01-17  Richard Henderson  <rth@redhat.com>
28344
28345         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
28346         (rx_restricted_mem_operand): New.
28347         (rx_shift_operand): Use register_operand.
28348         (rx_source_operand, rx_compare_operand): Likewise.
28349         * config/rx/rx.md (addsi3_flags): New expander.
28350         (adddi3): Rewrite as expander.
28351         (adc_internal, *adc_flags, adddi3_internal): New patterns.
28352         (subsi3_flags): New expander.
28353         (subdi3): Rewrite as expander.
28354         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
28355
28356         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
28357         (rx_init_builtins): Remove sat builtin.
28358         (rx_expand_builtin): Likewise.
28359         * config/rx/rx.md (ssaddsi3): New.
28360         (*sat): Rename from sat.  Represent the CC_REG input.
28361
28362         * config/rx/predicates.md (rshift_operator): New.
28363         * config/rx/rx.c (rx_expand_insv): Remove.
28364         * config/rx/rx-protos.h: Update.
28365         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
28366         operand to the canonical position.
28367         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
28368         (*bitclr, *bitclr_in_memory): Similarly.
28369         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
28370         (insv): Retain the zero_extract in the expansion.
28371
28372         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
28373         (bswaphi2, bitinvert, revw): Likewise.
28374
28375         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
28376         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
28377         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
28378         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
28379         (bitset, bitset_in_memory): Likewise.
28380         (bitinvert, bitinvert_in_memory): Likewise.
28381         (bitclr, bitclr_in_memory): Likewise.
28382         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
28383         (rx_strend, rx_cmpstrn): Likewise.
28384         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
28385         (bitop peep2 patterns): Remove.
28386
28387         * config/rx/rx.c (rx_match_ccmode): New.
28388         * config/rx/rx-protos.h: Update.
28389         * config/rx/rx.md (abssi2): Clobber, don't set flags.
28390         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
28391         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
28392         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
28393         (fix_truncsfsi2, floatsisf2): Likewise.
28394         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
28395         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
28396         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
28397         (*subsi3_flags, *xorsi3_flags): New.
28398
28399         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
28400
28401         * config/rx/rx.c (rx_print_operand): Remove workaround for
28402         unsplit comparison operations.
28403
28404         * config/rx/rx.md (movsicc): Split after reload.
28405         (*movsicc): Merge *movsieq and *movsine via match_operator.
28406         (*stcc): New pattern.
28407
28408         * config/rx/rx.c (rx_float_compare_mode): Remove.
28409         * config/rx/rx.h (rx_float_compare_mode): Remove.
28410         * config/rx/rx.md (cstoresi4): Split after reload.
28411         (*sccc): New pattern.
28412
28413         * config/rx/predicates.md (label_ref_operand): New.
28414         (rx_z_comparison_operator): New.
28415         (rx_zs_comparison_operator): New.
28416         (rx_fp_comparison_operator): New.
28417         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
28418         Validate that the flags are set properly for the comparison.
28419         (rx_gen_cond_branch_template): Remove.
28420         (rx_cc_modes_compatible): Remove.
28421         (mode_from_flags): New.
28422         (flags_from_code): Rename from flags_needed_for_conditional.
28423         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
28424         (rx_select_cc_mode): Likewise.
28425         (rx_split_fp_compare): New.
28426         (rx_split_cbranch): New.
28427         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
28428         (*cbranchsi4): Use match_operator and rx_split_cbranch.
28429         (*cbranchsf4): Similarly.
28430         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
28431         match_operator and rx_split_cbranch.
28432         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
28433         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
28434         (*cmpsi): Rename from cmpsi.
28435         (*tstsi): Rename from tstsi.
28436         (*cmpsf): Rename from cmpsf; use CC_Fmode.
28437         (*conditional_branch): Rename from conditional_branch.
28438         (*reveresed_conditional_branch): Remove.
28439         (b<code>): Remove expander.
28440         * config/rx/rx-protos.h: Update.
28441
28442         * config/rx/rx.c (rx_compare_redundant): Remove.
28443         * config/rx/rx.md (cmpsi): Don't use it.
28444         * config/rx/rx-protos.h: Update.
28445
28446         * config/rx/rx-modes.def (CC_F): New mode.
28447         * config/rx/rx.c (rx_select_cc_mode): New.
28448         * config/rx/rx.h (SELECT_CC_MODE): Use it.
28449         * config/rx/rx-protos.h: Update.
28450
28451 2011-01-17  Richard Henderson  <rth@redhat.com>
28452
28453         * except.c (dump_eh_tree): Fix stray ; after for statement.
28454
28455 2011-01-17  Richard Guenther  <rguenther@suse.de>
28456
28457         PR tree-optimization/47313
28458         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
28459         handling before copying the body.  Properly deal with
28460         by-reference result in SSA form.
28461
28462 2011-01-17  Ian Lance Taylor  <iant@google.com>
28463
28464         PR target/47219
28465         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
28466         (struct_value_alias_set): Don't define.
28467         (sparc_option_override): Don't set sparc_sr_alias_set and
28468         struct_value_alias_set.
28469         (save_or_restore_regs): Use gen_frame_mem rather than calling
28470         set_mem_alias_set.
28471         (sparc_struct_value_rtx): Likewise.
28472
28473 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28474
28475         PR target/47318
28476         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
28477         (_mm_maskstore_pd): Likewise.
28478         (_mm_maskload_ps): Likewise.
28479         (_mm_maskstore_ps): Likewise.
28480         (_mm256_maskload_pd): Change mask to __m256i.
28481         (_mm256_maskstore_pd): Likewise.
28482         (_mm256_maskload_ps): Likewise.
28483         (_mm256_maskstore_ps): Likewise.
28484
28485         * config/i386/i386-builtin-types.def: Updated.
28486         (ix86_expand_special_args_builtin): Likewise.
28487
28488         * config/i386/i386.c (bdesc_special_args): Update
28489         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
28490         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
28491         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
28492         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
28493
28494         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
28495         Use <avxpermvecmode> on mask register.
28496         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
28497
28498 2011-01-17  Olivier Hainque  <hainque@adacore.com>
28499             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
28500             Eric Botcazou  <ebotcazou@adacore.com>
28501
28502         PR target/46655
28503         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
28504         if <= USHRT_MAX in 32-bit mode.
28505
28506 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28507
28508         * doc/install.texi (Configuration, Specific): Wrap long
28509         lines in examples.  Allow line wrapping in long options
28510         and URLs where beneficial for PDF output.
28511
28512 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
28513
28514         * config/mips/mips.c (mips_classify_symbol): Don't return
28515         SYMBOL_PC_RELATIVE for nonlocal labels.
28516
28517 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28518
28519         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
28520
28521 2011-01-15  Jan Hubicka  <jh@suse.cz>
28522
28523         PR tree-optimization/47276
28524         * ipa.c (function_and_variable_visibility): Do not try to mark alias
28525         declarations as needed.
28526
28527 2011-01-15  Martin Jambor  <mjambor@suse.cz>
28528
28529         * common.opt (fdevirtualize): New flag.
28530         * doc/invoke.texi (Option Summary): Document it.
28531         * opts.c (default_options_table): Add devirtualize flag.
28532         * ipa-prop.c (detect_type_change): Return immediately if
28533         devirtualize flag is not set.
28534         (detect_type_change_ssa): Likewise.
28535         (compute_known_type_jump_func): Likewise.
28536         (ipa_analyze_virtual_call_uses): Likewise.
28537
28538 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28539
28540         PR tree-optimization/45934
28541         PR tree-optimization/46302
28542         * ipa-prop.c (type_change_info): New type.
28543         (stmt_may_be_vtbl_ptr_store): New function.
28544         (check_stmt_for_type_change): Likewise.
28545         (detect_type_change): Likewise.
28546         (detect_type_change_ssa): Likewise.
28547         (compute_complex_assign_jump_func): Check for dynamic type change.
28548         (compute_complex_ancestor_jump_func): Likewise.
28549         (compute_known_type_jump_func): Likewise.
28550         (compute_scalar_jump_functions): Likewise.
28551         (ipa_analyze_virtual_call_uses): Likewise.
28552         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
28553
28554 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28555
28556         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
28557         * config/i386/i386.opt (msse5): New Alias.
28558
28559 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28560
28561         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
28562         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28563         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28564         * config/sparc/sparc.h (CC1_SPEC): Likewise.
28565
28566 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28567
28568         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
28569         -mcpu options.
28570         * config/sparc/linux64.h (CC1_SPEC): Likewise.
28571         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
28572         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
28573         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
28574         Likewise.
28575         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
28576
28577 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28578
28579         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
28580
28581 2011-01-14  Mike Stump  <mikestump@comcast.net>
28582
28583         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
28584         * config/fr30/fr30.md: Likweise
28585         (movsi_push): Likewise.
28586         (movsi_pop): Likewise.
28587         (enter_func): Likewise.
28588         * config/moxie/moxie.md (movsi_push): Likewise.
28589         (movsi_pop): Likewise.
28590
28591 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28592
28593         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
28594         %{no_archive} %{exact_version}.
28595         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
28596         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
28597         %{no_archive} %{exact_version}.
28598         * config/mips/openbsd.h (LINK_SPEC): Likewise.
28599         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
28600         * config/mips/vxworks.h: Likewise.
28601
28602 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28603
28604         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
28605
28606 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28607
28608         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
28609         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
28610
28611 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28612
28613         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
28614         -nodefaultlib.
28615
28616 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28617
28618         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
28619         for mcpu not cpu.
28620         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
28621         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
28622         not cpu.
28623         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
28624         Don't handle -shlib.
28625
28626 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28627
28628         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
28629         (CC1_SPEC): Don't handle -profile.
28630
28631 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28632
28633         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
28634         * config/mips/mips.h (CC1_SPEC): Likewise.
28635
28636 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28637
28638         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
28639         * config/mips/mips.h (CC1_SPEC): Likewise.
28640
28641 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28642
28643         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
28644         * config/m32r/linux.h (LINK_SPEC): Likewise.
28645         * config/mips/linux.h (LINK_SPEC): Likewise.
28646         * config/mips/linux64.h (LINK_SPEC): Likewise.
28647         * config/sparc/linux.h (LINK_SPEC): Likewise.
28648         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
28649         LINK_SPEC): Likewise.
28650         * config/xtensa/linux.h (LINK_SPEC): Likewise.
28651
28652 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28653
28654         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
28655         %{version:-v}.
28656         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
28657
28658 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28659
28660         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
28661         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28662
28663 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
28664
28665         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
28666
28667 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28668
28669         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
28670         supports -Bstatic/-Bdynamic.
28671         * configure: Regenerate.
28672
28673 2011-01-14  Jan Hubicka  <jh@suse.cz>
28674             Jack Howarth  <howarth@bromo.med.uc.edu>
28675
28676         PR target/46037
28677         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
28678         when checking debug_info_level. Test write_symbols instead of
28679         debug_hooks->var_location when setting flag_var_tracking_uninit.
28680
28681 2011-01-14  Richard Guenther  <rguenther@suse.de>
28682
28683         PR tree-optimization/47179
28684         * target.def (ref_may_alias_errno): New target hook.
28685         * targhooks.h (default_ref_may_alias_errno): Declare.
28686         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
28687         (default_ref_may_alias_errno): New function.
28688         * target.h (struct ao_ref_s): Declare.
28689         * tree-ssa-alias.c: Include target.h.
28690         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
28691         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
28692         (targhooks.o): Likewise.
28693         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
28694         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
28695
28696 2011-01-14  Richard Guenther  <rguenther@suse.de>
28697
28698         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
28699
28700 2011-01-14  Richard Guenther  <rguenther@suse.de>
28701
28702         PR tree-optimization/47280
28703         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
28704         return CFG changes.
28705         (tree_ssa_forward_propagate_single_use_vars): Deal with
28706         CFG changes from associate_plusminus.
28707
28708 2011-01-14  Richard Guenther  <rguenther@suse.de>
28709
28710         PR middle-end/47281
28711         Revert
28712         2011-01-11  Richard Guenther  <rguenther@suse.de>
28713
28714         PR tree-optimization/46076
28715         * tree-ssa.c (useless_type_conversion_p): Conversions from
28716         unprototyped to empty argument list function types are useless.
28717
28718 2011-01-14  Richard Guenther  <rguenther@suse.de>
28719
28720         PR tree-optimization/47286
28721         * tree-ssa-structalias.c (new_var_info): Register variables are global.
28722
28723 2011-01-14  Martin Jambor  <mjambor@suse.cz>
28724
28725         PR middle-end/46823
28726         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
28727
28728 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
28729
28730         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
28731         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28732         * config/xtensa/xtensa.c (xtensa_libcall_value,
28733         xtensa_function_value_regno_p): New functions.
28734         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
28735
28736 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
28737
28738         PR c++/47213
28739         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
28740         PE specific hook.
28741         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
28742         New function prototype.
28743         * config/i386/winnt.c (i386_pe_assemble_visibility):
28744         Warn only if attribute was specified by user.
28745
28746 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
28747
28748         PR target/47251
28749         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
28750         floating point.
28751         (floatunsdidf2_fcfidu): Ditto.
28752
28753 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28754
28755         * config/s390/s390.c (print_operand_address): Replace 'error' with
28756         'output_operand_lossage'.
28757         (print_operand): Likewise.
28758
28759 2011-01-13  Jeff Law  <law@redhat.com>
28760
28761         PR rtl-optimization/39077
28762         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
28763         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
28764         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
28765         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
28766         * gcse.c (prune_insertions_deletions): New function.
28767         (compute_pre_data): Use it.
28768
28769 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
28770
28771         PR debug/PR46973
28772         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
28773         static function.
28774         (prune_unused_types_mark): Use it.
28775
28776 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
28777
28778         PR rtl-optimization/45352
28779         * sel-sched.c: Update copyright years.
28780         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
28781         in the advancing loop when we have issued issue_rate insns.
28782
28783 2011-01-12  Richard Henderson  <rth@redhat.com>
28784
28785         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
28786         (TARGET_MD_ASM_CLOBBERS): New.
28787
28788         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
28789         (TARGET_DELEGITIMIZE_ADDRESS): New.
28790
28791         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
28792         (clzsi2, *bsch): New patterns.
28793
28794         * config/mn10300/mn10300.md (INT): New mode iterator.
28795         (*mov<INT>_clr): New pattern, and peep2 to generate it.
28796
28797         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
28798         flag_split_wide_types.
28799
28800         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
28801         (mn10300_trampoline_init): Rewrite without a template, an immediate
28802         load and a direct branch.
28803         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
28804
28805 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
28806
28807         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28808         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
28809         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
28810         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28811
28812 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
28813
28814         PR debug/47209
28815         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
28816         of type.
28817
28818 2011-01-12  Jan Hubicka  <jh@suse.cz>
28819
28820         PR driver/47244
28821         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
28822         (PLUGIN_COND_CLOSE): New macro.
28823         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
28824
28825 2011-01-12  Richard Guenther  <rguenther@suse.de>
28826
28827         PR lto/47259
28828         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
28829         register variables in a MEM_REF.
28830
28831 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
28832
28833         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
28834         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
28835         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
28836         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28837         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28838         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
28839         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
28840         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
28841         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
28842         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
28843         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
28844         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
28845         * config/gnu-user.h: New.  Copied from linux.h.
28846         (LINUX_TARGET_STARTFILE_SPEC): Rename to
28847         GNU_USER_TARGET_STARTFILE_SPEC.
28848         (LINUX_TARGET_ENDFILE_SPEC): Rename to
28849         GNU_USER_TARGET_ENDFILE_SPEC.
28850         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
28851         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
28852         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
28853         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
28854         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
28855         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
28856         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
28857         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
28858         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
28859         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
28860         * config/arm/linux-eabi.h (CC1_SPEC): Use
28861         GNU_USER_TARGET_CC1_SPEC.
28862         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
28863         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
28864         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
28865         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
28866         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
28867         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
28868         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
28869         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
28870
28871 2011-01-12  Richard Guenther  <rguenther@suse.de>
28872
28873         PR other/46946
28874         * doc/invoke.texi (ffast-math): Document it is turned on
28875         with -Ofast.
28876
28877 2011-01-12  Jan Hubicka  <jh@suse.cz>
28878
28879         PR tree-optimization/47233
28880         * opts.c (common_handle_option): Disable ipa-reference with profile
28881         feedback.
28882
28883 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
28884
28885         * c-parser.c (c_parser_objc_at_property_declaration): Improved
28886         error message.
28887
28888 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
28889
28890         * c-parser.c (c_lex_one_token): Updated and reindented some
28891         comments.  No changes in code.
28892
28893 2011-01-11  Ian Lance Taylor  <iant@google.com>
28894
28895         * godump.c (go_output_var): Don't output the variable if there is
28896         already a type with the same name.
28897
28898 2011-01-11  Ian Lance Taylor  <iant@google.com>
28899
28900         * godump.c (go_format_type): Don't generate float80.
28901
28902 2011-01-11  Richard Henderson  <rth@redhat.com>
28903
28904         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28905         declaration.  Rewrite for both speed and size.
28906         (mn10300_address_cost_1): Remove.
28907         (mn10300_register_move_cost): New.
28908         (mn10300_memory_move_cost): New.
28909         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
28910         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
28911         extensions, shifts, BSWAP, CLZ.
28912         (mn10300_wide_const_load_uses_clr): Remove.
28913         (TARGET_REGISTER_MOVE_COST): New.
28914         (TARGET_MEMORY_MOVE_COST): New.
28915         * config/mn10300/mn10300-protos.h: Update.
28916         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28917
28918         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28919         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28920         * config/mn10300/mn10300-protos.h: Update.
28921         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28922         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28923         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28924         (*test_int_bitfield, *test_byte_bitfield): Remove.
28925         (*bit_test, *subreg_bit_test): Remove.
28926         * config/mn10300/predicates.md (const_8bit_operand): Remove.
28927
28928         * config/mn10300/constraints.md ("c"): Rename from "A".
28929         ("A", "D"): New constraint letters.
28930         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28931         (fmssf4, fnmasf4, fnmssf4): Likewise.
28932
28933         * config/mn10300/mn10300.md (isa): New attribute.
28934         (enabled): New attribute.
28935
28936         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28937         (abssf2, negsf2): Define only for hardware fp.
28938         (sqrtsf2): Reformat.
28939         (addsf3, subsf3, mulsf3): Merge expander and insn.
28940
28941         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28942         (DEBUGGER_AUTO_OFFSET): Remove.
28943         (DEBUGGER_ARG_OFFSET): Remove.
28944
28945         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28946         Emit register stores with the same offsets as the hardware.
28947         (mn10300_store_multiple_operation): Don't check that the register
28948         save offsets are monotonic.
28949         * config/mn10300/mn10300-protos.h: Update.
28950
28951         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28952
28953         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28954         in terms of the value on the stack, not the MDR register.
28955
28956 2011-01-11  Jan Hubicka  <jh@suse.cz>
28957
28958         PR lto/45721
28959         PR lto/45375
28960         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28961         (symbol_alias_set_destroy, symbol_alias_set_contains,
28962         propagate_aliases_backward): Declare.
28963         * lto-streamer-out.c (struct sets): New sturcture.
28964         (trivally_defined_alias): New function.
28965         (output_alias_pair_p): Rewrite.
28966         (output_unreferenced_globals): Fix output of alias pairs.
28967         (produce_symtab): Likewise.
28968         * ipa.c (function_and_variable_visibility): Set weak alias destination
28969         as needed in lto.
28970         * varasm.c (symbol_alias_set_t): Remove.
28971         (symbol_alias_set_destroy): Export.
28972         (propagate_aliases_forward, propagate_aliases_backward): New functions
28973         based on ...
28974         (compute_visible_aliases): ... this one; remove.
28975         (trivially_visible_alias): New
28976         (trivially_defined_alias): New.
28977         (remove_unreachable_alias_pairs): Rewrite.
28978         (finish_aliases_1): Reorganize code checking if alias is defined.
28979         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28980         in LTO mode.
28981
28982 2011-01-11  Richard Guenther  <rguenther@suse.de>
28983
28984         PR tree-optimization/46076
28985         * tree-ssa.c (useless_type_conversion_p): Conversions from
28986         unprototyped to empty argument list function types are useless.
28987
28988 2011-01-11  Richard Guenther  <rguenther@suse.de>
28989
28990         PR middle-end/45235
28991         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28992         volatile MEMs as MEM_READONLY_P.
28993
28994 2011-01-11  Richard Guenther  <rguenther@suse.de>
28995
28996         PR tree-optimization/47239
28997         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28998
28999 2011-01-11  Jeff Law  <law@redhat.com>
29000
29001         PR tree-optimization/47086
29002         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
29003         IVs from statements that might throw.
29004
29005 2011-01-10  Jan Hubicka  <jh@suse.cz>
29006
29007         PR lto/45375
29008         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
29009
29010 2011-01-10  Jan Hubicka  <jh@suse.cz>
29011
29012         PR lto/45375
29013         * profile.c (read_profile_edge_counts): Ignore profile inconistency
29014         when correcting profile.
29015
29016 2011-01-10  Jan Hubicka  <jh@suse.cz>
29017
29018         PR lto/46083
29019         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
29020         DECL_FINI_PRIORITY.
29021         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
29022         Restore DECL_FINI_PRIORITY.
29023
29024 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29025
29026         * doc/gimple.texi: Fix quoting of multi-word return values in
29027         @deftypefn statements.  Ensure presence of return value.  Wrap
29028         overlong @deftypefn lines.
29029         (is_gimple_operand, is_gimple_min_invariant_address): Remove
29030         descriptions of removed functions.
29031         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
29032         of multi-word return value in @deftypefn statement.
29033
29034 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29035
29036         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
29037         (Conditional Expressions, Logical Operators)
29038         (Statement and operand traversals): Do not indent smallexample
29039         code.  Fix duplicate function argument in example.
29040
29041 2011-01-10  Jeff Law  <law@redhat.com>
29042
29043         PR tree-optimization/47141
29044         * ipa-split.c (split_function): Handle case where we are
29045         returning a value and the return block has a virtual operand phi.
29046
29047 2011-01-10  Jan Hubicka  <jh@suse.cz>
29048
29049         PR tree-optimization/47234
29050         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
29051         (pass_feedback_split_functions): Declare.
29052         * passes.c (init_optimization_passes): Add ipa-split as subpass of
29053         tree-profile.
29054         * ipa-split.c (gate_split_functions): Update comments; disable
29055         split-functions for profile_arc_flag and branch_probabilities.
29056         (gate_feedback_split_functions): New function.
29057         (execute_feedback_split_functions): New function.
29058         (pass_feedback_split_functions): New global var.
29059
29060 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
29061
29062         PR lto/46760
29063         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
29064         calling gimple_call_set_cannot_inline.
29065
29066 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
29067
29068         * config/darwin-sections.def: Remove unused section.
29069
29070 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
29071
29072         PR c++/47218
29073         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
29074
29075 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
29076
29077         PR objc/47232
29078         * c-parser.c (c_parser_declaration_or_fndef): Improved
29079         error message.
29080
29081 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
29082
29083         * config/i386/winnt.c (i386_pe_start_function): Make sure
29084         to switch back to function's section.
29085
29086 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
29087
29088         PR gcc/46902
29089         PR testsuite/46912
29090         * plugin.c: Move include of dlfcn.h from here...
29091         * system.h: ... to here.
29092
29093 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29094
29095         * doc/cpp.texi (C++ Named Operators): Fix markup for header
29096         file name.
29097         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
29098         two extra empty pages in PDF output.
29099
29100 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
29101
29102         PR objc/47078
29103         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
29104         for error recovery purposes behave as if it was not specified so
29105         that the default type is usd.
29106
29107 2011-01-07  Jan Hubicka  <jh@suse.cz>
29108
29109         PR tree-optmization/46469
29110         * ipa.c (function_and_variable_visibility): Clear needed flags on
29111         nodes with external decls; handle weakrefs merging correctly.
29112
29113 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
29114
29115         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
29116         not false.
29117
29118 2011-01-07  Jan Hubicka  <jh@suse.cz>
29119
29120         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
29121         and no longer claim that gold is required for linker plugin.
29122         * configure: Regenerate.
29123         * gcc.c (PLUGIN_COND): New macro.
29124         (LINK_COMMAND_SPEC): Use it.
29125         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
29126         * config.in (HAVE_LTO_PLUGIN): New.
29127         * configure.ac (--with-lto-plugin): New parameter; autodetect
29128         HAVE_LTO_PLUGIN.
29129
29130 2011-01-07  Jan Hubicka  <jh@suse.cz>
29131
29132         PR tree-optimization/46367
29133         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
29134         when we can update original.
29135         (cgraph_mark_inline_edge): Sanity check.
29136         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
29137
29138 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29139
29140         * config/spu/spu.h (ASM_COMMENT_START): Define.
29141
29142 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
29143
29144         PR driver/42445
29145         * gcc.c (%>S): New.
29146         (SWITCH_KEEP_FOR_GCC): Likewise.
29147         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
29148         (do_spec_1): Handle "%>".
29149
29150         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
29151
29152 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
29153
29154         PR target/47201
29155         * config/i386/i386.c (ix86_delegitimize_address): If
29156         simplify_gen_subreg fails, return orig_x.
29157
29158         PR bootstrap/47187
29159         * value-prof.c (gimple_stringop_fixed_value): Handle
29160         lhs of the call properly.
29161
29162 2011-01-07  Jan Hubicka  <jh@suse.cz>
29163
29164         PR lto/45375
29165         * lto-opt.c (lto_reissue_options): Set flag_shlib.
29166
29167 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29168
29169         * target.def (function_switched_text_sections): New hook.
29170         * doc/tm.texi: Regenerated.
29171         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29172         * final.c (default_function_switched_text_sections): New.
29173         (final_scan_insn): Call function_switched_text_sections when a
29174         mid-function section change occurs.
29175         * output.h (default_function_switched_text_sections): Declare.
29176         * config/darwin-protos.h (darwin_function_switched_text_sections):
29177         Likewise.
29178         * config/darwin.c (darwin_function_switched_text_sections): New.
29179         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
29180
29181 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
29182
29183         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
29184         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
29185         the secondary code fragment when outputting for DWARF == 2.
29186
29187 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
29188
29189         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
29190         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
29191         Remove.
29192         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
29193         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
29194
29195 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
29196
29197         PR debug/46704
29198         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
29199         when it is not empty.
29200
29201 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
29202
29203         Bobcat Enablement
29204         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
29205         (case ${target}): Add btver1.
29206         * config/i386/driver-i386.c (host_detect_local_cpu): Let
29207         -march=native recognize btver1 processors.
29208         * config/i386/i386-c.c (ix86_target_macros_internal): Add
29209         btver1 def_and_undef
29210         * config/i386/i386.c (struct processor_costs btver1_cost): New
29211         btver1 cost table.
29212         (m_BTVER1): New definition.
29213         (m_AMD_MULTIPLE): Includes m_BTVER1.
29214         (initial_ix86_tune_features): Add btver1 tune.
29215         (processor_target_table): Add btver1 entry.
29216         (static const char *const cpu_names): Add btver1 entry.
29217         (software_prefetching_beneficial_p): Add btver1.
29218         (ix86_option_override_internal): Add btver1 instruction sets.
29219         (ix86_issue_rate): Add btver1.
29220         (ix86_adjust_cost): Add btver1.
29221         * config/i386/i386.h (TARGET_BTVER1): New definition.
29222         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
29223         (enum processor_type): Add PROCESSOR_BTVER1.
29224         * config/i386/i386.md (define_attr "cpu"): Add btver1.
29225
29226 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29227
29228         PR target/43309
29229         * config/i386/i386.c (legitimize_tls_address)
29230         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
29231         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
29232         (tls_initial_exec_64_sun): New pattern.
29233
29234 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
29235
29236         * doc/invoke.texi (Overall Options): Improve wording and markup
29237         of the description of -wrapper.
29238
29239 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29240
29241         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
29242         rdynamic, threads): New Driver options.
29243
29244 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29245
29246         PR target/38118
29247         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
29248         if coming from .tdata.
29249         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
29250
29251 2011-01-06  Jan Hubicka  <jh@suse.cz>
29252
29253         PR lto/47188
29254         * collect2.c (main): Do not enable LTOmode when plugin is active.
29255
29256 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29257
29258         PR other/45915
29259         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
29260         --version output if supported.
29261         * configure: Regenerate.
29262
29263 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
29264
29265         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
29266         Driver options.
29267
29268 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
29269
29270         PR c/47150
29271         * c-convert.c (convert): When converting a complex expression
29272         other than COMPLEX_EXPR to a different complex type, ensure
29273         c_save_expr is called instead of save_expr, unless in_late_binary_op.
29274         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
29275         when converting COMPLEX_TYPE.
29276
29277 2011-01-06  Ira Rosen  <irar@il.ibm.com>
29278
29279         PR tree-optimization/47139
29280         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
29281         only the last reduction value is used outside the loop.  Update
29282         documentation.
29283
29284 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
29285
29286         * config/rtems.opt: New.
29287         * config.gcc (*-*-rtems*): Use rtems.opt.
29288
29289 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
29290
29291         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
29292         processors do not support 3DNow instructions.
29293
29294 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29295
29296         * config/spu/spu.c (spu_option_override): Set parameter
29297         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
29298
29299 2011-01-05  Jan Hubicka  <jh@suse.cz>
29300
29301         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
29302         at the command line.
29303
29304 2011-01-05  Martin Jambor  <mjambor@suse.cz>
29305
29306         PR lto/47162
29307         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
29308         deltas on streamed outgoing edges.
29309         (output_node_opt_summary): Output info for outgoing edges only when
29310         the node is in new parameter set.
29311         (output_cgraph_opt_summary): New parameter set, passed to the two
29312         aforementioned functions.  Update its forward declaration and its
29313         callee too.
29314
29315 2011-01-05  Tom Tromey  <tromey@redhat.com>
29316
29317         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
29318         operator to c_finish_omp_atomic.
29319         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
29320         (build_unary_op): Update.
29321         (build_modify_expr): Update.
29322         (build_asm_expr): Update.
29323
29324 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29325
29326         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
29327         newly inserted insns.
29328         (pad_bb): Likewise.
29329         (spu_emit_branch_hint): Likewise.
29330         (insert_hbrp_for_ilb_runout): Likewise.
29331         (spu_machine_dependent_reorg): Call df_finish_pass after
29332         schedule_insns returns.
29333
29334 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29335
29336         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
29337
29338 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29339
29340         PR tree-optimization/47005
29341         * tree-sra.c (struct access): Add 'non_addressable' bit.
29342         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
29343         (decide_one_param_reduction): Return 0 if the parameter is passed by
29344         reference and one of the accesses in the group is non_addressable.
29345
29346 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29347
29348         PR tree-optimization/47056
29349         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
29350         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
29351         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
29352
29353 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29354
29355         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
29356         initializer.  Skip view conversions from aggregate types.
29357
29358 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
29359
29360         PR bootstrap/47055
29361         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
29362
29363 2011-01-04  Philipp Thomas  <pth@suse.de>
29364
29365         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
29366         obvious typo.
29367
29368 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29369
29370         * function.c (thread_prologue_and_epilogue_insns): Do not crash
29371         on empty epilogue sequences.
29372
29373 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
29374
29375         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
29376         non-static): New Driver options.
29377
29378 2011-01-04  Jie Zhang  <jie@codesourcery.com>
29379
29380         PR driver/47137
29381         * gcc.c (default_compilers[]): Set combinable field to 0
29382         for all assembly languages.
29383
29384 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
29385
29386         * config/mips/loongson3a.md: New file.
29387         * config/mips/mips.md: Include loongson3a.md.
29388         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
29389         TUNE_LOONGSON_3A.
29390
29391 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29392
29393         PR middle-end/47017
29394         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
29395         instead of convert_memory_address_addr_space on the base expression.
29396
29397 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29398
29399         * config/spu/spu.c (spu_option_override): Update error text
29400         for bad -march= / -mtune= values.
29401
29402 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29403
29404         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
29405         if branch-hint optimization will be performed.
29406
29407 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29408
29409         PR tree-optimization/47148
29410         * ipa-split.c (split_function): Convert arguments to
29411         DECL_ARG_TYPE if possible.
29412
29413         PR tree-optimization/47155
29414         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
29415         when computing uns.
29416
29417         PR rtl-optimization/47157
29418         * combine.c (try_combine): If undobuf.other_insn becomes
29419         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
29420         and set *new_direct_jump_p too.
29421
29422 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
29423
29424         PR tree-optimization/47021
29425         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
29426
29427 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
29428
29429         * gcc.c (process_command): Update copyright notice dates.
29430         * gcov.c (print_version): Likewise.
29431         * gcov-dump.c (print_version): Likewise.
29432         * mips-tfile.c (main): Likewise.
29433         * mips-tdump.c (main): Likewise.
29434
29435 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29436
29437         PR tree-optimization/46801
29438         * tree-sra.c (type_internals_preclude_sra_p): Check whether
29439         aggregate fields start at byte boundary instead of the bit-field flag.
29440
29441 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29442
29443         PR driver/47137
29444         * gcc.c (main): Revert revision 168407.
29445
29446 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29447
29448         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
29449
29450 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29451
29452         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
29453         vector optab to expand vector/scalar shift, update gimple to vector.
29454
29455 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29456
29457         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
29458         a thunk.
29459
29460 2011-01-03  Martin Jambor  <mjambor@suse.cz>
29461
29462         PR tree-optimization/46984
29463         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
29464         HOST_WIDE_INT.
29465         (cgraph_create_indirect_edge): Fixed line length.
29466         (cgraph_indirect_call_info): Declare.
29467         (cgraph_make_edge_direct) Update declaration.
29468         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
29469         (cgraph_create_indirect_edge): Use it.
29470         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
29471         callees.
29472         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
29473         the new thunk_delta representation.
29474         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
29475         HOST_WIDE_INT.
29476         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
29477         (ipa_read_indirect_edge_info): Likewise.
29478         * lto-cgraph.c (output_edge_opt_summary): New function.
29479         (output_node_opt_summary): Call it on all outgoing edges.
29480         (input_edge_opt_summary): New function.
29481         (input_node_opt_summary): Call it on all outgoing edges.
29482
29483 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
29484
29485         PR driver/47137
29486         * gcc.c (main): Don't check have_o when settting combine_inputs.
29487
29488 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
29489
29490         * regrename.c: Add general comment describing the pass.
29491         (struct du_head): Remove 'length' field.
29492         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
29493         (regrename_optimize): Do not sort chains.  Rework comments, add others.
29494         Force renaming to the preferred class (if any) in the first pass and do
29495         not consider registers that belong to it in the second pass.
29496         (create_new_chain): Do not set 'length' field.
29497         (scan_rtx_reg): Likewise.
29498
29499 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
29500
29501         PR tree-optimization/47140
29502         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
29503         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
29504         to bit_value_binop.
29505
29506         PR rtl-optimization/47028
29507         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
29508         parm_birth_insn instead of at the beginning of first bb.
29509
29510 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
29511
29512         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
29513         Remove the word "see" before "@pxref".
29514         * doc/rtl.texi: Remove the word "see" before "@pxref".
29515
29516 2011-01-01  Jan Hubicka  <jh@suse.cz>
29517
29518         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
29519         memory.
29520
29521 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
29522
29523         PR target/38662
29524         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
29525
29526 \f
29527 Copyright (C) 2011 Free Software Foundation, Inc.
29528
29529 Copying and distribution of this file, with or without modification,
29530 are permitted in any medium without royalty provided the copyright
29531 notice and this notice are preserved.