2013-05-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobdef2c1e221972d430a680a5113ab006ea28a23ba
1 2013-05-06  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/57185
4         * tree-parloops.c (add_field_for_reduction): Handle anonymous
5         SSA names properly.
7 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
10         (find_candidates_in_block): Re-enable slsr_process_phi.
11         (create_phi_basis): Fix double counting of candidate adjustment.
13 2013-05-06  Richard Biener  <rguenther@suse.de>
15         PR middle-end/57147
16         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
17         the edge is also fallthru, preserve it and just clear the
18         abnormal flag.
19         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
20         also complex, preserve that and just clear the fallthru flag.
21         * tree-inline.c (update_ssa_across_abnormal_edges): Also
22         update virtual operands.
24 2013-05-06  Alan Modra  <amodra@gmail.com>
26         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
28         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
29         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
30         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
31         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
33 2013-05-06  Alan Modra  <amodra@gmail.com>
35         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
36         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
37         (DEFAULT_ASM_ENDIAN): Define.
38         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
39         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
40         Update -K PIC clause from sysv4.h.
41         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
42         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
44 2013-05-06  Alan Modra  <amodra@gmail.com>
46         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
47         twice for little-endian.
48         (ashrdi3_no_power, ashrdi3): Support little-endian.
50 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
52         PR target/55303
53         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
54         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
55         related expanders.
56         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
57         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
58         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
59         New predicates.
61 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
62             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
64         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
65         * config/pa/pa.opt: Make mbig-switch a no-op.
66         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
67         (CASE_VECTOR_MODE): Always return SImode.
68         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
69         for the !TARGET_BIG_SWITCH case.
70         * config/pa/pa-linux.h: Likewise.
71         * config/pa/pa-openbsd.h: Likewise.
72         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
73         * config/pa/pa.md (short_jump): Remove define_insn.
74         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
75         (casesi0): Remove define_insn.
76         (type): Remove btable_branch.
77         (pa_combine_type): Likewise.
78         (in_nullified_branch_delay): Likewise.
79         (in_call_delay): Likewise.
80         (define_delay): Likewise.
81         (define_insn_reservation "Z3"): Likewise.
82         (define_insn_reservation "Z4"): Likewise.
83         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
84         (pa_adjust_insn_length): Remove adjustment for btable branches.
85         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
86         and mno-big-switch
88 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
90         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
91         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
92         Add m->r,x alternatives.
93         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
94         splitters using SWI48x mode iterator.
95         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
96         TARGET_64BIT.  Add m->x alternative.
97         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
98         Add o->x alternative.  Enable for TARGET_SSE.
99         (sse_storeq): Remove expander.
100         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
101         with memory input operand.
102         (*vec_extractv2di_1 splitter): New.
103         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
104         * config/i386/i386.md (ssevecmodelower): New mode attribute.
106 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
108         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
109         (INT_LOWPART): Delete.
110         (extract_MB): Adjust.
111         (extract_ME): Adjust.
112         (print_operand): Adjust.
114 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
116         * config/rs6000/predicates.md (reg_or_add_cint_operand,
117         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
118         (reg_or_logical_cint_operand, easy_fp_constant,
119         logical_const_operand): Delete "CONST_DOUBLE" case.
120         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
121         "HOST_BITS_PER_WIDE_INT == 64" test.
122         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
123         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
124         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
125         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
126         test.
127         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
128         CONST_DOUBLE DImode/VOIDmode case.
129         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
130         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
131         CONST_DOUBLE VOIDmode case.
132         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
133         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
134         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
135         Delete CONST_DOUBLE case.
136         (splitters for mov FMOVE64 const_double): Delete
137         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
138         "HOST_BITS_PER_WIDE_INT >= 64" test.
139         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
140         case.
141         (mov DI const_double): Delete.
143 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
145         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
146         on op shows all bits zero in mode of a lowpart subreg, return zero.
148 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
150         PR target/57150
151         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
152         to save TFmode registers and DImode to save TImode registers for
153         caller save operations.
154         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
155         mark being partially clobbered since they only use the first
156         double word.
158         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
159         and TDmode only use the upper 64-bits of each VSX register.
161 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
163         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
164         (find_candidates_in_block): Disable slsr_process_phi.
166 2013-05-03  Guozhi Wei  <carrot@google.com>
168         * coverage.c (coverage_obj_init): Move the construction of gcov
169         constructor to ...
170         (build_init_ctor): ... here.
172 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
174         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
175         (slsr_cand_d): Redefine def_phi.
176         (stride_status, phi_adjust_status, count_phis_status): New enums.
177         (find_phi_def): New.
178         (find_basis_for_base_expr): New.
179         (find_basis_for_candidate): Handle hidden bases.
180         (alloc_cand_and_find_basis): Handle phi candidates.
181         (slsr_process_phi): New.
182         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
183         (create_mul_imm_cand): Likewise.
184         (create_add_ssa_cand): Exclude phi base candidates.
185         (create_add_imm_cand): Likewise.
186         (slsr_process_cast): Likewise.
187         (slsr_process_copy): Likewise.
188         (find_candidates_in_block): Handle phi candidates.
189         (dump_candidate): Likewise.
190         (unconditional_cands): Delete.
191         (unconditional_cands_with_known_stride_p): Delete.
192         (phi_dependent_cand_p): New.
193         (cand_increment): Handle phi-dependent candidates.
194         (replace_dependent): Delete.
195         (replace_mult_candidate): New.
196         (replace_unconditional_candidate): New.
197         (incr_vec_index): Move to avoid forward reference.
198         (create_add_on_incoming_edge): New.
199         (create_phi_basis): New.
200         (replace_dependents): Delete.
201         (replace_conditional_candidate): New.
202         (phi_add_costs): New.
203         (replace_uncond_cands_and_profitable_phis): New.
204         (record_increment): Handle phi adjustments.
205         (record_phi_increments): New.
206         (record_increments): Handle phi adjustments.
207         (phi_incr_cost): New.
208         (lowest_cost_path): Handle phis.
209         (total_savings): Likewise.
210         (analyze_increments): Likewise.
211         (ncd_with_phi): New.
212         (ncd_of_cand_and_phis): New.
213         (nearest_common_dominator_for_cands): Handle phi increments.
214         (all_phi_incrs_profitable): New.
215         (replace_profitable_candidates): Handle phi-dependent candidates.
216         (analyze_candidates_and_replace): Likewise.
218 2013-05-03  Teresa Johnson  <tejohnson@google.com>
220         PR bootstrap/57154
221         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
222         do not exceed REG_BR_PROB_BASE.
224 2013-05-03  Jeff Law  <law@redhat.com>
226         PR tree-optimization/57144
227         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
228         operand of the condition will bit into the new type when eliminating
229         a cast feeding a condition.
231 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
233         PR rtl-optimization/57130
234         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
235         of COMPARE as in_code to the recursive call if needed.
237 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
239         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
240         (enabled): Handle new members.
241         * config/i386/sse.md (*vec_concatv2si): Merge from
242         *vec_concatv2si_sse2 and vec_concatv2si_sse.
243         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
245 2013-05-03  Joern Rennecke <joern.rennecke@embecosm.com>
247         PR tree-optimization/57027
248         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
249         for fnms opportunity, check we got the prerequisite kind
250         of tree / gimple before using accessor functions.
252 2013-05-03  Richard Biener  <rguenther@suse.de>
254         * double-int.h (lshift): New overload without precision
255         and arith argument.
256         (operator *=, operator +=, operator -=): Move ...
257         * double-int.c (operator *=, operator +=, operator -=): ... here
258         and implement more efficiently.
259         (mul_double_with_sign): Remove.
260         (lshift_double): Adjust to take unsinged shift argument, push
261         dispatching code to callers.
262         (mul_double_wide_with_sign): Add early out for callers that
263         are not interested in high parts or overflow.
264         (lshift): New function.
265         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
266         dispatch code here.
267         (lrotate, rrotate): Use logical shifts.
268         * expr.c (get_inner_reference): Use lshift.
269         * fixed-value.c (do_fixed_divide): Likewise.
270         * tree-dfa.c (get_ref_base_and_extent): Likewise.
271         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
272         (indirect_refs_may_alias_p): Likewise.
273         (stmt_kills_ref_p_1): Likewise.
275 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
277         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
279 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
281         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
282         scalar form of FABD instruction.
284 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
286         * lra-constraints.c (process_alt_operands): Add checking alt
287         number to choose the best alternative.
289 2013-05-02  Richard Biener  <rguenther@suse.de>
291         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
292         bitmap and its handling.
293         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
295 2013-05-02  Richard Biener  <rguenther@suse.de>
297         PR middle-end/57140
298         * tree-inline.c (copy_loops): Properly handle removed loops.
299         (copy_cfg_body): Mark destination loops for fixup if source
300         loops needed fixup.
302 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
304         PR target/56732
305         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
306         generating simple_return for naked functions.
308 2013-05-02  Martin Jambor  <mjambor@suse.cz>
310         PR middle-end/56988
311         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
312         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
313         flags match.
314         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
315         ipa_agg_replacement_value structures.
316         (known_aggs_to_agg_replacement_list): Likewise.
317         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
318         (read_agg_replacement_chain): Likewise.
319         (ipcp_transform_function): Also check that by_ref flags match.
321 2013-05-02  Richard Biener  <rguenther@suse.de>
323         * graphds.h (struct graph): Add obstack member.
324         * graphds.c (new_graph): Initialize obstack and allocate
325         vertices from it.
326         (add_edge): Allocate edge from the obstack.
327         (free_graph): Free the obstack instead of all edges and vertices.
329 2013-05-02  Teresa Johnson  <tejohnson@google.com>
331         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
332         divides.
333         * cfg.c (update_bb_profile_for_threading): Ditto.
334         * tree-inline.c (copy_bb): Ditto.
335         (copy_edges_for_bb): Ditto.
336         (initialize_cfun): Ditto.
337         (copy_cfg_body): Ditto.
338         (expand_call_inline): Ditto.
339         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
340         (estimate_node_size_and_time): Ditto.
341         (inline_merge_summary): Ditto.
342         * cgraphclones.c (cgraph_clone_edge): Ditto.
343         (cgraph_clone_node): Ditto.
344         * sched-rgn.c (compute_dom_prob_ps): Ditto.
345         (compute_trg_info): Ditto.
347 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
349         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
350         S reg when fp attribute set.
351         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
353 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
355         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
356         New pattern.
357         (*and_one_cmplsi3_compare0_uxtw): Likewise.
358         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
359         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
361 2013-05-02  Richard Biener  <rguenther@suse.de>
363         * tree-scalar-evolution.c (scev_info_hasher): Remove.
364         (struct instantiate_cache_entry): New type.
365         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
366         (struct instantiate_cache_type): New type.
367         (set_instantiated_value, get_instantiated_value): Remove.
368         (get_instantiated_value_entry): New function.
369         (instantiate_scev_name): Use the new cache and adjust.
370         (instantiate_scev_poly): Adjust.
371         (instantiate_scev_binary): Likewise.
372         (instantiate_array_ref): Likewise.
373         (instantiate_scev_convert): Likewise.
374         (instantiate_scev_not): Likewise.
375         (instantiate_scev_3): Likewise.
376         (instantiate_scev_2): Likewise.
377         (instantiate_scev_r): Likewise.
378         (instantiate_scev): Likewise.
379         (resolve_mixers): Likewise.
381 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
383         PR target/57091
384         * lra-constraints.c (best_small_class_operands_num): Remove.
385         (process_alt_operands): Remove small_class_operands_num.  Take
386         small classes operands into losers and only if the operand is not
387         matched.  Modify debugging output.
388         (curr_insn_transform): Remove best_small_class_operands_num.
389         Print insn name.
391 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
393         * config/aarch64/aarch64-builtins.c
394         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
395         * config/aarch64/aarch64-simd-builtins.def
396         (reduc_splus_): Add new modes.
397         (reduc_uplus_): New.
398         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
399         (reduc_uplus_v4sf): Likewise.
400         (reduc_splus_v4sf): Likewise.
401         (aarch64_addv<mode>): Likewise.
402         (reduc_uplus_<mode>): Likewise.
403         (reduc_splus_<mode>): Likewise.
404         (aarch64_addvv2di): Likewise.
405         (reduc_uplus_v2di): Likewise.
406         (reduc_splus_v2di): Likewise.
407         (aarch64_addvv2si): Likewise.
408         (reduc_uplus_v2si): Likewise.
409         (reduc_splus_v2si): Likewise.
410         (reduc_<sur>plus_<mode>): New.
411         (reduc_<sur>plus_v2di): Likewise.
412         (reduc_<sur>plus_v2si): Likewise.
413         (reduc_<sur>plus_v4sf): Likewise.
414         (aarch64_addpv4sf): Likewise.
415         * config/aarch64/arm_neon.h
416         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
417         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
418         add UNSPEC_SADDV, UNSPEC_UADDV.
419         (SUADDV): New.
420         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
422 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
424         * config/aarch64/arm_neon.h
425         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
427 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
429         * config/aarch64/aarch64-builtins
430         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
432 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
434         * config/aarch64/aarch64-simd-builtins.def
435         (reduc_smax_): New.
436         (reduc_smin_): Likewise.
437         (reduc_umax_): Likewise.
438         (reduc_umin_): Likewise.
439         (reduc_smax_nan_): Likewise.
440         (reduc_smin_nan_): Likewise.
441         (fmax): Remove.
442         (fmin): Likewise.
443         (smax): Update for V2SF, V4SF and V2DF modes.
444         (smin): Likewise.
445         (smax_nan): New.
446         (smin_nan): Likewise.
447         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
448         (<su><maxmin><mode>3): ...This, refactor.
449         (s<maxmin><mode>3): New.
450         (<maxmin_uns><mode>3): Likewise.
451         (reduc_<maxmin_uns>_<mode>): Refactor.
452         (reduc_<maxmin_uns>_v4sf): Likewise.
453         (reduc_<maxmin_uns>_v2si): Likewise.
454         (aarch64_<fmaxmin><mode>: Remove.
455         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
456         new builtin names.
457         (vmin<q>_f<32,64>): Likewise.
458         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
459         (FMAXMIN): New.
460         (su): Add mappings for smax, smin, umax, umin.
461         (maxmin): New.
462         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
463         (FMAXMIN): Rename as...
464         (FMAXMIN_UNS): ...This.
465         (maxminv): Remove.
466         (fmaxminv): Likewise.
467         (fmaxmin): Likewise.
468         (maxmin_uns): New.
469         (maxmin_uns_op): Likewise.
471 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
473         * config/aarch64/arm_neon.h
474         (vac<ge, gt><sd>_f<32, 64>): Rename to...
475         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
476         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
478 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
480         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
481         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
483 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
485         * config/aarch64/aarch64-simd.md
486         (vcond<mode>_internal): Handle special cases for constant masks.
487         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
488         (vcondu<mode><mode>): Likewise.
489         (vcond<v_cmp_result><mode>): New.
491 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
493         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
494         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
495         * config/aarch64/aarch64-simd-builtins.def
496         (cmeq): Update to BUILTIN_VALLDI.
497         (cmgt): Likewise.
498         (cmge): Likewise.
499         (cmle): Likewise.
500         (cmlt): Likewise.
501         * config/aarch64/arm_neon.h
502         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
503         to builtins or C as appropriate.
505 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
507         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
508         (cmgeu): ...This.
509         (cmhi): Rename to...
510         (cmgtu): ...This.
511         * config/aarch64/aarch64-simd.md
512         (simd_mode): Add SF.
513         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
514         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
515         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
516         (cstore<mode>_neg): ...This.
517         * config/aarch64/iterators.md
518         (VALLF): new.
519         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
520         (COMPARISONS): New.
521         (UCOMPARISONS): Likewise.
522         (optab): Add missing comparisons.
523         (n_optab): New.
524         (cmp_1): Likewise.
525         (cmp_2): Likewise.
526         (CMP): Likewise.
527         (cmp): Remove.
528         (VCMP_S): Likewise.
529         (VCMP_U): Likewise.
530         (V_cmp_result): Add DF, SF modes.
531         (v_cmp_result): Likewise.
532         (v): Likewise.
533         (vmtype): Likewise.
534         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
536 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
538         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
539         define_insn to define_insn_and_split.
540         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
541         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
542         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
543         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
544         (thumb2_negscc): Likewise.
546 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
548         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
550 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
552         * config/arm/thumb2.md: Remove trailing whitespaces.
554 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
556         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
557         Use gen_int_mode rather than GEN_INT.
559 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
561         * value-prof.c (stream_in_histogram_value): Remove the strayed
562         debug_gimple_stmt.
564 2013-04-30  Richard Biener  <rguenther@suse.de>
566         PR middle-end/57122
567         * cfghooks.c (split_edge): Properly check for the loop latch edge.
569 2013-04-30  Richard Biener  <rguenther@suse.de>
571         PR middle-end/57107
572         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
574 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
576         PR rtl-optimization/56957
577         PR rtl-optimization/57105
578         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
579         variable.  Use just INSN_UID for determining whether an insn
580         should be only disconnected from the insn stream.
581         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
583 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
585         PR tree-optimization/57104
586         * tsan.c (instrument_expr): Don't instrument accesses to
587         DECL_HARD_REGISTER VAR_DECLs.
589 2013-04-30  Richard Biener  <rguenther@suse.de>
591         * function.h (loops_for_fn): New inline function.
592         (set_loops_for_fn): Likewise.
593         * cfgloop.h (place_new_loop): Add struct function parameter.
594         (get_loop): Likewise.
595         (get_loops): Likewise.
596         (number_of_loops): Likewise.
597         (fel_next): Adjust.
598         (fel_init): Likewise.
599         * cfg.c (get_loop_copy): Adjust.
600         * cfgloop.c (flow_loops_dump): Likewise.
601         (record_loop_exits): Likewise.
602         (verify_loop_structure): Likewise.
603         * cfgloopanal.c (mark_irreducible_loops): Likewise.
604         (estimate_reg_pressure_cost): Likewise.
605         (mark_loop_exit_edges): Likewise.
606         * cfgloopmanip.c (place_new_loop): Likewise.
607         (add_loop): Likewise.
608         (duplicate_loop): Likewise.
609         * graph.c (draw_cfg_nodes): Likewise.
610         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
611         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
612         (extract_affine_chrec): Likewise.
613         (build_scop_iteration_domain): Likewise.
614         * graphite.c (graphite_initialize): Likewise.
615         * ira-build.c (create_loop_tree_nodes): Likewise.
616         (more_one_region_p): Likewise.
617         (rebuild_regno_allocno_maps): Likewise.
618         (mark_loops_for_removal): Likewise.
619         (mark_all_loops_for_removal): Likewise.
620         (remove_unnecessary_regions): Likewise.
621         (ira_build): Likewise.
622         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
623         * loop-init.c (fix_loop_structure): Likewise.
624         (gate_rtl_move_loop_invariants): Likewise.
625         (gate_rtl_unswitch): Likewise.
626         (gate_rtl_unroll_and_peel_loops): Likewise.
627         (rtl_doloop): Likewise.
628         * lto-streamer-in.c (input_cfg): Likewise.
629         * lto-streamer-out.c (output_cfg): Likewise.
630         * modulo-sched.c (sms_schedule): Likewise.
631         * predict.c (tree_estimate_probability): Likewise.
632         (tree_estimate_probability_driver): Likewise.
633         (estimate_loops): Likewise.
634         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
635         (move_sese_region_to_fn): Likewise.
636         (debug_loop_num): Likewise.
637         * tree-chrec.c (chrec_evaluate): Likewise.
638         (hide_evolution_in_other_loops_than_loop): Likewise.
639         (chrec_component_in_loop_num): Likewise.
640         (reset_evolution_in_loop): Likewise.
641         (evolution_function_is_invariant_rec_p): Likewise.
642         * tree-if-conv.c (main_tree_if_conversion): Likewise.
643         * tree-inline.c (copy_loops): Likewise.
644         (copy_cfg_body): Likewise.
645         (tree_function_versioning): Likewise.
646         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
647         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
648         Likewise.
649         (add_to_evolution_1): Likewise.
650         (scev_const_prop): Likewise.
651         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
652         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
653         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
654         (tree_ssa_lim_initialize): Likewise.
655         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
656         (verify_loop_closed_ssa): Likewise.
657         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
658         (tree_ssa_loop_im): Likewise.
659         (tree_ssa_loop_unswitch): Likewise.
660         (tree_vectorize): Likewise.
661         (check_data_deps): Likewise.
662         (tree_ssa_loop_ivcanon): Likewise.
663         (tree_ssa_loop_bounds): Likewise.
664         (tree_complete_unroll): Likewise.
665         (tree_complete_unroll_inner): Likewise.
666         (tree_parallelize_loops): Likewise.
667         (tree_ssa_loop_prefetch): Likewise.
668         (tree_ssa_loop_ivopts): Likewise.
669         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
670         * tree-vectorizer.c (vectorize_loops): Likewise.
672 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
674         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
675         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
676         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
677         with EABI_LINK_SPEC.
679 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
681         PR target/44578
682         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
683         alternative.
685 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
687         PR target/57097
688         * lra-constraints.c (process_alt_operands): Discourage a bit more
689         using memory for pseudos.  Print cost dump for alternatives.
690         Modify cost values for conflicts with early clobbers.
691         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
693 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
695         PR target/57098
696         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
698 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
700         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
701         from/to S register.
702         (movdi_aarch64): Support LDR/STR from/to D register.
704 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
706         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
707         or higher by default.
709 2013-04-29  Richard Biener  <rguenther@suse.de>
711         PR middle-end/57075
712         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
713         even if not adding abnormal edges for calls that can make
714         abnormal gotos.
716 2013-04-29  Richard Biener  <rguenther@suse.de>
718         PR middle-end/57103
719         * tree-cfg.c (move_stmt_op): Fix condition under which to update
720         TREE_BLOCK.
721         (move_stmt_r): Remove redundant checking.
723 2013-04-29  Teresa Johnson  <tejohnson@google.com>
725         PR bootstrap/57077
726         * basic-block.h (apply_scale): New function.
727         (apply_probability): Use apply_scale.
728         * gimple-streamer-in.c (input_bb): Ditto.
729         * lto-streamer-in.c (input_cfg): Ditto.
730         * lto-cgraph.c (merge_profile_summaries): Ditto.
731         * tree-optimize.c (execute_fixup_cfg): Ditto.
732         * tree-inline.c (copy_bb): Update comment to use apply_scale.
733         (copy_edges_for_bb): Ditto.
734         (copy_cfg_body): Ditto.
736 2013-04-29  Tom de Vries  <tom@codesourcery.com>
738         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
739         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
740         (tail_merge_optimize): Handle current_loops == NULL.
742 2013-04-26  Jeff Law  <law@redhat.com>
744         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
745         (simplify_cond_using_ranges): Generalize code to simplify
746         COND_EXPRs where one argument is a constant and the other
747         is an SSA_NAME created by an integral type conversion.
749 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
751         * config/arm/arm.md (store_minmaxsi): Use only when
752         optimize_insn_for_size_p.
754 2013-04-29  Christian Bruel  <christian.bruel@st.com>
756         PR target/57108
757         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
759 2013-04-29  Richard Biener  <rguenther@suse.de>
761         PR middle-end/57089
762         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
763         loop tree make sure to schedule a fixup for the child as well.
764         (expand_omp_for_generic): Properly add loops.
765         (expand_omp_for_static_nochunk): Likewise.
766         (expand_omp_for_static_chunk): Likewise.
767         (expand_omp_for): For the degenerate case fixup loops.
768         (expand_omp_sections): Fix default bb placement in loops.
769         (expand_omp_atomic_pipeline): Properly add loops.
771 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
773         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
775 2013-04-29  Tom de Vries  <tom@codesourcery.com>
777         * tree-ssa-tail-merge.c: Update header comment.
779 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
781         * config/aarch64/arm_neon.h
782         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
783         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
784         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
785         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
786         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
787         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
788         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
789         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
791 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
793         * config/aarch64/aarch64-simd.md
794         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
795         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
796         fix_trunc, fixuns_trunc.
797         (ftrunc<VDQF:mode>2): New.
798         * config/aarch64/iterators.md (optab): Add fix, fixuns.
799         (fix_trunc_optab): New.
801 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
803         * config/aarch64/aarch64-builtins.c
804         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
805         iceilf, lround, iroundf.
807 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
809         PR target/54349
810         * config/i386/i386.h (enum ix86_tune_indices)
811         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
812         New, split from X86_TUNE_INTER_UNIT_MOVES.
813         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
814         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
815         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
816         (TARGET_INTER_UNIT_MOVES): Remove.
817         * config/i386/i386.c (initial_ix86_tune_features): Update.
818         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
819         (ix86_expand_convert_uns_didf_sse): Use
820         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
821         (ix86_expand_vector_init_one_nonzero): Ditto.
822         (ix86_expand_vector_init_interleave): Ditto.
823         (inline_secondary_memory_needed): Return true for moves from SSE class
824         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
825         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
826         * config/i386/constraints.md (Yi, Ym): Depend on
827         TARGET_INTER_UNIT_MOVES_TO_VEC.
828         (Yj, Yn): New constraints.
829         * config/i386/i386.md (*movdi_internal): Change constraints of
830         operand 1 from Yi to Yj and from Ym to Yn.
831         (*movsi_internal): Ditto.
832         (*movdf_internal): Ditto.
833         (*movsf_internal): Ditto.
834         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
835         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
836         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
837         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
838         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
839         * config/i386/sse.md (movdi_to_sse): Ditto.
840         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
841         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
842         TARGET_INTER_UNIT_MOVES.
843         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
844         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
845         instead of TARGET_INTER_UNIT_MOVES.
846         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
847         operand 1 from Yi to Yj and from Ym to Yn.
849 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
851         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
852         (float_truncate_hi_): Likewise.
853         (float_extend_lo_): Likewise.
854         (float_truncate_lo_): Likewise.
855         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
856         (aarch64_float_extend_lo_v2df): Likewise.
857         (vec_unpacks_hi_v4sf): Likewise.
858         (aarch64_float_truncate_lo_v2sf): Likewise.
859         (aarch64_float_truncate_hi_v4sf): Likewise.
860         (vec_pack_trunc_v2df): Likewise.
861         (vec_pack_trunc_df): Likewise.
863 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
865         * config/aarch64/aarch64-builtins.c
866         (aarch64_fold_builtin): Fold float conversions.
867         * config/aarch64/aarch64-simd-builtins.def
868         (floatv2si, floatv4si, floatv2di): New.
869         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
870         * config/aarch64/aarch64-simd.md
871         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
872         * config/aarch64/iterators.md (FLOATUORS): New.
873         (optab): Add float, floatuns.
874         (su_optab): Likewise.
876 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
878         * config/aarch64/aarch64-builtins.c
879         (aarch64_builtin_vectorized_function): Use new names for
880         fcvt builtins.
881         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
882         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
883         (fcvtzu): Split as...
884         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
885         (fcvtas): Split as...
886         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
887         (fcvtau): Split as...
888         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
889         (fcvtps): Split as...
890         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
891         (fcvtpu): Split as...
892         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
893         (fcvtms): Split as...
894         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
895         (fcvtmu): Split as...
896         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
897         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
898         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
899         (lfrintnusf, lfrintnudf): Likewise.
900         * config/aarch64/aarch64-simd.md
901         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
902         define_insn.
903         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
904         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
905         (fcvt_pattern): Likewise.
907 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
909         * config/aarch64/aarch64-simd.md
910         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
911         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
913 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
915         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
916         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
917         (vrnd<a,m,n,p>_f32): Implement using builtins.
918         (vrnd<i,x><q>_f<32, 64>): New.
920 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
922         * config/aarch64/aarch64-builtins.c
923         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
924         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
925         (frintz): Rename to...
926         (btrunc): ...this.
927         (frintp): Rename to...
928         (ceil): ...this.
929         (frintm): Rename to...
930         (floor): ...this.
931         (frinti): Rename to...
932         (nearbyint): ...this.
933         (frintx): Rename to...
934         (rint): ...this.
935         (frinta): Rename to...
936         (round): ...this.
937         * config/aarch64/aarch64-simd.md
938         (aarch64_frint<frint_suffix><mode>): Delete.
939         (<frint_pattern><mode>2): Convert to insn.
940         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
941         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
942         (frint_pattern): Likewise.
943         (frint_suffix): Likewise.
945 2013-04-29  Richard Biener  <rguenther@suse.de>
947         PR tree-optimization/57081
948         * loop-init.c: Include tree-flow.h.
949         (loop_optimizer_finalize): Free number of iteration estimates.
950         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
952 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
954         PR tree-optimization/57083
955         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
956         non-singleton shift count range, zero extend low_bound for uns case.
958         * config/i386/predicates.md (general_vector_operand): New predicate.
959         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
960         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
961         if they aren't nonimmediate operands.  If their original values
962         satisfy const_vector_equal_evenodd_p, don't shift them.
963         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
964         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
965         if not nonimmediate_operand.
966         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
967         instead of register_operand.
968         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
970 2013-04-28  Eric Botcazou  <ebotcazou@gcc.gnu.org>
972         * stor-layout.c (finalize_size_functions): Allocate a structure and
973         reset cfun before dumping the functions.
975 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
977         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
979         PR target/56866
980         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
981         use xop_pmacsdqh if uns_p.
982         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
983         the immediate rotate count.
985 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
987         * rtl.h (struct rtx_def): Add comment for field jump.
988         (LRA_SUBREG_P): New macro.
989         * recog.c (register_operand): Check LRA_SUBREG_P.
990         * lra.c (lra): Add note at the end of RTL code. Align non-empty
991         stack frame.
992         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
993         (lra_final_code_change): Skip subreg change for operators.
994         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
995         if there are no operand changes.
996         * lra-constraints.c (curr_insn_set): New.
997         (match_reload): Set LRA_SUBREG_P.
998         (emit_spill_move): Ditto.
999         (check_and_process_move): Use curr_insn_set. Process only single
1000         set insns.  Don't initialize sec_mem_p and change_p.
1001         (simplify_operand_subreg): Use LRA_SUBREG_P.
1002         (reg_in_class_p): New function.
1003         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
1004         of #ifdef.  Add code to remove cycling.
1005         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1006         non-null disp.  Reload inner instead of disp when base and index
1007         are null.  Try to put lo_sum into register.
1008         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1009         (check_and_process_move): Move code for move cost check to
1010         simple_move_p.  Remove equiv_substitution.
1011         (simple_move_p): New function.
1012         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
1013         curr_insn_set.  Call check_and_process_move only for single set
1014         insns.  Use the new function.  Move call of check_and_process_move
1015         after operand equiv substitution and address process.
1017 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1019         PR go/57045
1020         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1021         with nonlocal goto receivers or returns twice calls, ignore
1022         unininitialized values from abnormal edges to nl goto receiver
1023         or returns twice call.
1025 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1027         PR tree-optimization/57051
1028         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1029         and VEC_RSHIFT_EXPR if shift count is a multiple of element
1030         bitsize.
1032 2013-04-26  Richard Biener  <rguenther@suse.de>
1034         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1035         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
1036         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1037         (fixup_loop_arrays_after_move): New function.
1038         (move_sese_region_to_fn): Properly outline the loop tree parts
1039         of the SESE region.
1041 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
1043         * config/i386/i386.md (type, unit): Fix long lines.
1045 2013-04-26  Richard Biener  <rguenther@suse.de>
1047         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1048         (lto-streamer-out.o): Likewise.
1049         * cfgloop.c (init_loops_structure): Export, add struct function
1050         argument and adjust.
1051         (flow_loops_find): Adjust.
1052         * cfgloop.h (enum loop_estimation): Add EST_LAST.
1053         (init_loops_structure): Declare.
1054         * lto-streamer-in.c: Include cfgloop.h.
1055         (input_cfg): Input the loop tree.
1056         * lto-streamer-out.c: Include cfgloop.h.
1057         (output_cfg): Output the loop tree.
1058         (output_struct_function_base): Do not drop PROP_loops.
1060 2013-03-26  Richard Biener  <rguenther@suse.de>
1062         * tree-cfg.c (execute_build_cfg): Build the loop tree.
1063         (pass_build_cfg): Provide PROP_loops.
1064         (move_sese_region_to_fn): Remove loops that are outlined into fn
1065         for now.
1066         * tree-inline.c: Include cfgloop.h.
1067         (initialize_cfun): Do not drop PROP_loops.
1068         (copy_loops): New function.
1069         (copy_cfg_body): Copy loop structure.
1070         (tree_function_versioning): Initialize destination loop tree.
1071         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1072         (pass_parallelize_loops): Do IL verification.
1073         * loop-init.c (loop_optimizer_init): Fixup loops if required.
1074         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1075         the CFG make sure we fixup loops as well.
1076         * tree-ssa-tail-merge.c: Include cfgloop.h.
1077         (replace_block_by): When merging loop latches mark loops for fixup.
1078         * lto-streamer-out.c (output_struct_function_base): Drop
1079         PROP_loops for now.
1080         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1081         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1082         * ipa-split.c: Include cfgloop.h.
1083         (split_function): Add the new return block to the loop tree root.
1084         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1085         whether we have removed the forwarder block.
1086         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1087         * cfgloop.h (place_new_loop): Declare.
1088         * cfgloopmanip.c (place_new_loop): Export.
1089         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1090         (tree-switch-conversion.o): Likewise.
1091         (tree-complex.o): Likewise.
1092         (tree-inline.o): Likewise.
1093         (tree-ssa-tailmerge.o): Likewise.
1094         (ipa-split.o): Likewise.
1095         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1096         (tree-ssa-copy.o): Likewise.
1097         * tree-switch-conversion.c: Include cfgloop.h
1098         (process_switch): If we emit a bit-test cascade, schedule loops
1099         for fixup.
1100         * tree-complex.c: Include cfgloop.h.
1101         (expand_complex_div_wide): Properly add new basic-blocks to loops.
1102         * asan.c: Include cfgloop.h.
1103         (create_cond_insert_point): Properly add new basic-blocks to
1104         loops, schedule loop fixup.
1105         * cfgloop.c (verify_loop_structure): Check that looks are not
1106         marked for fixup.
1107         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1108         to loops.
1109         (expand_omp_for_generic): Likewise.
1110         (expand_omp_sections): Likewise.
1111         (expand_omp_atomic_pipeline): Schedule loops for fixup.
1112         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1113         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1114         is initialized, not when loops are present.
1115         * tree-parloops.c (parallelize_loops): Remove checking here.
1116         * passes.c (init_optimization_passes): Schedule a copy-propagation
1117         pass before complete unrolling of inner loops.
1119 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1121         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1122         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1123         (colorize_init): Add argument to _WIN32 version.
1124         * toplev.c: Include diagnostic-color.h.
1125         (process_options): Default to -fdiagnostics-color=auto if
1126         GCC_COLORS env var is in the environment.
1127         * common.opt (fdiagnostics-color=): Add Var and Init.
1128         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1129         env var is in the environment, the default is auto rather than never.
1131         * diagnostic.h (file_name_as_prefix): Add context argument.
1132         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
1133         the string as locus.
1134         * langhooks.c (lhd_print_error_function): Adjust caller.
1136 2013-04-25  Lawrence Crowl  <crowl@google.com>
1138         * var-tracking.c (shared_hash_def::htab):
1139         Change type to hash_table.  Update dependent calls and types.
1141 2013-04-25  Lawrence Crowl  <crowl@google.com>
1143         * Makefile.in: Update as needed below.
1145         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1146         Move declaration to after the type's method definitons.
1148         * attribs.c (htab_t scoped_attributes::attribute_hash):
1149         Change type to hash_table.  Update dependent calls and types.
1151         * bitmap.c (htab_t bitmap_desc_hash):
1152         Change type to hash_table.  Update dependent calls and types.
1154         * cselib.c (htab_t cselib_hash_table):
1155         Change type to hash_table.  Update dependent calls and types.
1157         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1158         (hash_string_slot_node): Move implementation into lto-streamer.h
1159         struct string_slot_hasher.
1160         (eq_string_slot_node): Likewise.
1162         * data-streamer-out.c: Update output_block::string_hash_table
1163         dependent calls and types.
1165         * dwarf2cfi.c (htab_t trace_index):
1166         Change type to hash_table.  Update dependent calls and types.
1168         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1169         Change type to hash_table.  Update dependent calls and types.
1170         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1171         (htab_t optimize_external_refs::map): Likewise.
1172         (htab_t output_comp_unit::extern_map): Likewise.
1173         (htab_t output_comdat_type_unit::extern_map): Likewise.
1174         (htab_t output_macinfo::macinfo_htab): Likewise.
1175         (htab_t optimize_location_lists::htab): Likewise.
1176         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1178         * except.c (htab_t ehspec_hash_type):
1179         Change type to hash_table.  Update dependent calls and types.
1180         (assign_filter_values::ttypes): Likewise.
1181         (assign_filter_values::ehspec): Likewise.
1182         (sjlj_assign_call_site_values::ar_hash): Likewise.
1183         (convert_to_eh_region_ranges::ar_hash): Likewise.
1185         * gcse.c (htab_t pre_ldst_table):
1186         Change type to hash_table.  Update dependent calls and types.
1188         * ggc-common.c (htab_t saving_htab):
1189         Change type to hash_table.  Update dependent calls and types.
1190         (htab_t loc_hash): Likewise.
1191         (htab_t ptr_hash): Likewise.
1192         (call_count): Rename ggc_call_count.
1193         (call_alloc): Rename ggc_call_alloc.
1194         (loc_descriptor): Rename make_loc_descriptor.
1195         (add_statistics): Rename ggc_add_statistics.
1197         * ggc-common.c (saving_htab):
1198         Change type to hash_table.  Update dependent calls and types.
1200         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1201         (push_gimplify_context): Likewise.
1202         (pop_gimplify_context): Likewise.
1203         (struct gimple_temp_hash_elt): Added.
1204         (struct gimplify_hasher): Likewise.
1205         (struct gimplify_ctx.temp_htab):
1206         Change type to hash_table.  Update dependent calls and types.
1208         * gimple-fold.c: Include gimplify-ctx.h.
1210         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1211         Change type to hash_table.  Update dependent calls and types.
1212         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1213         avoid potential global name collision.
1215         * gimplify.c: Include gimplify-ctx.h.
1216         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1217         (htab_t gimplify_ctx::temp_htab):
1218         Update dependent calls and types for new type hash_table.
1219         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1220         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1222         * gimplify-ctx.h: New.
1223         (struct gimple_temp_hash_elt): Move from gimplify.c.
1224         (class gimplify_hasher): New.
1225         (struct gimplify_ctx): Move from gimple.h.
1226         (htab_t gimplify_ctx::temp_htab):
1227         Change type to hash_table.  Update dependent calls and types.
1229         * graphite-clast-to-gimple.c: Include graphite-htab.h.
1230         (htab_t ivs_params::newivs_index):
1231         Change type to hash_table.  Update dependent calls and types.
1232         (htab_t ivs_params::params_index): Likewise.
1233         (htab_t print_generated_program::params_index): Likewise.
1234         (htab_t gloog::newivs_index): Likewise.
1235         (htab_t gloog::params_index): Likewise.
1237         * graphite.c: Include graphite-htab.h.
1238         4htab_t graphite_transform_loops::bb_pbb_mapping):
1239         Change type to hash_table.  Update dependent calls and types.
1241         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1242         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1243         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1245         * graphite-dependences.c: Include graphite-htab.h.
1246         (loop_is_parallel_p): Change hash table type of parameter.
1248         * graphite-htab.h: New.
1249         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1250         (extern find_pbb_via_hash): Move from graphite-poly.h.
1251         (extern loop_is_parallel_p): Move from graphite-poly.h.
1252         (extern get_loop_body_pbbs): Move from graphite-poly.h.
1254         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1255         (extern loop_is_parallel_p): Move to graphite-htab.h.
1256         (extern get_loop_body_pbbs): Move to graphite-htab.h.
1258         * haifa-sched.c (htab_t delay_htab):
1259         Change type to hash_table.  Update dependent calls and types.
1260         (htab_t delay_htab_i2): Likewise.
1262         * ira-color.c (htab_t allocno_hard_regs_htab):
1263         Change type to hash_table.  Update dependent calls and types.
1265         * ira-costs.c (htab_t cost_classes_htab):
1266         Change type to hash_table.  Update dependent calls and types.
1268         * loop-invariant.c (htab_t merge_identical_invariants::eq):
1269         Change type to hash_table.  Update dependent calls and types.
1271         * loop-iv.c (htab_t bivs):
1272         Change type to hash_table.  Update dependent calls and types.
1274         * loop-unroll.c (htab_t opt_info::insns_to_split):
1275         Change type to hash_table.  Update dependent calls and types.
1276         (htab_t opt_info::insns_with_var_to_expand): Likewise.
1278         * lto-streamer.h (struct string_slot): Move from data-streamer.h
1279         (struct string_slot_hasher): New.
1280         (htab_t output_block::string_hash_table):
1281         Change type to hash_table.  Update dependent calls and types.
1283         * lto-streamer-in.c (freeing_string_slot_hasher): New.
1284         (htab_t file_name_hash_table):
1285         Change type to hash_table.  Update dependent calls and types.
1287         * lto-streamer-out.c: Update output_block::string_hash_table dependent
1288         calls and types.
1290         * lto-streamer.c (htab_t tree_htab):
1291         Change type to hash_table.  Update dependent calls and types.
1293         * omp-low.c: Include gimplify-ctx.h.
1295         * passes.c (htab_t name_to_pass_map):
1296         Change type to hash_table.  Update dependent calls and types.
1297         (pass_traverse): Rename to passes_pass_traverse.
1299         * plugin.c (htab_t event_tab):
1300         Change type to hash_table.  Update dependent calls and types.
1302         * postreload-gcse.c (htab_t expr_table):
1303         Change type to hash_table.  Update dependent calls and types.
1304         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1306         * sese.c (debug_rename_map_1): Make extern.
1307         (htab_t copy_bb_and_scalar_dependences::rename_map):
1308         Change type to hash_table.  Update dependent calls and types.
1310         * sese.h (extern debug_rename_map): Move to .c file.
1312         * store-motion.c (htab_t store_motion_mems_table):
1313         Change type to hash_table.  Update dependent calls and types.
1315         * trans-mem.c (htab_t tm_new_mem_hash):
1316         Change type to hash_table.  Update dependent calls and types.
1318         * tree-browser.c (htab_t TB_up_ht):
1319         Change type to hash_table.  Update dependent calls and types.
1321         * tree-cfg.c (htab_t discriminator_per_locus):
1322         Change type to hash_table.  Update dependent calls and types.
1324         * tree-complex.c: Include tree-hasher.h
1325         (htab_t complex_variable_components):
1326         Change type to hash_table.  Update dependent calls and types.
1328         * tree-eh.c (htab_t finally_tree):
1329         Change type to hash_table.  Update dependent calls and types.
1331         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1332         struct int_tree_hasher.
1333         (extern int_tree_map_eq): Likewise.
1334         (uid_decl_map_hash): Removed.
1335         (extern decl_tree_map_eq): Likewise.
1337         * tree-hasher.h: New.
1338         (struct int_tree_hasher): New.
1339         (typedef int_tree_htab_type): New.
1341         * tree-inline.c: Include gimplify-ctx.h.
1343         * tree-mudflap.c: Include gimplify-ctx.h.
1345         * tree-parloops.c: Include tree-hasher.h.
1346         (htab_t eliminate_local_variables_stmt::decl_address):
1347         Change type to hash_table.  Update dependent calls and types.
1348         (htab_t separate_decls_in_region::decl_copies): Likewise.
1350         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1351         Change type to hash_table.  Update dependent calls and types.
1353         * tree-sra.c (candidates):
1354         Change type to hash_table.  Update dependent calls and types.
1356         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1357         in tree-flow.h.
1358         (int_tree_map_hash): Likewise.
1360         * tree-ssa-dom.c (htab_t avail_exprs):
1361         Change type to hash_table.  Update dependent calls and types.
1363         * tree-ssa-live.c (var_map_base_init::tree_to_index):
1364         Change type to hash_table.  Update dependent calls and types.
1366         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1367         Change type to hash_table.  Update dependent calls and types.
1369         * tree-ssa-phiopt.c (seen_ssa_names):
1370         Change type to hash_table.  Update dependent calls and types.
1372         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1373         Change type to hash_table.  Update dependent calls and types.
1375         * tree-ssa-uncprop.c (equiv):
1376         Change type to hash_table.  Update dependent calls and types.
1378 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
1380         PR rtl-optimization/57003
1381         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1382         call note_stores with kill_clobbered_value callback again after
1383         killing regs_invalidated_by_call.
1385 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1387         * config/aarch64/aarch64-simd.md
1388         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1389         (aarch64_simd_bsl<mode>): Likewise.
1390         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1392 2013-04-25  Marek Polacek  <polacek@redhat.com>
1394         PR tree-optimization/57066
1395         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1397 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
1399         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1401 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1403         * config/aarch64/aarch64-builtins.c
1404         (aarch64_fold_builtin): New.
1405         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1406         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1407         * config/aarch64/aarch64-simd-builtins.def (abs): New.
1408         * config/aarch64/arm_neon.h
1409         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1411 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1412             Tejas Belagod  <tejas.belagod@arm.com>
1414         * config/aarch64/aarch64-builtins.c
1415         (aarch64_gimple_fold_builtin): New.
1416         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1417         * config/aarch64/aarch64-simd-builtins.def (addv): New.
1418         * config/aarch64/aarch64-simd.md (addpv4sf): New.
1419         (addvv4sf): Update.
1420         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1422 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1424         * config/aarch64/aarch64.md
1425         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1427 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1429         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1430         (*ngcsi_uxtw): New pattern.
1432 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1433             Julian Brown  <julian@codesourcery.com>
1435         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1436         (TB_DREG): Add T_V4HF.
1437         (v4hf_UP): New macro.
1438         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1439         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1440         Handle initialisation of V4HF. Adjust initialisation of reinterpret
1441         built-ins.
1442         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
1443         (arm_vector_mode_supported_p): Handle V4HF.
1444         (arm_mangle_map): Handle V4HFmode.
1445         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1446         * config/arm/arm_neon_builtins.def: Add entries for
1447         vcvtv4hfv4sf, vcvtv4sfv4hf.
1448         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
1449         (neon_vcvtv4hfv4sf): Likewise.
1450         * config/arm/neon-gen.ml: Handle half-precision floating point
1451         features.
1452         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
1453         * config/arm/arm_neon.h: Regenerate.
1454         * config/arm/neon.ml (type elts): Add F16.
1455         (type vectype): Add T_float16x4, T_floatHF.
1456         (type vecmode): Add V4HF.
1457         (type features): Add Requires_FP_bit feature.
1458         (elt_width): Handle F16.
1459         (elt_class): Likewise.
1460         (elt_of_class_width): Likewise.
1461         (mode_of_elt): Refactor.
1462         (type_for_elt): Handle F16, fix error messages.
1463         (vectype_size): Handle T_float16x4.
1464         (vcvt_sh): New function.
1465         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
1466         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
1467         (string_of_mode): Handle V4HF.
1468         * doc/arm-neon-intrinsics.texi: Regenerate.
1470 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
1472         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
1473         format specifier in 'X' case.
1475 2013-04-25  Alan Modra  <amodra@gmail.com>
1477         PR target/57052
1478         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
1479         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
1480         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
1481         Repeat for many other rotate/shift and mask patterns using subregs.
1482         Name lshiftrt insns.
1483         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
1484         on WORDS_BIG_ENDIAN.
1486 2013-04-25  Alan Modra  <amodra@gmail.com>
1488         * config.gcc: Support little-endian powerpc-linux targets.
1489         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
1490         (LINK_OS_LINUX_SPEC): Define.
1491         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
1492         Preserve MASK_LITTLE_ENDIAN.
1493         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
1494         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
1495         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
1496         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
1497         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
1498         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
1499         Correct fp word order for little-endian.  Don't shift toc entries
1500         smaller than a word for little-endian.
1501         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
1502         (bswapdi2 splits): Correct low-part subreg for little-endian.
1503         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
1504         low/high where such is correct only for be.
1505         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
1506         little-endian for -mcall-aixdesc.
1508 2013-04-25  Alan Modra  <amodra@gmail.com>
1510         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
1511         replace_equiv_address_nv.
1513 2013-04-25  Alan Modra  <amodra@gmail.com>
1515         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
1517 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1519         Revert:
1520         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1521         * rtl.h (struct rtx_def): ...
1523 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1525         PR rtl-optimizations/57046
1526         * lra-constraints (split_reg): Set up lra_risky_transformations_p
1527         for multi-reg splits.
1529 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1531         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
1533 2013-04-24  Sterling Augustine  <saugustine@google.com>
1535         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
1536         (comp_dir_string, debug_str_dwo_section): New.
1537         (DEBUG_STR_DWO_SECTION): Rename to ...
1538         (DEBUG_DWO_STR_SECTION): ... this.
1539         (DEBUG_NORM_STR_SECTION): Delete.
1540         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
1541         (DEBUG_STR_DWO_SECTION_FLAGS): New.
1542         (find_AT_string): Move most logic to ...
1543         (find_AT_string_in_table): ... here.  New.
1544         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
1545         add_skeleton_AT_string.  Delete logic.
1546         (output_skeleton_debug_sections): Remove call to
1547         add_top_level_skeleton_die_attrs.
1548         (add_comp_dir_attribute): Move logic to comp_dir_string.
1549         (dwarf2out_init): Initialize debug_str_dwo_section.
1550         (output_indirect_string): Call find_string_form.
1551         (output_indirect_strings): Rewrite.
1552         (prune_unused_types): Empty skeleton_debug_str_hash.
1553         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
1554         (dwarf2out_finish):  Call output_indirect_strings.
1556 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1558         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
1560 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1562         * rtl.h (struct rtx_def): Add comment for field jump.
1563         (LRA_SUBREG_P): New macro.
1564         * recog.c (register_operand): Check LRA_SUBREG_P.
1565         * lra.c (lra): Add note at the end of RTL code. Align non-empty
1566         stack frame.
1567         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1568         (lra_final_code_change): Skip subreg change for operators.
1569         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1570         if there are no operand changes.
1571         * lra-constraints.c (curr_insn_set): New.
1572         (match_reload): Set LRA_SUBREG_P.
1573         (emit_spill_move): Ditto.
1574         (check_and_process_move): Use curr_insn_set. Process only single
1575         set insns.  Don't initialize sec_mem_p and change_p.
1576         (simplify_operand_subreg): Use LRA_SUBREG_P.
1577         (reg_in_class_p): New function.
1578         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
1579         of #ifdef.  Add code to remove cycling.
1580         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1581         non-null disp.  Reload inner instead of disp when base and index
1582         are null.  Try to put lo_sum into register.
1583         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1584         (check_and_process_move): Move code for move cost check to
1585         simple_move_p.  Remove equiv_substitution.
1586         (simple_move_p): New function.
1587         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
1588         curr_insn_set.  Call check_and_process_move only for single set
1589         insns.  Use the new function.  Move call of check_and_process_move
1590         after operand equiv substitution and address process.
1592 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
1594         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1595         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1596         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1598 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1600         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
1602 2013-04-24  Marek Polacek  <polacek@redhat.com>
1604         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
1605         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
1606         (select_loops_exit_conditions): Likewise.
1607         (number_of_iterations_for_all_loops): Likewise.
1608         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
1609         (scev_analysis): Likewise.
1611 2013-04-02  Catherine Moore  <clm@codesourcery.com>
1612             Chao-ying Fu <fu@mips.com>
1614         * config/mips/micromips.md (jraddiusp): New pattern.
1615         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
1616         instruction if possible.
1618 2013-04-24  Alan Modra  <amodra@gmail.com>
1620         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
1622 2013-04-24  Julian Brown  <julian@codesourcery.com>
1623             Chung-Lin Tang  <cltang@codesourcery.com>
1625         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
1626         dependency behavior in enumeration type DIE generation. Add TODO note
1627         to comments about future DW_FORM_sdata/udata re-work of related code.
1629 2013-04-23  Lawrence Crowl  <crowl@google.com>
1631         * Makefile.in: Update as needed below.
1633         * hash-table.h (class hash_table):
1634         Correct many methods with parameter types compare_type to the correct
1635         value_type.  (Correct code was unlikely to notice the change.)
1636         (hash_table::elements_with_deleted) New.
1637         (class hashtable::iterator): New.
1638         (hashtable::begin()): New.
1639         (hashtable::end()): New.
1640         (FOR_EACH_HASH_TABLE_ELEMENT): New.
1642         * statistics.c (statistics_hashes):
1643         Change type to hash_table.  Update dependent calls and types.
1645         * tree-into-ssa.c (var_infos):
1646         Change type to hash_table.  Update dependent calls and types.
1648         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
1649         Change type to hash_table.  Update dependent calls and types.
1651         * tree-ssa-loop-im.c (struct mem_ref.refs):
1652         Change type to hash_table.  Update dependent calls and types.
1654         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
1655         Change type to hash_table.  Update dependent calls and types.
1657         * tree-ssa-sccvn.c (vn_tables_s::nary):
1658         Change type to hash_table.  Update dependent calls and types.
1659         (vn_tables_s::phis): Likewise.
1660         (vn_tables_s::references): Likewise.
1662         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
1663         (vn_reference_eq): Update parameter and return types.
1665         * tree-ssa-structalias.c (pointer_equiv_class_table):
1666         Change type to hash_table.  Update dependent calls and types.
1667         (location_equiv_class_table): Likewise.
1669         * tree-vect-data-refs.c: Consequential changes for making
1670         peeling a hash_table.
1672         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
1673         (destroy_loop_vec_info): Dependent hash_table update.
1675         * tree-vectorizer.h (peeling_htab):
1676         Change type to hash_table.  Update dependent calls and types.
1678 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
1680         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
1681         to check the register content is equal or not.
1682         * lra-constraints.c (match_reload): Use lra_assign_reg_val
1683         to assign register content record.
1684         * lra-eliminations.c (update_reg_eliminate): Use
1685         lra_update_reg_val_offset to update register content offset.
1686         * lra-int.h (struct lra_reg): Add offset member.
1687         (lra_reg_val_equal_p): New static inline function.
1688         (lra_update_reg_val_offset): New static inline function.
1689         (lra_assign_reg_val): New static inline function.
1690         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
1691         to assign register content record.
1692         (initialize_lra_reg_info_element): Initial offset to zero.
1694 2013-04-23  Catherine Moore  <clm@codesourcery.com>
1696         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
1697         operands.  Record compression.
1699 2013-04-23  Xinliang David Li  <davidxl@google.com>
1701         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
1703 2013-04-23  Richard Biener  <rguenther@suse.de>
1705         PR middle-end/57036
1706         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1707         parameter, only add abnormal goto edges from the copied body
1708         if the call could perform abnormal gotos.
1709         (copy_cfg_body): Adjust.
1711 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
1713         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1715 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1717         * coretypes.h (gimple_stmt_iterator): Add struct to make
1718         compatible with C.
1720 2013-04-23  Richard Biener  <rguenther@suse.de>
1722         PR tree-optimization/57026
1723         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1724         from SSA names occuring in abnormal PHI nodes.
1726 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1728         * lto/lto.c (print_lto_report_1): Fix LTO report names.
1730 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1732         * lto/lto.c (print_lto_report_1): Declare early.
1733         (read_cgraph_and_symbols): Call print_lto_report_1 early.
1735 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1737         * common.opt (-flto-report-wpa): Add.
1738         * doc/invoke.texi (-flto-report-wpa): Add.
1739         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1740         (lto_main): dito.
1742 2013-04-22  Xinliang David Li  <davidxl@google.com>
1744         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1745         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1746         * Makefile.in: New dependency
1748             David Daney <ddaney.cavm@gmail.com>
1750         * configure.ac (gcc_cv_as_micromips_support):  Use the
1751         --fatal-warnings option.
1752         * configure: Regenerate.
1754 2013-04-22  Marek Polacek  <polacek@redhat.com>
1756         PR sanitizer/56990
1757         * tsan.c (instrument_expr): Don't instrument expression
1758         in case its size is zero.
1760 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
1762         PR target/57032
1763         Revert:
1764         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
1766         * config/alpha/alpha.c (TARGET_LRA_P): New define.
1768 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1770         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1771         (gimple_stmt_iterator): New typedef.
1772         * gimple.h (gimple_stmt_iterator): Rename to...
1773         (gimple_stmt_iterator_d): ... This.
1774         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1775         trees be valid for GIMPLE and GENERIC.
1776         (TARGET_GIMPLE_FOLD_BUILTIN): New.
1777         * gimple-fold.c (gimple_fold_call): Call target hook
1778         gimple_fold_builtin.
1779         * hooks.c (hook_bool_gsiptr_false): New.
1780         * hooks.h (hook_bool_gsiptr_false): New.
1781         * target.def (fold_stmt): New.
1782         * doc/tm.texi: Regenerate.
1784 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
1786         PR target/57018
1787         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1788         a set sp if no stack realignment.
1790 2013-04-22  Nick Clifton  <nickc@redhat.com>
1792         * config.gcc (tilegx-linux): Extend extra_objs rather than
1793         overwriting it.
1794         (tilepro-linux): Likewise.
1796 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1798         * config/aarch64/aarch64-builtins.c
1799         (CF): Remove.
1800         (CF0, CF1, CF2, CF3, CF4, CF10): New.
1801         (VAR<1-12>): Add MAP parameter.
1802         (BUILTIN_*): Likewise.
1803         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1804         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1805         (aarch64_ushl_n<mode>): Likewise.
1806         (aarch64_sshr_n<mode>): Likewise.
1807         (aarch64_ushr_n<mode>): Likewise.
1808         (aarch64_<maxmin><mode>): Likewise.
1809         (aarch64_sqrt<mode>): Likewise.
1810         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1811         (vshr<q>_n_*): Likewise.
1813 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1815         * config/aarch64/aarch64-builtins.c
1816         (aarch64_simd_builtin_type_mode): Handle SF types.
1817         (sf_UP): Define.
1818         (BUILTIN_GPF): Define.
1819         (aarch64_init_simd_builtins): Handle SF types.
1820         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1821         (frecps): Likewise.
1822         (frecpx): Likewise.
1823         * config/aarch64/aarch64-simd.md
1824         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1825         (aarch64_frecpe<mode>): New.
1826         (aarch64_frecps<mode>): Likewise.
1827         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1828         (v8type): Add frecp<esx>.
1829         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1830         (aarch64_frecps<mode>): Likewise.
1831         * config/aarch64/iterators.md (FRECP): New.
1832         (frecp_suffix): Likewise.
1833         * config/aarch64/arm_neon.h
1834         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1836 2013-04-22  Christian Bruel  <christian.bruel@st.com>
1838         PR target/56995
1839         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1840         (REG_CLASS_NAMES): Idem.
1841         (REG_CLASS_CONTENTS): Idem.
1842         (REGCLASS_HAS_FP_REG): Idem.
1843         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1844         (sh_conditional_register_usage): Idem.
1846 2013-04-21  Jeff Law  <law@redhat.com>
1848         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1849         (ssa_forward_propagate_and_combine): Use it.
1851 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1853         * lra.c: Update the flow chart diagram.
1855 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1857         PR rtl-optimization/56847
1858         * lra-constraints.c (process_alt_operands): Discourage alternative
1859         with non-matche doffsettable memory constraint fro memory with
1860         known offset.
1862 2013-04-19  Richard Biener  <rguenther@suse.de>
1864         PR tree-optimization/56982
1865         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1866         function.
1867         * gimplify.c (gimplify_call_expr): Notice special calls.
1868         (gimplify_modify_expr): Likewise.
1869         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1870         abnormal control flow receivers.
1871         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1872         in the same way as cfun->has_nonlocal_labels.
1873         (gimple_purge_dead_abnormal_call_edges): Likewise.
1874         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1875         receivers start a basic-block.
1877 2013-04-19  Richard Biener  <rguenther@suse.de>
1879         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1880         member ...
1881         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
1882         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1883         (SLP_TREE_LOAD_PERMUTATION): Add.
1884         (vect_transform_slp_perm_load): Adjust prototype.
1885         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1886         (vect_free_slp_instance): Likewise.
1887         (vect_create_new_slp_node): Likewise.
1888         (vect_supported_slp_permutation_p): Remove.
1889         (vect_slp_rearrange_stmts): Adjust.
1890         (vect_supported_load_permutation_p): Likewise.  Inline
1891         vect_supported_slp_permutation_p here.
1892         (vect_analyze_slp_instance): Compute load permutations per
1893         slp node instead of per instance.
1894         (vect_get_slp_defs): Adjust.
1895         (vect_transform_slp_perm_load): Likewise.
1896         (vect_schedule_slp_instance): Remove redundant code.
1897         (vect_schedule_slp): Remove hack for PR56270, add it ...
1898         * tree-vect-stmts.c (vectorizable_load): ... here, do not
1899         CSE loads for SLP.  Adjust.
1901 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
1903         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1904         spelling in two comments.
1906 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
1908         PR target/56797
1909         * config/arm/arm.c (load_multiple_sequence): Require SP
1910         as base register for loads if SP is in the register list.
1912 2013-04-19  Martin Jambor  <mjambor@suse.cz>
1914         PR tree-optimization/56718
1915         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1916         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1917         and made public.  Adjusted all callers.
1918         (ipa_intraprocedural_devirtualization): New function.
1919         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1920         (ipa_intraprocedural_devirtualization): Likewise.
1921         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1923 2013-04-19  Richard Biener  <rguenther@suse.de>
1925         PR tree-optimization/57000
1926         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1928 2013-04-19  Terry Guo  <terry.guo@arm.com>
1930         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1931         Replace with ...
1932         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
1933         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1934         (cortex_m4_fmacs): Use new reservations.
1935         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1937 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
1939         PR rtl-optimization/56999
1940         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1941         related code.
1942         (lra_coalesce): Remove split_origin_bitmap and related code.
1943         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
1944         ranges if necessary.
1946 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
1948         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1949         New array.
1950         (ix86_expand_call): Remove clobbered_registers array and use
1951         x86_64_ms_sysv_extra_clobbered_registers instead.
1952         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1953         Declare here.
1954         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1955         predicate.
1956         * config/i386/i386.md (*call_rex64_ms_sysv): Use
1957         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
1958         (*call_value_rex64_ms_sysv): Ditto.
1960 2013-04-18  Cary Coutant  <ccoutant@google.com>
1962         * dwarf2out.c (output_pubnames): Check die_perennial_p of
1963         parent instead of die_mark.
1965 2013-04-18  Diego Novillo  <dnovillo@google.com>
1967         * gimple.c (create_gimple_tmp): New.
1968         (get_expr_type): New.
1969         (build_assign): New.
1970         (build_type_cast): New.
1971         * gimple.h (enum ssa_mode): Define.
1972         (gimple_seq_set_location): New.
1973         * asan.c (build_check_stmt): Change some gimple_build_* calls
1974         to use build_assign and build_type_cast.
1976 2013-04-18  Richard Biener  <rguenther@suse.de>
1978         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1979         handle negative step.  Remove redundant checks.
1980         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1981         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1982         for negative step and grouped loads fail to vectorize.
1984 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1986         * emit-rtl.c (reset_insn_used_flags): New function.
1987         (reset_all_used_flags): Use it.
1988         (verify_insn_sharing): New function.
1989         (verify_rtl_sharing): Fix verification for SEQUENCEs.
1991 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
1993         PR tree-optimization/56984
1994         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1995         and (x >> M) >= N don't register any assertion if N << M is the
1996         minimum value.
1998 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2000         * lower-subreg.c (resolve_simple_move): If called self-recursive,
2001         do not delete_insn insns that have not yet been emitted, only
2002         unlink them with remove_insn.
2003         * df-scan.c (df_insn_delete): Revert r197492.
2005 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
2007         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2008         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2010 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2012         * config/arm/arm.md (movsicc_insn): Convert define_insn into
2013         define_insn_and_split.
2014         (and_scc,ior_scc,negscc): Likewise.
2015         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2017 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
2019         * config/arm/arm.c (use_return_insn): Return 0 for targets that
2020         can benefit from using a sequence of LDRD instructions in epilogue
2021         instead of a single LDM instruction.
2023 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2025         PR 45688
2026         * doc/extend.texi: Fix typo.
2028 2013-04-17  Richard Biener  <rguenther@suse.de>
2030         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2031         (vect_build_slp_tree): ... here.
2032         (vect_build_slp_tree_1): Compute which stmts of the SLP group
2033         match.  Remove special-casing of mismatched complex loads.
2034         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2035         re-try the match with swapped commutative operands.
2036         (vect_supported_load_permutation_p): Remove special-casing of
2037         mismatched complex loads.
2038         (vect_analyze_slp_instance): Adjust.
2040 2013-04-17  Richard Biener  <rguenther@suse.de>
2042         PR rtl-optimization/56921
2043         * cfgloop.h (struct loop): Add simple_loop_desc member.
2044         (struct niter_desc): Mark with GTY(()).
2045         (simple_loop_desc): Do not use aux field but simple_loop_desc.
2046         * loop-iv.c (get_simple_loop_desc): Likewise.
2047         (free_simple_loop_desc): Likewise.
2049         Revert
2050         2013-04-16  Richard Biener  <rguenther@suse.de>
2052         PR rtl-optimization/56921
2053         * loop-init.c (pass_rtl_move_loop_invariants): Add
2054         TODO_do_not_ggc_collect to todo_flags_finish.
2055         (pass_rtl_unswitch): Same.
2056         (pass_rtl_unroll_and_peel_loops): Same.
2057         (pass_rtl_doloop): Same.
2059 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2061         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2062         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2063         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2064         references.
2065         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2066         * tree-streamer.c (record_common_node): Adjust reference in comment.
2068 2013-04-17  Terry Guo  <terry.guo@arm.com>
2070         * config/arm/cortex-m4.md: Add a new bypass.
2072 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2074         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2075         New pattern.
2076         (*subs_<optab><mode>_multp2): New pattern.
2077         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2078         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2080 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2082         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2083         (*subs_mul_imm_<mode>): New pattern.
2085 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
2087         PR target/56948
2088         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2089         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
2090         (vsx_movti_32bit): Change j->wa to O->wa.
2092 2013-04-16  Richard Biener  <rguenther@suse.de>
2094         PR rtl-optimization/56921
2095         * loop-init.c (pass_rtl_move_loop_invariants): Add
2096         TODO_do_not_ggc_collect to todo_flags_finish.
2097         (pass_rtl_unswitch): Same.
2098         (pass_rtl_unroll_and_peel_loops): Same.
2099         (pass_rtl_doloop): Same.
2101 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
2103         * config/arm/arm.c (emit_multi_reg_push): New declaration
2104         for an existing function.
2105         (arm_emit_strd_push): New function.
2106         (arm_expand_prologue): Used here.
2107         (arm_emit_ldrd_pop): New function.
2108         (arm_expand_epilogue): Used here.
2109         (arm_get_frame_offsets): Update condition.
2110         (arm_emit_multi_reg_pop): Add a special case for load of a single
2111         register with writeback.
2113 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
2115         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2116         description.
2118 2013-04-16  Richard Biener  <rguenther@suse.de>
2120         PR tree-optimization/56756
2121         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2122         (first_mem_ref_loc): New.
2123         (execute_sm): Place the load temporarily before a previous
2124         access instead of in the latch edge to ensure its SSA dependencies
2125         are defined at points dominating the load.
2127 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
2129         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2130         correct fix by moving header and footer insn to the footer of
2131         the merged basic block.  Clear BB_END of the merged-away block.
2133         PR middle-end/43631
2134         * emit-rtl.c (make_note_raw): New function.
2135         (link_insn_into_chain): New static inline function.
2136         (add_insn): Use it.
2137         (add_insn_before, add_insn_after): Factor insn chain linking code...
2138         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2139         using link_insn_into_chain.
2140         (note_outside_basic_block_p): New helper function for emit_note_after
2141         and emit_note_before.
2142         (emit_note_after): Use nobb variant of add_insn_after if the note
2143         should not be contained in a basic block.
2144         (emit_note_before): Use nobb variant of add_insn_before if the note
2145         should not be contained in a basic block.
2146         (emit_note_copy): Use make_note_raw.
2147         (emit_note): Likewise.
2148         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2149         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2150         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2151         the moved barrier the tail of the basic block it follows.
2152         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2154 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
2156         PR tree-optimization/56962
2157         * gimple-ssa-strength-reduction.c (record_increment): Only set
2158         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2159         either rhs1 or rhs2 is equal to c->base_expr.
2161 2013-04-15  Richard Biener  <rguenther@suse.de>
2163         PR tree-optimization/56933
2164         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2165         member.
2166         (GROUP_READ_WRITE_DEPENDENCE): Remove.
2167         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2168         * tree-vect-data-refs.c (vect_analyze_group_access): Move
2169         dependence check ...
2170         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2171         ... here.
2172         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2173         GROUP_READ_WRITE_DEPENDENCE.
2175 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2177         * emit-rtl.c (reset_all_used_flags): New function.
2178         (verify_rtl_sharing): Call reset_all_used_flags before and after
2179         performing the checks.
2181 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2183         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2184         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2185         * config/arm/constraints.md (De): New constraint.
2186         * config/arm/neon.md (anddi3_neon): Delete.
2187         (neon_vand<mode>): Expand to standard anddi3 pattern.
2188         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2189         Move earlier in the file.
2190         (neon_inv_logic_op2): Likewise.
2191         (arm_anddi_operand_neon): New predicate.
2193 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2195         * configure.ac (gcc_cv_ld_as_needed): Set
2196         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2197         Use -z ignore, -z record on *-*-solaris2*.
2198         (HAVE_LD_AS_NEEDED): Update comment.
2199         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2200         * configure: Regenerate.
2201         * config.in: Regenerate.
2202         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2203         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2204         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2205         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2206         equivalents.  Fix markup.
2207         * doc/tm.texi: Regenerate.
2209 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
2211         * config/i386/i386.opt: New option mstack-protector-guard=.
2212         * config/i386/i386-opts.h: Add enum stack_protector_guard.
2213         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2214         TARGET_SSP_TLS_GUARD.
2215         * config/i386/i386.c (ix86_option_override_internal): Set
2216         ix86_stack_protector_guard.
2217         * config/i386/i386.md (stack_protect_set): Enable for
2218         TARGET_SSP_TLS_GUARD only.
2219         (stack_protect_set_<mode>): Ditto.
2220         (stack_protect_test): Ditto.
2221         (stack_protect_test_<mode>): Ditto.
2222         * doc/invoke.texi (i386 Option): Document.
2224 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2226         PR target/56890
2227         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2228         (S_MODES): Set H_MODE bit.
2229         (SF_MODES): Set only S_MODE and SF_MODE bits.
2230         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2231         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2232         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2233         <MODE_FLOAT>: Likewise.
2235 2013-04-15  Joey Ye  <joey.ye@arm.com>
2237         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2239 2013-04-15  Joey Ye  <joey.ye@arm.com>
2241         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2242         for real far jump.
2243         (thumb_far_jump_used_p): Count instruction size and set
2244         far_jump_used.
2246 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
2248         * reorg.c (fill_simple_delay_slots): Reindent block of code.
2249         * resource.c (mark_target_live_regs): Reformat conditional block.
2251 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2253         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2254         notes, they are emitted only just before final.
2255         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2257 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
2259         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2260         * cfgrtl.c (delete_insn): Call it here instead.
2261         * lra-spills.c (lra_final_code_change): Use delete_insn.
2262         * haifa-sched.c (sched_remove_insn): Likewise.
2263         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2264         returning to the nop pool.
2265         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2266         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
2268 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
2270         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2271         * doc/tm.texi: Regenerated.
2273 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
2275         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2276         QImode checks.
2278 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
2280         * df-core.c (df_find_def): Compare register numbers.
2281         (df_find_use): Likewise.
2283 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
2285         PR target/56903
2286         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2287         lra_in_progress for return.
2289 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
2291         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2292         define_insn into define_insn_and_split and emit movsicc patterns.
2294 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
2296         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2298 2013-04-12  Richard Biener  <rguenther@suse.de>
2300         * tree-pass.h (TODO_do_not_ggc_collect): New.
2301         * passes.c (execute_one_ipa_transform_pass): Honor
2302         TODO_do_not_ggc_collect.
2303         (execute_one_pass): Likewise.
2305         Revert
2306         2013-04-10  Richard Biener  <rguenther@suse.de>
2308         * passes.c (init_optimization_passes): Remove reload pass.
2309         * ira.c (do_reload): Merge into ...
2310         (ira): ... this.
2311         (rest_of_handle_reload): Remove.
2312         (pass_reload): Likewise.
2313         * config/i386/i386.c (ix86_option_override): Refer to ira instead
2314         of reload for vzeroupper pass placement.
2316 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
2318         PR tree-optimization/56918
2319         PR tree-optimization/56920
2320         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2321         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
2322         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
2323         use wide_mul_with_sign method.
2325 2013-04-12  Richard Biener  <rguenther@suse.de>
2327         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2328         not be considered a gimple constant.
2330 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
2332         * fold-const.c (const_binop): Handle vector shifts by a scalar.
2333         (fold_binary_loc): Call const_binop also for mixed vector-scalar
2334         operations.
2336 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2337             Jakub Jelinek  <jakub@redhat.com>
2339         * opts.c: Include diagnostic-color.h.
2340         (common_handle_option): Handle OPT_fdiagnostics_color_.
2341         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2342         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2343         (diagnostic-color.o): New.
2344         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2345         (diagnostic_color_rule): New enum.
2346         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2347         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2348         the location string.
2349         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2350         either NULL, or color kind.
2351         * diagnostic-color.c: New file.
2352         * diagnostic-color.h: New file.
2353         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2354         arguments.
2355         * doc/invoke.texi (-fdiagnostics-color): Document.
2356         * pretty-print.h (pp_show_color): Define.
2357         (struct pretty_print_info): Add show_color field.
2358         * diagnostic.c: Include diagnostic-color.h.
2359         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2360         macros.  Colorize error:, warning: etc. strings and also the location
2361         string.
2362         (diagnostic_show_locus): Colorize the caret line.
2363         * pretty-print.c: Include diagnostic-color.h.
2364         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
2365         inside of %< %> quotes or quoted through q format modifier.
2367 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2369         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
2371 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2373         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2374         code in CC_NZ mode.
2375         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2376         pattern.
2378 2013-04-11  Marek Polacek  <polacek@redhat.com>
2380         PR tree-optimization/48184
2381         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
2383 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
2385         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2386         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2387         (skip_simple_arithmetic): Tidy up.
2388         * tree.h (skip_simple_constant_arithmetic): Declare.
2390 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2392         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2394 2013-04-11  Richard Biener  <rguenther@suse.de>
2396         * tree-vect-loop.c (get_initial_def_for_induction): Properly
2397         generate vector constants.
2399 2013-04-11  Richard Biener  <rguenther@suse.de>
2401         PR tree-optimization/56878
2402         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2403         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2404         New function.
2405         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2406         Prefer to align the DR with the most invariant base address.
2408 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2410         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2411         comment.
2413 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2415         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2416         floating-point vector comparisons against 0.
2418 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
2420         PR tree-optimization/56899
2421         * fold-const.c (extract_muldiv_1): Apply distributive law
2422         only if TYPE_OVERFLOW_WRAPS (ctype).
2424 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
2426         PR target/56124
2427         * ira-costs.c (scan_one_insn): Check whether the source rtx of
2428         loading has side effect.
2430 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
2432         * config/sparc/sparc.c: Include tree-pass.h.
2433         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2434         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
2435         head of file.  Change return type.  Split off gate function.
2436         (sparc_gate_work_around_errata): New function.
2437         (pass_work_around_errata): New pass definition.
2438         (insert_pass_work_around_errata) New pass insert definition to
2439         insert pass_work_around_errata just after delayed-branch scheduling.
2440         (sparc_option_override): Insert the pass.
2441         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2443 2013-04-10  David S. Miller  <davem@davemloft.net>
2445         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2446         or -mcpu=hypersparc.
2448         * target.def (cstore_mode): New hook.
2449         * target.h: Include insn-codes.h
2450         * targhooks.c: Likewise.
2451         (default_cstore_mode): New function.
2452         * targhooks.h: Declare it.
2453         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
2454         * doc/tm.texi: Rebuild.
2455         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
2456         target hook, rather than inspecting the insn_data.
2457         * config/sparc/sparc.c (sparc_cstore_mode): New function.
2458         (TARGET_CSTORE_MODE): Redefine.
2459         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
2460         result patterns.
2461         * config/sparc/predicates.md (cstore_result_operand): New special
2462         predicate.
2463         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
2464         Use it for operand 0.
2465         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
2466         (*snesi_special): Likewise.
2467         (*snesi_zero): Likewise.
2468         (*seqsi_zero): Likewise.
2469         (*sltu_insn): Likewise.
2470         (*sgeu_insn): Likewise.
2471         (*seqdi_special): Make operand 0 and comparison operation be of
2472         DImode.
2473         (*snedi_special): Likewise.
2474         (*snedi_special_vis3): Likewise.
2475         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
2476         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
2477         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
2478         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
2479         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
2480         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
2481         (*sltu_extend_sp64): Likewise.
2482         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
2483         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
2484         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
2485         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
2486         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
2488 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
2490         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
2491         (aarch64_start_file): Use the new function.
2493 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2494             Jason Merrill  <jason@redhat.com>
2496         * common.opt: Add -gdwarf.
2497         * opts.c (common_handle_option): Handle it.
2498         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
2500 2013-04-10  Richard Biener  <rguenther@suse.de>
2502         * passes.c (execute_todo): Do not call ggc_collect conditional here.
2503         (execute_one_ipa_transform_pass): But unconditionally here.
2504         (execute_one_pass): And here.
2505         (init_optimization_passes): Remove reload pass.
2506         * tree-pass.h (TODO_ggc_collect): Remove.
2507         (pass_reload): Likewise.
2508         * ira.c (do_reload): Merge into ...
2509         (ira): ... this.
2510         (rest_of_handle_reload): Remove.
2511         (pass_reload): Likewise.
2512         * config/i386/i386.c (ix86_option_override): Refer to ira instead
2513         of reload for vzeroupper pass placement.
2514         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
2515         and todo_flags_finish of all passes.
2517 2013-04-10  Richard Biener  <rguenther@suse.de>
2519         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
2520         first_const_oprnd field, rename first_def_type to first_op_type.
2521         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
2522         (vect_get_and_check_slp_defs): Always use the type of the
2523         operand.  Allow mixed vect_external_def, vect_constant_def types.
2524         (vect_get_constant_vectors): Handle mixed vect_external_def,
2525         vect_constant_def types.
2527 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
2529         PR tree-optimization/55524
2530         * tree-ssa-math-opts.c
2531         (convert_mult_to_fma): Don't use an fms construct
2532         when we don't have an fms operation, but fnma, and it looks
2533         likely that we'll be able to use the latter.
2535 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
2537         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
2538         function.
2539         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
2540         inline fail caused by overwritable functions.
2542 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2544         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
2545         unnecessary bits in the constant power of two case.
2547 2013-04-10  Richard Biener  <rguenther@suse.de>
2549         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2550         broken code swapping operands.
2551         (vect_build_slp_tree): Do not compute load permutations here.
2552         (vect_analyze_slp_instance): Compute load permutations here,
2553         after building the SLP tree.
2555 2013-04-09  Christian Bruel  <christian.bruel@st.com>
2557         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
2558         of next/prev_real_insn.
2560 2013-04-09  Jan Hubicka  <jh@suse.cz>
2562         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2563         Drop aliased parameter.
2564         (function_and_variable_visibility): Do not handle alias pairs.
2565         * cgraph.c (varpool_externally_visible_p): Update prototype.
2566         * varpool.c (varpool_add_new_variable): Update.
2568 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2570         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
2572 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
2574         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
2576         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
2578 2013-04-09  Marek Polacek  <polacek@redhat.com>
2580         PR tree-optimization/48762
2581         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
2583 2013-04-09  Richard Biener  <rguenther@suse.de>
2585         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
2586         dealing with cost.
2587         (vect_build_slp_tree): Likewise.
2588         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
2589         calculating the cost of a SLP instance.
2590         (vect_analyze_slp_instance): Use it from here, after building
2591         the SLP tree.
2593 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
2595         PR middle-end/56883
2596         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2597         expand_omp_for_static_chunk): Use simple_p = true in
2598         force_gimple_operand_gsi calls when assigning to addressable decls.
2600 2013-04-09  Jeff Law  <law@redhat.com>
2602         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
2603         when the boolean was created by converting a wider object which
2604         had a boolean range.
2606 2013-04-09  Richard Biener  <rguenther@suse.de>
2608         * tree-vectorizer.h (slp_void_p): Remove.
2609         (slp_tree): Typedef before _slp_tree declaration.
2610         (struct _slp_tree): Use a vector of slp_tree as children.
2611         (vect_get_place_in_interleaving_chain): Remove.
2612         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
2613         Move ...
2614         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
2615         and make static.
2616         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
2617         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
2618         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
2619         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
2620         Use slp_node instead of slp_void_p and adjust.
2622 2013-04-09  Richard Biener  <rguenther@suse.de>
2624         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
2625         work that is not necessary.
2627 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
2629         PR tree-optimization/56854
2630         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
2631         forward into clobber stmts if it would change MEM_REF lhs into
2632         non-MEM_REF.
2634 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
2636         * tree.c (type_hash_lookup, type_hash_add): Make static.
2637         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
2639 2013-04-09  Richard Biener  <rguenther@suse.de>
2641         * tree.h (unsave_expr_now): Remove.
2642         * tree-inline.c (mark_local_for_remap_r): Remove.
2643         (unsave_expr_1): Likewise.
2644         (unsave_r): Likewise.
2645         (unsave_expr_now): Likewise.
2646         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
2647         (propagate_tree_value): Likewise.
2649 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
2651         * doc/rtl.texi (sequence): Rewrite documentation to match the
2652         current use of SEQUENCE rtl objects.
2653         * rtl.def (SEQUENCE): Likewise.
2655         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
2656         Update documentation.
2657         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
2658         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
2660         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
2662 2013-04-08  Teresa Johnson  <tejohnson@google.com>
2664         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
2665         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
2666         methods.
2667         (estimate_edge_size_and_time): Add comment to suggest using rounding
2668         methods.
2669         (estimate_node_size_and_time): Ditto.
2670         (remap_edge_change_prob): Use helper rounding divide methods.
2671         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
2672         (gimple_mod_pow2_value_transform): Ditto.
2673         (gimple_mod_subtract_transform): Ditto.
2674         (gimple_ic_transform): Ditto.
2675         (gimple_stringops_transform): Ditto.
2676         * stmt.c (conditional_probability): Ditto.
2677         (emit_case_dispatch_table): Ditto.
2678         * lto-cgraph.c (merge_profile_summaries): Ditto.
2679         * tree-optimize.c (execute_fixup_cfg): Ditto.
2680         * cfgcleanup.c (try_forward_edges): Ditto.
2681         * cfgloopmanip.c (scale_loop_profile): Ditto.
2682         (loopify): Ditto.
2683         (duplicate_loop_to_header_edge): Ditto.
2684         (lv_adjust_loop_entry_edge): Ditto.
2685         * tree-vect-loop.c (vect_transform_loop): Ditto.
2686         * profile.c (compute_branch_probabilities): Ditto.
2687         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2688         * lto-streamer-in.c (input_cfg): Ditto.
2689         * gimple-streamer-in.c (input_bb): Ditto.
2690         * ipa-cp.c (update_profiling_info): Ditto.
2691         (update_specialized_profile): Ditto.
2692         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
2693         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
2694         rounding methods.
2695         * sched-rgn.c (compute_dom_prob_ps): Ditto.
2696         (compute_trg_info): Ditto.
2697         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
2698         (purge_dead_edges): Ditto.
2699         * loop-unswitch.c (unswitch_loop): Ditto.
2700         * cgraphclones.c (cgraph_clone_edge): Ditto.
2701         (cgraph_clone_node): Ditto.
2702         * tree-inline.c (copy_bb): Ditto.
2703         (copy_edges_for_bb): Ditto.
2704         (initialize_cfun): Ditto.
2705         (copy_cfg_body): Ditto.
2706         (expand_call_inline): Ditto.
2708 2013-04-08  Kai Tietz  <ktietz@redhat.com>
2710         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2711         TARGET_CYGWIN64 by TARGET_64BIT.
2713 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2715         * config/epiphany/epiphany.md (GPR_1): New constant.
2716         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2717         * config/epiphany/epiphany.c (gen_compare_reg):
2718         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2719         is already in place.
2720         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2721         Don't require being called during rtl expansion; If y operlaps r0,
2722         return 0.
2723         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2724         (epiphany_expand_epilogue): Likewise.
2726         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2727         Don't use CC_FPmode for ORDERED / UNORDERED.
2728         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2730         * config/epiphany/constraints.md (CnL): New constraint.
2731         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2732         * config/epiphany/predicates.md (add_operand): Allow 1024.
2734         * config/epiphany/epiphany.md (logical_op): New code iterator.
2735         (op_mnc): New code attribute.
2736         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2737         (mov_f+1, mov_f+2): New peephole2 patterns.
2739         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2740         (cstoresi4): Also allow re-use of zero result when doing a NE
2741         comparison to a non-zero operand.
2742         Use (clobber (scratch)) for first insn if the gpr output is not needed.
2744         * config/epiphany/epiphany.md (<insn_opname>v2si3):
2745         Use gen_addsi3_i / gen_subsi3_i.
2747 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
2749         PR c++/34949
2750         PR c++/50243
2751         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2752         contain anything but clobbers, at most one __builtin_stack_restore,
2753         optionally debug stmts and final resx, and if it has at least one
2754         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
2755         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2756         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2757         which isn't defaut definition, remove them.
2758         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2759         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2760         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2761         with MEM_REF LHS with SSA_NAME address.
2763 2013-04-08  Jeff Law  <law@redhat.com>
2765         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2767 2013-04-08  Richard Biener  <rguenther@suse.de>
2769         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2770         extra newline.
2771         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2772         determined vector type.
2773         (vect_analyze_data_refs): Likewise.
2774         (vect_get_new_vect_var): Adjust.
2775         (vect_create_destination_var): Preserve SSA name versions.
2776         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2777         not dump anything here.
2779 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2781         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2782         Add member lr_slot_known.
2783         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2784         if necessary.
2785         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2786         Remove code that sets lr_slot_offset according to what a previous
2787         version of epiphany_emit_save_restore used to do.
2788         (epiphany_emit_save_restore): When doing an lr save or restore,
2789         set/verify lr_slot_known and lr_slot_offset.
2791 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
2793         PR target/54338
2794         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2795         in ALL_REGS.
2797 2013-04-08  Richard Biener  <rguenther@suse.de>
2799         * alias.c (find_base_term): Fix thinko in previous change.
2801 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
2803         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2804         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2805         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
2806         if possible to compute val.
2807         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2808         For QImode integers don't require anything about precision.  Use
2809         const_with_all_bytes_same to find out if the constant doesn't have
2810         repeated bytes in it.
2812 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2814         * config/s390/s390.c (s390_expand_insv): Only accept insertions
2815         within mode size.
2817 2013-04-08  Marek Polacek  <polacek@redhat.com>
2819         PR rtl-optimization/48182
2820         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2821         value to 1.
2823 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2825         PR target/55487
2826         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2827         nuses, make sure we have a label.
2829 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2831         PR target/56843
2832         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2833         (rs6000_emit_swdiv_low_precision): Remove.
2834         (rs6000_emit_swdiv): Rewrite to handle between one and four
2835         iterations of Newton-Raphson generally; modify required number of
2836         iterations for some cases.
2837         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2839 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2841         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2842         set-but-unused variable.
2844         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2845         basic blocks of released function bodies garbage-collectable.
2847         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2848         (struct rtl_opt_pass): Add TODO_df_finish.
2850         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2852 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2854         * config/arm/constraints.md (q): New constraint.
2855         * config/arm/ldrdstrd.md: New file.
2856         * config/arm/arm.md (ldrdstrd.md) New include.
2857         (arm_movdi): Use "q" instead of "r" constraint
2858         for double-word memory access.
2859         (movdf_soft_insn): Likewise.
2860         * config/arm/vfp.md (movdi_vfp): Likewise.
2861         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2862         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2863         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2864         (mem_ok_for_ldrd_strd): Likewise.
2865         (output_move_double): Update assertion.
2867 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2869         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2871 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2873         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2874         define_insn_and_split.
2875         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2877 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2879         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2880         define_insn_and_split.
2881         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2882         (shiftsi3_compare): New pattern.
2883         (rrx): New pattern.
2884         * config/arm/unspecs.md (UNSPEC_RRX): New.
2886 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2888         * config/arm/arm.md (negdi_extendsidi): New pattern.
2889         (negdi_zero_extendsidi): Likewise.
2891 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2893         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2894         define_insn_and_split.
2895         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2896         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2898 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2900         * config/arm/arm.md (arm_subdi3): Convert define_insn into
2901         define_insn_and_split.
2902         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2903         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2905 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2907         * config/arm/arm.md (subsi3_carryin): New pattern.
2908         (subsi3_carryin_const): Likewise.
2909         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2910         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2912 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2914         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2916 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2918         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2919         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2921 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2923         * config/arm/arm.c (arm_expand_builtin): Change fcode
2924         type to unsigned int.
2926 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2928         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2930 2013-04-04  Ian Lance Taylor  <iant@google.com>
2932         * doc/standards.texi (Standards): The Go frontend supports the Go 1
2933         language standard.
2935 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2937         PR middle-end/56729
2938         * df-scan.c (df_insn_delete): Disable failing assert.
2940 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2942         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2943         New function prototype.
2944         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2945         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2946         (arm_builtin_vectorized_function): New function.
2948 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2950         * config/arm/arm_neon_builtins.def: New file.
2951         * config/arm/arm.c (neon_builtin_data): Move contents to
2952         arm_neon_builtins.def.
2953         (enum arm_builtins): Include neon builtin definitions.
2954         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2955         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2957 2013-04-04  Marek Polacek  <polacek@redhat.com>
2959         PR tree-optimization/48186
2960         * predict.c (maybe_hot_frequency_p): Return false if
2961         HOT_BB_FREQUENCY_FRACTION is 0.
2962         (cgraph_maybe_hot_edge_p): Likewise.
2964 2013-04-04  Richard Biener  <rguenther@suse.de>
2966         PR tree-optimization/56826
2967         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2968         more accurately.
2970 2013-04-04  Richard Biener  <rguenther@suse.de>
2972         PR tree-optimization/56213
2973         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2974         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2976 2013-04-04  Richard Biener  <rguenther@suse.de>
2978         PR tree-optimization/56837
2979         * tree-loop-distribution.c (classify_partition): For non-zero
2980         values require that the value has the same precision as its
2981         mode to be useful as memset value.
2983 2013-04-03  Nick Clifton  <nickc@redhat.com>
2985         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2986         (fmssf4): Use fmsf.s on E3V5 architectures.
2987         (fnmasf4): Use fnmaf.s on E3V5 architectures.
2988         (fnmssf4): Use fnmsf.s on E3V5 architectures.
2990 2013-04-03  Jeff Law  <law@redhat.com>
2992         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2993         (lra-eliminations.o): Likewise.
2995 2013-04-03  Teresa Johnson  <tejohnson@google.com>
2997         * gcov-io.c (compute_working_sets): Moved most of body of old
2998         compute_working_sets here from profile.c.
2999         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
3000         (gcov_working_set_t): Moved typedef here from basic-block.h
3001         (compute_working_set): Declare.
3002         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3003         (get_working_sets): Renamed from compute_working_set,
3004         replace most of body with call to new compute_working_sets.
3005         (get_exec_counts): Replace call to compute_working_sets
3006         to get_working_sets.
3007         * profile.h (get_working_sets): Renamed from compute_working_set.
3008         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
3009         to get_working_sets.
3010         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3011         * gcov-dump.c (dump_working_sets): New function.
3013 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
3015         * hwint.c (sext_hwi, zext_hwi): New functions.
3016         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3017         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3018         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3019         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3020         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3021         (sext_hwi, zext_hwi): New functions.
3023 2013-04-03  Jeff Law  <law@redhat.com>
3025         PR tree-optimization/56799
3026         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3027         back test for widening conversion erroneously dropped in prior change.
3029 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3031         PR target/56809
3032         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3033         instead of next_real_insn.
3035 2013-04-03  Marek Polacek  <polacek@redhat.com>
3037         PR sanitizer/55702
3038         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
3040 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3042         PR target/56809
3043         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3044         next_real_insn.
3045         (thumb1_output_casesi): Likewise.
3046         (thumb2_output_casesi): Likewise.
3048 2013-04-03  Richard Biener  <rguenther@suse.de>
3050         PR tree-optimization/56817
3051         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3052         Split out ...
3053         (tree_unroll_loops_completely_1): ... new function to manually
3054         walk the loop tree, properly defering outer loops of unrolled
3055         loops to later iterations.
3057 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3059         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3060         (vectorizable_load): Likewise.
3061         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3062         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3064 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3066         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3067         BIT_FIELD_REF.
3069 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3071         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3073 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
3075         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3077 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3079         PR tree-optimization/56790
3080         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3081         folding.
3083 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
3085         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3086         Handle VEC_MERGE.
3087         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3088         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3089         equal arguments.
3091 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
3093         PR c/19449
3094         * tree.h (force_folding_builtin_constant_p): New decl.
3095         * builtins.c (force_folding_builtin_constant_p): New variable.
3096         (fold_builtin_constant_p): Fold immediately also if
3097         force_folding_builtin_constant_p.
3099 2013-04-03  Richard Biener  <rguenther@suse.de>
3101         PR tree-optimization/56812
3102         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3103         DRs of the same interleaving chain are independent.
3105 2013-04-02  Jason Merrill  <jason@redhat.com>
3107         * gdbinit.in (pbb): Use debug fn.
3109 2013-04-02  Lawrence Crowl  <crowl@google.com>
3111         * sese.h (struct ivtype_map_elt_s): Remove unused.
3112         (extern debug_ivtype_map): Remove unused.
3113         (extern eq_ivtype_map_elts): Remove unused.
3114         * sese.c (debug_ivtype_map): Removed unused.
3115         (debug_ivtype_map_1): Removed unused.
3116         (debug_ivtype_elt): Remove unused.
3117         (eq_ivtype_map_elts): Remove unused.
3120 2013-04-02  Kai Tietz  <ktietz@redhat.com>
3122         PR target/52790
3123         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3124         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
3125         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3126         function.
3127         (legitimize_pe_coff_symbol): Likewise.
3128         (is_imported_p): New helper-function.
3129         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3130         for Windows x64 targets.
3131         (ix86_expand_prologue): Optimize for pe-coff targets.
3132         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3133         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3134         medium/large code-model.
3135         (legitimize_pic_address): Likewise.
3136         (legitimize_tls_address): Likewise.
3137         (ix86_expand_call): Likewise.
3138         (x86_output_mi_thunk): Likewise.
3139         (get_dllimport_decl): Add new beimport argument.
3140         (construct_plt_address): Don't assert for x64 pe-coff targets.
3141         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3142         targets.
3143         (SYMBOL_FLAG_STUBVAR): New macro.
3144         (SYMBOL_REF_STUBVAR_P): Likewise.
3145         * config/i386/winnt.c (stub_list): New structure.
3146         (stub_head): New local variable.
3147         (i386_pe_record_stub): New function.
3148         (i386_pe_file_end): Emit refptr-stubs.
3150 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
3152         PR rtl-optimization/56745
3153         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3154         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3156         PR c++/34949
3157         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3158         and both of them are MEM_REFs, just compare first argument for
3159         equality and attempt to deal even with differing offsets.
3161         PR c++/34949
3162         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3163         of gimple_clobber_p to be MEM_REF.
3164         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3165         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
3166         after gimplification.
3167         * asan.c (get_mem_ref_of_assignment): Don't instrument
3168         gimple_clobber_p stmts.
3169         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3170         gimple_clobber_p stmt if they have MEM_REF lhs and
3171         are dead because of another gimple_clobber_p stmt.
3172         * tree-ssa-live.c (clear_unused_block_pointer): Treat
3173         gimple_clobber_p stmts like debug stmts.
3174         (remove_unused_locals): Remove clobbers with MEM_REF lhs
3175         that refer to unused VAR_DECLs or uninitialized values.
3176         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3177         gimple_clobber_p stmts if they refer to removed parameters.
3178         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3179         formatting.
3181 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
3183         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3184         using SWI48 mode attribute.
3186 2013-04-02  Wei Mi  <wmi@google.com>
3188         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3189         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3190         *<rotate_insn><mode>3_mask in i386.md.
3192 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3194         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3196 2013-04-02  Richard Biener  <rguenther@suse.de>
3198         PR tree-optimization/56778
3199         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3200         Runtime alias tests are not supported for gather loads.
3201         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3202         stmts referenced from SSA operands before updating SSA form.
3204 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
3205             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3207         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
3208         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3209         * config/arm/cortex-a53.md: New file.
3210         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3211         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3212         * config/arm/arm.c (arm_issue_rate): Likewise.
3213         * config/arm/arm-tune.md: Regenerate
3214         * config/arm/arm-tables.opt: Regenerate.
3215         * config/arm/arm-cores.def: Add cortex-a53.
3217 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3219         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3220         non-static link.
3222 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
3224         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3225         scalar load/store operations using B/H registers.
3226         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3228 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
3230         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3231         scalar move.
3232         * config/aarch64/aarch64.c
3233         (aarch64_simd_scalar_immediate_valid_for_move): New.
3234         * config/aarch64/aarch64-protos.h
3235         (aarch64_simd_scalar_immediate_valid_for_move): New.
3236         * config/aarch64/constraints.md (Dh, Dq): New.
3237         * config/aarch64/iterators.md (hq): New.
3239 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
3241         * reorg.c (get_branch_condition): Deal with conditional returns.
3242         (fill_simple_delay_slots): Remove dead code dealing with jumps.
3244 2013-04-01  Wei Mi  <wmi@google.com>
3246         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3247         Truncate operand 2 using %b asm operand modifier.
3248         (*<shift_insn><mode>3_mask): Ditto.
3249         (*<rotate_insn><mode>3_mask): Ditto.
3251 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3253         PR middle-end/56798
3254         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3256 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3258         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3259         of next_real_insn.
3260         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3262 2013-03-30  Lawrence Crowl  <crowl@google.com>
3264         * dse.c (clear_alias_sets): Remove never set.
3265         (disqualified_clear_alias_sets): Remove never set.
3266         (clear_alias_mode_pool): Remove never set.
3267         (dse_step0): Remove condition that is never true.
3268         (canon_address): Remove condition that is never true.
3269         (dse_step7): Remove condition that is never true.
3270         (rest_of_handle_dse): Remove condition that is never true.
3271         (rest_of_handle_dse::did_global): Remove never read from above.
3272         (dse_step2_spill): Remove never called from above.
3273         (dse_step5_spill): Remove never called from above.
3275 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
3277         * doc/md.texi (Standard Names) <casesi>: Update documentation for
3278         JUMP_TABLE_DATA changes.
3279         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3280         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3281         (Insns) <jump_table_data>: New entry.
3282         * doc/tm.texi: Regenerate.
3284         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3286         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3287         for table jump at the end of a basic block using tablejump_p.
3288         * targhooks.c (default_invalid_within_doloop): Likewise.
3289         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3290         target hook implementation that is identical to the default hook.
3291         (rs6000_invalid_within_doloop): Remove.
3293         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3294         unused variable from tablejump_p call.
3296         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3297         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3298         (INSN_DELETED_P): Likewise.
3299         (emit_jump_table_data): New prototype.
3300         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3301         after 4th as unused.
3302         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3303         * sched-vis.c (print_insn): Likewise.
3304         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3305         insn for compatibility with back ends that use next_active_insn to
3306         identify jump table data.
3307         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3308         (remove_insn): Likewise.
3309         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3310         to be emitted.
3311         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3312         (emit_jump_table_data): New function.
3314         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3315         basic block, a JUMP_TABLE_DATA never is.
3316         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3317         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3318         off from code handling real insns.
3319         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3320         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3321         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3322         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3323         is not a NONDEBUG_INSN_P.
3324         * ira-costs.c (scan_one_insn): Likewise.
3325         * jump.c (mark_all_labels): Likewise.
3326         (mark_jump_label_1): Likewise.
3327         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3328         * lra.c (get_insn_freq): Expect all insns reaching here to be in
3329         a basic block.
3330         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3331         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3332         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3333         JUMP_TABLE_DATA_P insns.
3334         (calculate_elim_costs_all_insns): Likewise.
3335         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3336         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3337         (delete_output_reload): Code style fixups.
3338         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3339         insn flags on this non-insn.
3340         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3341         as scheduling barriers, for pre-change compatibility.
3342         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3343         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3345         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3346         redundant JUMP_TABLE_DATA_P test.
3347         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3348         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3349         (frv_for_each_packet): Likewise.
3350         * config/i386/i386.c (min_insn_size): Likewise.
3351         (ix86_avoid_jump_mispredicts): Likewise.
3352         * config/m32r/m32r.c (m32r_is_insn): Likewise.
3353         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3354         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3355         (mips16_insn_length): Robustify.
3356         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3357         (mips16_split_long_branches): Likewise.
3358         * config/pa/pa.c (pa_combine_instructions): Likewise.
3359         * config/rs6000/rs6000.c (get_next_active_insn): Treat
3360         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3361         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3362         as contributing to pool range lengths.
3363         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3364         Remove redundant JUMP_TABLE_DATA_P test.
3365         (sh_loop_align): Likewise.
3366         (split_branches): Likewise.
3367         (sh_insn_length_adjustment): Likewise.
3368         * config/spu/spu.c (get_branch_target): Likewise.
3370 2013-03-29  Jan Hubicka  <jh@suse.cz>
3372         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3373         gcov streaming; stream hot bb threshold to ltrans.
3374         * predict.c (get_hot_bb_threshold): Break out from ....
3375         (maybe_hot_count_p): ... here.
3376         (set_hot_bb_threshold): New function.
3377         * lto-section-in.c (lto_section_name): Add profile.
3378         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3379         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3380         and data-streamer.h
3381         (histogram_entry): New structure.
3382         (histogram, histogram_pool): New global vars.
3383         (histogram_hash): New structure.
3384         (histogram_hash::hash): New method.
3385         (histogram_hash::equal): Likewise.
3386         (account_time_size): New function.
3387         (cmp_counts): New function.
3388         (dump_histogram): New function.
3389         (ipa_profile_generate_summary): New function.
3390         (ipa_profile_write_summary): New function.
3391         (ipa_profile_read_summary): New function.
3392         (ipa_profile): Decide on threshold.
3393         (pass_ipa_profile): Add ipa_profile_write_summary and
3394         ipa_profile_read_summary.
3395         * Makefile.in (ipa.o): Update dependencies.
3396         * lto-streamer.h (LTO_section_ipa_profile): New section.
3398 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3400         * tree.h (VAR_P): New.
3402 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
3404         PR lto/56777
3405         * doc/invoke.texi ([-fwhole-program]): Fix typo.
3407 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
3409         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3410         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3411         (control_flow_insn_p): Likewise.
3412         * cfgrtl.c (duplicate_insn_chain): Likewise.
3413         * final.c (get_attr_length_1): Likewise.
3414         (shorten_branches): Likewise.
3415         (final_scan_insn): Likewise.
3416         * function.c (instantiate_virtual_regs): Likewise.
3417         * gcse.c (insert_insn_end_basic_block): Likewise.
3418         * ira-costs.c (scan_one_insn): Likewise.
3419         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3420         * lra.c (check_rtl): Likewise.
3421         * reload1.c (elimination_costs_in_insn): Likewise.
3422         * reorg.c (follow_jumps): Likewise.
3424         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3425         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3426         (thumb_far_jump_used_p): Likewise.
3427         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3428         (workaround_speculation): Likewise.
3429         (add_sched_insns_for_speculation): Likewise.
3430         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3431         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3432         (frv_for_each_packet): Likewise.
3433         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3434         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3435         (final_emit_insn_group_barriers): Likewise.
3436         * config/m32r/m32r.c (m32r_is_insn): Likewise.
3437         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3438         (mips16_insn_length): Likewise.
3439         * config/pa/pa.c (pa_reorg): Likewise.
3440         (pa_combine_instructions): Likewise.
3441         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3442         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3443         (sh_reorg): Likewise.
3444         (split_branches): Likewise.
3445         * config/spu/spu.c (get_branch_target): Likewise.
3447         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
3448         JUMP_TABLE_DATA_P.
3450 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
3452         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
3453         Fix declaration name.
3455 2013-03-28  Lawrence Crowl  <crowl@google.com>
3457         * graphds.h (struct graph.indicies): Remove unused.
3458         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
3459         (SCOP_ORIGINAL_PDDRS): Remove unused.
3460         * sese.h (extern insert_loop_close_phis): Removed unused.
3461         (extern insert_guard_phis): Removed unused.
3462         (extern ivtype_map_elt_info): Removed unused.
3463         (new_ivtype_map_elt): Removed unused.
3464         * sese.c (ivtype_map_elt_info): Removed unused.
3466 2013-03-28  Lawrence Crowl  <crowl@google.com>
3468         * Makefile.in: Add several missing include dependences.
3469         (DUMPFILE_H): New.
3470         (test-dump.o): New.  This object is not added to any executable,
3471         but is present for ad-hoc testing.
3472         * bitmap.c
3473         (debug (const bitmap_head_def &)): New.
3474         (debug (const bitmap_head_def *)): New.
3475         * bitmap.h
3476         (extern debug (const bitmap_head_def &)): New.
3477         (extern debug (const bitmap_head_def *)): New.
3478         * cfg.c
3479         (debug (edge_def &)): New.
3480         (debug (edge_def *)): New.
3481         * cfghooks.c
3482         (debug (basic_block_def &)): New.
3483         (debug (basic_block_def *)): New.
3484         * dumpfile.h
3485         (dump_node (const_tree, int, FILE *)): Correct source file.
3486         * dwarf2out.c
3487         (debug (die_struct &)): New.
3488         (debug (die_struct *)): New.
3489         * dwarf2out.h
3490         (extern debug (die_struct &)): New.
3491         (extern debug (die_struct *)): New.
3492         * gimple-pretty-print.c
3493         (debug (gimple_statement_d &)): New.
3494         (debug (gimple_statement_d *)): New.
3495         * gimple-pretty-print.h
3496         (extern debug (gimple_statement_d &)): New.
3497         (extern debug (gimple_statement_d *)): New.
3498         * ira-build.c
3499         (debug (ira_allocno_copy &)): New.
3500         (debug (ira_allocno_copy *)): New.
3501         (debug (ira_allocno &)): New.
3502         (debug (ira_allocno *)): New.
3503         * ira-int.h
3504         (extern debug (ira_allocno_copy &)): New.
3505         (extern debug (ira_allocno_copy *)): New.
3506         (extern debug (ira_allocno &)): New.
3507         (extern debug (ira_allocno *)): New.
3508         * ira-lives.c
3509         (debug (live_range &)): New.
3510         (debug (live_range *)): New.
3511         * lra-int.h
3512         (debug (lra_live_range &)): New.
3513         (debug (lra_live_range *)): New.
3514         * lra-lives.c
3515         (debug (lra_live_range &)): New.
3516         (debug (lra_live_range *)): New.
3517         * omega.c
3518         (debug (omega_pb_d &)): New.
3519         (debug (omega_pb_d *)): New.
3520         * omega.h
3521         (extern debug (omega_pb_d &)): New.
3522         (extern debug (omega_pb_d *)): New.
3523         * print-rtl.c
3524         (debug (const rtx_def &)): New.
3525         (debug (const rtx_def *)): New.
3526         * print-tree.c
3527         (debug_tree (tree): Move within file.
3528         (debug_raw (const tree_node &)): New.
3529         (debug_raw (const tree_node *)): New.
3530         (dump_tree_via_hooks (const tree_node *, int)): New.
3531         (debug (const tree_node &)): New.
3532         (debug (const tree_node *)): New.
3533         (debug_verbose (const tree_node &)): New.
3534         (debug_verbose (const tree_node *)): New.
3535         (debug_head (const tree_node &)): New.
3536         (debug_head (const tree_node *)): New.
3537         (debug_body (const tree_node &)): New.
3538         (debug_body (const tree_node *)): New.
3539         (debug_vec_tree (tree): Move and reimplement in terms of dump.
3540         (debug (vec<tree, va_gc> &)): New.
3541         (debug (vec<tree, va_gc> *)): New.
3542         * rtl.h
3543         (extern debug (const rtx_def &)): New.
3544         (extern debug (const rtx_def *)): New.
3545         * sbitmap.c
3546         (debug_raw (simple_bitmap_def &)): New.
3547         (debug_raw (simple_bitmap_def *)): New.
3548         (debug (simple_bitmap_def &)): New.
3549         (debug (simple_bitmap_def *)): New.
3550         * sbitmap.h
3551         (extern debug (simple_bitmap_def &)): New.
3552         (extern debug (simple_bitmap_def *)): New.
3553         (extern debug_raw (simple_bitmap_def &)): New.
3554         (extern debug_raw (simple_bitmap_def *)): New.
3555         * sel-sched-dump.c
3556         (debug (vinsn_def &)): New.
3557         (debug (vinsn_def *)): New.
3558         (debug_verbose (vinsn_def &)): New.
3559         (debug_verbose (vinsn_def *)): New.
3560         (debug (expr_def &)): New.
3561         (debug (expr_def *)): New.
3562         (debug_verbose (expr_def &)): New.
3563         (debug_verbose (expr_def *)): New.
3564         (debug (vec<rtx> &)): New.
3565         (debug (vec<rtx> *)): New.
3566         * sel-sched-dump.h
3567         (extern debug (vinsn_def &)): New.
3568         (extern debug (vinsn_def *)): New.
3569         (extern debug_verbose (vinsn_def &)): New.
3570         (extern debug_verbose (vinsn_def *)): New.
3571         (extern debug (expr_def &)): New.
3572         (extern debug (expr_def *)): New.
3573         (extern debug_verbose (expr_def &)): New.
3574         (extern debug_verbose (expr_def *)): New.
3575         (extern debug (vec<rtx> &)): New.
3576         (extern debug (vec<rtx> *)): New.
3577         * sel-sched-ir.h
3578         (_list_iter_cond_expr): Make inline instead of static.
3579         * sreal.c
3580         (debug (sreal &)): New.
3581         (debug (sreal *)): New.
3582         * sreal.h
3583         (extern debug (sreal &)): New.
3584         (extern debug (sreal *)): New.
3585         * tree.h
3586         (extern debug_raw (const tree_node &)): New.
3587         (extern debug_raw (const tree_node *)): New.
3588         (extern debug (const tree_node &)): New.
3589         (extern debug (const tree_node *)): New.
3590         (extern debug_verbose (const tree_node &)): New.
3591         (extern debug_verbose (const tree_node *)): New.
3592         (extern debug_head (const tree_node &)): New.
3593         (extern debug_head (const tree_node *)): New.
3594         (extern debug_body (const tree_node &)): New.
3595         (extern debug_body (const tree_node *)): New.
3596         (extern debug (vec<tree, va_gc> &)): New.
3597         (extern debug (vec<tree, va_gc> *)): New.
3598         * tree-cfg.c
3599         (debug (struct loop &)): New.
3600         (debug (struct loop *)): New.
3601         (debug_verbose (struct loop &)): New.
3602         (debug_verbose (struct loop *)): New.
3603         * tree-dump.c: Add header dependence.
3604         * tree-flow.h
3605         (extern debug (struct loop &)): New.
3606         (extern debug (struct loop *)): New.
3607         (extern debug_verbose (struct loop &)): New.
3608         (extern debug_verbose (struct loop *)): New.
3609         * tree-data-ref.c
3610         (debug (data_reference &)): New.
3611         (debug (data_reference *)): New.
3612         (debug (vec<data_reference_p> &)): New.
3613         (debug (vec<data_reference_p> *)): New.
3614         (debug (vec<ddr_p> &)): New.
3615         (debug (vec<ddr_p> *)): New.
3616         * tree-data-ref.h
3617         (extern debug (data_reference &)): New.
3618         (extern debug (data_reference *)): New.
3619         (extern debug (vec<data_reference_p> &)): New.
3620         (extern debug (vec<data_reference_p> *)): New.
3621         (extern debug (vec<ddr_p> &)): New.
3622         (extern debug (vec<ddr_p> *)): New.
3623         * tree-ssa-alias.c
3624         (debug (pt_solution &)): New.
3625         (debug (pt_solution *)): New.
3626         * tree-ssa-alias.h
3627         (extern debug (pt_solution &)): New.
3628         (extern debug (pt_solution *)): New.
3629         * tree-ssa-alias.c
3630         (debug (_var_map &)): New.
3631         (debug (_var_map *)): New.
3632         (debug (tree_live_info_d &)): New.
3633         (debug (tree_live_info_d *)): New.
3634         * tree-ssa-alias.h
3635         (extern debug (_var_map &)): New.
3636         (extern debug (_var_map *)): New.
3637         (extern debug (tree_live_info_d &)): New.
3638         (extern debug (tree_live_info_d *)): New.
3640 2013-03-28  Jan Hubicka  <jh@suse.cz>
3642         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
3644 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
3646         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
3647         record only when desired or required.
3649 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
3651         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
3652         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
3654 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3656         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
3657         (*andsi3_compare0_uxtw): New pattern.
3658         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
3659         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
3661 2013-03-28  Jan Hubicka  <jh@suse.cz>
3663         * data-streamer-in.c (streamer_read_gcov_count): New function.
3664         * gimple-streamer-out.c: Include value-prof.h.
3665         (output_gimple_stmt): Output histogram.
3666         (output_bb): Use streamer_write_gcov_count.
3667         * value-prof.c: Include data-streamer.h
3668         (dump_histogram_value): Add HIST_TYPE_MAX.
3669         (stream_out_histogram_value): New function.
3670         (stream_in_histogram_value): New function.
3671         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
3672         (stream_out_histogram_value, stream_in_histogram_value): Declare.
3673         * data-streamer-out.c (streamer_write_gcov_count): New function.
3674         (streamer_write_gcov_count_stream): New function.
3675         * lto-cgraph.c (lto_output_edge): Update counter streaming.
3676         (lto_output_node): Likewise.
3677         (input_node, input_edge): Likewise.
3678         * lto-streamer-out.c (output_cfg): Update streaming.
3679         * lto-streamer-in.c (input_cfg): Likewise.
3680         * data-streamer.h (streamer_write_gcov_count,
3681         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
3682         * gimple-streamer-in.c: Include value-prof.h
3683         (input_gimple_stmt): Input histograms.
3684         (input_bb): Update profile streaming.
3686 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
3688         * genmodes.c (emit_max_int): New function.
3689         (emit_insn_modes_h): Added call to emit_max_function.
3690         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
3691         Added doc.
3692         * machmode.def: Fixed comment.
3694 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
3696         * combine.c (try_combine): Removed useless assert.
3697         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
3699 2013-03-28  Marek Polacek  <polacek@redhat.com>
3700             Richard Biener  <rguenther@suse.de>
3702         PR tree-optimization/56695
3703         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3704         build signed result of a vector comparison.
3705         * tree-cfg.c (verify_gimple_comparison): Check that a result
3706         of a vector comparison has signed type.
3708 2013-03-28  Richard Biener  <rguenther@suse.de>
3710         PR tree-optimization/37021
3711         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3712         do not restrict gaps between groups.
3713         * tree-vect-stmts.c (vectorizable_load): Properly account for
3714         a gap between groups.
3716 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3718         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3719         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3720         is not enabled.
3722 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
3724         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3725         * doc/extend.texi (Named Address Spaces): Ditto.
3726         (Variable Attributes): Ditto.
3728 2013-03-27  Kai Tietz  <ktietz@redhat.com>
3730         * config.build: Add support for cygwin x64 target.
3731         * config.gcc: Likewise.
3732         * config.host: Likewise.
3733         * configure.ac: Likewise
3734         * configure: Regenerated.
3736 2013-03-27 Kai Tietz  <ktietz@redhat.com>
3738         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3739         * config/i386/t-cygwin-w64: New file.
3740         * config/i386/cygwin-w64.h: New file.
3741         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3742         and add support for x64-cygwin target.
3743         (CPP_SPEC): Likewise.
3744         (CXX_WRAP_SPEC_LIST): Undefine before define.
3745         (LIBGCJ_SONAME): Use 15 as version.
3747 2013-03-27  Richard Biener  <rguenther@suse.de>
3749         PR tree-optimization/56716
3750         * tree-ssa-structalias.c (perform_var_substitution): Adjust
3751         dumping for ref nodes.
3753 2013-03-27  Martin Jambor  <mjambor@suse.cz>
3755         PR tree-optimization/55334
3756         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3757         restricted pointers to arrays.
3759 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3761         * Makefile.in (.SUFFIXES): Add .cc.
3762         (.c.o): Apply same recipe for implicit rule .cc.o.
3764 2013-03-27  Richard Biener  <rguenther@suse.de>
3766         PR tree-optimization/37021
3767         * tree-vect-data-refs.c (vect_check_strided_load): Allow
3768         REALPART/IMAGPART_EXPRs around the supported refs.
3769         * tree-ssa-structalias.c (find_func_aliases): Assume that
3770         floating-point values are not used to transfer pointers.
3772 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3774         * target.def (TARGET_HAS_IFUNC_P): New target hook.
3775         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3776         * doc/tm.texi: Regenerate.
3777         * targhooks.h (default_has_ifunc_p): New.
3778         * targhooks.c (default_has_ifunc_p): Ditto.
3779         * config/linux-protos.h: New file.
3780         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3781         this hook for linux which disables support of indirect functions in
3782         android.
3783         * config/linux-android.c: New file.
3784         * config/t-linux-android.c: Ditto.
3785         * config.gcc: Added new object file linux-android.o.
3786         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3787         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3788         * varasm.c (do_assemble_alias): Likewise.
3789         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3790         doesn't support indirect functions.
3791         * configure: Regenerate.
3793 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
3795         PR target/56102
3796         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3797         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3798         mult-word mode.
3800 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3802         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3804 2013-03-27  Terry Guo  <terry.guo@arm.com>
3806         * config/arm/arm-cores.def: Added core cortex-r7.
3807         * config/arm/arm-tune.md: Regenerated.
3808         * config/arm/arm-tables.opt: Regenerated.
3809         * doc/invoke.texi: Added entry for core cortex-r7.
3811 2013-03-27  Walter Lee  <walt@tilera.com>
3813         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3814         double-decrement of next_scratch_regno.
3816 2013-03-27  Walter Lee  <walt@tilera.com>
3818         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3819         input operands.
3820         (insn_v1mulus): Ditto.
3821         (insn_v2muls): Ditto.
3823 2013-03-27  Walter Lee  <walt@tilera.com>
3825         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3826         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3828 2013-03-27  Walter Lee  <walt@tilera.com>
3830         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3831         (*sibcall_value): Ditto.
3833 2013-03-27  Walter Lee  <walt@tilera.com>
3835         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3836         (insn_mnz_v8qi): ... this ...
3837         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
3838         vector equivalent.
3839         (insn_v<n>mnz): Replaced by ...
3840         (insn_v1mnz): ... this ...
3841         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
3842         equivalent.
3843         (insn_mz_<mode>): Replaced by ...
3844         (insn_mz_v8qi): ... this ...
3845         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
3846         vector equivalent.
3847         (insn_v<n>mz): Replaced by ...
3848         (insn_v1mz): ... this ...
3849         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
3850         equivalent.
3852 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
3854         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3856 2013-03-26  Roland McGrath  <mcgrathr@google.com>
3858         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3859         than fprintf with a non-constant, non-format string.
3861 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
3863         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3864         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
3865         operand 0 predicate.
3866         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3867         attribute.  Use general_x64nomem_operand as operand 1 predicate.
3868         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3869         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
3870         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3871         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
3872         (mov<mode>_insv_1): Remove expander.  Merge insn with
3873         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3874         Use general_x64nomem_operand as operand 1 predicate.
3875         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3876         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3877         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
3878         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3879         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
3880         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3881         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
3882         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3883         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
3884         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3885         (general_x64nomem_operand): Ditto.
3887 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3889         * config/rtems.opt: Add -pthread option.
3891 2013-03-26  Richard Biener  <rguenther@suse.de>
3893         * alias.c (find_base_term): Avoid redundant and not used recursion.
3894         (base_alias_check): Get the initial base term from the caller.
3895         (true_dependence_1): Compute and pass base terms to base_alias_check.
3896         (write_dependence_p): Likewise.
3897         (may_alias_p): Likewise.
3899 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
3901         * config/aarch64/aarch64.c (aarch64_classify_address): Support
3902         PC-relative load in SI modes and above only.
3904 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
3906         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3907         * config/arm/iwmmxt.md (WCGR0): Update.
3908         (WCGR1, WCGR2, WCGR3): Likewise.
3910 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
3912         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3913         Use x64 and nox64 isa attributes.
3915 2013-03-26  Richard Biener  <rguenther@suse.de>
3917         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3918         alignment computations and rely on get_object_alignment_1
3919         for the !TYPE_P case.
3920         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3922 2013-03-26  Walter Lee  <walt@tilera.com>
3924         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3925         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3927 2013-03-25  Jeff Law  <law@redhat.com>
3929         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3930         check for INTEGRAL_TYPE_P that was missing due to checking in
3931         wrong version of prior patch.
3933 2013-03-25  Walter Lee  <walt@tilera.com>
3935         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3936         TILEGX_INSN_SHUFFLEBYTES1.
3937         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3938         shufflebytes1.
3939         (tilegx_builtins): Ditto.
3940         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3942 2013-03-25  Walter Lee  <walt@tilera.com>
3944         * config/tilegx/tilegx.md (floatsisf2): New pattern.
3945         (floatunssisf2): New pattern.
3946         (floatsidf2): New pattern.
3947         (floatunssidf2): New pattern.
3949 2013-03-25  Walter Lee  <walt@tilera.com>
3951         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3952         tests for constraint J, K, N, P.
3954 2013-03-25  Walter Lee  <walt@tilera.com>
3956         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3957         Use indirect/pcrel encoding.
3958         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3959         Ditto.
3961 2013-03-25  Steve Ellcey  <sellcey@mips.com>
3963         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3964         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3965         * config/mips/mips.c (mips_option_override): Set IMADD default.
3966         * config/mips/mips.h (PTF_AVOID_IMADD): New.
3967         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3968         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3969         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3970         * doc/invoke.texi (-mimadd/-mno-imadd): New.
3972 2013-03-25  Jeff Law  <law@redhat.com>
3974         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3975         slightly to avoid creating and folding useless trees.  Simplify
3976         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3978 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
3980         * config/i386/i386.md (*zero_extendsidi2): Merge with
3981         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
3982         * config/i386/predicates.md (x86_64_zext_operand): Rename from
3983         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
3984         targets.  Clarify comment.
3986 2013-03-25  Martin Jambor  <mjambor@suse.cz>
3988         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3989         pass-through jump functions differently.
3990         (ipa_read_jump_function): Likewise.  Also use setter functions to set
3991         up jump functions.
3993 2013-03-25  Martin Jambor  <mjambor@suse.cz>
3995         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3996         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3997         process it.
3998         (ipa_get_indirect_edge_target): New function.
3999         (devirtualization_time_bonus): New parameter known_aggs, pass it to
4000         ipa_get_indirect_edge_target.  Update all callers.
4001         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
4002         ipa_get_indirect_edge_target_1 instead of calling
4003         ipa_get_indirect_edge_target.
4004         (create_specialized_node): Pass aggvlas to
4005         ipcp_discover_new_direct_edges.
4007 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4009         * config/arm/arm.md (f_sels, f_seld): New types.
4010         (*cmov<mode>): New pattern.
4011         * config/arm/predicates.md (arm_vsel_comparison_operator): New
4012         predicate.
4014 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4016         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4017         POSIX-printf for mingw-hosted  builds.
4019 2013-03-25  Richard Biener  <rguenther@suse.de>
4021         PR middle-end/56694
4022         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4023         must-not-throw stmt location.
4025 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4027         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4028         Emit load-acquire versions when acq is true.
4029         (arm_emit_store_exclusive): Add rel parameter.
4030         Emit store-release versions when rel is true.
4031         (arm_split_compare_and_swap): Use acquire-release instructions
4032         instead.
4033         of barriers when appropriate.
4034         (arm_split_atomic_op): Likewise.
4035         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4036         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4037         (VUNSPEC_SLX): Likewise.
4038         (VUNSPEC_LDA): Likewise.
4039         (VUNSPEC_STL): Likewise.
4040         * config/arm/sync.md (atomic_load<mode>): New pattern.
4041         (atomic_store<mode>): Likewise.
4042         (arm_load_acquire_exclusive<mode>): Likewise.
4043         (arm_load_acquire_exclusivesi): Likewise.
4044         (arm_load_acquire_exclusivedi): Likewise.
4045         (arm_store_release_exclusive<mode>): Likewise.
4047 2013-03-25  Catherine Moore  <clm@codesourcery.com>
4049         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4050         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4051         * config/mip/predicates.md (lwsp_swsp_operand,
4052         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4053         sb16_operand, db4_operand, db7_operand, ib3_operand,
4054         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4055         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4056         andi16_operand): New predicates.
4057         * config/mips/mips.md (compression): New attribute.
4058         (enabled): New attribute.
4059         (length): Consider compression in computing length.
4060         (shift_compression): New code attribute.
4061         (*add<mode>3): New operands. Record compression.
4062         (sub<mode>3): Likewise.
4063         (one_cmpl<mode>2): Likewise.
4064         (*and<mode>3): Likewise.
4065         (*ior<mode>3): Likewise.
4066         (unnamed pattern for xor): Likewise.
4067         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4068         (*<optab><mode>3): Likewise.
4069         (*mov<mode>_internal: Likewise.
4070         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4071         (mips_unsigned_immediate_p): New.
4072         (umips_lwsp_swsp_address_p): New.
4073         (m16_based_address_p): New.
4074         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4075         (mips_unsigned_immediate_p): New prototype.
4076         (lwsp_swsp_address_p): New prototype.
4077         (m16_based_address_p): New prototype.
4078         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4079         (mips_signed_immediate_p): New function.
4080         (m16_based_address_p): New function.
4081         (lwsp_swsp_address_p): New function.
4082         (mips_print_operand_punctuation): Recognize short delay slot insns
4083         for microMIPS.add<mode>3"
4085 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4087         PR target/56720
4088         * config/arm/iterators.md (v_cmp_result): New mode attribute.
4089         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4091 2013-03-25  Richard Biener  <rguenther@suse.de>
4093         PR tree-optimization/56689
4094         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4095         any edge.
4097 2013-03-25  Richard Biener  <rguenther@suse.de>
4099         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4100         of bitmap.
4101         (memory_references): Likewise.
4102         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4103         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4104         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4105         (gather_mem_refs_in_loops): Fold into ...
4106         (analyze_memory_references): ... this.  Move initialization
4107         to tree_ssa_lim_initialize.
4108         (fill_always_executed_in): Rename to ...
4109         (fill_always_executed_in_1): ... this.
4110         (fill_always_executed_in): Move contains_call computation to
4111         this new function from ...
4112         (tree_ssa_lim_initialize): ... here.
4113         (tree_ssa_lim): Call fill_always_executed_in.
4115 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4117         * postreload.c (reload_combine): Fix code detecting returns.
4119 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
4121         * function.c (emit_use_return_register_into_block): On cc0 targets,
4122         do not emit the sequence between cc0 setter and user.
4124 2013-03-25  Kai Tietz  <ktietz@redhat.com>
4126         * config/i386/predicates.md (local_symbolic_operand): Interpret
4127         dll-imported symbols as none-local.
4129 2013-03-25  Richard Biener  <rguenther@suse.de>
4131         * tree-ssa-loop-im.c (struct depend): Remove.
4132         (struct lim_aux_data): Make depends a vec of gimples.
4133         (free_lim_aux_data): Adjust.
4134         (add_dependency): Likewise.
4135         (set_level): Likewise.
4137 2013-03-25  Richard Biener  <rguenther@suse.de>
4139         PR middle-end/56434
4140         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4141         the pointer returned by calls with ECF_MALLOC set.
4143 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4145         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4147 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
4149         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
4150         using MMXMODE mode iterator.
4151         (*move<mode>_internal): Merge with *movv2sf_internal and
4152         *movv2sf_internal_rex64 using MMXMODE mode iterator.
4154 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4156         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4157         (record_last_mem_set_info): Likewise.
4159         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4160         of XNEWVEC followed by memset.
4161         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4163 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
4165         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4166         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4167         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4168         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4169         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4170         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4171         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4172         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4173         BARRIER_P instead of GET_CODE.
4175 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4177         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4178         inaccuracy in the probing code.
4180         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4181         (ctrapdi4): Likewise.
4183 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4185         * calls.c (expand_call): Add missing guard to code handling return
4186         of non-BLKmode structures in MSB.
4187         * function.c (expand_function_end): Likewise.
4189 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
4191         * combine.c (try_combine): Adjust comment.  Do not add the set of
4192         insn #0 if the destination indirectly is set or dies in insn #2.
4193         Tidy up code to distribute a new note.
4195 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
4197         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4198         also for alternatives 16 and 17.
4200 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
4202         * config/i386/sse.md (*mov<mode>_internal): Merge with
4203         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
4204         Emit insn template depending on type attribute.  Use
4205         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4206         movd instead of movq mnemonic for interunit moves.  Rewrite mode
4207         attribute calculation.  Remove unit attribute calculation.
4208         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4209         Set prefix_data16 attribute for DImode ssemov types.
4210         Use Ym instead of y for SSE-MMX conversion alternatives.
4211         Reorder operand constraints.
4213 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
4215         * df.h (df_insn_delete): Adjust prototype.
4216         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4217         and let it decide whether mark the basic block dirty.
4218         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4219         * df-scan.c (df_insn_info_delete): New helper function, split
4220         off from df_insn_delete.
4221         (df_scan_free_bb_info): Use it.
4222         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4223         Likewise.
4224         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
4225         that the insn is actually an insn and it has a non-NULL basic block.
4226         Do not mark basic block dirty if only deleting a DEBUG_INSN.
4228 2013-03-22  Richard Biener  <rguenther@suse.de>
4230         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4231         dep_ref members.
4232         (mem_ref_alloc): Do not allocate them.
4233         (refs_independent_p): Do not query or maintain a cache.
4235 2013-03-22  Richard Biener  <rguenther@suse.de>
4237         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4238         (gather_mem_refs_in_loops): Do not compute it.
4239         (analyze_memory_references): Do not allocate it.
4240         (tree_ssa_lim_finalize): Do not free it.
4241         (for_all_locs_in_loop): Do not query all_refs_in_loop.
4243 2013-03-22  Richard Biener  <rguenther@suse.de>
4245         * is-a.h (as_a): Use gcc_checking_assert.
4247 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
4249         * config/aarch64/aarch64.c (aarch64_print_operand): New
4250         format specifier for printing a constant in hex.
4251         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4252         format specifier for printing second operand.
4254 2013-03-22  Richard Biener  <rguenther@suse.de>
4256         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4257         bitmaps.
4258         (gather_mem_refs_in_loops): Perform store accumulation here.
4259         (create_vop_ref_mapping_loop): Remove.
4260         (create_vop_ref_mapping): Likewise.
4261         (analyze_memory_references): Initialize refs_stored_in_loop.
4262         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
4263         (record_indep_loop): Remove.
4264         (record_dep_loop): New function.
4265         (ref_indep_loop_p_1): Adjust to only walk over references
4266         in the loop, not its subloops.
4267         (ref_indep_loop_p): Rename to ...
4268         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4269         maintaining a more fine-grained cache.
4270         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4271         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4273 2013-03-22  Richard Biener  <rguenther@suse.de>
4275         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4276         (struct mem_ref): Make accesses_in_loop a vec of a vec of
4277         aggregate mem_ref_loc.
4278         (free_mem_ref_locs): Inline into ...
4279         (memref_free): ... this and adjust.
4280         (mem_ref_alloc): Adjust.
4281         (mem_ref_locs_alloc): Remove.
4282         (record_mem_ref_loc): Adjust.
4283         (get_all_locs_in_loop): Rewrite into ...
4284         (for_all_locs_in_loop): ... this iterator.
4285         (rewrite_mem_ref_loc): New functor.
4286         (rewrite_mem_refs): Use for_all_locs_in_loop.
4287         (sm_set_flag_if_changed): New functor.
4288         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4289         (ref_always_accessed): New functor.
4290         (ref_always_accessed_p): Use for_all_locs_in_loop.
4292 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4294         * tree-pass.h (PROP_gimple_lvec): New.
4295         * passes.c (dump_properties): Handle PROP_gimple_lvec.
4296         (init_optimization_passes): Move pass_lower_vector.
4297         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4298         PROP_gimple_lvec.
4299         (pass_lower_vector): Provide PROP_gimple_lvec.
4300         (pass_lower_vector_ssa): Likewise.
4301         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4303 2013-03-21  Mark Wielaard  <mjw@redhat.com>
4305         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4307 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
4309         * config/i386/i386.md (*movdi_internal): Disparage slightly
4310         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
4311         conversion alternatives.
4313 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
4315         PR middle-end/48087
4316         * diagnostic.def (DK_WERROR): New kind.
4317         * diagnostic.h (werrorcount): Define.
4318         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4319         promoted to DK_ERROR, increment DK_WERROR counter instead of
4320         DK_ERROR counter.
4321         * toplev.c (toplev_main): Call print_ignored_options even if
4322         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
4323         even if just werrorcount is non-zero.
4325         PR debug/55608
4326         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4327         on failure.
4328         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4329         (string_cst_pool_decl): New function.
4330         (optimize_one_addr_into_implicit_ptr): New function.
4331         (resolve_addr_in_expr): Optimize DWARF location expression
4332         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4333         which doesn't live in memory, but has DW_AT_location or
4334         DW_AT_const_value, or refers to a string literal, into
4335         DW_OP_GNU_implicit_pointer.
4336         (optimize_location_into_implicit_ptr): New function.
4337         (resolve_addr): If removing DW_AT_location of a variable because
4338         it was DW_OP_addr of address of the variable, but the variable doesn't
4339         live in memory, try to emit const value attribute for the initializer.
4341 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4343         * tree.h (VECTOR_TYPE_P): New macro.
4344         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4345         TYPE_MODE): Use it.
4346         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4347         VEC_COND_EXPR cannot be lvalues.
4348         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4350 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
4352         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4353         Restrict the transformation to equal modes.
4355 2013-03-21  Richard Biener  <rguenther@suse.de>
4357         PR tree-optimization/39326
4358         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4359         (MEM_ANALYZABLE): Adjust.
4360         (record_mem_ref_loc): Move bitmap ops ...
4361         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
4362         unanalyzable refs, do not record locations for it.
4363         (analyze_memory_references): Allocate ref zero as shared
4364         unanalyzable ref.
4365         (refs_independent_p): Do not test for unanalyzed mems here.
4366         (ref_indep_loop_p_1): Special-case disambiguation against
4367         the unanalyzed ref.
4368         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
4370 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
4372         * config/arm/arm-protos.h (tune_params): Add
4373         prefer_neon_for_64bits field.
4374         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4375         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4376         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4377         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4378         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4379         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4380         (arm_option_override): Handle -mneon-for-64bits new option.
4381         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4382         (prefer_neon_for_64bits): Declare new variable.
4383         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
4384         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
4385         (arch_enabled): Handle new arch types. Remove support for onlya8
4386         and nota8.
4387         (one_cmpldi2): Use new arch names.
4388         (zero_extend<mode>di2, extend<mode>di2): Ditto.
4389         * config/arm/arm.opt (mneon-for-64bits): Add option.
4390         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4391         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4392         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4393         of onlya8.
4394         * doc/invoke.texi (-mneon-for-64bits): Document.
4396 2013-03-21  Richard Biener  <rguenther@suse.de>
4398         PR tree-optimization/39326
4399         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4400         (sort_bbs_in_loop_postorder_cmp): New function.
4401         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
4403 2013-03-21  Richard Biener  <rguenther@suse.de>
4405         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4406         (vect_insert_into_interleaving_chain): Likewise.
4407         (vect_drs_dependent_in_basic_block): Inline ...
4408         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
4409         split out from ...
4410         (vect_analyze_data_ref_dependence): ... here.  Simplify.
4411         (vect_check_interleaving): Simplify.
4412         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
4413         (vect_slp_analyze_data_ref_dependences): ... this new function.
4414         (dr_group_sort_cmp): New function.
4415         (vect_analyze_data_ref_accesses): Compute data-reference groups
4416         here instead of in vect_analyze_data_ref_dependence.  Use
4417         a more efficient algorithm.
4418         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4419         vect_slp_analyze_data_ref_dependences.  Call
4420         vect_analyze_data_ref_accesses earlier.
4421         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4422         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4423         (vect_slp_analyze_data_ref_dependences): New prototype.
4425 2013-03-21  Richard Biener  <rguenther@suse.de>
4427         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4428         ref is stored in the loop.
4429         (find_refs_for_sm): Walk only over all stores.
4430         (store_motion_loop): Allocate from lim_bitmap_obstack.
4431         (store_motion): Likewise.
4433 2013-03-21  Richard Biener  <rguenther@suse.de>
4435         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4436         Update virtual SSA form.
4438 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4440         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4441         * configure: Regenerate.
4442         * config.in: Regenerate.
4443         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4444         if !HAVE_LD_EH_FRAME_CIEV3.
4446 2013-03-21  Richard Biener  <rguenther@suse.de>
4448         * tree-cfg.c (verify_expr_no_block): New function.
4449         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
4450         nor DECL_VALUE_EXPR have locations with associated blocks.
4451         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
4452         (clear_unused_block_pointer): Remove code dealing with
4453         blocks in DECL_DEBUG_EXPR locations.
4455 2013-03-21  Richard Biener  <rguenther@suse.de>
4457         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
4458         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
4459         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
4460         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
4461         instead of DECL_DEBUG_EXPR_IS_FROM.
4462         * gimplify.c (gimplify_modify_expr): Likewise.
4463         * tree-cfg.c (verify_expr_location_1): Likewise.
4464         * tree-complex.c (create_one_component_var): Likewise.
4465         * tree-sra.c (create_access_replacement): Likewise.
4466         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
4467         (clear_unused_block_pointer): Likewise.
4468         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4469         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4470         * var-tracking.c (var_debug_decl): Likewise.
4471         (track_expr_p): Likewise.
4472         * tree-inline.c (add_local_variables): Likewise.  Set
4473         DECL_HAS_DEBUG_EXPR_P after copying it.
4474         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4475         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
4477 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
4479         PR bootstrap/56656
4480         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
4481         * configure: Regenerate.
4482         * config.in: Regenerate.
4483         * config/i386/i386.md (*movdf_internal): Use
4484         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4485         movd instead of movq mnemonic for interunit moves.
4486         (*movdi_internal): Ditto.
4488 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4490         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
4491         (abd<mode>_3): New pattern.
4492         (aba<mode>_3): New pattern.
4493         (fabd<mode>_3): New pattern.
4495 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4497         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
4498         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
4499         occurrence of REGISTER_PREFIX as its empty string.
4501 2013-03-20  Jeff Law  <law@redhat.com>
4503         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
4504         addititional equivalences for equality comparisons between an SSA_NAME
4505         and a constant where the SSA_NAME was set from a widening conversion.
4507 2013-03-20  Walter Lee  <walt@tilera.com>
4509         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
4511 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4513         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
4514         depending on type attribute.
4515         (*movti_internal): Ditto.
4516         (*movtf_internal): Ditto.
4517         (*movxf_internal): Ditto.
4518         (*movdf_internal): Ditto.
4519         (*movsf_internal): Ditto.
4521 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4523         * config/i386/i386.md (*movti_internal): Set prefix attribute to
4524         maybe_vex for sselog1 and ssemov types.
4525         (*movdi_internal): Reorder operand constraints.
4526         (*movsi_internal): Ditto.  Set prefix attribute to
4527         maybe_vex for sselog1 and ssemov types.
4528         (*movtf_internal): Set prefix attribute to maybe_vex
4529         for sselog1 and ssemov types.
4530         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
4531         DImode ssemov types.  Reorder operand constraints.
4532         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
4533         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
4534         attribute for SImode ssemov types.  Reorder operand constraints.
4536 2013-03-20  Martin Jambor  <mjambor@suse.cz>
4538         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
4539         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
4541 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
4543         * config/rs6000/predicates.md (indexed_address, update_address_mem
4544         update_indexed_address_mem): New predicates.
4545         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
4546         attribute for load/store instructions.
4547         * config/rs6000/dfp.md (movsd_store): Likewise.
4548         (movsd_load): Likewise.
4549         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
4550         (unnamed HI->DI extend define_insn): Likewise.
4551         (unnamed SI->DI extend define_insn): Likewise.
4552         (unnamed QI->SI extend define_insn): Likewise.
4553         (unnamed QI->HI extend define_insn): Likewise.
4554         (unnamed HI->SI extend define_insn): Likewise.
4555         (unnamed HI->SI extend define_insn): Likewise.
4556         (extendsfdf2_fpr): Likewise.
4557         (movsi_internal1): Likewise.
4558         (movsi_internal1_single): Likewise.
4559         (movhi_internal): Likewise.
4560         (movqi_internal): Likewise.
4561         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
4562         attribute for load/store instructions.
4563         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
4564         instructions.
4565         (mov<mode>_softfloat): Likewise.
4566         (mov<mode>_hardfloat32): Likewise.
4567         (mov<mode>_hardfloat64): Likewise.
4568         (mov<mode>_softfloat64): Likewise.
4569         (movdi_internal32): Likewise.
4570         (movdi_internal64): Likewise.
4571         (probe_stack_<mode>): Likewise.
4573 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
4575         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
4576         floating point, and decimal floating point to reload iterator.
4578         * config/rs6000/constraints.md (wl constraint): New constraints to
4579         return FLOAT_REGS if certain options are used to reduce the number
4580         of separate patterns that exist in the file.
4581         (wx constraint): Likewise.
4582         (wz constraint): Likewise.
4584         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4585         -mdebug=reg, print wg, wl, wx, and wz constraints.
4586         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4587         Initialize the reload functions for 64-bit binary/decimal floating
4588         point types.
4589         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4590         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4591         create the buffer on the stack to overcome not having a 32-bit
4592         load and store.
4593         (rs6000_emit_move): Likewise.
4594         (rs6000_secondary_memory_needed_rtx): Likewise.
4595         (rs6000_alloc_sdmode_stack_slot): Likewise.
4596         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4597         via xxlxor, just like DFmode 0.0.
4599         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
4600         define as 1 if we are running on a power7 or newer.
4601         (enum r6000_reg_class_enum): Add new constraints.
4603         * config/rs6000/dfp.md (movsd): Delete, combine with binary
4604         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
4605         with other moves by using conditional constraits (wg).  Use LFIWZX
4606         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
4607         (movsd splitter): Likewise.
4608         (movsd_hardfloat): Likewise.
4609         (movsd_softfloat): Likewise.
4611         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
4612         binary and decimal floating point moves.
4613         (fmove_ok): New attributes to combine binary and decimal floating
4614         point moves, and to combine power6x (mfpgpr) moves along normal
4615         floating moves.
4616         (real_value_to_target): Likewise.
4617         (f32_lr): Likewise.
4618         (f32_lm): Likewise.
4619         (f32_li): Likewise.
4620         (f32_sr): Likewise.
4621         (f32_sm): Likewise.
4622         (f32_si): Likewise.
4623         (movsf): Combine binary and decimal floating point moves.  Combine
4624         power6x (mfpgpr) moves with other moves by using conditional
4625         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
4626         (mov<mode> for SFmode/SDmode); Likewise.
4627         (SFmode/SDmode splitters): Likewise.
4628         (movsf_hardfloat): Likewise.
4629         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
4630         (movsf_softfloat): Likewise.
4631         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
4633         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
4634         wx and wz constraints.
4636         * config/rs6000/constraints.md (wg constraint): New constraint to
4637         return FLOAT_REGS if -mmfpgpr (power6x) was used.
4639         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
4640         constraint.
4642         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
4643         -mdebug=reg, print wg, wl, wx, and wz constraints.
4644         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
4645         Initialize the reload functions for 64-bit binary/decimal floating
4646         point types.
4647         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
4648         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
4649         create the buffer on the stack to overcome not having a 32-bit
4650         load and store.
4651         (rs6000_emit_move): Likewise.
4652         (rs6000_secondary_memory_needed_rtx): Likewise.
4653         (rs6000_alloc_sdmode_stack_slot): Likewise.
4654         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
4655         via xxlxor, just like DFmode 0.0.
4657         * config/rs6000/dfp.md (movdd): Delete, combine with binary
4658         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
4659         with other moves by using conditional constraits (wg).  Use LFIWZX
4660         and STFIWX for loading SDmode on power7.
4661         (movdd splitters): Likewise.
4662         (movdd_hardfloat32): Likewise.
4663         (movdd_softfloat32): Likewise.
4664         (movdd_hardfloat64_mfpgpr): Likewise.
4665         (movdd_hardfloat64): Likewise.
4666         (movdd_softfloat64): Likewise.
4668         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
4669         64-bit binary and decimal floating point moves.
4670         (FMOVE64X): Likewise.
4671         (movdf): Combine 64-bit binary and decimal floating point moves.
4672         Combine power6x (mfpgpr) moves with other moves by using
4673         conditional constraits (wg).
4674         (mov<mode> for DFmode/DDmode): Likewise.
4675         (DFmode/DDmode splitters): Likewise.
4676         (movdf_hardfloat32): Likewise.
4677         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
4678         (movdf_softfloat32): Likewise.
4679         (movdf_hardfloat64_mfpgpr): Likewise.
4680         (movdf_hardfloat64): Likewise.
4681         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
4682         (movdf_softfloat64): Likewise.
4683         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
4684         (reload_<mode>_load): Move to later in the file so they aren't in
4685         the middle of the floating point move insns.
4686         (reload_<mode>_store): Likewise.
4688         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
4689         constraint.
4691         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
4692         constraint if -mdebug=reg.
4693         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
4694         Enable using dd reload support if needed.
4696         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
4697         binary and decimal floating point moves in rs6000.md.
4698         (movtd_internal): Likewise.
4700         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4701         decimal floating point moves.
4702         (movtf): Likewise.
4703         (movtf_internal): Likewise.
4704         (mov<mode>_internal, TDmode/TFmode): Likewise.
4705         (movtf_softfloat): Likewise.
4706         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4708         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4709         movdi_internal64, using wg constraint for move direct operations.
4710         (movdi_internal64): Likewise.
4712         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4713         MODES_TIEABLE_P for selected modes.  Print the numerical value of
4714         the various virtual registers. Use GPR/FPR first/last values,
4715         instead of hard coding the register numbers.  Print which modes
4716         have reload functions registered.
4717         (rs6000_option_override_internal): If -mdebug=reg, trace the options
4718         settings before/after setting cpu, target and subtarget settings.
4719         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4720         and for secondary reload failures in rs6000_secondary_reload_inner.
4721         (rs6000_secondary_reload_fail): Likewise.
4722         (rs6000_secondary_reload_inner): Likewise.
4724         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4725         macros for first/last GPR and FPR registers.
4726         (LAST_GPR_REGNO): Likewise.
4727         (FIRST_FPR_REGNO): Likewise.
4728         (LAST_FPR_REGNO): Likewise.
4730         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4731         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4732         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4733         (vcond<mode><mode>): Likewise.
4734         (vcondu<mode><mode>): Likewise.
4735         (vector_gtu<mode>): Likewise.
4736         (vector_gte<mode>): Likewise.
4737         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4738         to prevent the compiler from converting DImode operations to TImode.
4739         (ior<mode>3): Likewise.
4740         (and<mode>3): Likewise.
4741         (one_cmpl<mode>2): Likewise.
4742         (nor<mode>3): Likewise.
4743         (andc<mode>3): Likewise.
4745         * config/rs6000/constraints.md (wt constraint): New constraint
4746         that returns VSX_REGS if TImode is allowed in VSX registers.
4748         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4749         constant under VSX.
4751         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4752         similar to TImode, but it is restricted to being in the GPRs.
4754         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4755         TImode to occupy a single VSX register.
4757         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4758         -mvsx-timode for power7/power8.
4759         (power7 cpu): Likewise.
4760         (power8 cpu): Likewise.
4762         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4763         sure that TFmode/TDmode take up two registers if they are ever
4764         allowed in the upper VSX registers.
4765         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4766         registers.
4767         (rs6000_init_hard_regno_mode_ok): Likewise.
4768         (rs6000_debug_reg_global): Add debugging for PTImode and wt
4769         constraint.  Print if LRA is turned on.
4770         (rs6000_option_override_internal): Give an error if -mvsx-timode
4771         and VSX is not enabled.
4772         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
4773         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4774         to reg+offset addressing.  Use PTImode when checking offset
4775         addresses for validity.
4776         (reg_offset_addressing_ok_p): Likewise.
4777         (rs6000_legitimate_offset_address_p): Likewise.
4778         (rs6000_legitimize_address): Likewise.
4779         (rs6000_legitimize_reload_address): Likewise.
4780         (rs6000_legitimate_address_p): Likewise.
4781         (rs6000_eliminate_indexed_memrefs): Likewise.
4782         (rs6000_emit_move): Likewise.
4783         (rs6000_secondary_reload): Likewise.
4784         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
4785         reloads to fpr registers to continue to use reg+offset addressing,
4786         but 64-bit reloads to altivec registers need reg+reg addressing.
4787         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4788         it.  Treat LO_SUM like a PLUS operation.
4789         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4790         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4791         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4792         registers to share a register with a smaller sized type, since VSX
4793         puts scalars in the upper 64-bits.
4794         (print_operand): Add support for PTImode.
4795         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4796         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4797         registers, but don't have arithmetic support.
4798         (rs6000_memory_move_cost): Add test for VSX.
4799         (rs6000_opt_masks): Add -mvsx-timode.
4801         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4802         for TImode.
4803         (VSs): Likewise.
4804         (VSr): Use wt constraint for TImode.
4805         (VSv): Drop TImode support.
4806         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4807         (vsx_movti_64bit): Likewise.
4808         (vsx_movti_32bit): Likewise.
4809         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4810         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4811         one '?' on the appropriate output constraint.  Do not allow TImode
4812         logical operations on 32-bit systems.
4813         (vsx_ior<mode>3): Likewise.
4814         (vsx_xor<mode>3): Likewise.
4815         (vsx_one_cmpl<mode>2): Likewise.
4816         (vsx_nor<mode>3): Likewise.
4817         (vsx_andc<mode>3): Likewise.
4818         (vsx_concat_<mode>): Likewise.
4819         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4821         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4822         OPTION_MASK_VSX_TIMODE.
4823         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4824         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4826         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4827         (TI2 iterator): New iterator for TImode, PTImode.
4828         (wd mode attribute): Add values for vector types.
4829         (movti_string): Replace TI move operations with operations for TImode
4830         and PTImode.  Add support for TImode being allowed in VSX registers.
4831         (mov<mode>_string, TImode/PTImode): Likewise.
4832         (movti_ppc64): Likewise.
4833         (mov<mode>_ppc64, TImode/PTImode): Likewise.
4834         (TI mode splitters): Likewise.
4836         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4837         constraint.
4839 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
4841         PR tree-optimization/56355
4842         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4843         Also handle integers with undefined overflow.
4845 2013-03-20  Catherine Moore  <clm@codesourcery.com>
4846             Maciej W. Rozycki  <macro@codesourcery.com>
4847             Tom de Vries  <tom@codesourcery.com>
4848             Nathan Sidwell <nathan@codesourcery.com>
4849             Iain Sandoe  <iain@codesourcery.com>
4850             Nathan Froyd  <froydnj@codesourcery.com>
4851             Chao-ying Fu <fu@mips.com>
4853         * doc/extend.texi: (micromips, nomicromips, nocompression):
4854         Document new function attributes.
4855         * doc/invoke.texi (minterlink-compressed, mmicromips,
4856         m14k, m14ke, m14kec): Document new options.
4857         (minterlink-mips16): Update documentation.
4858         * doc/md.texi (ZC, ZD): Document new constraints.
4859         * configure.ac (gcc_cv_as_micromips): Check if linker
4860         supports the .set micromips directive.
4861         * configure: Regenerate.
4862         * config.in: Regenerate.
4863         * config/mips/mips-tables.opt: Regenerate.
4864         * config/mips/micromips.md: New file.
4865         * constraints.md (ZC, ZD): New constraints.
4866         * config/mips/predicates.md (movep_src_register): New predicate.
4867         (movep_src_operand): New predicate.
4868         (non_volatile_mem_operand): New predicate.
4869         * config/mips/mips.md (multimem): New type.
4870         (length): Differentiate between 17-bit and 18-bit branch offsets.
4871         (MOVEP1, MOVEP2): New mode iterator.
4872         (mov_<load>l): Use ZC constraint.
4873         (mov_<load>r): Likewise.
4874         (mov_<store>l): Likewise.
4875         (mov_<store>r): Likewise.
4876         (*branch_equality<mode>_inverted): Add microMIPS support.
4877         (*branch_equality<mode>): Likewise.
4878         (*jump_absolute): Likewise.
4879         (indirect_jump_<mode>): Likewise.
4880         (tablejump_<mode>): Likewise.
4881         (<optab>_internal): Likewise.
4882         (sibcall_internal): Likewise.
4883         (sibcall_value_internal): Likewise.
4884         (prefetch): Use constraint ZD.
4885         * config/mips/mips.opt (minterlink-compressed): New option.
4886         (minterlink-mips16): Now an alias for minterlink-compressed.
4887         (mmicromips): New option.
4888         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4889         (compare_and_swap_12): Likewise.
4890         (sync_add<mode>): Likewise.
4891         (sync_<optab>_12): Likewise.
4892         (sync_old_<optab>_12): Likewise.
4893         (sync_new_<optab>_12): Likewise.
4894         (sync_nand_12): Likewise.
4895         (sync_old_nand_12): Likewise.
4896         (sync_new_nand_12): Likewise.
4897         (sync_sub<mode>): Likewise.
4898         (sync_old_add<mode>): Likewise.
4899         (sync_old_sub<mode>): Likewise.
4900         (sync_new_add<mode>): Likewise.
4901         (sync_new_sub<mode>): Likewise.
4902         (sync_<optab><mode>): Likewise.
4903         (sync_old_<optab><mode>): Likewise.
4904         (sync_new_<optab><mode>): Likewise.
4905         (sync_nand<mode>): Likewise.
4906         (sync_old_nand<mode>): Likewise.
4907         (sync_new_nand<mode>): Likewise.
4908         (sync_lock_test_and_set<mode>): Likewise.
4909         (test_and_set_12): Likewise.
4910         (atomic_compare_and_swap<mode>): Likewise.
4911         (atomic_exchange<mode>_llsc): Likewise.
4912         (atomic_fetch_add<mode>_llsc): Likewise.
4913         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4914         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4915         (umips_save_restore_pattern_p): Likewise.
4916         (umips_load_store_pair_p): Likewise.
4917         (umips_output_load_store_pair): Likewise.
4918         (umips_movep_target_p): Likewise.
4919         (umips_12bit_offset_address_p): Likewise.
4920         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4921         (mips_base_mips16): Rename this...
4922         (mips_base_compression_flags): ...to this. Update all uses.
4923         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4924         (mips_mips16_decl_p): Delete.
4925         (mips_nomips16_decl_p): Delete.
4926         (mips_get_compress_on_flags): New function.
4927         (mips_get_compress_off_flags): New function.
4928         (mips_get_compress_mode): New function.
4929         (mips_get_compress_on_name): New function.
4930         (mips_get_compress_off_name): New function.
4931         (mips_insert_attributes): Support multiple compression types.
4932         (mips_merge_decl_attributes): Likewise.
4933         (umips_12bit_offset_address_p): New function.
4934         (mips_start_function_definition): Emit .set micromips directive.
4935         (mips_call_may_need_jalx_p): New function.
4936         (mips_function_ok_for_sibcall): Add microMIPS support.
4937         (mips_print_operand_punctuation): Support short delay slots and
4938         compact jumps.
4939         (umips_swm_mask, umips_swm_encoding): New.
4940         (umips_build_save_restore): New function.
4941         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4942         (was_mips16_p): Remove.
4943         (old_compression_mode): New.
4944         (mips_set_compression_mode): New function.
4945         (mips_set_current_function): Add microMIPS support.
4946         (mips_option_override): Likewise.
4947         (umips_save_restore_pattern_p): New function.
4948         (umips_output_save_restore): New function.
4949         (umips_load_store_pair_p_1): New function.
4950         (umips_load_store_pair_p): New function.
4951         (umips_output_load_store_pair_1): New function.
4952         (umips_output_load_store_pair): New function.
4953         (umips_movep_target_p) New function.
4954         (mips_prepare_pch_save): Add microMIPS support.
4955         * config/mips/mips.h (TARGET_COMPRESSION): New.
4956         (TARGET_CPU_CPP_BUILTINS): Update macro
4957         to use new compression flags and to support microMIPS.
4958         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4959         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4960         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4961         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4962         (ASM_SPEC): Support mmicromips and mno-micromips.
4963         (M16STORE_REG_P): New macro.
4964         (MIPS_CALL): Support TARGET_MICROMIPS.
4965         (MICROMIPS_J): New macro.
4966         (mips_base_mips16): Rename this...
4967         (mips_base_compression_flags): ...to this.
4968         (UMIPS_12BIT_OFFSET_P): New macro.
4969         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4970         (MULTILIB_DIRNAMES): Likewise.
4971 2013-03-20  Richard Biener  <rguenther@suse.de>
4973         PR tree-optimization/56661
4974         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4975         the result does not have to be distinct.
4977 2013-03-20  Richard Biener  <rguenther@suse.de>
4979         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4980         remap_gimple_op_r.
4982 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4983             Steven Bosscher <steven@gcc.gnu.org>
4985         PR rtl-optimization/56605
4986         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4988 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4990         PR bootstrap/56656
4991         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4992         that require movd instead of movq.
4994 2013-03-20  Richard Biener  <rguenther@suse.de>
4996         * tree-ssa-structalias.c (struct variable_info): Add pointer
4997         to the first field of an aggregate with sub-vars.  Make
4998         this and the pointer to the next subfield its ID.
4999         (vi_next): New function.
5000         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5001         storedanything_id, integer_id): Increment by one.
5002         (new_var_info, get_call_vi, lookup_call_clobber_vi,
5003         get_call_clobber_vi): Adjust.
5004         (solution_set_expand): Simplify and speedup.
5005         (solution_set_add): Inline into ...
5006         (set_union_with_increment): ... this.  Adjust accordingly.
5007         (do_sd_constraint): Likewise.
5008         (do_ds_constraint): Likewise.
5009         (do_complex_constraint): Simplify.
5010         (build_pred_graph): Adjust.
5011         (solve_graph): Likewise.  Simplify and speedup.
5012         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5013         get_constraint_for_component_ref, get_constraint_for_1,
5014         first_vi_for_offset, first_or_preceding_vi_for_offset,
5015         create_function_info_for, create_variable_info_for_1,
5016         create_variable_info_for, intra_create_variable_infos): Adjust.
5017         (init_base_vars): Push NULL for ID zero.
5018         (compute_points_to_sets): Adjust.
5020 2013-03-20  Richard Biener  <rguenther@suse.de>
5022         * cfgloop.c (verify_loop_structure): Streamline and avoid
5023         ICEing on corrupt loop tree.
5024         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5025         loop tree.
5027 2013-03-20  Richard Biener  <rguenther@suse.de>
5029         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5030         check whether an SSA update is needed.
5032 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
5034         * config/mips/constraints.md (T): Rename to...
5035         (Yf): ...this.
5036         (U): Rename to...
5037         (Yd): ...this.
5038         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5039         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5041 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5043         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5044         (*subsi3_carryin_uxtw): Likewise.
5046 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5048         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5049         (*rorsi3_insn_uxtw): Likewise.
5051 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
5053         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5054         (*extrsi5_insn_uxtw): Likewise.
5056 2013-03-19  Richard Biener  <rguenther@suse.de>
5058         PR tree-optimization/56273
5059         * passes.c (init_optimization_passes): Move second VRP after DOM.
5061 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
5063         * config/i386/i386.md (*movti_internal): Merge from
5064         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
5065         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
5066         nox64 isa attributes.
5068 2013-03-18  Richard Biener  <rguenther@suse.de>
5070         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5071         (unite): Likewise.
5072         (merge_node_constraints): Likewise.
5073         (build_succ_graph): Likewise.
5074         (valid_graph_edge): Inline into single caller.
5075         (unify_nodes): Likewise.  Use bitmap_set_bit return value
5076         and cache varinfo.
5077         (scc_visit): Fix formatting and variable use.
5078         (do_sd_constraint): Use gcc_checking_assert.
5079         (do_ds_constraint): Likewise.
5080         (do_complex_constraint): Likewise.
5081         (condense_visit): Likewise.  Cleanup.
5082         (dump_pred_graph): New function.
5083         (perform_var_substitution): Dump the pred-graph before
5084         variable substitution.
5085         (find_equivalent_node): Use gcc_checking_assert.
5086         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5088 2013-03-18  Richard Biener  <rguenther@suse.de>
5090         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5091         Remove cond_expr_stmt_list argument and do not gimplify the
5092         built expression.
5093         (vect_loop_versioning): Adjust.
5094         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5095         Cleanup to use less temporaries.
5096         (vect_create_data_ref_ptr): Cleanup.
5098 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
5100         PR tree-optimization/56635
5101         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5102         require types_compatible_p types.
5104 2013-03-18  Nick Clifton  <nickc@redhat.com>
5106         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5107         spurious backslash.
5109         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5110         Add missing line to comment describing function.
5112 2013-03-18  Richard Biener  <rguenther@suse.de>
5114         PR tree-optimization/56210
5115         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5116         Handle string / character search functions.
5117         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5119 2013-03-18  Richard Biener  <rguenther@suse.de>
5121         PR middle-end/56483
5122         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5123         and implement properly.
5124         * gimple.h (gimple_cond_single_var_p): Remove.
5126 2013-03-18  Richard Biener  <rguenther@suse.de>
5128         * tree-data-ref.h (find_data_references_in_loop): Declare.
5129         * tree-data-ref.c (get_references_in_stmt): Use a stack
5130         vector pre-allocated in the callers.
5131         (find_data_references_in_stmt): Adjust.
5132         (graphite_find_data_references_in_stmt): Likewise.
5133         (create_rdg_vertices): Likewise.
5134         (find_data_references_in_loop): Export.
5135         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5136         Compute dependences here...
5137         (vect_analyze_data_refs): ...not here.  When we encounter
5138         a non-vectorizable data reference in basic-block vectorization
5139         truncate the data reference vector.  Do not bother to
5140         fixup data-dependence information for gather loads.
5141         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5142         of data references, as reported.
5144 2013-03-18  Richard Biener  <rguenther@suse.de>
5146         PR tree-optimization/3713
5147         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
5148         has_constants and expr.
5149         (stmt_has_constants): Properly valueize SSA names when deciding
5150         whether the stmt has constants.
5152 2013-03-18  Richard Biener  <rguenther@suse.de>
5154         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5155         whole function when there is nothing to do.
5156         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5157         * tree-vectorizer.c (vectorize_loops): Update virtual and
5158         loop-closed SSA once.
5159         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5161 2013-03-18  Richard Biener  <rguenther@suse.de>
5163         PR middle-end/56113
5164         * domwalk.c (bb_postorder): New global static.
5165         (cmp_bb_postorder): New function.
5166         (walk_dominator_tree): Replace scheme imposing an order for
5167         visiting dominator sons by one sorting them at the time they
5168         are pushed on the stack.
5170 2013-03-18  Richard Biener  <rguenther@suse.de>
5172         PR tree-optimization/39326
5173         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5174         (struct mem_ref): Replace mem member with ao_ref typed member.
5175         (MEM_ANALYZABLE): Adjust.
5176         (memref_eq): Likewise.
5177         (mem_ref_alloc): Likewise.
5178         (gather_mem_refs_stmt): Likewise.
5179         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5180         (execute_sm_if_changed_flag_set): Adjust.
5181         (execute_sm): Likewise.
5182         (ref_always_accessed_p): Likewise.
5183         (refs_independent_p): Likewise.
5184         (can_sm_ref_p): Likewise.
5186 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
5188         PR c/56566
5189         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5190         return 1 even for !unsignedp.
5192 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5194         * config/i386/i386.md (isa): Add x64 and nox64.
5195         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5196         (*pushtf): Enable *roF alternative for x64 isa only.
5197         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
5198         mode attribute of integer alternatives to DImode for TARGET_64BIT.
5199         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
5200         (*movtf_internal): Merge from *movtf_internal_rex64 and
5201         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
5202         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
5203         nox64 isa attributes.
5204         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
5205         nox64 isa attributes.
5206         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5208 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
5210         * config/alpha/alpha.c (TARGET_LRA_P): New define.
5212 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
5214         PR target/56640
5215         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5216         class names.  Remove trailing comma after "ALL_REGS".
5218 2013-03-16  Jan Hubicka  <jh@suse.cz>
5220         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5221         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5222         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5223         of cgraph_get_create_node.
5224         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5226 2013-03-16  Jason Merrill  <jason@redhat.com>
5228         PR debug/49090
5229         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5230         with DW_AT_default_value.
5232 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
5234         * BASE-VER: Set to 4.9.0.
5236 2013-03-14  Andi Kleen  <ak@linux.intel.com>
5238         PR target/56619
5239         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5240         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5241         Document _x* TSX intrinsics.
5243 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
5244             David Holsgrove  <david.holsgrove@xilinx.com>
5246         * configure.ac: Add MicroBlaze TLS support detection.
5247         * configure: Regenerate.
5248         * config/microblaze/microblaze-protos.h
5249         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5250         symbol_mentioned_p, label_mentioned_p): Add prototypes.
5251         * config/microblaze/microblaze.c (microblaze_address_type): Add
5252         ADDRESS_TLS and tls_reloc address types.
5253         (microblaze_address_info): Add tls_reloc.
5254         (TARGET_HAVE_TLS): Define.
5255         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5256          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
5257          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5258         load_tls_operand,  microblaze_call_tls_get_addr,
5259         microblaze_legitimize_tls_address): New functions.
5260         (microblaze_classify_unspec): Handle UNSPEC_TLS.
5261         (get_base_reg): Use microblaze_tls_symbol_p.
5262         (microblaze_classify_address): Handle TLS.
5263         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5264         label_mentioned_p and microblaze_tls_referenced_p.
5265         (microblaze_legitimize_address): Handle TLS.
5266         (microblaze_address_insns): Handle ADDRESS_TLS.
5267         (pic_address_needs_scratch): Handle TLS.
5268         (print_operand_address): Handle TLS.
5269         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5270         (microblaze_expand_move): Handle TLS.
5271         (microblaze_legitimate_constant_p): Check
5272         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
5273         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5274         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5275         (PIC_OFFSET_TABLE_REGNUM): Set.
5276         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5277         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5278         (addsi3, movsi_internal2, movdf_internal): Update constraints
5279         * config/microblaze/predicates.md (arith_plus_operand): Define
5280         (move_operand): Redefine as move_src_operand,
5281         check microblaze_tls_referenced_p.
5283 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
5285         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5286         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5288 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
5290         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5291         CC mode for AND.
5293 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
5295         PR tree-optimization/53265
5296         * common.opt (Waggressive-loop-optimizations): New option.
5297         * tree-ssa-loop-niter.c: Include tree-pass.h.
5298         (do_warn_aggressive_loop_optimizations): New function.
5299         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
5300         if number_of_latch_executions returned constant.
5301         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5302         early.  If number_of_latch_executions returned constant, set
5303         nb_iterations_upper_bound back to it.
5304         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5305         field.
5306         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5307         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5309         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5310         (MULTILIB_OSDIRNAMES): Set.
5311         * genmultilib: If defaultosdirname doesn't start with :: , set
5312         defaultosdirname2 instead, clear it and emit two . multilib_raw
5313         entries instead of just one.
5315 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5317         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5318         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5319         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5320         (SUBTARGET_OVERRIDE_OPTIONS): New.
5322 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
5324         PR target/49880
5325         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5326         (musermode): Convert to Var(TARGET_USERMODE).
5327         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5328         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5329         * config/sh/sh.c (sh_option_override): Use
5330         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5331         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5332         condition.
5333         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5334         TARGET_SH4.
5335         (udivsi3_i4_single, divsi3_i4_single): Use
5336         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5338 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
5340         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5341         default setting.
5343 2013-03-13  Richard Biener  <rguenther@suse.de>
5345         PR tree-optimization/56608
5346         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5347         calls when vectorizing basic-blocks.
5349 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
5351         PR plugins/45078
5352         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5353         tm_file.
5355 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
5357         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5359 2013-03-11  Jan Hubicka  <jh@suse.cz>
5361         PR lto/56557
5362         * lto-streamer-out.c (output_symbol_p): Skip references from
5363         constructors of external variables.
5365 2013-03-11  Jan Hubicka  <jh@suse.cz>
5367         PR middle-end/56571
5368         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5369         from pseudos.
5370         * emit-rtl.c (verify_rtx_sharing): Likewise.
5371         (copy_insn_1): Likewise.
5372         * rtl.c (copy_rtx): Likewise.
5374 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
5376         PR target/56591
5377         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5378         output_operand_lossage message.
5380 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
5382         PR target/56470
5383         * arm.c (shift_op): Validate RTL pattern on the fly.
5384         (arm_print_operand, case 'S'): Don't use shift_operator to validate
5385         the RTL.
5387 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5389         PR target/56347
5390         * config/pa/pa.md (call_value): Check for calls to powf and direct to
5391         new call patterns that clobber %fr12.
5392         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5393         split and postreload patterns.
5394         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5395         registers %fr12 and %fr12R as call used.
5397 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
5399         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5400         (canon_address, record_store, replace_read, check_mem_read_rtx,
5401         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5402         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5403         rest_of_handle_dse): Likewise.
5405 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
5407         PR middle-end/56524
5408         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5409         Add base_optabs.
5410         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5411         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5412         (save_optabs_if_changed): Replace with...
5413         (init_tree_optimization_optabs): ...this.
5414         * optabs.c (save_optabs_if_changed): Rename to...
5415         (init_tree_optimization_optabs): ...this.  Take the optimization node
5416         as argument.  Do nothing if the base optabs are already correct.
5417         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5418         to recompute optabs.
5419         * function.h (function): Remove optabs field.
5420         * function.c (invoke_set_current_function_hook): Call
5421         init_tree_optimization_optabs.  Use the result to initialize
5422         this_fn_optabs.
5424 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
5426         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5427         if GTMA_HAS_NO_INSTRUMENTATION.
5428         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5429         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5430         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5431         * gimple-pretty-print.c (dump_gimple_transaction): Handle
5432         GTMA_HAS_NO_INSTRUMENTATION.
5434 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
5436         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5437         libasan_preinit.o.
5439 2013-03-08  Marek Polacek  <polacek@redhat.com>
5440             Jakub Jelinek  <jakub@redhat.com>
5442         PR tree-optimization/56478
5443         * predict.c (is_comparison_with_loop_invariant_p): Change the
5444         type of loop_step to tree.
5445         (predict_loops): Adjust.
5446         (predict_iv_comparison): Perform the computations on double_ints.
5448 2013-03-08  Richard Biener  <rguenther@suse.de>
5450         PR tree-optimization/56570
5451         * tree-cfg.c (verify_expr_location_1): Verify locations for
5452         DECL_DEBUG_EXPR.
5453         * tree-sra.c (create_access_replacement): Strip locations
5454         from DECL_DEBUG_EXPRs.
5456 2013-03-08  Richard Biener  <rguenther@suse.de>
5458         * tree-inline.c (expand_call_inline): Do not associate
5459         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
5460         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
5462 2013-03-08  Richard Biener  <rguenther@suse.de>
5464         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
5465         or block changes with -Og.  Fix for location / block encoding
5466         changes and PHI arguments with locations.
5468 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
5470         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
5471         for all counters.
5472         (struct output_info): Likewise.
5473         (register_overhead): Remove bad gcc_assert.
5474         (bitmap_find_bit): If there is only a single bitmap element, do not
5475         count a miss as a search.
5476         (print_statistics): Update for counter type changes.
5477         (dump_bitmap_statistics): Likewise.  Print headers such that they
5478         are properly lined up with the printed counters.
5480 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
5482         PR tree-optimization/56559
5483         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
5484         check that it has only a single use.
5486 2013-03-07  Richard Biener  <rguenther@suse.de>
5488         * doc/invoke.texi (fwhole-program): Discourage use in combination
5489         with -flto.
5491 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
5493         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
5495         PR tree-optimization/56539
5496         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
5497         instead of GSI_CONTINUE_LINKING as last argument to
5498         force_gimple_operand_gsi.  Adjust function comment.
5500         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
5501         aarch64-cores.def.
5503         PR middle-end/56548
5504         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
5505         promoted mode, convert the result back to the original mode.
5507 2013-03-06  Richard Biener  <rguenther@suse.de>
5509         PR middle-end/56294
5510         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
5511         (insert_updated_phi_nodes_compare_uids): New function.
5512         (update_ssa): Sort symbols_to_rename after UID before
5513         traversing it to insert PHI nodes.
5515 2013-03-06  Richard Biener  <rguenther@suse.de>
5517         PR middle-end/50494
5518         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
5519         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
5521         Revert
5522         2013-02-13  Richard Biener  <rguenther@suse.de>
5524         PR lto/50494
5525         * varasm.c (output_constant_def_1): Get the decl representing
5526         the constant as argument.
5527         (output_constant_def): Wrap output_constant_def_1.
5528         (make_decl_rtl): Use output_constant_def_1 with the decl
5529         representing the constant.
5530         (build_constant_desc): Optionally re-use a decl already
5531         representing the constant.
5532         (tree_output_constant_def): Adjust.
5534 2013-03-06  Joey Ye  <joey.ye@arm.com>
5536         PR lto/50293
5537         * gcc.c (convert_white_space): New function.
5538         (main): Handles white space in function name.
5540 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
5542         PR target/56529
5543         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
5544         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
5545         to SH_DIV_CALL_TABLE for TARGET_SH2.
5546         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
5547         list.
5548         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
5549         call-table options.
5551 2013-03-05  Sterling Augustine  <saugustine@google.com>
5552             Cary Coutant  <ccoutant@google.com>
5554         PR debug/55364
5555         * dwarf2out.c (resolve_addr): Don't call
5556         remove_loc_list_addr_table_entries a second time for the same
5557         expression.
5559 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
5561         PR debug/56510
5562         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
5563         (avoid_complex_debug_insns): New function.
5564         (expand_debug_locations): Call it.
5566         PR rtl-optimization/56484
5567         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
5568         lifetimes of hard registers on small register class machines.
5570 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
5572         * config/microblaze/microblaze-protos.h: Rename
5573         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
5574         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
5575         fast_interrupt.
5576         (microblaze_fast_interrupt_function_p): New function.
5577         (microblaze_is_interrupt_handler): Rename to
5578         microblaze_is_interrupt_variant and add fast_interrupt check.
5579         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
5580         (save_restore_insns): Likewise.
5581         (compute_frame_size): Likewise.
5582         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
5583         (microblaze_globalize_label): Likewise.
5584         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
5585         * config/microblaze/microblaze.md: Use wrapper
5586         microblaze_is_interrupt_variant.
5588 2013-03-05  Kai Tietz  <ktietz@redhat.com>
5590         * sdbout.c (sdbout_one_type): Switch to current function's section
5591         supporting cold/hot.
5593 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
5595         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
5596         -mxl-reorder.
5598 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
5600         PR middle-end/56461
5601         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
5602         if VALGRIND_GET_VBITS is defined, temporarily make object
5603         memory all defined, and restore previous valgrind addressability
5604         and definability afterwards.  Free this_object at the end.
5606         PR middle-end/56461
5607         * lra.c (lra): Call lra_clear_live_ranges if live_p,
5608         right before calling lra_create_live_ranges, also call it
5609         when clearing live_p.  Only call lra_clear_live_ranges
5610         at the end if live_p.
5612         PR middle-end/56461
5613         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
5615 2013-03-05  Richard Biener  <rguenther@suse.de>
5617         PR tree-optimization/56521
5618         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
5619         value-id.
5621 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
5623         PR c++/55135
5624         * except.h (remove_unreachable_eh_regions): New prototype.
5625         * except.c (remove_eh_handler_splicer): New function, split out
5626         of remove_eh_handler.
5627         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
5628         warning about running it on many EH regions one at a time.
5629         (remove_unreachable_eh_regions_worker): New function, walk the
5630         EH tree in depth-first order and remove non-marked regions.
5631         (remove_unreachable_eh_regions): New function.
5632         * tree-eh.c (mark_reachable_handlers): New function, split out
5633         from remove_unreachable_handlers.
5634         (remove_unreachable_handlers): Use mark_reachable_handlers and
5635         remove_unreachable_eh_regions.
5636         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
5637         and remove_unreachable_eh_regions.
5639 2013-03-05  Richard Biener  <rguenther@suse.de>
5641         PR middle-end/56525
5642         * loop-init.c (fix_loop_structure): Remove loops in two stages,
5643         not freeing them until the end.
5645 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5647         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
5649 2013-03-05  Richard Biener  <rguenther@suse.de>
5651         PR tree-optimization/56270
5652         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
5653         of loads after scheduling an SLP instance.
5655 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
5657         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
5658         tic6x.exp.
5659         (check_gcc_parallelize): Run guality.exp as a separate job from
5660         vect.exp with unsorted.exp and $(dg_target_exps) separately from
5661         struct-layout-1.exp with stackalign.exp.
5663         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
5665         PR middle-end/56461
5666         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
5667         load_index sbitmap even if some bit in it isn't set.
5669         PR middle-end/56461
5670         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
5671         (discover_iteration_bound_by_body_walk): Change queues to
5672         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
5673         spelling in comment.  Call safe_push on queues[bound_index] directly.
5674         Release queues[queue_index] in every iteration unconditionally.
5675         Release bounds vector.
5677         PR middle-end/56461
5678         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
5679         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
5680         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
5681         inner_phis vector.
5683 2013-03-05  Richard Biener  <rguenther@suse.de>
5685         PR lto/56515
5686         * tree-inline.c (remap_blocks_to_null): New function.
5687         (expand_call_inline): When expanding a call stmt without
5688         an associated block inline remap all callee blocks to NULL.
5690 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
5692         PR rtl-optimization/56494
5693         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
5694         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
5695         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
5697         PR middle-end/56461
5698         * sel-sched-ir.c (free_sched_pools): Release
5699         succs_info_pool.stack[succs_info_pool.max_top] vectors too
5700         if succs_info_pool.max_top isn't -1.
5702         PR bootstrap/56509
5703         * opts.c (opts_obstack, opts_concat): Moved to...
5704         * opts-common.c (opts_obstack, opts_concat): ... here.
5706 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
5708         PR middle-end/56461
5709         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5711 2013-03-04  Martin Jambor  <mjambor@suse.cz>
5713         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5714         all appropriate places.
5716 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5718         PR tree-optimization/56424
5719         * ipa-split.c (split_function): Do not set the RSO flag if result is
5720         not by reference and its type is a register type.
5722 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
5724         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5725         (microblaze_legitimate_pic_operand): Likewise
5726         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5727         new function microblaze_legitimate_pic_operand
5728         * config/microblaze/microblaze-protos.h
5729         (microblaze_legitimate_pic_operand): Declare.
5731 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5733         * config/microblaze/predicates.md (call_insn_simple_operand):
5734         New predicate for supported rtx code types.
5735         * config/microblaze/microblaze.md (call_internal1): Use
5736         call_insn_simple_operand predicate.
5738 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
5740         PR middle-end/56461
5741         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5742         partitions.ordered_remove.
5744         PR middle-end/56461
5745         * tree-vect-stmts.c (vectorizable_conversion): Don't call
5746         vec_oprnds0.create (1) for modifier == NONE.
5748         PR middle-end/56461
5749         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5750         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5751         vec_oprnds1 right before pushing anything to it for
5752         scalar_shift_arg.
5754         PR middle-end/56461
5755         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5756         set nbbs to 0 instead of having separate code path.
5757         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5758         instead of false as last argument if returning NULL.
5760 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
5762         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5763         the attribute is now called "target" instead of "option".
5764         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5765         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
5766         attribute/pragma name for TARGET_OPTION_VALID_P and
5767         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
5768         * doc/tm.texi: Regenerated.
5770 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
5772         * config/microblaze/microblaze.c:
5773         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5774         * config/microblaze/microblaze.h: Add -mxl-reorder to
5775         DRIVER_SELF_SPECS.
5776         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5777         instructions emitted if TARGET_REORDER.
5778         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5779         or 0 for -m/-mno case, but initialises as 2 to detect default use case
5780         separately.
5782 2013-03-01  Xinliang David Li  <davidxl@google.com>
5784         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5785         walk length.
5787 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
5789         PR middle-end/56461
5790         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5791         vector even when returning true.  Fix up function comment formatting.
5793         PR middle-end/56461
5794         * ira-build.c (ira_loop_nodes_count): New variable.
5795         (create_loop_tree_nodes): Initialize it.
5796         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5798         PR middle-end/56461
5799         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5800         method on dr_chain and result_chain.
5801         * tree-vect-stmts.c (vectorizable_store): Only call
5802         result_chain.create if j == 0.
5804         PR middle-end/56461
5805         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5806         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5807         before overwriting it.
5809 2013-03-01  Tobias Burnus  <burnus@net-b.de>
5811         * doc/extended.texi (C Extensions): Change order in @menu
5812         to match @node.
5813         (Other MIPS Built-in Functions): Move last MIPS entry before
5814         "picoChip Built-in Functions".
5815         (SH Built-in Functions): Move after RX Built-in Functions.
5816         * doc/gcc.texi (Introduction): Change order in @menu
5817         to match @node.
5818         * doc/md.texi (Constraints): Ditto.
5819         * gty.texi (Type Information): Ditto.
5820         (User-provided marking routines for template types): Make
5821         subsection.
5822         * doc/invoke.texi (AArch64 Options): Move before
5823         "Adapteva Epiphany Options".
5825 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
5826             Jakub Jelinek  <jakub@redhat.com>
5828         PR sanitizer/56454
5829         * asan.c (gate_asan): Lookup no_sanitize_address instead of
5830         no_address_safety_analysis attribute.
5831         * doc/extend.texi (no_address_safety_attribute): Rename to
5832         no_sanitize_address attribute, mention no_address_safety_analysis
5833         attribute as deprecated alias.
5835 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
5837         PR middle-end/56461
5838         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5839         type to vec<vec<tree> > *.
5840         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
5841         to be vec<tree> instead of vec<tree> *, set vec_defs
5842         to vNULL and call vec_defs.create (number_of_vects), adjust other
5843         uses of vec_defs.
5844         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5845         vectorizable_condition): Adjust vect_get_slp_defs callers.
5847 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5849         * config/aarch64/aarch64.c
5850         (aarch64_float_const_representable): Remove unused variable.
5852 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5854         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5856 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5858         * config/aarch64/aarch64-builtins.c
5859         (aarch64_init_simd_builtins): Make static.
5861 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5863         * config/aarch64/aarch64.c
5864         (aarch64_simd_make_constant): Make static.
5866 2013-02-28  Martin Jambor  <mjambor@suse.cz>
5868         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5869         with no initialization to the RHS of debug statements.
5871 2013-02-28  Martin Jambor  <mjambor@suse.cz>
5873         PR tree-optimization/56294
5874         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5875         Adjust dumping.
5876         (get_access_replacement): Do not call create_access_replacement.
5877         Assert a replacement exists.
5878         (get_repl_default_def_ssa_name): Create the replacement declaration
5879         itself.
5881 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5883         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5884         final_end_function.
5886 2013-02-28  Marek Polacek  <polacek@redhat.com>
5888         PR rtl-optimization/56466
5889         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5890         if we're changing a loop.
5891         (peel_loops_completely): Likewise.
5893 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
5895         PR c++/55813
5896         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5898 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5900         PR target/56445
5901         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5902         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5903         INTX_FTYPE_FX, FX_FTYPE_INTX.
5904         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5906 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5908         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5909         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5910         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5911         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5912         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5913         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5914         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5915         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5916         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5917         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5918         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5919         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5920         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5921         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5922         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5923         (avrxmega6): Increase max flash segments from 5 to 6.
5924         * config/avr/t-multilib: Regenerate.
5925         * config/avr/avr-tables.opt: Regenerate.
5926         * doc/avr-mmcu.texi: Regenerate.
5928 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5930         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5931         (avr_device_to_arch): Rename to avr_device_to_ld.
5932         (avr_device_to_as): New prototype.
5933         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5934         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5935         * config/avr/driver-avr.c (avr_device_to_as): New.
5936         (avr_device_to_arch): Rename to avr_device_to_ld.
5938 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5940         PR middle-end/56461
5941         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5942         method on dr_chain and result_chain.
5944         PR middle-end/56461
5945         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5946         pointer_set_destroy on not_executed_last_iteration.
5948         PR middle-end/56461
5949         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5951         PR middle-end/56461
5952         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5953         FOR_EACH_DEFINED_FUNCTION when freeing state.
5955         PR middle-end/56461
5956         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5957         pool_free.
5958         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5959         overwriting it.
5961         PR middle-end/56461
5962         * ipa-cp.c (decide_whether_version_node): Call vec_free on
5963         known_aggs[i].items and release known_aggs vector.
5965         PR middle-end/56461
5966         * ipa-reference.c (propagate): Free node_info even for alias nodes.
5968 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5970         * config/microblaze/microblaze.c (microblaze_emit_compare):
5971         Use xor for EQ/NE comparisions.
5972         * config/microblaze/microblaze.md (cstoresf4): Add constraints
5973         (cbranchsf4): Adjust operator to comparison_operator.
5975 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5977         PR middle-end/56461
5978         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5979         vector.
5980         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5981         vec_safe_push, always update *slot.
5982         (redirect_edge_var_map_clear): Use vec_free.
5983         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5984         (free_var_map_entry): Use vec_free.
5985         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5986         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5988 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
5990         PR middle-end/45472
5991         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5992         when the may_trap_p bit of the exprs being merged differs.
5993         Reorder tests for speculativeness in the logical and operator.
5995 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5997         * incpath.c (add_standard_paths): Use reconcat instead of concat
5998         where appropriate and avoid leaking memory.
6000         * opts.h: Include obstack.h.
6001         (opts_concat): New prototype.
6002         (opts_obstack): New declaration.
6003         * opts.c (opts_concat): New function.
6004         (opts_obstack): New variable.
6005         (init_options_struct): Call gcc_init_obstack on opts_obstack.
6006         (finish_options): Use opts_concat instead of concat
6007         and XOBNEWVEC instead of XNEWVEC.
6008         * opts-common.c (generate_canonical_option, decode_cmdline_option,
6009         generate_option): Likewise.
6010         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6011         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6013         PR target/56455
6014         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6015         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6017 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6019         PR middle-end/56461
6020         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6022 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6024         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6025         (arm_block_move_unaligned_straight): Likewise.
6026         (arm_adjust_block_mem): Likewise.
6028 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
6030         PR target/48901
6031         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6032         temp, cond and label.
6033         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6035         PR target/52500
6036         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6037         * config/c6x/c6x.h (dbx_register_map): Update declaration.
6039         PR target/52501
6040         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6041         of prologue/epilogue functions.
6043         PR target/52550
6044         * config/tilegx/tilegx.c (tilegx_expand_prologue):
6045         Remove unused variable cfa_offset.
6046         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6048         PR target/54639
6049         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6050         type promotion to unsigned.
6052         PR target/54640
6053         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6054         for HOST_WIDE_INT of 32 bit / same size as int.
6055         (arm_block_move_unaligned_straight): Likewise.
6056         (arm_adjust_block_mem): Likewise.
6058         PR target/54662
6059         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6060         ALL_CFLAGS.
6062 2013-02-26  Marek Polacek  <polacek@redhat.com>
6064         PR tree-optimization/56426
6065         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
6067 2013-02-26  Richard Biener  <rguenther@suse.de>
6069         PR target/56444
6070         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6071         unused variable loops.
6073 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
6075         PR tree-optimization/56448
6076         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6077         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6078         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6079         later operands of the references, or even first operand for
6080         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6082         PR tree-optimization/56443
6083         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6084         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6085         to type_for_mode langhook.
6087 2013-02-25  Matt Turner  <mattst88@gmail.com>
6089         * doc/invoke.texi: Document r4700.
6091 2013-02-25  Richard Biener  <rguenther@suse.de>
6093         PR tree-optimization/56175
6094         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6095         split out from ...
6096         (simplify_bitwise_binary): ... here.  Also guard the conversion
6097         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6099 2013-02-25  Catherine Moore  <clm@codesourcery.com>
6101         Revert:
6102         2013-02-24  Catherine Moore  <clm@codesourcery.com>
6103             Maciej W. Rozycki  <macro@codesourcery.com>
6104             Tom de Vries  <tom@codesourcery.com>
6105             Nathan Sidwell  <nathan@codesourcery.com>
6106             Iain Sandoe  <iain@codesourcery.com>
6107             Nathan Froyd  <froydnj@codesourcery.com>
6108             Chao-ying Fu  <fu@mips.com>
6110         * doc/extend.texi: (micromips, nomicromips, nocompression):
6111         Document new function attributes.
6112         * doc/invoke.texi (minterlink-compressed, mmicromips,
6113         m14k, m14ke, m14kec): Document new options.
6114         (minterlink-mips16): Update documentation.
6115         * doc/md.texi (ZC, ZD): Document new constraints.
6116         * configure.ac (gcc_cv_as_micromips): Check if linker
6117         supports the .set micromips directive.
6118         * configure: Regenerate.
6119         * config.in: Regenerate.
6120         * config/mips/mips-tables.opt: Regenerate.
6121         * config/mips/micromips.md: New file.
6122         * constraints.md (ZC, AD): New constraints.
6123         * config/mips/predicates.md (movep_src_register): New predicate.
6124         (movep_src_operand): New predicate.
6125         (non_volatile_mem_operand): New predicate.
6126         * config/mips/mips.md (multimem): New type.
6127         (length): Differentiate between 17-bit and 18-bit branch offsets.
6128         (MOVEP1, MOVEP2): New mode iterator.
6129         (mov_<load>l): Use ZC constraint.
6130         (mov_<load>r): Likewise.
6131         (mov_<store>l): Likewise.
6132         (mov_<store>r): Likewise.
6133         (*branch_equality<mode>_inverted): Add microMIPS support.
6134         (*branch_equality<mode>): Likewise.
6135         (*jump_absolute): Likewise.
6136         (indirect_jump_<mode>): Likewise.
6137         (tablejump_<mode>): Likewise.
6138         (<optab>_internal): Likewise.
6139         (sibcall_internal): Likewise.
6140         (sibcall_value_internal): Likewise.
6141         (prefetch): Use constraint ZD.
6142         * config/mips/mips.opt (minterlink-compressed): New option.
6143         (minterlink-mips16): Now an alias for minterlink-compressed.
6144         (mmicromips): New option.
6145         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6146         (compare_and_swap_12): Likewise.
6147         (sync_add<mode>): Likewise.
6148         (sync_<optab>_12): Likewise.
6149         (sync_old_<optab>_12): Likewise.
6150         (sync_new_<optab>_12): Likewise.
6151         (sync_nand_12): Likewise.
6152         (sync_old_nand_12): Likewise.
6153         (sync_new_nand_12): Likewise.
6154         (sync_sub<mode>): Likewise.
6155         (sync_old_add<mode>): Likewise.
6156         (sync_old_sub<mode>): Likewise.
6157         (sync_new_add<mode>): Likewise.
6158         (sync_new_sub<mode>): Likewise.
6159         (sync_<optab><mode>): Likewise.
6160         (sync_old_<optab><mode>): Likewise.
6161         (sync_new_<optab><mode>): Likewise.
6162         (sync_nand<mode>): Likewise.
6163         (sync_old_nand<mode>): Likewise.
6164         (sync_new_nand<mode>): Likewise.
6165         (sync_lock_test_and_set<mode>): Likewise.
6166         (test_and_set_12): Likewise.
6167         (atomic_compare_and_swap<mode>): Likewise.
6168         (atomic_exchange<mode>_llsc): Likewise.
6169         (atomic_fetch_add<mode>_llsc): Likewise.
6170         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6171         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6172         (umips_save_restore_pattern_p): Likewise.
6173         (umips_load_store_pair_p): Likewise.
6174         (umips_output_load_store_pair): Likewise.
6175         (umips_movep_target_p): Likewise.
6176         (umips_12bit_offset_address_p): Likewise.
6177         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6178         (mips_base_mips16): Rename this...
6179         (mips_base_compression_flags): ...to this. Update all uses.
6180         (mips_attribute_table): Add micromips, nomicromips and nocompression.
6181         (mips_mips16_decl_p): Delete.
6182         (mips_nomips16_decl_p): Delete.
6183         (mips_get_compress_on_flags): New function.
6184         (mips_get_compress_off_flags): New function.
6185         (mips_get_compress_mode): New function.
6186         (mips_get_compress_on_name): New function.
6187         (mips_get_compress_off_name): New function.
6188         (mips_insert_attributes): Support multiple compression types.
6189         (mips_merge_decl_attributes): Likewise.
6190         (umips_12bit_offset_address_p): New function.
6191         (mips_start_function_definition): Emit .set micromips directive.
6192         (mips_call_may_need_jalx_p): New function.
6193         (mips_function_ok_for_sibcall): Add microMIPS support.
6194         (mips_print_operand_punctuation): Support short delay slots and
6195         compact jumps.
6196         (umips_swm_mask, umips_swm_encoding): New.
6197         (umips_build_save_restore): New function.
6198         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6199         (was_mips16_p): Remove.
6200         (old_compression_mode): New.
6201         (mips_set_compression_mode): New function.
6202         (mips_set_current_function): Add microMIPS support.
6203         (mips_option_override): Likewise.
6204         (umips_save_restore_pattern_p): New function.
6205         (umips_output_save_restore): New function.
6206         (umips_load_store_pair_p_1): New function.
6207         (umips_load_store_pair_p): New function.
6208         (umips_output_load_store_pair_1): New function.
6209         (umips_output_load_store_pair): New function.
6210         (umips_movep_target_p) New function.
6211         (mips_prepare_pch_save): Add microMIPS support.
6212         * config/mips/mips.h (TARGET_COMPRESSION): New.
6213         (TARGET_CPU_CPP_BUILTINS): Update macro
6214         to use new compression flags and to support microMIPS.
6215         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6216         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6217         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6218         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6219         (ASM_SPEC): Support mmicromips and mno-micromips.
6220         (M16STORE_REG_P): New macro.
6221         (MIPS_CALL): Support TARGET_MICROMIPS.
6222         (MICROMIPS_J): New macro.
6223         (mips_base_mips16): Rename this...
6224         (mips_base_compression_flags): ...to this.
6225         (UMIPS_12BIT_OFFSET_P): New macro.
6226         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6227         (MULTILIB_DIRNAMES): Likewise.
6229 2013-02-25  Tom de Vries  <tom@codesourcery.com>
6231         PR rtl-optimization/56131
6232         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6233         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6234         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6236 2013-02-25  Tobias Burnus  <burnus@net-b.de>
6238         * doc/invoke.texi (-fsanitize=): Move from optimization
6239         to debugging options.
6241 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
6243         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6245 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
6246             Alexander Monakov  <amonakov@ispras.ru>
6248         PR middle-end/56077
6249         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6250         flush pending lists also on non-jumps.  Adjust comment.
6252 2013-02-24  Catherine Moore  <clm@codesourcery.com>
6253             Maciej W. Rozycki  <macro@codesourcery.com>
6254             Tom de Vries  <tom@codesourcery.com>
6255             Nathan Sidwell  <nathan@codesourcery.com>
6256             Iain Sandoe  <iain@codesourcery.com>
6257             Nathan Froyd  <froydnj@codesourcery.com>
6258             Chao-ying Fu  <fu@mips.com>
6260         * doc/extend.texi: (micromips, nomicromips, nocompression):
6261         Document new function attributes.
6262         * doc/invoke.texi (minterlink-compressed, mmicromips,
6263         m14k, m14ke, m14kec): Document new options.
6264         (minterlink-mips16): Update documentation.
6265         * doc/md.texi (ZC, ZD): Document new constraints.
6266         * configure.ac (gcc_cv_as_micromips): Check if linker
6267         supports the .set micromips directive.
6268         * configure: Regenerate.
6269         * config.in: Regenerate.
6270         * config/mips/mips-tables.opt: Regenerate.
6271         * config/mips/micromips.md: New file.
6272         * constraints.md (ZC, AD): New constraints.
6273         * config/mips/predicates.md (movep_src_register): New predicate.
6274         (movep_src_operand): New predicate.
6275         (non_volatile_mem_operand): New predicate.
6276         * config/mips/mips.md (multimem): New type.
6277         (length): Differentiate between 17-bit and 18-bit branch offsets.
6278         (MOVEP1, MOVEP2): New mode iterator.
6279         (mov_<load>l): Use ZC constraint.
6280         (mov_<load>r): Likewise.
6281         (mov_<store>l): Likewise.
6282         (mov_<store>r): Likewise.
6283         (*branch_equality<mode>_inverted): Add microMIPS support.
6284         (*branch_equality<mode>): Likewise.
6285         (*jump_absolute): Likewise.
6286         (indirect_jump_<mode>): Likewise.
6287         (tablejump_<mode>): Likewise.
6288         (<optab>_internal): Likewise.
6289         (sibcall_internal): Likewise.
6290         (sibcall_value_internal): Likewise.
6291         (prefetch): Use constraint ZD.
6292         * config/mips/mips.opt (minterlink-compressed): New option.
6293         (minterlink-mips16): Now an alias for minterlink-compressed.
6294         (mmicromips): New option.
6295         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6296         (compare_and_swap_12): Likewise.
6297         (sync_add<mode>): Likewise.
6298         (sync_<optab>_12): Likewise.
6299         (sync_old_<optab>_12): Likewise.
6300         (sync_new_<optab>_12): Likewise.
6301         (sync_nand_12): Likewise.
6302         (sync_old_nand_12): Likewise.
6303         (sync_new_nand_12): Likewise.
6304         (sync_sub<mode>): Likewise.
6305         (sync_old_add<mode>): Likewise.
6306         (sync_old_sub<mode>): Likewise.
6307         (sync_new_add<mode>): Likewise.
6308         (sync_new_sub<mode>): Likewise.
6309         (sync_<optab><mode>): Likewise.
6310         (sync_old_<optab><mode>): Likewise.
6311         (sync_new_<optab><mode>): Likewise.
6312         (sync_nand<mode>): Likewise.
6313         (sync_old_nand<mode>): Likewise.
6314         (sync_new_nand<mode>): Likewise.
6315         (sync_lock_test_and_set<mode>): Likewise.
6316         (test_and_set_12): Likewise.
6317         (atomic_compare_and_swap<mode>): Likewise.
6318         (atomic_exchange<mode>_llsc): Likewise.
6319         (atomic_fetch_add<mode>_llsc): Likewise.
6320         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6321         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6322         (umips_save_restore_pattern_p): Likewise.
6323         (umips_load_store_pair_p): Likewise.
6324         (umips_output_load_store_pair): Likewise.
6325         (umips_movep_target_p): Likewise.
6326         (umips_12bit_offset_address_p): Likewise.
6327         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6328         (mips_base_mips16): Rename this...
6329         (mips_base_compression_flags): ...to this. Update all uses.
6330         (mips_attribute_table): Add micromips, nomicromips and nocompression.
6331         (mips_mips16_decl_p): Delete.
6332         (mips_nomips16_decl_p): Delete.
6333         (mips_get_compress_on_flags): New function.
6334         (mips_get_compress_off_flags): New function.
6335         (mips_get_compress_mode): New function.
6336         (mips_get_compress_on_name): New function.
6337         (mips_get_compress_off_name): New function.
6338         (mips_insert_attributes): Support multiple compression types.
6339         (mips_merge_decl_attributes): Likewise.
6340         (umips_12bit_offset_address_p): New function.
6341         (mips_start_function_definition): Emit .set micromips directive.
6342         (mips_call_may_need_jalx_p): New function.
6343         (mips_function_ok_for_sibcall): Add microMIPS support.
6344         (mips_print_operand_punctuation): Support short delay slots and
6345         compact jumps.
6346         (umips_swm_mask, umips_swm_encoding): New.
6347         (umips_build_save_restore): New function.
6348         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6349         (was_mips16_p): Remove.
6350         (old_compression_mode): New.
6351         (mips_set_compression_mode): New function.
6352         (mips_set_current_function): Add microMIPS support.
6353         (mips_option_override): Likewise.
6354         (umips_save_restore_pattern_p): New function.
6355         (umips_output_save_restore): New function.
6356         (umips_load_store_pair_p_1): New function.
6357         (umips_load_store_pair_p): New function.
6358         (umips_output_load_store_pair_1): New function.
6359         (umips_output_load_store_pair): New function.
6360         (umips_movep_target_p) New function.
6361         (mips_prepare_pch_save): Add microMIPS support.
6362         * config/mips/mips.h (TARGET_COMPRESSION): New.
6363         (TARGET_CPU_CPP_BUILTINS): Update macro
6364         to use new compression flags and to support microMIPS.
6365         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6366         (MIPS_ARCH_FLOAT_SPEC): Likewise.
6367         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6368         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6369         (ASM_SPEC): Support mmicromips and mno-micromips.
6370         (M16STORE_REG_P): New macro.
6371         (MIPS_CALL): Support TARGET_MICROMIPS.
6372         (MICROMIPS_J): New macro.
6373         (mips_base_mips16): Rename this...
6374         (mips_base_compression_flags): ...to this.
6375         (UMIPS_12BIT_OFFSET_P): New macro.
6376         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6377         (MULTILIB_DIRNAMES): Likewise.
6379 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
6381         PR target/52555
6382         * target-globals.c (save_target_globals): For init_reg_sets and
6383         target_reinit remporarily set this_fn_optabs to this_target_optabs.
6385 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
6387         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6388         * config/aarch64/t-aarch64
6389         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6391 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
6393         PR inline-asm/56148
6394         * lra-constraints.c (process_alt_operands): Reload operand
6395         conflicting with earlier clobber only if no more other conflicting
6396         operands.
6398 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
6400         PR sanitizer/56393
6401         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6402         if not linking a shared library.
6404 2013-02-22  Seth LaForge  <sethml@google.com>
6406         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6408 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
6410         * config/arm/arm.md (split for extendsidi): Update condition.
6411         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6412         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6413         (qhs_zextenddi_cstr): Likewise.
6415 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
6417         PR middle-end/56420
6418         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6419         avoid signed wrapping.
6420         (expand_mult): Handle properly multiplication by
6421         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
6422         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
6423         in the compiler if coeff is HOST_WIDE_INT_MIN.
6424         (expand_divmod): Don't make ext_op1 static, change it's type to
6425         uhwi.  Avoid undefined behavior in -INTVAL (op1).
6427         PR rtl-optimization/50339
6428         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6429         field.
6430         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6431         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6432         into splitting_ashiftrt field.
6433         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6434         ASHIFTRT.
6435         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6436         choices.
6438 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
6440         PR middle-end/56108
6441         * trans-mem.c (execute_tm_mark): Do not expand transactions that
6442         are sure to go irrevocable.
6444 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
6446         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
6447         scalars are valid operands.
6449 2013-02-21  Martin Jambor  <mjambor@suse.cz>
6451         PR tree-optimization/56310
6452         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
6453         only matching indices and non-negative final offsets.
6454         (intersect_aggregates_with_edge): Pass src_idx to
6455         agg_replacements_to_vector.  Pass src_idx insstead of index to
6456         intersect_with_agg_replacements.
6458 2013-02-21  Martin Jambor  <mjambor@suse.cz>
6460         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
6461         instead of hard-wired defaults.
6463 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
6465         * doc/invoke.texi (MIPS Options): Update documentation of the
6466         floating-point multiply-accumulate instruction restrictions.
6468 2013-02-21  Kostya Serebryany  <kcc@google.com>
6470         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
6471         asan_shadow_offset on x86_64 linux.
6473 2013-02-21  Richard Biener  <rguenther@suse.de>
6475         PR tree-optimization/56415
6476         Revert
6477         2013-02-11  Richard Biener  <rguenther@suse.de>
6479         PR tree-optimization/56273
6480         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6481         first VRP run.
6483 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
6485         PR bootstrap/56258
6486         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
6487         instead of @itemx.
6489         PR inline-asm/56405
6490         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
6491         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
6493 2013-02-20  Jan Hubicka  <jh@suse.cz>
6495         PR tree-optimization/56265
6496         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
6497         when target is referenced for first time.
6499 2013-02-20  Richard Biener  <rguenther@suse.de>
6501         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
6502         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
6503         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
6504         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
6505         not return anything.
6506         (rename_ssa_copies): Do not remove unused locals.
6507         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
6508         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
6509         * passes.c (execute_function_todo): Do not schedule unused locals
6510         removal if cleanup_tree_cfg did something.
6511         * tree-ssa-live.c (remove_unused_locals): Dump statistics
6512         about the number of removed locals.
6514 2013-02-20  Richard Biener  <rguenther@suse.de>
6516         PR tree-optimization/56398
6517         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
6519 2013-02-20  Martin Jambor  <mjambor@suse.cz>
6521         PR tree-optimization/55334
6522         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
6523         restricted pointers to arrays.
6525 2013-02-20  Richard Biener  <rguenther@suse.de>
6526             Jakub Jelinek  <jakub@redhat.com>
6528         PR tree-optimization/56396
6529         * tree-ssa-ccp.c (n_const_val): New static variable.
6530         (get_value): Return NULL for SSA names we don't have a lattice
6531         entry for.
6532         (ccp_initialize): Initialize n_const_val.
6533         * tree-ssa-copy.c (n_copy_of): New static variable.
6534         (init_copy_prop): Initialize n_copy_of.
6535         (get_value): Return NULL_TREE for SSA names we don't have a
6536         lattice entry for.
6538 2013-02-20  Martin Jambor  <mjambor@suse.cz>
6540         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
6542 2013-02-20  Richard Biener  <rguenther@suse.de>
6544         * genpreds.c (write_lookup_constraint): Do not compare first
6545         letter of the constraint again.
6547 2013-02-20  Richard Biener  <rguenther@suse.de>
6549         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
6550         and ceil_log2.
6551         (get_use_iv_cost): Terminate hashtable walk when coming across
6552         an empty entry.
6554 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
6556         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
6557         reassociation for avx2 targets.
6559 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6561         * config/microblaze/microblaze.c: microblaze_has_clz = 0
6562         Add version check for v8.10.a to enable microblaze_has_clz
6563         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
6564         version and TARGET_PATTERN_COMPARE check
6565         * config/microblaze/microblaze.md: New clzsi2 instruction
6567 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6569         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
6570         function before branching.
6572 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
6574         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
6575         DUMP_INSN_RTX_UID.
6576         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
6578 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
6580         PR middle-end/55889
6581         * sel-sched.c: Include ira.h.
6582         (implicit_clobber_conflict_p): New function.
6583         (moveup_expr): Use it.
6584         * Makefile.in (sel-sched.o): Depend on ira.h.
6586 2013-02-19  Richard Biener  <rguenther@suse.de>
6588         PR tree-optimization/56384
6589         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
6590         (vn_hash_type): Split out from ...
6591         (vn_hash_constant_with_type): ... here.
6592         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
6593         (vn_phi_eq): Compare types from vn_phi_s structure.
6594         (vn_phi_lookup): Populate vn_phi_s type.
6595         (vn_phi_insert): Likewise.
6597 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
6599         PR tree-optimization/56350
6600         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
6601         if haven't found reduction or nested cycle operand, rather than
6602         asserting we must find it.
6604         PR tree-optimization/56381
6605         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
6606         to fold_build3.
6608 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
6609             Jakub Jelinek  <jakub@redhat.com>
6611         PR target/52555
6612         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
6613         (swap_optab_enable): Same.
6614         (init_all_optabs): Use argument instead of global.
6615         * tree.h (struct tree_optimization_option): New field target_optabs.
6616         * expr.h (init_all_optabs): Add argument to prototype.
6617         (TREE_OPTIMIZATION_OPTABS): New.
6618         (save_optabs_if_changed): Protoize.
6619         * optabs.h: Declare this_fn_optabs.
6620         * optabs.c (save_optabs_if_changed): New.
6621         Declare this_fn_optabs.
6622         (init_optabs): Add argument to init_all_optabs() call.
6623         * function.c (invoke_set_current_function_hook): Handle per
6624         function optabs.
6625         * function.h (struct function): New field optabs.
6626         * config/mips/mips.c (mips_set_mips16_mode): Handle when
6627         optimization_current_node has changed.
6628         * target-globals.h (save_target_globals_default_opts): Protoize.
6629         * target-globals.c (save_target_globals_default_opts): New.
6631 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6633         PR target/56347
6634         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
6635         registers %fr12 and %fr12R as call used.
6637         PR target/56214
6638         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
6639         and HImode, require all displacements to be an integer multiple of
6640         their mode size.
6641         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
6642         only allow QImode and HImode when reload is in progress and strict is
6643         true.  Likewise for symbolic addresses.  Use base14_operand to check
6644         displacements in REG+BASE addresses.
6646 2013-02-18  Richard Biener  <rguenther@suse.de>
6648         PR tree-optimization/56366
6649         * tree-vect-loop.c (get_initial_def_for_induction): Properly
6650         handle sign-conversion of outer-loop initial induction value.
6652 2013-02-18  Richard Biener  <rguenther@suse.de>
6654         PR middle-end/56349
6655         * cfghooks.c (merge_blocks): If we merge a latch into another
6656         block adjust references to it.
6657         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
6658         (verify_loop_structure): Verify that a recorded latch is in fact
6659         a latch.
6661 2013-02-18  Richard Biener  <rguenther@suse.de>
6663         PR tree-optimization/56321
6664         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
6665         order SSA name release and virtual operand unlinking.
6667 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6669         * config/microblaze/microblaze.md (save_stack_block): Define.
6670         (restore_stack_block): Likewise.
6672 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6674         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
6675         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
6676         * config/microblaze/microblaze.c (microblaze_option_override):
6677         Bail out early for PIC modes when target does not support PIC.
6679 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6681         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
6682         Replace with a microblaze version.
6683         (microblaze_trampoline_init): Adapt for microblaze.
6684         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
6685         microblaze.
6687 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
6688             Dodji Seketeli  <dodji@redhat.com>
6690         PR asan/56330
6691         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
6692         (instrument_mem_region_access): Do not forget to always put
6693         instrumentation of the of 'base' and 'base + len' in a "if (len !=
6694         0) statement, even for cases where either 'base' or 'base + len'
6695         are not instrumented -- because they have been previously
6696         instrumented.  Simplify the logic by putting all the statements
6697         instrument 'base + len' inside a sequence, and then insert that
6698         sequence right before the current insertion point.  Then, to
6699         instrument 'base + len', just get an iterator on that statement.
6700         And do not forget to update the pointer to iterator the function
6701         received as argument.
6703 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
6705         PR rtl-optimization/56348
6706         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6708 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
6710         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6711         (clean_graph_dump_file): Pass base to start_graph_dump.
6713 2013-02-14  Richard Henderson  <rth@redhat.com>
6715         PR target/55941
6716         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6718 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
6720         * collect2-aix.h: Define F_LOADONLY.
6722 2013-02-14  Richard Biener  <rguenther@suse.de>
6724         PR lto/50494
6725         * varasm.c (output_constant_def_1): Get the decl representing
6726         the constant as argument.
6727         (output_constant_def): Wrap output_constant_def_1.
6728         (make_decl_rtl): Use output_constant_def_1 with the decl
6729         representing the constant.
6730         (build_constant_desc): Optionally re-use a decl already
6731         representing the constant.
6732         (tree_output_constant_def): Adjust.
6734 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
6736         Fix an asan crash
6737         * asan.c (instrument_builtin_call):  Really put the length of the
6738         second source argument into src1_len.
6740 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
6742         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6743         argument.  If it is false, don't create edge from then_bb to
6744         fallthru_bb.
6745         (insert_if_then_before_iter): Pass true to it.
6746         (build_check_stmt): Pass false to it.
6747         (transform_statements): Flush hash table only on extended basic
6748         block boundaries, rather than at the beginning of every bb.
6749         Don't flush hash table on nonfreeing_call_p calls.
6750         * tree-flow.h (nonfreeing_call_p): New prototype.
6751         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6753 2013-02-13  David S. Miller  <davem@davemloft.net>
6755         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6757 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
6759         PR target/56184
6760         * ira.c (max_regno_before_ira): Move from ...
6761         (ira): ... here.
6762         (fix_reg_equiv_init): Use max_regno_before_ira instead of
6763         vec_safe_length.
6765 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
6767         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6769 2013-02-13  Richard Biener  <rguenther@suse.de>
6771         PR lto/56295
6772         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6773         globals in MEM_REFs.
6775 2013-02-13  Richard Biener  <rguenther@suse.de>
6777         * loop-init.c (loop_optimizer_init): Clear loop state when
6778         re-initializing preserved loops.
6779         * loop-unswitch.c (unswitch_single_loop): Return whether
6780         we unswitched the loop.  Do not verify loop state here.
6781         (unswitch_loops): When we unswitched a loop discover new loops.
6783 2013-02-13  Kostya Serebryany  <kcc@google.com>
6785         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6786         on x86_64 linux.
6787         * sanitizer.def: Rename __asan_init to __asan_init_v1.
6789 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
6791         Avoid instrumenting duplicated memory access in the same basic block
6792         * Makefile.in (asan.o): Add new dependency on hash-table.h
6793         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6794         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6795         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6796         (free_mem_ref_resources, has_mem_ref_been_instrumented)
6797         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6798         (get_mem_ref_of_assignment): New functions.
6799         (get_mem_refs_of_builtin_call): Extract from
6800         instrument_builtin_call and tweak a little bit to make it fit with
6801         the new signature.
6802         (instrument_builtin_call): Use the new
6803         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
6804         of is_gimple_builtin_call.
6805         (instrument_derefs, instrument_mem_region_access): Insert the
6806         instrumented memory reference into the hash table.
6807         (maybe_instrument_assignment): Renamed instrument_assignment into
6808         this, and change it to advance the iterator when instrumentation
6809         actually happened and return true in that case.  This makes it
6810         homogeneous with maybe_instrument_assignment, and thus give a
6811         chance to callers to be more 'regular'.
6812         (transform_statements): Clear the memory reference hash table
6813         whenever we enter a new BB, when we cross a function call, or when
6814         we are done transforming statements.  Use
6815         maybe_instrument_assignment instead of instrumentation.  No more
6816         need to special case maybe_instrument_assignment and advance the
6817         iterator after calling it; it's now handled just like
6818         maybe_instrument_call.  Update comment.
6820 2013-02-13  Richard Biener  <rguenther@suse.de>
6822         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6823         Fix loop discovery code.
6825 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
6827         PR inline-asm/56148
6828         * lra-constraints.c (process_alt_operands): Match early clobber
6829         operand with itself.  Check conflicts with earlyclobber only if
6830         the operand is not reloaded.  Prefer to reload conflicting operand
6831         if earlyclobber and matching operands are the same.
6833 2013-02-12  Richard Biener  <rguenther@suse.de>
6835         PR lto/56297
6836         * lto-streamer-out.c (write_symbol): Do not output symbols
6837         for hard register variables.
6839 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
6841         PR target/54222
6842         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6843         (umulsidi3_insn, mulsidi3_insn): New insns.
6845 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
6847         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6848         (struct tune_params): Add vec_costs field.
6849         * config/arm/arm.c (arm_builtin_vectorization_cost)
6850         (arm_add_stmt_cost): New functions.
6851         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6852         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6853         (arm_default_vec_cost): New struct of type cpu_vec_costs.
6854         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6855         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6856         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6857         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6859 2013-02-12  Richard Biener  <rguenther@suse.de>
6861         PR lto/56295
6862         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6863         decls again if possible.
6865 2013-02-12  Richard Biener  <rguenther@suse.de>
6867         PR middle-end/56288
6868         * tree-ssa.c (verify_ssa_name): Fix check, move
6869         SSA_NAME_IN_FREE_LIST check up.
6871 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
6872             Steven Bosscher   <steven@gcc.gnu.org>
6874         PR rtl-optimization/56151
6875         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6876         equal to op0 or op1, and last_insn pattern is CODE operation
6877         with MEM dest and one of the operands matches that MEM.
6879 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
6881         * doc/extend.texi: Document Function Multiversioning and "default"
6882         parameter string to target attribute.
6883         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6884         target attribute parameter is "default".
6885         (ix86_compare_version_priority): Remove checks for target attribute.
6886         (ix86_mangle_function_version_assembler_name): Change error to sorry.
6887         Remove check for target attribute equal to NULL. Add assert.
6888         (ix86_generate_version_dispatcher_body): Change error to sorry.
6890 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
6891             Jack Howarth  <howarth@bromo.med.uc.edu>
6892             Patrick Marlier  <patrick.marlier@gmail.com>
6894         PR libitm/55693
6895         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6896         define ENDFILE_SPEC as TM_DESTRUCTOR.
6897         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6899 2013-02-11  Alexander Potapenko  <glider@google.com>
6900             Jack Howarth  <howarth@bromo.med.uc.edu>
6901             Jakub Jelinek  <jakub@redhat.com>
6903         PR sanitizer/55617
6904         * config/darwin.c (cdtor_record): Rename ctor_record.
6905         (sort_cdtor_records): Rename sort_ctor_records.
6906         (finalize_dtors): New routine to sort destructors by
6907         priority before use in assemble_integer.
6908         (machopic_asm_out_destructor): Use finalize_dtors if needed.
6910 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
6912         PR rtl-optimization/56275
6913         * simplify-rtx.c (avoid_constant_pool_reference): Check that
6914         offset is non-negative and less than cmode size before
6915         calling simplify_subreg.
6917 2013-02-11  Richard Biener  <rguenther@suse.de>
6919         PR tree-optimization/56264
6920         * cfgloop.h (fix_loop_structure): Adjust prototype.
6921         * loop-init.c (fix_loop_structure): Return the number of
6922         newly discovered loops.
6923         * tree-cfgcleanup.c (repair_loop_structures): When new loops
6924         are discovered, do a full loop-closed SSA rewrite.
6926 2013-02-11  Richard Biener  <rguenther@suse.de>
6928         PR tree-optimization/56273
6929         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6930         first VRP run.
6931         (check_array_ref): Fix missing newline in dumps.
6932         (search_for_addr_array): Likewise.
6934 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
6936         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6938 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
6940         PR target/56256
6941         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6943 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
6945         PR rtl-optimization/56246
6946         * lra-constraints.c (simplify_operand_subreg): Try to reuse
6947         reload pseudo.
6948         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6949         constraints are satisfied.
6951 2013-02-08  Jeff Law  <law@redhat.com>
6953         PR debug/53948
6954         * emit-rtl.c (reg_is_parm_p): New function.
6955         * regs.h (reg_is_parm_p): New prototype.
6956         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6957         callee-clobbered registers.
6959 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6961         PR target/56043
6962         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6963         If there is no implicit builtin declaration, just return NULL.
6965 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
6967         * config/i386/sse.md (FMAMODEM): New mode iterator.
6968         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6969         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6971 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
6973         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6974         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6975         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6977 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6979         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6980         (microblaze*-*-elf): Likewise.
6981         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6982         LINK_SPEC.
6983         * config/microblaze/microblaze-c.c: Add builtin defines for
6984         _LITTLE_ENDIAN and _BIG_ENDIAN.
6985         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6986         add to TARGET_DEFAULT flags.
6987         Expand ASM_SPEC and LINK_SPEC.
6988         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6989         * config/microblaze/microblaze.md: Update extendsidi2 and
6990         movdi_internal instructions to use low-order / high-order reg
6991         print_operands.
6992         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6993         options and inversemask / mask of LITTLE_ENDIAN.
6994         * config/microblaze/t-microblaze: Expand multilib options to
6995         include mlittle-endian (le) and update exceptions patterns.
6997 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
6999         PR rtl-optimization/56195
7000         * lra-constraints.c (get_reload_reg): Don't reuse regs
7001         if they have smaller mode than requested, if they have
7002         wider mode than requested, try to return a SUBREG.
7004         PR tree-optimization/56250
7005         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7006         if type is unsigned and code isn't MULT_EXPR.
7008 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7010         PR tree-optimization/56064
7011         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7012         bits according to mode.
7013         * fixed-value.h (fixed_from_double_int)
7014         (const_fixed_from_double_int): Adjust comments.
7016 2013-02-08  Richard Biener  <rguenther@suse.de>
7018         PR lto/56231
7019         * lto-streamer.h (struct data_in): Remove current_file, current_line
7020         and current_col members.
7021         * lto-streamer-out.c (lto_output_location): Stream changed bits
7022         en-block for efficiency.
7023         * lto-streamer-in.c (clear_line_info): Remove.
7024         (lto_input_location): Cache current file, line and column
7025         globally via local statics.  Read changed bits en-block.
7026         (input_function): Do not call clear_line_info.
7027         (lto_read_body): Likewise.
7028         (lto_input_toplevel_asms): Likewise.
7030 2013-02-08  Michael Matz  <matz@suse.de>
7032         PR tree-optimization/52448
7033         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7034         (nt_call_phase): New static.
7035         (add_or_mark_expr): Only mark accesses with newer phase than any
7036         call seen.
7037         (nonfreeing_call_p): New.
7038         (nt_init_block): Update nt_call_phase, mark blocks as visited.
7039         (nt_fini_block): Keep blocks marked as visited.
7040         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7042 2013-02-08  Richard Biener  <rguenther@suse.de>
7044         * ira.c (ira): Free broken dominator information.
7046 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
7048         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7050 2013-02-08  Marek Polacek  <polacek@redhat.com>
7052         * cfgloop.c (verify_loop_structure): Add more checking of headers.
7054 2013-02-08  Richard Biener  <rguenther@suse.de>
7056         PR middle-end/56181
7057         * cfgloop.h (flow_loops_find): Adjust.
7058         (bb_loop_header_p): Declare.
7059         * cfgloop.c (bb_loop_header_p): New function split out from ...
7060         (flow_loops_find): ... here.  Adjust function signature,
7061         support incremental loop structure update.
7062         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
7063         * cfgloopmanip.c (fix_loop_structure): Move ...
7064         * loop-init.c (fix_loop_structure): ... here.
7065         (apply_loop_flags): Split out from ...
7066         (loop_optimizer_init): ... here.
7067         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
7068         in incremental mode, only remove dead loops here.
7070 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
7072         PR target/54222
7073         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7074         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7075         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7076         (*round<mode>3.libgcc): New insns for fixed-modes.
7077         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7078         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7079         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7080         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7081         implementations.  Define to __builtin_avr_absFX,
7082         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7083         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7084         __builtin_avr_countlsFX, respectively.
7085         * config/avr/avr-c.c (target.h): Include it.
7086         (enum avr_builtin_id): New enum.
7087         (avr_resolve_overloaded_builtin): New static function.
7088         (avr_register_target_pragmas): Use it to set
7089         targetm.resolve_overloaded_builtin.
7090         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7091         tree nodes used by DEF_BUILTIN.
7092         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7093         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7094         <AVR_BUILTIN_xxBITS>: Same.
7096 2013-02-08  Richard Biener  <rguenther@suse.de>
7098         * cfgloop.c (verify_loop_structure): Properly handle
7099         a loop exiting to another loop header.
7100         * ira-int.h (ira_loops): Remove.
7101         * ira.c (ira_loops): Remove.
7102         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7103         (do_reload): Use loop_optimizer_finalize.
7104         * ira-build.c (create_loop_tree_nodes): Use get_loops and
7105         number_of_loops to access the loop tree.
7106         (more_one_region_p): Likewise.
7107         (finish_loop_tree_nodes): Likewise.
7108         (rebuild_regno_allocno_maps): Likewise.
7109         (mark_loops_for_removal): Likewise.
7110         (mark_all_loops_for_removal): Likewise.
7111         (remove_unnecessary_regions): Likewise.
7112         (ira_build): Likewise.
7113         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7115 2013-02-08  Richard Biener  <rguenther@suse.de>
7117         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7118         * ipa-pure-const.c (analyze_function): Avoid calling
7119         mark_irreducible_loops twice.
7120         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
7122 2013-02-07  David S. Miller  <davem@davemloft.net>
7124         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7125         on 'reg'.
7126         * var-tracking.c (vt_add_function_parameter): Test the presence of
7127         HAVE_window_save properly and do not remap argument registers when
7128         we have a leaf function.
7130 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
7132         PR bootstrap/56227
7133         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7134         instead of "ll".
7135         * config/i386/i386.c (ix86_print_operand): Ditto.
7137 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7139         * lra-constraints.c (process_alt_operands): Fix recently added comment.
7141 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
7143         PR rtl-optimization/56225
7144         * lra-constraints.c (process_alt_operands): Check that reload hard
7145         reg can hold value for strict_low_part.
7147 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7149         PR debug/56154
7150         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7151         dwarf2out_end_function.
7152         (in_first_function_p, maybe_at_text_label_p,
7153         first_loclabel_num_not_at_text_label): New variables.
7154         (dwarf2out_var_location): In the first function find out
7155         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
7156         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7157         functions.
7159 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
7161         PR rtl-optimization/56178
7162         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7163         SUBREG of a register.  Tidy up related block of code.
7164         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7165         note if the source is a register or a SUBREG of a register.
7167 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
7169         PR target/56228
7170         * config/rs6000/rs6000.md (ptrm): New mode attr.
7171         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7172         call_value_indirect_aix<pttrsize>,
7173         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7174         m in constraints.
7176 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7178         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7179         if -bnortl. Convert to strcmp and strncmp.
7181 2013-02-07  Alan Modra  <amodra@gmail.com>
7183         PR target/54009
7184         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7185         addresses won't wrap when offsetting.
7186         (rs6000_secondary_reload): Provide secondary reloads needed for
7187         wrapping LO_SUM addresses.
7189 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
7191         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7192         MACH, just __MACH__.
7194 2013-02-06  Richard Biener  <rguenther@suse.de>
7196         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7197         instead of calling fix_loop_structure.
7199 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
7201         PR middle-end/56217
7202         * omp-low.c (use_pointer_for_field): Return false if
7203         lower_send_shared_vars doesn't generate any copy-out code.
7205 2013-02-06  Tom de Vries  <tom@codesourcery.com>
7207         PR rtl-optimization/56131
7208         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7209         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
7210         of the label is NULL.  Add comment.
7212 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
7214         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7216         PR sanitizer/55374
7217         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7218         (STATIC_LIBTSAN_LIBS): Likewise.
7219         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7220         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7221         is defined, don't add anything else beyond that.
7222         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7223         (LINK_COMMAND_SPEC): Use them.
7225         PR tree-optimization/56205
7226         * tree-stdarg.c (check_all_va_list_escapes): Return true if
7227         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7228         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7230 2013-02-05  Richard Biener  <rguenther@suse.de>
7232         PR tree-optimization/53342
7233         PR tree-optimization/53185
7234         * tree-vectorizer.h (vect_check_strided_load): Remove.
7235         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7236         not disallow peeling for vectorized strided loads.
7237         (vect_check_strided_load): Make static and simplify.
7238         (vect_analyze_data_refs): Adjust.
7239         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7240         correctly when vectorizing strided loads.
7242 2013-02-05  Richard Biener  <rguenther@suse.de>
7244         * doc/install.texi: Refer to ISL, not PPL.
7246 2013-02-05  Jan Hubicka  <jh@suse.cz>
7248         PR tree-optimization/55789
7249         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7251 2013-02-05  Jan Hubicka  <jh@suse.cz>
7253         PR tree-optimization/55789
7254         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7255         the dead call anyway.
7257 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
7259         PR sanitizer/55374
7260         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7262 2013-02-04  Alexander Potapenko  <glider@google.com>
7263             Jack Howarth  <howarth@bromo.med.uc.edu>
7264             Jakub Jelinek  <jakub@redhat.com>
7266         PR sanitizer/55617
7267         * config/darwin.c (sort_ctor_records): Stabilized qsort
7268         on constructor priority by using original position.
7269         (finalize_ctors): New routine to sort constructors by
7270         priority before use in assemble_integer.
7271         (machopic_asm_out_constructor): Use finalize_ctors if needed.
7273 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
7275         PR libstdc++/54314
7276         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7277         about visibility on artificial decls.
7278         * config/sol2.c (solaris_assemble_visibility): Likewise.
7280 2013-02-04  Kai Tietz  <ktietz@redhat.com>
7282         PR target/56186
7283         * config/i386/i386.c (function_value_ms_64): Add additional valtype
7284         argument and improve checking of return-argument types for 16-byte
7285         modes.
7286         (ix86_function_value_1): Add additional valtype argument on call
7287         of function_value_64.
7288         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7289         handling infunction_value_64 function.
7291 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
7293         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
7295 2013-02-04  Richard Biener  <rguenther@suse.de>
7297         PR tree-optimization/56188
7298         * tree-ssa-structalias.c (label_visit): Consider case with
7299         initially non-empty points-to set.
7300         (perform_var_substitution): Dump node mapping and clean up.
7302 2013-02-04  Richard Guenther  <rguenther@suse.de>
7304         PR lto/56168
7305         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7306         node prevail as last resort.
7307         (lto_symtab_merge_decls): Remove guard on LTRANS here.
7308         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
7310 2013-02-04  Richard Biener  <rguenther@suse.de>
7312         PR tree-optimization/56113
7313         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7314         Merge into ...
7315         (equiv_class_lookup_or_add): ... this.
7316         (label_visit): Adjust and fix error in previous patch.
7317         (perform_var_substitution): Adjust.
7319 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
7321         * config/sh/divtab.c: Fix formatting and comments throughout the file.
7322         * config/sh/sh4-300.md: Likewise.
7323         * config/sh/sh4a.md: Likewise.
7324         * config/sh/constraints.md: Likewise.
7325         * config/sh/sh.md: Likewise.
7326         * config/sh/netbsd-elf.h: Likewise.
7327         * config/sh/predicates.md: Likewise.
7328         * config/sh/sh-protos.h: Likewise.
7329         * config/sh/ushmedia.h: Likewise.
7330         * config/sh/linux.h: Likewise.
7331         * config/sh/sh.c: Likewise.
7332         * config/sh/superh.h: Likewise.
7333         * config/sh/elf.h: Likewise.
7334         * config/sh/sh4.md: Likewise.
7335         * config/sh/sh.h: Likewise.
7337 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7339         * config/pa/constraints.md: Adjust unused letters.  Change "T"
7340         constraint to match_test floating_point_store_memory_operand().
7341         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7342         (base14_operand): New.
7343         (floating_point_store_memory_operand): New.
7344         (integer_store_memory_operand): Revise to use base14_operand and
7345         reg_plus_base_memory_operand.
7346         (move_dest_operand): Allow symbolic_memory_operands.
7347         (symbolic_memory_operand): Check for LO_SOM.
7348         (symbolic_operand): Change default case to break.
7349         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7350         CONST_DOUBLE values to be reloaded by putting them into memory when
7351         the destination is a floating point register.
7352         (movdf): Remove code to handle CONST_DOUBLE.
7353         (movsf): Likewise.
7354         (reload_indf_r1): New.
7355         (reload_insf_r1): New.
7356         Consistently use "Q" and "T" constraints with integer and floating
7357         point move instructions, respectively.
7358         (movdi): Remove FAIL.
7359         Change predicate for source operand unamed DImode move from
7360         general_operand to move_src_operand.
7361         (umulsidi3): Change predicate for destination operand to
7362         register_operand.
7363         Likewise for similar unamed patterns.
7364         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7365         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7366         (hppa_legitimize_address): Simplify mask calculation.
7367         (pa_emit_move_sequence): Revised handling of secondary reloads from
7368         REG+D addresses for floating point loads and stores.  Directly handle
7369         loading CONST0_RTX (mode) to a floating point register.
7370         (pa_secondary_reload): Handle reloading DF and SFmode constant values
7371         to floating point registers.  Don't restrict secondary reloads to
7372         floating point registers to integer modes.  Revise some comments and
7373         cleanup some code.
7374         (TARGET_LEGITIMATE_ADDRESS_P): Define.
7375         (pa_legitimate_address_p): New.
7376         (pa_legitimize_reload_address): New.
7377         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7378         (STRICT_REG_OK_FOR_BASE_P): New.
7379         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
7380         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7382 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
7383             Andrew Dixie  <andrewd@gentrack.com>
7385         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7386         flag set.
7388 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
7390         * expmed.c (extract_bit_field_1): Pass the full width of the
7391         structure to get_best_reg_extraction_insn.
7393 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
7395         PR target/54601
7396         * configure.ac (use_cxa_atexit): Add AIX.
7397         * configure: Regenerate.
7399         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7401 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
7403         PR debug/54793
7404         * final.c (need_profile_function): New variable.
7405         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7406         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7407         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7408         notes, targetm.asm_out.function_prologue doesn't emit anything,
7409         HAVE_prologue and profiler should be emitted before prologue,
7410         set need_profile_function instead of emitting it.
7411         (final_scan_insn): If need_profile_function, emit
7412         profile_function on the first NOTE_INSN_BASIC_BLOCK or
7413         NOTE_INSN_FUNCTION_BEG note.
7415 2013-02-01  Richard Henderson  <rth@redhat.com>
7417         * config/rs6000/rs6000.md (smulditi3): New.
7418         (umulditi3): New.
7420         * config/alpha/alpha.md (umulditi3): New.
7422 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
7424         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7425         (ASM_OUTPUT_ALIGNED_LOCAL): New.
7427 2013-02-01  Richard Biener  <rguenther@suse.de>
7429         PR tree-optimization/56113
7430         * tree-ssa-structalias.c (label_visit): Reduce work for
7431         single-predecessor nodes.
7433 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
7435         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7436         range isn't testing for zero.
7438 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
7440         PR middle-end/56113
7441         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7443 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
7444             Nick Clifton  <nickc@redhat.com>
7446         * config/v850/constraints.md (Q): Define as a memory constraint.
7447         * config/v850/predicates.md (label_ref_operand): New predicate.
7448         (e3v5_shift_operand): New predicate.
7449         (ior_operator): New predicate.
7450         * config/v850/t-v850: Add e3v5 multilib.
7451         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
7452         (v850_gen_movdi): Prototype.
7453         * config/v850/v850.c: Add support for e3v5 architecture.
7454         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
7455         TARGET_V850E_UP.
7456         (construct_save_jarl): Add e3v5 long JARL support.
7457         (v850_adjust_insn_length): New function.  Adjust length of call
7458         insns when using e3v5 instructions.
7459         (v850_gen_movdi): New function: Generate instructions to move a
7460         DImode value.
7461         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
7462         (CPP_SPEC): Define __v850e3v5__ as appropriate.
7463         (TARGET_USE_FPU): Enable for e3v5.
7464         (CONST_OK_FOR_W): New macro.
7465         (ADJUST_INSN_LENGTH): Define.
7466         * config/v850/v850.md (UNSPEC_LOOP): Define.
7467         (attr cpu): Add v850e3v5.
7468         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
7469         (movdi): New pattern.
7470         (movdi_internal): New pattern.
7471         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
7472         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
7473         (cstoresf4): Likewise.
7474         (cstoredf4): Likewise.
7475         (insv): New pattern.
7476         (rotlso3_a): New pattern.
7477         (rotlsi3_b): New pattern
7478         (rotlsi3_v850e3v5): New pattern.
7479         (doloop_begin): New pattern.
7480         (fix_loop_counter): New pattern.
7481         (doloop_end): New pattern.
7482         (branch_normal): Add e3v5 long branch support.
7483         (branch_invert): Likewise.
7484         (branch_z_normal): Likewise.
7485         (branch_z_invert): Likewise.
7486         (branch_nz_normal): Likewise.
7487         (branch_nz_invert): Likewise.
7488         (call_internal_short): Add e3v5 register-indirect JARL support.
7489         (call_internal_long): Likewise.
7490         (call_value_internal_short): Likewise.
7491         (call_value_internal_long): Likewise.
7492         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
7493         (mloop): New option.
7494         * config.gcc: Add support for configuring v840e3v5 target.
7495         * doc/invoke.texi: Document new v850 specific command line options.
7497 2013-01-31  Paul Koning  <ni1d@arrl.net>
7499         PR debug/55059
7500         PR debug/54508
7501         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
7502         children if parent is a class.
7503         (prune_unused_types_prune): Don't add DW_AT_declaration.
7505 2013-01-31  Richard Biener  <rguenther@suse.de>
7507         PR tree-optimization/56157
7508         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
7509         match up operand with SLP child.
7511 2013-01-31  Jason Merrill  <jason@redhat.com>
7513         PR debug/54410
7514         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
7515         parameters the first time.
7516         (gen_scheduled_generic_parms_dies): Check completeness here.
7518 2013-01-31  Richard Biener  <rguenther@suse.de>
7520         PR middle-end/53073
7521         * common.opt (faggressive-loop-optimizations): New flag,
7522         enabled by default.
7523         * doc/invoke.texi (faggressive-loop-optimizations): Document.
7524         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
7525         infer_loop_bounds_from_undefined by it.
7527 2013-01-31  Richard Biener  <rguenther@suse.de>
7529         PR tree-optimization/56150
7530         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
7531         visit virtual operands.
7532         (find_uses_to_rename_bb): Likewise.
7534 2013-01-31  Richard Biener  <rguenther@suse.de>
7536         PR tree-optimization/56150
7537         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
7538         mixed store non-store stmts.
7540 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
7542         PR sanitizer/55374
7543         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
7544         LIBASAN_EARLY_SPEC is defined.
7545         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
7546         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
7547         before %o.
7548         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
7550         PR c++/55742
7551         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
7552         invalid args instead of ICEing on it.
7553         (ix86_valid_target_attribute_tree): Return error_mark_node if
7554         ix86_valid_target_attribute_inner_p failed.
7555         (ix86_valid_target_attribute_p): Return false only if
7556         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
7557         target("default") attribute.
7558         (sorted_attr_string): Change argument from const char * to tree,
7559         merge in all target attribute arguments rather than just one.
7560         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
7561         instead of free.  Avoid using strcat.
7562         (ix86_mangle_function_version_assembler_name): Mangle
7563         target("default") as if no target attribute is present.  Adjust
7564         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
7565         instead of xmalloc and XDELETEVEC instead of free.
7566         (ix86_function_versions): Don't return true if one of the decls
7567         doesn't have target attribute.  If they don't and one of the decls
7568         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
7569         sorted_attr_string caller.  Use XDELETEVEC instead of free.
7570         (ix86_supports_function_versions): Remove.
7571         (make_name): Fix up formatting.
7572         (make_dispatcher_decl): Remove resolver_name and its initialization.
7573         Avoid leaking memory.
7574         (is_function_default_version): Return true if there is
7575         target("default") attribute rather than no target attribute at all.
7576         (make_resolver_func): Avoid leaking memory.
7577         (ix86_generate_version_dispatcher_body): Likewise.
7578         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
7579         * target.def (supports_function_versions): Remove.
7580         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
7581         * doc/tm.texi: Regenerated.
7583 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
7585         PR rtl-optimization/56144
7586         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
7587         for values with side effects.
7589 2013-01-30  Richard Biener  <rguenther@suse.de>
7591         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
7592         (sparseset_pop): Likewise.
7593         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
7594         to be able to use quick_push in the worker loop.
7596 2013-01-30  Marek Polacek  <polacek@redhat.com>
7598         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
7600 2013-01-30  Richard Biener  <rguenther@suse.de>
7602         PR lto/56147
7603         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
7605 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
7607         PR tree-optimization/56064
7608         * fixed-value.c (fixed_from_double_int): New function.
7609         * fixed-value.h (fixed_from_double_int): New prototype.
7610         (const_fixed_from_double_int): New static inline function.
7611         * fold-const.c (native_interpret_fixed): New static function.
7612         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
7613         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
7614         (native_encode_fixed): New static function.
7615         (native_encode_expr) <FIXED_CST>: Use it.
7616         (native_interpret_int): Move double_int worker code to...
7617         * double-int.c (double_int::from_buffer): ...this new static method.
7618         * double-int.h (double_int::from_buffer): Prototype it.
7620 2013-01-30  Richard Biener  <rguenther@suse.de>
7622         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
7623         New pointer-map and obstack.
7624         (init_alias_vars): Allocate pointer-map and obstack.
7625         (delete_points_to_sets): Free them.
7626         (find_what_var_points_to): Cache result.
7627         (find_what_p_points_to): Adjust for changed interface of
7628         find_what_var_points_to.
7629         (compute_points_to_sets): Likewise.
7630         (ipa_pta_execute): Likewise.
7632 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7634         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
7635         * configure: Regenerate.
7636         * config.in: Regenerate.
7637         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
7638         #nobits/#progbits if supported.
7640 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
7642         PR target/56121
7643         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
7644         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
7645         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
7647 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
7649         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
7650         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7652 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
7654         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
7655         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
7657 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
7659         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
7660         declaration.
7661         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
7662         * config/arm/cortex-a7.md: New bypasses using
7663         arm_mac_accumulator_is_result.
7665 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
7667         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
7668         (cortex_a7_neon_mla): Likewise.
7669         (cortex_a7_fpfmad): New reservation.
7670         (cortex_a7_fpmacs): Use ffmas and update required units.
7671         (cortex_a7_fpmuld): Update required units and latency.
7672         (cortex_a7_fpmacd): Likewise.
7673         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
7674         (cortex_a7_neon). Likewise.
7675         (bypass) Update participating units.
7677 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
7679         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
7680         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
7681         from fmac to ffma.
7682         * config/arm/vfp11.md (vfp_farith): Use ffmas.
7683         (vfp_fmul): Use ffmad.
7684         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
7685         (cortex_r4_fmacd): Use ffmad.
7686         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
7687         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
7688         (cortex_a9_fmacd): Use ffmad.
7689         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
7690         (cortex_a8_vfp_macd): Use ffmad.
7691         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
7692         (cortex_a5_fpmacd): Use ffmad.
7693         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
7694         (cortex_a15_vfp_macd): Use ffmad.
7695         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
7697 2013-01-29  Jason Merrill  <jason@redhat.com>
7699         PR libstdc++/54314
7700         * varasm.c (default_assemble_visibility): Don't warn about
7701         visibility on artificial decls.
7703 2013-01-29  Richard Biener  <rguenther@suse.de>
7705         PR tree-optimization/56113
7706         * tree-ssa-structalias.c (equiv_class_lookup): Also return
7707         the bitmap leader.
7708         (label_visit): Free duplicate bitmaps and record the leader instead.
7709         (perform_var_substitution): Adjust.
7711 2013-01-29  Richard Biener  <rguenther@suse.de>
7713         PR tree-optimization/55270
7714         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7715         the CFG, schedule loops for fixup.
7717 2013-01-29  Nick Clifton  <nickc@redhat.com>
7719         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7720         SP_REG.
7722 2013-01-28  Leif Ekblad  <leif@rdos.net>
7724         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7725         * config/i386/i386.h (TARGET_RDOS): New macro.
7726         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7727         * config/i386/i386.c (ix86_option_override_internal): For 64bit
7728         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7729         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7730         DEFAULT_LARGE_SECTION_THRESHOLD.
7731         * config/i386/i386.md (R14_REG, R15_REG): New constants.
7732         * config/i386/rdos.h: New file.
7733         * config/i386/rdos64.h: New file.
7735 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
7737         PR other/54814
7738         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7739         TEST_HARD_REG_BIT.
7741 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
7743         PR rtl-optimization/56117
7744         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7745         call cselib_lookup_from_insn on the MEM before calling
7746         add_insn_mem_dependence.
7748 2013-01-28  Richard Biener  <rguenther@suse.de>
7750         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7751         to a stmt that didn't have one.
7752         (copy_phis_for_bb): Likewise for PHI arguments.
7753         (copy_debug_stmt): Likewise for debug stmts.
7755 2013-01-28  Richard Biener  <rguenther@suse.de>
7757         PR tree-optimization/56034
7758         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7759         (partition_builtin_p): Adjust.
7760         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
7761         it is the last partition.
7762         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7763         up the vertex for the definition.
7764         (classify_partition): Classify whether a partition is a
7765         PKIND_REDUCTION, thus has uses outside of the loop.
7766         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7767         Merge all PKIND_REDUCTION partitions into the last partition.
7768         (tree_loop_distribution): Seed partitions from reductions as well.
7770 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
7772         PR tree-optimization/56125
7773         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7774         pow(x,c) into sqrt(x) * powi(x, n/2) or
7775         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7776         optimizing for size.
7777         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7778         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7779         integer.
7781         PR tree-optimization/56094
7782         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7783         to UNKNOWN_LOCATION while gimplifying expr.
7785 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
7787         PR target/56114
7788         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7789         operand 0 in movabs insn template for -masm=intel asm alternative.
7790         (*movabs<mode>_2): Ditto for operand 1.
7792 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
7794         PR target/54663
7795         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7796         of microblaze-c.o
7798 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7800         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7801         tm_file.
7803 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7805         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7806         Undef to avoid warning.
7808 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7810         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7811         * configure: Regenerate.
7813 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
7815         PR tree-optimization/56098
7816         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7817         for stmts with volatile ops.
7818         (cond_store_replacement): Don't optimize if assign has volatile ops.
7819         (cond_if_else_store_replacement_1): Don't optimize if either
7820         then_assign or else_assign have volatile ops.
7821         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7822         volatile ops.
7824 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7826         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7828 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7830         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7831         missing ':' in asm example.
7833 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
7835         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7836         entries into lane and laneq entries.
7837         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7838         Remove AdvSIMD scalar modes.
7839         (aarch64_sq<r>dmulh_laneq<mode>): New.
7840         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7841         modes.
7842         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7843         builtin implementations to relfect changes in RTL in aarch64-simd.md.
7844         * config/aarch64/iterators.md (VCOND): New.
7845         (VCONQ): New.
7847 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7849         PR target/54222
7850         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7851         Add NULL LIBNAME argument to existing definitions.
7852         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7853         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7854         * config/avr/avr.c (DEF_BUILTIN): Same.
7855         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7856         (avr_expand_builtin): Expand to a vanilla call if a libgcc
7857         implementation is available (DECL_ASSEMBLER_NAME is set).
7858         (avr_fold_absfx): New static function.
7859         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7860         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7861         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7862         AVR_BUILTIN_ABSLLK.
7863         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7864         (abshk, absk, abslk, absllk): Provide as static inline functions.
7866 2013-01-25  Marek Polacek  <polacek@redhat.com>
7868         PR tree-optimization/56035
7869         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7871 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
7873         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7874         (*movtf_internal_rex64): Add (!o,C) alternative
7875         (*movxf_internal_rex64): Ditto.
7876         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7878 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
7880         * doc/invoke.texi: fix typo.
7881         * doc/objc.texi: fix typo.
7883 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7885         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7886         for the first two alternatives.
7888 2013-01-24  Diego Novillo  <dnovillo@google.com>
7890         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
7891         (ggc-zone.o): Remove.
7892         * configure.ac: Remove option --with-gc.
7893         * configure: Re-generate.
7894         * doc/install.texi: Remove documentation for --with-gc.
7895         * gengtype.c (write_enum_defn): Remove.  Update all users.
7896         (write_Types_process_field): Remove generation of gt_e_* argument.
7897         (output_type_enum): Remove.  Update all users.
7898         (write_enum_defn): Remove.  Update all users.
7899         (enum alloc_zone): Remove.  Update all users.
7900         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7901         * ggc-common.c (ggc_splay_alloc): Remove first argument.
7902         Update all callers.
7903         (struct ptr_data): Remove field TYPE.  Update all users.
7904         (gt_pch_note_object): Remove argument TYPE.  Update all users.
7905         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7906         Update all users.
7907         * ggc-none.c (ggc_alloc_typed_stat): Remove.
7908         (struct alloc_zone): Remove.
7909         (ggc_internal_alloc_zone_stat): Remove.
7910         (ggc_internal_cleared_alloc_zone_stat): Remove.
7911         * ggc-page.c (ggc_alloc_typed_stat): Remove.
7912         (ggc_pch_count_object): Remove last argument.  Update all users.
7913         (ggc_pch_alloc_object): Remove last argument.  Update all users.
7914         (struct alloc_zone): Remove.
7915         * ggc-zone.c: Remove.
7916         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
7917         (struct alloc_zone): Remove.
7918         (ggc_alloc_typed_stat): Remove.
7919         (ggc_alloc_typed): Remove.
7920         (ggc_splay_alloc): Remove first argument.
7921         (rtl_zone): Remove.  Update all users.
7922         (tree_zone): Remove.  Update all users.
7923         (tree_id_zone): Remove.  Update all users.
7924         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
7925         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
7926         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
7927         * tree-ssanames.c: Remove references to zone allocator in comments.
7929 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
7931         * config/avr/avr.c (avr_out_fract): Make register numbers that
7932         might be outside of source operand signed.
7934 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
7936         * config/i386/constraints.md (Yf): New constraint.
7937         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7938         of f constraint to conditionaly disable x87 register preferences.
7939         (*movdf_internal): Ditto.
7940         (*movsf_internal): Ditto.
7942 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
7944         PR inline-asm/55934
7945         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7946         that have operands with impossible constraints.
7947         Add a FIXME for a speed-up opportunity.
7948         * lra-constraints.c (process_alt_operands): Verify that a class
7949         selected from constraints on asms is valid for the operand mode.
7950         (curr_insn_transform): Remove incorrect comment.
7952 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
7954         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7955         TOC operand is a valid symbol ref in the constant pool.
7957 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7959         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7961 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
7963         PR target/54222
7964         * config/avr/stdfix.h: New file.
7965         * t-avr (stdfix-gcc.h): New rule to build it.
7966         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7968 2013-01-23  Kostya Serebryany  <kcc@google.com>
7970         * config/darwin.h: remove dependency on
7971         CoreFoundation (asan on Mac OS).
7973 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
7975         PR target/49069
7976         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7977         instead of cmpdi_operand for first comparison operand.
7978         Don't assert that comparison operands aren't both constants.
7980 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
7982         * doc/install.texi (Downloading the Source): Update references to
7983         downloading separate components.
7985 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
7987         * doc/extend.texi (__int128): Improve grammar.
7989 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
7991         PR target/56028
7992         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7993         alternative to (o,r).
7994         (*movdi_internal_rex64): Remove (!o,n) alternative.
7995         (DImode immediate->memory splitter): Remove.
7996         (DImode immediate->memory peephole2): Remove.
7997         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7998         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7999         alternative to (!o,*r).
8000         (*movtf_internal_sse): New pattern.
8001         (*movxf_internal_rex64): New pattern.
8002         (*movxf_internal): Disable for TARGET_64BIT.
8003         (*movdf_internal_rex64): Remove (!o,F) alternative.
8005 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
8007         PR middle-end/56074
8008         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8009         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8010         * tree-vect-loop-manip.c (find_loop_location): Also ignore
8011         stmt locations where LOCATION_LOCUS of the stmt location is
8012         UNKNOWN_LOCATION or BUILTINS_LOCATION.
8014         PR target/55686
8015         * config/i386/i386.md (UNSPEC_STOS): New.
8016         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8017         *strsetqi_1): Add UNSPEC_STOS.
8019 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
8021         PR c++/56067
8022         * doc/invoke.texi: Remove left over -Wsynth example.
8024 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8026         PR tree-optimization/56051
8027         * fold-const.c (fold_binary_loc): Don't fold
8028         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8029         a narrowing conversion, or widening conversion from signed
8030         to unsigned.
8032 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8034         PR rtl-optimization/56023
8035         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8036         dependent on debug instruction.
8038 2013-01-21  Martin Jambor  <mjambor@suse.cz>
8040         PR middle-end/56022
8041         * function.c (allocate_struct_function): Call
8042         invoke_set_current_function_hook earlier.
8044 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
8046         * reload1.c (init_reload): Only initialize reload_obstack
8047         during the first call.
8049 2013-01-21  Marek Polacek  <polacek@redhat.com>
8051         * cfgloop.c (verify_loop_structure): Fix up grammar.
8053 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
8055         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8056         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8058 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8060         PR target/56058
8061         * config/arm/marvell-pj4.md: Update copyright year.
8062         Fix up use of alu to alu_reg and simple_alu_imm.
8064 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
8066         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8068 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
8070         PR target/55433
8071         * lra-constraints.c (curr_insn_transform): Don't reuse original
8072         insn for secondary memory move when memory mode should be different.
8074 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8076         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8077         atomic_storedi_1): New patterns.
8079 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8081         btver2 pipeline descriptions.
8082         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8083         descriptions.
8084         * config/i386/i386.md (btver2_decode): New type attributes.
8085         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
8086         type attributes.
8087         * config/i386/btver2.md: New file describing btver2 pipelines.
8089 2013-01-19  Andrew Pinski  <apinski@cavium.com>
8091         PR tree-optimization/52631
8092         * tree-ssa-sccvn (visit_use): Before looking up the original
8093         statement, try looking up the simplified expression.
8095 2013-01-19  Anthony Green  <green@moxielogic.com>
8097         * config/moxie/moxie.c (moxie_expand_prologue): Set
8098         current_function_static_stack_size.
8100 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8102         PR tree-optimization/56029
8103         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8104         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8106 2013-01-18  Sharad Singhai  <singhai@google.com>
8108         PR tree-optimization/55995
8109         * dumpfile.c (dump_loc): Print location only if available.
8110         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8112 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
8114         PR target/55433
8115         * lra-constraints.c (curr_insn_transform): Reuse original insn for
8116         secondary memory move.
8117         (inherit_reload_reg): Use rclass instead of cl for
8118         check_secondary_memory_needed_p.
8120 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
8122         PR middle-end/56015
8123         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
8124         the case where writing real complex part of target modifies op1.
8126 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
8128         * config/aarch64/aarch64-simd.md
8129         (aarch64_vcond_internal<mode>): Handle unordered cases.
8130         * config/aarch64/iterators.md (v_cmp_result): New.
8132 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
8133             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8135         * config/arm/marvell-pj4.md: New file.
8136         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8137         * config/arm/arm.md (generic_sched): Add marvell_pj4.
8138         (generic_vfp): Likewise.
8139         * config/arm/arm-cores.def: Add marvell-pj4.
8140         * config/arm/arm-tune.md: Regenerate.
8141         * config/arm/arm-tables.opt: Regenerate.
8142         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8143         * doc/invoke.texi: Document marvell-pj4.
8145 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
8147         * config/aarch64/arm_neon.h: Map scalar types to standard types.
8149 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8151         PR debug/54114
8152         PR debug/54402
8153         PR debug/49888
8154         * var-tracking.c (negative_power_of_two_p): New.
8155         (global_get_addr_cache, local_get_addr_cache): New.
8156         (get_addr_from_global_cache, get_addr_from_local_cache): New.
8157         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
8158         heading comment.
8159         (vt_stack_offset_p): Remove.
8160         (vt_canon_true_dep): Always canonicalize loc's address.
8161         (clobber_overlapping_mems): Make sure we have a MEM.
8162         (local_get_addr_clear_given_value): New.
8163         (val_reset): Clear local cached entries.
8164         (compute_bb_dataflow): Create and release the local cache.
8165         Disable duplicate MEMs clobbering.
8166         (emit_notes_in_bb): Clobber MEMs likewise.
8167         (vt_emit_notes): Create and release the local cache.
8168         (vt_initialize, vt_finalize): Create and release the global
8169         cache, respectively.
8170         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
8172 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8174         PR libmudflap/53359
8175         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8176         not found in the symtab.
8178 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
8180         PR debug/56006
8181         PR rtl-optimization/55547
8182         PR rtl-optimization/53827
8183         PR debug/53671
8184         PR debug/49888
8185         * alias.c (offset_overlap_p): New, factored out of...
8186         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
8187         the conservative special case for symbolic constants.  Don't
8188         adjust zero sizes on alignment.
8190 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
8192         PR rtl-optimization/52573
8193         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8194         REG_UNUSED for the same register.
8196 2013-01-17  Richard Biener  <rguenther@suse.de>
8197             Marek Polacek  <polacek@redhat.com>
8199         PR rtl-optimization/55833
8200         * loop-unswitch.c (unswitch_loops): Move loop verification...
8201         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
8202         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8203         Set it to true when we're removing a loop from hierarchy tree in
8204         an irreducible region.
8205         (fix_bb_placements): Adjust caller.
8206         (fix_loop_placements): Likewise.
8208 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
8210         * config/avr/builtins.def (DEF_BUILTIN): Factor out
8211         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8212         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8213         Remove ID.  Adjust comments.
8214         * config/avr/avr-c.c (avr_builtin_name): Remove.
8215         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8216         * config/avr/avr.c (avr_tolower): New static function.
8217         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
8218         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8219         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8220         default expansion.
8222 2013-01-17  Jan Hubicka  <jh@suse.cz>
8224         PR tree-optimization/55273
8225         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8227 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
8229         PR target/55981
8230         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8231         store through atomic_store<mode>_1.
8232         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8234 2013-01-17  Martin Jambor  <mjambor@suse.cz>
8236         PR tree-optimizations/55264
8237         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8238         for virtual methods.
8239         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8240         virtual methods before inlining is over.
8241         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8242         virtual functions.
8243         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8244         non-virtual.
8246 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
8248         PR rtl-optimization/56005
8249         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8250         pending reads for prefetch.
8252 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
8254         * config/aarch64/aarch64.md
8255         (*cstoresi_neg_uxtw): New pattern.
8256         (*cmovsi_insn_uxtw): New pattern.
8257         (*<optab>si3_uxtw): New pattern.
8258         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8259         (*<optab>si3_insn_uxtw): New pattern.
8260         (*bswapsi2_uxtw): New pattern.
8262 2013-01-16  Richard Biener  <rguenther@suse.de>
8264         * tree-inline.c (tree_function_versioning): Remove set but
8265         never used variable.
8267 2013-01-16  Richard Biener  <rguenther@suse.de>
8269         PR tree-optimization/55964
8270         * tree-flow.h (rename_variables_in_loop): Remove.
8271         (rename_variables_in_bb): Likewise.
8272         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8273         (copy_loop_before): Adjust and delete update-ssa status.
8274         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8275         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
8276         (rename_variables_in_loop): Remove.
8277         (slpeel_update_phis_for_duplicate_loop): Likewise.
8278         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8279         use available cfg machinery instead of duplicating it.
8280         Update PHI nodes and perform poor-mans SSA update here.
8281         (slpeel_tree_peel_loop_to_edge): Adjust.
8283 2013-01-16  Richard Biener  <rguenther@suse.de>
8285         PR tree-optimization/54767
8286         PR tree-optimization/53465
8287         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8288         (vrp_visit_phi_node): For PHI arguments coming via backedges
8289         drop all symbolical range information.
8290         (execute_vrp): Compute backedges.
8292 2013-01-16  Richard Biener  <rguenther@suse.de>
8294         * doc/install.texi: Update CLooG and ISL requirements to
8295         0.18.0 and 0.11.1.
8297 2013-01-16  Christian Bruel  <christian.bruel@st.com>
8299         PR target/55301
8300         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8301         (broken_move): Handle UNSPECV_SP_SWITCH_B.
8302         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8304 2013-01-16  DJ Delorie  <dj@redhat.com>
8306         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8307         (UNSPECV_SP_SWITCH_E): New.
8308         (sp_switch_1): Change to an unspec.
8309         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8310         replace $r15.
8312 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
8314         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8315         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8316         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8317         (expand_mem_thread_fence): Ditto.
8318         (expand_mem_signal_fence): Ditto.
8319         (expand_atomic_load): Ditto.
8320         (expand_atomic_store): Ditto.
8322 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
8324         PR rtl-optimization/55547
8325         PR rtl-optimization/53827
8326         PR debug/53671
8327         PR debug/49888
8328         * alias.c (memrefs_conflict_p): Set sizes to negative after
8329         AND adjustments.
8331 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8333         PR target/55940
8334         * function.c (thread_prologue_and_epilogue_insns): Always
8335         add crtl->drap_reg to set_up_by_prologue.set, even if
8336         stack_realign_drap is false.
8338 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8340         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8341         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8342         *call): Fix indention.
8344 2013-01-15  Tom de Vries  <tom@codesourcery.com>
8346         PR target/55876
8347         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8348         Update comment.
8350 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8352         PR rtl-optimization/55153
8353         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8355 2013-01-15  Martin Jambor  <mjambor@suse.cz>
8357         PR tree-optimization/55920
8358         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8359         accesses as grp_to_be_debug_replaced.
8361 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8363         PR tree-optimization/55920
8364         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8365         there is non-useless type conversion needed from debug rhs to lhs,
8366         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8368 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
8369             Mikael Pettersson  <mikpe@it.uu.se>
8371         PR target/43961
8372         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8373         Thumb.
8374         (ASM_OUTPUT_CASE_LABEL): Remove.
8375         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8376         * final.c (shorten_branches): Update alignment of labels before
8377         jump tables if CASE_VECTOR_SHORTEN_MODE.
8379 2013-01-15  Richard Biener  <rguenther@suse.de>
8381         PR bootstrap/55961
8382         * system.h: Do not include gmp.h for building host tools.
8384 2013-01-15  Richard Biener  <rguenther@suse.de>
8386         PR middle-end/55882
8387         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8388         account for bitpos when computing alignment.
8390 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
8392         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8393         (ix86_target_macros_internal): Likewise.
8395         * config/i386/i386.c (m_CORE2I7): Removed.
8396         (m_CORE_HASWELL): New macro.
8397         (m_CORE_ALL): Likewise.
8398         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8399         (initial_ix86_arch_features): Likewise.
8400         (processor_target_table): Initializations for Core avx2.
8401         (cpu_names): New names "core-avx2".
8402         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8403         PROCESSOR_CORE_HASWELL.
8404         (ix86_issue_rate): New case.
8405         (ia32_multipass_dfa_lookahead): Likewise.
8406         (ix86_sched_init_global): Likewise.
8408         * config/i386/i386.h (TARGET_HASWELL): New macro.
8409         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8410         (processor_type): New PROCESSOR_HASWELL.
8412 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
8414         PR tree-optimization/55955
8415         * tree-vect-loop.c (vectorizable_reduction): Give up early on
8416         *SHIFT_EXPR and *ROTATE_EXPR codes.
8418         PR tree-optimization/48766
8419         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8420         -ftrapv disable -fwrapv.
8422 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8424         PR target/55974
8425         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8426         etc. to 1 and not to __flash.
8427         Use LL suffix for __INT24_MAX__ with -mint8.
8428         Use ULL suffix for __UINT24_MAX__ with -mint8.
8430 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8432         * config/avr/avr-arch.h
8433         (struct base_arch_s): Use typedef avr_arch_t instead.
8434         (struct arch_info_s): Use typedef avr_arch_info_t instead.
8435         (struct mcu_type_s): Use typedef avr_mcu_t instead.
8436         * config/avr/avr.c: Same.
8437         * config/avr/avr-devices.c: Same.
8438         * config/avr/driver-avr.c: Same.
8439         * config/avr/gen-avr-mmcu-texi.c: Same.
8440         * config/avr/avr-mcus.def: Adjust comment.
8442 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
8444         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8445         * config/aarch64/iterators.md (VALLDI): New.
8447 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
8448             Andi Kleen  <ak@linux.intel.com>
8450         PR target/55948
8451         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
8452         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
8453         memmodel flag.
8455 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8457         * config/avr/avr-stdint.h: Remove trailing blanks.
8458         * config/avr/avr-log.h: Same.
8459         * config/avr/avr-arch.h: Same.
8460         * config/avr/avr-devices.c: Same.
8461         * config/avr/avr-dimode.md: Same.
8462         * config/avr/predicates.md: Same.
8463         * config/avr/avr-c.c: Same.  And fix typo.
8465         * config/avr/avr-protos.h: Same.  And:
8466         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
8467         (init_cumulative_args): Rename to avr_init_cumulative_args.
8468         (expand_prologue): Rename to avr_expand_prologue.
8469         (expand_epilogue): Rename to avr_expand_epilogue.
8470         (adjust_insn_length): Rename to avr_adjust_insn_length.
8471         (notice_update_cc): Rename to avr_notice_update_cc.
8472         (final_prescan_insn): Rename to avr_final_prescan_insn.
8473         * config/avr/avr.c: Same.
8474         * config/avr/avr.h: Same.
8475         * config/avr/avr.md: Remove trailing blanks.
8476         (prologue): Use avr_expand_prologue.
8477         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
8479 2013-01-14  Richard Biener  <rguenther@suse.de>
8481         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
8482         verify_location, collect_subblocks): New functions.
8483         (verify_gimple_in_cfg): Verify that locations only reference
8484         BLOCKs in the functions BLOCK tree.
8486 2013-01-14  Richard Biener  <rguenther@suse.de>
8488         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
8489         PHI argument.
8490         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
8491         unshare reference.
8492         (insert_out_of_ssa_copy_on_edge): Likewise.
8493         (rewrite_close_phi_out_of_ssa): Likewise.
8494         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
8495         debug expressions.
8496         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
8497         propagated constants.
8498         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
8499         can not be shared.
8501 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
8503         * config/avr/avr-modes.def: Add GPL copyright notice.
8505 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
8507         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
8508         MEMMODEL_MASK to determine memory model.
8509         (atomic_store<mode>): Ditto from operands[2].
8510         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
8512 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
8514         PR fortran/55935
8515         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8516         (fold_gimple_assign): Don't call unshare_expr here.
8517         (fold_ctor_reference): Call unshare_expr.
8519 2013-01-13  Terry Guo  <terry.guo@arm.com>
8521         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
8522         * doc/fragments.texi: Document MULTILIB_REUSE.
8523         * gcc.c (multilib_reuse): New internal spec.
8524         (set_multilib_dir): Also search multilib from multilib_reuse.
8525         * genmultilib (tmpmultilib3): Refactor code.
8526         (tmpmultilib4): Ditto.
8527         (multilib_reuse): New multilib argument.
8529 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
8531         * Makefile.in: Update copyright.
8533 2013-01-12  Tom de Vries  <tom@codesourcery.com>
8535         PR middle-end/55890
8536         * calls.c (expand_call): Check if arg_nr is valid.
8538 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
8540         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
8541         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
8542         documentation.  Add missing '__' in front of
8543         __builtin_ia32_packssdw256.
8545 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8547         PR target/55719
8548         * config/s390/s390.c (s390_preferred_reload_class): Do not return
8549         NO_REGS for larl operands.
8550         (s390_reload_larl_operand): Use s390_load_address instead of
8551         emit_move_insn.
8553 2013-01-11  Richard Biener  <rguenther@suse.de>
8555         * tree-cfg.c (verify_node_sharing_1): Split out from ...
8556         (verify_node_sharing): ... here.
8557         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
8559 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
8561         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
8562         Substitute TREECHECKING.
8563         * configure: Regenerate.
8564         * Makefile.in (TREECHECKING): New.
8566 2013-01-11  Richard Guenther  <rguenther@suse.de>
8568         PR tree-optimization/44061
8569         * tree-vrp.c (extract_range_basic): Compute zero as
8570         value-range for __builtin_constant_p of function parameters.
8572 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
8574         Update copyright years.
8576 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
8578         PR rtl-optimization/55672
8579         * lra-eliminations.c (mark_not_eliminable): Permit addition with
8580         const to be eliminable.
8582 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
8584         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
8585         * configure: Regenerate.
8587 2013-01-10  Richard Biener  <rguenther@suse.de>
8589         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
8591 2013-01-10  Richard Biener  <rguenther@suse.de>
8593         PR bootstrap/55792
8594         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
8595         locations for virtual PHI arguments.
8596         (rewrite_update_phi_arguments): Likewise.
8598 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
8600         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
8601         on to assembler.
8603 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
8605         PR tree-optimization/55921
8606         * tree-complex.c (expand_complex_asm): New function.
8607         (expand_complex_operations_1): Call it for GIMPLE_ASM.
8609 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8611         PR target/55718
8612         * config/s390/s390.c (s390_symref_operand_p)
8613         (s390_loadrelative_operand_p): Merge the two functions.
8614         (s390_check_qrst_address, print_operand_address): Add parameters
8615         to s390_loadrelative_operand_p invokation.
8616         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
8617         (s390_reload_larl_operand, s390_secondary_reload): Use
8618         s390_loadrelative_operand_p instead of s390_symref_operand_p.
8619         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
8621 2013-01-09  Mike Stump  <mikestump@comcast.net>
8623         * dse.c (record_store): Remove unnecessary assert.
8625 2013-01-09  Jan Hubicka  <jh@suse.cz>
8627         PR tree-optimization/55569
8628         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
8629         * cfgloop.h (scale_loop_profile): Likewise.
8631 2013-01-09  Jan Hubicka  <jh@suse.cz>
8633         PR lto/45375
8634         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
8635         functions.
8636         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
8638 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
8640         PR middle-end/55114
8641         * expr.h (maybe_emit_group_store): Declare.
8642         * expr.c (maybe_emit_group_store): New function.
8643         * builtins.c (expand_builtin_int_roundingfn): Call it.
8644         (expand_builtin_int_roundingfn_2): Likewise.
8646 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
8648         PR rtl-optimization/55829
8649         * lra-constraints.c (match_reload): Add code for absent output.
8650         (curr_insn_transform): Add code for reloads of matched inputs
8651         without output.
8653 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
8655         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
8656         attribute of movddup insn to DF.
8657         (*vec_interleave_lowv2df): Ditto.
8658         (vec_dupv2df): Ditto.
8660 2013-01-09  Jan Hubicka  <jh@suse.cz>
8662         PR tree-optimiation/55875
8663         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
8664         EVERY_ITERATION parameter.
8665         (number_of_iterations_exit): Check if exit is executed every iteration.
8666         (idx_infer_loop_bounds): Similarly here.
8667         (n_of_executions_at_most): Simplify
8668         to only test for cases where statement is dominated by the
8669         particular bound; handle correctly the "postdominance" test.
8670         (scev_probably_wraps_p): Use max loop iterations info
8671         as a global bound first.
8673 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
8674             Nick Clifton  <nickc@redhat.com>
8676         * config/v850/v850.md (cbranchsf4): New pattern.
8677         (cstoresf4): New pattern.
8678         (cbranchdf4): New pattern.
8679         (cstoredf4): New pattern.
8680         (movsicc): Disallow floating point comparisons.
8681         (cmpsf_le_insn): Fix order of operators.
8682         (cmpsf_lt_insn): Likewise.
8683         (cmpsf_eq_insn): Likewise.
8684         (cmpdf_le_insn): Likewise.
8685         (cmpdf_lt_insn): Likewise.
8686         (cmpdf_eq_insn): Likewise.
8687         (cmpsf_ge_insn): Use LE comparison.
8688         (cmpdf_ge_insn): Likewise.
8689         (cmpsf_gt_insn): Use LT comparison.
8690         (cmpdf_gt_insn): Likewise.
8691         (cmpsf_ne_insn): Delete pattern.
8692         (cmpdf_ne_insn): Delete pattern.
8693         * config/v850/v850.c (v850_gen_float_compare): Use
8694         gen_cmpdf_eq_insn for NE comparison.
8695         (v850_float_z_comparison_operator)
8696         (v850_float_nz_comparison_operator): Move from here ...
8697         * config/v850/predicates.md: ... to here.  Move GT and GE
8698         comparisons into v850_float_z_comparison_operator.
8699         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8700         Delete prototype.
8701         (v850_float_nz_comparison_operator): Likewise.
8703 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8705         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8706         with calls to gen_insvsi/gen_insvdi.
8708 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8710         * config/i386/i386.c (initial_ix86_tune_features): Set up
8711         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8713 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
8714             Jakub Jelinek  <jakub@redhat.com>
8716         PR tree-optimization/48189
8717         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8718         If nitercst is 0, don't predict the exit edge.
8720 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8722         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8723         in asm_fprintf with reg_names.
8724         (aarch64_print_operand_address): Likewise.
8725         (aarch64_return_addr): Likewise.
8726         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8728 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8730         * config/pa/pa.h (VAL_U6_BITS_P): Define.
8731         (INT_U6_BITS): Likewise.
8732         * config/pa/predicates.md (uint6_operand): New predicate.
8733         (shift5_operand, shift6_operand): Likewise.
8734         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8735         arith32_operand.
8736         (lshrdi3): Use shift6_operand.
8737         (shrpsi4, shrpdi4): New insn patterns.
8738         (extzv): Delete expander.
8739         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
8740         predicates in unamed zero extract patterns.  Tighten common constraint.
8741         (extv): Delete expander.
8742         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
8743         predicates in unamed sign extract patterns.  Tighten common constraint.
8744         (insv): Delete expander.
8745         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
8746         predicates in unamed insert patterns.  Tighten common constraint.
8747         Change uint32_operand predicate to uint6_operand predicate in unamed
8748         DImode pattern to insert constant values of type 1...1xxxx.
8750 2013-01-04  Jan Hubicka  <jh@suse.cz>
8752         PR tree-optimization/55823
8753         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8754         issue.
8756 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8757             Uros Bizjak  <ubizjak@gmail.com>
8759         PR rtl-optimization/55845
8760         * df-problems.c (can_move_insns_across): Stop scanning at
8761         volatile_insn_p source instruction or give up if
8762         across_from .. across_to range contains any volatile_insn_p
8763         instructions.
8765 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
8767         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8768         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8769         Declare.
8770         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8771         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8773 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8775         PR fortran/55341
8776         * asan.c (asan_clear_shadow): New function.
8777         (asan_emit_stack_protection): Use it.
8779 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
8781         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8782         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8783         with tab instead of space.
8785 2013-01-08  Nick Clifton  <nickc@redhat.com>
8787         * config/rl78/rl78.c (rl78_expand_prologue): Always select
8788         register bank 0 at the start of an interrupt handler.
8789         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8790         MDBH registers.
8792 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
8794         * config/aarch64/aarch64-simd.md
8795         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8796         (aarch64_simd_bsl): Likewise.
8797         (aarch64_vcond_internal<mode>): Likewise.
8798         (vcond<mode><mode>): Likewise.
8799         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8800         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8802 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
8804         * config/aarch64/aarch64-builtins.c
8805         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8807 2013-01-08  Martin Jambor  <mjambor@suse.cz>
8809         PR debug/55579
8810         * tree-sra.c (analyze_access_subtree): Return true also after
8811         potentially creating a debug-only replacement.
8813 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8815         PR middle-end/55890
8816         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8818         PR tree-optimization/54120
8819         * tree-vrp.c (range_fits_type_p): Don't allow
8820         src_precision < precision from signed vr to unsigned_p
8821         if vr->min or vr->max is negative.
8822         (simplify_float_conversion_using_ranges): Test can_float_p
8823         against CODE_FOR_nothing.
8825 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8826             Richard Biener  <rguenther@suse.de>
8828         PR middle-end/55851
8829         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8830         types instead of just INTEGER_TYPE types.
8832 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
8834         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8835         TF_SIZE): Define.
8837 2013-01-07  Steve Ellcey  <sellcey@mips.com>
8839         PR target/42661
8840         * config/mips/mips.opt: Change mad to mmad to match documentation.
8842 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8844         PR target/55897
8845         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8846         .progmemx.data now.
8848 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8850         PR target/55897
8851         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8852         (avr_addrspace_t): Add .section_name field.
8853         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8854         array size.
8855         (avr_addrspace): Same.  Initialize .section_name.  Remove last
8856         NULL entry.  Put __memx into .progmemx.data.
8857         (progmem_section_prefix): Remove.
8858         (avr_asm_init_sections): No need to initialize progmem_section.
8859         (avr_asm_named_section): Use avr_addrspace[].section_name to get
8860         section name prefix.
8861         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
8862         retrieve the progmem section.
8863         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8864         boundary to run over avr_addrspace[].
8865         (avr_register_target_pragmas): Ditto.
8867 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
8869         * varasm.c (output_constant_def_contents): For asan_protect_global
8870         protected strings, adjust DECL_ALIGN if needed, before testing for
8871         anchored symbols.
8872         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8873         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
8874         normal decls.
8875         (output_object_block): For asan protected decls, emit asan padding
8876         after their contents.
8877         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8878         (asan_finish_file): Test it here instead.
8880 2013-01-07  Nick Clifton  <nickc@redhat.com>
8881             Matthias Klose  <doko@debian.org>
8882             Doug Kwan  <dougkwan@google.com>
8883             H.J. Lu  <hongjiu.lu@intel.com>
8885         PR driver/55470
8886         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8888         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8890         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8892         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8894         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8896 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8898         PR target/54461
8899         * doc/install.texi (Cross-Compiler-Specific Options): Document
8900         --with-avrlibc.
8902 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
8904         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8905         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8906         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8907         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8908         vqmovun_high_s64): Fix source operand number and update copyright.
8910 2013-01-07  Richard Biener  <rguenther@suse.de>
8912         PR middle-end/55890
8913         * gimple.h (gimple_call_builtin_p): New overload.
8914         * gimple.c (validate_call): New function.
8915         (gimple_call_builtin_p): Likewise.
8916         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8917         Use gimple_call_builtin_p.
8918         (find_func_clobbers): Likewise.
8919         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8920         (strlen_optimize_stmt): Likewise.
8922 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
8924         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8925         (vld1q_dup_*): Likewise.
8926         (vld1_*): Likewise.
8927         (vld1q_*): Likewise.
8928         (vld1_lane_*): Likewise.
8929         (vld1q_lane_*): Likewise.
8931 2013-01-07  Richard Biener  <rguenther@suse.de>
8933         * lto-streamer.h (LTO_minor_version): Bump to 2.
8935 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
8937         * config/aarch64/aarch64-protos.h
8938         (aarch64_const_double_zero_rtx_p): Rename to...
8939         (aarch64_float_const_zero_rtx_p): ...this.
8940         (aarch64_float_const_representable_p): New.
8941         (aarch64_output_simd_mov_immediate): Likewise.
8942         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8943         move immediate case.
8944         * config/aarch64/aarch64.c
8945         (aarch64_const_double_zero_rtx_p): Rename to...
8946         (aarch64_float_const_zero_rtx_p): ...this.
8947         (aarch64_print_operand): Allow printing of new constants.
8948         (aarch64_valid_floating_const): New.
8949         (aarch64_legitimate_constant_p): Check for valid floating-point
8950         constants.
8951         (aarch64_simd_valid_immediate): Likewise.
8952         (aarch64_vect_float_const_representable_p): New.
8953         (aarch64_float_const_representable_p): Likewise.
8954         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8955         (aarch64_output_simd_mov_immediate): New.
8956         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8957         (*movdf_aarch64): Likewise.
8958         * config/aarch64/constraints.md (Ufc): New.
8959         (Y): call aarch64_float_const_zero_rtx.
8960         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8962 2013-01-07  Richard Biener  <rguenther@suse.de>
8964         PR tree-optimization/55888
8965         PR tree-optimization/55862
8966         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8967         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8968         not if it is contained therein.
8970 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8972         * config/avr/t-avr: Typo.
8974 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8976         PR55243
8977         * config/avr/t-avr: Don't automatically rebuild
8978         $(srcdir)/config/avr/t-multilib
8979         $(srcdir)/config/avr/avr-tables.opt
8980         $(srcdir)/doc/avr-mmcu.texi
8981         (avr-mcus): New phony target to build them on request.
8982         (s-avr-mlib, s-avr-mmcu-texi): Remove.
8983         * avr/avr-mcus.def: Adjust comments.
8985 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
8987         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8989 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8991         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8993 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8995         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8997 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
8999         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9000         to generate profiling.
9001         * config/rs6000/aix64.h (LIB_SPEC): Same.
9003 2013-01-04  Andrew Pinski  <apinski@cavium.com>
9005         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9006         New function.
9007         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9009 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
9011         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9012         unconditionally.
9013         (ix86_expand_move): Ditto.
9014         (ix86_zero_extend_to_Pmode): Ditto.
9015         (ix86_expand_call): Ditto.
9016         (ix86_expand_special_args_builtin): Ditto.
9017         (ix86_expand_builtin): Ditto.
9019 2013-01-04  Richard Biener  <rguenther@suse.de>
9021         PR tree-optimization/55862
9022         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9023         translating them through PHI nodes.
9025 2013-01-04  Martin Jambor  <mjambor@suse.cz>
9027         PR tree-optimization/55755
9028         * tree-sra.c (sra_modify_assign): Do not check that an access has no
9029         children when trying to avoid producing a VIEW_CONVERT_EXPR.
9031 2013-01-04  Marek Polacek  <polacek@redhat.com>
9033         PR middle-end/55859
9034         * opts.c (default_options_optimization): Clarify error message.
9036 2013-01-04  Richard Biener  <rguenther@suse.de>
9038         PR middle-end/55863
9039         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9040         reassociation.
9042 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9044         PR target/53789
9045         * config/pa/pa.md (movsi): Revert previous change.
9046         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9047         references.
9049 2013-01-03  Richard Henderson  <rth@redhat.com>
9051         * config/i386/i386.c (ix86_expand_move): Always assign to op1
9052         after eliminating TLS symbols.
9054 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
9056         PR bootstrap/50167
9057         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9058         * graphite-poly.c (debug_gmp_value): Likewise.
9060 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
9062         PR target/55712
9063         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9064         selected code model, define __code_mode_small__, __code_model_medium__,
9065         __code_model_large__, __code_model_32__ or __code_model_kernel__.
9066         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9067         xchg temporary register with %k.  Declare temporary register as
9068         early clobbered.
9069         [__x86_64__]: For medium and large code models, preserve %rbx register.
9071 2013-01-03  Richard Biener  <rguenther@suse.de>
9073         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
9074         (dump_subscript): Adjust.
9075         (finalize_ddr_dependent): Do not dump redundant info.
9076         (analyze_siv_subscript): Adjust.
9077         (subscript_dependence_tester): Likewise.
9078         (compute_affine_dependence): Likewise.
9080 2013-01-03  Richard Biener  <rguenther@suse.de>
9082         Revert
9083         2013-01-03  Richard Biener  <rguenther@suse.de>
9085         PR tree-optimization/55857
9086         * tree-vect-stmts.c (vectorizable_load): Do not setup
9087         re-alignment for invariant loads.
9089         2013-01-02  Richard Biener  <rguenther@suse.de>
9091         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9092         invariant load do not generate a vector load from the scalar location.
9094 2013-01-03  Richard Biener  <rguenther@suse.de>
9096         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9097         for not vectorizing.
9098         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9099         not build INDIRECT_REFs, call get_name once only.
9100         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
9101         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9103 2013-01-03  Richard Biener  <rguenther@suse.de>
9105         PR tree-optimization/55857
9106         * tree-vect-stmts.c (vectorizable_load): Do not setup
9107         re-alignment for invariant loads.
9109 2013-01-03  Richard Biener  <rguenther@suse.de>
9111         PR lto/55848
9112         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9113         prefer a built-in decl.
9115 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9117         * gcc.c (process_command): Update copyright notice dates.
9118         * gcov.c (print_version): Likewise.
9119         * gcov-dump.c (print_version): Likewise.
9121         PR rtl-optimization/55838
9122         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9123         iv0.step, iv1.step and step.
9125 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9126             Marc Glisse  <marc.glisse@inria.fr>
9128         PR tree-optimization/55832
9129         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9130         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9131         integer_{one,zero}_node.
9133 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
9135         PR debug/54402
9136         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9137         * var-tracking.c (reverse_op): Don't add reverse ops to
9138         VALUEs that have already
9139         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
9141 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
9143         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9145 2013-01-02  Teresa Johnson  <tejohnson@google.com>
9147         * dumpfile.c (dump_loc): Print filename with location.
9148         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9149         new location_t parameter to emit complete unroll message with
9150         new dump framework.
9151         (canonicalize_loop_induction_variables): Compute loops location
9152         and pass to try_unroll_loop_completely.
9153         * loop-unroll.c (report_unroll_peel): New function.
9154         (peel_loops_completely): Use new dump format with location
9155         for main dumpfile message, and invoke report_unroll_peel on success.
9156         (decide_unrolling_and_peeling): Ditto.
9157         (decide_peel_once_rolling): Remove old dumpfile message subsumed
9158         by report_unroll_peel.
9159         (decide_peel_completely): Ditto.
9160         (decide_unroll_constant_iterations): Ditto.
9161         (decide_unroll_runtime_iterations): Ditto.
9162         (decide_peel_simple): Ditto.
9163         (decide_unroll_stupid): Ditto.
9164         * cfgloop.c (get_loop_location): New function.
9165         * cfgloop.h (get_loop_location): Declare.
9167 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
9169         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9170         NULL.
9172 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9174         PR middle-end/55198
9175         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9176         BLKmode objects when EXPAND_MEMORY is specified.
9178 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
9180         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9181         in loop predicate.
9182         (fold_builtin_cpu): Do not share cpu model decls across statements.
9184 2013-01-02  Jason Merrill  <jason@redhat.com>
9186         PR c++/55804
9187         * tree.c (build_array_type_1): Revert earlier change.
9189 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
9191         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9192         "cortex-a57".
9193         * config/aarch64/aarch64-tune.md: Re-generate.
9195 2013-01-02  Richard Biener  <rguenther@suse.de>
9197         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
9198         invariant load do not generate a vector load from the scalar location.
9200 2013-01-02  Richard Biener  <rguenther@suse.de>
9202         PR bootstrap/55784
9203         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9204         * configure: Regenerate.
9206 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9208         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9209         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9210         (expand_builtin_int_roundingfn_2): Keep the original target around
9211         for the fallback case.
9213 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9215         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9216         to be clear for sign changes.
9218 2013-01-01  Jan Hubicka  <jh@suse.cz>
9220         * ipa-inline-analysis.c: Fix formatting.
9222 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
9224         PR tree-optimization/55831
9225         * tree-vect-loop.c (get_initial_def_for_induction): Use
9226         gsi_after_labels instead of gsi_start_bb.
9228 Copyright (C) 2013 Free Software Foundation, Inc.
9230 Copying and distribution of this file, with or without modification,
9231 are permitted in any medium without royalty provided the copyright
9232 notice and this notice are preserved.