predict.c: merge multi-edges
[official-gcc.git] / gcc / ChangeLog
blob4169007115a26439acda2e8234e831ae881bd75c
1 2016-07-27  Martin Liska  <mliska@suse.cz>
3         * predict.c (set_even_probabilities): Handle unlikely edges.
4         (combine_predictions_for_bb): Likewise.
6 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8         PR target/71869
9         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
10         __float128 support when we don't have hardware support, so that
11         the IEEE built-in functions like isgreater, first call __unordkf3
12         to make sure neither operand is a NaN, and if both operands are
13         ordered, do the normal comparison.
15 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
17         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
18         name.
19         (extract_code_and_val_from_cond_with_ops): Verify that name is
20         either cond_op0 or cond_op1.
22 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
24         PR tree-optimization/18046
25         * genmodes.c (emit_mode_size_inline): Emit an assert that
26         verifies that mode is a valid array index.
27         (emit_mode_nuinits_inline): Likewise.
28         (emit_mode_inner_inline): Likewise.
29         (emit_mode_unit_size_inline): Likewise.
30         (emit_mode_unit_precision_inline): Likewise.
31         * tree-vrp.c: Include params.h.
32         (find_switch_asserts): Register edge assertions for the default
33         label which correspond to the anti-ranges of each case label.
34         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
35         * doc/invoke.texi: Document it.
37 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
39         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
40         and unnecessary call to gimple_bb.
42 2016-07-26  Richard Biener  <rguenther@suse.de>
44         PR rtl-optimization/71984
45         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
46         for VOIDmode.
48 2016-07-26  Richard Biener  <rguenther@suse.de>
50         PR middle-end/72517
51         * expmed.c (extract_bit_field_1): Constrain the vector mode
52         with element size matching the extraction mode size when
53         choosing a better vector mode to do the extraction from.
55 2016-07-26  Richard Biener  <rguenther@suse.de>
56             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
58         PR middle-end/70920
59         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
60         pattern.
62 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
64         * tree-ssa-structalias.c (struct scc_info): Change types of
65         members to auto_sbitmap and auto_vec.
66         (scc_info::scc_info): New constructor.
67         (scc_info::~scc_info): New destructor.
68         (init_scc_info): Remove.
69         (free_scc_info): Remove.
70         (find_indirect_cycles): Adjust.
71         (perform_var_substitution): Likewise.
72         (free_var_substitution_info): Likewise.
74 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
76         * tree-outof-ssa.c (struct elim_graph): Change type of members
77         to auto_vec and auto_sbitmap.
78         (elim_graph::elim_graph): New constructor.
79         (delete_elim_graph): Remove.
80         (expand_phi_nodes): Adjust.
82 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
84         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
85         (new_elim_graph): Adjust.
86         (clear_elim_graph): Likewise.
87         (delete_elim_graph): Likewise.
88         (elim_graph_size): Likewise.
89         (elim_graph_add_node): Likewise.
90         (elim_graph_add_edge): Likewise.
91         (elim_graph_remove_succ_edge): Likewise.
92         (eliminate_name): Likewise.
93         (eliminate_build): Likewise.
94         (elim_forward): Likewise.
95         (elim_unvisited_predecessor): Likewise.
96         (elim_backward): Likewise.
97         (elim_create): Likewise.
98         (eliminate_phi): Likewise.
99         (expand_phi_nodes): Likewise.
101 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
103         * bt-load.c (compute_out): Use auto_sbitmap class.
104         (link_btr_uses): Likewise.
105         * cfganal.c (mark_dfs_back_edges): Likewise.
106         (post_order_compute): Likewise.
107         (inverted_post_order_compute): Likewise.
108         (pre_and_rev_post_order_compute_fn): Likewise.
109         (single_pred_before_succ_order): Likewise.
110         * cfgexpand.c (pass_expand::execute): Likewise.
111         * cfgloop.c (verify_loop_structure): Likewise.
112         * cfgloopmanip.c (fix_bb_placements): Likewise.
113         (remove_path): Likewise.
114         (update_dominators_in_loop): Likewise.
115         * cfgrtl.c (break_superblocks): Likewise.
116         * ddg.c (check_sccs): Likewise.
117         (create_ddg_all_sccs): Likewise.
118         * df-core.c (df_worklist_dataflow): Likewise.
119         * dse.c (dse_step3): Likewise.
120         * except.c (eh_region_outermost): Likewise.
121         * function.c (thread_prologue_and_epilogue_insns): Likewise.
122         * gcse.c (prune_expressions): Likewise.
123         (prune_insertions_deletions): Likewise.
124         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
125         * graph.c (draw_cfg_nodes_no_loops): Likewise.
126         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
127         * lcm.c (compute_earliest): Likewise.
128         (compute_farthest): Likewise.
129         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
130         (unroll_loop_runtime_iterations): Likewise.
131         (unroll_loop_stupid): Likewise.
132         * lower-subreg.c (decompose_multiword_subregs): Likewise.
133         * lra-lives.c: Likewise.
134         * lra.c (lra): Likewise.
135         * modulo-sched.c (schedule_reg_moves): Likewise.
136         (optimize_sc): Likewise.
137         (get_sched_window): Likewise.
138         (sms_schedule_by_order): Likewise.
139         (check_nodes_order): Likewise.
140         (order_nodes_of_sccs): Likewise.
141         (order_nodes_in_scc): Likewise.
142         * recog.c (split_all_insns): Likewise.
143         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
144         * reload1.c (reload): Likewise.
145         * sched-rgn.c (haifa_find_rgns): Likewise.
146         (split_edges): Likewise.
147         (compute_trg_info): Likewise.
148         * sel-sched.c (init_seqno): Likewise.
149         * store-motion.c (remove_reachable_equiv_notes): Likewise.
150         * tree-into-ssa.c (update_ssa): Likewise.
151         * tree-ssa-live.c (live_worklist): Likewise.
152         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
153         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
154         * Likewise.
155         (try_peel_loop): Likewise.
156         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
157         * Likewise.
158         * tree-ssa-pre.c (compute_antic): Likewise.
159         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
160         * tree-stdarg.c (reachable_at_most_once): Likewise.
161         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
162         * var-tracking.c (vt_find_locations): Likewise.
164 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
166         * sbitmap.h (auto_sbitmap): New class.
168 2016-07-26  Alan Modra  <amodra@gmail.com>
170         PR target/72103
171         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
172         sri->t_icode.
174 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
176         * input.c (selftest::temp_source_file::temp_source_file): Fix
177         missing "%s" in fprintf.
179 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
181         PR middle-end/71732
182         * cselib.c (cselib_process_insn): Invalidate argument slots for
183         const/pure calls.
185 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
187         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
188         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
189         vmulxh_lane_f16, vmulxh_laneq_f16): New.
191 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
193         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
194         * config/aarch64/aarch64.md (fma, fnma): Support HF.
195         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
197 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
199         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
200         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
201         New.
202         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
203         (add<mode>3): Likewise.
204         (sub<mode>3): Likewise.
205         (mul<mode>3): Likewise.
206         (div<mode>3): Likewise.
207         (*div<mode>3): Likewise.
208         (<fmaxmin><mode>3): Extend to HF.
209         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
210         (fabd<mode>3): Likewise.
211         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
212         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
213         (aarch64_fmulx<mode>): Likewise.
214         (aarch64_fac<optab><mode>): Likewise.
215         (aarch64_frecps<mode>): Likewise.
216         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
217         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
218         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
219         (VSDQ_HSDI): Support HI.
220         (fcvt_target, FCVT_TARGET): Likewise.
221         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
222         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
223         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
224         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
225         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
226         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
227         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
228         vrsqrtsh_f16): New.
230 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
232         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
233         * config/aarch64/aarch64-builtins.c (hi_UP): New.
234         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
235         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
236         mode.
237         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
238         (aarch64_cm<optab><mode>): Likewise.
239         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
240         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
241         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
242         (sqrt<mode>2): Likewise.
243         (*sqrt<mode>2): Likewise.
244         (abs<mode>2): Likewise.
245         (<optab><mode>hf2): New pattern for HF mode.
246         (<optab>hihf2): Likewise.
247         * config/aarch64/arm_neon.h: Include arm_fp16.h.
248         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
249         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
250         Support HF mode.
251         * config/aarch64/arm_fp16.h: New file.
252         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
253         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
254         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
255         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
256         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
257         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
258         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
259         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
260         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
261         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
262         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
263         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
264         vsqrth_f16): New.
266 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
268         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
269         reduc_smin_scal_): Use VDQIF_F16.
270         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
271         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
272         Use VHSDF.
273         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
274         * config/aarch64/iterators.md (VDQIF_F16): New.
275         (vp): Support HF modes.
276         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
277         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
279 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
281         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
282         "*aarch64_mulx_elt_from_dup<mode>".
283         (*aarch64_mul3_elt<mode>): Update schedule type.
284         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
285         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
286         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
287         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
288         (f, fp): Support HF modes.
289         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
290         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
291         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
292         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
293         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
294         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
296 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
298         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
299         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
300         modes.
301         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
302         vfmsq_f16): New.
304 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
306         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
307         * config/aarch64/aarch64-simd.md
308         (aarch64_rsqrts<mode>): Extend to HF modes.
309         (fabd<mode>3): Likewise.
310         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
311         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
312         (aarch64_<maxmin_uns>p<mode>): Likewise.
313         (<su><maxmin><mode>3): Likewise.
314         (<maxmin_uns><mode>3): Likewise.
315         (<fmaxmin><mode>3): Likewise.
316         (aarch64_faddp<mode>): Likewise.
317         (aarch64_fmulx<mode>): Likewise.
318         (aarch64_frecps<mode>): Likewise.
319         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
320         (add<mode>3): Extend to HF modes.
321         (sub<mode>3): Likewise.
322         (mul<mode>3): Likewise.
323         (div<mode>3): Likewise.
324         (*div<mode>3): Likewise.
325         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
326         HF, V4HF and V8HF.
327         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
328         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
329         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
330         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
331         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
332         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
333         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
334         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
335         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
336         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
337         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
338         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
339         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
340         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
342 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
344         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
345         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
346         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
347         (neg<mode>2): Likewise.
348         (abs<mode>2): Likewise.
349         (<frint_pattern><mode>2): Likewise.
350         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
351         (<optab><VDQF:mode><fcvt_target>2): Likewise.
352         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
353         (ftrunc<VDQF:mode>2): Likewise.
354         (<optab><fcvt_target><VDQF:mode>2): Likewise.
355         (sqrt<mode>2): Likewise.
356         (*sqrt<mode>2): Likewise.
357         (aarch64_frecpe<mode>): Likewise.
358         (aarch64_cm<optab><mode>): Likewise.
359         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
360         HF, V4HF and V8HF.
361         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
362         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
363         (stype): New.
364         * config/aarch64/arm_neon.h (vdup_n_f16): New.
365         (vdupq_n_f16): Likewise.
366         (vld1_dup_f16): Use vdup_n_f16.
367         (vld1q_dup_f16): Use vdupq_n_f16.
368         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
369         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
370         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
371         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
372         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
373         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
374         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
375         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
376         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
377         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
378         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
379         vsqrt_f16, vsqrtq_f16): New.
381 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
383         * config/aarch64/aarch64-simd.md
384         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
385         (aarch64_ext<mode>): Likewise.
386         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
387         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
388         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
389         and V8HFmode.
390         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
391         float16x8_t.
392         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
393         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
394         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
395         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
396         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
397         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
398         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
399         New.
400         (vmov_n_f16): Reimplement using vdup_n_f16.
401         (vmovq_n_f16): Reimplement using vdupq_n_f16..
403 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
405         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
406         "frame_related_p".  Generate CFA annotation when it's necessary.
407         (aarch64_expand_prologue): Use aarch64_add_constant.
408         (aarch64_expand_epilogue): Likewise.
409         (aarch64_output_mi_thunk): Pass "false" when calling
410         aarch64_add_constant.
412 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
414         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
415         sequences.
417 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
419         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
420         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
421         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
422         (aarch64_build_constant): Delete.
424 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
426         Revert
427         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
429         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
430         flag_toplevel_reorder.
432 2016-07-25  Richard Biener  <rguenther@suse.de>
434         * cgraph.c (cgraph_node::verify_node): Compare against builtin
435         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
436         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
437         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
438         (streamer_get_builtin_tree): Likewise.
439         (streamer_write_builtin): Likewise.
440         * lto-streamer.h (LTO_builtin_decl): Remove.
441         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
442         (lto_input_scc): Remove LTO_builtin_decl handling.
443         (lto_input_tree_1): Liekwise.
444         * lto-streamer-out.c (lto_output_tree_1): Remove special
445         handling of builtins.
446         (DFS::DFS): Likewise.
447         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
448         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
449         assert.
450         (streamer_write_builtin): Remove.
452 2016-07-25  Martin Liska  <mliska@suse.cz>
454         * lto-cgraph.c (input_symtab): Don't call get_working_sets
455         if flag_auto_profile is set to true.
457 2016-07-25  Martin Liska  <mliska@suse.cz>
459         PR gcov-profile/71868
460         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
461         have a function with multiple latches, count them all.
463 2016-07-25  Martin Liska  <mliska@suse.cz>
465         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
467 2016-07-25  Martin Liska  <mliska@suse.cz>
469         PR tree-optimization/71987
470         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
471         just for SSA_NAMEs. Fix GNU coding style.
473 2016-07-25  Martin Liska  <mliska@suse.cz>
475         PR gcov-profile/64874
476         * gcov-io.h: Update command about file format.
477         * gcov-iov.c (main): Adapt the numbering scheme.
479 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
481         PR middle-end/66726
482         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
483         whose result is used in PHI.
484         (final_range_test_p): Likewise.
485         (maybe_optimize_range_tests): Likewise.
487 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
489         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
490         Reformat two multi-line strings.
492 2016-07-22 Martin Sebor  <msebor@redhat.com>
494         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
496 2016-07-22 Martin Sebor  <msebor@redhat.com>
498         PR c/71560
499         * doc/extend.texi (Compound Literals): Correct and clarify.
500         (Cast to Union): Same.
502 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
504         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
505         comments to explain why certain error messages make mention of
506         undocumented options.
507         (rs6000_invalid_builtin): Change error messages to replace mention
508         of undocumented options with mention of the -mcpu=power9 option
509         that enables those undocumented options.
510         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
511         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
512         definition of this macro to correct an existing error.
513         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
514         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
515         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
516         descriptions of built-in functions so that they depend on
517         -mcpu=power9 instead of on the corresponding undocumented flags.
518         * doc/invoke.texi (Option Summary):  Remove all mention of newly
519         undocumented flags.
520         (IBM RS/6000 and PowerPC Options): Likewise.
521         * doc/md.texi (Constraints for Particuliar Machines): Remove all
522         mention of newly undocumented flags.
524 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
526         * ipa-cp.c (determine_versionability): Do not create constprop clones,
527         when target_clones attribute is set.
529 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
531         * common.opt (funsafe-loop-optimizations): Mark ignore.
532         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
533         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
534         related code.
535         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
536         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
538 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
540         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
541         Parameter.
542         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
543         Parameter.
544         (number_of_iterations_exit): Warn missed loop optimization for
545         possible infinite loops.
547 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
549         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
550         when to emit a ".machine" pseudo-op.
552 2016-07-22  Martin Liska  <mliska@suse.cz>
554         PR gcov-profile/69028
555         PR gcov-profile/62047
556         * coverage.c (coverage_compute_lineno_checksum): Do not
557         calculate checksum for fns w/o xloc.file.
558         (coverage_compute_profile_id): Likewise.
560 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
562         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
563         (avr_secondary_reload): ...and implementation.
564         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
565         * config/avr/avr.md (reload_in<mode>): Remove insns.
566         (adjust_len) [lpm]: Remove insn attribute value.
567         * config/avr/predicates.md (flash_operand): Remove insn predicate.
569 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
571         PR middle-end/71876
572         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
573         attribute.
574         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
575         * calls.c (special_function_p): Remove the special handling of the
576         "__builtin_" prefix.
578 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
580         PR middle-end/71876
581         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
582         if STMT may be an alloca call.
583         (gimple_alloca_call_p, alloca_call_p): Return only true for the
584         builtin alloca call.
585         * calls.h (gimple_maybe_alloca_call_p): New function.
586         * tree-inline.c (inline_forbidden_p_stmt): Use
587         gimple_maybe_alloca_call_p here.
589 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
591         * spellcheck-tree.c (best_macro_match::best_macro_match):
592         Explictly specify the template arguments when invoking the base
593         class constructor, to help older C++ compilers.
595 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
597         PR sanitizer/71953
598         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
599         before builtin_decl_implicit.
601 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
603         * optabs.c (emit_condiitonal_move): Short circuit for identical
604         sources.
606 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
608         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
609         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
610         (noce_conversion_profitable_p): New.
611         (noce_try_store_flag_constants): Use it.
612         (noce_try_addcc): Likewise.
613         (noce_try_store_flag_mask): Likewise.
614         (noce_try_cmove): Likewise.
615         (noce_try_cmove_arith): Likewise.
616         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
617         overwriting it.
618         (noce_convert_multiple_sets): Move cost model to here, from...
619         (bb_ok_for_noce_convert_multiple_sets) ...here.
620         (noce_process_if_block): Update calls for above changes.
621         (noce_find_if_block): Record new noce_if_info parameters.
623 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
625         * target.def (max_noce_ifcvt_seq_cost): New.
626         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
627         * doc/tm.texi: Regenerate.
628         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
629         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
630         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
631         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
632         * doc/invoke.texi: Document new params.
634 2016-07-21  Richard Biener  <rguenther@suse.de>
636         PR tree-optimization/71947
637         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
638         ranges have useful limit_vr information.
640 2016-07-21  Richard Biener  <rguenther@suse.de>
642         * function-tests.c (build_trivial_generic_function): Set
643         BLOCK_SUPERCONTEXT of DECL_INITIAL.
644         * omp-low.c (create_omp_child_function): Likewise.
645         (grid_expand_target_grid_body): Likewise.
646         * cgraphunit.c (init_lowered_empty_function): Likewise.
647         (cgraph_node::expand_thunk): Likewise.
648         * tree-parloops.c (create_loop_fn): Likewise.
649         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
651 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
653         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
654         in comment.
656 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
658         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
659         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
660         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
661         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
662         values for insn attribute.
663         * config/avr/avr.c (avr_out_insert_notbit): New function.
664         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
665         ADJUST_LEN_INSV_NOTBIT_0/_7.
666         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
668 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
670         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
671         (chrec_convert_1, chrec_convert): Ditto.
672         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
673         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
674         * tree-vrp.c (adjust_range_with_scev): Ditto.
675         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
676         (scev_var_range_cant_overflow): New function.
677         (scev_probably_wraps_p): New parameter.  Call above function.
678         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
680 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
682         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
683         by removing computation of may_be_zero.
685 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
687         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
689 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
691         Improving concepts performance and diagnostics.
692         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
693         for constraint satisfaction and subsumption.
694         * timevar.h (auto_timevar): New constructor that matches the push/pop
695         pattern of usage in pt.c.
697 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
699         * hwint.h (HOST_WIDE_INT_0): New define.
700         (HOST_WIDE_INT_0U): Ditto.
701         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
702         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
703         * simplify-rtx.c: Ditto.
704         * tree-object-size.c: Ditto.
706 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
708         * config/s390/s390.c (s390_encode_section_info): Remove mode size
709         check.
711 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
713         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
714         * combine.c: Use HOST_WIDE_INT_M1U instead of
715         ~(unsigned HOST_WIDE_INT) 0.
716         * double-int.h: Ditto.
717         * dse.c: Ditto.
718         * dwarf2asm.c:Ditto.
719         * expmed.c: Ditto.
720         * genmodes.c: Ditto.
721         * match.pd: Ditto.
722         * read-rtl.c: Ditto.
723         * tree-ssa-loop-ivopts.c: Ditto.
724         * tree-ssa-loop-prefetch.c: Ditto.
725         * tree-vect-generic.c: Ditto.
726         * tree-vect-patterns.c: Ditto.
727         * tree.c: Ditto.
729 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
731         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
732         constant addresses outside [0,0xc0] into a register.
733         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
734         cases where the base address register is unused after.
735         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
736         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
737         (avr_out_store_psi_reg_disp_tiny): Same.
739 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
741         Implement attribute progmem on reduced Tiny cores by adding
742         flash offset 0x4000 to respective symbols.
744         PR target/71948
745         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
746         documentation how it works on reduced Tiny cores.
747         (AVR Named Address Spaces): No support for reduced Tiny.
748         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
749         (avr_address_tiny_pm_p): New static function.
750         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
751         if the address is in progmem.
752         (avr_assemble_integer): Same.
753         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
754         for symbol_ref in progmem.
755         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
756         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
757         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
759 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
761         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
762         * configure: Regenerate.
763         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
764         (USE_THIN_ARCHIVES): New variable.
765         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
766         this archive as a thin archive.
768 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
770         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
771         same location as last time, don't skip if we have fix-it hints.
772         Clarify the skipping logic by converting it from one "if" clause
773         to repeated "if" clauses.
774         * spellcheck-tree.c: Include "cpplib.h".
775         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
776         (best_macro_match::best_macro_match): New constructor.
777         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
778         Move here from c/c-decl.c.
779         (class best_macro_match): Move here from c/c-decl.c, converting
780         from a typedef to a subclass, gaining a ctor.
782 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
784         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
785         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
786         define...
787         (avr_addr_space_diagnose_usage): ...and implementation.
788         (avr_addr_space_supported_p): New function.
789         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
790         report bad address space usage if that space is supported.
791         (avr_insert_attributes): Same.  No more complain about unsupported
792         address spaces.
793         * config/avr/avr-c.c (tm_p.h): Include it.
794         (avr_cpu_cpp_builtins): Only define addr-space related built-in
795         macro if avr_addr_space_supported_p.
797 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
799         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
800         flag_toplevel_reorder.
802 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
804         * gcc-rich-location.c
805         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
806         a const char *.
807         * gcc-rich-location.h
808         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
810 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
812         * target.def (addr_space): Add new diagnose_usage to hook vector.
813         * targhooks.c (default_addr_space_diagnose_usage): Add default
814         implementation and...
815         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
816         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
817         is some address space, call targetm.addr_space.diagnose_usage.
818         * doc/tm.texi.in (Named Address Spaces): Add anchor for
819         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
820         * doc/tm.texi: Regenerate.
822 2016-07-20  Martin Liska  <mliska@suse.cz>
824         PR middle-end/71898
825         * graphite-isl-ast-to-gimple.c (later_of_the_two):
826         Properly handly PHI stmts.
828 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
830         PR tree-optimization/71503
831         PR tree-optimization/71683
832         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
833         and break.
835 2016-07-20  Martin Liska  <mliska@suse.cz>
837         * doc/invoke.texi (-fipa-ra): Document when the option is
838         disabled. Fix a typo.
840 2016-07-20  Martin Liska  <mliska@suse.cz>
842         * Makefile.in: Include fibonacci_heap.c
843         * fibonacci_heap.c: New file.
844         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
845         (fibonacci_heap::union_with): Fix deletion of the second heap.
846         * selftest-run-tests.c (selftest::run_tests): Incorporate
847         fibonacci heap tests.
848         * selftest.h: Declare fibonacci_heap_c_tests.
850 2016-07-20  Martin Liska  <mliska@suse.cz>
852         * selftest-run-tests.c (selftest::run_tests): New function.
853         * selftest.h (sreal_c_tests): Declare.
854         * sreal.c (sreal_verify_basics): New function.
855         (verify_aritmetics): Likewise.
856         (sreal_verify_arithmetics): Likewise.
857         (verify_shifting): Likewise.
858         (sreal_verify_shifting): Likewise.
859         (void sreal_c_tests): Likewise.
861 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
863         PR rtl-optimization/71916
864         * cfgrtl.c (contains_no_active_insn_p): Return false also for
865         bb which have a single succ fake edge.
867 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
869         PR debug/71855
870         * dwarf2out.c (gen_subprogram_die): Only call
871         gen_unspecified_parameters_die while dumping early dwarf.
873 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
875         PR middle-end/71874
876         * gimple-fold.c (fold_builtin_memory_op): Use
877         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
879 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
881         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
882         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
883         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
884         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
885         * combine.c: Ditto.
886         * cse.c: Ditto.
887         * dojump.c: Ditto.
888         * double-int.c: Ditto.
889         * dse.c: Ditto.
890         * dwarf2out.c: Ditto.
891         * expmed.c: Ditto.
892         * expr.c: Ditto.
893         * fold-const.c: Ditto.
894         * function.c: Ditto.
895         * fwprop.c: Ditto.
896         * genmodes.c: Ditto.
897         * hwint.c: Ditto.
898         * hwint.h: Ditto.
899         * ifcvt.c: Ditto.
900         * loop-doloop.c: Ditto.
901         * loop-invariant.c: Ditto.
902         * loop-iv.c: Ditto.
903         * match.pd: Ditto.
904         * optabs.c: Ditto.
905         * real.c: Ditto.
906         * reload.c: Ditto.
907         * rtlanal.c: Ditto.
908         * simplify-rtx.c: Ditto.
909         * stor-layout.c: Ditto.
910         * toplev.c: Ditto.
911         * tree-ssa-loop-ivopts.c: Ditto.
912         * tree-vect-generic.c: Ditto.
913         * tree-vect-patterns.c: Ditto.
914         * tree.c: Ditto.
915         * tree.h: Ditto.
916         * ubsan.c: Ditto.
917         * varasm.c: Ditto.
918         * wide-int-print.cc: Ditto.
919         * wide-int.cc: Ditto.
920         * wide-int.h: Ditto.
922 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
924         * selftest.c (selftest::assert_streq): Handle NULL values of
925         val_actual and val_expected.
927 2016-07-19  Martin Jambor  <mjambor@suse.cz>
929         PR fortran/71688
930         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
931         rather than cgraph_create_node to get a call graph node.
933 2016-07-19  Richard Biener  <rguenther@suse.de>
935         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
936         handle all tcc_constant bases and valueize SSA names.
937         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
938         tcc_constant bases.
940 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
942         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
943         the flags of the exit block and bb2, not just the entry block.
945 2016-07-19  Richard Biener  <rguenther@suse.de>
947         PR tree-optimization/71901
948         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
949         align member, group stuff with the bitfield.
950         (vn_ref_op_align_unit): New inline.
951         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
952         record element alignment and operand 3 unchanged.
953         (ao_ref_init_from_vn_reference): Adjust.
954         (valueize_refs_1): Likewise.
955         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
957 2016-07-19  Richard Biener  <rguenther@suse.de>
959         PR tree-optimization/71908
960         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
961         symbolic constants in a more reliable way.
963 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
965         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
966         comment.
967         (vect_update_inits_of_drs): Likewise.
968         (vect_create_cond_for_alias_checks): Likewise.
969         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
971 2016-07-19  Richard Biener  <rguenther@suse.de>
973         PR lto/71907
974         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
975         with an abstract origin that is not an inlined function outer
976         scope add a self-reference as abstract origin.
977         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
979 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
981         PR target/71493
982         * config/rs6000/rs6000.c (rs6000_function_value): Fix
983         unintentional System V.4 structure return breakage for structures
984         with a single floating point element.
986 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
988         PR tree-optimization/71734
989         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
990         contains REF, use it to check safelen, assume that safelen value
991         must be greater 1, fix style.
992         (ref_indep_loop_p_2): Add REF_LOOP argument.
993         (ref_indep_loop_p): Pass LOOP as additional argument to
994         ref_indep_loop_p_2.
996 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
998         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
999         allocation in the prologue.
1000         * explow.c (get_dynamic_stack_base): New function to return an address
1001         expression for the dynamic stack base.
1002         (get_dynamic_stack_size): New function to do the required dynamic stack
1003         space size calculations.
1004         (allocate_dynamic_stack_space): Use new functions.
1005         (align_dynamic_address): Move some code from
1006         allocate_dynamic_stack_space to new function.
1007         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1009 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1011         * config/s390/s390.c (s390_encode_section_info): Always set
1012         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1013         found.
1015 2016-07-18  Richard Biener  <rguenther@suse.de>
1017         PR tree-optimization/71893
1018         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1019         for sizetype cast added by array_ref_element_size.
1020         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1022 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
1024         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1025         register parameters.  Remove code to initialize argument pointer
1026         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
1027         using a pc-relative branch.  Cleanup conditional code.
1028         * config/pa/pa.md (call_mcount): New expander.
1029         (call_mcount_nonpic): New insn.
1030         (call_mcount_pic): New insn and split.
1031         (call_mcount_pic_post_reload): New insn.
1032         (call_mcount_64bit): New insn and split.
1033         (call_mcount_64bit_post_reload): New insn.
1035 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
1037         * config/avr/predicates.md (const_m255_to_m1_operand): New.
1038         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1039         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1040         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1041         (*usum_widenqihi3, *udiff_widenqihi3)
1042         (*addhi3_zero_extend.const): New combiner insns.
1043         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1044         just 1 bit is affected.
1045         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1046         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1048 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1050         * omp-low.c (lower_omp_target): Mark data clauses with
1051         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1052         zero-length subarrays.
1054 2016-07-15  Richard Biener  <rguenther@suse.de>
1056         PR tree-optimization/71881
1057         * tree-loop-distribution.c (destroy_loop): Remove blocks in
1058         reverse DOM order to make debug temp generation happy.
1060 2016-07-15  Richard Biener  <rguenther@suse.de>
1062         PR tree-optimization/71887
1063         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1064         verify it is not zero for division / modulo handling.
1065         (value_replacement): Adjust.
1067 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
1068             Julian Brown  <julian@codesourcery.com>
1070         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1071         * config/aarch64/aarch64-cost-tables.h
1072         (vulcan_extra_costs): New variable.
1073         * config/aarch64/aarch64.c
1074         (vulcan_addrcost_table): Likewise.
1075         (vulcan_regmove_cost): Likewise.
1076         (vulcan_vector_cost): Likewise.
1077         (vulcan_branch_cost): Likewise.
1078         (vulcan_tunings): Likewise.
1080 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
1082         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1083         (output_in_order): Loop over undefined variables too.  Output them
1084         via assemble_undefined_decl.  Skip variables that correspond to hard
1085         registers or have value-exprs.
1086         * varpool.c (symbol_table::output_variables): Handle undefined
1087         variables together with defined ones.
1089 2016-07-15  Richard Biener  <rguenther@suse.de>
1091         * tree-ssa-pre.c (get_representative_for): Make sure to return
1092         the value number of SSA names.
1093         (phi_translate_1): get_representative_for cannot return NULL.
1094         (do_pre_regular_insertion): Remove redundant call to
1095         fully_constant_expression.
1096         (do_pre_partial_partial_insertion): Likewise.
1098 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
1100         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1101         (derive_simple_iv_with_niters): New function.
1102         (simple_iv): Rewrite using simple_iv_with_niters.
1103         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1104         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1105         function.
1106         (number_of_iterations_exit): Rewrite using above function.
1107         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1108         Decl.
1110 2016-07-15  Richard Biener  <rguenther@suse.de>
1112         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1113         vec_construct cost.
1115 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1117         PR tree-optimization/71872
1118         * tree-data-ref.c (get_references_in_stmt): Ignore references
1119         with is_gimple_constant get_base_address.
1121 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1123         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1124         (TARGET_HAVE_LDACQD): New macro.
1125         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1126         than TARGET_HAVE_LDACQ.
1127         (arm_load_acquire_exclusivedi): Likewise.
1128         (arm_store_release_exclusivedi): Likewise.
1130 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1132         PR rtl-optimization/71878
1133         * lra-constraints.c (match_reload): Pass information about other
1134         output operands.  Create new unique register value if matching input
1135         operand shares same register value as output operand being considered.
1136         (curr_insn_transform): Record output operands already processed.
1138 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1140         PR target/65951
1141         PR tree-optimization/70923
1142         * tree-vect-patterns.c: Include mult-synthesis.h.
1143         (target_supports_mult_synth_alg): New function.
1144         (synth_lshift_by_additions): Likewise.
1145         (apply_binop_and_append_stmt): Likewise.
1146         (vect_synth_mult_by_constant): Likewise.
1147         (target_has_vecop_for_code): Likewise.
1148         (vect_recog_mult_pattern): Use above functions to synthesize vector
1149         multiplication by integer constants.
1151 2016-07-14  Alan Modra  <amodra@gmail.com>
1153         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1154         gpr alternatives.  Correct '*' placement on Y,r alternative.
1155         Add '*' on operand 1 of r,r alternative.
1157 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1159         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1160         * expmed.h: ... Here.
1162 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
1164         * gimple.h (stmt_can_terminate_bb_p): New function.
1165         * tree-cfg.c (need_fake_edge_p): Rename to ...
1166         (stmt_can_terminate_bb_p): ... this; return true if stmt can
1167         throw external; handle const and pure calls.
1168         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1170 2016-07-14  Richard Biener  <rguenther@suse.de>
1172         PR tree-optimization/71866
1173         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1174         (do_hoist_insertion): Avoid endless recursion when we
1175         didn't insert anything because we managed to simplify
1176         things down to a constant or SSA name.
1177         (fully_constant_expression): Re-write in terms of ...
1178         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
1179         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1180         vn_nary_build_or_lookup_1.
1181         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1182         (vn_nary_build_or_lookup): ... this which now wraps it.
1184 2016-07-14  Alan Modra  <amodra@gmail.com>
1186         PR target/71733
1187         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1188         with p9_vector override before power9-dform override.
1190 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1192         * value-prof.c (gimple_value_profile_transformations): Don't run
1193         when auto_profile is on.
1195 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1197         * auto-profile.c (update_inlined_ind_target,
1198         afdo_indirect_call): Print information to dump file.
1200 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1202         * genrecog.c (special_predicate_operand_p): New function.
1203         (predicate_name): Move function.
1204         (validate_pattern): Don't warn about missing mode for all
1205         define_special_predicate predicates.
1207 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
1209         * tree-vect-data-refs.c (vect_no_alias_p): New function.
1210         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1211         resolve alias checks which are known at compilation time.
1212         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1213         alias checks are resolved.  Move dump info for too many runtime
1214         alias checks to here...
1215         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1217 2016-07-13  Richard Biener  <rguenther@suse.de>
1219         PR tree-optimization/24574
1220         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1221         position and add shift, rotate, divison and modulo support
1222         for left zero.
1223         (value_replacement): Pass in argument position to absorbing_element_p.
1225 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1227         PR ipa/71633
1228         * ipa-inline-transform.c (inline_call): Support
1229         instrumented thunks.
1231 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1233         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1234         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1235         divide feature.
1236         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1237         Baseline.  Make initial alternative TARGET_32BIT only.
1238         (udivsi3): Likewise.
1239         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1240         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1241         target.
1243 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1245         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1246         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1247         availability with TARGET_HAVE_MOVT.
1248         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1249         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1250         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1251         UINTVAL.
1252         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1253         extra instruction if MOVW is available.  Use a cost variable
1254         incremented by COSTS_N_INSNS (1) when the condition match rather than
1255         returning an arithmetic expression based on COSTS_N_INSNS.  Make
1256         constant with bottom half word zero cost 2 instruction if MOVW is
1257         available.
1258         * config/arm/arm.md (define_attr "arch"): Add v8mb.
1259         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1260         target is ARMv8-M Baseline.
1261         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1262         (arm_movtas_ze): Likewise.
1263         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1264         alternative for constants satisfying j constraint.
1265         (thumb1_movsi_insn): Likewise.
1266         (movsi splitter for K alternative): Tighten condition to not trigger
1267         if movt is available and j constraint is satisfied.
1268         (Pe immediate splitter): Likewise.
1269         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1270         constant fitting in an halfword to use MOVW.
1271         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1272         effective target.
1274 2016-07-13  Richard Biener  <rguenther@suse.de>
1276         PR middle-end/71104
1277         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1278         gimplifying the LHS.  Make sure to gimplify a returning twice
1279         call LHS without using SSA names.
1281 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1283         * tree-data-ref.c (find_data_references_in_stmt): Remove
1284         unnecessary call to vec::release.
1285         (graphite_find_data_references_in_stmt): Likewise.
1286         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1287         * tree-vect-stmts.c (vectorizable_condition): Likewise.
1289 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1291         * cfgexpand.c (expand_used_vars): Make the type of a local
1292         variable auto_vec.
1293         * genmatch.c (lower_for): Likewise.
1294         * haifa-sched.c (haifa_sched_init): Likewise.
1295         (add_to_speculative_block): Likewise.
1296         (create_check_block_twin): Likewise.
1297         * predict.c (handle_missing_profiles): Likewise.
1298         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1299         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1300         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1301         Likewise.
1302         (maybe_lower_iteration_bound): Likewise.
1303         * tree-ssa-sccvn.c (DFS): Likewise.
1304         * tree-stdarg.c (reachable_at_most_once): Likewise.
1305         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1306         (vectorizable_store): Likewise.
1308 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1310         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1311         (sccvn_dom_walker): make cond_stack an auto_vec.
1313 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1315         * ree.c (struct ext_state): Make type of members auto_vec.
1316         (find_and_remove_re): Adjust.
1318 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1320         * cfgexpand.c (struct stack_vars_data): Make type of fields
1321         auto_vec.
1322         (expand_used_vars): Adjust.
1324 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1326         * ipa.c (record_cdtor_fn): Adjust.
1327         (build_cdtor_fns): Likewise.
1328         (ipa_cdtor_merge): Make static_ctors and static_dtors local
1329         variables.
1331 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1333         * genextract.c (struct accum_extract): Add constructor and make
1334         members auto_vec.
1335         (gen_insn): Adjust.
1337 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1339         * tree.c (struct free_lang_data_d): Add constructor and change
1340         types of members to ones that automatically manage resources.
1341         (fld_worklist_push): Adjust.
1342         (find_decls_types): Likewise.
1343         (find_decls_types_in_eh_region): Likewise.
1344         (free_lang_data_in_cgraph): Stop manually creating and
1345         destroying members of free_lang_data_d.
1347 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
1349         PR rtl-optimization/68961
1350         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1351         peephole variant.  Use sse_reg_operand predicates.
1353 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
1355         * config/i386/predicates.md (x86_64_immediate_operand)
1356         <case CONST_INT>: Remove unneeded truncation to DImode.
1357         <case CONST>: Ditto.
1358         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1360 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1362         PR target/71805
1363         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1364         The xxperm and xxpermr instructions require that the 2nd input
1365         operand overlap with the output operand, and not the 1st.
1366         (altivec_vperm_v8hiv16qi): Likewise.
1367         (altivec_vperm_<mode>_uns_internal): Likewise.
1368         (altivec_vpermr_<mode>_internal): Likewise.
1369         (vperm_v8hiv4si): Likewise.
1370         (vperm_v16qiv8hi): Likewise.
1372 2016-07-12  Nathan Sidwell  <nathan@acm.org>
1374         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1375         when -mno-pic-data-is-text-relative is in effect, by default.
1376         * doc/invoke.texi (mpic-data-is-text-relative): Document new
1377         behavior and clarify.
1379 2016-07-12  Martin Liska  <mliska@suse.cz>
1381         * params.def: Add avg-loop niter.
1382         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1383         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1384         * doc/invoke.texi: Document the new parameter.
1386 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1388         PR middle-end/71700
1389         * expr.c (store_constructor): Mask sign-extended bits when widening
1390         sub-word constructor element at the start of a word.
1392 2016-07-12  Martin Liska  <mliska@suse.cz>
1394         * Makefile.in: Append rule for params-options.h.
1395         * params-options.h: New file.
1397 2016-07-12  Martin Liska  <mliska@suse.cz>
1399         * ira-build.c (mark_loops_for_removal): Properly iterate
1400         loops.
1402 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
1403             Richard Biener  <rguenther@suse.de>
1405         PR tree-optimization/23286
1406         PR tree-optimization/70159
1407         * doc/invoke.texi: Document -fcode-hoisting.
1408         * common.opt (fcode-hoisting): New flag.
1409         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1410         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1411         (do_regular_insertion): Rename to ...
1412         (do_pre_regular_insertion): ... this and amend general comments
1413         on insertion strathegy.
1414         (do_partial_partial_insertion): Rename to ...
1415         (do_pre_partial_partial_insertion): ... this.
1416         (do_hoist_insertion): New function.
1417         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1418         and call do_hoist_insertion properly.
1419         (insert): Adjust.
1420         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1421         (pass_pre::execute): Register hoist_insert stats.
1423 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
1425         PR middle-end/71716
1426         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1427         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1428         is different from mode's bitsize.  Small cleanup.
1430 2016-07-12  Richard Biener  <rguenther@suse.de>
1432         PR rtl-optimization/68961
1433         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1434         to simplify to a non-constant.
1436 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
1438         PR middle-end/71758
1439         * omp-low.c (expand_omp_target): Gimplify device.
1441         PR tree-optimization/71823
1442         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1443         to get vec_oprnds2 from op2.
1445 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
1447         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1448         Hoist common subexpressions.
1449         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1451 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
1453         PR target/71800
1454         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1455         prevent generation of 'stxsiwx' on pre Power8 hardware.
1457 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1459         * input.c: Include cpplib.h.
1460         (selftest::temp_source_file): New class.
1461         (selftest::temp_source_file::temp_source_file): New ctor.
1462         (selftest::temp_source_file::~temp_source_file): New dtor.
1463         (selftest::should_have_column_data_p): New function.
1464         (selftest::test_should_have_column_data_p): New function.
1465         (selftest::temp_line_table): New class.
1466         (selftest::temp_line_table::temp_line_table): New ctor.
1467         (selftest::temp_line_table::~temp_line_table): New dtor.
1468         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1469         it to create a temp_line_table.
1470         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1471         locations that are known to have column data.
1472         (selftest::line_table_case): New struct.
1473         (selftest::test_reading_source_line): Move tempfile handling
1474         to class temp_source_file.
1475         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1476         (selftest::assert_token_loc_eq): New function.
1477         (ASSERT_TOKEN_LOC_EQ): New macro.
1478         (selftest::test_lexer): New function.
1479         (selftest::boundary_locations): New array.
1480         (selftest::input_c_tests): Call test_should_have_column_data_p.
1481         Loop over a test matrix of interesting values of location and
1482         default_range_bits, calling test_lexer on each case in the matrix.
1483         Move call to test_accessing_ordinary_linemaps into the matrix.
1484         * selftest.h (ASSERT_EQ): Reimplement in terms of...
1485         (ASSERT_EQ_AT): New macro.
1487 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
1489         PR target/71801
1490         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1491         Don't convert TImode in debug insn.
1493 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1495         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1496         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1497         (tree_type_common::lang_flag_7): New.
1498         (tree_type_common::spare): Reduce size.
1499         * tree.h (TYPE_ALIGN_OK): Remove.
1500         (TYPE_LANG_FLAG_7): New.
1501         (get_inner_reference): Adjust header.
1502         * print-tree.c (print_node): Adjust.
1503         * expr.c (get_inner_reference): Remove parameter keep_aligning.
1504         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1505         calls to get_inner_reference.
1506         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
1507         handling of TYPE_ALIGN_OK.
1508         * builtins.c (get_object_alignment_2): Adjust call to
1509         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
1510         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1511         TYPE_ALIGN_OK.
1512         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1513         * cfgexpand.c (expand_debug_expr): Likewise.
1514         * dbxout.c (dbxout_expand_expr): Likewise.
1515         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1516         loc_list_from_tree, fortran_common): Likewise.
1517         * fold-const.c (optimize_bit_field_compare,
1518         decode_field_reference, fold_unary_loc, fold_comparison,
1519         split_address_to_core_and_offset): Likewise.
1520         * gimple-laddress.c (execute): Likewise.
1521         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1522         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1523         * hsa-gen.c (gen_hsa_addr): Likewise.
1524         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1525         * tsan.c (instrument_expr): Likewise.
1526         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1527         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1528         * tree-affine.c (tree_to_aff_combination,
1529         get_inner_reference_aff): Adjust calls to get_inner_reference.
1530         * tree-data-ref.c (split_constant_offset_1,
1531         dr_analyze_innermost): Likewise.
1532         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1533         * tree-sra.c (ipa_sra_check_caller): Likewise.
1534         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1535         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1536         bswap_replace): Likewise.
1537         * tree-vect-data-refs.c (vect_check_gather,
1538         vect_analyze_data_refs): Likewise.
1539         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1540         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1541         TYPE_ALIGN_OK.
1543 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1545         * Makefile.in (selftest-valgrind): New phony target.
1546         * function-tests.c (selftest::build_cfg): Delete pass instances
1547         created by the test.
1548         (selftest::convert_to_ssa): Likewise.
1549         (selftest::test_expansion_to_rtl): Likewise.
1550         * tree-cfg.c (selftest::test_linear_chain): Release dominator
1551         vectors.
1552         (selftest::test_diamond): Likewise.
1554 2016-07-11  Richard Biener  <rguenther@suse.de>
1556         PR tree-optimization/71816
1557         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1558         than replacing all of its operands.
1560 2016-07-11  Alan Modra  <amodra@gmail.com>
1562         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1563         (ctr<mode>): Add unspec.
1564         (ctr<mode>_internal*): Likewise.
1566 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
1568         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1569         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1571 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
1573         PR rtl-optimization/71621
1574         * lra-constraints.c (process_alt_operands): Check combination of
1575         reg class and mode.
1577 2016-07-08  Jason Merrill  <jason@redhat.com>
1578             Richard Biener  <rguenther@suse.de>
1580         P0145: Refining Expression Order for C++.
1581         * gimplify.c (initial_rhs_predicate_for): New.
1582         (gimplfy_modify_expr): Gimplify RHS before LHS.
1584 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1586         PR target/71297
1587         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1588         Allow standard error handling to take over when a wrong number
1589         of arguments is presented to __builtin_vec_ld () or
1590         __builtin_vec_st ().
1592 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1594         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1595         variants.
1596         (smin): Likewise.
1597         (fmax): New entry.
1598         (fmin): Likewise.
1599         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1600         __builtin_aarch64_fmaxv2sf.
1601         (vmaxnmq_f32): Likewise.
1602         (vmaxnmq_f64): Likewise.
1603         (vminnm_f32): Likewise.
1604         (vminnmq_f32): Likewise.
1605         (vminnmq_f64): Likewise.
1607 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1609         PR target/71806
1610         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1611         enable -mfloat128-hardware by default.
1612         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1613         that IEEE 128-bit hardware support needs.
1614         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1615         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1616         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1617         floating point requires.
1618         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1619         -mfloat128 and -mfloat128-hardware changes.
1621 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
1623         PR tree-optimization/71667
1624         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1626 2016-07-08  Martin Liska  <mliska@suse.cz>
1628         PR middle-end/71606
1629         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1630         folding produces SAVE_EXPRs, thus return false for the type.
1632 2016-07-07  Martin Liska  <mliska@suse.cz>
1634         * file-find.c (remove_prefix): New function.
1635         * file-find.h (remove_prefix): Declare the function.
1636         * gcc-ar.c (main): Skip a folder of the wrapper if
1637         a wrapped binary would point to the same file.
1639 2016-07-07  Jan Hubicka  <jh@suse.cz>
1641         * tree-scalar-evolution.c (iv_can_overflow_p): export.
1642         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1643         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1645 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1647         PR ipa/71624
1648         * ipa-inline-analysis.c (compute_inline_parameters): Set
1649         local.can_change_signature to false for intrumentation
1650         thunk callees.
1652 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1654         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1655         with TARGET_HAVE_MOVT.
1656         (TARGET_HAVE_MOVT): Define.
1657         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1658         availability with TARGET_HAVE_MOVT.
1659         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1660         availability.
1661         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1662         TARGET_THUMB2.
1663         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1664         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1665         * config/arm/constraints.md (define_constraint "j"): Use
1666         TARGET_HAVE_MOVT to check MOVT availability.
1668 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1670         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1672 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1674         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1675         (armv8-m.main): Likewise.
1676         (armv8-m.main+dsp): Likewise.
1677         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1678         (FL_FOR_ARCH8M_MAIN): Likewise.
1679         * config/arm/arm-tables.opt: Regenerate.
1680         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1681         armv8-m.main+dsp to BE8_LINK_SPEC.
1682         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1683         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1684         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1685         Baseline and Mainline.
1686         (arm_option_override_internal): Also disable arm_restrict_it when
1687         !arm_arch_notm.  Update comment for -munaligned-access to also cover
1688         ARMv8-M Baseline.
1689         (arm_file_start): Increase buffer size for printing architecture name.
1690         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1691         and armv8-m.main+dsp.
1692         (mno-unaligned-access): Clarify that this is disabled by default for
1693         ARMv8-M Baseline architectures as well.
1695 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1697         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1698         decide whether to prevent some libgcc routines being included for some
1699         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1700         link between this condition and the one in
1701         libgcc/config/arm/lib1func.S.
1703 2016-07-07  Richard Biener  <rguenther@suse.de>
1705         * tree-ssa-pre.c: Include alias.h.
1706         (compute_avail): If we have multiple VN_REFERENCEs with the
1707         same hashtable entry adjust that to make it a valid replacement
1708         for all of them with respect to alignment and aliasing
1709         when doing insertion.
1710         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1711         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1713 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
1715         PR target/70098
1716         PR target/71763
1717         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1718         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1719         constraint.
1721 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1723         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1724         (adjust_mems): Adjust.
1725         (adjust_insn): Likewise.
1726         (prepare_call_arguments): Likewise.
1728 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1730         * gcse.c (struct ls_expr): Make stores field a vector.
1731         (ldst_entry): Adjust.
1732         (free_ldst_entry): Likewise.
1733         (print_ldst_list): Likewise.
1734         (compute_ld_motion_mems): Likewise.
1735         (update_ld_motion_stores): Likewise.
1737 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1739         * gcse.c (struct ls_expr): Remove loads field.
1740         (ldst_entry): Adjust.
1741         (free_ldst_entry): Likewise.
1742         (print_ldst_list): Likewise.
1743         (compute_ld_motion_mems): Likewise.
1745 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1747         * store-motion.c (struct st_expr): Make antic_stores a vector.
1748         (st_expr_entry): Adjust.
1749         (free_st_expr_entry): Likewise.
1750         (print_store_motion_mems): Likewise.
1751         (find_moveable_store): Likewise.
1752         (compute_store_table): Likewise.
1753         (remove_reachable_equiv_notes): Likewise.
1754         (replace_store_insn): Likewise.
1755         (build_store_vectors): Likewise.
1757 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1759         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1760         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1762 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1764         PR tree-optimization/71518
1765         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1766         misalign also for outer loops with negative step.
1768 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
1770         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1771         (cortex_a53_shift): Add mov_shift.
1772         (cortex_a53_shift_reg): Add new reservation for register shifts.
1773         (cortex_a53_alu): Remove bfm.
1774         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1775         (cortex_a53_alu_extr): Add new reservation for EXTR.
1776         (bypasses): Improve bypass modelling.
1778 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1780         PR target/50739
1781         * config/avr/avr.c (avr_asm_select_section): Strip off
1782         SECTION_DECLARED from flags when calling get_section.
1784 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1786         * tree-vectorizer.h (vect_memory_access_type): Add
1787         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1788         * tree-vect-stmts.c (compare_step_with_zero): New function.
1789         (perm_mask_for_reverse): Move further up file.
1790         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1791         step is negative.
1792         (get_negative_load_store_type): New function.
1793         (get_load_store_type): Call it.  Add an ncopies argument.
1794         (vectorizable_mask_load_store): Update call accordingly and
1795         remove tests for negative steps.
1796         (vectorizable_store, vectorizable_load): Likewise.  Handle new
1797         memory_access_types.
1799 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1801         * tree-vectorizer.h (vect_memory_access_type): New enum.
1802         (_stmt_vec_info): Add a memory_access_type field.
1803         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1804         (vect_model_store_cost): Take an access type instead of a boolean.
1805         (vect_model_load_cost): Likewise.
1806         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1807         vect_model_store_cost and vect_model_load_cost.
1808         * tree-vect-stmts.c (vec_load_store_type): New enum.
1809         (vect_model_store_cost): Take an access type instead of a
1810         store_lanes_p boolean.  Simplify tests.
1811         (vect_model_load_cost): Likewise, but for load_lanes_p.
1812         (get_group_load_store_type, get_load_store_type): New functions.
1813         (vectorizable_store): Use get_load_store_type.  Record the access
1814         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1815         (vectorizable_load): Likewise.
1816         (vectorizable_mask_load_store): Likewise.  Replace is_store
1817         variable with vls_type.
1819 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1821         * tree-vectorizer.h (vect_grouped_load_supported): Add a
1822         single_element_p parameter.
1823         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1824         Check the PR65518 case here rather than in vectorizable_load.
1825         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1826         * tree-vect-stmts.c (vectorizable_load): Likewise.
1828 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1830         * tree-vectorizer.h (gather_scatter_info): New structure.
1831         (vect_check_gather_scatter): Return a bool rather than a decl.
1832         Replace return-by-pointer arguments with a single
1833         gather_scatter_info *.
1834         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1835         (vect_analyze_data_refs): Update call accordingly.
1836         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1837         (vectorizable_mask_load_store): Likewise.  Also record the
1838         offset dt and vectype in the gather_scatter_info.
1839         (vectorizable_store): Likewise.
1840         (vectorizable_load): Likewise.
1842 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1844         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
1845         strided groups, use the cost of N scalar accesses instead
1846         of ncopies vector accesses.
1847         (vect_model_load_cost): Likewise.
1849 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1851         * tree-vect-stmts.c (vect_cost_group_size): Delete.
1852         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
1853         variable to indicate when once-per-group costs are being used.
1854         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
1856 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1858         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
1859         peeling-for-gaps condition.
1861 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1863         * config/s390/s390.c (s390_expand_vec_init): Force initializer
1864         element to register if it doesn't match general_operand.
1866 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
1867             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1869         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
1870         prototype.
1871         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
1872         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
1873         (SIGNBIT): New mode iterator.
1874         (Fsignbit): New mode attribute.
1875         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
1876         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
1877         when direct moves are available.
1878         (signbit<mode>2_dm): New define_insn_and_split).
1879         (signbit<mode>2_dm2): New define_insn.
1881 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1883         PR rtl-optimization/71594
1884         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
1885         into subregs of appropriate mode before trying to emit a conditional
1886         move.
1888 2016-07-05  Jan Hubicka  <jh@suse.cz>
1890         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
1891         (simple_iv): Use it.
1893 2016-07-05  Jan Hubicka  <jh@suse.cz>
1895         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
1897 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
1899         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
1900         "offmemok".
1902 2016-07-05  Jan Hubicka  <jh@suse.cz>
1904         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
1905         IV can overflow.
1907 2016-07-05  Richard Biener  <rguenther@suse.de>
1909         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
1910         Handle empty else block.
1911         (is_feasible_trace): Likewise.
1912         (split_paths): Likewise.
1914 2016-07-05  Richard Biener  <rguenther@suse.de>
1916         * tree-loop-distribution.c (distribute_loop): Fix issue with
1917         the cost model loop.
1919 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
1921         * config/arm/neon-testgen.ml: Delete.
1922         * config/arm/neon.ml: Delete.
1924 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
1926         PR c++/71739
1927         * tree.c (attribute_value_equal): Use get_attribute_name instead of
1928         directly using TREE_PURPOSE.
1930 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
1932         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
1933         * config/aarch64/aarch64_neon.h: Likewise.
1934         * config/aarch64/arm_neon.h: Likewise.
1935         * config/aarch64/atomics.md: Likewise.
1936         * config/aarch64/aarch64-simd-builtins.def: Likewise.
1937         * doc/invoke.texi: Likewise.
1939 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1941         * config/s390/s390.md: Add "z13" cpu_facility.
1942         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
1943         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
1944         condition" type instructions.
1946 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1947             Jeff Law  <law@redhat.com>
1949         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
1950         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
1952 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
1954         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
1955         permutation for TARGET_AVX512F.
1956         (ix86_expand_vec_one_operand_perm_avx512): New function.
1957         (expand_vec_perm_1): Invoke introduced function.
1958         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
1959         it may be not valid after vectorization.
1961 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1963         PR target/63874
1964         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
1965         typo in comment.  Only force to memory if it is a weak
1966         external reference.
1968 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
1969             Jiong Wang  <jiong.wang@arm.com>
1971         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
1972         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
1973         (AARCH64_FL_F16): New.
1974         (AARCH64_FL_FOR_ARCH8_2): New.
1975         (AARCH64_ISA_8_2): New.
1976         (AARCH64_ISA_F16): New.
1977         (TARGET_FP_F16INST): New.
1978         (TARGET_SIMD_F16INST): New.
1979         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
1980         ("fp"): Disabling "fp" also disables "fp16".
1981         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
1982         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
1983         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
1984         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
1986 2016-07-04  Jan Beulich  <jbeulich@suse.com>
1988         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
1990 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
1992         PR target/71720
1993         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
1994         the insns, use an insn form that does not adjust the offset on
1995         little endian systems.
1997 2016-07-01  Jan Beulich  <jbeulich@suse.com>
1999         * varasm.c (get_variable_section): Validate initializer in
2000         named .bss-like sections.
2002 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2004         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2005         Exchange the order of the second and third operands in the vpermr
2006         instruction tmeplate.
2008 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2010         PR target/71698
2011         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2012         Disallow TDmode values.
2014 2016-07-01  Alan Modra  <amodra@gmail.com>
2016         PR rtl-optimization/71709
2017         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2018         being set, not referenced.
2020 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
2022         PR tree-optimization/70729
2023         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2024         of loop since it can be not valid after transformation.
2026 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2028         * config/arm/arm.c (thumb_reload_in_hi): Delete.
2029         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2031 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2033         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2034         for NULL decl.
2036 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2038         PR target/71677
2039         * config/rs6000/constraints.md (wY constraint): New constraint to
2040         match the requirements for the LXSD and STXSD instructions.
2041         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2042         predicate to match the requirements for the LXSD and STXSD
2043         instructions.
2044         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2045         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2046         to make sure that the bottom 2 bits of offset are 0, the address
2047         form is offsettable, and no updating is done in the address mode.
2048         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2049         (movdi_internal32): Likewise
2050         (movdi_internal64): Likewise.
2052 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2054         PR tree-optimization/71707
2055         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2056         strinfo even for ADDR_EXPR ptr.
2058 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2060         * config/rs6000/altivec.md (darn_32): Change the condition to
2061         TARGET_P9_MISC instead of TARGET_MODULO.
2062         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2063         condition expression.
2064         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2065         condition expression.
2066         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2067         (DFP_TEST): New code iterator.
2068         (dfptstsfi_<code>_mode>): New define_expand.
2069         (*dfp_sgnfcnc_<mode>): New define_insn.
2070         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2071         definition next to BU_P9_MISC_1 definition and change the MASK
2072         value to RS6000_BTM_P9_MISC.
2073         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2074         (BU_P9_64BIT_MISC_0): Likewise.
2075         (BU_P9_DFP_MISC_0): New macro definition.
2076         (BU_P9_DFP_MISC_1): New macro definition.
2077         (BU_P9_DFP_MISC_2): New macro definition.
2078         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2079         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2080         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2081         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2082         (TSTSFI_LT_TD): Likewise.
2083         (TSTSFI_EQ_DD): Likewise.
2084         (TSTSFI_EQ_TD): Likewise.
2085         (TSTSFI_GT_DD): Likewise.
2086         (TSTSFI_GT_TD): Likewise.
2087         (TSTSFI_OV_DD): Likewise.
2088         (TSTSFI_OV_TD): Likewise.
2089         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2090         (TSTSFI_LT_DD): Likewise.
2091         (TSTSFI_LT_TD): Likewise.
2092         (TSTSFI_EQ): Likewise.
2093         (TSTSFI_EQ_DD): Likewise.
2094         (TSTSFI_EQ_TD): Likewise.
2095         (TSTSFI_GT): Likewise.
2096         (TSTSFI_GT_DD): Likewise.
2097         (TSTSFI_GT_TD): Likewise.
2098         (TSTSFI_OV): Likewise.
2099         (TSTSFI_OV_DD): Likewise.
2100         (TSTSFI_OV_TD): Likewise.
2101         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2102         overloaded test significance functions.
2103         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2104         OPTION_MASK_P9_MISC into the representation of this mask.
2105         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2106         of this mask.
2107         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2108         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2109         non-zero.
2110         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2111         argument is a 6-bit unsigned literal value if the icode argument
2112         represents a DFP test significance built-in call.
2113         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2114         flag used independently and in combination with the
2115         RS6000_BTM_64BIT flag.
2116         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2117         (rs6000_builtin_mask_names): Add entry for power9-misc
2118         command-line option.
2119         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2120         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2121         RS6000_BTM_P9_MISC macros.
2122         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2123         option and change the description of the -mpower9-vector option to
2124         enable only vector instructions, removing its erroneously claimed
2125         support for scalar instructions.
2126         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2127         the ISA 3.0 digital floating point test significance built-in
2128         functions.
2130 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
2132         * config/aarch64/aarch64.c (cortexa35_tunings):
2133         Enable AES fusion.  Use cortexa57_branch_cost.
2134         (cortexa53_tunings): Use cortexa57_branch_cost.
2135         (cortexa72_tunings): Use cortexa57_branch_cost.
2136         Use AUTOPREFETCHER_WEAK.
2137         (cortexa73_tunings): Use cortexa57_branch_cost.
2139 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2140             James Greenhalgh  <james.greenhalgh@arm.com>
2142         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2143         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2144         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2145         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2146         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2147         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2148         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2149         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2150         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2151         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2152         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2153         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2154         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2155         New intrinsics.
2157 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
2158             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2160         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2161         New define_insn.
2162         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2164 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2166         PR driver/71651
2167         * gcc.c (driver::build_option_suggestions): Pass "option" to
2168         add_misspelling_candidates.
2169         * opts-common.c (add_misspelling_candidates): Add "option" param;
2170         use it to avoid adding negated forms for options marked with
2171         RejectNegative.
2172         * opts.h (add_misspelling_candidates): Add "option" param.
2174 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2176         PR middle-end/71693
2177         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2178         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2179         first when permuting bitwise operation with rotate.  Cast
2180         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2182 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
2184         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2185         for misspelled param names.
2186         * params.c: Include spellcheck.h.
2187         (find_param_fuzzy): New function.
2188         * params.h (find_param_fuzzy): New prototype.
2189         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2190         * spellcheck.h (struct edit_distance_traits<const char *>):
2191         ...here.
2193 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2195         * config/rs6000/predicates.md (const_0_to_7_operand): New
2196         predicate, recognize 0..7.
2197         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2198         support for doing extracts from V16QImode, V8HImode, V4SImode
2199         under ISA 3.0.
2200         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2201         vector extract support.
2202         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2203         for ISA 3.0 vector extract.
2204         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2205         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2206         extracts of a constant element number from small integer vectors
2207         on 64-bit ISA 3.0 systems.
2208         (vsx_extract_<mode>_di): Likewise.
2209         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2210         say when we can do ISA 3.0 vector extracts.
2211         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2212         registers, using the stxsiwx instruction.
2214 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
2216         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2217         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2218         qdf24xx_regmove_cost, qdf24xx_tunings): New.
2219         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2220         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2221         * config/arm/arm.c (arm_qdf24xx_tune): New.
2223 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
2225         * config/aarch64/aarch64.c (cortexa53_tunings):
2226         Increase loop alignment to 8.  Set function alignment to 16.
2227         (cortexa35_tunings): Likewise.
2228         (cortexa57_tunings): Increase loop alignment to 8.
2229         (cortexa72_tunings): Likewise.
2230         (cortexa73_tunings): Likewise.
2232 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2234         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2235         for arm_fp16_ok and arm_fp16_hw.
2236         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2237         arm_fp16_alternative.
2239 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2241         PR tree-optimization/71655
2242         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2243         types when swapping operands.
2245 2016-06-29  Martin Liska  <mliska@suse.cz>
2247         PR middle-end/71585
2248         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2249         * ipa-inline-transform.c (inline_call): Remove unnecessary call
2250         of build_optimization_node.
2252 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
2254         PR tree-optimization/70729
2255         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2256         independent in loops having positive safelen value.
2257         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2258         it may be not valid after vectorization.
2260 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
2262         PR tree-optimization/71625
2263         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
2264         is sorted by ascending list->offset.  If PTR is non-NULL and there is
2265         previous strinfo, call get_stridx_plus_constant.
2266         (get_stridx): Pass exp as second argument to get_addr_stridx.
2267         (addr_stridxptr): Add missing list = list->next, so that there can be
2268         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
2269         the list is sorted by ascending list->offset.
2270         (get_stridx_plus_constant): Adjust so that it can be also called with
2271         ADDR_EXPR instead of SSA_NAME as PTR.
2272         (handle_char_store): Pass NULL_TREE as second argument to
2273         get_addr_stridx.
2275 2016-06-29  Richard Biener  <rguenther@suse.de>
2277         PR rtl-optimization/68961
2278         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2280 2016-06-29  Richard Biener  <rguenther@suse.de>
2282         PR middle-end/71002
2283         * alias.c (component_uses_parent_alias_set_from): Handle
2284         type punning through union accesses by using the union alias set.
2285         * gimple.c (gimple_get_alias_set): Remove union type punning case.
2287 2016-07-29  Richard Biener  <rguenther@suse.de>
2289         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2290         precision not matching mode precision.
2292 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
2294         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2295         pa_output_arg_descriptor.
2296         (call_val_symref_64bit_post_reload): Likewise.
2297         (call_val_powf_64bit_post_reload): Likewise.
2298         (sibcall_internal_symref_64bit): Likewise.
2299         (sibcall_value_internal_symref_64bit): Likewise.
2301 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2303         PR middle-end/71626
2304         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2305         a constant, force its SUBREG_REG into memory or register instead
2306         of whole op1.
2308 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2310         PR target/58655
2311         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2312         * doc/invoke.texi (AVR Options): Document it.
2314 2016-06-28  Walter Lee  <walt@tilera.com>
2316         * config/tilegx/linux.h: Do not include arch/icache.h
2317         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2318         * config/tilepro/linux.h: Do not include arch/icache.h
2319         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2321 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
2323         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2324         for big-endian BIT_FIELD_REF.
2326 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2328         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2329         ('size' attribute): Add '128'.
2330         Include power9.md.
2331         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2332         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2333         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2334         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2335         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2336         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2337         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2338         *trunc<mode>df2_odd): Set size attribute to '128'.
2339         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2340         * config/rs6000/power6.md (power6-fp): Include dfp type.
2341         * config/rs6000/power7.md (power7-fp): Likewise.
2342         * config/rs6000/power8.md (power8-fp): Likewise.
2343         * config/rs6000/power9.md: New file.
2344         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2345         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2346         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2347         htmsimple.
2348         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2349         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2350         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2351         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2352         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2353         dfp_dscri_<mode>): Change type attribute to dfp.
2354         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2355         attribute to vecsimple.
2356         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2357         and prefetch streams.
2358         (rs6000_option_override_internal): Remove temporary code setting
2359         tuning to power8.  Don't set rs6000_sched_groups for power9.
2360         (last_scheduled_insn): Change to rtx_insn *.
2361         (divide_cnt, vec_load_pendulum): New variables.
2362         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2363         (rs6000_issue_rate): Set issue rate for Power9.
2364         (is_power9_pairable_vec_type): New.
2365         (power9_sched_reorder2): New.
2366         (rs6000_sched_reorder2): Call new function for Power9 specific
2367         reordering.
2368         (insn_must_be_first_in_group): Remove Power9.
2369         (insn_must_be_last_in_group): Likewise.
2370         (force_new_group): Likewise.
2371         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2372         Initialize divide_cnt/vec_load_pendulum.
2373         (_rs6000_sched_context, rs6000_init_sched_context,
2374         rs6000_set_sched_context): Handle context save/restore of new
2375         variables.
2377 2016-06-28  Richard Biener  <rguenther@suse.de>
2379         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2380         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2381         COMPONENT_REF operand.
2382         (nonoverlapping_component_refs_p): Likewise.
2383         * stor-layout.c (start_bitfield_representative): Mark
2384         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2386 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2388         * Makefile.in: Don't cat ../stage_current if it does not exist.
2390         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2391         last argument is a bit-field.
2393         PR rtl-optimization/71673
2394         * internal-fn.c (expand_arith_overflow_result_store): Use
2395         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2396         expand_simple_binop.
2398         PR middle-end/66867
2399         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2400         expand_ifn_atomic_compare_exchange): New functions.
2401         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2402         * tree.h (build_call_expr_internal_loc): Rename to ...
2403         (build_call_expr_internal_loc_array): ... this.  Fix up type of
2404         last argument.
2405         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2406         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2407         ATOMIC_COMPARE_EXCHANGE result.
2408         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2409         * gimple-fold.h (optimize_atomic_compare_exchange_p,
2410         fold_builtin_atomic_compare_exchange): New prototypes.
2411         * gimple-fold.c (optimize_atomic_compare_exchange_p,
2412         fold_builtin_atomic_compare_exchange): New functions..
2413         * tree-ssa.c (execute_update_addresses_taken): If
2414         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2415         of call when finding addressable vars, and if such var becomes
2416         non-addressable, call fold_builtin_atomic_compare_exchange.
2418 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2420         PR target/71670
2421         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2422         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2424 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2426         * config/rs6000/rs6000.md ('type' attribute): Add
2427         veclogical,veccmpfx,vecexts,vecmove insn types.
2428         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2429         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2430         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2431         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2432         *nabs<mode>2_hw): Change type to vecmove.
2433         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2434         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2435         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2436         *ieee_128bit_vsx_abs<mode>2_internal,
2437         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2438         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2439         *ieee128_mtvsrd_32bit): Change type to veclogical.
2440         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2441         *movdi_internal32, *movdi_internal64): Update insn types.
2442         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2443         vsx_extract_<mode>): Change type to veclogical.
2444         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2445         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2446         *vsx_sign_extend_si_v2di): Change type to vecexts.
2447         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2448         type to veclogical.
2449         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2450         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2451         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2452         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2453         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2454         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2455         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2456         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2457         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2458         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2459         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2460         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2461         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2462         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2463         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2464         (ppc7450-vecsimple): Add veclogical, vecmove.
2465         (ppc7450-veccmp): Add veccmpfx.
2466         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2467         vecmove.
2468         (ppc8540_vector_compare): Add veccmpfx.
2469         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2470         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2471         (cell-vecsimple): Add veclogical, vecmove.
2472         (cell-veccmp): Add veccmpfx.
2473         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2474         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2475         veccmpfx.
2476         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2477         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2478         (power4-vecsimple): Add veclogical, vecmove.
2479         (power4-veccmp): Add veccmpfx.
2480         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2481         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2482         (power6-vecsimple): Add veclogical, vecmove.
2483         (power6-veccmp): Add veccmpfx.
2484         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2485         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2486         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2487         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2488         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2489         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2490         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2491         fpsimple.
2492         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2494 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2496         PR target/71656
2497         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2498         OPTION_MASK_P9_DFORM_VECTOR.
2499         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2500         disable -mpower9-dform-vector when using reload.
2501         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2502         New 'strict' argument.  Update all callers.  Add strict addressing
2503         support.
2504         (rs6000_legitimate_offset_address_p): Remove call to
2505         virtual_stack_registers_memory_p.
2506         (rs6000_legitimize_reload_address): Add quad address support.
2507         (rs6000_legitimate_address_p): Move call to quad_address_p above
2508         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2509         to account for new strict usage.
2510         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2511         for new strict usage.
2512         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2514 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
2516         PR target/70902
2517         PR target/71453
2518         PR target/71555
2519         PR target/71596
2520         PR target/71657
2521         * config/i386/i386.c (ix86_spill_class): Disable condition to
2522         always return NO_REGS.
2524 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
2526         * predict.c: Include gimple-pretty-print.h
2527         (predicted_by_loop_heuristics_p): Check also
2528         PRED_LOOP_EXIT_WITH_RECURSION
2529         (predict_loops): Find self recursive calls and use special purpose
2530         predictors for them; dump log about decisions.
2531         (pass_profile::execute): Dump info about #of iterations.
2532         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2533         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2535 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
2537         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2538         output_asm_insn calls and shorten long lines.  Output .CALL
2539         argument descriptor using pa_output_arg_descriptor.  Add various
2540         inline $$dyncall and other optimizations.
2541         (pa_attr_length_indirect_call): Adjust ordering and lengths.
2543 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
2545         PR tree-optimization/71643
2546         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2547         EH preds.
2549         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2550         leak a bitmap if dep_bb is NULL.
2552         PR tree-optimization/71631
2553         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2554         to rewrite_expr_tree even if negate_result, move new_lhs var
2555         declaration and initialization earlier, for powi_result set afterwards
2556         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
2557         if new_lhs != lhs, and don't shadow gsi var.
2559 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2561         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2562         Add in_loop parameter.
2563         (predict_loops): Add loop guard heuristics.
2564         * predict.def (PRED_LOOP_GUARD): New heuristics.
2566 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2568         * predict.c: Include ipa-utils.h
2569         (tree_bb_level_prediction): Predict recursive calls.
2570         (tree_estimate_probability_bb): Skip inexpensive calls for call
2571         predictor.
2572         * predict.def (PRED_RECURSIVE_CALL): New.
2574 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2576         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2577         (BU_FLOAT128_1): Likewise.
2578         (FABSQ): Likewise.
2579         (COPYSIGNQ): Likewise.
2580         (RS6000_BUILTIN_NANQ): Likewise.
2581         (RS6000_BUILTIN_NANSQ): Likewise.
2582         (RS6000_BUILTIN_INFQ): Likewise.
2583         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2584         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2585         (TARGET_FOLD_BUILTIN): New #define.
2586         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2587         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2588         (rs6000_fold_builtin): New target hook implementation, handling
2589         folding of 128-bit NaNs and infinities.
2590         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2591         entries are filled in to avoid problems during bootstrap
2592         self-test; define builtins for 128-bit NaNs and infinities.
2593         (rs6000_opt_mask): Add entry for float128.
2594         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2595         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2596         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2597         (const_str_type_node): New #define.
2598         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2599         to a define_expand that dispatches to either copysign<mode>3_soft
2600         or copysign<mode>3_hard.
2601         (copysign<mode>3_hard): Rename from copysign<mode>3.
2602         (copysign<mode>3_soft): New define_insn.
2603         * doc/extend.texi: Document new builtins.
2605 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2607         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2608         PRIu64 instead of lu.
2610 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2612         PR debug/71642
2613         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2614         copy the type name.
2616 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2618         PR tree-optimization/71647
2619         * omp-low.c (lower_rec_input_clauses): Convert
2620         omp_clause_aligned_alignment (c) to size_type_node for the
2621         last argument of __builtin_assume_aligned.
2623 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2625         * configure.ac (calling ___tls_get_addr via GOT): New
2626         assembler/linker check.
2627         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
2628         assembler and linker supports calling ___tls_get_addr via GOT.
2629         Otherise, defined to 0.
2630         * config.in: Regenerated.
2631         * configure: Likewise.
2632         * config/i386/constraints.md (Yb): New constraint.
2633         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2634         (REG_CLASS_NAMES): Likewise.
2635         (REG_CLASS_CONTENTS): Likewise.
2636         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2637         the b constraint with the Yb constraint.  Call ___tls_get_addr
2638         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2639         is 1.
2640         (*tls_local_dynamic_base_32_gnu): Likewise.
2641         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2642         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2643         (*tls_local_dynamic_base_64_<mode>): Likewise.
2645 2016-06-24  Martin Liska  <mliska@suse.cz>
2647         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2648         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2649         few functions.
2650         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2651         argument to true if the expected number of iterations is
2652         loop-based.
2654 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
2656         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2657         assemble for 32bit target.
2658         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2659         and $ld_ix86_gld_32_opt to link for 32bit target.
2660         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2661         * configure: Regenerate.
2663 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2665         * config/arm/arm.c (int_log2): Delete definition and prototype.
2666         (shift_op): Use exact_log2 instead of int_log2.
2667         (vfp3_const_double_for_fract_bits): Likewise.
2669 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2671         * internal-fn.c (expand_arith_set_overflow): New function.
2672         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2673         Use it.
2674         (expand_arith_overflow_result_store): Likewise.  Handle precision
2675         smaller than mode precision.
2676         * tree-vrp.c (extract_range_basic): For imag part, handle
2677         properly signed 1-bit precision result.
2678         * doc/extend.texi (__builtin_add_overflow): Document that last
2679         argument can't be pointer to enumerated or boolean type.
2680         (__builtin_add_overflow_p): Document that last argument can't
2681         have enumerated or boolean type.
2683 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2684             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2686         * config/rs6000/predicates.md (splat_input_operand): Rework.
2687         Don't allow constants, since the insns that use this predicate
2688         don't support constants.  Constants are handled by other insns
2689         that are created via combine.  During and after register
2690         allocation, only allow indexed or indirect addresses, and not
2691         general addresses.  Only allow modes supported by the hardware.
2692         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2693         comment.  Move check for using VSPLTIS<x> to a common location,
2694         instead of doing it in two different places.
2696 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
2698         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2699         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2700         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2701         signature_CENTAUR_ebx.
2703 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2705         PR target/66232
2706         PR target/67400
2707         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2708         (as_ix86_gas_32_opt): This.
2709         (ld_ix86_tls_ldm_opt): Renamed to ...
2710         (ld_ix86_gld_32_opt): This.
2711         (R_386_TLS_LDM reloc): Updated.
2712         (R_386_GOT32X reloc): New assembler/linker check.
2713         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
2714         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
2715         defined to 0.
2716         * config.in: Regenerated.
2717         * configure: Likewise.
2718         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2719         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2720         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2721         if ix86_force_load_from_GOT_p returns true.
2722         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2723         ix86_force_load_from_GOT_p returns true.
2724         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2725         the external function address via the GOT slot.
2726         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2727         HAVE_AS_IX86_GOT32X before returning false.
2728         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2729         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2731 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
2733         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2735 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2737         * Makefile.in: Regenerate.
2738         * doc/install.texi: Document autoprofiledbootstrap.
2740 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2742         * config/i386/gcc-auto-profile: New file.
2744 2016-06-23  Martin Liska  <mliska@suse.cz>
2746         PR middle-end/71619
2747         * predict.c (predict_loops): Revert the hunk that was removed
2748         in r237103.
2750 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
2752         * config.gcc: Add support for arm*-*-phoenix* targets.
2753         * config/arm/t-phoenix: New.
2754         * config/phoenix.h: New.
2756 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
2757             H.J. Lu  <hongjiu.lu@intel.com>
2759         PR target/67400
2760         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2761         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2762         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2763         ix86_force_load_from_GOT_p returns true.
2764         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2765         ix86_force_load_from_GOT_p returns true.
2766         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2767         ix86_force_load_from_GOT_p returns true.
2768         (ix86_expand_move): Load the external function address via the
2769         GOT slot if ix86_force_load_from_GOT_p returns true.
2770         * config/i386/predicates.md (x86_64_immediate_operand): Return
2771         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2772         (x86_64_zext_immediate_operand): Ditto.
2774 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
2776         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2778 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2780         PR c/70339
2781         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2782         * diagnostic.c (pedwarn_at_rich_loc): New function.
2783         * spellcheck.h (best_match::best_match): Add a
2784         "best_distance_so_far" optional parameter.
2785         (best_match::set_best_so_far): New method.
2786         (best_match::get_best_distance): New accessor.
2787         (best_match::get_best_candidate_length): New accessor.
2789 2016-06-22  Nick Clifton  <nickc@redhat.com>
2791         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2792         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2793         modes are accepted as well.
2794         (ucompare_loc_descriptor): Likewise.
2795         (minmax_loc_descriptor): Likewise.
2796         (clz_loc_descriptor): Likewise.
2797         (popcount_loc_descriptor): Likewise.
2798         (bswap_loc_descriptor): Likewise.
2799         (rotate_loc_descriptor): Likewise.
2800         (mem_loc_descriptor): Likewise.
2801         (loc_descriptor): Likewise.
2803 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2805         * common.opt (fdiagnostics-parseable-fixits): New option.
2806         * diagnostic.c: Include "selftest.h".
2807         (print_escaped_string): New function.
2808         (print_parseable_fixits): New function.
2809         (diagnostic_report_diagnostic): Call print_parseable_fixits.
2810         (selftest::assert_print_escaped_string): New function.
2811         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2812         (selftest::test_print_escaped_string): New function.
2813         (selftest::test_print_parseable_fixits_none): New function.
2814         (selftest::test_print_parseable_fixits_insert): New function.
2815         (selftest::test_print_parseable_fixits_remove): New function.
2816         (selftest::test_print_parseable_fixits_replace): New function.
2817         (selftest::diagnostic_c_tests): New function.
2818         * diagnostic.h (struct diagnostic_context): Add field
2819         "parseable_fixits_p".
2820         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2821         -fdiagnostics-parseable-fixits.
2822         (-fdiagnostics-parseable-fixits): New option.
2823         * opts.c (common_handle_option): Handle
2824         -fdiagnostics-parseable-fixits.
2825         * selftest-run-tests.c (selftest::run_tests): Call
2826         selftest::diagnostic_c_tests.
2827         * selftest.h (selftest::diagnostic_c_tests): New prototype.
2829 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
2831         PR tree-optimization/71488
2832         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2833         comparison of boolean vectors.
2834         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2835         of boolean vectors using bitwise operations.
2837 2016-06-22  Andreas Schwab  <schwab@suse.de>
2839         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2840         Remove declaration.
2842 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2844         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
2846 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2848         * config/i386/i386.c (print_reg): Emit an error message on attempt to
2849         print FLAGS_REG.
2851 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2853         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
2854         * config/arm/arm-cores.def (cortex-a73): New entry.
2855         (cortex-a73.cortex-a35): Likewise.
2856         (cortex-a73.cortex-a53): Likewise.
2857         * config/arm/arm-tables.opt: Regenerate.
2858         * config/arm/arm-tune.md: Likewise.
2859         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
2860         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2861         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
2862         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
2863         * doc/invoke.texi (ARM Options): Document cortex-a73,
2864         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
2866 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2868         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
2869         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
2870         (cortex-a73.cortex-a35): Likewise.
2871         (cortex-a73.cortex-a53): Likewise.
2872         * config/aarch64/aarch64-tune.md: Regenerate.
2873         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
2874         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
2875         -mcpu and -mtune.
2877 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2879         * configure.ac (gcc_cv_as_compress_debug): Remove
2880         --compress-debug-sections as extra as switch.
2881         Handle gas --compress-debug-sections=type.
2882         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
2883         Handle gld --compress-debug-sections=type.
2884         * configure: Regenerate.
2886 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2888         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
2890 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
2892         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
2893         (do_rewrite): likewise.
2895 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2897         * common/config/mep/mep-common.c: Remove.
2898         * config.gcc: Remove mep-* support.
2899         * config/mep/constraints.md: Remove.
2900         * config/mep/default.h: Remove.
2901         * config/mep/intrinsics.h: Remove.
2902         * config/mep/intrinsics.md: Remove.
2903         * config/mep/ivc2-template.h: Remove.
2904         * config/mep/mep-c5.cpu: Remove.
2905         * config/mep/mep-core.cpu: Remove.
2906         * config/mep/mep-default.cpu: Remove.
2907         * config/mep/mep-ext-cop.cpu: Remove.
2908         * config/mep/mep-intrin.h: Remove.
2909         * config/mep/mep-ivc2.cpu: Remove.
2910         * config/mep/mep-pragma.c: Remove.
2911         * config/mep/mep-protos.h: Remove.
2912         * config/mep/mep.c: Remove.
2913         * config/mep/mep.cpu: Remove.
2914         * config/mep/mep.h: Remove.
2915         * config/mep/mep.md: Remove.
2916         * config/mep/mep.opt: Remove.
2917         * config/mep/predicates.md: Remove.
2918         * config/mep/t-mep: Remove.
2919         * doc/install.texi: Remove mep-* documentation.
2920         * doc/md.texi: Likewise.
2922 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2924         * config.gcc: Remove support for avr-rtems.
2925         * config/avr/gen-avr-mmcu-specs.c: Likewise.
2926         * config/avr/rtems.h: Remove.
2927         * config/avr/t-rtems: Remove.
2929 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2931         * config.gcc: Remove m32r-rtems support.
2932         * config/m32r/rtems.h: Remove.
2934 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2936         * config.gcc: Remove h8300-rtems support.
2937         * config/h8300/rtems.h: Remove.
2938         * config/h8300/t-rtems: Remove.
2940 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2942         * config.gcc: Remove support for knetbsd.
2943         * configure.ac: Likewise.
2944         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
2945         * config/knetbsd-gnu.h: Remove.
2946         * configure: Regenerate.
2948 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2950         * config.gcc: Remove support for openbsd 2 and 3.
2951         * config/openbsd-oldgas.h: Remove.
2953 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2955         * config.gcc: Remove interix support.
2956         * config/i386/i386-interix.h: Remove.
2957         * config/i386/interix.opt: Remove.
2958         * config/i386/t-interix: Remove.
2959         * configure: Regenerate.
2960         * configure.ac: Remove interix support.
2961         * doc/install.texi: Remove interix documentation.
2963 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2965         * config/rs6000/rs6000.h: Add conditional preprocessing directives
2966         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
2967         not defined.
2969 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2971         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
2972         they are both PLACEHOLDER_EXPRs.
2974 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2976         * stor-layout.c (layout_type): Move setting complex MODE to
2977         layout_type, instead of setting it ahead of time by the caller.
2978         * tree.c (build_complex_type): Likewise.
2980 2016-06-21  Martin Liska  <mliska@suse.cz>
2982         * predict.c (force_edge_cold): Replace imposisble with
2983         impossible.
2985 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2987         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
2988         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
2990 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
2992         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
2994 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2995             Ilya Enkovich  <ilya.enkovich@intel.com>
2997         PR target/71549
2998         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
2999         New member function to convert V1TImode register to SUBREG
3000         TImode in debug insn.
3001         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3002         after changing register mode to V1TImode.
3004 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
3006         * config/aarch64/aarch64-cores.def (vulcan): New core.
3007         * config/aarch64/aarch64-tune.md: Regenerate.
3008         * doc/invoke.texi: Document vulcan as an available option.
3010 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3012         * cse.c (canon_asm_operands): New function extracted from...
3013         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
3014         either standalone or member of a PARALLEL.
3016 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3018         PR target/30417
3019         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3020         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3021         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3023 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3025         PR target/71103
3026         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3027         constant addresses if can_create_pseudo_p.
3029 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3031         PR tree-optimization/71588
3032         * tree-ssa-strlen.c (valid_builtin_call): New function.
3033         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3034         it.
3036 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3038         PR middle-end/71581
3039         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3040         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3041         for conversion of scalar user var to complex type and use the
3042         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3043         punt.
3045         PR rtl-optimization/71591
3046         * toplev.c (toplev::run_self_tests): If no_backend, complain and
3047         don't run any tests.
3049 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
3051         PR target/71571
3052         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3053         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
3054         space for PIC with non-v32 and the common non-PIC "jump".
3056 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3058         PR target/71559
3059         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3060         returned values and add UN*/LTGT/*ORDERED cases with values matching
3061         D operand modifier on vcmp for AVX.
3063 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3065         * config/aarch64/aarch64.opt
3066         (mpc-relative-literal-loads): Rename internal option name.
3067         * config/aarch64/aarch64.c
3068         (aarch64_nopcrelative_literal_loads): Rename to
3069         aarch64_pcrelative_literal_loads.
3070         (aarch64_expand_mov_immediate): Likewise.
3071         (aarch64_secondary_reload): Likewise.
3072         (aarch64_can_use_per_function_literal_pools_p): Likewise.
3073         (aarch64_override_options_after_change_1): Rename and simplify logic.
3074         (aarch64_classify_symbol): Merge large model checks into switch,
3075         remove pc-relative load check.
3077 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3079         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3080         costs relative to the cost of a register move.
3082 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3084         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3085         (vcvt_n_f64_u64): Likewise.
3086         (vcvt_n_s64_f64): Likewise.
3087         (vcvt_n_u64_f64): Likewise.
3088         (vcvt_f64_s64): Likewise.
3089         (vrecpe_f64): Likewise.
3090         (vcvt_f64_u64): Likewise.
3091         (vrecps_f64): Likewise.
3093 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3095         * config/aarch64/aarch64.md
3096         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3097         iterators.
3098         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
3099         attributes.
3100         * config/aarch64/aarch64-builtins.c
3101         (aarch64_types_binop_uss_qualifiers): Delete.
3102         (TYPES_BINOP_USS): Likewise.
3103         (aarch64_types_binop_sus_qualifiers): Likewise.
3104         (TYPES_BINOP_SUS): Likewise.
3105         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3106         (TYPES_FCVTIMM_SUS): Likewise.
3107         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3108         rather than BINOP.
3109         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3110         (fcvtzs): Use SHIFTIMM rather than BINOP.
3111         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3113 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3115         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3116         costs relative to the cost of a register move.
3118 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3120         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3121         Allow scalar/single vector modes to be tieable.
3123 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3125         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3127 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3129         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3130         "alignement".
3131         * tree.h (TYPE_ALIGN): Likewise.
3133 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3135         PR target/71103
3136         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3138 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3140         * config/avr/avr.c (avr_print_operand): Fix "format not a string
3141         literal" build warnings.
3142         (avr_print_operand_address): Dito.
3144 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
3146         PR target/71375
3147         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3148         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3150 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
3152         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3154 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3156         PR bootstrap/71435
3157         * reload1.c (reload): Pass 0 to finish_spills when called because
3158         update_eliminables_and_spill returns true and remove did_spill.
3159         (finish_spills): Adjust comment and document GLOBAL parameter.
3161 2016-06-17  DJ Delorie  <dj@redhat.com>
3163         PR target/71338
3164         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3165         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3166         (umulqihi3_virt): Likewise.
3167         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3168         (umulqihi3_real): Likewise.
3170 2016-06-17  Martin Liska  <mliska@suse.cz>
3172         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3174 2016-06-17  Martin Liska  <mliska@suse.cz>
3176         * predict.def: PRED_LOOP_EXIT from 92 to 85.
3178 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
3180         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3181         __FAST_MATH__.
3182         (vaddq_f32): Likewise.
3183         (vmul_f32): Likewise.
3184         (vmulq_f32): Likewise.
3185         (vsub_f32): Likewise.
3186         (vsubq_f32): Likewise.
3188 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3190         PR tree-optimization/71347
3191         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3192         cost for all uses in group.
3194 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
3196         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3197         insert gimple seq if it's not empty.
3199 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3201         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3202         member OFFSET.
3203         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3204         rather than OFFSET.
3205         (comp_dr_with_seg_len_pair): Ditto.
3206         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
3207         struct dr_with_seg_len_pair against DR_OFFSET.
3208         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3209         DR_OFFSET directly.
3211 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3213         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3215 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
3217         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3218         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3219         (pa_output_millicode_call): Likewise.
3220         (pa_output_call): Likewise.
3221         (pa_output_indirect_call): Likewise.
3222         (pa_asm_output_mi_thunk): Likewise.
3224 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3226         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3228 2016-06-16  Martin Liska  <mliska@suse.cz>
3230         * predict.c (combine_predictions_for_insn): When we find a first
3231         match predictor, we should consider just predictors with
3232         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
3233         DS theory predictor.
3234         (combine_predictions_for_bb): Likewise.
3236 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3238         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3239         with base of reference to struct.
3241 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3243         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3245 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3247         PR target/71151
3248         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3249         progmem_swtable_section.
3250         (progmem_swtable_section): Remove.
3251         (avr_asm_function_rodata_section): Remove.
3252         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3253         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3255 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
3257         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3258         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3259         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3260         signature_CENTAUR_ebx.
3261         * config/i386/i386.c (ix86_option_override_internal): Add
3262         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3263         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3264         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3266 2016-06-16  Martin Liska  <mliska@suse.cz>
3268         * predict.def: Add fortran loop preheader predictor.
3269         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3270         fold IFN_BUILTIN_EXPECT with a known constant argument.
3272 2016-06-16  Martin Liska  <mliska@suse.cz>
3274         * predict.def: Add 'Fortran' to display text of all
3275         PRED_FORTRAN_* predictors.
3277 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3279         PR target/71242
3280         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3281         [IA64_BUILTIN_NANSQ]: Ditto.
3282         (ia64_fold_builtin): New function.
3283         (TARGET_FOLD_BUILTIN): New define.
3284         (ia64_init_builtins) Declare const_string_type node.
3285         Add __builtin_nanq and __builtin_nansq builtin functions.
3286         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3288 2016-06-16  Nick Clifton  <nickc@redhat.com>
3290         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3291         MSP430_HWMULT_ prefix to enum values.
3292         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3293         * config/msp430/msp430.c: Update use of enum values.
3294         * config/msp430/msp430.md: Likewise.
3295         * config/msp430/msp430.opt: Likewise.
3297 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
3299         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3300         of comparsions in the last iteration.
3302 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3303             Joern Rennecke  <joern.rennecke@embecosm.com>
3305         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3306         addresses.
3307         (arc_needs_pcl_p): Add GOTOFFPC.
3308         (arc_legitimate_pic_addr_p): Likewise.
3309         (arc_output_pic_addr_const): Likewise.
3310         (arc_legitimize_pic_address): Generate a pc-relative address using
3311         GOTOFFPC.
3312         (arc_output_libcall): Use @pcl syntax.
3313         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3314         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3315         (*movsi_insn): Use @pcl syntax.
3316         (doloop_begin_i): Likewise.
3318 2016-06-16  Martin Liska  <mliska@suse.cz>
3320         * predict.def: Define a new predictor.
3322 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3324         * config/arc/arc.opt (mtp-regno): Update text.
3326 2016-06-16  Renlin Li  <renlin.li@arm.com>
3328         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3330 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3332         PR target/71554
3333         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3334         (setcc + and peephole2): Likewise.
3336         PR rtl-optimization/71532
3337         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3338         memory slots.
3340 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
3342         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3343         DImode constants with XXSPLTIB in vector registers.
3344         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3345         vsx_extract_<mode>_internal{1,2} into a single insn that handles
3346         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3347         extraction of the element at the top of the register as a scalar
3348         value.
3349         (vsx_extract_<mode>_internal1): Likewise.
3350         (vsx_extract_<mode>_internal2): Likewise.
3351         * config/rs6000/constraints.md (wi constraint): Remove a comment
3352         about DImode not being allowed in Altivec registers.
3353         (wB constraint): New constraint for constants that can be
3354         generated in Altivec registers with VSPLTISW/VUPKHSW.
3355         * config/rs6000/predicates.md (xxspltib_constant_split): Update
3356         comments.
3357         (xxspltib_constant_nosplit): Likewise.
3358         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3359         support for -mupper-regs-di to enable DImode to go into Altivec
3360         registers.
3361         (POWERPC_MASKS): Likewise.
3362         (power7 cpu): Likewise.
3363         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3364         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3365         for DImode being allowed in Altivec registers.  Update wi/wj
3366         constraints.  Set scalar_in_vmx_p flag.
3367         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3368         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
3369         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3370         (rs6000_opt_masks): Add -mupper-regs-di.
3371         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3372         direct move to use wi and not wj.
3373         (lfiwzx): Likewise.
3374         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3375         alternative.
3376         (floatunssi<mode>2_lfiwzx_mem): Likewise.
3377         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3378         any VSX register, instead of just Altivec registers, to allow
3379         either operand to be an Altivec register or both.
3380         (fixuns_trunc<mode>di2_fctiduz): Likewise.
3381         (movdi_internal32): Add support for -mupper-regs-di.  Add support
3382         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
3383         the alternatives and attributes to be lined up to be easier to
3384         read.
3385         (movdi_internal64): Likewise.
3386         (64-bit DImode splitters): Change predicates to only split loading
3387         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
3388         load constants in ISA 3.0 or ISA 2.07 respectively.
3389         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3390         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
3391         mention -mcpu=power9 sets these options.
3392         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3393         wB constraint.
3395 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3397         PR target/67353
3398         * config/avr/avr.c (avr_set_current_function): Warn misspelled
3399         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3400         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3401         by default to warn misspelled interrupt/ signal handler.
3402         * doc/invoke.texi (AVR Options): Document it. Update description
3403         for -nodevicelib option.
3405 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3407         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3408         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
3409         (aarch64_<sur>shll2_n<mode>): Likewise.
3411 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3413         PR middle-end/71529
3414         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3415         DECL_CONTEXT for copied arguments.
3417 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3419         PR tree-optimization/71483
3420         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3421         for slp
3423 2016-06-15  Martin Liska  <mliska@suse.cz>
3425         * predict.c (tree_predict_by_opcode): Call predict_edge_def
3426         instead of predict_edge w/o a probability.
3428 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3430         PR tree-optimization/71439
3431         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3432         live PHIs.
3434 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3436         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3437         register subregs in SET_SRC.
3439 2016-06-15  Richard Biener  <rguenther@suse.de>
3441         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3442         store restrictions.
3444 2016-06-15  Richard Biener  <rguenther@suse.de>
3446         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3447         not consider dependences between accesses that belong to the
3448         same group.
3449         (vect_analyze_data_ref_dependences): Do not analyze read-read
3450         or self-dependences.
3452 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3454         * spellcheck-tree.c: Include spellcheck-tree.h rather than
3455         spellcheck.h.
3456         (find_closest_identifier): Reimplement in terms of
3457         best_match<tree,tree>.
3458         * spellcheck-tree.h: New file.
3459         * spellcheck.c (struct edit_distance_traits<const char *>): New
3460         struct.
3461         (find_closest_string): Reimplement in terms of
3462         best_match<const char *, const char *>.
3463         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3464         overload to spellcheck-tree.h.
3465         (find_closest_identifier): Likewise.
3466         (struct edit_distance_traits<T>): New template.
3467         (class best_match): New class.
3469 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3471         * selftest-run-tests.c (selftest::run_tests): Call
3472         selftest::spellcheck_tree_c_tests.
3473         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3474         * spellcheck-tree.c: Include selftest.h and stringpool.h.
3475         (selftest::test_find_closest_identifier): New function.
3476         (selftest::spellcheck_tree_c_tests): New function.
3477         * spellcheck.c (selftest::test_find_closest_string): Verify that
3478         the order of the vec does not affect the results for this case.
3479         (selftest::test_data): New array.
3480         (selftest::test_metric_conditions): New function.
3481         (selftest::spellcheck_c_tests): Add a test of case-comparison.
3482         Call selftest::test_metric_conditions.
3484 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3486         * config/rs6000/rs6000-builtin.def (commentary): Typo.
3487         (BU_P9_MISC_1): Likewise.
3488         (BU_P9_64BIT_MISC_0): Likewise.
3489         (BU_P9_MISC_0): Likewise.
3491 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3493         * gcc-rich-location.c
3494         (gcc_rich_location::add_fixit_misspelled_id): New method.
3495         * gcc-rich-location.h
3496         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3498 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3500         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3501         FreeBSD 11 and above.
3503 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
3505         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3507 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3509         * expmed.h: Close parenthesis in "at your option" in copyright
3510         boilerplate.
3511         * lower-subreg.h: Likewise.
3513 2016-06-14  Richard Biener  <rguenther@suse.de>
3515         PR middle-end/71526
3516         * genmatch.c (expr::gen_transform): Use in_type for comparisons
3517         if available.
3519 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3521         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3522         New function.
3523         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
3524         mask+shift version.
3525         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3526         New prototype.
3527         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3528         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3530 2016-06-14  Richard Biener  <rguenther@suse.de>
3532         PR tree-optimization/71522
3533         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3534         copying into float copying.
3536 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
3538         PR tree-optimization/71520
3539         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3540         (replace_block_by): Move user labels from bb1 to bb2.
3542 2016-06-14  Richard Biener  <rguenther@suse.de>
3544         PR middle-end/71310
3545         PR bootstrap/71510
3546         * expr.h (get_bit_range): Declare.
3547         * expr.c (get_bit_range): Export.
3548         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3549         word_mode again to constrain the bitfield access.
3551 2016-06-14  Richard Biener  <rguenther@suse.de>
3553         PR tree-optimization/71521
3554         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3555         division int_const_binop against zero divisor.
3557 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3559         * config/i386/i386.md (signbittf2): New expander.
3560         * config/i386/sse.md (ptesttf2): New insn pattern.
3562 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3564         PR bootstrap/71481
3565         * input.c (selftest::test_reading_source_line): Avoid reading from
3566         __FILE__ by creating a tempfile with known content and reading
3567         from that instead.
3569 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3571         * pretty-print.c (assert_pp_format_colored): Skip the test if
3572         GCC_COLORS is set.
3573         (test_pp_format): Remove comment about GCC_COLORS.
3575 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3577         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3578         * pretty-print.c (assert_pp_format_va): Add location param and use
3579         it with ASSERT_STREQ_AT.
3580         (assert_pp_format): Add location param and pass it to
3581         assert_pp_format_va.
3582         (assert_pp_format_colored): Likewise.
3583         (ASSERT_PP_FORMAT_1): New.
3584         (ASSERT_PP_FORMAT_2): New.
3585         (ASSERT_PP_FORMAT_3): New.
3586         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3587         explicitly, or implicitly via the above macros.
3588         * selftest.c (selftest::pass): Use a selftest::location rather
3589         than file and line.
3590         (selftest::fail): Likewise.  Print the function name.
3591         (selftest::fail_formatted): Likewise.
3592         (selftest::assert_streq): Use a selftest::location rather than
3593         file and line.
3594         * selftest.h (selftest::location): New struct.
3595         (SELFTEST_LOCATION): New macro.
3596         (selftest::pass): Accept a const location & rather than file
3597         and line.
3598         (selftest::fail): Likewise.
3599         (selftest::fail_formatted): Likewise.
3600         (selftest::assert_streq): Likewise.
3601         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3602         (ASSERT_FALSE): Likewise.
3603         (ASSERT_EQ): Likewise.
3604         (ASSERT_NE): Likewise.
3605         (ASSERT_STREQ): Likewise.
3606         (ASSERT_PRED1): Likewise.
3607         (ASSERT_STREQ_AT): New macro.
3609 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3611         * selftest.c (selftest::fail_formatted): New function.
3612         (selftest::assert_streq): New function.
3613         * selftest.h (selftests::fail_formatted): New decl.
3614         (selftest::assert_streq): New decl.
3615         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3617 2016-06-13  Jeff Law  <law@redhat.com>
3619         PR tree-optimization/71403
3620         * tree-ssa-threadbackward.c
3621         (convert_and_register_jump_thread_path): No longer accept reference
3622         to path.  Do not pop items off the path anymore.
3623         (fsm_find_control_statement_thread_paths): Do not allow threading
3624         to a deeper loop nest.  Pop the last item off the path here rather
3625         than in convert_and_register_jump_thread_path.
3627 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3628             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
3630         [AArch64] Emit division using the Newton series
3632         * config/aarch64/aarch64-protos.h
3633         (cpu_approx_modes): Add new member "division".
3634         (aarch64_emit_approx_div): Declare new function.
3635         * config/aarch64/aarch64.c
3636         (generic_approx_modes): New member "division".
3637         (exynosm1_approx_modes): Likewise.
3638         (xgene1_approx_modes): Likewise.
3639         (aarch64_emit_approx_div): Define new function.
3640         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3641         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3642         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3643         * doc/invoke.texi (-mlow-precision-div): Describe new option.
3645 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3646             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3648         [AArch64] Emit square root using the Newton series
3650         * config/aarch64/aarch64-protos.h
3651         (aarch64_emit_approx_rsqrt): Replace with new function
3652         "aarch64_emit_approx_sqrt".
3653         (cpu_approx_modes): New member "sqrt".
3654         * config/aarch64/aarch64.c
3655         (generic_approx_modes): New member "sqrt".
3656         (exynosm1_approx_modes): Likewise.
3657         (xgene1_approx_modes): Likewise.
3658         (aarch64_emit_approx_rsqrt): Replace with new function
3659         "aarch64_emit_approx_sqrt".
3660         (aarch64_override_options_after_change_1): Handle new option.
3661         * config/aarch64/aarch64-simd.md
3662         (rsqrt<mode>2): Use new function instead.
3663         (sqrt<mode>2): New expansion and insn definitions.
3664         * config/aarch64/aarch64.md: Likewise.
3665         * config/aarch64/aarch64.opt
3666         (mlow-precision-sqrt): Add new option description.
3667         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3669 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3671         [AArch64] Add more choices for the reciprocal square root approximation
3673         Allow a target to prefer such operation depending on the operation mode.
3675         * config/aarch64/aarch64-protos.h
3676         (AARCH64_APPROX_MODE): New macro.
3677         (AARCH64_APPROX_{NONE,ALL}): Likewise.
3678         (cpu_approx_modes): New structure.
3679         (tune_params): New member "approx_modes".
3680         * config/aarch64/aarch64-tuning-flags.def
3681         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3682         * config/aarch64/aarch64.c
3683         (generic_approx_modes): New core "cpu_approx_modes" structure.
3684         (exynosm1_approx_modes): Likewise.
3685         (xgene1_approx_modes): Likewise.
3686         (generic_tunings): New member "approx_modes".
3687         (cortexa35_tunings): Likewise.
3688         (cortexa53_tunings): Likewise.
3689         (cortexa57_tunings): Likewise.
3690         (cortexa72_tunings): Likewise.
3691         (exynosm1_tunings): Likewise.
3692         (thunderx_tunings): Likewise.
3693         (xgene1_tunings): Likewise.
3694         (use_rsqrt_p): New argument for the mode and use new member from
3695         "tune_params".
3696         (aarch64_builtin_reciprocal): Devise mode from builtin.
3697         (aarch64_optab_supported_p): New argument for the mode.
3698         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3700 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3702         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3703         RS6000_BTM_MODULO flag into the set of flags that are considered
3704         to be part of the common configuration.
3706 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3708         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3709         difference unsigned.
3710         (vec_absdb): New macro for vector absolute difference unsigned
3711         byte.
3712         (vec_absdh): New macro for vector absolute difference unsigned
3713         half-word.
3714         (vec_absdw): New macro for vector absolute difference unsigned word.
3715         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3716         (vadu<mode>3): New insn.
3717         (*p9_vadu<mode>3): New insn.
3718         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3719         definition.
3720         (vaduh): New built-in definition.
3721         (vaduw): New built-in definition.
3722         (vadu): New overloaded built-in definition.
3723         (vadub): New overloaded built-in definition.
3724         (vaduh): New overloaded built-in definition.
3725         (vaduw): New overloaded built-in definition.
3726         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3727         overloaded vector absolute difference unsigned functions.
3728         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3729         the ISA 3.0 vector absolute difference unsigned built-in functions.
3731 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3733         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3734         update shared_lookup_references only once after changing operands.
3736 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
3738         PR middle-end/71373
3739         * tree-nested.c (convert_nonlocal_omp_clauses)
3740         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3742         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3743         * tree.def (CASE_LABEL_EXPR): Likewise.
3745 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3747         PR bootstrap/71481
3748         * input.c (test_builtins): Fix an assertion.
3750 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3752         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3753         (paritysi2): Ditto.
3754         (isinfxf2): Ditto.
3755         (isinf<mode>2): Ditto.
3757 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3759         * ggc-tests.c (test_finalization): Only test need_finalization_p
3760         for GCC_VERSION >= 4003.
3762 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3764         * config/s390/vecintrin.h: Fix file description in comment.
3766 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3768         * config/s390/s390-builtin-types.def: Change builtin type naming
3769         scheme to match builtin-types.def.
3771 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
3773         * fold-const.c (optimize_minmax_comparison): Remove.
3774         (fold_comparison): Remove call to the above.
3775         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3776         New transformations.
3778 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
3780         PR tree-optimization/71416
3781         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3782         multiple entries
3784 2016-06-13  Martin Liska  <mliska@suse.cz>
3786         * predict.c (enum predictor_reason): Prefix enum with REASON_.
3787         (combine_predictions_for_insn): Likewise.
3788         (prune_predictions_for_bb): Likewise.
3789         (combine_predictions_for_bb): Likewise.
3791 2016-06-13  Richard Biener  <rguenther@suse.de>
3793         PR tree-optimization/71505
3794         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3795         assert match comment.
3797 2016-06-13  Marek Polacek  <polacek@redhat.com>
3799         PR middle-end/71476
3800         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3801         gimplify_switch_expr.
3802         (warn_switch_unreachable_r): New function.
3804 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3806         PR target/71379
3807         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3808         one.
3810 2016-06-13  Richard Biener  <rguenther@suse.de>
3812         PR middle-end/64516
3813         * fold-const.c (fold_unary_loc): Preserve alignment when
3814         folding a VIEW_CONVERT_EXPR into a MEM_REF.
3816 2016-06-13  Martin Liska  <mliska@suse.cz>
3818         PR sanitizer/71458
3819         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3820         w/ -fsanitize=bounds.
3822 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3824         * config/i386/i386.c (ix86_init_builtins): Calculate
3825         FLOAT128_FTYPE_CONST_STRING function type only once.
3826         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3827         built-in functions are available for x86-32 and x86-64 targets.
3829 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3831         PR target/71241
3832         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3833         New primitive type.
3834         (FLOAT128_FTYPE_CONST_STRING): New function type.
3835         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3836         [IX86_BUILTIN_NANSQ]: Ditto.
3837         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3838         (ix86_init_builtin_types): Declare const_string_type_node.
3839         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
3840         builtin functions.
3841         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3842         * doc/extend.texi (x86 Built-in Functions): Document
3843         __builtin_nanq and __builtin_nansq.
3845 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
3847         PR target/71061
3848         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
3849         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
3850         length for pop patterns.
3851         (arm_attr_length_push_multi): Update comments.
3852         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
3853         attribute.
3854         (*pop_multiple_with_writeback_and_return): Likewise.
3855         (*pop_multiple_with_return): Likewise.
3857 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
3859         PR middle-end/71310
3860         * fold-const.c (optimize_bit_field_compare): Don't try to use
3861         word_mode unconditionally for reading the bit field, look at
3862         DECL_BIT_FIELD_REPRESENTATIVE instead.
3864 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
3866         PR middle-end/71478
3867         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
3868         vector integer type.
3870 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
3872         PR middle-end/71494
3873         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
3874         without LABEL_DECL, set *handled_ops_p to false instead of true.
3876 2016-06-10  Martin Sebor  <msebor@redhat.com>
3878         PR c/71392
3879         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
3880         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
3881         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
3882         them.
3883         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
3884         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
3885         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
3886         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
3887         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
3888         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
3889         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
3890         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
3892 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3894         * config/arm/arm.h (pool_vector_label,
3895         return_used_this_function): Remove.
3897 2016-06-10  Jeff Law  <law@redhat.com>
3899         PR tree-optimization/71335
3900         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
3901         zero length paths here.
3902         (convert_and_register_jump_thread_path): Remove hacks related to
3903         duplicated blocks in the jump thread path.
3904         (fsm_find_control_statement_thread_paths): Avoid putting the same
3905         block on the thread path twice, but ensure the thread path is
3906         unchanged from the caller's point of view.
3908 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3910         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
3911         * predict.def (PRED_LOOP_BRANCH): Remove.
3913 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
3915         * Makefile.in (OBJS): Add ggc-tests.o.
3916         (GTFILES): Add ggc-tests.c.
3917         * ggc-tests.c: New file.
3918         * selftest-run-tests.c (selftest::run_tests): Call
3919         selftest::ggc_tests_c_tests.
3920         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
3922 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
3924         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
3926 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
3928         PR sanitizer/71480
3929         * varasm.c (place_block_symbol): Adjust alignment for asan protected
3930         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
3932 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
3934         * profile.c: Include cfgloop.h.
3935         (branch_prob): Compute estimated number of iterations.
3936         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
3937         recompute estimate number of iterations from profile.
3939 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3941         PR inline-asm/68843
3942         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
3943         must be grouped on top of stack.  Don't force early clobber
3944         on ordinary reg outputs.
3946 2016-06-10  Richard Biener  <rguenther@suse.de>
3948         * targhooks.c (default_builtin_vectorization_cost): Adjust
3949         vec_construct cost.
3951 2016-06-10  Richard Biener  <rguenther@suse.de>
3953         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
3954         to fold the RHS to a constant if possible.
3956 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3958         PR middle-end/71373
3959         * tree-nested.c (convert_nonlocal_omp_clauses)
3960         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
3961         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
3962         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
3964         * gimplify.c (gimplify_adjust_omp_clauses): Discard
3965         OMP_CLAUSE_TILE.
3966         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
3968         * omp-low.c (scan_sharing_clauses): Don't expect
3969         OMP_CLAUSE__CACHE_.
3971 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
3973         PR tree-optimization/71407
3974         PR tree-optimization/71416
3975         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
3976         BIT_FIELD_REF type.
3978 2016-06-10  Richard Biener  <rguenther@suse.de>
3980         PR middle-end/71477
3981         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
3983 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3985         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
3987 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
3988             Jiong Wang  <jiong.wang@arm.com>
3990         PR rtl-optimization/70751
3991         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
3992         spilled into memory.
3994 2016-06-09  Jonathan Yong  <10walls@gmail.com>
3996         Revert:
3997         2015-09-21  Jonathan Yong  <10walls@gmail.com>
3999         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4000         sysroot/usr/lib/32api for additional win32 libraries,
4001         fixes failing Cygwin bootstrapping.
4003 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
4005         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4006         Delete.
4008 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
4010         PR bootstrap/71471
4011         * pretty-print.c (pp_indent): Specify that %p is printed in a
4012         host-dependent manner.
4013         (test_pp_format): Remove the test for %p.
4015 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
4017         * config/mips/mips.c (mips_output_jump): Fix formatting.
4019 2016-06-09  Richard Biener  <rguenther@suse.de>
4021         PR tree-optimization/71462
4022         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4023         removed blocks.
4025 2016-06-09  Martin Liska  <mliska@suse.cz>
4027         * predict.c (dump_prediction): Add new argument.
4028         (enum predictor_reason): New enum.
4029         (struct predictor_hash): New struct.
4030         (predictor_hash::hash): New function.
4031         (predictor_hash::equal): Likewise.
4032         (not_removed_prediction_p): New function.
4033         (prune_predictions_for_bb): Likewise.
4034         (combine_predictions_for_bb): Prune predictions.
4036 2016-06-09  Martin Liska  <mliska@suse.cz>
4038         * predict.c (filter_predictions): New function.
4039         (remove_predictions_associated_with_edge): Use the filter
4040         function.
4041         (equal_edge_p): New function.
4043 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
4045         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4046         Correct usage of @samp vs @option, add @samp where appropriate.
4047         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4048         Add armv6s-m and document it, as it is no official ARM name.
4050 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4052         * ifcvt.c (struct noce_if_info): Add transform_name field.
4053         (noce_try_move): Set if_info->transform_name to the function name.
4054         (noce_try_ifelse_collapse): Likewise.
4055         (noce_try_store_flag): Likewise.
4056         (noce_try_inverse_constants): Likewise.
4057         (noce_try_store_flag_constants): Likewise.
4058         (noce_try_addcc): Likewise.
4059         (noce_try_store_flag_mask): Likewise.
4060         (noce_try_cmove): Likewise.
4061         (noce_try_cmove_arith): Likewise.
4062         (noce_try_minmax): Likewise.
4063         (noce_try_abs): Likewise.
4064         (noce_try_sign_mask): Likewise.
4065         (noce_try_bitop): Likewise.
4066         (noce_convert_multiple_sets): Likewise.
4067         (noce_process_if_block): Print if_info->transform_name to
4068         dump_file if transformation succeeded.
4070 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4072         * config/arm/cortex-a57.md (cortex_a57_alu):
4073         Handle csel type.
4075 2016-06-08  Martin Sebor  <msebor@redhat.com>
4076             Jakub Jelinek  <jakub@redhat.com>
4078         PR c++/70507
4079         PR c/68120
4080         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4081         BUILT_IN_MUL_OVERFLOW_P): New builtins.
4082         * builtins.c: Include gimple-fold.h.
4083         (fold_builtin_arith_overflow): Handle
4084         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4085         (fold_builtin_3): Likewise.
4086         * doc/extend.texi (Integer Overflow Builtins): Document
4087         __builtin_{add,sub,mul}_overflow_p.
4089 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
4091         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4092         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4094 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
4096         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4097         Rewrite, looking one level down for records and arrays.
4099 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
4101         * pretty-print.c: Include "selftest.h".
4102         (pp_format): Fix comment.
4103         (identifier_to_locale): Likewise.
4104         (selftest::test_basic_printing): New function.
4105         (selftest::assert_pp_format): New function.
4106         (selftest::test_pp_format): New function.
4107         (selftest::pretty_print_c_tests): New function.
4108         * selftest-run-tests.c (selftest::run_tests): Call
4109         selftest::pretty_print_c_tests.
4110         * selftest.h (pretty_print_c_tests): New declaration.
4112 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4114         * invoke.texi (max-loop-headers-insns): Document.
4115         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4116         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4117         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4119 2016-06-08  Richard Biener  <rguenther@suse.de>
4121         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4122         on strided SLP loads and fall back to scalar loads in case
4123         we can't chunk them.
4125 2016-06-08  Richard Biener  <rguenther@suse.de>
4127         PR tree-optimization/71452
4128         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4129         type used for the SSA rewrite has enough precision to cover
4130         the dynamic type of the location.
4132 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
4133             Richard Biener  <rguenther@suse.de>
4135         PR c++/71448
4136         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4137         the same as DECL_P (base0) for indirect_base0.  Use equality_code
4138         in one further place.
4140 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
4142         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4143         to one word if the field is known to overlap other words.
4144         (extract_bit_field_1): Likewise.
4145         (store_split_bit_field): Remove compensating code.
4146         (extract_split_bit_field): Likewise.
4148 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
4150         PR debug/71432
4151         PR ada/71413
4152         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4154 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4156         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4157         VDQF.
4158         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4159         (arch64_addpv4sf): Delete.
4160         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4161         "gen_aarch64_addpv4sf".
4162         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
4163         builtin.
4164         (vpadds_f32): Likewise.
4165         (vpaddq_f32): Likewise.
4166         (vpaddq_f64): Likewise.
4168 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4170         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4171         VALLF.
4172         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4173         to VALLF.  Rename to "fabd<mode>3".
4174         "*fabd_scalar<mode>3): Delete.
4175         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4176         Use builtin.
4177         (vabdd_f64): Likewise.
4178         (vabd_f32): Likewise.
4179         (vabd_f64): Likewise.
4180         (vabdq_f32): Likewise.
4181         (vabdq_f64): Likewise.
4183 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4185         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4186         VALLF.
4187         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4188         "aarch64_rsqrts<mode>".
4189         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4190         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
4191         builtin.
4192         (vrsqrtsd_f64): Likewise.
4193         (vrsqrts_f32): Likewise.
4194         (vrsqrts_f64): Likewise.
4195         (vrsqrtsq_f32): Likewise.
4196         (vrsqrtsq_f64): Likewise.
4198 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4200         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4201         VALLF.
4202         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4203         "aarch64_rsqrte<mode>".
4204         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4205         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
4206         builtin.
4207         (vrsqrted_f64): Likewise.
4208         (vrsqrte_f32): Likewise.
4209         (vrsqrte_f64): Likewise.
4210         (vrsqrteq_f32): Likewise.
4211         (vrsqrteq_f64): Likewise.
4213 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4215         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4216         (ucvtf): Likewise.
4217         (fcvtzs): Likewise.
4218         (fcvtzu): Likewise.
4219         * config/aarch64/aarch64-simd.md
4220         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4221         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4222         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4223         Use builtin.
4224         (vcvt_n_f32_u32): Likewise.
4225         (vcvt_n_s32_f32): Likewise.
4226         (vcvt_n_u32_f32): Likewise.
4227         (vcvtq_n_f32_s32): Likewise.
4228         (vcvtq_n_f32_u32): Likewise.
4229         (vcvtq_n_f64_s64): Likewise.
4230         (vcvtq_n_f64_u64): Likewise.
4231         (vcvtq_n_s32_f32): Likewise.
4232         (vcvtq_n_s64_f64): Likewise.
4233         (vcvtq_n_u32_f32): Likewise.
4234         (vcvtq_n_u64_f64): Likewise.
4235         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4236         (VSDQ_SDI): Likewise.
4237         (fcvt_target): Support V4DI, V4SI and V2SI.
4238         (FCVT_TARGET): Likewise.
4240 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4242         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4243         (TYPES_BINOP_SUS): Likewise.
4244         (aarch64_simd_builtin_data): Update include file name.
4245         (aarch64_builtins): Likewise.
4246         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4247         for conversion between scalar float-point and fixed-point.
4248         (ucvtf): Likewise.
4249         (fcvtzs): Likewise.
4250         (fcvtzu): Likewise.
4251         * config/aarch64/aarch64.md
4252         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4253         pattern for conversion between scalar float to fixed-pointer.
4254         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4255         (UNSPEC_FCVTZS): New UNSPEC enumeration.
4256         (UNSPEC_FCVTZU): Likewise.
4257         (UNSPEC_SCVTF): Likewise.
4258         (UNSPEC_UCVTF): Likewise.
4259         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4260         Use builtin.
4261         (vcvtd_n_f64_u64): Likewise.
4262         (vcvtd_n_s64_f64): Likewise.
4263         (vcvtd_n_u64_f64): Likewise.
4264         (vcvtd_n_f32_s32): Likewise.
4265         (vcvts_n_f32_u32): Likewise.
4266         (vcvtd_n_s32_f32): Likewise.
4267         (vcvts_n_u32_f32): Likewise.
4268         * config/aarch64/iterators.md (fcvt_target): Support integer to float
4269         mapping.
4270         (FCVT_TARGET): Likewise.
4271         (FCVT_FIXED2F): New iterator.
4272         (FCVT_F2FIXED): Likewise.
4273         (fcvt_fixed_insn): New define_int_attr.
4275 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4277         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4278         some statements was removed.
4280 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
4282         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4283         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4284         (vect_can_advance_ivs_p): likewise.
4285         (vect_update_ivs_after_vectorizer): likewise.
4286         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4287         (vect_analyze_scalar_cycles_1): likewise.
4288         (vect_analyze_loop_operations): likewise.
4289         (report_vect_op): likewise.
4290         (vect_is_slp_reduction): likewise.
4291         (vect_is_simple_reduction): likewise.
4292         (get_initial_def_for_induction): likewise.
4293         (vect_transform_loop): likewise.
4294         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4295         (vect_recog_sad_pattern): likewise.
4296         (vect_recog_widen_sum_pattern): likewise.
4297         (vect_recog_widening_pattern): likewise.
4298         (vect_recog_divmod_pattern): likewise.
4299         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4300         (vect_analyze_slp_instance): likewise.
4301         (vect_transform_slp_perm_load): likewise.
4302         (vect_schedule_slp_instance): likewise.
4304 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4306         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4307         (return_prediction): PRED_CONST_RETURN predict return as not taken.
4308         * predict.def (PRED_CONTINUE): Change hitrate 50->67
4309         (PRED_LOOP_BRANCH): Document predictor as broken.
4310         (PRED_LOOP_EXIT): Change hitrate 91->92.
4311         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4312         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4313         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4314         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4315         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4316         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4317         (PRED_CALL): Chane hitrate 71->67.
4318         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4319         (PRED_GOTO): Document as unused right now.
4320         (PRED_CONST_RETURN): Change hitrate 67->69
4321         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4322         (PRED_NULL_RETURN): Change hitrate 91->90.
4323         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4324         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4325         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4327 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
4329         * config/rs6000/altivec.h: Add __builtin_vec_mul.
4330         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4331         special case Altivec builtin.
4332         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4333         VSX_BUILTIN_VEC_MUL (replaced with special case code).
4334         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4335         code for ALTIVEC_BUILTIN_VEC_MUL.
4336         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4337         for __builtin_vec_mul.
4339 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
4341         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4342         -mno-htm.
4344 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
4346         * spellcheck.c (selftest::test_find_closest_string): New function.
4347         (spellcheck_c_tests): Call the above.
4349 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4351         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4353 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
4355         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4356         Yv=Yv,C alternatives.
4358 2016-06-07  Richard Biener  <rguenther@suse.de>
4360         PR c/61564
4361         * common.opt (ffast-math): Make Optimization.
4363 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
4364             Prachi Godbole  <prachi.godbole@imgtec.com>
4366         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4367         `fabs' and `fneg' type attributes.
4368         (p5600_fpu_fabs): Add `fmove' to the comment.
4370 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4372         * gimple.c: Include builtins.h
4373         (gimple_inexpensive_call_p): New function.
4374         * gimple.h (gimple_inexpensive_call_p): Declare.
4375         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4376         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4377         fix formatting.
4379 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
4381         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4382         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4383         warning_at_rich_loc, warning_n, pedwarn, permerror,
4384         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4385         sorry, fatal_error, internal_error, internal_error_no_backtrace):
4386         Use the above.
4388 2016-06-07  Richard Biener  <rguenther@suse.de>
4390         PR tree-optimization/71428
4391         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4392         BIT_FIELD_REF op vs. load.
4394 2016-06-07  Richard Biener  <rguenther@suse.de>
4396         PR middle-end/71423
4397         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4398         for signed ops.
4400 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4402         * config/pa/pa.md (call): Generate indirect long calls to non-local
4403         functions on TARGET_64BIT.
4404         (call_value): Likewise.
4406 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4408         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4409         pattern and subsequent splitters.
4410         (call_val_reg_64bit_post_reload): Likewise.
4412 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4414         PR middle-end/71408
4415         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4416         propagate_op_to_single_use.
4418 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4420         PR middle-end/71281
4421         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4423 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
4425         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4426         (enum x86_dirflag_state): New enum.
4427         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4428         (machine_function): Remove needs_cld.
4429         (ix86_current_function_needs_cld): Remove.
4430         * config/i386/i386.c (ix86_set_func_type): Set
4431         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4432         (ix86_expand_prologue): Do not emit CLD here.
4433         (ix86_dirflag_mode_needed): New function.
4434         (ix86_dirflag_mode_entry): Ditto.
4435         (ix86_mode_needed): Handle X86_DIRFLAG entity.
4436         (ix86_mode_after): Ditto.
4437         (ix86_mode_entry): Ditto.
4438         (ix86_mode_exit): Ditto.
4439         (ix86_emit_mode_set): Ditto.
4440         * config/i386/i386.md (strmov_singleop): Set
4441         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4442         Do not set ix86_current_function_needs_cld.
4443         (rep_mov): Ditto.
4444         (strset_singleop): Ditto.
4445         (rep_stos): Ditto.
4446         (cmpstrnqi_nz_1): Ditto.
4447         (cmpstrnqi_1): Ditto.
4448         (strlenqi_1): Ditto.
4450 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
4452         PR tree-optimization/71259
4453         * tree-vect-slp.c (vect_get_constant_vectors): For
4454         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4455         one for constant op, and use COND_EXPR for non-constant.
4457 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
4459         * Makefile.in (OBJS): Add function-tests.o,
4460         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4461         selftest-run-tests.o.
4462         (OBJS-libcommon): Add selftest.o.
4463         (OBJS-libcommon-target): Add selftest.o.
4464         (all.internal): Add "selftest".
4465         (all.cross): Likewise.
4466         (selftest): New phony target.
4467         (s-selftest): New target.
4468         (selftest-gdb): New phony target.
4469         (COLLECT2_OBJS): Add selftest.o.
4470         * bitmap.c: Include "selftest.h".
4471         (selftest::test_gc_alloc): New function.
4472         (selftest::test_set_range): New function.
4473         (selftest::test_clear_bit_in_middle): New function.
4474         (selftest::test_copying): New function.
4475         (selftest::test_bitmap_single_bit_set_p): New function.
4476         (selftest::bitmap_c_tests): New function.
4477         * common.opt (fself-test): New.
4478         * diagnostic-show-locus.c: Include "selftest.h".
4479         (make_range): New function.
4480         (test_range_contains_point_for_single_point): New function.
4481         (test_range_contains_point_for_single_line): New function.
4482         (test_range_contains_point_for_multiple_lines): New function.
4483         (assert_eq): New function.
4484         (test_get_line_width_without_trailing_whitespace): New function.
4485         (selftest::diagnostic_show_locus_c_tests): New function.
4486         * et-forest.c: Include "selftest.h".
4487         (selftest::test_single_node): New function.
4488         (selftest::test_simple_tree): New function.
4489         (selftest::test_disconnected_nodes): New function.
4490         (selftest::et_forest_c_tests): New function.
4491         * fold-const.c: Include "selftest.h".
4492         (selftest::assert_binop_folds_to_const): New function.
4493         (selftest::assert_binop_folds_to_nonlvalue): New function.
4494         (selftest::test_arithmetic_folding): New function.
4495         (selftest::fold_const_c_tests): New function.
4496         * function-tests.c: New file.
4497         * gimple.c: Include "selftest.h".
4498         Include "gimple-pretty-print.h".
4499         (selftest::verify_gimple_pp): New function.
4500         (selftest::test_assign_single): New function.
4501         (selftest::test_assign_binop): New function.
4502         (selftest::test_nop_stmt): New function.
4503         (selftest::test_return_stmt): New function.
4504         (selftest::test_return_without_value): New function.
4505         (selftest::gimple_c_tests): New function.
4506         * hash-map-tests.c: New file.
4507         * hash-set-tests.c: New file.
4508         * input.c: Include "selftest.h".
4509         (selftest::assert_loceq): New function.
4510         (selftest::test_accessing_ordinary_linemaps): New function.
4511         (selftest::test_unknown_location): New function.
4512         (selftest::test_builtins): New function.
4513         (selftest::test_reading_source_line): New function.
4514         (selftest::input_c_tests): New function.
4515         * rtl-tests.c: New file.
4516         * selftest-run-tests.c: New file.
4517         * selftest.c: New file.
4518         * selftest.h: New file.
4519         * spellcheck.c: Include "selftest.h".
4520         (selftest::levenshtein_distance_unit_test_oneway): New function,
4521         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4522         (selftest::levenshtein_distance_unit_test): Likewise.
4523         (selftest::spellcheck_c_tests): Likewise.
4524         * toplev.c: Include selftest.h.
4525         (toplev::run_self_tests): New.
4526         (toplev::main): Handle -fself-test.
4527         * toplev.h (toplev::run_self_tests): New.
4528         * tree.c: Include "selftest.h".
4529         (selftest::test_integer_constants): New function.
4530         (selftest::test_identifiers): New function.
4531         (selftest::test_labels): New function.
4532         (selftest::tree_c_tests): New function.
4533         * tree-cfg.c: Include "selftest.h".
4534         (selftest::push_fndecl): New function.
4535         (selftest::test_linear_chain): New function.
4536         (selftest::test_diamond): New function.
4537         (selftest::test_fully_connected): New function.
4538         (selftest::tree_cfg_c_tests): New function.
4539         * vec.c: Include "selftest.h".
4540         (selftest::safe_push_range): New function.
4541         (selftest::test_quick_push): New function.
4542         (selftest::test_safe_push): New function.
4543         (selftest::test_truncate): New function.
4544         (selftest::test_safe_grow_cleared): New function.
4545         (selftest::test_pop): New function.
4546         (selftest::test_safe_insert): New function.
4547         (selftest::test_ordered_remove): New function.
4548         (selftest::test_unordered_remove): New function.
4549         (selftest::test_block_remove): New function.
4550         (selftest::reverse_cmp): New function.
4551         (selftest::test_qsort): New function.
4552         (selftest::vec_c_tests): New function.c.
4553         * wide-int.cc: Include selftest.h and wide-int-print.h.
4554         (selftest::from_int <wide_int>): New function.
4555         (selftest::from_int <offset_int>): New function.
4556         (selftest::from_int <widest_int>): New function.
4557         (selftest::assert_deceq): New function.
4558         (selftest::assert_hexeq): New function.
4559         (selftest::test_printing <VALUE_TYPE>): New function template.
4560         (selftest::test_ops <VALUE_TYPE>): New function template.
4561         (selftest::test_comparisons <VALUE_TYPE>): New function template.
4562         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4563         template.
4564         (selftest::wide_int_cc_tests): New function.
4566 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4568         PR middle-end/37780
4569         * ifcvt.c (noce_try_ifelse_collapse): New function.
4570         Declare prototype.
4571         (noce_process_if_block): Call noce_try_ifelse_collapse.
4572         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4573         (simplify_ternary_operation): Use the above to simplify
4574         conditional CLZ/CTZ expressions.
4576 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4578         PR middle-end/37780
4579         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4580         define_insn_and_split.
4582 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4584         PR middle-end/37780
4585         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4587 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4589         PR c/24414
4590         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4591         Implicitly clobber memory for basic asm with non-empty assembler
4592         string.  Use targetm.md_asm_adjust also here.
4593         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4594         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4595         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4596         non-empty assembler string.
4597         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4598         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4599         (decode_asm_operands): Handle basic asm in PARALLEL block.
4600         (extract_insn): Handle basic asm in PARALLEL block.
4601         * doc/extend.texi: Mention new behavior of basic asm.
4602         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4603         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4604         branch_needs_nop_p): Use asm_noperands.
4606 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
4608         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4609         Include the M7 SPARC DFA scheduler.
4610         New attribute v3pipe.
4611         Annotate insns with v3pipe where appropriate.
4612         Define cpu_feature vis4.
4613         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4614         Add (V8QI "8") to vbits.
4615         Add insns {add,sub}v8qi3
4616         Add insns ss{add,sub}v8qi3
4617         Add insns us{add,sub}{v8qi,v4hi}3
4618         Add insns {min,max}{v8qi,v4hi,v2si}3
4619         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4620         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4621         * config/sparc/niagara4.md: Add a comment explaining the
4622         discrepancy between the documented latenty numbers and the
4623         implemented ones.
4624         * config/sparc/niagara7.md: New file.
4625         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4626         supports SPARC5 and VIS 4.0 instructions.
4627         * configure: Regenerate.
4628         * config.in: Likewise.
4629         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4630         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4631         TARGET_CPU_niagara7.
4632         (ASM_CPU64_DEFAULT_SPEC): Likewise.
4633         (CPP_CPU_SPEC): Handle niagara7.
4634         (ASM_CPU_SPEC): Likewise.
4635         * config/sparc/sparc-opts.h (processor_type): Add
4636         PROCESSOR_NIAGARA7.
4637         (mvis4): New option.
4638         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4639         (AS_NIAGARA7_FLAG): Define.
4640         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4641         (CPP_CPU64_DEFAULT_SPEC): Likewise.
4642         (CPP_CPU_SPEC): Handle niagara7.
4643         (ASM_CPU_SPEC): Likewise.
4644         * config/sparc/sparc.c (niagara7_costs): Define.
4645         (sparc_option_override): Handle niagara7 and adjust cache-related
4646         parameters with better values for niagara cpus.  Also support VIS4.
4647         (sparc32_initialize_trampoline): Likewise.
4648         (sparc_use_sched_lookahead): Likewise.
4649         (sparc_issue_rate): Likewise.
4650         (sparc_register_move_cost): Likewise.
4651         (dump_target_flag_bits): Support VIS4.
4652         (sparc_vis_init_builtins): Likewise.
4653         (sparc_builtins): Likewise.
4654         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4655         VIS4 4.0.
4656         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4657         UltraSparc M7.
4658         * config/sparc/sparc.opt (sparc_processor_type): New value
4659         niagara7.
4660         * config/sparc/visintrin.h (__attribute__): Prototypes for the
4661         VIS4 builtins.
4662         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4663         -mvis4.
4664         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4665         VIS4 builtins.
4667 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
4669         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4671 2016-06-06  Richard Biener  <rguenther@suse.de>
4673         PR tree-optimization/71398
4674         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4675         remove edges.
4677 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
4679         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4680         ft32_expand_prolog, ft32_expand_epilogue):
4681         Handle pretend_args.
4682         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4683         * config/ft32/ft32.md: Add pretend_returner.
4685 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
4687         PR target/71389
4688         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4689         Copy op1 RTX to avoid invalid sharing.
4690         (ix86_expand_vector_move_misalign): Ditto.
4692 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
4694         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4695         ATTRIBUTE_UNUSED.
4697 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4699         * predict.c (predicted_by_loop_heuristics_p): New function.
4700         (predict_iv_comparison): Use it.
4701         (predict_loops): Walk from innermost loops; do not predict edges
4702         leaving multiple loops multiple times; implement
4703         PRED_LOOP_ITERATIONS_MAX heuristics.
4704         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4706 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4708         * cfg.c (check_bb_profile): Do not report mismatched profiles when
4709         only edges out of BB are EH edges.
4711 2016-06-04  Martin Sebor  <msebor@redhat.com>
4712             Marcin Baczyński  <marbacz@gmail.com>
4714         PR c/48116
4715         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4716         a void expression in a void function.
4718 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4720         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4721         aux; dump reasons of decisions.
4722         (should_duplicate_loop_header_p): Likewise.
4723         (do_while_loop_p): Likewise.
4724         (ch_base::copy_headers): Dump asi num insns duplicated.
4726 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
4728         PR tree-optimization/71405
4729         * tree-ssa.c (execute_update_addresses_taken): For clobber with
4730         incompatible type, build a new clobber with the right type instead
4731         of building a VIEW_CONVERT_EXPR around it.
4733 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4735         PR tree-optimization/52171
4736         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4737         by_pieces_ninsns instead of move_by_pieces_ninsns.
4739 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4741         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4742         for reg+reg addressing mode.
4744 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4746         * rs6000-c.c (c/c-tree.h): Add #include.
4747         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4748         in C++ when found in the base position of vec_ld or vec_st.
4750 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4752         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4753         use of profile unless profile status is PROFILE_READ.
4754         * profile.c (compute_branch_probabilities): Set profile status
4755         only after reporting predictor hitrates.
4757 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4759         PR target/71276
4760         PR target/71277
4761         * common.opt (ffp-int-builtin-inexact): New option.
4762         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4763         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4764         (ceil@var{m}2): Document dependence on this option.
4765         * ipa-inline-transform.c (inline_call): Handle
4766         flag_fp_int_builtin_inexact.
4767         * ipa-inline.c (can_inline_edge_p): Likewise.
4768         * config/i386/i386.md (rintxf2): Do not test
4769         flag_unsafe_math_optimizations.
4770         (rint<mode>2_frndint): New define_insn.
4771         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4772         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
4773         for 387 instead of extending and truncating.
4774         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4775         !flag_trapping_math instead of flag_unsafe_math_optimizations.
4776         Change to frndint<mode>2_<rounding>.
4777         (frndintxf2_<rounding>_i387): Likewise.  Change to
4778         frndint<mode>2_<rounding>_i387.
4779         (<rounding_insn>xf2): Likewise.
4780         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4781         !flag_trapping_math instead of flag_unsafe_math_optimizations for
4782         x87.  Test TARGET_ROUND || !flag_trapping_math ||
4783         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4784         SSE.  Use ROUND_NO_EXC in constant operand of
4785         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
4786         for 387 instead of extending and truncating.
4788 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4789             Julia Koval  <julia.koval@intel.com>
4791         PR target/66960
4792         PR target/67630
4793         PR target/67634
4794         PR target/67841
4795         PR target/68037
4796         PR target/68618
4797         PR target/68661
4798         PR target/69575
4799         PR target/69596
4800         PR target/69734
4801         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4802         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4803         all registers, except for function return registers if there are
4804         no caller-saved registers.
4805         (ix86_set_func_type): New function.
4806         (ix86_set_current_function): Call ix86_set_func_type to set
4807         no_caller_saved_registers and func_type.  Call reinit_regs if
4808         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
4809         nor x87 instructions in interrupt handler nor function with
4810         no_caller_saved_registers attribute.
4811         (ix86_function_ok_for_sibcall): Return false if there are no
4812         caller-saved registers.
4813         (type_natural_mode): Don't warn ABI change for MMX in interrupt
4814         handler.
4815         (ix86_function_arg_advance): Skip for callee in interrupt handler.
4816         (ix86_function_arg): Return special arguments in interrupt handler.
4817         (ix86_promote_function_mode): Promote pointer to word_mode only
4818         for normal functions.
4819         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4820         interrupt handler.
4821         (ix86_epilogue_uses): New function.
4822         (ix86_hard_regno_scratch_ok): Likewise.
4823         (ix86_save_reg): Preserve all registers in interrupt handler
4824         after reload.  Preserve all registers, except for function return
4825         registers, if there are no caller-saved registers after reload.
4826         (find_drap_reg): Always use callee-saved register if there are
4827         no caller-saved registers.
4828         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4829         for interrupt handler.
4830         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4831         Emit cld instruction if stringops are used in interrupt handler
4832         or interrupt handler isn't a leaf function.
4833         (ix86_expand_epilogue): Generate interrupt return for interrupt
4834         handler and pop the 'ERROR_CODE' off the stack before interrupt
4835         return in exception handler.
4836         (ix86_expand_call): Disallow calling interrupt handler directly.
4837         If there are no caller-saved registers, mark all registers that
4838         are clobbered by the call which returns as clobbered.
4839         (ix86_handle_no_caller_saved_registers_attribute): New function.
4840         (ix86_handle_interrupt_attribute): Likewise.
4841         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
4842         attributes.
4843         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
4844         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
4845         accumulation in interrupt function if stack may be realigned to
4846         avoid DRAP.
4847         (EPILOGUE_USES): New.
4848         (function_type): New enum.
4849         (machine_function): Add func_type and no_caller_saved_registers.
4850         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
4851         (interrupt_return): New pattern.
4852         * doc/extend.texi: Document x86 interrupt and
4853         no_caller_saved_registers attributes.
4855 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
4857         PR tree-optimization/52171
4858         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
4859         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
4860         Look for constant strings.  Move some code to emit_block_cmp_hints
4861         and use it.
4862         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
4863         * defaults.h (COMPARE_MAX_PIECES): New macro.
4864         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
4865         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
4866         (clear_by_pieces_1): Don't declare.  Move definition before use.
4867         (can_do_by_pieces): New static function.
4868         (can_move_by_pieces): Use it.  Return bool.
4869         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
4870         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
4871         (class pieces_addr); New.
4872         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
4873         pieces_addr::adjust, pieces_addr::increment_address,
4874         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
4875         functions for it.
4876         (class op_by_pieces_d): New.
4877         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
4878         functions for it.
4879         (class move_by_pieces_d, class compare_by_pieces_d,
4880         class store_by_pieces_d): New subclasses of op_by_pieces_d.
4881         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
4882         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
4883         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
4884         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
4885         compare_by_pieces_d::finish_mode): New member functions.
4886         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
4887         functions.
4888         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
4889         (emit_block_cmp_hints): New function.
4890         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
4891         use the newly defined classes.
4892         * expr.h (by_pieces_constfn): New typedef.
4893         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
4894         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
4895         (move_by_pieces_ninsns): Don't declare.
4896         (can_move_by_pieces): Change return value to bool.
4897         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
4898         (compare_by_pieces_branch_ratio): New hook.
4899         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
4900         (by_pieces_ninsns): Declare.
4901         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
4902         COMPARE_BY_PIECES.
4903         (default_compare_by_pieces_branch_ratio): New function.
4904         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
4905         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
4906         * doc/tm.texi: Regenerate.
4907         * tree-ssa-strlen.c: Include "builtins.h".
4908         (handle_builtin_memcmp): New static function.
4909         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
4910         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
4912 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4914         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
4915         relevant stmts which are simple and invariant.
4916         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
4917         instead of simple and invariant
4919 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4921         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
4922         (vectorizable_reduction): Check for new relevant state.
4923         (vectorizable_live_operation): vectorize live stmts using
4924         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
4925         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
4926         (vect_stmt_relevant_p): Check for stmts which are only used live.
4927         (process_use): Use of a stmt does not inherit it's live value.
4928         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
4929         (vect_analyze_stmt): Check for new relevant state.
4930         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
4931         outside the loop, but not inside it.
4933 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4935         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
4936         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
4937         (vect_get_vec_def_for_operand): Split out code.
4939 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
4941         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
4943 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
4945         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
4947 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4949         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
4951 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
4953         PR middle-end/71387
4954         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
4955         to noreturn e->callee->decl that has void return type and void
4956         arguments, adjust gimple_call_fntype and remove lhs even if it had
4957         previously addressable type.
4959 2016-06-02  Jeff Law  <law@redhat.com>
4961         PR tree-optimization/71328
4962         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
4963         error when checking for a jump back onto the copied path.
4965 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
4967         * config/microblaze/microblaze.c (get_branch_target): Add return
4968         NULL_RTX for the non-CALL_P case.
4969         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
4970         (insert_wic): Remove unused local "j".
4972 2016-06-02  Martin Liska  <mliska@suse.cz>
4974         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
4976 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
4977             Julia Koval  <julia.koval@intel.com>
4979         * function.c (assign_parm_setup_stack): Force source into a
4980         register if needed.
4981         * target.def (function_incoming_arg): Update documentation to
4982         allow arbitrary address computation based on hard register.
4983         * doc/tm.texi: Regenerated.
4985 2016-06-02  Martin Liska  <mliska@suse.cz>
4987         * predict.c (combine_predictions_for_bb): Fix first match in
4988         cases where a first predictor contains more than one occurence
4989         in list of predictors.  Take the best value in such case.
4991 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4993         PR rtl-optimization/71295
4994         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
4995         offset would go over the size of the inner mode reject it.
4997 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
4999         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5000         x=x,x and v=v,m instead of x=x,m.
5002         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5003         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
5004         alternative to v=rm,C.
5006         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5007         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
5008         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
5009         instead of vex for the last two above mentioned alternatives.
5011 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5013         PR target/70830
5014         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5016 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
5018         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5020 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
5022         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5023         from int to unsigned.
5025 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5027         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5028         alternatives, eliminating preferred register class.  Add support
5029         for the MTVSRDD instruction in ISA 3.0.
5030         (vsx_splat_v4si_internal): Use splat_input_operand instead of
5031         reg_or_indexed_operand.
5032         (vsx_splat_v4sf_internal): Likewise.
5034 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5036         PR target/71186
5037         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5038         for loading up all 0's or all 1's.
5040 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5042         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5044 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
5046         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5047         extension.
5048         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5049         * gcc.c (set_source_date_epoch_envvar): New function, sets
5050         the SOURCE_DATE_EPOCH environment variable to the current time.
5052 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5054         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5055         the factor for live Phi nodes.
5057 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5059         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5060         * tree-parloops.c (parallelize_loops): likewise.
5061         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5062         tree_unswitch_outer_loop): likewise.
5064 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
5066         PR middle-end/71371
5067         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5068         around creation of the temporary.
5070 2016-06-01  Richard Biener  <rguenther@suse.de>
5072         PR tree-optimization/71366
5073         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5074         (unloop_loops): Move removing edges here ...
5075         (try_unroll_loop_completely): ... from here.
5076         (try_peel_loop): ... and here.
5077         (tree_unroll_loops_completely_1): Track parent loops via
5078         bitmap of header BBs.
5079         (tree_unroll_loops_completely): Adjust for that.
5081 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5083         * config/rs6000/altivec.h (vec_slv): New macro.
5084         (vec_srv): New macro.
5085         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5086         (UNSPEC_VSRV): New value.
5087         (vslv): New insn.
5088         (vsrv): New insn.
5089         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5090         (vsrv): New builtin definition.
5091         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5092         define argument types for new builtin.
5093         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5094         new builtin.
5095         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5096         functions.
5098 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
5099             Jocelyn Mayer  <l_indien@magic.fr>
5101         PR target/67310
5102         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5103         detect processor family for signature_CENTAUR_ebx.
5104         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5105         signature_CENTAUR_ebx.
5106         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5107         <default>: Pass x86-64 for has_longmode.
5109 2016-06-01  Nathan Sidwell  <nathan@acm.org>
5111         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5112         undefined weak.
5114 2016-06-01  Richard Biener  <rguenther@suse.de>
5116         PR tree-optimization/71261
5117         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5118         of stmts successfully put in the bool pattern.  Remove
5119         single-use restriction.
5120         (adjust_bool_pattern_cast): Add cast at the use site via the
5121         pattern def sequence.
5122         (adjust_bool_pattern): Remove recursion, maintain a hash-map
5123         of patterned defs.  Use the pattern def seqence instead of
5124         multiple independent patterns.
5125         (sort_after_uid): New qsort compare function.
5126         (adjust_bool_stmts): New function to process stmts in the bool
5127         pattern in IL order.
5128         (vect_recog_bool_pattern): Adjust.
5129         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5130         (ifcvt_walk_pattern_tree): Likewise.
5131         (stmt_is_root_of_bool_pattern): Likewise.
5132         (ifcvt_repair_bool_pattern): Likewise.
5133         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5135 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5137         * loop-unroll.c (decide_unroll_constant_iterations,
5138         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5139         likely upper bounds.
5140         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5142 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
5144         * tree-core.h (enum omp_clause_code): Remove
5145         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
5147 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5149         * config/arm/sync.md (arm_store_exclusive<mode>):
5150         Use 'H' output modifier on operands[2] rather than creating a new
5151         entry in out-of-bounds memory of the operands array.
5152         (arm_store_release_exclusivedi): Likewise.
5154 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5156         * config/arm/arm.c (arm_fusion_enabled_p): New function.
5157         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5158         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5159         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5161 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5163         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5164         into account live statements for mask producers.
5166 2016-06-01  Richard Biener  <rguenther@suse.de>
5168         PR tree-optimization/71311
5169         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5170         restrict to non-INTEGER_CST @0.
5172 2016-06-01  Richard Biener  <rguenther@suse.de>
5174         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5175         (relational patterns): Use :c to avoid pattern duplications.
5177 2016-06-01  Richard Biener  <rguenther@suse.de>
5179         * genmatch.c (comparison_code_p): New predicate.
5180         (swap_tree_comparison): New function.
5181         (commutate): Add for_vec parameter to append new for entries.
5182         Support commutating relational operators by swapping it alongside
5183         operands.
5184         (lower_commutative): Adjust.
5185         (dt_simplify::gen): Do not pass artificial operators to gen
5186         functions.
5187         (decision_tree::gen): Do not add artificial operators as parameters.
5188         (parser::parse_expr): Verify operator commutativity when :c is
5189         applied.  Allow :C to override this.
5190         * match.pd: Adjust patterns to use :C instead of :c where required.
5192 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
5194         PR tree-optimization/71077
5195         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5196         the combining step, use boolean_false_node and boolean_true_node
5197         as the designated false/true return values.
5199 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5201         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5202         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5203         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5204         PRED_LOOP_EXIT.
5206 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5208         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5209         of flags impliying the register renaming.
5210         * toplev.c (process_options): Do not imply flag_rename_registers with
5211         loop peeling.
5213 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5215         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5216         default implementation.
5218 2016-05-31  Nathan Sidwell  <nathan@acm.org>
5220         * dwarf2out.c (cur_line_info_table): Add GTY marker.
5222 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5224         * config/sh/constraints.md (b): Remove constraint.
5225         * config/sh/predicates.md (arith_reg_operand): Remove
5226         TARGET_REGISTER_P.
5227         * config/sh/sh-modes.def (PDI): Remove.
5228         * config/sh/sh.c (sh_target_reg_class,
5229         sh_optimize_target_register_callee_saved): Remove functions.
5230         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5231         (sh_expand_epilogue): Update comment.
5232         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5233         sh_secondary_reload): Remove TARGET_REGS related code.
5234         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5235         TARGET_REGISTER_P): Remove macros.
5236         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5237         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5238         TR1_REG, TR2_REG): Remove constants.
5239         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5241 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5243         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5244         define_expand patterns.
5245         (adddi3_compact): Rename to adddi3.
5246         (subdi3_compact): Rename to subdi3.
5247         (*negdi2): Rename to negdi2.
5248         (*abs<mode>2): Rename to abs<mode>2.
5250 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5252         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5253         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5254         (atomic_sub_fetchsi): ... this new pattern.
5255         (mvtc): Add CC_REG clobber.
5257 2016-05-31  Marek Polacek  <polacek@redhat.com>
5259         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5261 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5263         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5264         aarch64_fusion_enabled_p to check for fusion capabilities.
5266 2016-05-31  Richard Biener  <rguenther@suse.de>
5268         PR tree-optimization/71352
5269         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5270         minus one and a negate.
5272 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5274         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5275         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5276         Delete prototype.
5277         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5278         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5279         Remove use of aarch64_simd_attr_length_move, set length attribute
5280         directly.
5281         (*aarch64_be_movoi): Likewise.
5282         (*aarch64_be_movci): Likewise.
5283         (*aarch64_be_movxi): Likewise.
5285 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5287         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5288         It no longer does that.
5289         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5291 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
5293         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5294         attribute __unused__.
5296 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5298         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5299         * config/arm/arm.c (arm_arch_thumb1): Define.
5300         (arm_option_override): Initialize arm_arch_thumb1.
5301         * config/arm/arm.h (arm_arch_thumb1): Declare.
5302         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5303         support Thumb-1 ISA.
5305 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5307         PR target/71346
5308         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5309         `Yv' for scalar operand.
5311 2016-05-31  Tom de Vries  <tom@codesourcery.com>
5313         PR tree-optimization/69068
5314         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5315         phis with more than two args.
5317 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
5319         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5320         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5321         target.
5323 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
5325         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5326         tune_64.
5327         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5328         support on SPARC.
5329         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5330         cpu_32, cpu_64, tune_32 and tune_64.
5331         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5333 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
5335         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5337 2016-05-30  Andi Kleen  <ak@linux.intel.com>
5339         * auto-profile.c (read_profile): Replace asserts with errors
5340         when file does not exist.
5341         * gcov-io.c (gcov_read_words): Dito.
5343 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5345         * tree-cfg.c (print_loop): Print likely upper bounds.
5347 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5349         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5350         * opts.c (default_options): Enable peel loops at -O3.
5351         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5352         (try_peel_loop): Do not re-peel already peeled loops;
5353         use likely upper bounds; fix profile updating.
5354         (pass_complete_unroll::execute): Initialize peeled_loops.
5356 2016-05-30  Martin Liska  <mliska@suse.cz>
5358         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5359         computed costs by frequency of BB they belong to.
5360         (get_scaled_computation_cost_at): New function.
5362 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
5363             Marc Glisse  <marc.glisse@inria.fr>
5365         PR tree-optimization/71289
5366         * match.pd (-1 / B < A, A > -1 / B): New transformations.
5368 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5370         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5372 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5374         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5375         for peeled copies; avoid underflow when updating estimates; correctly
5376         scale loop profile.
5378 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5380         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5381         r236875. Corrected oe3 to oe2 as obvious.
5383 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5385         PR middle-end/71269
5386         PR middle-end/71252
5387         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5388         that inserted stmt will not dominate stmts that defines its operand.
5389         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5390         (rewrite_expr_tree_parallel): Likewise.
5392 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5394         PR middle-end/71252
5395         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5396         all fields including stmt_to_insert are swapped.
5398 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5400         * predict.h (force_edge_cold): Declare.
5401         * predict.c (force_edge_cold): New function.
5402         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5403         updating.
5404         (canonicalize_loop_induction_variables): Fix formating.
5406 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5408         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5409         (visium_expand_copysign): Use gen_int_mode directly.
5410         (visium_compute_frame_size): Minor tweaks.
5412 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5414         * tree-vect-loop.c (vect_analyze_loop_2): Use
5415         likely_max_stmt_executions_int.
5417 2016-05-30  Tom de Vries  <tom@codesourcery.com>
5419         PR tree-optimization/69067
5420         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5422 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
5424         PR target/71245
5425         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5426         New peepholes to remove unneeded fild/fistp pairs.
5427         (define_peephole2 atomic_loaddi_fpu): Ditto.
5429 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5431         * predict.c (maybe_hot_frequency_p): Avoid division.
5433 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
5435         * doc/install.texi: Use https for shop.fsf.org.
5437 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5439         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5440         likely_max_stmt_executions_int.
5442 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5444         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5445         likely_max_stmt_executions_int.
5447 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5449         * profile.c (compute_branch_probabilities): Do not report hitrates
5450         here.
5451         (branch_prob): Report hitrates here.
5452         * predict.c (gimple_predict_edge): Do not assert profile status;
5453         fix formatting issues.
5455 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5457         * predict.c (edge_predicted_by_p): New function.
5458         (predict_paths_for_bb): Do not put multiple predictions of the same type
5459         on one edge.
5461 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5463         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5464         commit.
5466 2016-05-28  Alan Modra  <amodra@gmail.com>
5468         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5470 2016-05-28  Alan Modra  <amodra@gmail.com>
5472         PR rtl-optimization/71275
5473         * ira.c (ira): Free dominance info.
5475 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
5477         * doc/sourcebuild.texi: New address for upstream Go repository.
5479 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5481         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5482         (TARGET_ARM_V7M): Likewise.
5484 2016-05-26  Jeff Law  <law@redhat.com>
5486         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5487         (thread_across_edge): Remove calls to find_jump_threads_backwards.
5488         * passes.def: Add jump threading passes before DOM/VRP.
5489         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5490         argument to a basic block from an edge.  Remove tests which are
5491         handled elsewhere.
5492         (pass_data_thread_jumps, class pass_thread_jumps): New.
5493         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5494         (make_pass_thread_jumps): Likewise.
5495         * tree-pass.h (make_pass_thread_jumps): Declare.
5497 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5499         * config/visium/visium-protos.h (split_double_move): Rename into...
5500         (visium_split_double_move): ...this.
5501         (visium_split_double_add): Declare.
5502         * config/visium/visium.c (split_double_move): Rename into...
5503         (visium_split_double_move): ...this.
5504         (visium_split_double_add): New function.
5505         (visium_expand_copysign): Renumber operands for consistency.
5506         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5507         (DFmode move splitter): Likewise.
5508         (*addi3_insn): Split by means of visium_split_double_add.
5509         (*adddi3_insn_flags): Delete.
5510         (*plus_plus_sltu<subst_arith>): New insn.
5511         (*subdi3_insn): Split by means of visium_split_double_add.
5512         (subdi3_insn_flags): Delete.
5513         (*minus_minus_sltu<subst_arith>): New insn.
5514         (*negdi2_insn): Split by means of visium_split_double_add.
5515         (*negdi2_insn_flags): Delete.
5517 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
5519         * configure.ac: Treat a --with-headers option without argument
5520         the same as the default (i.e. consult sys-include directory).
5521         * configure: Regenerate.
5523 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5525         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5526         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5527         prototype.
5528         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5529         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5531 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
5533         PR target/63596
5534         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5535         tree-stdarg analysis results.
5536         (aarch64_setup_incoming_varargs): Likewise.
5538 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
5540         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5541         va_list_gpr_counter_field and va_list_fpr_counter_field.
5543 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
5545         PR67609
5546         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5547         * config/aarch64/aarch64.c
5548         (aarch64_cannot_change_mode_class): Remove function.
5549         * config/aarch64/aarch64-protos.h
5550         (aarch64_cannot_change_mode_class): Remove.
5552 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5554         * cfgloop.c (record_niter_bound): Record likely upper bounds.
5555         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5556         get_likely_max_loop_iterations_int): New.
5557         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5558         any_likely_upper_bound.
5559         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5560         Declare.
5561         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5562         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5563         upper bound.
5564         (unroll_loop_constant_iterations): Likewise.
5565         (unroll_loop_runtime_iterations): Likewise.
5566         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5567         * lto-streamer-out.c (output_cfg): Likewise.
5568         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5569         bounds.
5570         (canonicalize_loop_induction_variables): Dump likely upper bounds.
5571         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5572         (likely_max_loop_iterations): New.
5573         (likely_max_loop_iterations_int): New.
5574         (likely_max_stmt_executions): New.
5575         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5576         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5577         likely_max_stmt_executions): Declare.
5579 2016-05-27  Marek Polacek  <polacek@redhat.com>
5581         PR middle-end/71308
5582         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5584 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5586         * config/s390/s390.md (2x risbg splitters): Use
5587         reg_overlap_mentioned_p instead of rtx_equal_p.
5589 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5591         * combine.c (make_compound_operation): Take known zero bits into
5592         account when checking for possible zero_extend.
5594 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5596         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5597         Use const_int_operand for operand 2 predicate.  Simplify expand code
5598         as a result.
5600 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5602         PR middle-end/71279
5603         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5604         into comparison.
5606 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5608         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5609         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5610         that returns CC_SESWPmode and CC_ZESWPmode.
5611         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5612         and CC_SESWPmode.
5613         (aarch64_rtx_costs): Likewise.
5615 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5617         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5618         for ISA 3.0 min/max support.
5619         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5620         conditional move support.
5621         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5622         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5623         available.
5624         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5625         conditional moves where the comparison type is different from move
5626         type.
5627         (fp_minmax): New code iterator for smin/smax.
5628         (minmax): New code attributes for min/max.
5629         (SMINMAX): Likewise.
5630         (smax<mode>3): Combine min, max insns into one insn using the
5631         fp_minmax code iterator.  Add support for ISA 3.0 min/max
5632         instructions that don't need -ffast-math.
5633         (s<minmax><mode>3): Likewise.
5634         (smax<mode>3_vsx): Likewise.
5635         (smin<mode>3): Likewise.
5636         (s<minmax><mode>3_vsx): Likewise.
5637         (smin<mode>3_vsx): Likewise.
5638         (pre-VSX min/max splitters): Likewise.
5639         (s<minmax><mode>3_fpr): Likewise.
5640         (movsfcc): Rewrite floating point conditional moves to combine
5641         SFmode/DFmode into a single insn.
5642         (mov<mode>cc): Likewise.
5643         (movdfcc): Likewise.
5644         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5645         SFDF2 iterators to handle all combinations.
5646         (fseldfsf4): Likewise.
5647         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5648         (fseldfdf4): Likewise.
5649         (fselsfdf4): Likewise.
5650         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5651         comparison instructions that set a 0/-1 mask, and use it for
5652         floating point conditional move via XXSEL.
5653         (fpmask<mode>): Likewise.
5654         (xxsel<mode>): Likewise.
5655         * config/rs6000/predicates.md (min_max_operator): Delete, no
5656         longer used.
5657         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5658         instructions that generate a 0/-1 mask for use with XXSEL.
5659         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5660         say whether floating point min/max is available, either through
5661         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5662         (TARGET_MINMAX_DF): Likewise.
5664 2016-05-27  Alan Modra  <amodra@gmail.com>
5666         PR rtl-optimization/71275
5667         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5668         for update_equiv_regs and combine_and_move_insns.
5670 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
5672         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5673         if_then_else or cond RTXes to calculate attribute value.
5674         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5675         <attr "length_immediate>: Ditto.
5676         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5677         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5678         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5679         <attr "type">: Ditto.
5680         <attr "prefix_data16">: Ditto.
5681         <attr "prefix_extra">: Ditto.
5682         <attr "length_immediate">: Ditto.
5683         <attr "prefix">: Ditto.
5684         (vec_set<mode>_0) <attr "isa">: Ditto.
5685         <attr "prefix_extra">: Ditto.
5686         <attr "length_immediate">: Ditto.
5687         <attr "prefix">: Ditto.
5688         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5689         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5690         (sse2_storelpd) <attr "prefix_data16">: Ditto.
5691         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5692         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5693         <attr "length_immediate">: Ditto.
5694         <attr "prefix">: Ditto.
5695         (sse2_movsd) <attr "length_immediate">: Ditto.
5696         <attr "prefix">: Ditto.
5697         (vec_concatv2df)  <attr "isa">: Ditto.
5698         <attr "prefix">: Ditto.
5699         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5700         (*vec_extractv2di_1) <attr "isa">: Ditto.
5701         <attr "type">: Ditto.
5702         <attr "length_immediate">: Ditto.
5703         <attr "prefix_rex">: Ditto.
5704         <attr "prefix_extra">: Ditto.
5705         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5706         <attr "prefix_extra">: Ditto.
5707         <attr "length_immediate">: Ditto.
5708         (vec_concatv2di) <attr "isa">: Ditto.
5709         <attr "prefix_extra">: Ditto.
5710         <attr "length_immediate">: Ditto.
5711         <attr "prefix">: Ditto.
5713 2016-05-26  Martin Liska  <mliska@suse.cz>
5715         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5716         function.
5717         (operator+): Likewise.
5718         (operator-): Likewise.
5719         (comp_cost::operator+=): Likewise.
5720         (comp_cost::operator-=): Likewise.
5721         (comp_cost::operator/=): Likewise.
5722         (comp_cost::operator*=): Likewise.
5723         (operator<): Likewise.
5724         (operator==): Likewise.
5725         (operator<=): Likewise.
5726         (new_cost): Remove.
5727         (infinite_cost_p): Likewise.
5728         (add_costs): Likewise.
5729         (sub_costs): Likewise.
5730         (compare_costs): Likewise.
5731         (set_group_iv_cost): Use the newly introduced functions.
5732         (get_address_cost): Likewise.
5733         (get_shiftadd_cost): Likewise.
5734         (force_expr_to_var_cost): Likewise.
5735         (split_address_cost): Likewise.
5736         (ptr_difference_cost): Likewise.
5737         (difference_cost): Likewise.
5738         (get_computation_cost_at): Likewise.
5739         (determine_group_iv_cost_generic): Likewise.
5740         (determine_group_iv_cost_address): Likewise.
5741         (determine_group_iv_cost_cond): Likewise.
5742         (autoinc_possible_for_pair): Likewise.
5743         (determine_group_iv_costs): Likewise.
5744         (cheaper_cost_pair): Likewise.
5745         (iv_ca_recount_cost): Likewise.
5746         (iv_ca_set_no_cp): Likewise.
5747         (iv_ca_set_cp): Likewise.
5748         (iv_ca_cost): Likewise.
5749         (iv_ca_new): Likewise.
5750         (iv_ca_dump): Likewise.
5751         (iv_ca_narrow): Likewise.
5752         (iv_ca_prune): Likewise.
5753         (iv_ca_replace): Likewise.
5754         (try_add_cand_for): Likewise.
5755         (try_improve_iv_set): Likewise.
5756         (find_optimal_iv_set): Likewise.
5758 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5760         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5761         that internal functions will clobber all caller-saved registers.
5763 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5765         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5766         Return a better case_values_threshold when optimizing.
5768 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5770         * config/aarch64/aarch64-simd.md (aarch64_combinez):
5771         Add ? to integer variant.
5772         (aarch64_combinez_be): Likewise.
5774 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5776         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5777         instead of x constraint.
5778         (vcvtps2ph256<mask_name>): Likewise.
5780         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5781         alternative.  Formatting fix.
5783         * config/i386/sse.md
5784         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5785         to ...
5786         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5787         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
5788         maybe_evex prefix instead of vex.
5789         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
5790         EXT_REX_SSE_REG_P (op0) case in the splitter.
5792 2016-05-25  Jeff Law  <law@redhat.com>
5794         PR tree-optimization/71272
5795         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5796         Update comments.  Add test for empty path.
5798 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5800         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5801         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5802         special case builtin.
5803         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5804         code for ALTIVEC_BUILTIN_VEC_CMPNE.
5805         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5806         for __builtin_vec_cmpne.
5808 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5810         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5811         redundant test and bail out if the type of the new operand is not
5812         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5814 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5816         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5817         (x_ix86_target_flags_explicit): Remove.
5818         * config/i386/i386.c (ix86_function_specific_save): Do not copy
5819         x_ix86_target_flags_explicit.
5820         (ix86_function_specific_restore): Ditto.
5822 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5823             H.J. Lu  <hongjiu.lu@intel.com>
5825         PR target/70738
5826         * common/config/i386/i386-common.c
5827         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5828         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5829         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5830         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5831         (-mgeneral-regs-only): Add new option.
5832         * config/i386/i386.c (ix86_option_override_internal): Don't enable
5833         x87 instructions if only general registers are allowed.
5834         (ix86_target_string): Add ix86_flags argument. Handle additional
5835         flags options through ix86_flags argument.  Update all callers.
5836         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5838 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5840         PR rtl-optimization/66940
5841         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
5842         decrementing desired_val will not overflow before performing these
5843         operations.
5845 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
5847         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
5848         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
5849         * config/i386/i386.c (enum ix86_builtins): Add
5850         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
5851         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
5852         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
5853         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
5854         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
5855         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
5856         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
5857         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
5858         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
5859         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
5860         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
5861         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
5862         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
5863         __builtin_ia32_cvtps2dq512_mask.
5864         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
5865         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
5866         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
5867         * config/i386/sse.md
5868         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
5869         Rename to ...
5870         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
5871         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
5872         to ...
5873         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
5874         (avx512f_vec_pack_sfix_v8df): New define_expand.
5875         (avx512f_roundpd512): Rename to ...
5876         (avx512f_round<castmode>512): ... this.  Change iterator.
5877         (avx512f_roundps512_sfix): New define_expand.
5878         (round<mode>2_sfix): Change iterator.
5880 2016-05-25  Nick Clifton  <nickc@redhat.com>
5882         * config/msp430/msp430.c (msp430_attr): Produce an error if a
5883         static interrupt handler is detected.
5884         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
5885         default linker script.
5886         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
5887         the low part of a symbolic pointer.
5889 2016-05-25  Richard Biener  <rguenther@suse.de>
5891         PR tree-optimization/71261
5892         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
5893         interesting stmt instead of immediate uses when looking
5894         for the use operand to replace.
5896 2016-05-25  Martin Liska  <mliska@suse.cz>
5898         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
5900 2016-05-25  Richard Biener  <rguenther@suse.de>
5902         PR tree-optimization/71264
5903         * tree-vect-stmts.c (vect_init_vector): Properly deal with
5904         vector type val.
5906 2016-05-25  Martin Liska  <mliska@suse.cz>
5908         PR tree-optimization/71239
5909         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
5910         if DECL_SIZE is NULL.
5912 2016-05-25  Richard Biener  <rguenther@suse.de>
5914         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
5915         * tree-if-conv.c (pass_data_if_conversion): Use it.
5917 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5919         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
5920         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
5921         * varpool.c (varpool_node::get_availability): Likewise.
5923 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5925         * config/rs6000/altivec.md (VNEG iterator): New iterator for
5926         VNEGW/VNEGD instructions.
5927         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
5928         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
5929         support for ISA 3.0 VNEGW/VNEGD instructions.
5931 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5933         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
5934         pointers inside OACC_DATA regions.
5935         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
5936         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
5937         (gimplify_adjust_omp_clauses): Fix typo in comment.
5939 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5941         * config/rs6000/altivec.md (VParity): New mode iterator for vector
5942         parity built-in functions.
5943         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
5944         zeros.
5945         (p9v_parity<mode>2): Likewise.
5946         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
5947         parity.
5948         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
5949         (parity<mode>2): ISA 3.0 expander for vector parity.
5950         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
5951         power9 built-ins.
5952         (BU_P9_64BIT_MISC_0): Likewise.
5953         (BU_P9_MISC_0): Likewise.
5954         (BU_P9V_AV_1): Likewise.
5955         (BU_P9V_AV_2): Likewise.
5956         (BU_P9V_AV_3): Likewise.
5957         (BU_P9V_AV_P): Likewise.
5958         (BU_P9V_VSX_1): Likewise.
5959         (BU_P9V_OVERLOAD_1): Likewise.
5960         (BU_P9V_OVERLOAD_2): Likewise.
5961         (BU_P9V_OVERLOAD_3): Likewise.
5962         (VCTZB): Add vector count trailing zeros support.
5963         (VCTZH): Likewise.
5964         (VCTZW): Likewise.
5965         (VCTZD): Likewise.
5966         (VPRTYBD): Add vector parity support.
5967         (VPRTYBQ): Likewise.
5968         (VPRTYBW): Likewise.
5969         (VCTZ): Add overloaded vector count trailing zeros support.
5970         (VPRTYB): Add overloaded vector parity support.
5971         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5972         overloaded vector count trailing zeros and parity instructions.
5973         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
5974         vector parity support.
5975         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
5976         trailing zeros support.
5977         (vec_cntlz): Likewise.
5978         (vec_vctzb): Likewise.
5979         (vec_vctzd): Likewise.
5980         (vec_vctzh): Likewise.
5981         (vec_vctzw): Likewise.
5982         (vec_vprtyb): Add ISA 3.0 vector parity support.
5983         (vec_vprtybd): Likewise.
5984         (vec_vprtybw): Likewise.
5985         (vec_vprtybq): Likewise.
5986         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5987         the ISA 3.0 vector count trailing zeros and vector parity built-in
5988         functions.
5990 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
5992         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
5993         when there is stmt_to_insert.
5995 2016-05-24  Martin Sebor  <msebor@redhat.com>
5997         PR c++/71147
5998         * tree.h (complete_or_array_type_p): New inline function.
6000 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6002         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6003         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6004         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6006         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6007         Limit 1st alternative to noavx isa, split 2nd alternative into one
6008         noavx and one avx alternative, use *x and Bm in the former and
6009         x and m in the latter.
6011         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6012         of sse4 for the first alternative, drop %v from the template
6013         and d operand modifier.  Split second alternative into one sse4_noavx
6014         and one avx alternative, use *x instead of *v in the former and v
6015         instead of *v in the latter.
6016         (*sse4_1_extractps): Use noavx isa instead of * for the first
6017         alternative, drop %v from the template.  Split second alternative into
6018         one noavx and one avx alternative, use *x instead of *v in the
6019         former and v instead of *v in the latter.
6020         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6021         with noavx and the last one with avx.
6022         (sse4_1_phminposuw): Guard first alternative with noavx isa,
6023         split the second one into one noavx and one avx alternative,
6024         use *x and Bm in the former and x and m in the latter one.
6025         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6026         alternatives.
6028         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6029         first two alternatives to noavx, use *x instead of *v in the second
6030         one, add avx alternative without *.
6031         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6032         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6033         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6035 2016-05-24  Jeff Law  <law@redhat.com>
6037         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6038         New function, extracted from...
6039         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
6040         Allow simple copies and constant initializations in the SSA chain.
6042 2016-05-24  Marek Polacek  <polacek@redhat.com>
6044         PR c/71249
6045         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6046         scope.
6048 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6050         PR c++/71257
6051         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6052         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6053         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
6054         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6055         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6057 2016-05-24  Richard Biener  <rguenther@suse.de>
6059         PR tree-optimization/71240
6060         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6061         has integral type.
6063 2016-05-24  Richard Biener  <rguenther@suse.de>
6065         PR tree-optimization/71230
6066         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6068 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6070         * tree-vectorizer.h (vectorizable_comparison): Delete.
6071         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6072         PURE_SLP_STMT check.
6073         * tree-vect-stmts.c (vectorizable_call): Likewise.
6074         (vectorizable_simd_clone_call): Likewise.
6075         (vectorizable_conversion): Likewise.
6076         (vectorizable_assignment): Likewise.
6077         (vectorizable_shift): Likewise.
6078         (vectorizable_operation): Likewise.
6079         (vectorizable_load): Likewise.
6080         (vectorizable_condition): Likewise.
6081         (vectorizable_store): Likewise.  Assert that we don't have
6082         hybrid SLP.
6083         (vectorizable_comparison): Make static.  Remove redundant
6084         PURE_SLP_STMT check.
6085         (vect_transform_stmt): Assert that we always have an slp_node
6086         if PURE_SLP_STMT.
6088 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6090         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
6091         operands[2] against 1 with comparison against CONST1_RTX.
6092         (<shift>di3_neon): Likewise.
6093         * config/arm/predicates.md (const0_operand): Replace with comparison
6094         against CONST0_RTX.
6096 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6098         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6099         operands[2] against 1 with comparison against CONST1_RTX.
6100         (ashrdi3): Likewise.
6101         (lshrdi3): Likewise.
6102         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6103         UINTVAL.
6104         (ashrsi3): Likewise.
6105         (lshrsi3): Likewise.
6106         (rotrsi3): Likewise.
6107         (define_split above *compareqi_eq0): Likewise.
6108         (define_split above "prologue"): Likewise.
6109         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6110         * config/arm/predicates.md (shift_operator): Likewise.
6111         (shift_nomul_operator): Likewise.
6112         (sat_shift_operator): Likewise.
6113         (thumb1_cmp_operand): Likewise.
6114         (const_neon_scalar_shift_amount_operand): Replace manual range
6115         check with IN_RANGE.
6116         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6117         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6119 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6121         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6122         with HOST_WIDE_INT_1.
6123         (insv): Likewise.
6124         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6125         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6126         (arm_canonicalize_comparison): Likewise.
6127         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6128         HOST_WIDE_INT_1.
6129         (thumb1_size_rtx_costs): Likewise.
6130         (vfp_const_double_index): Replace cast of 1 to unsigned
6131         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6132         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6133         HOST_WIDE_INT_1.
6134         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6135         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6136         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6137         HOST_WIDE_INT with HOST_WIDE_INT_1.
6139 2016-05-24  Marek Polacek  <polacek@redhat.com>
6141         * tree-cfg.h (should_remove_lhs_p): New predicate.
6142         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6143         * gimplify.c (gimplify_modify_expr): Likewise.
6144         * tree-cfg.c (verify_gimple_call): Likewise.
6145         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6146         * gimple-fold.c: Include "tree-cfg.h".
6147         (gimple_fold_call): Use should_remove_lhs_p.
6149 2016-05-24  Richard Biener  <rguenther@suse.de>
6151         PR tree-optimization/71253
6152         * cfganal.h (control_dependences): Make robust against edge
6153         and BB removal.
6154         (control_dependences::control_dependences): Remove edge_list argument.
6155         (control_dependences::get_edge): Remove.
6156         (control_dependences::get_edge_src): Add.
6157         (control_dependences::get_edge_dest): Likewise.
6158         (control_dependences::m_el): Make a vector of edge src/dest index.
6159         * cfganal.c (control_dependences::find_control_dependence): Adjust.
6160         (control_dependences::control_dependences): Likewise.
6161         (control_dependences::~control_dependence): Likewise.
6162         (control_dependences::get_edge): Remove.
6163         (control_dependences::get_edge_src): Add.
6164         (control_dependences::get_edge_dest): Likewise.
6165         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6166         get_edge_src.
6167         (perform_tree_ssa_dce): Adjust.
6168         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6169         get_edge_src.
6170         (pass_loop_distribution::execute): Adjust.  Do loop destroying
6171         conditional on changed.
6173 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6175         PR target/69857
6176         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6177         return.  Reindent transformation comment and mention the ARM state
6178         behavior.
6180 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6182         PR middle-end/71252
6183         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6184         after build_and_add_sum creates new use stmt.
6186 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6188         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6189         load_lanes/grouped_load classification comes first.  Don't check
6190         whether the vectorization factor is a multiple of the group size
6191         for load_lanes.
6193 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6195         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6196         GROUP_GAP for single-element interleaving.
6197         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6198         variable.
6200 2016-05-24  Richard Biener  <rguenther@suse.de>
6202         PR middle-end/70434
6203         PR c/69504
6204         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6205         bases which are accessed with non-invariant indices.
6206         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6207         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6209 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6211         PR middle-end/71170
6212         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6213         (add_to_ops_vec): Add stmt_to_insert.
6214         (add_repeat_to_ops_vec): Init stmt_to_insert.
6215         (insert_stmt_before_use): New.
6216         (transform_add_to_multiply): Remove mult_stmt insertion and add it
6217         to ops vector.
6218         (get_ops): Init stmt_to_insert.
6219         (maybe_optimize_range_tests): Likewise.
6220         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6221         (rewrite_expr_tree_parallel): Likewise.
6222         (reassociate_bb): Likewise.
6224 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6226         PR target/71201
6227         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6228         ISA 3.0 xxperm fusion alternative.
6229         (altivec_vperm_v8hiv16qi): Likewise.
6230         (altivec_vperm_<mode>_uns_internal): Likewise.
6231         (vperm_v8hiv4si): Likewise.
6232         (vperm_v16qiv8hi): Likewise.
6234 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6235             Kelvin Nilsen  <kelvin@gcc.gnu.org>
6237         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6238         vpermr/xxpermr on ISA 3.0.
6239         (altivec_expand_vec_perm_le): Likewise.
6240         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6241         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6242         ISA 3.0.
6244 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
6246         * config/i386/i386.h (IS_STACK_MODE): Enable for
6247         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
6248         SSE_FLOAT_MODE_P macros.
6249         * config/i386/i386.c (ix86_preferred_reload_class): Use
6250         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6251         Cleanup regclass processing for CONST_DOUBLE_P.
6252         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6253         (ix86_rtx_costs): Remove redundant TARGET_80387 check
6254         with IS_STACK_MODE macro.
6255         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6256         with TARGET_SSE2.
6257         (*movdf_internal): Use IS_STACK_MODE macro.
6258         (*movsf_internal): Ditto.
6260 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
6262         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6263         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6265 2016-05-23  Jeff Law  <law@redhat.com>
6267         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6268         extracted from ...
6269         (fsm_find_control_statement_thread_paths): Call it.
6271 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6273         PR ipa/71234
6274         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6275         from_global_constant if t is not NULL.
6277 2016-05-23  Marek Polacek  <polacek@redhat.com>
6279         PR c/49859
6280         * common.opt (Wswitch-unreachable): New option.
6281         * doc/invoke.texi: Document -Wswitch-unreachable.
6282         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6283         warning.
6285 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
6287         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6288         TMR_INDEX is non-NULL.
6290 2016-05-23  Richard Biener  <rguenther@suse.de>
6292         PR tree-optimization/71230
6293         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6294         (try_special_add_to_ops): ... here.  Always test for single-use.
6296 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6298         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6299         default block if a PHI node in the original one would be resized.
6301 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6303         PR tree-optimization/58135
6304         * tree-vect-slp.c: When group size is not multiple
6305         of vector size, allow splitting of store group at
6306         vector boundary.
6308 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
6310         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6312 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
6314         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6315         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6316         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
6317         of 64x2.
6319         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6320         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6321         v constraint instead of x and vinserti32x4 insn.
6323         * config/i386/sse.md (i128vldq): New mode iterator.
6324         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6325         avx512dq and avx512vl alternatives.
6327         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6328         constraint, use maybe_evex prefix instead of vex.
6329         (vec_dupv4sf): Use v constraint instead of x for output
6330         operand except for noavx alternative, use Yv constraint
6331         instead of x for input.  Use maybe_evex prefix instead of vex.
6332         (*vec_dupv4si): Likewise.
6333         (*vec_dupv2di): Likewise.
6335 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
6337         PR middle-end/40921
6338         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6339         (linearize_expr_tree): Call try_special_add_to_ops.
6340         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6342 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6344         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6345         to computed stack_usage.
6347 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6349         PR target/71103
6350         * config/avr/avr.md (define_expand "mov<mode>"): If the source
6351         operand is subreg (symbol_ref) then move the symbol ref to register.
6353 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
6355         * tree.c (array_at_struct_end_p): Look through MEM_REF.
6357 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6359         PR middle-end/71179
6360         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6361         VECTOR type.
6363 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6365         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6366         ranges by calling get_single_symbol and tidy up.  Look more closely
6367         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6369 2016-05-20  Jeff Law  <law@redhat.com>
6371         * bitmap.c (bitmap_find_bit): Remove useless test.
6373 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
6375         * function.c (thread_prologue_and_epilogue_insns): Commit the
6376         insertion of the epilogue.
6378 2016-05-20  Martin Jambor  <mjambor@suse.cz>
6380         PR tree-optimization/70884
6381         * tree-sra.c (initialize_constant_pool_replacements): Do not check
6382         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6383         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6384         of constant pool data as a reason for scalarization.
6386 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6388         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6389         for naked functions.
6390         (thumb1_expand_prologue): Likewise.
6392 2016-05-20  Nathan Sidwell  <nathan@acm.org>
6394         * config/nvptx/nptx.c (nvptx_option_override): Only set
6395         flag_toplevel_reorder, if not explicitly specified.  Set
6396         flag_no_common, unless explicitly specified.
6398 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6400         * calls.c (can_implement_as_sibling_call_p): Mark param
6401         reg_parm_stack_space with ATTRIBUTE_UNUSED.
6403 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
6405         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6406         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6407         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6408         constants.
6409         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6410         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6411         and CASE_CONST_ANY.
6413 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
6415         * config/nvptx/nvptx.md (sincossf3): New pattern.
6417 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6419         * calls.c (maybe_complain_about_tail_call): New function.
6420         (initialize_argument_information): Call
6421         maybe_complain_about_tail_call when clearing *may_tailcall.
6422         (can_implement_as_sibling_call_p): Call
6423         maybe_complain_about_tail_call when returning false.
6424         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6425         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
6426         if tail-call optimization fails.
6427         * cfgexpand.c (expand_call_stmt): Initialize
6428         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6429         * gimple-pretty-print.c (dump_gimple_call): Dump
6430         gimple_call_must_tail_p.
6431         * gimple.c (gimple_build_call_from_tree): Call
6432         gimple_call_set_must_tail with the value of
6433         CALL_EXPR_MUST_TAIL_CALL.
6434         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6435         (gimple_call_set_must_tail): New function.
6436         (gimple_call_must_tail_p): New function.
6437         * print-tree.c (print_node): Update printing of TREE_STATIC
6438         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6439         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6440         trailing comment listing applicable flags.
6441         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6443 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6445         * calls.c (expand_call): Move "Rest of purposes for tail call
6446         optimizations to fail" to...
6447         (can_implement_as_sibling_call_p): ...this new function, and
6448         split into multiple "if" statements.
6450 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6452         * cfgloop.h (expected_loop_iterations_unbounded,
6453         expected_loop_iterations): Unconstify.
6454         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6455         profile with known upper bound; return 3 when profile is absent.
6456         (expected_loop_iterations): Update.
6458 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6460         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6461         and get_max_loop_iterations_int.
6463 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6465         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6466         realistic upper bounds here.
6468 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
6470         PR c++/71210
6471         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6472         calls if the LHS is variable length or has addressable type.
6473         If targets[0]->decl is a noreturn call with void return type and
6474         zero arguments, adjust fntype and remove lhs in that case.
6476 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
6478         PR tree-optimization/71079
6479         PR tree-optimization/71206
6480         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6482 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6484         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6485         (get_vec_alignment_for_array_decl): Likewise.
6486         (get_vec_alignment_for_record_decl): Likewise.
6487         (increase_alignment::execute): Move code to find alignment to
6488         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6489         (type_align_map): New hash_map.
6491 2016-05-20  Richard Guenther  <rguenther@suse.de>
6493         PR tree-optimization/29756
6494         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6495         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6496         * fold-const.c (operand_equal_p): Likewise.
6497         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6498         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6499         * tree-inline.c (estimate_operator_cost): Likewise.
6500         * tree-pretty-print.c (dump_generic_node): Likewise.
6501         * tree-ssa-operands.c (get_expr_operands): Likewise.
6502         * cfgexpand.c (expand_debug_expr): Likewise.
6503         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6504         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6505         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6506         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6507         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6508         (execute_update_addresses_taken): Do it.
6510 2016-05-20  Richard Biener  <rguenther@suse.de>
6512         PR tree-optimization/71185
6513         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6514         register operations.
6516 2016-05-20  Richard Biener  <rguenther@suse.de>
6518         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6519         gimple_seq_add_seq_without_update.
6520         (release_bb_predicate): Assert we have no operands to free.
6521         (if_convertible_loop_p_1): Calculate post dominators later.
6522         Do not free BB predicates here.
6523         (combine_blocks): Do not recompute BB predicates.
6524         (version_loop_for_if_conversion): Save BB predicates around
6525         loop versioning.
6527 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6529         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6530         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
6531         code.  Ignore sibcalls on EDGE_IGNORE edges.
6532         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
6533         on edges for sibcalls that run without prologue.  The rest of the
6534         function is combined from...
6535         (fix_fake_fallthrough_edge): ... this, and ...
6536         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
6537         function argument, make it a local variable.
6539 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
6541         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6542         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6543         for 32-bit mode and SEH for 64-bit.
6544         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6545         TARGET_64BIT_DEFAULT.
6547 2016-05-19  Ryan Burn  <contact@rnburn.com>
6549         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6550         * gengtype.c (open_base_files): Add cilk.h to ifiles.
6552 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
6554         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6555         force pending loads from memory.
6557 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6559         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6560         (UNSPEC_DARN_32): New unspec constant.
6561         (UNSPEC_DARN_RAW): New unspec constant.
6562         (darn_32): New instruction.
6563         (darn_raw): New instruction.
6564         (darn): New instruction.
6565         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6566         support and documentation for this macro.
6567         (BU_P9_MISC_1): New macro definition.
6568         (BU_P9_64BIT_MISC_0): New macro definition.
6569         (BU_P9_MISC_0): New macro definition.
6570         (darn_32): New builtin definition.
6571         (darn_raw): New builtin definition.
6572         (darn): New builtin definition.
6573         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6574         RS6000_BUILTIN_0 directives to surround each occurrence of
6575         #include "rs6000-builtin.def".
6576         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6577         RS6000_BTM_64BIT flags to the returned mask, depending on
6578         configuration.
6579         (def_builtin): Correct an error in the assignments made to the
6580         debugging variable attr_string.
6581         (rs6000_expand_builtin): Add support for no-operand built-in
6582         functions.
6583         (builtin_function_type): Remove fatal_error assertion that is no
6584         longer valid.
6585         (rs6000_common_init_builtins): Add support for no-operand built-in
6586         functions.
6587         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6588         definition.
6589         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6590         definition.
6591         (RS6000_BTM_64BIT): New macro definition.
6592         * doc/extend.texi: Document __builtin_darn (void),
6593         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6594         functions.
6596 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
6598         * tree-vect-loop.c (vect_analyze_loop_2): Use also
6599         max_loop_iterations_int.
6601 2016-05-19  Marek Polacek  <polacek@redhat.com>
6603         PR tree-optimization/71031
6604         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6605         condition and adjust the code a bit.
6607 2016-05-19  Martin Liska  <mliska@suse.cz>
6609         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6610         auto_vec instead of vec.
6612 2016-05-19  Martin Liska  <mliska@suse.cz>
6614         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6616 2016-05-19  Martin Liska  <mliska@suse.cz>
6618         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6620 2016-05-19  Martin Liska  <mliska@suse.cz>
6622         * ipa-pure-const.c (set_function_state): Remove an existing
6623         funct_state.
6624         (remove_node_data): Do not free it as it's released
6625         in set_function_state.
6627 2016-05-19  Martin Liska  <mliska@suse.cz>
6629         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6630         bitmap.
6632 2016-05-19  Martin Liska  <mliska@suse.cz>
6634         * omp-simd-clone.c (simd_clone_adjust): Release vector.
6636 2016-05-19  Martin Liska  <mliska@suse.cz>
6638         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6639         an auto_vec instead of re-creating it.
6641 2016-05-19  Martin Liska  <mliska@suse.cz>
6643         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6644         auto_vec instead of vec.
6646 2016-05-19  Martin Liska  <mliska@suse.cz>
6648         * lto-section-in.c (lto_get_section_data): Call
6649         lto_check_version with additional argument.
6650         * lto-streamer.c (lto_check_version): Add new argument.
6651         * lto-streamer.h (lto_check_version): Likewise.
6653 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6655         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6656         Don't add cost of inner memory when handling sign-extended loads.
6658 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6660         PR rtl-optimization/71148
6661         * cse.c (cse_main): Free dominance info.
6662         (rest_of_handle_cse): Don't free dominance info.
6663         (rest_of_handle_cse2): Likewise.
6664         (rest_of_handle_cse_after_global_opts): Likewise.
6666 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6668         PR target/71056
6669         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6670         NULL_TREE early if NEON is not available.  Remove now redundant check
6671         in ARM_CHECK_BUILTIN_MODE.
6673 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
6675         PR sanitizer/64354
6676         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6677         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6678         * doc/cpp.texi: Document new macros.
6680 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
6682         PR tree-optimization/69848
6683         * tree-vect-loop.c (vectorizable_reduction): Don't factor
6684         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6686 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6688         * function.c (thread_prologue_and_epilogue_insn): Move the
6689         "goto epilogue_done" one block later.
6691 2016-05-19  Richard Biener  <rguenther@suse.de>
6693         PR tree-optimization/70729
6694         * passes.def: Move LIM pass before PRE.  Remove no longer
6695         required copyprop and move first DCE out of the loop pipeline.
6697 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
6699         PR driver/69265
6700         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6701         (OBJS-libcommon-target): ...here.
6702         * opts-common.c: Include spellcheck.h.
6703         (cmdline_handle_error): Build a vec of valid options and use it
6704         to suggest provide hints for misspelled arguments.
6706 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6708         PR c++/71100
6709         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6710         lhs if it has TREE_ADDRESSABLE type.
6712 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
6714         PR target/71145
6715         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6716         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6718 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6720         PR ipa/69708
6721         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6722         input for NOP_EXPR pass-through functions.
6723         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6724         aggregate global constant VAR_DECLs in constant jump functions.
6726 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6728         PR ipa/69708
6729         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6730         from TREE_READONLY parameters.
6732 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6734         PR ipa/69708
6735         * cgraph.h (cgraph_indirect_call_info): New field
6736         guaranteed_unmodified.
6737         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6738         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6739         appropriate.
6740         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6741         pass the parameter value to ipa_find_agg_cst_for_param.
6742         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6743         guaranteed_unmodified, store AA results there instead of bailing out
6744         if present.
6745         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6746         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6747         (find_constructor_constant_at_offset): New function.
6748         (ipa_find_agg_cst_from_init): Likewise.
6749         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6750         static initializers of contants, report back through a new paameter
6751         from_global_constant if that was the case.
6752         (try_make_edge_direct_simple_call): Also pass parameter value to
6753         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6754         appropriate.
6755         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6756         (ipa_read_indirect_edge_info): Likewise.
6757         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6758         (ipa_load_from_parm_agg): Likewise.
6760 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
6762         PR rtl-optimization/71150
6763         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6764         check.
6766 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6768         PR target/70915
6769         * config/rs6000/constraints.md (wE constraint): New constraint
6770         for a vector constant that can be loaded with XXSPLTIB.
6771         (wM constraint): New constraint for a vector constant of a 1's.
6772         (wS constraint): New constraint for a vector constant that can be
6773         loaded with XXSPLTIB and a vector sign extend instruction.
6774         * config/rs6000/predicates.md (xxspltib_constant_split): New
6775         predicates for wE/wS constraints.
6776         (xxspltib_constant_nosplit): Likewise.
6777         (easy_vector_constant): Add support for constants that can be
6778         loaded via XXSPLTIB.
6779         (all_ones_constant): New predicate for vector constant with all
6780         1's set.
6781         (splat_input_operand): Add support for ISA 3.0 word splat operations.
6782         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6783         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6784         instruction and possibly with a sign extension.
6785         (output_vec_const_move): Add support for XXSPLTIB. If we are
6786         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6787         instead of XXLXOR/XXLORC.
6788         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6789         operations.
6790         (rs6000_legitimize_reload_address): Likewise.
6791         (rs6000_output_move_128bit): Use output_vec_const_move to emit
6792         constants.
6793         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6794         combine VSX_M and VSX_M2 into one iterator.
6795         (VSX_M2): Likewise.
6796         (VSINT_84): New iterators for loading constants with XXSPLTIB.
6797         (VSINT_842): Likewise.
6798         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6799         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6800         XXSPLTIB instruction.
6801         (xxspltib_<mode>_nosplit): Likewise.
6802         (xxspltib_<mode>_split): New insn to load up constants with
6803         XXSPLTIB and a sign extend instruction.
6804         (vsx_mov<mode>): Replace single move that handled all vector types
6805         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
6806         moves (when -mvsx-timode is in effect) into the main vector
6807         moves.  Eliminate separate moves for <VSr> <VSa>, where the
6808         preferred register class (<VSr>) is listed first, and the
6809         secondary register class (<VSa>) is listed second with a '?' to
6810         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
6811         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6812         that if the register was involved in a slow operation, the
6813         clear/set operation does not wait for the slow operation to
6814         finish.  Adjust the length attributes for 32-bit mode.  Use
6815         rs6000_output_move_128bit and drop the use of the string
6816         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
6817         spacing so that the alternatives and attributes don't generate
6818         long lines, and put things in columns, so that it is easier to
6819         match up the operands and attributes with the insn alternatives.
6820         (vsx_mov<mode>_64bit): Likewise.
6821         (vsx_mov<mode>_32bit): Likewise.
6822         (vsx_movti_64bit): Fold movti into normal vector moves.
6823         (vsx_movti_32bit): Likewise.
6824         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6825         splat instructions.
6826         (vsx_splat_v4si_internal): Likewise.
6827         (vsx_splat_v4sf_internal): Likewise.
6828         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6829         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6830         extend vector elements.
6831         (vsx_sign_extend_hi_<mode>): Likewise.
6832         (vsx_sign_extend_si_v2di): Likewise.
6833         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6834         declaration.
6835         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6836         constraints.  Add trailing period to wL documentation.
6838 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
6840         PR middle-end/71020
6841         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
6842         * tree-dfa.c (replace_abnormal_ssa_names): New function.
6843         * tree-call-cdce.c: Include tree-dfa.h.
6844         (can_guard_call_p): New function, extracted from...
6845         (can_use_internal_fn): ...here.
6846         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
6847         and return void.
6848         (shrink_wrap_one_built_in_call): Likewise.
6849         (use_internal_fn): Likewise.
6850         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
6851         and return void.  Call replace_abnormal_ssa_names.
6852         (pass_call_cdce::execute): Check can_guard_call_p during the
6853         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
6854         will always change something.
6856 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6858         PR ipa/70646
6859         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
6860         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
6862 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6864         PR ipa/70646
6865         * ipa-inline.h (condition): New field size.
6866         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
6867         for comaprison and store it into the new condition.
6868         (evaluate_conditions_for_known_args): Use condition size to check
6869         access sizes for all but CHANGED conditions.
6870         (unmodified_parm_1): New parameter size_p, store access size into it.
6871         (unmodified_parm): Likewise.
6872         (unmodified_parm_or_parm_agg_item): Likewise.
6873         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
6874         (set_cond_stmt_execution_predicate): Extract access sizes and store
6875         them to conditions.
6876         (set_switch_stmt_execution_predicate): Likewise.
6877         (will_be_nonconstant_expr_predicate): Likewise.
6878         (will_be_nonconstant_predicate): Likewise.
6879         (inline_read_section): Stream condition size.
6880         (inline_write_summary): Likewise.
6882 2016-05-18  Richard Biener  <rguenther@suse.de>
6884         * tree-ssa-loop-im.c (determine_max_movement): Properly add
6885         condition cost to PHI cost instead of total_cost.
6887 2016-05-18  Martin Liska  <mliska@suse.cz>
6889         PR fortran/70856
6890         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
6891         merged variables.
6893 2016-05-18  Richard Biener  <rguenther@suse.de>
6895         * lto-streamer.h (LTO_major_version): Bump to 6.
6897 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6899         * function.c (make_split_prologue_seq, make_prologue_seq,
6900         make_epilogue_seq): New functions, factored out from...
6901         (thread_prologue_and_epilogue_insns): Here.
6903 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
6905         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
6906         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
6907         of before.  Add a comment.
6909 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
6911         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
6912         expression pointer, not pointer to the pointer.
6914 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6916         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
6917         (avx2_pbroadcast<mode>): Add another alternative with v instead
6918         of x constraints in it, using <pbroadcast_evex_isa> isa.
6919         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
6921         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
6922         constraint x instead of v in second alternative, add avx512bw
6923         alternative.
6925         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
6926         constraint x instead of v in second alternative, add avx512bw
6927         alternative.
6929         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
6930         constraint x instead of v in second alternative, add avx512bw
6931         alternative.
6933         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
6934         avx512bw alternative.
6936 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6938         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
6939         array to 128 chars.
6940         (define_insn "*andnottf3"): Ditto.
6941         (define_insn "*<code><mode>3"/any_logic): Ditto.
6942         (define_insn "*<code>tf3"/any_logic): Ditto.
6943         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
6944         operand to block AVX-512VL insn variant emit when it is not enabled.
6946 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6948         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
6949         constraint fot SF mode.
6951 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
6952             Kirill Yukhin  <kirill.yukhin@intel.com>
6954         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
6955         modifiers.
6956         (define_insn "rsqrt14<mode>"): Ditto.
6957         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
6958         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6959         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
6960         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6961         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
6962         Ditto.
6963         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
6964         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
6965         * config/i386/i386.c (ix86_print_operand): Expand check for size
6966         override codes for Intel syntax.
6968 2016-05-18  Richard Biener  <rguenther@suse.de>
6970         PR tree-optimization/71168
6971         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
6972         initialization earlier.
6974 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
6976         * config/aarch64/aarch64-simd.md
6977         (aarch64_reduc_plus_internal<mode>): Rename to...
6978         (reduc_plus_scal): ...This, and remove previous implementation.
6980 2016-05-18  Richard Biener  <rguenther@suse.de>
6982         * passes.def: Put late dse and cd_dce in canonical order.
6984 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
6986         * ipa-inline-transform.c (preserve_function_body_p): Look for
6987         first non-thunk clone.
6988         (save_function_body): Save into first non-thunk.
6989         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
6990         up call stmt id.
6991         (lto_output_node): Inline thunks don't need body in every
6992         partition.
6993         * lto-streamer-in.c: Do not fixup thunk clones.
6994         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
6995         thunks.
6996         * tree-inline.c (copy_bb): Be prepared for target node to be new after
6997         folding suceeds.
6999 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7001         PR middle-end/63586
7002         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7003         (reassociate_bb): Call transform_add_to_multiply.
7005 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7007         * config/aarch64/aarch64.c (all_extensions): Removed unused
7008         static variable.
7010 2016-05-17  Nathan Sidwell  <nathan@acm.org>
7012         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7013         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7015 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
7017         PR tree-optimization/54579
7018         PR middle-end/55299
7019         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7021 2016-05-17  Marek Polacek  <polacek@redhat.com>
7023         PR ipa/71146
7024         * tree-inline.c (expand_call_inline): Call
7025         maybe_remove_unused_call_args.
7027 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
7029         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7030         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7031         * doc/md.texi (fmin@var{m}3): Likewise.
7033 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7035         * match.pd (X & C): New transformation.
7037 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7039         * match.pd (~X & Y): New transformation.
7041 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7043         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7044         information for new SSA_NAME.
7045         (simplify_conversion_using_ranges): Get range through get_range_info
7046         instead of get_value_range.
7048 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7050         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7051         Remove inline assembly.
7052         (vmvn_s16): Likewise.
7053         (vmvn_s32): Likewise.
7054         (vmvn_u8): Likewise.
7055         (vmvn_u16): Likewise.
7056         (vmvn_u32): Likewise.
7057         (vmvnq_s8): Likewise.
7058         (vmvnq_s16): Likewise.
7059         (vmvnq_s32): Likewise.
7060         (vmvnq_u8): Likewise.
7061         (vmvnq_u16): Likewise.
7062         (vmvnq_u32): Likewise.
7063         (vmvn_p8): Likewise.
7064         (vmvnq_p16): Likewise.
7066 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7068         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7069         Use builtin.
7070         (vmul_n_s16): Likewise.
7071         (vmul_n_s32): Likewise.
7072         (vmul_n_u16): Likewise.
7073         (vmul_n_u32): Likewise.
7074         (vmulq_n_f32): Likewise.
7075         (vmulq_n_f64): Likewise.
7076         (vmulq_n_s16): Likewise.
7077         (vmulq_n_s32): Likewise.
7078         (vmulq_n_u16): Likewise.
7079         (vmulq_n_u32): Likewise.
7081 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7083         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7084         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
7086 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7088         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7089         to *aarch64_fma4_elt_from_dup<mode>.
7090         (*aarch64_fnma4_elt_to_128df): Rename to
7091         *aarch64_fnma4_elt_from_dup<mode>.
7092         * config/aarch64/arm_neon.h (vfma_n_f64): New.
7093         (vfms_n_f32): Likewise.
7094         (vfms_n_f64): Likewise.
7095         (vfmsq_n_f32): Likewise.
7096         (vfmsq_n_f64): Likewise.
7098 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
7100         * wide-int.h: Change fixed_wide_int_storage from class to struct.
7102 2016-05-17  Richard Biener  <rguenther@suse.de>
7104         PR tree-optimization/71132
7105         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7106         Only add control dependences for blocks in the loop.
7107         (build_rdg): Adjust.
7108         (generate_code_for_partition): Return whether loop should
7109         be destroyed and delay that.
7110         (distribute_loop): Likewise.
7111         (pass_loop_distribution::execute): Record loops to be destroyed
7112         and perform delayed destroying of loops.
7114 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7116         PR target/70809
7117         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7119 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7121         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7123 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
7125         PR target/71114
7126         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7127         insertion point for instructions generated by validize_mem.
7129 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7131         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7132         in brackets.
7134 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7136         * config/aarch64/aarch64.c
7137         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7138         rather than a macro.
7140 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7142         * doc/invoke.texi (AArch64 Options): Various updates.
7144 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7146         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7147         into instrumentation thunks.
7148         * cif-code.def (CIF_CHKP): New.
7150 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
7152         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7154 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7156         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7157         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7159 2016-05-16  Marek Polacek  <polacek@redhat.com>
7161         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7162         commentary.
7164 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7166         PR hsa/70857
7167         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7168         the outlined kernel function.
7170 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7172         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7173         (ISA_HAS_DLSA): Ditto.
7175 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7177         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7179 2016-05-16  Nathan Sidwell  <nathan@acm.org>
7181         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7182         (nvptx_name_replacement): Restore.  Add comment.
7183         (write_fn_proto, write_fn_proto_from_insn,
7184         nvptx_output_call_insn): Restore
7185         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7187 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7189         * config/aarch64/aarch64.md
7190         (add<mode>3_compareC_cconly_imm): Remove use of %w.
7191         (add<mode>3_compareC_imm): Likewise.
7192         (<optab>si3_uxtw): Split into register and immediate variants.
7193         (andsi3_compare0_uxtw): Likewise.
7194         (and<mode>3_compare0): Likewise.
7195         (and<mode>3nr_compare0): Likewise.
7196         (stack_protect_test_<mode>): Don't use %x for memory operands.
7198 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7200         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7202 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7204         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7205         Split integer shifts into shift_reg and bfm.
7206         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7207         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7208         (ror<mode>3_insn): Likewise.
7209         (<optab>si3_insn_uxtw): Likewise.
7210         (<optab><mode>3_insn): Change to rotate_imm.
7211         (extr<mode>5_insn_alt): Likewise.
7212         (extrsi5_insn_uxtw): Likewise.
7213         (extrsi5_insn_uxtw_alt): Likewise.
7215 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7217         * doc/tm.texi: Regenerate.
7218         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7219         (TARGET_INVALID_RETURN_TYPE): Remove.
7220         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7221         TARGET_INVALID_RETURN_TYPE.
7222         * target.def (invalid_parameter_type): Remove.
7223         (invalid_return_type): Remove.
7225 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7227         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7228         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7229         calls from thunk.
7230         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7231         gimple body.
7232         (preserve_function_body_p): No need to preserve function body
7233         * cif-codes.def (CIF_THUNK): Remove.
7234         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7236 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7238         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7240 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7242         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7243         for thunks.
7245 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7247         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7248         (inline_small_functions): Do not look for function symbol when
7249         resetting caches.
7251 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7253         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7254         of inline thunks
7256 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7257             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7258             Jiong Wang  <jiong.wang@arm.com>
7260         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7261         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7262         Define __ARM_FP16_ARGS when appropriate.
7263         * config/arm/arm.c (arm_invalid_parameter_type): Remove
7264         declaration.
7265         (arm_invalid_return_type): Likewise.
7266         (TARGET_INVALID_PARAMETER_TYPE): Remove.
7267         (TARGET_INVALID_RETURN_TYPE): Remove.
7268         (aapcs_vfp_sub_candidate): Allow HFmode.
7269         (aapcs_vfp_allocate): Add comment.  Support HFmode.
7270         (aapcs_vfp_allocate_return_reg): Likewise.
7271         (struct aapcs_cp_arg_layout): Slightly reword comments for
7272         is_return_candidate and allocate_return_reg.
7273         (output_mov_vfp): Update assert.
7274         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7275         condition.
7276         (arm_invalid_parameter_type): Remove.
7277         (amr_invalid_return_type): Remove.
7278         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7279         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7280         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7282 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7284         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7285         * config/aarch64/arch64-protos.h
7286         (aarch64_legitimize_reload_address): Remove.
7287         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7288         Remove.
7290 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7292         * configure.ac: Add ACX_NONCANONICAL_HOST.
7293         * configure: Regenerate.
7294         * Makefile.in: Set host_noncanonical.
7296 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
7298         PR target/71097
7299         * config/i386/i386.md (*movtf_internal): Before register allocation,
7300         do not allow FP constants for CM_MEDIUM memory model, allow only
7301         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7302         (*movxf_internal): Ditto.
7303         (*movdf_internal): Ditto.
7304         (*movsf_internal): Ditto.
7306 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7308         PR rtl-optimization/67483
7309         * combine.c (make_compound_operation): Don't call extract_left_shift
7310         with negative shift amounts.
7312 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
7314         PR bootstrap/71071
7315         * fold-const.c (fold_checksum_tree): Allow modification
7316         of TYPE_ALIAS_SET during folding.
7318         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7319         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7320         (ix86_split_to_parts): Likewise.  Fix up formatting.
7322 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7324         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7325         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7326         printf format.
7328 2016-05-13  Nathan Sidwell  <nathan@acm.org>
7330         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7331         (nvptx_name_replacement): Delete.
7332         (write_fn_proto, write_fn_proto_from_insn,
7333         nvptx_output_call_insn): Remove nvptx_name_replacement call.
7334         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7335         * langhooks.c (add_builtin_funcction_common): Call
7336         targetm.mangle_decl_assembler_name.
7338         * config/nvptx/nvptx.c (write_fn_proto): Handle
7339         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7341 2016-05-13  Martin Liska  <mliska@suse.cz>
7343         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7344         and PRIu64 in printf format.
7346 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7348         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7349         comment.
7351 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7353         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7354         Change --param max-completely-peeled-times to
7355         --param max-completely-peel-times in dump file printing.
7357 2016-05-13  Richard Biener  <rguenther@suse.de>
7359         PR tree-optimization/42587
7360         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7361         (find_bswap_or_nop_1): Likewise.
7362         (bswap_replace): Likewise.
7364 2016-05-13  Martin Liska  <mliska@suse.cz>
7366         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7367         Initialize a variable with default value.
7369 2016-05-13  Martin Liska  <mliska@suse.cz>
7371         * doc/invoke.texi: Enhance explanation of error recovery
7372         of sanitizers.
7374 2016-05-13  Martin Liska  <mliska@suse.cz>
7376         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7377         (struct cost_pair): Change inv_expr_id (int) to inv_expr
7378         (iv_inv_expr_ent *).
7379         (struct iv_inv_expr_ent): Comment struct fields.
7380         (sort_iv_inv_expr_ent): New function.
7381         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7382         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7383         a hash_map between iv_inv_expr_ent and number of usages.
7384         (niter_for_exit): Fix coding style.
7385         (tree_ssa_iv_optimize_init): Use renamed variable.
7386         (determine_base_object): Fix coding style.
7387         (alloc_iv): Likewise.
7388         (find_interesting_uses_outside): Likewise.
7389         (add_candidate_1): Likewise.
7390         (add_standard_iv_candidates): Likewise.
7391         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7392         (prepare_decl_rtl): Fix coding style.
7393         (get_address_cost): Likewise.
7394         (get_shiftadd_cost): Likewise.
7395         (force_expr_to_var_cost): Likewise.
7396         (compare_aff_trees): Likewise.
7397         (get_expr_id): Restructure the function.
7398         (get_loop_invariant_expr_id): Renamed to
7399         get_loop_invariant_expr.
7400         (get_computation_cost_at): Replace usage of inv_expr_id with
7401         inv_expr.
7402         (get_computation_cost): Likewise.
7403         (determine_group_iv_cost_generic): Likewise.
7404         (determine_group_iv_cost_address): Likewise.
7405         (iv_period): Fix coding style.
7406         (iv_elimination_compare_lt): Likewise.
7407         (may_eliminate_iv): Likewise.
7408         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
7409         inv_expr.
7410         (determine_group_iv_costs): Dump invariant expressions.
7411         (iv_ca_recount_cost): Use the newly added hash_map.
7412         (iv_ca_set_remove_invariants): Fix coding style.
7413         (iv_ca_set_add_invariants): Fix coding style.
7414         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7415         invariants.
7416         (iv_ca_set_cp): Likewise.
7417         (iv_ca_new): Initialize the newly added hash_map and remove
7418         initialization of fields.
7419         (iv_ca_free): Delete the hash_map.
7420         (iv_ca_dump): Dump invariant expressions.
7421         (iv_ca_extend): Fix coding style.
7422         (try_add_cand_for): Likewise.
7423         (create_new_ivs): Dump information about # of avg iterations and
7424         # of used invariant expressions.
7425         (rewrite_use_compare): Fix coding style.
7426         (free_loop_data): Set default value for max_inv_expr_id.
7428 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7430         * cse.c (rest_of_handle_cse): Use cleanup_cfg
7431         returned value cse_cfg_altered computation.
7432         (rest_of_handle_cse2): Likewise.
7433         (rest_of_handle_cse_after_global_opts): Likewise.
7435 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7437         PR target/53440
7438         * config/arm/arm.c (arm32_output_mi_thunk): New.
7439         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7440         to split Thumb1 vs TARGET_32BIT functionality.
7441         (arm_thumb1_mi_thunk): New.
7443 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7445         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7446         to true.
7448 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7450         PR target/71080
7451         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7453 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7455         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7456         (expand_builtin_trap): Emit a regular call.
7457         (set_builtin_user_assembler_name): Remove obsolete cases.
7458         * dse.c (scan_insn): Adjust.
7459         * except.c: Include calls.h.
7460         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7461         emit a regular call to setjmp.
7462         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7463         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7464         (emit_block_move_via_libcall): Delete.
7465         (block_move_fn): Delete.
7466         (init_block_move_fn): Likewise.
7467         (emit_block_move_libcall_fn): Likewise.
7468         (emit_block_op_via_libcall): New function.
7469         (set_storage_via_libcall): Tidy up and use memset builtin.
7470         (block_clear_fn): Delete.
7471         (init_block_clear_fn): Likewise.
7472         (clear_storage_libcall_fn): Likewise.
7473         (expand_assignment): Call emit_block_move_via_libcall.
7474         Do not include gt-expr.h.
7475         * expr.h (emit_block_op_via_libcall): Declare.
7476         (emit_block_copy_via_libcall): New inline function.
7477         (emit_block_move_via_libcall): Likewise.
7478         (emit_block_comp_via_libcall): Likewise.
7479         (block_clear_fn): Delete.
7480         (init_block_move_fn): Likewise.
7481         (init_block_clear_fn): Likewise.
7482         (emit_block_move_via_libcall): Likewise.
7483         (set_storage_via_libcall): Add default parameter value.
7484         * libfuncs.h (enum libfunc_index): Remove obsolete values.
7485         (abort_libfunc): Delete.
7486         (memcpy_libfunc): Likewise.
7487         (memmove_libfunc): Likewise.
7488         (memcmp_libfunc): Likewise.
7489         (memset_libfunc): Likewise.
7490         (setbits_libfunc): Likewise.
7491         (setjmp_libfunc): Likewise.
7492         (longjmp_libfunc): Likewise.
7493         (profile_function_entry_libfunc): Likewise.
7494         (profile_function_exit_libfunc): Likewise.
7495         (gcov_flush_libfunc): Likewise.
7496         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7497         and DECL_VISIBILITY on the declaration.
7498         (init_optabs): Do not initialize obsolete libfuncs.
7499         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7500         * tree-core.h (ECF_RET1): Define.
7501         (ECF_TM_PURE): Adjust.
7502         (ECF_TM_BUILTIN): Likewise.
7503         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7504         (build_common_builtin_nodes): Initialize abort builtin.
7505         Add ECF_RET1 on memcpy, memmove and memset builtins.
7506         Pass final flags for alloca and alloca_with_align builtins.
7507         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7508         obsolete builtins.
7509         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7510         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7511         set_storage_via_libcall and call emit_block_copy_via_libcall.
7513 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
7515         * config/i386/i386.md (*call_got_x32): Change operand 0 to
7516         DImode before it is passed to ix86_output_call_operand.
7517         (*call_value_got_x32): Ditto for operand 1.
7519 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
7521         PR rtl-optimization/70904
7522         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7523         reload for wide mode.
7525 2016-05-12  Marek Polacek  <polacek@redhat.com>
7527         PR c/70756
7528         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7529         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7530         * langhooks.h (incomplete_type_error): Likewise.
7531         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
7532         parameter, pass it down to incomplete_type_error.
7533         * tree.h (size_in_bytes): New inline overload.
7534         (size_in_bytes_loc): Renamed from size_in_bytes.
7536 2016-05-12  Richard Biener  <rguenther@suse.de>
7538         PR tree-optimization/71059
7539         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7540         nary before looking up or entering the expression into the VN
7541         hashes.
7542         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7543         Make sure to re-use NARYs without result as inserted by
7544         phi-translation.
7546 2016-05-12  Richard Biener  <rguenther@suse.de>
7548         PR tree-optimization/71062
7549         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7550         field.
7551         * tree-ssa-structalias.c (set_uids_in_ptset): Set
7552         vars_contains_restrict if the var is a restrict tag.
7553         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7554         do not disambiguate pointers against it.
7555         (dump_points_to_solution): Re-structure and adjust for new
7556         vars_contains_restrict flag.
7557         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7559 2016-05-12  Martin Liska  <mliska@suse.cz>
7561         * doc/invoke.texi: Explain connection between
7562         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7564 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
7566         PR tree-optimization/71006
7567         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7568         consider COND_EXPR as a mask producer.
7570 2016-05-12  Marek Polacek  <polacek@redhat.com>
7572         PR driver/71063
7573         * opts.c (common_handle_option): Detect missing argument for --help^.
7575 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7577         PR target/70830
7578         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7579         when popping the PC and within an interrupt handler routine.
7580         Add missing tab to output of "ldmfd".
7581         (output_return_instruction): Output LDMFD with SP update rather
7582         than POP when returning from interrupt handler.
7584 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
7586         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7587         TARGET_64BIT && TARGET_AVX512DQ.
7588         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7589         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7590         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7591         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7592         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7593         (*vec_extractv4si_zext): Add avx512dq alternative.
7594         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7595         use v instead of x constraint in other alternatives where possible.
7597         * config/i386/sse.md (sse2_loadld): Use v instead of x
7598         constraint in alternatives 0,1,4.
7600         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7601         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7602         v constraints instead of x and <pinsr_evex_isa> isa attribute.
7604         PR target/71019
7605         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7606         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7607         is not emitted unless TARGET_AVX512BW.
7608         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7609         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7610         for the result operand.
7612         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7613         constraint instead of x in avx alternatives.  Use maybe_evex instead
7614         of vex prefix.
7616         * config/i386/constraints.md (Yv): New constraint.
7617         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7618         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7619         * config/i386/i386.md (avx512fvecmode): New mode attr.
7620         (*pushtf): Use v constraint instead of x.
7621         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
7622         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7623         (*absneg<mode>2): Use Yv constraint instead of x constraint.
7624         (*absnegtf2_sse): Likewise.
7625         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7626         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7627         avx512f alternatives.
7628         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7630 2016-05-12  Richard Biener  <rguenther@suse.de>
7632         PR tree-optimization/71060
7633         * tree-data-ref.c (initialize_data_dependence_relation): Do not
7634         require exact match of DR_BASE_OBJECT but only matching address and
7635         type.
7637 2016-05-12  Richard Biener  <rguenther@suse.de>
7639         PR tree-optimization/70986
7640         * cfganal.c: Include cfgloop.h.
7641         (dfs_find_deadend): Prefer to take edges exiting loops.
7643 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7645         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7646         compile and run time.
7648 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
7650         PR c/43651
7651         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7653 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
7655         * config/i386/i386.c (legitimize_pic_address): Use
7656         copy_to_suggested_reg instead of gen_movsi.
7658 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7660         * config/rs6000/predicates.md (quad_memory_operand): Move most of
7661         the code into quad_address_p and call it to share code with
7662         vsx_quad_dform_memory_operand.
7663         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7664         d-form support.
7665         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7666         bit instead of being a separate word.  Split -mpower9-dform into
7667         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7668         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7669         for the register class supporting 128-bit quad word memory offsets.
7670         (mode_supports_vsx_dform_quad): Helper function to return if the
7671         register class uses quad word memory offsets.
7672         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7673         (rs6000_debug_reg_global): Always print if we are using LRA or not.
7674         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7675         instructions are enabled, set up the appropriate addr_masks for
7676         128-bit types.
7677         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7678         -mpower9-dform-scalar, instead of -mpower9-dform.
7679         (rs6000_option_override_internal): Split -mpower9-dform into two
7680         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
7681         -mpower9-dform switch sets or clears both.  If we are not using
7682         the LRA register allocator, do not enable -mpower9-dform-vector by
7683         default.  If we are using LRA, enable -mpower9-dform-vector and
7684         -mvsx-timode if it is appropriate.  Issue a warning if either
7685         -mpower9-dform-vector or -mvsx-timode are explicitly used without
7686         enabling LRA.
7687         (quad_address_offset_p): New helper function to return if the
7688         offset is legal for quad word memory instructions.
7689         (quad_address_p): New function to determin if GPR or vector
7690         register quad word memory addresses are legal.
7691         (mem_operand_gpr): Validate quad word address offsets.
7692         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7693         d-form (register + offset) instructions.
7694         (offsettable_ok_by_alignment): Likewise.
7695         (rs6000_legitimate_offset_address_p): Likewise.
7696         (legitimate_lo_sum_address_p): Likewise.
7697         (rs6000_legitimize_address): Likewise.
7698         (rs6000_legitimize_reload_address): Add more debug statements for
7699         -mdebug=addr.
7700         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7701         d-form instructions.
7702         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7703         d-form instructions.  Distinguish different cases in debug
7704         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7705         d-form instructions.
7706         (rs6000_preferred_reload_class): Likewise.
7707         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7708         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
7709         of the ISA 2.06 indexed memory instructions.
7710         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7711         use them to save/restore the saved vector registers instead of
7712         using Altivec instructions.
7713         (rs6000_emit_epilogue): Likewise.
7714         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7715         (rs6000_opt_masks): Split -mpower9-dform into
7716         -mpower9-dform-scalar and -mpower9-dform-vector.
7717         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7718         was not selected.
7719         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7720         ISA 3.0 vector indexed memory instructions, and fold the code into
7721         the normal mov<mode> patterns.
7722         (p9_vecstore_<mode>): Likewise.
7723         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7724         instructions.
7725         (vsx_movti_64bit): Likewise.
7726         (vsx_movti_32bit): Likewise.
7727         * config/rs6000/constraints.md (wO constraint): New constraint for
7728         ISA 3.0 vector d-form support.
7729         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7730         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
7731         include -mpower9-dform-vector until we switch over to LRA.
7732         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7733         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7734         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7735         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7736         for -mpower9-dform and -mlra.
7737         * doc/md.texi (wO constraint): Document wO constraint.
7739 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
7741         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7742         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7743         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7744         Move handling of non-insn arguments inline into the sole user:
7745         (output_trans_func): ...here.
7746         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7747         in emitted function prototype.
7748         (output_internal_insn_latency_func): Ditto.  Simplify.
7749         (output_internal_maximal_insn_latency_func): Ditto.  Delete
7750         always-unused argument.
7751         (output_insn_latency_func): Ditto.
7752         (output_maximal_insn_latency_func): Ditto.
7754 2016-05-11  Richard Biener  <rguenther@suse.de>
7756         PR tree-optimization/71055
7757         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7758         sth with precision not equal to access size verify we don't chop
7759         off bits.
7761 2016-05-11  Richard Biener  <rguenther@suse.de>
7763         PR debug/71057
7764         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7765         (dwarf2out_finish): Move retry_incomplete_types call ...
7766         (dwarf2out_early_finish): ... here.
7768 2016-05-11  Richard Biener  <rguenther@suse.de>
7770         PR middle-end/71002
7771         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7772         if the langhook insists on it.
7773         * fold-const.c (make_bit_field_ref): Add arg for the original
7774         reference and preserve its alias-set.
7775         (decode_field_reference): Take exp by reference and adjust it
7776         to the original memory reference.
7777         (optimize_bit_field_compare): Adjust callers.
7778         (fold_truth_andor_1): Likewise.
7779         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7781 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
7783         PR middle-end/70807
7784         * cfgrtl.h (delete_insn_and_edges): Now return bool.
7785         * cfgrtl.c (delete_insn_and_edges): Likewise.
7786         * config/i386/i386.c (convert_scalars_to_vector): Remove
7787         redundant code.
7788         * cse.c (cse_insn): Compute cse_cfg_altered.
7789         (delete_trivially_dead_insns): Likewise.
7790         (cse_cc_succs): Likewise.
7791         (rest_of_handle_cse): Free dominance info if required.
7792         (rest_of_handle_cse2): Likewise.
7793         (rest_of_handle_cse_after_global_opts): Likewise.
7795 2016-05-11  Alan Modra  <amodra@gmail.com>
7797         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7798         abi_v4_pass_in_fpr): New functions.
7799         (rs6000_function_arg_boundary): Exclude complex IBM long double
7800         from 64-bit alignment when ABI_V4.
7801         (rs6000_function_arg, rs6000_function_arg_advance_1,
7802         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7804 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
7806         PR rtl-optimization/71028
7807         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7808         jump with just a return in the fallthrough block if the branch
7809         block contains just a return as well.
7811 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
7813         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7814         * match.pd ((X & Y) ^ Y): ... this.
7815         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7816         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7818 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7820         * read-md.c (require_char_ws): New function.
7821         (read_string): Simplify using require_char_ws.
7822         (handle_constants): Likewise.
7823         (handle_enum): Likewise.
7824         (handle_file): Likewise.
7825         * read-md.h (require_char_ws): New declaration.
7826         * read-rtl.c (read_conditions): Simplify using require_char_ws.
7827         (read_mapping): Likewise.
7828         (read_rtx_code): Likewise.
7829         (read_nested_rtx): Likewise.
7831 2016-05-10  James Norris  <jnorris@codesourcery.com>
7833         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7834         if offloading is enabled and -fopenacc or -fopenmp is specified.
7835         (CRTOFFLOADEND): Likewise.
7836         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7837         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7839 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
7841         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
7842         gotoff_operand code paths.  Use copy_to_suggested_regs and
7843         expand_simple_binop where appropriate.  Cleanup.
7845 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7847         PR target/70799
7848         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
7849         integer constants.
7850         (dimode_scalar_chain::vector_const_cost): New.
7851         (dimode_scalar_chain::compute_convert_gain): Handle constants.
7852         (dimode_scalar_chain::convert_op): Likewise.
7853         (dimode_scalar_chain::convert_insn): Likewise.
7855 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7857         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
7858         unary operation, not a binary one.
7860 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7862         PR middle-end/70877
7863         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
7864         calls with type casted fndecl.
7866 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
7868         PR tree-optimization/70786
7869         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
7870         * calls.c (initialize_argument_information): Bind bounds
7871         with corresponding args passed by reference.
7873 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
7875         PR target/70927
7876         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
7877         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
7878         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
7879         accordingly.
7881 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7883         PR target/70963
7884         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
7885         code for a zero scale factor.
7886         (vsx_xvcvdpuxds_scale): Likewise.
7888 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7890         * diagnostic-show-locus.c (layout::layout): Call show_ruler
7891         if show_ruler_p was set on the context.
7892         (layout::show_ruler): New method.
7893         * diagnostic.h (struct diagnostic_context): Add field
7894         "show_ruler_p".
7896 2016-05-10  Richard Biener  <rguenther@suse.de>
7898         PR tree-optimization/71039
7899         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
7900         (chk_uses): New function.
7901         (propagate_with_phi): Verify we can safely replicate the lhs of an
7902         aggregate assignment on all incoming edges.
7904 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
7906         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
7907         Forward declare.
7908         (rx_atomic_sequence): New class.
7909         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
7910         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
7911         non-inline.
7912         (rx_atomic_sequence::rx_atomic_sequence,
7913         rx_atomic_sequence::~rx_atomic_sequence): New functions.
7914         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
7915         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
7916         CTRLREG_INTB): New constants.
7917         (FETCHOP): New code iterator.
7918         (fethcop_name, fetchop_name2): New iterator code attributes.
7919         (QIHI): New mode iterator.
7920         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
7921         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
7922         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
7924 2016-05-10  Martin Liska  <mliska@suse.cz>
7926         * tree-inline.c (remap_dependence_clique): Do not remap
7927         debugging statements.
7929 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7931         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
7932         ("*fixuns_truncdfdi2_z13")
7933         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
7934         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
7935         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
7937 2016-05-10  Richard Biener  <rguenther@suse.de>
7939         PR tree-optimization/70497
7940         PR tree-optimization/28367
7941         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
7942         split out from ...
7943         (visit_reference_op_load): ... here.
7944         (vn_reference_lookup_3): Use it to handle subreg-like accesses
7945         with simplified BIT_FIELD_REFs.
7946         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
7947         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
7948         correctly.
7950 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
7952         * dwarf2out.c (add_abstract_origin_attribute): Adjust
7953         documentation comment.  For BLOCK nodes, add a
7954         DW_AT_abstract_origin attribute that points to the DIE generated
7955         for the origin BLOCK.
7956         (gen_lexical_block_die): Call add_abstract_origin_attribute for
7957         blocks from inlined functions.
7959 2016-05-10  Alan Modra  <amodra@gmail.com>
7961         PR target/70947
7962         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
7963         regrename modifying insns saving lr before __morestack call.
7964         * config/rs6000/rs6000.md (split_stack_return): Similarly for
7965         insns restoring lr after __morestack call.
7967 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
7969         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
7970         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
7971         expanders.
7972         * config/i386/sse.md (vec_interleave_high<mode>,
7973         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
7974         <avx512>_vpermt2var<mode>3_maskz): Likewise.
7976 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
7978         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
7979         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
7980         parallel reassociation for power8 and forward.
7982 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
7984         * config/i386/i386.md (absneg splitters with general regs): Use
7985         general_reg_operand predicate.
7986         (btsq peephole2): Use x86_64_immediate_operand to check if new
7987         value is suitable for immediate operand.  Generate emitted insn
7988         using RTL expressions.
7989         (btcq peephole2): Ditto.
7990         (btrq peephole2): Ditto.  Generate correct immediate operand
7991         for AND masking.
7993 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
7995         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
7996         bitpos.
7998 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8000         * tree-affine.c (wide_int_constant_multiple_p): Add missing
8001         pointer dereference.
8003 2016-05-09  Richard Biener  <rguenther@suse.de>
8005         PR tree-optimization/70985
8006         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8007         op0 isn't a gimple register.
8009 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
8011         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8012         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8013         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8014         (i6400_fpu_mult): New cpu units.
8015         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8016         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8017         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8018         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8019         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8020         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8021         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8022         (i6400_msa_long_float4, i6400_msa_long_float5)
8023         (i6400_msa_long_float8, i6400_msa_fdiv_df)
8024         (i6400_msa_fdiv_sf): New reservations.
8025         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8026         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8027         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8028         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8029         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8030         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8031         (msa_short_cmp, msa_short_float2, msa_short_logic3)
8032         (msa_short_store4, msa_long_load, msa_short_store)
8033         (msa_long_logic, msa_long_float2, msa_long_float4)
8034         (msa_long_float5, msa_long_float8, msa_long_mult)
8035         (msa_long_fdiv, msa_long_div): New reservations.
8037 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
8038             Sameera Deshpande  <sameera.deshpande@imgtec.com>
8039             Matthew Fortune  <matthew.fortune@imgtec.com>
8040             Graham Stott  <graham.stott@imgtec.com>
8041             Chao-ying Fu  <chao-ying.fu@imgtec.com>
8043         * config.gcc: Add MSA header file for mips*-*-* target.
8044         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8045         (Ubv8i, Urv8):  New constraints.
8046         * config/mips/mips-ftypes.def: Add function types for MSA
8047         builtins.
8048         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8049         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8050         * config/mips/mips-msa.md: New file.
8051         * config/mips/mips-protos.h
8052         (mips_split_128bit_const_insns): New prototype.
8053         (mips_msa_idiv_insns): Likewise.
8054         (mips_split_128bit_move): Likewise.
8055         (mips_split_128bit_move_p): Likewise.
8056         (mips_split_msa_copy_d): Likewise.
8057         (mips_split_msa_insert_d): Likewise.
8058         (mips_split_msa_fill_d): Likewise.
8059         (mips_expand_msa_branch): Likewise.
8060         (mips_const_vector_same_val_p): Likewise.
8061         (mips_const_vector_same_bytes_p): Likewise.
8062         (mips_const_vector_same_int_p): Likewise.
8063         (mips_const_vector_shuffle_set_p): Likewise.
8064         (mips_const_vector_bitimm_set_p): Likewise.
8065         (mips_const_vector_bitimm_clr_p): Likewise.
8066         (mips_msa_vec_parallel_const_half): Likewise.
8067         (mips_msa_output_division): Likewise.
8068         (mips_ldst_scaled_shift): Likewise.
8069         (mips_expand_vec_cond_expr): Likewise.
8070         * config/mips/mips.c (enum mips_builtin_type): Add
8071         MIPS_BUILTIN_MSA_TEST_BRANCH.
8072         (mips_gen_const_int_vector_shuffle): New prototype.
8073         (mips_const_vector_bitimm_set_p): New function.
8074         (mips_const_vector_bitimm_clr_p): Likewise.
8075         (mips_const_vector_same_val_p): Likewise.
8076         (mips_const_vector_same_bytes_p): Likewise.
8077         (mips_const_vector_same_int_p): Likewise.
8078         (mips_const_vector_shuffle_set_p): Likewise.
8079         (mips_symbol_insns): Forbid loading symbols via immediate for
8080         MSA.
8081         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8082         stores.
8083         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8084         MSA.
8085         (mips_lx_address_p): Add support load indexed address for MSA.
8086         (mips_address_insns): Add calculation of instructions needed for
8087         stores and loads for MSA.
8088         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
8089         CONST_VECTOR for MSA and let it fall through.
8090         (mips_ldst_scaled_shift): New function.
8091         (mips_subword_at_byte): Likewise.
8092         (mips_msa_idiv_insns): Likewise.
8093         (mips_legitimize_move): Validate MSA moves.
8094         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
8095         calculation of costs for MSA division.
8096         (mips_split_move_p): Check if MSA moves need splitting.
8097         (mips_split_move): Split MSA moves if necessary.
8098         (mips_split_128bit_move_p): New function.
8099         (mips_split_128bit_move): Likewise.
8100         (mips_split_msa_copy_d): Likewise.
8101         (mips_split_msa_insert_d): Likewise.
8102         (mips_split_msa_fill_d): Likewise.
8103         (mips_output_move): Handle MSA moves.
8104         (mips_expand_msa_branch): New function.
8105         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8106         Reinstate 'y' modifier.
8107         (mips_file_start): Add MSA .gnu_attribute.
8108         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8109         FPRs.
8110         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8111         (mips_class_max_nregs): Add register size for MSA supported mode.
8112         (mips_cannot_change_mode_class): Allow conversion between MSA
8113         vector modes and TImode.
8114         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8115         instruction.
8116         (mips_secondary_reload_class): Force MSA loads/stores via memory.
8117         (mips_preferred_simd_mode): Add preffered modes for MSA.
8118         (mips_vector_mode_supported_p): Add MSA supported modes.
8119         (mips_autovectorize_vector_sizes): New function.
8120         (mips_msa_output_division): Likewise.
8121         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8122         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8123         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8124         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8125         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8126         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8127         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8128         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8129         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8130         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8131         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8132         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8133         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8134         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8135         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8136         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8137         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8138         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8139         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8140         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8141         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8142         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8143         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8144         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8145         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8146         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8147         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8148         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8149         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8150         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8151         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8152         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8153         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8154         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8155         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8156         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8157         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8158         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8159         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8160         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8161         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8162         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8163         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8164         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8165         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8166         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8167         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8168         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8169         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8170         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8171         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8172         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8173         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8174         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8175         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8176         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8177         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8178         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8179         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8180         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8181         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8182         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8183         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8184         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8185         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8186         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8187         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8188         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8189         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8190         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8191         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8192         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8193         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8194         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8195         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8196         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8197         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8198         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8199         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8200         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8201         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8202         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8203         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8204         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8205         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8206         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8207         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8208         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8209         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8210         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8211         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8212         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8213         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8214         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8215         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8216         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8217         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8218         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8219         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8220         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8221         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8222         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8223         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8224         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8225         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8226         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8227         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8228         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8229         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8230         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8231         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8232         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8233         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8234         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8235         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8236         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8237         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8238         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8239         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8240         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8241         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8242         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8243         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8244         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8245         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8246         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8247         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8248         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8249         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8250         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8251         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8252         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8253         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8254         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8255         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8256         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8257         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8258         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8259         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8260         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8261         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8262         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8263         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8264         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8265         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8266         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8267         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8268         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8269         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8270         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8271         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8272         move_v builtins.
8273         (mips_get_builtin_decl_index): New array.
8274         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8275         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8276         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8277         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8278         (mips_init_builtins): Initialize mips_get_builtin_decl_index
8279         array.
8280         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8281         hook.
8282         (mips_expand_builtin_insn): Prepare operands for
8283         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8284         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8285         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8286         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8287         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8288         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8289         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8290         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8291         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8292         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8293         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8294         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8295         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8296         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8297         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8298         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8299         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8300         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8301         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8302         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8303         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8304         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8305         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8306         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8307         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8308         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8309         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8310         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8311         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8312         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8313         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8314         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8315         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8316         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8317         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8318         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8319         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8320         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8321         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8322         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8323         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8324         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8325         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8326         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8327         These are set implicitly and an error is reported if overridden.
8328         (mips_expand_builtin_msa_test_branch): New function.
8329         (mips_expand_msa_shuffle): Likewise.
8330         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8331         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8332         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8333         (mips_expand_vec_unpack): Add support for MSA.
8334         (mips_expand_vector_init): Likewise.
8335         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8336         instead of const0_rtx.
8337         (mips_msa_vec_parallel_const_half): New function.
8338         (mips_gen_const_int_vector): Likewise.
8339         (mips_gen_const_int_vector_shuffle): Likewise.
8340         (mips_expand_msa_cmp): Likewise.
8341         (mips_expand_vec_cond_expr): Likewise.
8342         * config/mips/mips.h
8343         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8344         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8345         specified.
8346         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8347         (ISA_HAS_MSA): New macro.
8348         (UNITS_PER_MSA_REG): Likewise.
8349         (BITS_PER_MSA_REG): Likewise.
8350         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8351         (MSA_REG_FIRST): New macro.
8352         (MSA_REG_LAST): Likewise.
8353         (MSA_REG_NUM): Likewise.
8354         (MSA_REG_P): Likewise.
8355         (MSA_REG_RTX_P): Likewise.
8356         (MSA_SUPPORTED_MODE_P): Likewise.
8357         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8358         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8359         * config/mips/mips.md: Include mips-msa.md.
8360         (alu_type): Add simd_add.
8361         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8362         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8363         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8364         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8365         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8366         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8367         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8368         simd_move, simd_load, simd_store.  Choose "multi" for moves
8369         for "qword_mode".
8370         (qword_mode): New attribute.
8371         (insn_count): Add instruction count for quad moves.
8372         Increase the count for MIPS SIMD division.
8373         (UNITMODE): Add UNITMODEs for vector types.
8374         (addsub): New code iterator.
8375         * config/mips/mips.opt (mmsa): New option.
8376         * config/mips/msa.h: New file.
8377         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8378         specified.
8379         * config/mips/mti-linux.h: Likewise.
8380         * config/mips/predicates.md
8381         (const_msa_branch_operand): New constraint.
8382         (const_uimm3_operand): Likewise.
8383         (const_uimm4_operand): Likewise.
8384         (const_uimm5_operand): Likewise.
8385         (const_uimm8_operand): Likewise.
8386         (const_imm5_operand): Likewise.
8387         (aq10b_operand): Likewise.
8388         (aq10h_operand): Likewise.
8389         (aq10w_operand): Likewise.
8390         (aq10d_operand): Likewise.
8391         (const_m1_operand): Likewise.
8392         (reg_or_m1_operand): Likewise.
8393         (const_exp_2_operand): Likewise.
8394         (const_exp_4_operand): Likewise.
8395         (const_exp_8_operand): Likewise.
8396         (const_exp_16_operand): Likewise.
8397         (const_vector_same_val_operand): Likewise.
8398         (const_vector_same_simm5_operand): Likewise.
8399         (const_vector_same_uimm5_operand): Likewise.
8400         (const_vector_same_uimm6_operand): Likewise.
8401         (const_vector_same_uimm8_operand): Likewise.
8402         (par_const_vector_shf_set_operand): Likewise.
8403         (reg_or_vector_same_val_operand): Likewise.
8404         (reg_or_vector_same_simm5_operand): Likewise.
8405         (reg_or_vector_same_uimm6_operand): Likewise.
8406         * doc/extend.texi (MIPS SIMD Architecture Functions): New
8407         section.
8408         * doc/invoke.texi (-mmsa): Document new option.
8410 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8412         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8413         * configure: Regenerate.
8414         * config.in: Regenerate.
8415         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8416         on -fvtable-verify.
8417         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8418         (ENDFILE_VTV_SPEC): Define.
8420 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
8422         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8423         registers in all interrupt handlers if necessary.
8424         (rl78_option_override): Add warning.
8425         (MUST_SAVE_MDUC_REGISTERS): New macro.
8426         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8427         * config/rl78/rl78.c (check_mduc_usage): New function.
8428         (mduc_regs): New structure to hold MDUC register data.
8429         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8430         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8431         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8432         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8433         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8434         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8436 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
8438         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8439         (tree-ssa-loop-niter.h): Ditto.
8440         (idx_within_array_bound, ref_within_array_bound): New functions.
8441         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8442         Factor out check on writable base object to ...
8443         (base_object_writable): ... here.
8445 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8447         * config/arm/arm.md (probe_stack): Add modes to set source
8448         and destination.
8450 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
8452         * regrename.c (base_reg_class_for_rename): New static function.
8453         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8455 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
8457         * cgraph.c (thunk_adjust): Export.
8458         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8459         * cgraphunit.c (thunk_adjust): Export.
8460         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8461         thunks.
8462         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8463         inlinable.
8464         * tree-inline.c (expand_call_inline): Expand thunks inline.
8466 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
8468         PR target/70998
8469         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8470         (*sse2_vd_cvtss2sd): Ditto.
8471         * config/i386/i386.md
8472         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8473         Generate *sse2_vd_cvtsd2ss pattern.
8474         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8475         Generate *sse2_vd_cvtss2sd pattern.
8477 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8479         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8480         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
8481         users.
8483 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8485         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8486         * config/sh/sh.c: Define and declare variables on first use throughout
8487         the file.
8488         (current_function_interrupt): Change to bool type.
8489         (frame_insn): Rename to emit_frame_insn and update users.
8490         (push_regs): Use bool for 'interrupt_handler' argument.
8491         (save_schedule_s): Remove.
8492         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8493         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8494         targetm.asm_out.unaligned_op.di.
8495         (gen_far_branch): Remove redundant forward declaration.
8496         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8497         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8498         (sh_set_return_address, sh_function_ok_for_sibcall,
8499         scavenge_reg): Update comments.
8500         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8501         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8502         (sh_attr_renesas_p): Remove unnecessary parentheses.
8503         (branch_dest): Simplify.
8504         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8505         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8506         (CUMULATIVE_ARGS): Change macro to typedef.
8507         (current_function_interrupt): Change to bool type.
8508         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8509         Surround with __cplusplus ifdef.
8510         (sh_compare_op0, sh_compare_op1): Remove.
8511         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8513 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
8515         * config/arm/arm.md: (arch): Add neon.
8516         (arch_enabled): Return yes for arch neon when TARGET_NEON.
8517         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
8518         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
8519         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
8520         attributes for alt renumbering.  Mark alt 3 as non-predicable.
8521         (thumb2_movdf_vfp): Likewise.
8523 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
8525         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8526         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8527         (*andqi_1): Add preferred_for_speed attribute to disparage
8528         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8529         (*<code>qi_1): Ditto.
8530         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8531         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8532         (*ashlqi3_1): Ditto.
8533         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8534         Add preferred_for_size attribute to disparage alternative 0 and
8535         preferred_for_speed attribute to disparage alternative 1 for
8536         TARGET_PARTIAL_REG_STALL targets.
8538 2016-05-07  Tom de Vries  <tom@codesourcery.com>
8540         PR tree-optimization/70956
8541         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8542         def.
8544 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
8546         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8547         * config/sh/sh.c (sh_cbranch_distance): Implement it.
8548         * config/sh/sh.md (branch_zero): Remove define_attr.
8549         (define_delay): Disable delay slot if branch distance is one insn.
8551 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8553         * config/i386/i386.md (LEAMODE): New mode attribute.
8554         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8555         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8556         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
8557         operand 2 predicate.
8558         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8559         (*lea<mode>_general_3): Ditto.
8560         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8562 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8564         * genmddump.c (main): Convert argv from char ** to const char **.
8566 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8568         * coretypes.h (OVERRIDE): New macro.
8569         (FINAL): New macro.
8571 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
8573         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8574         allow coalescing if the types are compatible.
8576 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8578         * pass_manager.h (pass_manager::register_pass_name): New method.
8579         (pass_manager::get_pass_by_name): New method.
8580         (pass_manager::create_pass_tab): New method.
8581         (pass_manager::m_name_to_pass_map): New field.
8582         * passes.c (name_to_pass_map): Delete global in favor of field
8583         "m_name_to_pass_map" of pass_manager.
8584         (register_pass_name): Rename from a function to...
8585         (pass_manager::register_pass_name): ...this method, updating
8586         for renaming of global "name_to_pass_map" to field
8587         "m_name_to_pass_map".
8588         (create_pass_tab): Rename from a function to...
8589         (pass_manager::create_pass_tab): ...this method, updating
8590         for renaming of global "name_to_pass_map" to field.
8591         (get_pass_by_name): Rename from a function to...
8592         (pass_manager::get_pass_by_name): ...this method.
8593         (enable_disable_pass): Convert use of get_pass_by_name to
8594         a method call, locating the pass_manager singleton.
8596 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8598         * genattr-common.c (main): Convert argv from char ** to const char **.
8599         * genattr.c (main): Likewise.
8600         * genattrtab.c (main): Likewise.
8601         * genautomata.c (initiate_automaton_gen): Likewise.
8602         (main): Likewise.
8603         * gencodes.c (main): Likewise.
8604         * genconditions.c (main): Likewise.
8605         * genconfig.c (main): Likewise.
8606         * genconstants.c (main): Likewise.
8607         * genemit.c (main): Likewise.
8608         * genenums.c (main): Likewise.
8609         * genextract.c (main): Likewise.
8610         * genflags.c (main): Likewise.
8611         * genmddeps.c (main): Likewise.
8612         * genopinit.c (main): Likewise.
8613         * genoutput.c (main): Likewise.
8614         * genpeep.c (main): Likewise.
8615         * genpreds.c (main): Likewise.
8616         * genrecog.c (main): Likewise.
8617         * gensupport.c (init_rtx_reader_args_cb): Likewise.
8618         (init_rtx_reader_args): Likewise.
8619         * gensupport.h (init_rtx_reader_args_cb): Likewise.
8620         (init_rtx_reader_args): Likewise.
8621         * gentarget-def.c (main): Likewise.
8622         * read-md.c (read_md_files): Likewise.
8623         * read-md.h (read_md_files): Likewise.
8625 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8627         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8628         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8629         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8630         Remove unused predicate.
8631         (register_and_not_fp_reg_operand): Ditto.
8633 2016-05-06  Martin Liska  <mliska@suse.cz>
8635         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8636         instead of vec as the vector is local to the function.
8638 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8640         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8641         avx512bw alternative.
8643         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8644         before the ashr<mode>3 pattern.
8646         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8647         v instead of x in vex or maybe_vex alternatives, use
8648         maybe_evex instead of vex in prefix.
8650         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8651         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8652         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8653         in vex or maybe_vex alternatives, use maybe_evex instead of vex
8654         in prefix.
8656         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8657         v instead of x in vex or maybe_vex alternatives, use
8658         maybe_evex instead of vex in prefix.
8660         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8661         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8662         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8663         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8664         alternatives, use maybe_evex instead of vex in prefix.
8666         * config/i386/sse.md (vec_interleave_lowv4sf,
8667         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8668         v instead of x in vex or maybe_vex alternatives, use
8669         maybe_evex instead of vex in prefix.
8671         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8672         v instead of x in vex or maybe_vex alternatives, use
8673         maybe_evex instead of vex in prefix.
8675         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8676         v constraint instead of x.
8678 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
8680         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8681         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8682         equality first.
8684 2016-05-06  Richard Biener  <rguenther@suse.de>
8686         PR tree-optimization/70948
8687         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8688         Properly clobber all fields of va_list for __builtin_va_start.
8690 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8692         PR debug/70935
8693         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8694         loop latch destination.
8696 2016-05-06  Martin Liska  <mliska@suse.cz>
8698         * tree-ssa-uninit.c: Apply manual changes
8699         to the GNU coding style.
8700         (prune_uninit_phi_opnds): Rename from
8701         prune_uninit_phi_opnds_in_unrealizable_paths.
8703 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8705         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8706         mspace): Remove deprecated options.
8707         * doc/invoke.texi (SH options): Remove -mspace.
8709 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8711         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8713 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8715         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8716         corresponding combine split pattern.
8718 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8720         PR target/58219
8721         * config/sh/predicates.md (long_displacement_mem_operand): New.
8722         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8723         Add movi20, movi20s alternatives.  Adjust length attribute for
8724         alternatives.
8725         (movsi_ie): Allow for any FPU.  Adjust length attribute for
8726         alternatives.
8727         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
8728         attribute for alternatives.
8729         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8730         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8731         length attribute for alternatives.
8733 2016-05-06  Richard Biener  <rguenther@suse.de>
8735         PR tree-optimization/70960
8736         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8738 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8740         PR target/52933
8741         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8742         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8744 2016-05-06  Marek Polacek  <polacek@redhat.com>
8746         PR sanitizer/70875
8747         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8749 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8751         PR target/54089
8752         * config/sh/sh.md (*rotcr): Add another variant.
8754 2016-05-06  Richard Biener  <rguenther@suse.de>
8756         PR middle-end/70931
8757         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8759 2016-05-06  Richard Biener  <rguenther@suse.de>
8761         PR middle-end/70941
8762         * fold-const.c (split_tree): Always convert to the original type
8763         before negating.
8765 2016-05-06  Richard Biener  <rguenther@suse.de>
8767         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8768         (fwprop_addr): Likewise.
8770 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8772         PR target/70873
8773         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8774         New prototype.
8775         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8776         * config/i386/i386.md (push mem splitter): Use find_constant_src in
8777         the splitter condition.
8778         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8779         the splitter condition.
8780         (FP float_extend load splitter): Ditto.
8782 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
8784         * config/i386/i386.md (peehole2 patterns): Change true_regnum
8785         to REGNO in all peephole2 patterns.
8786         (post-reload splitters): Change true_regnum to REGNO in
8787         post-reload splitters.
8788         (zero_extend splitters): Use general_reg_operand and
8789         nonimmediate_gr_operand predicates.
8791 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
8793         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8794         v constraint instead of x.
8796 2016-05-05  Alan Modra  <amodra@gmail.com>
8798         PR target/68662
8799         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8800         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
8801         TARGET_NO_FP_IN_TOC for -mrelocatable.
8802         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8803         TARGET_RELOCATABLE test.
8804         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8805         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8806         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8807         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8808         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8809         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8810         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8811         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8812         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8813         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8814         Likewise.
8815         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8816         (rs6000_stack_info): Likewise.
8817         (rs6000_elf_asm_out_constructor): Likewise.
8818         (rs6000_elf_asm_out_destructor): Likewise.
8819         (rs6000_elf_declare_function_name): Likewise.
8820         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8821         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8822         Don't define.
8824 2016-05-05  Alan Modra  <amodra@gmail.com>
8826         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8828 2016-05-05  Alan Modra  <amodra@gmail.com>
8830         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8831         out-of-line gpr restore for one or two regs if that would add
8832         a save of lr.
8834 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
8836         PR target/70873
8837         * config/i386/i386.md
8838         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8839         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
8840         as operand 0 predicate.
8841         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
8842         Ditto.
8843         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
8844         Ditto.  Emit the pattern using RTX.
8846         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
8847         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
8848         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
8849         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
8850         Ditto.
8851         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
8852         sse_reg_operand as operand 0 predicate.
8854         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
8855         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
8856         instead of gen_rtx_REG.
8857         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
8858         Ditto.
8860 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8862         * function.c (emit_use_return_register_into_block): Delete.
8863         (gen_return_pattern): Delete.
8864         (emit_return_into_block): Delete.
8865         (active_insn_between): Delete.
8866         (convert_jumps_to_returns): Delete.
8867         (emit_return_for_exit): Delete.
8868         (thread_prologue_and_epilogue_insns): Delete all code dealing with
8869         simple_return for shrink-wrapped blocks.
8870         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
8871         end of blocks that need one.
8872         (get_unconverted_simple_return): Delete.
8873         (convert_to_simple_return): Delete.
8874         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
8875         (convert_to_simple_return): Ditto.
8877 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8879         * cfgcleanup.c (bb_is_just_return): New function.
8880         (try_optimize_cfg): Simplify jumps to return, branches to return,
8881         and branches around return.
8883 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
8885         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
8886         branch to a return.
8888 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8890         PR c++/70906
8891         PR c++/70933
8892         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
8893         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
8894         assert flags & OEP_HASH_CHECK, instead of asserting it
8895         never happens.  Handle TARGET_EXPR.
8896         * fold-const.c (operand_equal_p): For hash verification,
8897         or in OEP_HASH_CHECK into flags.
8899 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
8901         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
8902         comment.
8903         (compute_samebase_partition_bases): Fix typo.
8905 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
8907         * config/i386/sse.md (vec_interleave_highv8sf,
8908         vec_interleave_lowv8sf, vec_interleave_highv4df,
8909         vec_interleave_lowv4df): Remove constraints from expanders.
8911         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
8913 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8915         * tree-inline.c (expand_call_inline): Fix path dealing with
8916         making lhs of call statement undefined.
8918 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
8920         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8921         Check availability on NODE, too.
8922         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
8923         (cgraph_node::call_for_symbol_and_aliases): Likewise.
8924         (varpool_node::call_for_symbol_and_aliase): Likewise.
8925         * ipa-pure-const.c (add_new_function): Analyze all bodies.
8926         (propagate_pure_const): Propagate across interposable functions, too.
8927         (skip_function_for_local_pure_const): Do not skip interposable bodies
8928         with aliases.
8929         (pass_local_pure_const::execute): Update.
8931 2016-05-04  Marek Polacek  <polacek@redhat.com>
8933         * doc/invoke.texi: Document -Wdangling-else.
8935 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8937         * config.gcc: Error out when conflicting multilib is detected.  Do not
8938         loop over multilibs since no combination is legal.
8940 2016-05-04  Alan Modra  <amodra@gmail.com>
8942         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
8943         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
8944         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8945         Align .toc.
8947 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
8949         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
8950         Clean up p5600 comments.
8952 2016-05-04  Richard Biener  <rguenther@suse.de>
8954         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
8955         constructor simplifications.
8956         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
8958 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
8960         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
8961         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
8962         result.set_rtx is null instead of aborting.
8963         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
8964         Always enable.
8965         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
8966         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
8967         *mov<mode>_store_postinc): New patterns.
8969 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
8971         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
8972         as commutative.  Check both conversions are NOP.
8973         ((A & B) OP (C & B)): Remove.
8975 2016-05-04  Alan Modra  <amodra@gmail.com>
8977         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
8979 2016-05-04  Alan Modra  <amodra@gmail.com>
8981         PR target/70866
8982         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
8983         when cr2,3,4 are all fixed regs.
8985 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
8987         PR rtl-optimization/57193
8988         * opts.c (default_options_table): Revert OPT_frename_registers change.
8989         * doc/invoke.texi (-frename-registers, -O2): Likewise.
8991 2016-05-03  Martin Sebor  <msebor@redhat.com>
8993         PR c++/66561
8994         * builtins.c (fold_builtin_FILE): New function.
8995         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
8996         (fold_builtin_0): Call them.
8997         * gimplify.c (gimplify_call_expr): Remove the handling of
8998         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9000         PR c++/66561
9001         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9002         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9003         constants.
9005         PR c++/66639
9006         * doc/extend.texi (Function Names as Strings): Update __func__,
9007         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9008         constants.
9010 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9011             Richard Biener  <rguenther@suse.de>
9013         PR tree-optimization/70916
9014         * tree-if-conv.c: Include cfganal.h.
9015         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9016         and remove_fake_exit_edges around the optimization pass.
9018 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
9020         * cgraph.c (symbol_table::create_edge): Set inline_failed.
9021         (cgraph_edge::make_direct): Likewise.
9022         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9023         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9024         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9025         (CIF_THUNK): New code.
9026         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9027         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9028         (compute_inline_parameters): Set inline_failed for thunks.
9029         (inline_analyze_function): Cleanup.
9030         * ipa-inline.c (can_inline_edge_p): Do not deal with
9031         call_stmt_cannot_inline_p.
9032         (can_early_inline_edge_p): Likewise.
9033         (early_inliner): Initialize inline_failed.
9034         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9036 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
9038         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9039         from nonimm_ssenomem_operand.
9040         (nonimm_ssenomem_operand): New predicate.
9041         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9042         as operand 0 predicate.
9043         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9044         Disable unsupported alternatives using "enabled" attribute.
9045         Use register_ssemem_operand as operand 0 predicate.
9046         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9048 2016-05-03  Marek Polacek  <polacek@redhat.com>
9050         PR c/70859
9051         * input.c (expansion_point_location): New function.
9052         * input.h (expansion_point_location): Declare.
9054 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9056         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9057         occurence with frame_offset_ ones.
9059 2016-05-03  Alan Modra  <amodra@gmail.com>
9061         PR rtl-optimization/70890
9062         * ira.c (combine_and_move_insns): When moving def_insn, remove
9063         equivs on use_insn.
9065 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9067         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9068         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9069         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9070         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9072 2016-05-03  Alan Modra  <amodra@gmail.com>
9074         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9075         for SAVE_MULTIPLE/STORE_MULTIPLE.
9077 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9079         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9080         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9082 2016-05-03  Richard Biener  <rguenther@suse.de>
9084         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9085         default true.
9086         (gimplify_arg): Likewise.
9087         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9088         re-writing the result to a decl if required.
9089         (internal_get_tmp_var): Add allow_ssa parameter
9090         and override into_ssa with it.
9091         (get_formal_tmp_var): Adjust.
9092         (get_initialized_tmp_var): Add allow_ssa parameter.
9093         (gimplify_arg): Add allow_ssa parameter and avoid generating
9094         SSA names for the result false.
9095         (gimplify_call_expr): If the call may return twice do not
9096         gimplify parameters into SSA.
9097         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9098         (gimplify_modify_expr): Adjust assert.  For noreturn calls
9099         with a SSA name LHS adjust its def.
9100         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9101         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9102         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9103         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9104         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
9105         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
9106         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9107         (optimize_target_teams): Do not allow SSA names for clause operands.
9108         (gimplify_expr): Likewise for where we mark the result addressable.
9109         * passes.def (pass_init_datastructures): Remove.
9110         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9111         (rewrite_stmt): Likewise.
9112         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9113         (replace_locals_op): Replace SSA names.
9114         (copy_gimple_seq_and_replace_locals): Init src_cfun.
9115         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9116         * cgraph.c (release_function_body): Free CFG annotations only
9117         when we have a CFG.  Simplify.
9118         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9119         force_gimple_operand instead of get_initialized_tmp_var.
9120         * tree-pass.h (make_pass_init_datastructures): Remove.
9121         * tree-ssa.c (execute_init_datastructures): Remove.
9122         (pass_data_init_datastructures): Likewise.
9123         (class pass_init_datastructures): Likewise.
9124         (make_pass_init_datastructures): Likewise.
9125         * omp-low.c (create_omp_child_function): Init SSA data structures.
9126         (grid_expand_target_grid_body): Likewise.
9127         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9128         name before adding it to names_to_release.
9129         (remove_bb): Always release SSA defs.
9130         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9131         before dereferencing it.
9132         * cgraphunit.c (init_lowered_empty_function): Always
9133         int SSA data structures.
9134         * tree-ssanames.c (release_defs): Remove assert that we are in
9135         SSA form.
9136         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9138 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9139             Uros Bizjak  <ubizjak@gmail.com>
9141         PR rtl-optimization/70467
9142         * config/i386/predicates.md (x86_64_hilo_int_operand,
9143         x86_64_hilo_general_operand): New predicates.
9144         * config/i386/constraints.md (Wd): New constraint.
9145         * config/i386/i386.md (mode attr di): Use Wd instead of e.
9146         (general_hilo_operand): New mode attr.
9147         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9148         instead of <general_operand>.
9149         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9150         x86_64_hilo_general_operand instead of <general_operand>.
9152 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9154         PR tree-optimization/70916
9155         * tree-if-conv.c (constant_or_ssa_name): Removed.
9156         (fold_build_cond_expr): Use is_gimple_val instead of
9157         constant_or_ssa_name.
9159         PR tree-optimization/70916
9160         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9161         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9163         PR target/49244
9164         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9165         (optimize_atomic_bit_test_and): New function.
9166         (pass_fold_builtins::execute): Use it.
9167         * optabs.def (atomic_bit_test_and_set_optab,
9168         atomic_bit_test_and_complement_optab,
9169         atomic_bit_test_and_reset_optab): New optabs.
9170         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9171         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9172         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9173         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9174         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9175         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9176         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9177         * doc/md.texi (atomic_bit_test_and_set@var{mode},
9178         atomic_bit_test_and_complement@var{mode},
9179         atomic_bit_test_and_reset@var{mode}): Document.
9180         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9181         atomic_bit_test_and_complement<mode>,
9182         atomic_bit_test_and_reset<mode>): New expanders.
9183         (atomic_bit_test_and_set<mode>_1,
9184         atomic_bit_test_and_complement<mode>_1,
9185         atomic_bit_test_and_reset<mode>_1): New insns.
9187 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
9189         PR rtl-optimization/70687
9190         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
9191         instead of unsigned HOST_WIDE_INT.
9193 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
9195         PR rtl-optimization/44281
9196         * hard-reg-set.h (struct target_hard_regs): New field
9197         x_fixed_nonglobal_reg_set.
9198         (fixed_nonglobal_reg_set): New macro.
9199         * reginfo.c (init_reg_sets_1): Initialize it.
9200         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9201         of fixed_reg_set.
9202         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9204 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9206         PR tree-optimization/56541
9207         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9208         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9209         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9210         (any_complicated_phi): new static variable.
9211         (aggressive_if_conv): delete.
9212         (if_convertible_phi_p): support phis with more than two arguments.
9213         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9214         critical pred edges.
9215         (ifcvt_split_critical_edges): support phis with more than two
9216         arguments by checking new parameter.  only split critical edges
9217         if needed.
9218         (tree_if_conversion): handle simd pragma marked loop using new
9219         local variable aggressive_if_conv.  check any_complicated_phi.
9221 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9223         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9224         before using it.
9226 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9228         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9229         cbase.
9231 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9233         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9234         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9235         define_insn_and_split.
9236         (mulsi3_i): New define_insn_and_split.
9237         (mulsi3_call): Convert to define_insn.
9238         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9239         Remove constraints.
9241 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9243         * machmode.h (mode_complex): Add support to give the complex mode
9244         for a given mode.
9245         (GET_MODE_COMPLEX_MODE): Likewise.
9246         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9247         stored by build_complex_type and gfc_build_complex_type instead of
9248         trying to figure out the appropriate mode based on the size. Raise
9249         an assertion error, if the type was not set.
9250         * genmodes.c (struct mode_data): Add field for the complex type of
9251         the given type.
9252         (blank_mode): Likewise.
9253         (make_complex_modes): Remember the complex mode created in the
9254         base type.
9255         (emit_mode_complex): Write out the mode_complex array to map a
9256         type mode to the complex version.
9257         (emit_insn_modes_c): Likewise.
9258         * tree.c (build_complex_type): Set the complex type to use before
9259         calling layout_type.
9260         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9261         support for __float128 complex datatypes.
9262         (rs6000_hard_regno_mode_ok): Likewise.
9263         (rs6000_setup_reg_addr_masks): Likewise.
9264         (rs6000_complex_function_value): Likewise.
9265         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9266         __float128 and __ibm128 complex.
9267         (FLOAT128_IBM_P): Likewise.
9268         (ALTIVEC_ARG_MAX_RETURN): Likewise.
9269         * doc/extend.texi (Additional Floating Types): Document that
9270         -mfloat128 must be used to enable __float128.  Document complex
9271         __float128 and __ibm128 support.
9273 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9275         PR target/49244
9276         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9277         char/short arguments promoted to int because of promote_prototypes.
9279 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9281         * config/i386/predicates.md (register_ssemem_operand): New predicate.
9282         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9283         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9284         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
9285         alternatives using "enabled" attribute.  Use register_ssemem_operand
9286         as operand 1 predicate.
9287         (*cmpi<unord>xf_i387): Split XFmode pattern from
9288         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9289         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9290         *absneg<mode>2_i387.  Disable unsupported alternatives using
9291         "enabled" attribute.
9292         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9294 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9296         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9297         marker.
9298         (oacc_loop_process): Check mask for loop termination.
9300 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9302         * cif-code.def (CIF_THUNK): Add.
9303         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9304         accidental change.
9306 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9308         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9309         (dump_inline_summary): Dump it.
9310         (fp_expression_p): New predicate.
9311         (estimate_function_body_sizes): Use it.
9312         (inline_merge_summary): Merge fp_expressions.
9313         (inline_read_section): Read fp_expressions.
9314         (inline_write_summary): Write fp_expressions.
9315         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9316         codegen boundary if either caller or callee is !fp_expressions.
9317         * ipa-inline.h (inline_summary): Add fp_expressions.
9318         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9319         to fp_expressions be sure the fp generation flags are updated.
9321 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9323         PR rtl-optimization/70467
9324         * cse.c (cse_insn): Handle no-op MEM moves after folding.
9326         PR rtl-optimization/70467
9327         * ipa-pure-const.c (check_call): Handle internal calls even in
9328         ipa mode like in local mode.
9330 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9332         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9334 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9336         * match.pd (X u< X, X u> X): New transformations.
9338 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9340         * flag-types.h (enum warn_strict_overflow_code): Move ...
9341         * coretypes.h: ... here.
9342         * fold-const.h (fold_overflow_warning): Declare.
9343         * fold-const.c (fold_overflow_warning): Make non-static.
9344         (fold_comparison): Move the transformation of X +- C1 CMP C2
9345         into X CMP C2 -+ C1 ...
9346         * match.pd: ... here.
9347         * gimple-fold.c (fold_stmt_1): Protect with
9348         fold_defer_overflow_warnings.
9350 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9352         * omp-low.c (struct oacc_loop): Add 'inner' field.
9353         (new_oacc_loop_raw): Initialize it to zero.
9354         (oacc_loop_fixed_partitions): Initialize it.
9355         (oacc_loop_auto_partitions): Partition outermost loop to outermost
9356         available partitioning.
9358 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9360         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9361         register_operand.
9362         (umulsidi3): Likewise.
9363         (indirect_jump): Fix jump instruction assembly patterns.
9365 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
9367         PR target/70860
9368         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9369         (nvptx_function_value): Assert non-NULL cfun.
9371 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
9373         PR rtl-optimization/70886
9374         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9376         * cselib.h (rtx_equal_for_cselib_1): Declare.
9377         (rtx_equal_for_cselib_p: New inline function.
9378         * cselib.c (rtx_equal_for_cselib_p): Delete.
9379         (rtx_equal_for_cselib_1): Make public.
9381 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9383         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9384         (register_mixssei387nonimm_operand): Remove predicate.
9385         * config/i386/i386.md (*fop_<mode>_comm): Merge from
9386         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
9387         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
9388         for TARGET_MIX_SSE_I387 alternatives.
9389         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9390         Disable unsupported alternatives using "enabled" attribute.  Use
9391         nonimm_ssenomem_operand as operand 1 predicate.  Also check
9392         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9394 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9396         * tree.c (cst_and_fits_in_hwi): Simplify.
9398 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9400         * tree.h (wi::to_wide): New function.
9401         * expr.c (expand_expr_real_1): Use wi::to_wide.
9402         * fold-const.c (int_const_binop_1): Likewise.
9403         (extract_muldiv_1): Likewise.
9405 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9407         * wide-int.h: Update offset_int and widest_int documentation.
9408         (WI_SIGNED_SHIFT_RESULT): New macro.
9409         (wi::binary_shift): Define signed_shift_result_type for
9410         shifts on offset_int- and widest_int-like types.
9411         (generic_wide_int): Support <<= and >>= if << and >> are supported.
9412         * tree.h (int_bit_position): Use shift operators instead of wi::
9413          shifts.
9414         * alias.c (adjust_offset_for_component_ref): Likewise.
9415         * expr.c (get_inner_reference): Likewise.
9416         * fold-const.c (fold_comparison): Likewise.
9417         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9418         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9419         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9420         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9421         (stmt_kills_ref_p): Likewise.
9422         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9423         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9424         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9425         (ao_ref_init_from_vn_reference): Likewise.
9427 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9429         * wide-int.h: Update offset_int and widest_int documentation.
9430         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9431         (wi::binary_traits): Allow ordered comparisons between offset_int and
9432         offset_int, between widest_int and widest_int, and between either
9433         of these types and basic C types.
9434         (operator <, <=, >, >=): Define for the same combinations.
9435         * tree.h (tree_int_cst_lt): Use comparison operators instead
9436         of wi:: comparisons.
9437         (tree_int_cst_le): Likewise.
9438         * gimple-fold.c (fold_array_ctor_reference): Likewise.
9439         (fold_nonarray_ctor_reference): Likewise.
9440         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9441         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9442         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9443         * tree-sra.c (completely_scalarize): Likewise.
9444         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9445         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9446         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9447         (check_for_binary_op_overflow): Likewise.
9448         (search_for_addr_array): Likewise.
9449         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9451 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9453         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9454         (arc_save_restore): Likewise.
9455         (arc_dwarf_register_span): Likewise.
9456         (arc_output_pic_addr_const): Initialize suffix variable.
9458 2016-05-02  Martin Liska  <mliska@suse.cz>
9460         * symbol-summary.h (function_summary::function_summary):
9461         Remove checking assert for all cgraph nodes.
9462         (function_summary::get): Check summary_uid.
9463         (symtab_insertion): Check summary_uid.
9465 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9467         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9468         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9469         bmaskn instruction.
9470         (arc_dwarf_register_span): Remove enum keyword.
9471         (compact_memory_operand_p): New function.
9472         * config/arc/arc.h (reg_class): Add code density register classes.
9473         (REG_CLASS_NAMES): Likewise.
9474         (REG_CLASS_CONTENTS): Likewise.
9475         * config/arc/arc.md (*movqi_insn): Add code density instructions.
9476         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9477         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9478         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9479         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9480         constraints.
9481         (h, Rcd, Rsd, Rzd): New register constraints.
9482         (T): Use compact_memory_operand_p function.
9483         * config/arc/predicates.md (compact_load_memory_operand): Remove.
9485 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9487         * config/sh/sh.md (*negnegt, *movtt): Remove.
9489 2016-05-02  Marek Polacek  <polacek@redhat.com>
9490             Tom de Vries  <tom@codesourcery.com>
9492         PR tree-optimization/70700
9493         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9494         bigger than FIRST_REF_NODE.
9496 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9498         PR target/52898
9499         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9500         TARGET_CMPEQDI_T.
9501         (prepare_cbranch_operands): Don't use scratch register.  Assume that
9502         function is used when pseudos can be created.
9503         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
9504         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9505         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9506         define_expand.  Allow it only when pseudos can be created.
9507         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9509 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
9511         * config/i386/constraints.md (BC): Only allow -1 operands.
9512         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9513         Add "enabled" attribute.  Update XI mode attribute calculation.
9514         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9515         (*movoi_internal_avx): Update XI mode attribute calculation.
9516         (*movti_internal): Ditto.
9518 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9520         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9521         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9523 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
9525         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9526         statement on instruction code.  Remove trailing spaces.
9527         (altivec_expand_stv_builtin): Likewise.
9529 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9531         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9532         (TARGET_FPU_DOUBLE): Simplify.
9533         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9534         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9535         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9536         with 'TARGET_FPU_DOUBLE'.
9537         * config/sh/sh.md: Likewise.
9539 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
9541         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9542         SH_DIV_STR_FOR_SIZE): Remove.
9543         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9544         SH_DIV_STR_FOR_SIZE): Remove.
9546 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9548         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9549         logical_reg_operand): Delete.
9550         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9551         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9552         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9553         match_operand and match_test.
9554         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
9555         variables on their first use.  Return bool values.
9556         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9557         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9558         arith_reg_operand for input operand.  Remove empty constraints.
9559         (xorsi3): Delete.
9560         (*xorsi3_compact): Rename to xorsi3.
9561         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9562         (*zero_extend<mode>si2_disp_mem): Update comment.
9563         (mov_nop): Delete.
9565 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9567         * config/sh/t-sh: Remove SH5 support.
9568         * config.gcc: Likewise.
9569         * configure: Likewise.
9571 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9573         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9575 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9577         * config/sh/sh.c (register_sh_passes, sh_option_override,
9578         sh_print_operand, prepare_move_operands,
9579         sh_can_follow_jump): Remove TARGET_SH1 checks.
9580         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9581         PROMOTE_MODE): Likewise.
9582         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9583         movdi): Likewise.
9585 2016-04-30  Alan Modra  <amodra@gmail.com>
9587         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9588         restoring when fixed_reg_p, but allow out-of-line or stmw save.
9589         Check for user regs later to avoid unnecessary looping over regs.
9590         Merge user reg check with non-saved reg check.  Don't force
9591         inline VR restore when static chain used.
9592         (rs6000_frame_related): Omit eh_frame info for user regs when
9593         saving.
9594         (fixed_regs_p): Delete.
9596 2016-04-30  Alan Modra  <amodra@gmail.com>
9598         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9599         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
9600         Update all uses.
9602 2016-04-30  Alan Modra  <amodra@gmail.com>
9604         PR target/69645
9605         * config/rs6000/rs6000.c (fixed_reg_p): New function.
9606         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
9607         Update all uses.
9609 2016-04-30  Alan Modra  <amodra@gmail.com>
9611         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9612         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
9613         flag_pic test for Darwin.
9615 2016-04-30  Alan Modra  <amodra@gmail.com>
9617         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9618         throw_calls_crossed.
9619         (REG_FREQ_CALLS_CROSSED): Delete.
9620         (REG_N_THROWING_CALLS_CROSSED): Delete.
9621         * regstat.c (regstat_bb_compute_ri): Don't calculate
9622         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9623         (dump_reg_info): Don't print call cross frequency.
9624         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9625         and REG_N_THROWING_CALLS_CROSSED.
9627 2016-04-30  Alan Modra  <amodra@gmail.com>
9629         * regs.h (struct reg_info_t): Delete live_length.
9630         (REG_LIVE_LENGTH): Delete macro.
9631         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9632         local_live, local_processed and local_live_last_luid params.
9633         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
9634         Formatting fixes.
9635         (regstat_compute_ri): Adjust for above.  Don't set
9636         REG_LIVE_LENGTH.
9637         (dump_reg_info): Don't print live length.
9638         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9639         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
9640         Localize loop_depth var.
9642 2016-04-30  Alan Modra  <amodra@gmail.com>
9644         * ira.c (enum valid_equiv): New.
9645         (validate_equiv_mem): Return enum.
9646         (update_equiv_mem): Create replacement in more cases.
9647         (add_store_equivs): Update validate_equiv_mem call.
9649 2016-04-30  Alan Modra  <amodra@gmail.com>
9651         * ira.c (combine_and_move_insns): Rather than scanning insns,
9652         use DF infrastucture to find use and def insns.
9654 2016-04-30  Alan Modra  <amodra@gmail.com>
9656         ira.c (combine_and_move_insns): Move invariant conditions..
9657         (ira.c): ..to here.  Call combine_and_move_insns before
9658         add_store_equivs.  Call grow_reg_equivs later.  Allocate
9659         req_equiv later using max_reg_num() rather than global max_regno.
9660         (contains_replace_regs): Delete.
9661         (add_store_equivs): Remove contains_replace_regs test.
9663 2016-04-30  Alan Modra  <amodra@gmail.com>
9665         * ira.c (struct equiv_mem_data): New.
9666         (equiv_mem, equiv_mem_modified): Delete static vars.
9667         (validate_equiv_mem_from_store): Use "data" param to communicate..
9668         (validate_equiv_mem): ..from here.
9670 2016-04-30  Alan Modra  <amodra@gmail.com>
9672         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9673         split out from..
9674         (update_reg_equivs): ..here.  Move allocation and freeing of
9675         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9676         end_alias_analysis to..
9677         (ira): ..here.
9679 2016-04-30  Alan Modra  <amodra@gmail.com>
9681         * ira.c (pdx_subregs): Delete.
9682         (struct equivalence): Add pdx_subregs field.
9683         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
9684         pdx_subregs access.
9685         (update_equiv_regs): Don't create or free pdx_subregs.  Update
9686         pdx_subregs access.
9688 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9690         * config/rs6000/altivec.h: Change definitions of vec_xl and
9691         vec_xst.
9692         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9693         (LD_ELEMREV_V2DI): New.
9694         (LD_ELEMREV_V4SF): New.
9695         (LD_ELEMREV_V4SI): New.
9696         (LD_ELEMREV_V8HI): New.
9697         (LD_ELEMREV_V16QI): New.
9698         (ST_ELEMREV_V2DF): New.
9699         (ST_ELEMREV_V2DI): New.
9700         (ST_ELEMREV_V4SF): New.
9701         (ST_ELEMREV_V4SI): New.
9702         (ST_ELEMREV_V8HI): New.
9703         (ST_ELEMREV_V16QI): New.
9704         (XL): New.
9705         (XST): New.
9706         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9707         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9708         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9709         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9710         (altivec_expand_builtin): Add handling for
9711         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9712         (rs6000_invalid_builtin): Add error-checking for
9713         RS6000_BTM_P9_VECTOR.
9714         (altivec_init_builtins): Define builtins used to implement vec_xl
9715         and vec_xst.
9716         (rs6000_builtin_mask_names): Define power9-vector.
9717         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9718         (RS6000_BTM_P9_VECTOR): Define.
9719         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9720         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9721         (vsx_ld_elemrev_v2df): Likewise.
9722         (vsx_ld_elemrev_v4sf): Likewise.
9723         (vsx_ld_elemrev_v4si): Likewise.
9724         (vsx_ld_elemrev_v8hi): Likewise.
9725         (vsx_ld_elemrev_v16qi): Likewise.
9726         (vsx_st_elemrev_v2df): Likewise.
9727         (vsx_st_elemrev_v2di): Likewise.
9728         (vsx_st_elemrev_v4sf): Likewise.
9729         (vsx_st_elemrev_v4si): Likewise.
9730         (vsx_st_elemrev_v8hi): Likewise.
9731         (vsx_st_elemrev_v16qi): Likewise.
9732         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
9733         grammar.
9735 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
9737         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9738         out into ...
9739         (simplify_control_stmt_condition_1): ... here.  Recurse into
9740         BIT_AND_EXPRs and BIT_IOR_EXPRs.
9742 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
9744         PR target/69810
9745         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9746         (zero_extendqi<mode>2_dot): Revert earlier conversion from
9747         define_insn_and_split to define_insn.
9748         (zero_extendqi<mode>2_dot2): Same.
9749         (extendqi<mode>2_dot): Same.
9750         (extendqi<mode>2_dot2): Same.
9752 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9754         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9755         (probe_stack): New expander.
9756         (probe_stack_<mode>): New insn pattern.
9758 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9760         * config/i386/i386.md
9761         (operations with memory inputs setting flags peephole2):
9762         Remove uneeded REG_P checks.  Cleanup pattern generation.
9764 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9766         * tree-vect-loop.c (vect_transform_loop): Fix
9767         nb_iterations_upper_bound computation for vectorized loop.
9769 2016-04-29  Marek Polacek  <polacek@redhat.com>
9770             Jakub Jelinek  <jakub@redhat.com>
9772         PR sanitizer/70342
9773         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9774         TARGET_EXPR_SLOT as a base.
9776 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
9778         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9779         with 'rCm2' constraints to limit possible immediate size.
9780         (*load_zeroextendqisi_update): Likewise.
9781         (*load_signextendqisi_update): Likewise.
9782         (*loadhi_update): Likewise.
9783         (*load_zeroextendhisi_update): Likewise.
9784         (*load_signextendhisi_update): Likewise.
9785         (*loadsi_update): Likewise.
9786         (*loadsf_update): Likewise.
9788 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9790         * config/i386/predicates.md (constm1_operand): Fix comparison.
9792 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9794         * testsuite/gcc.target/arc/ieee_eq.c: New test.
9796 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
9798         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9799         remaining SH5 related settings.
9800         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9801         shmedia_prepare_call_address): Delete.
9802         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9803         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9804         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9805         UNSUPPORTED_SH2A): Remove m5 checks.
9806         (sh_divide_strategy_e): Remove SH5 division strategies.
9807         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9808         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9810 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9812         * config/s390/s390.c (s390_rtx_costs): Update documentation.
9814 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9816         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9817         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9818         Change lder to ldr.
9819         * config/s390/vector.md ("mov<mode>"): Likewise.
9821 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
9823         * config/s390/constraints.md ("U", "W"): Invoke
9824         s390_mem_constraint with "ZR" and "ZT".
9825         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9826         addresses when using LRA.  Accept also short displacements for S
9827         and T constraints.  Do not check for long displacement target for
9828         S and T constraints.
9829         (s390_mem_constraint): Remove handling of U and W constraints.
9830         * config/s390/s390.md (various patterns): Remove the short
9831         displacement constraints (Q and R) if a long displacement
9832         constraint is present.  Add longdisp as required CPU capability.
9833         * config/s390/vector.md: Likewise.
9834         * config/s390/vx-builtins.md: Likewise.
9836 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9838         PR target/60040
9839         * reload1.c (reload): Call finish_spills before
9840         restarting reload loop. Skip select_reload_regs
9841         if update_eliminables_and_spill returns true.
9843 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9845         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
9846         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
9847         (umulhisi3_imm): Update predicates and constraint letters.
9848         (umulhisi3_reg): Declare instruction as commutative.
9849         * config/arc/constraints.md (J12, J16): New constraints.
9850         * config/arc/predicates.md (short_unsigned_const_operand): New
9851         predicate.
9852         (arc_short_operand): Likewise.
9853         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
9855 2016-04-29  Richard Biener  <rguenther@suse.de>
9857         PR tree-optimization/13962
9858         PR tree-optimization/65686
9859         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
9860         * tree-ssa-alias.c (ptrs_compare_unequal): New function
9861         using PTA to compare pointers.
9862         * match.pd: Add pattern for pointer equality compare simplification
9863         using ptrs_compare_unequal.
9865 2016-04-29  Richard Biener  <rguenther@suse.de>
9867         * stor-layout.c (layout_type): Do not build a pointer-to-element
9868         type for arrays.
9870 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9872         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
9873         Use SWI mode iterator.  Use general_reg_operand predicate.
9874         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
9875         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
9876         predicates.
9878 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
9880         PR middle-end/70843
9881         * fold-const.c (operand_equal_p): Don't verify hash value equality
9882         if arg0 == arg1.
9883         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
9884         and OMP_CLAUSE.
9886 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
9888         PR target/70858
9889         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
9890         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
9891         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
9892         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
9893         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
9895 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9897         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
9898         to info.  Don't initialize separate fields to 0.  Clean up
9899         formatting a bit.
9901 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
9903         * config/i386/i386.md (peephole2s for operations with memory inputs):
9904         Use SWI mode iterator.
9905         (peephole2s for operations with memory outputs): Ditto.
9906         Do not check for stack checking probe.
9908         (probe_stack): Remove expander.
9910 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9911             Andrew Burgess  <andrew.burgess@embecosm.com>
9913         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
9914         operands as 32-bits.
9916 2016-04-28  Jason Merrill  <jason@redhat.com>
9918         * gdbinit.in: Skip line-map.h.
9920 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9921             Andrew Burgess  <andrew.burgess@embecosm.com>
9923         * config/arc/arc.c (arc_conditional_register_usage): Take
9924         TARGET_RRQ_CLASS into account.
9925         (arc_print_operand): Support printing 'p' and 's' operands.
9926         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
9927         as 0.
9928         (TARGET_RRQ_CLASS): Define.
9929         (IS_POWEROF2_OR_0_P): Define.
9930         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
9931         alternatives.
9932         (*tst_movb): New define_insn.
9933         (*tst): Avoid recognition if it could prevent '*tst_movb'
9934         combination; replace c/CnL with c/Chs alternative.
9935         (*tst_bitfield_tst): New define_insn.
9936         (*tst_bitfield_asr): New define_insn.
9937         (*tst_bitfield): New define_insn.
9938         (andsi3_i): Add Rrq variant.
9939         (extzv): New define_expand.
9940         (insv): New define_expand.
9941         (*insv_i): New define_insn.
9942         (*movb): New define_insn.
9943         (*movb_signed): New define_insn.
9944         (*movb_high): New define_insn.
9945         (*movb_high_signed): New define_insn.
9946         (*movb_high_signed + 1): New define_split pattern.
9947         (*mrgb): New define_insn.
9948         (*mrgb + 1): New define_peephole2 pattern.
9949         (*mrgb + 2): New define_peephole2 pattern.
9950         * config/arc/arc.opt (mbitops): New option for nps400, uses
9951         TARGET_NPS_BITOPS_DEFAULT.
9952         * config/arc/constraints.md (q): Make register class conditional.
9953         (Rrq): New register constraint.
9954         (Chs): New constraint.
9955         (Clo): New constraint.
9956         (Chi): New constraint.
9957         (Cbf): New constraint.
9958         (Cbn): New constraint.
9959         (C18): New constraint.
9960         (Cbi): New constraint.
9962 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
9964         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
9965         dst->popcount.
9966         (bitmap_intersection_of_preds): Ditto.
9967         (bitmap_union_of_succs): Ditto.
9968         (bitmap_union_of_preds): Ditto.
9969         * sbitmap.c (do_popcount): Delete.
9970         (BITMAP_DEBUGGING): Delete.
9971         (sbitmap_verify_popcount): Delete.
9972         (sbitmap_alloc): Don't initialize the popcount field.
9973         (sbitmap_alloc_with_popcount): Delete.
9974         (sbitmap_resize): Don't resize the popcount array.
9975         (sbitmap_vector_alloc): Don't initialize the popcount field.
9976         (bitmap_copy): Don't copy the popcount array.
9977         (bitmap_clear): Don't clear the popcount array.
9978         (bitmap_clear): Delete the popcount array handling.
9979         (bitmap_ior_and_compl): Delete the popcount assert.
9980         (bitmap_not): Ditto.
9981         (bitmap_and_compl): Ditto.
9982         (bitmap_and): Delete the popcount array handling.
9983         (bitmap_xor): Ditto.
9984         (bitmap_ior): Ditto.
9985         (bitmap_or_and): Delete the popcount assert.
9986         (bitmap_and_or): Ditto.
9987         (popcount_table): Delete.
9988         (sbitmap_elt_popcount): Delete.
9989         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
9990         (bitmap_set_bit): Delete the popcount assert.
9991         (bitmap_clear_bit): Ditto.
9992         (sbitmap_free): Don't free the popcount array.
9993         (sbitmap_alloc_with_popcount): Delete declaration.
9994         (sbitmap_popcount): Ditto.
9996 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
9997             Andrew Burgess  <andrew.burgess@embecosm.com>
9999         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10000         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10001         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10002         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10003         * config/arc/arc.opt (mcmem): New option.
10004         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10005         supply length for r/m alternative.
10006         (*extendqisi2_ac): Likewise.
10007         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10008         r/Uex alternative.
10009         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10010         (movhi_insn): Likewise.
10011         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10012         (*zero_extendqihi2_i): Add r/Ucm alternative.
10013         (*zero_extendqisi2_ac): Likewise.
10014         (*zero_extendhisi2_i): Likewise.
10015         * config/arc/constraints.md (Uex): New memory constraint.
10016         (Ucm): New define_constraint.
10017         * config/arc/predicates.md (long_immediate_loadstore_operand):
10018         Return 0 for MEM with cmem_address address.
10019         (cmem_address_0): New predicates.
10020         (cmem_address_1): Likewise.
10021         (cmem_address_2): Likewise.
10022         (cmem_address): Likewise.
10024 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10026         * config/rs6000/rs6000.c (machine_function): Rename
10027         insn_chain_scanned_p to spe_insn_chain_scanned_p.
10028         (rs6000_stack_info): Adjust.
10030 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10031             Andrew Burgess  <andrew.burgess@embecosm.com>
10033         * config/arc/constraints.md (Usd): Convert to define_constraint.
10034         (Us<): Likewise.
10035         (Us>): Likewise.
10037 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10039         PR target/70821
10040         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10041         Add new peephole2 where the first insn is *mov<mode>_or instead of
10042         *mov<mode>_internal.
10044 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
10046         * tracer.c (bb_seen): Make static.
10048 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
10050         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10051         support, setup defaults.
10052         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10053         * config/arc/arc.c (arc_init): Add NPS400 support.
10054         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10055         (TARGET_ARC700): NPS400 is also an ARC700.
10056         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10058 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10060         PR target/70668
10061         * config/nds32/nds32.md (casesi): Don't access the operands array
10062         out of bounds.
10064 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10066         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10067         (or $-1,reg peephole2): Ditto.
10068         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10070 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10072         * doc/extend.texi (Common Function Attributes) [optimize]:
10073         Discourage use of the optimize attribute.
10075 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
10077         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10078         special case builtin.
10079         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10080         ALTIVEC_BUILTIN_VEC_ADDE.
10081         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10082         support for ALTIVEC_BUILTIN_VEC_ADDE.
10083         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10084         for __builtin_vec_adde.
10086 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10088         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10089         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10091 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10093         PR testsuite/70595
10094         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10095         attributes): Document cilkplus_runtime.
10097 2016-04-28  Martin Jambor  <mjambor@suse.cz>
10099         * tree-cfg.c (verify_expr): Verify that local declarations belong to
10100         this function.  Call verify_expr on MEM_REFs and bases of other
10101         handled_components.
10103 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10105         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10106         for WORD_REGISTER_OPERATIONS to runtime check.
10108 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10110         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10112 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10114         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10115         big-endian compilation.
10116         * config/arc/arc.md (addf3): Likewise.
10117         (subdf3): Likewise.
10118         (muldf3): Likewise.
10120 2016-04-28  Richard Biener  <rguenther@suse.de>
10122         PR tree-optimization/70840
10123         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10124         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10125         Mark x * pow(x,c) -> pow(x,c+1) commutative.
10126         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10128 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10130         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10131         and explain why in a comment.
10133 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10135         * config/arc/arc.md (cpu_facility): Add fpx variant.
10136         (subdf3): Prohibit use reverse sub when assist operations option
10137         is enabled.
10138         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10139         instructions only when FPX is enabled.
10140         * testsuite/gcc.target/arc/trsub.c: New test.
10142 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10144         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10145         mult_operator when calculating "type" attribute.
10146         (*fop_<mode>_1_i387): Ditto.
10147         (*fop_xf_1_i387): Ditto.
10148         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10149         Use std::swap to swap operands.  Use RTL expressions to generate
10150         converted pattern.
10152 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10153             Joern Rennecke  <joern.rennecke@embecosm.com>
10155         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10156         declaration.
10157         (emit_pic_move): Remove.
10158         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10159         * config/arc/arc.c (emit_pic_move): Removed.
10160         (TARGET_HAVE_TLS): Define.
10161         (arc_conditional_register_usage): Test for arc_tp_regno.
10162         (arc_print_operand, arc_print_operand_address): Handle TLS
10163         unspecs.
10164         (arc_needs_pcl_p): New function.
10165         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10166         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10167         (arc_raw_symbolic_reference_mentioned_p): Likewise.
10168         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10169         (arc_legitimize_tls_address): Likewise.
10170         (DTPOFF_ZERO_SYM): Define.
10171         (arc_legitimize_pic_address): Make it static, handle TLS cases.
10172         (arc_output_pic_addr_const): Print TLS unspecs.
10173         (prepare_pic_move): New function, replaces emit_pic_move.
10174         (arc_legitimate_constant_p): Handle TLS unspecs.
10175         (arc_legitimate_address_p): Likewise.
10176         (arc_rewrite_small_data_p): Use assert for TLS constants.
10177         (prepare_move_operands): Use prepare_pic_move.
10178         (arc_legitimize_address): Legitimize tls addresses.
10179         (arc_epilogue_uses): Check for arc_tp_regno.
10180         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10181         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10182         Define.
10183         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10184         Likewise.
10185         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10186         %(arc_tls_extra_start_spec).
10187         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10188         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10189         (EH_USES): Define.
10190         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10191         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10192         (UNSPEC_TLS_OFF): Add.
10193         (R10_REG): Define.
10194         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10195         (get_thread_pointersi): New patterns.
10196         * config/arc/arc.opt (mtp-regno): New option.
10197         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10198         (move_dest_operand): Likewise.
10199         * configure: Regenerate.
10200         * configure.ac: Add arc*-*-* case to test for tls.
10201         * doc/invoke.texi (ARC options): Document mtp-regno.
10203 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10205         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10206         the new ARC HS SIMD instructions.
10207         (arc_preferred_simd_mode): New function.
10208         (arc_autovectorize_vector_sizes): Likewise.
10209         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10210         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10211         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10212         (arc_init_builtins): Add new SIMD builtin types.
10213         (arc_split_move): Handle 64 bit vector moves.
10214         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10215         (TARGET_PLUS_QMACW): Define.
10216         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10217         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10218         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10219         (VSUBADD4H): New builtins.
10220         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10221         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10223 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
10224             Matthias Klose  <doko@debian.org>
10226         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10228 2016-04-28  Richard Biener  <rguenther@suse.de>
10230         PR middle-end/70777
10231         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10232         canonicalization.
10234 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
10236         * common/config/sh/sh-common.c: Remove SH5 support.
10237         * config/sh/constraints.md: Likewise.
10238         * config/sh/config/sh/elf.h: Likewise.
10239         * config/sh/linux.h: Likewise.
10240         * config/sh/netbsd-elf.h: Likewise.
10241         * config/sh/predicates.md: Likewise.
10242         * config/sh/sh-c.c: Likewise.
10243         * config/sh/sh-protos.h: Likewise.
10244         * config/sh/sh.c: Likewise.
10245         * config/sh/sh.h: Likewise.
10246         * config/sh/sh.md: Likewise.
10247         * config/sh/sh.opt: Likewise.
10248         * config/sh/sync.md: Likewise.
10249         * config/sh/sh64.h: Delete.
10250         * config/sh/shmedia.h: Likewise.
10251         * config/sh/shmedia.md: Likewise.
10252         * config/sh/sshmedia.h: Likewise.
10253         * config/sh/t-netbsd-sh5-64: Likewise.
10254         * config/sh/t-sh64: Likewise.
10255         * config/sh/ushmedia.h: Likewise.
10257 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10259         * config/i386/i386.md (sign_extend to memory peephole2s): Use
10260         general_reg_operand instead of register_operand predicate.
10262 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10264         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10266 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
10268         * match.pd (A - B > A, A + B < A): New transformations.
10270 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
10272         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10273         which defaults to true.  Emit an outer pair of parentheses only if
10274         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
10275         don't emit parentheses for the right-hand operand.
10277 2016-04-27  Jeff Law  <law@redhat.com>
10279         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10281 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10283         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10284         (altivec_lvx_<mode>_internal): Document.
10285         (altivec_lvx_<mode>_2op): New define_insn.
10286         (altivec_lvx_<mode>_1op): Likewise.
10287         (altivec_lvx_<mode>_2op_si): Likewise.
10288         (altivec_lvx_<mode>_1op_si): Likewise.
10289         (altivec_stvx_<mode>): Remove.
10290         (altivec_stvx_<mode>_internal): Document.
10291         (altivec_stvx_<mode>_2op): New define_insn.
10292         (altivec_stvx_<mode>_1op): Likewise.
10293         (altivec_stvx_<mode>_2op_si): Likewise.
10294         (altivec_stvx_<mode>_1op_si): Likewise.
10295         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10296         Expand vec_ld and vec_st during parsing.
10297         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10298         changes.
10299         (altivec_expand_stvx_be): Likewise.
10300         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10301         address-masking behavior in RTL.
10302         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10303         address-masking behavior in RTL.
10304         (altivec_expand_builtin): Change builtin code arguments for calls
10305         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10306         (insn_is_swappable_p): Avoid incorrect swap optimization in the
10307         presence of lvx/stvx patterns.
10308         (alignment_with_canonical_addr): New function.
10309         (alignment_mask): Likewise.
10310         (find_alignment_op): Likewise.
10311         (recombine_lvx_pattern): Likewise.
10312         (recombine_stvx_pattern): Likewise.
10313         (recombine_lvx_stvx_patterns): Likewise.
10314         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10315         stvx patterns from expand.
10316         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10317         expansions.
10318         (vector_altivec_store_<mode>): Likewise.
10320 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
10322         * config/aarch64/aarch64.md
10323         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10324         remove the "fp" attributes.
10325         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10326         add the "simd" attributes.
10327         (*movdf_aarch64): Likewise.
10328         (*movtf_aarch64): Remove the "fp" attributes.
10329         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10330         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10332 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10334         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10335         rtx to rtx_code_label *.
10336         * rtl.h (maybe_set_first_label_num): Likewise.
10338 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10340         * df-core.c (df_add_problem): Make the problem param be const.
10341         (df_remove_problem): Make local "problem" be const.
10342         * df-problems.c (problem_RD): Make const.
10343         (problem_LR): Likewise.
10344         (problem_LIVE): Likewise.
10345         (problem_MIR): Likewise.
10346         (problem_CHAIN): Likewise.
10347         (problem_WORD_LR): Likewise.
10348         (problem_NOTE): Likewise.
10349         (problem_MD): Likewise.
10350         * df-scan.c (problem_SCAN): Likewise.
10351         * df.h (struct df_problem): Make field "dependent_problem" be
10352         const.
10353         (struct dataflow): Likewise for field "problem".
10354         (df_add_problem): Make param const.
10356 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10358         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10359         inter-unit moves to/from vector registers are enabled.  Do not disable
10360         for TARGET_MMX.
10362 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10364         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10365         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10366         #define to...
10367         (enum df_problem_id): ...this new enum.
10368         (struct df_problem): Convert field "id" from "int" to
10369         enum df_problem_id.
10371 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10373         * rtl.def: Update comment for "things in the instruction chain" to
10374         reflect the removal of the leading "i" field for INSN_UID in
10375         r210360.  Fix bogus apostrophe.
10377 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10379         * config/i386/i386.md
10380         (lea arith with mem operand + setcc peephole2): Set operator mode.
10382 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
10384         PR target/70155
10385         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10386         (dimode_scalar_to_vector_candidate_p): This.
10387         (timode_scalar_to_vector_candidate_p): New function.
10388         (scalar_to_vector_candidate_p): Likewise.
10389         (timode_check_non_convertible_regs): Likewise.
10390         (timode_remove_non_convertible_regs): Likewise.
10391         (remove_non_convertible_regs): Likewise.
10392         (remove_non_convertible_regs): Renamed to ...
10393         (dimode_remove_non_convertible_regs): This.
10394         (scalar_chain::~scalar_chain): Make it virtual.
10395         (scalar_chain::compute_convert_gain): Make it pure virtual.
10396         (scalar_chain::mark_dual_mode_def): Likewise.
10397         (scalar_chain::convert_insn): Likewise.
10398         (scalar_chain::convert_registers): Likewise.
10399         (scalar_chain::add_to_queue): Make it protected.
10400         (scalar_chain::emit_conversion_insns): Likewise.
10401         (scalar_chain::replace_with_subreg): Likewise.
10402         (scalar_chain::replace_with_subreg_in_insn): Likewise.
10403         (scalar_chain::convert_op): Likewise.
10404         (scalar_chain::convert_reg): Likewise.
10405         (scalar_chain::make_vector_copies): Likewise.
10406         (scalar_chain::convert_registers): New pure virtual function.
10407         (class dimode_scalar_chain): New class.
10408         (class timode_scalar_chain): Likewise.
10409         (scalar_chain::mark_dual_mode_def): Renamed to ...
10410         (dimode_scalar_chain::mark_dual_mode_def): This.
10411         (timode_scalar_chain::mark_dual_mode_def): New function.
10412         (timode_scalar_chain::convert_insn): Likewise.
10413         (dimode_scalar_chain::convert_registers): Likewise.
10414         (scalar_chain::compute_convert_gain): Renamed to ...
10415         (dimode_scalar_chain::compute_convert_gain): This.
10416         (scalar_chain::replace_with_subreg): Renamed to ...
10417         (dimode_scalar_chain::replace_with_subreg): This.
10418         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10419         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10420         (scalar_chain::make_vector_copies): Renamed to ...
10421         (dimode_scalar_chain::make_vector_copies): This.
10422         (scalar_chain::convert_reg): Renamed to ...
10423         (dimode_scalar_chain::convert_reg ): This.
10424         (scalar_chain::convert_op): Renamed to ...
10425         (dimode_scalar_chain::convert_op): This.
10426         (scalar_chain::convert_insn): Renamed to ...
10427         (dimode_scalar_chain::convert_insn): This.
10428         (scalar_chain::convert): Call convert_registers.
10429         (convert_scalars_to_vector): Change to scalar_chain pointer to
10430         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10431         in 32-bit mode.  Delete scalar_chain pointer.  Call
10432         free_dominance_info in 64-bit mode.
10433         (pass_stv::gate): Remove TARGET_64BIT check.
10434         (ix86_option_override): Put the 64-bit STV pass before the CSE
10435         pass.
10437 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
10439         * dwarf2out.h (struct dw_loc_descr_node): Remove the
10440         dw_loc_frame_offset field.
10441         * dwarf2out.c (new_loc_descr): Likewise.
10442         (resolve_args_picking_1): Turn the VISITED hash set into a
10443         FRAME_OFFSET hash map. Use it to associate a frame offset to
10444         visited nodes. Remove uses of the CHECKING_P macro.
10445         (resolve_args_picking): Update call to resolve_args_picking_1.
10447 2016-04-27  Martin Liska  <mliska@suse.cz>
10449         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10450         (free_loop_data): Release vuses of groups.
10452 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
10454         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10455         instead of redundant use_id and boolean have_use_for.
10456         (struct iv_use): Change sub_id into group_id.  Remove field next.
10457         Move fields: related_cands, n_map_members, cost_map and selected
10458         to ...
10459         (struct iv_group): ... here.  New structure.
10460         (struct iv_common_cand): Use structure declaration directly.
10461         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10462         (MAX_CONSIDERED_USES): Rename macro to ...
10463         (MAX_CONSIDERED_GROUPS): ... here.
10464         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10465         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10466         (dump_uses): Rename to ...
10467         (dump_groups): ... here.  Update all uses.
10468         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10469         (find_induction_variables): Refactor format of dump information.
10470         (record_sub_use): Delete.
10471         (record_use): Update all uses.
10472         (record_group): New function.
10473         (record_group_use, find_interesting_uses_op): Call above functions.
10474         Update all uses.
10475         (find_interesting_uses_cond): Ditto.
10476         (group_compare_offset): New function.
10477         (split_all_small_groups): Rename to ...
10478         (split_small_address_groups_p): ... here.  Update all uses.
10479         (split_address_groups):  Update all uses.
10480         (find_interesting_uses): Refactor format of dump information.
10481         (add_candidate_1): Update all uses.  Remove redundant check on iv,
10482         base and step.
10483         (add_candidate, record_common_cand): Remove redundant assert.
10484         (add_iv_candidate_for_biv): Update use.
10485         (add_iv_candidate_derived_from_uses): Update all uses.
10486         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10487         (alloc_use_cost_map): Ditto.
10488         (set_use_iv_cost, get_use_iv_cost): Rename to ...
10489         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
10490         (determine_use_iv_cost_generic): Ditto.
10491         (determine_group_iv_cost_generic): Ditto.
10492         (determine_use_iv_cost_address): Ditto.
10493         (determine_group_iv_cost_address): Ditto.
10494         (determine_use_iv_cost_condition): Ditto.
10495         (determine_group_iv_cost_cond): Ditto.
10496         (determine_use_iv_cost): Ditto.
10497         (determine_group_iv_cost): Ditto.
10498         (set_autoinc_for_original_candidates): Update all uses.
10499         (find_iv_candidates): Update all uses.  Refactor dump information.
10500         (determine_use_iv_costs): Ditto.
10501         (determine_iv_costs): Ditto.
10502         (iv_ca_cand_for_use): Rename to ...
10503         (iv_ca_cand_for_group): ... here.  Update all uses.
10504         (iv_ca_add_use, iv_ca_add_group): Ditto.
10505         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10506         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10507         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10508         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10509         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10510         (create_new_iv, adjust_iv_update_pos): Ditto.
10511         (rewrite_use_address): Delete.
10512         (rewrite_use_address_1): Rename to ...
10513         (rewrite_use_address): ... here.
10514         (rewrite_use_compare): Update all uses.
10515         (rewrite_use): Delete.
10516         (rewrite_uses): Rename to ...
10517         (rewrite_groups): ... here.  Update all uses.
10518         (remove_unused_ivs, free_loop_data): Update all uses.
10519         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10521 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10523         * rtlanal.c (nonzero_bits1): Convert preprocessor check
10524         for WORD_REGISTER_OPERATIONS to runtime check.
10526 2016-04-27  Richard Biener  <rguenther@suse.de>
10528         PR ipa/70760
10529         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10530         aggregate_value_p to determine if a function result is
10531         returned by reference.
10532         (ipa_pta_execute): Functions having their address taken are
10533         not automatically nonlocal.
10535 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
10537         PR sanitizer/70683
10538         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10539         * fold-const.c (operand_equal_p): If flag_checking and
10540         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10541         and if it returns non-zero, assert iterative_hash_expr on both
10542         args is the same.
10544 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10546         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10548 2016-04-27  Nick Clifton  <nickc@redhat.com>
10550         PR middle-end/49889
10551         * varasm.c (merge_weak): Generate an error if an attempt is made
10552         to convert a non-weak static function into a weak, public function.
10554 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10556         * params.def (MAX_PARTITION_SIZE): New param.
10557         * doc/invoke.texi: Document lto-max-partition.
10559 2016-04-27  Richard Biener  <rguenther@suse.de>
10561         PR ipa/70785
10562         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10563         function cummulating used_from_other_partition, externally_visible
10564         and force_output from aliases.
10565         (refered_from_nonlocal_var): Likewise.
10566         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10567         node flags properly.
10569 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10571         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10572         (-Wmemset-elt-size): New item.
10574 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10576         PR ada/70759
10577         * stor-layout.h (internal_reference_types): Delete.
10578         * stor-layout.c (reference_types_internal): Likewise.
10579         (internal_reference_types): Likewise.
10580         (layout_type) <REFERENCE_TYPE>: Adjust.
10582 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
10584         PR sanitizer/70683
10585         * tree.h (inchash::add_expr): Add FLAGS argument.
10586         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
10587         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
10588         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10589         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
10590         if swap_tree_comparison (code) is smaller than code, hash that
10591         and arguments in the other order.  Hash CONVERT_EXPR the same
10592         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10593         of ADDR_EXPR of decl as the decl itself.  Add or remove
10594         OEP_ADDRESS_OF from recursive flags as needed.  For
10595         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10596         operands commutatively and only the third one normally.
10597         For internal CALL_EXPR hash in CALL_EXPR_IFN.
10599 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10601         * config/rtems.h (LIB_SPEC): Add -latomic.
10603 2016-04-27  Joel Sherrill  <joel@rtems.org>
10605         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10606         xilink.ld and flags not relevant to RTEMS.
10608 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10610         * toplev.c (backend_init_target): Avoid calling init_reload when using
10611         LRA.
10613 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10615         * reorg.c (try_merge_delay_insns): Declare i and j inside the
10616         for loops rather than one for the whole function.
10618 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10620         * match.pd (X + CST CMP X): New transformation.
10622 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10624         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10625         * fold-const.c (fold_binary_loc): Remove 2 transformations
10626         superseded by match.pd.
10627         * match.pd (x+x -> x*2): Generalize to integers.
10629 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
10631         * config/i386/i386.md (operation on memory peephole): Duplicate an
10632         existing peephole and adapt it to match lea rather than an operation
10633         that clobbers CC.
10635         PR rtl-optimization/57193
10636         * opts.c (default_options_table): Add OPT_frename_registers at -O2
10637         and above.
10638         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10640 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10642         * tree-if-conv.c (any_pred_load_store): New static variable.
10643         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
10644         any_pred_load_store instead of and_mask_load_store.
10645         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10646         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10647         (combine_blocks, tree_if_conversion): Ditto.
10649 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10651         PR tree-optimization/70771
10652         PR tree-optimization/70775
10653         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10654         virtual PHI nodes.  Delete parameter.
10655         (if_convertible_loop_p_1): Delete argument to above function.
10656         (predicate_all_scalar_phis): Delete code handling single-argument
10657         PHIs.
10658         (tree_if_conversion): Mark and update virtual SSA.
10660 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10662         PR target/61821
10663         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10664         (x86_elf_aligned_common): Rename to ...
10665         (x86_elf_aligned_decl_common): ... this.
10666         Add decl arg.  Switch to .lbss for largecomm object.  Use
10667         LARGECOMM_SECTION_ASM_OP.
10668         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10669         renaming.
10670         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10671         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10672         Pass new decl arg.
10673         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10674         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10676 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10678         PR target/59407
10679         * config/i386/i386.c (SECTION_LARGE): Define.
10680         (x86_64_elf_select_section): Set it for large data/bss sections.
10681         Only clear SECTION_WRITE for .lrodata.
10682         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10683         data/bss sections.
10684         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10685         * varasm.c (default_elf_asm_named_section): Grow flagchars.
10686         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10687         SECTION_MACH_DEP.
10688         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10689         * doc/tm.texi: Regenerate.
10691 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10693         PR bootstrap/70704
10694         * configure.ac (--enable-checking): Document extra flag, for
10695         non-release builds default to --enable-checking=yes,extra.
10696         If misc checking and extra checking, define CHECKING_P to 2 instead
10697         of 1.
10698         * common.opt (fchecking=): Add.
10699         * doc/invoke.texi (-fchecking=): Document.
10700         * doc/install.texi: Document --enable-checking changes.
10701         * configure: Regenerated.
10702         * config.in: Regenerated.
10704 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10706         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10707         attribute instead of which_alternative.
10708         * config/i386/sse.md (*mov<mode>_internal): Ditto.
10709         Use EXT_REX_SSE_REG_P where appropriate.
10711 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10713         * config/i386/predicates.md (const0_operand): Do not match
10714         const_wide_int code.
10715         (const1_operand): Ditto.
10717 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10719         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10720         for SSE constm1 operands and TARGET_AVX512VL.
10721         (*movti_internal): Ditto.
10722         (*mov<mode>_or): Use constm1_operand predicate.
10723         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10724         for SSE vector_all_ones operands and TARGET_AVX512VL.
10725         * config/i386/predicates.md (constm1_operand): New predicate.
10726         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10727         emission of constant -1 load.
10729 2016-04-25  Jason Merrill  <jason@redhat.com>
10731         * gdbinit.in: Skip is-a.h.
10733         * attribs.c (register_scoped_attributes): Fix logic.
10734         * attribs.h: Declare register_scoped_attributes.
10736 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10738         * config/rs6000/rs6000-builtin.def: Correct pasto error for
10739         stxvd2x and stxvw4x built-in functions.
10741 2016-04-25  DJ Delorie  <dj@redhat.com>
10743         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10744         (ashrhi3): Likewise.
10745         (lshrhi3): Likewise.
10747 2016-04-25  Richard Biener  <rguenther@suse.de>
10749         PR tree-optimization/70780
10750         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10751         wasn't visited yet.
10752         (compute_antic): Mark blocks with abnormal preds as visited as
10753         they have a final empty antic-in solution already.
10755 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10757         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10759 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10761         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10762         mode is VQI to improve mixed mode vectorization.
10763         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10764         define_insn to match low half of signed vaddw.
10765         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10766         define_insn to match high half of signed vaddw.
10767         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10768         define_insn to match low half of unsigned vaddw.
10769         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10770         define_insn to match high half of unsigned vaddw.
10771         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10772         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10773         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10774         for new function.
10775         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10776         * config/arm/predicates.md (vect_par_constant_high): Support
10777         big endian and simplify by calling
10778         arm_simd_check_vect_par_cnst_half
10779         (vect_par_constant_low): Likewise.
10781 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10783         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10784         predicate for operand 2.
10786 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
10787             H.J. Lu  <hongjiu.lu@intel.com>
10789         * config/i386/i386-protos.h (standard_sse_constant_p): Add
10790         machine_mode argument.
10791         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10792         constm1_rtx operands.  For VOIDmode constants, get mode from
10793         pred_mode.  Check mode size if the mode is supported by ABI.
10794         (standard_sse_constant_opcode): Do not use standard_constant_p.
10795         Strictly check ABI support for all-ones operands.
10796         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10797         immediates. Update calls to standard_sse_constant_p.
10798         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10799         (ix86_rtx_costs): Ditto.
10800         * config/i386/i386.md (*movxi_internal_avx512f): Use
10801         nonimmediate_or_sse_const_operand instead of vector_move_operand.
10802         Use (v,BC) alternative instead of (v,C). Use register_operand
10803         checks instead of MEM_P.
10804         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10805         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
10806         isa attribute.  Use register_operand checks instead of MEM_P.
10807         (*movti_internal): Use nonimmediate_or_sse_const_operand for
10808         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
10809         alternative and corresponding sse2 isa attribute.
10810         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10811         to standard_sse_constant_p.
10812         (FP constant splitters): Ditto.
10813         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10814         (C): Ditto.
10815         * config/i386/predicates.md (constm1_operand): Remove.
10816         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10817         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10818         vector_all_ones_operand instead of constm1_operand.
10820 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10822         * print-rtl.c (print_rtx_insn_vec): New function.
10823         * print-rtl.h: New prototype.
10824         * store-motion.c (struct st_expr): Make avail_stores a vector.
10825         (st_expr_entry): Adjust.
10826         (free_st_expr_entry): Likewise.
10827         (print_store_motion_mems): Likewise.
10828         (find_moveable_store): Likewise.
10829         (compute_store_table): Likewise.
10830         (delete_store): Likewise.
10831         (build_store_vectors): Likewise.
10833 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10835         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10837 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10839         * vec.h (vec_safe_contains): New function.
10840         (vec::contains): Likewise.
10841         (vec::begin): Likewise.
10842         (vec::end): Likewise.
10844 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
10846         PR sanitizer/70712
10847         * cfgexpand.c (expand_stack_vars): Fix typo.
10849 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10851         * system.h (list, map, set, vector): Include conditionally.
10852         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
10853         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
10854         * ipa-icf.c (INCLUDE_LIST): Define.
10855         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
10856         * config/sh/sh.c (INCLUDE_VECTOR): Define.
10857         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
10858         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
10859         * cp/logic.cc (INCLUDE_LIST): Define.
10860         * fortran/trans-common.c (INCLUDE_MAP): Define.
10862 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10864         * auto-profile.c: Remove <string.h> include.
10865         * ipa-icf-gimple.c: Remove <list> include.
10866         * diagnostic.c: Remove <new> include.
10867         * genmatch.c: Likewise.
10868         * pretty-print.c: Likewise.
10869         * toplev.c: Likewise
10870         * c/c-objc-common.c: Likewise.
10871         * cp/error.c: Likewise.
10872         * fortran/error.c: Likewise.
10874 2016-04-22  Richard Biener  <rguenther@suse.de>
10876         * lto-streamer-in.c (input_ssa_names): Do not allocate
10877         GIMPLE_NOP for all SSA names.
10878         * lto-streamer-out.c (output_ssa_names): Do not output
10879         SSA names that should have been released.
10881 2016-04-22  Richard Biener  <rguenther@suse.de>
10883         PR tree-optimization/70740
10884         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
10885         VDEF.
10887 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
10889         PR target/70750
10890         * config/i386/predicates.md (call_insn_operand): Replace
10891         sibcall_memory_operand with memory_operand.
10893 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
10895         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
10896         has_single_use() tests.
10897         (register_edge_assert_for_1): Likewise.
10898         (find_assert_locations_1): Check the liveness bitmap instead of
10899         checking has_single_use().
10901 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
10903         PR target/70728
10904         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
10905         Extract AVX-512BW constraint from AVX.
10907 2016-04-21  Richard Biener  <rguenther@suse.de>
10909         PR tree-optimization/70725
10910         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
10911         for phi_convertible_by_degenerating_args.
10912         (predicate_all_scalar_phis): Handle single-argument PHIs.
10914 2016-04-21  Richard Biener  <rguenther@suse.de>
10916         PR middle-end/70747
10917         * fold-const.c (fold_comparison): Return properly typed
10918         constant boolean.
10920 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
10922         PR tree-optimization/70715
10923         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
10924         after expanding BASE using expand_simple_operations.
10926 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10928         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
10929         New transformations.
10931 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
10933         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
10935 2016-04-20  Jan Hubicka  <jh@suse.cz>
10937         * ipa-inline.c (can_inline_edge_p): Pass caller info to
10938         ultiimate_alias_target.
10939         (update_callee_keys): Likewise.
10940         (lookup_recursive_calls): Likewise.
10941         (speculation_useful_p): Likewise.
10943 2016-04-20  Jan Hubicka  <jh@suse.cz>
10945         PR ipa/70018
10946         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
10947         (set_nothrow_flag_1): ... this; handle interposition correctly;
10948         recurse on aliases and thunks.
10949         (cgraph_node::set_nothrow_flag): New.
10950         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
10951         functions compiled with non-call exceptions that binds to current
10952         def.
10953         (propagate_nothrow): Be safe WRT interposition.
10954         * cgraph.h (set_nothrow_flag): Update prototype.
10956 2016-04-18  Jan Hubicka  <jh@suse.cz>
10958         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
10959         max_loop_iterations_int.
10960         (tree_unswitch_outer_loop): Likewise.
10962 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10964         PR tree-optimization/69489
10965         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
10966         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
10967         Revise dump message.
10968         (if_convertible_bb_p): Remove check on edge count of basic block's
10969         predecessors.
10971 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
10973         PR tree-optimization/56625
10974         PR tree-optimization/69489
10975         * tree-data-ref.h (DR_INNERMOST): New macro.
10976         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
10977         hashing struct innermost_loop_behavior.
10978         (ref_DR_map): Remove.
10979         (innermost_DR_map): New map.
10980         (baseref_DR_map): Revise comment.
10981         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
10982         to innermost_DR_map accroding to its innermost loop behavior.
10983         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
10984         to its innermost loop behavior.
10985         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
10986         Add initialization for innermost_DR_map.  Record memory reference
10987         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
10988         have innermost loop behavior.
10989         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
10990         innermost_DR_map.
10992 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
10994         * config/i386/i386.md (*lea<mode>_general_1): Rename from
10995         *lea_general_1.  Use explicit SWI12 mode interator.
10996         (*lea<mode>_general_2): Rename from *lea_general_2.
10997         Use explicit SWI12 mode interator.
10998         (*lea<mode>_general_3): Rename from *lea_general_3.
10999         Use explicit SWI12 mode interator.
11000         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11001         Use explicit SWI12 mode interator.
11002         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11003         Use explicit SWI48 mode interator.
11005 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11007         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11008         Short-cut unaligned load and store cases.  Handle all integer
11009         vector modes.
11010         (ix86_expand_vector_move_misalign): Short-cut unaligned load
11011         and store cases.  Call ix86_avx256_split_vector_move_misalign
11012         directly without checking mode class.
11014 2016-04-20  Andrew Pinski  <apinski@cavium.com>
11015             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11017         PR target/64971
11018         * config/aarch64/aarch64.md (sibcall): Force call
11019         address to be DImode for ILP32.
11020         (sibcall_value): Likewise.
11022 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11024         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11026 2016-04-20  Richard Biener  <rguenther@suse.de>
11028         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11029         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11030         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11031         (maybe_push_res_to_seq): Adjust.
11032         * gimple-fold.c (maybe_build_generic_op): Likewise.
11034 2016-04-20  Marek Polacek  <polacek@redhat.com>
11036         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11037         rather than true.
11039 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
11041         * config/i386/sse.md (vec_unpacks_lo_hi): Always
11042         use kmovw to support AVX512F target.
11044 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11046         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11048 2016-04-20  Marek Polacek  <polacek@redhat.com>
11050         PR tree-optimization/70725
11051         * tree-if-conv.c (is_false_predicate): New function.
11052         (predicate_mem_writes): Use it.
11054 2016-04-20  Richard Biener  <rguenther@suse.de>
11056         PR tree-optimization/70726
11057         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11058         shift amounts from a pattern stmt operand.
11060 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11062         PR target/70674
11063         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11064         stack_restore_from_fpr pattern when restoring r15.
11065         (s390_optimize_prologue): Strip away the memory barrier in the
11066         parallel when trying to get rid of restore insns.
11067         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11068         definition for loading the stack pointer from an FPR.  Compared to
11069         the normal move insn this pattern includes a full memory barrier.
11071 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
11073         PR middle-end/70680
11074         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11075         implicitly linear or lastprivate iterator on the outer context.
11077 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11079         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11080         alignment check.
11081         * config/i386/i386.md (ssememalign): Removed.
11082         * config/i386/sse.md: Remove ssememalign attribute from patterns.
11084 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11086         PR target/69201
11087         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11088         const short * to __builtin_ia32_loaddquhi512_mask.
11089         (_mm512_maskz_loadu_epi16): Likewise.
11090         (_mm512_mask_storeu_epi16): Pass short * to
11091         __builtin_ia32_storedquhi512_mask.
11092         (_mm512_mask_loadu_epi8): Pass const char * to
11093         __builtin_ia32_loaddquqi512_mask.
11094         (_mm512_maskz_loadu_epi8): Likewise.
11095         (_mm512_mask_storeu_epi8): Pass char * to
11096         __builtin_ia32_storedquqi512_mask.
11097         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11098         const double * to __builtin_ia32_loadupd512_mask.
11099         (_mm512_mask_loadu_pd): Likewise.
11100         (_mm512_maskz_loadu_pd): Likewise.
11101         (_mm512_storeu_pd): Pass double * to
11102         __builtin_ia32_storeupd512_mask.
11103         (_mm512_mask_storeu_pd): Likewise.
11104         (_mm512_loadu_ps): Pass const float * to
11105         __builtin_ia32_loadups512_mask.
11106         (_mm512_mask_loadu_ps): Likewise.
11107         (_mm512_maskz_loadu_ps): Likewise.
11108         (_mm512_storeu_ps): Pass float * to
11109         __builtin_ia32_storeups512_mask.
11110         (_mm512_mask_storeu_ps): Likewise.
11111         (_mm512_mask_loadu_epi64): Pass const long long * to
11112         __builtin_ia32_loaddqudi512_mask.
11113         (_mm512_maskz_loadu_epi64): Likewise.
11114         (_mm512_mask_storeu_epi64): Pass long long *
11115         to __builtin_ia32_storedqudi512_mask.
11116         (_mm512_loadu_si512): Pass const int * to
11117         __builtin_ia32_loaddqusi512_mask.
11118         (_mm512_mask_loadu_epi32): Likewise.
11119         (_mm512_maskz_loadu_epi32): Likewise.
11120         (_mm512_storeu_si512): Pass int * to
11121         __builtin_ia32_storedqusi512_mask.
11122         (_mm512_mask_storeu_epi32): Likewise.
11123         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11124         char * to __builtin_ia32_storedquqi256_mask.
11125         (_mm_mask_storeu_epi8): Likewise.
11126         (_mm256_mask_loadu_epi16): Pass const short * to
11127         __builtin_ia32_loaddquhi256_mask.
11128         (_mm256_maskz_loadu_epi16): Likewise.
11129         (_mm_mask_loadu_epi16): Pass const short * to
11130         __builtin_ia32_loaddquhi128_mask.
11131         (_mm_maskz_loadu_epi16): Likewise.
11132         (_mm256_mask_loadu_epi8): Pass const char * to
11133         __builtin_ia32_loaddquqi256_mask.
11134         (_mm256_maskz_loadu_epi8): Likewise.
11135         (_mm_mask_loadu_epi8): Pass const char * to
11136         __builtin_ia32_loaddquqi128_mask.
11137         (_mm_maskz_loadu_epi8): Likewise.
11138         (_mm256_mask_storeu_epi16): Pass short * to.
11139         __builtin_ia32_storedquhi256_mask.
11140         (_mm_mask_storeu_epi16): Pass short * to.
11141         __builtin_ia32_storedquhi128_mask.
11142         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11143         const double * to __builtin_ia32_loadupd256_mask.
11144         (_mm256_maskz_loadu_pd): Likewise.
11145         (_mm_mask_loadu_pd): Pass onst double * to
11146         __builtin_ia32_loadupd128_mask.
11147         (_mm_maskz_loadu_pd): Likewise.
11148         (_mm256_mask_storeu_pd): Pass double * to
11149         __builtin_ia32_storeupd256_mask.
11150         (_mm_mask_storeu_pd): Pass double * to
11151         __builtin_ia32_storeupd128_mask.
11152         (_mm256_mask_loadu_ps): Pass const float * to
11153         __builtin_ia32_loadups256_mask.
11154         (_mm256_maskz_loadu_ps): Likewise.
11155         (_mm_mask_loadu_ps): Pass const float * to
11156         __builtin_ia32_loadups128_mask.
11157         (_mm_maskz_loadu_ps): Likewise.
11158         (_mm256_mask_storeu_ps): Pass float * to
11159         __builtin_ia32_storeups256_mask.
11160         (_mm_mask_storeu_ps): ass float * to
11161         __builtin_ia32_storeups128_mask.
11162         (_mm256_mask_loadu_epi64): Pass const long long * to
11163         __builtin_ia32_loaddqudi256_mask.
11164         (_mm256_maskz_loadu_epi64): Likewise.
11165         (_mm_mask_loadu_epi64): Pass const long long * to
11166         __builtin_ia32_loaddqudi128_mask.
11167         (_mm_maskz_loadu_epi64): Likewise.
11168         (_mm256_mask_storeu_epi64): Pass long long * to
11169         __builtin_ia32_storedqudi256_mask.
11170         (_mm_mask_storeu_epi64): Pass long long * to
11171         __builtin_ia32_storedqudi128_mask.
11172         (_mm256_mask_loadu_epi32): Pass const int * to
11173         __builtin_ia32_loaddqusi256_mask.
11174         (_mm256_maskz_loadu_epi32): Likewise.
11175         (_mm_mask_loadu_epi32): Pass const int * to
11176         __builtin_ia32_loaddqusi128_mask.
11177         (_mm_maskz_loadu_epi32): Likewise.
11178         (_mm256_mask_storeu_epi32): Pass int * to
11179         __builtin_ia32_storedqusi256_mask.
11180         (_mm_mask_storeu_epi32): Pass int * to
11181         __builtin_ia32_storedqusi128_mask.
11182         * config/i386/i386-builtin-types.def (PCSHORT): New.
11183         (PINT64): Likewise.
11184         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11185         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11186         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11187         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11188         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11189         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11190         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11191         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11192         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11193         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11194         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11195         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11196         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11197         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11198         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11199         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11200         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11201         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11202         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11203         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11204         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11205         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11206         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11207         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11208         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11209         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11210         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11211         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11212         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11213         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11214         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11215         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11216         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11217         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11218         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11219         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11220         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11221         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11222         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11223         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11224         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11225         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11226         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11227         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11228         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11229         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11230         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11231         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11232         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11233         use UNSPEC_STOREU.
11234         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11235         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11236         load nor store.
11237         (ix86_expand_vector_move_misalign): Likewise.
11238         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11239         to scalar function prototype for unaligned load/store builtins.
11240         (ix86_expand_special_args_builtin): Updated.
11241         * config/i386/sse.md (UNSPEC_LOADU): Removed.
11242         (UNSPEC_STOREU): Likewise.
11243         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11244         (VI_ULOADSTORE_F_AVX512VL): Likewise.
11245         (ssescalarsize): Handle V4TI, V2TI and V1TI.
11246         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11247         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11248         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11249         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11250         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11251         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11252         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11253         (<avx512>_storedqu<mode>_mask): Likewise.
11254         (*sse4_2_pcmpestr_unaligned): Likewise.
11255         (*sse4_2_pcmpistr_unaligned): Likewise.
11256         (*mov<mode>_internal): Renamed to ...
11257         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
11258         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11259         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11260         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11262 2016-04-19  Richard Biener  <rguenther@suse.de>
11264         PR tree-optimization/70171
11265         * tree-ssa-phiprop.c: Include stor-layout.h.
11266         (phiprop_insert_phi): Handle the aggregate copy case.
11267         (propagate_with_phi): Likewise.
11269 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
11271         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11272         instead of simplify_gen_subreg (... , 0).
11273         (ix86_delegitimize_address): Ditto.
11274         (ix86_split_divmod): Ditto.
11275         (ix86_split_copysign_const): Ditto.
11276         (ix86_split_copysign_var): Ditto.
11277         (ix86_expand_args_builtin): Ditto.
11278         (ix86_expand_round_builtin): Ditto.
11279         (ix86_expand_special_args_builtin): Ditto.
11280         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11281         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11282         (udivmodqi4): Ditto.
11283         (absneg splitters): Ditto.
11284         (*jcc_bt<mode>_1): Ditto.
11286 2016-04-19  Richard Biener  <rguenther@suse.de>
11288         PR tree-optimization/70724
11289         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11290         restoring out from ...
11291         (free_scc_vn): ... here.
11292         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11293         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11294         tail merging.
11295         (pass_fre::execute): Restore SSA info.
11297 2016-04-19  Richard Biener  <rguenther@suse.de>
11299         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11300         * gimple-walk.c (walk_gimple_op): Initialize it.
11301         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11302         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11303         remapping SSA names of defs.
11304         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11305         adjustment.
11307 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
11309         PR middle-end/70689
11310         * lra-constraints.c (equiv_substition_p): New.
11311         (process_alt_operands): Use it.
11312         (swap_operands): Swap it.
11313         (curr_insn_transform): Update it.
11315 2016-04-18  Michael Matz  <matz@suse.de>
11317         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11318         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11319         * tree-core.h (tree_type_common.align): Use bit-field.
11320         (tree_type_common.spare): New.
11321         (tree_decl_common.off_align): Make smaller.
11322         (tree_decl_common.align): Use bit-field.
11324         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11325         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11326         (scan_sharing_clauses): Ditto.
11327         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11328         (omp_finish_file): Ditto.
11329         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11330         (layout_decl): Ditto.
11331         (relayout_decl): Ditto.
11332         (finalize_record_size): Use SET_TYPE_ALIGN.
11333         (finalize_type_size): Ditto.
11334         (finish_builtin_struct): Ditto.
11335         (layout_type): Ditto.
11336         (initialize_sizetypes): Ditto.
11337         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11338         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11339         (lookup_field_for_decl): Use SET_DECL_ALIGN.
11340         (get_chain_field): Ditto.
11341         (get_trampoline_type): Ditto.
11342         (get_nl_goto_field): Ditto.
11343         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11344         SET_DECL_ALIGN.
11345         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11346         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11347         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11348         (build_qualified_type): Use SET_TYPE_ALIGN.
11349         (build_aligned_type, build_range_type_1): Ditto.
11350         (build_atomic_base): Ditto.
11351         (build_common_tree_nodes): Ditto.
11352         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11353         (expand_one_stack_var_at): Ditto.
11354         * coverage.c (build_var): Use SET_DECL_ALIGN.
11355         * except.c (init_eh): Ditto.
11356         * function.c (assign_parm_setup_block): Ditto.
11357         * symtab.c (increase_alignment_1): Ditto.
11358         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11359         * tree-vect-stmts.c (ensure_base_align): Ditto.
11360         * varasm.c (align_variable): Ditto.
11361         (assemble_variable): Ditto.
11362         (build_constant_desc): Ditto.
11363         (output_constant_def_contents): Ditto.
11365         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11366         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11367         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11368         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11369         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11371 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
11373         PR target/70708
11374         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11375         replace %vmovsd with "%vmovq".
11376         (vec_concatv2df): Likewise.
11378 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
11380         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11381         (*vec_extractv2si_0): Ditto.
11382         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11383         (zero_extended_scalar_load_operand splitters): Ditto.
11384         (vec_extract splitters): Ditto.
11385         (*vec_extractv4si_0_zext): Ditto.
11386         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11387         and lowpart_subreg.
11388         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11389         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11390         (*sse4_1_extractps): Use lowpart_subreg.
11391         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11393 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11395         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11396         gld requirements.
11397         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11398         Mention Solaris 11 packaging changes.
11399         Update gas and gld requirements.
11400         Remove reference to pre-Solaris 10 bug.
11401         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11402         systems and bugs.
11403         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11404         with cc.
11406 2016-04-17  Jan Hubicka  <jh@suse.cz>
11408         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11409         max_loop_iterations_int.
11411 2016-04-18  Richard Biener  <rguenther@suse.de>
11413         PR tree-optimization/43434
11414         * tree-ssa-structalias.c (struct vls_data): New.
11415         (visit_loadstore): Handle all pointer-based accesses.
11416         (compute_dependence_clique): Compute a bitmap of restrict tags
11417         assigned bases and pass it to visit_loadstore.
11419 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
11421         PR target/70711
11422         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11423         armv8.1-a and armv8.1-a+crc.
11425 2016-04-18  Richard Biener  <rguenther@suse.de>
11427         PR tree-optimization/70701
11428         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11429         references after translating through a memcpy.
11431 2016-04-18  Richard Biener  <rguenther@suse.de>
11433         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11434         (compute_antic): ... here.  For partial antic use regular
11435         postorder and scrap iteration.
11436         (compute_partial_antic_aux): Remove unused return value.
11437         (init_pre): Do not allocate postorder.
11438         (fini_pre): Do not free postorder.
11440 2016-04-18  Richard Biener  <rguenther@suse.de>
11442         PR middle-end/37870
11443         * expmed.c (extract_bit_field_1): Remove broken case
11444         using a wider MODE_INT mode.
11446 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
11448         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11449         unless compiling with at least GCC-4.8.
11451 2016-04-17  Jan Hubicka  <jh@suse.cz>
11453         PR bootstrap/70706
11454         * graphite.c (graphite_finalize): Update call to
11455         tree_estimate_probability.
11456         * predict.h (tree_estimate_probability): Update prototype.
11458 2016-04-17  Jan Hubicka  <jh@suse.cz>
11460         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11461         (tree_estimate_probability): Likewise.
11462         (pass_profile::execute): Update.
11463         (report_predictor_hitrates): New function.
11464         * profile.c (compute_branch_probabilities): Use it.
11465         * predict.h (report_predictor_hitrates): Declare.
11467 2016-04-17  Jan Hubicka  <jh@suse.cz>
11469         PR ipa/70018
11470         * cgraph.h (cgraph_node::set_const_flag,
11471         cgraph_node::set_pure_flag): Update prototype to return bool;
11472         update comment.
11473         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11474         of interposable symbol are interposable, too.
11475         (cgraph_set_const_flag_1): Rename to ...
11476         (set_const_flag_1): ... this one; change to self recursive function
11477         instead of call_for_symbol_thunks_and_aliases. Handle correctly
11478         clearnig the flag in all variants and also virtual thunks of const
11479         functions are pure; track if any change was done.
11480         (cgraph_node::set_const_flag): Update.
11481         (struct set_pure_flag_info): New struct.
11482         (cgraph_set_pure_flag_1): Rename to ...
11483         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11484         rather than pointer encoded flags; track if any changes was done;
11485         handle correctly clearning flag and setting flag of aliases already
11486         declared const.
11487         (cgraph_node::set_pure_flag): Update.
11488         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11490 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11492         PR other/70433
11493         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11494         backslash in label.
11496 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11498         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11499         '{}<> ' as escape-for-record.
11501 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11503         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11504         structure.
11506 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11508         PR other/70185
11509         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11510         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11511         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11512         * passes.c (finish_optimization_passes): Only call
11513         finish_graph_dump_file if dfi->graph_dump_initialized.
11514         (execute_function_dump, pass_init_dump_file): Use
11515         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11517 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11519         PR tree-optimization/70256
11520         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11521         (debug_varmap): New function.
11523 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11525         PR other/70183
11526         * passes.c (pass_manager::register_pass): Propagate pflags.
11528 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11530         PR other/68875
11531         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11532         * passes.c (pass_manager::pass_manager): Declare and init p_start in
11533         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
11534         check if it's equal to p_start.
11535         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11537 2016-04-15  Jan Hubicka  <jh@suse.cz>
11539         PR ipa/70018
11540         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11541         function does not bind to current def.
11542         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11543         handle conservatively calls to functions that does not need to bind
11544         to current def.
11545         (check_call): Update call of worse_state.
11546         (ignore_edge_for_nothrow): Update.
11547         (ignore_edge_for_pure_const): Likewise.
11548         (propagate_pure_const): Update calls to worse_state.
11549         (skip_function_for_local_pure_const): Reformat comments.
11551 2016-04-15  Jan Hubicka  <jh@suse.cz>
11553         PR ipa/70018
11554         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11555         (cgraph_node::function_symbol): Likewise.
11556         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11557         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11558         (symtab_node::ultimate_alias_target): Add REF parameter.
11559         (symtab_node::binds_to_current_def_p): Declare.
11560         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11561         (cgraph_node::function_symbol): Likewise.
11562         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11563         (cgraph_node::get_availability): Likewise.
11564         (cgraph_edge::binds_to_current_def_p): New inline function.
11565         (varpool_node::get_availability): Add REF parameter.
11566         (varpool_node::ultimate_alias_target): Likewise.
11567         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11568         (symtab_node::binds_to_current_def_p): Likewise.
11569         * varpool.c (varpool_node::get_availability): Likewise.
11571 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11573         PR target/70662
11574         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11575         Fix mode size check.
11577 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11579         * BASE-VER: Set to 7.0.0.
11581 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
11583         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11585 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11587         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11588         architecture revisions.
11590 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
11592         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11593         * config/i386/i386.c (ix86_using_red_zone): No longer static.
11594         * config/i386/i386.md (stack decrement to push peepholes): Guard
11595         with !x86_using_red_zone ().
11597 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11599         PR c++/70675
11600         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11601         to dump_generic_node.
11602         (NIY): Pass also flags to do_niy.
11604 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11606         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11607         (simd_clone_vector_of_formal_parm_types)
11608         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11609         (simd_clone_mangle, simd_clone_create)
11610         (simd_clone_adjust_return_type, create_tmp_simd_array)
11611         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11612         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11613         (ipa_simd_modify_function_body, simd_clone_linear_addend)
11614         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11615         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11616         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11617         * omp-simd-clone.c: ... this new file.
11618         (simd_clone_vector_of_formal_parm_types): Make it static.
11619         * Makefile.in (OBJS): Add omp-simd-clone.o.
11621 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11623         PR target/70662
11624         * config/i386/sse.md: Use proper memory operand modifiers.
11627 2016-04-15  Richard Biener  <rguenther@suse.de>
11628         Alan Modra  <amodra@gmail.com>
11630         PR tree-optimization/70130
11631         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11632         when alignment stays not the same and no not use the realign
11633         scheme then.
11635 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11637         PR target/70669
11638         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11639         direct move handlers for KFmode. Change TFmode handlers test from
11640         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11642 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
11644         PR c++/70594
11645         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11646         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11647         (inlined_polymorphic_ctor_dtor_block_p): Use it.
11648         * tree-ssa-live.c (remove_unused_scope_block_p): When
11649         in_ctor_dtor_block, avoid discarding not just BLOCKs with
11650         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11651         block_ultimate_origin is FUNCTION_DECL.
11652         (remove_unused_locals): If current_function_decl is
11653         polymorphic_ctor_dtor_p, pass initial true to
11654         remove_unused_scope_block_p' is_ctor_dtor_block.
11656 2016-04-14  Martin Sebor  <msebor@redhat.com>
11658         PR c++/69517
11659         PR c++/70019
11660         PR c++/70588
11661         * doc/extend.texi (Variable Length): Revert.
11663 2016-04-14  Marek Polacek  <polacek@redhat.com>
11664             Jan Hubicka  <hubicka@ucw.cz>
11666         PR c++/70029
11667         * tree.c (verify_type): Disable the canonical type of main variant
11668         check.
11670 2016-04-14  Jason Merrill  <jason@redhat.com>
11672         * cfgexpand.c, expr.c: Revert previous change.
11674 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11676         PR middle-end/70643
11677         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11678         when building a mem ref for the incoming reduction variable.
11680 2016-04-14  Richard Biener  <rguenther@suse.de>
11682         PR tree-optimization/70614
11683         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11684         loop if the evolution dropped to chrec_dont_know.
11685         (interpret_condition_phi): Likewise.
11687 2016-04-14  Richard Biener  <rguenther@suse.de>
11689         PR tree-optimization/70623
11690         * tree-ssa-pre.c (changed_blocks): Make global ...
11691         (compute_antic): ... local here.  Move and fix worklist
11692         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11693         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
11694         worklist handling, dump when ANTIC_IN changed.
11695         (compute_partial_antic_aux): Remove worklist handling.
11696         (init_pre): Do not compute post dominators.  Add a comment about
11697         the CFG order chosen.
11698         (fini_pre): Do not free post dominators.
11700 2016-04-13  Martin Sebor  <msebor@redhat.com>
11702         PR c++/69517
11703         PR c++/70019
11704         PR c++/70588
11705         * doc/extend.texi (Variable Length): Document C++ specifics.
11707 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11709         PR c++/70641
11710         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11711         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
11712         eh edges have been purged.
11714         PR c++/70594
11715         * tree-sra.c (create_access_replacement,
11716         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11717         gets fancy name.
11718         * tree-pretty-print.c (dump_fancy_name): New function.
11719         (dump_decl_name, dump_generic_node): Use it.
11721 2016-04-13  Jason Merrill  <jason@redhat.com>
11723         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11724         * expr.c (expand_expr_real_1): Likewise.
11726 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11728         * config/i386/i386.md (kunpckhi): Swap operands.
11729         (kunpcksi): Likewise.
11730         (kunpckdi): Likewise.
11731         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11732         (vec_pack_trunc_<mode>): Likewise.
11734 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11736         PR debug/70628
11737         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11739         PR middle-end/70633
11740         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11741         gimplification turns some element into non-constant.
11743         PR debug/70628
11744         * rtl.h (convert_memory_address_addr_space_1): New prototype.
11745         * explow.c (convert_memory_address_addr_space_1): No longer static,
11746         add NO_EMIT argument and don't call convert_modes if true, pass
11747         it down recursively, remove break after return.
11748         (convert_memory_address_addr_space): Adjust caller.
11749         * simplify-rtx.c (simplify_unary_operation_1): Call
11750         convert_memory_address_addr_space_1 instead of convert_memory_address,
11751         if it returns NULL, don't simplify.
11753 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11755         PR target/70630
11756         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11758 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11760         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11761         Bump the upper SIMDLEN limits, so that if the return type or
11762         characteristic type if the return type is void can be passed in
11763         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11764         allowed.
11766 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11768         PR target/70640
11769         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11770         Do not use "=" constraint on an input constraint.
11771         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11772         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11773         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11774         generates (neg (abs ...)) instead of (abs ...).
11776 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11778         PR rtl-optimization/70596
11779         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11780         just invalidate LRA data and reset them.  Adjust dump wording.
11782 2016-04-12  Martin Liska  <mliska@suse.cz>
11784         Revert
11785         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11787         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11788         estimates here.
11789         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11790         max_loop_iterations_int.
11791         (tree_unswitch_outer_loop): Likewise.
11792         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11793         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11795 2016-04-12  Tom de Vries  <tom@codesourcery.com>
11797         PR tree-optimization/68756
11798         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11799         instead of new_name.
11801 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11803         PR tree-optimization/70602
11804         * tree-sra.c (generate_subtree_copies): Don't write anything into
11805         constant pool decls.
11807         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11808         regardless whether there are depend clauses or not.
11810 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11812         PR target/70381
11813         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11814         target attribute and pragma from changing the -mfloat128
11815         and -mfloat128-hardware options.
11817         * doc/extend.texi (Additional Floating Types): Document PowerPC
11818         __float128 restrictions.
11820 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11822         PR target/70133
11823         * config/aarch64/driver-aarch64.c
11824         (aarch64_get_extension_string_for_isa_flags): New.
11825         (arch_extension): Rename to...
11826         (aarch64_arch_extension): ...This.
11827         (ext_to_feat_string): Rename to...
11828         (aarch64_extensions): ...This.
11829         (aarch64_core_data): Keep track of architecture extension flags.
11830         (cpu_data): Rename to...
11831         (aarch64_cpu_data): ...This.
11832         (aarch64_arch_driver_info): Keep track of architecture extension
11833         flags.
11834         (get_arch_name_from_id): Rename to...
11835         (get_arch_from_id): ...This, change return type.
11836         (host_detect_local_cpu): Update and reformat for renames, handle
11837         extensions through common infrastructure.
11839 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11841         PR target/70133
11842         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
11843         track of a canonical flag name.
11844         (all_extensions): Likewise.
11845         (arch_to_arch_name): Also track extension flags enabled by the arch.
11846         (all_architectures): Likewise.
11847         (aarch64_parse_extension): Move to here.
11848         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
11849         rework.
11850         (aarch64_rewrite_selected_cpu): Update for above change.
11851         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
11852         are handled, such that the single explicit value enabled by an
11853         extension is kept seperate from the implicit values it also enables.
11854         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
11855         to here.
11856         (aarch64_parse_extension): New.
11857         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
11858         here to config/aarch64/aarch64-protos.h.
11859         (aarch64_parse_extension): Move from here to
11860         common/config/aarch64/aarch64-common.c.
11861         (aarch64_option_print): Update.
11862         (aarch64_declare_function_name): Likewise.
11863         (aarch64_start_file): Likewise.
11864         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
11865         the canonical flag for extensions.
11866         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
11867         flags.
11869 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11871         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
11872         AARCH64_FL_CRC.
11874 2016-04-09  Tom de Vries  <tom@codesourcery.com>
11876         PR tree-optimization/68953
11877         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
11878         first to last subscript.
11880 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
11882         PR tree-optimization/70586
11883         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
11884         for any calls.
11886 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
11888         PR lto/70289
11889         PR ipa/70348
11890         PR tree-optimization/70373
11891         PR middle-end/70533
11892         PR middle-end/70534
11893         PR middle-end/70535
11894         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
11895         clauses for acc parallel reductions as necessary.  Error on those
11896         that are private.
11897         * omp-low.c (scan_sharing_clauses): Don't install variables which
11898         are used in acc parallel reductions.
11899         (lower_rec_input_clauses): Remove dead code.
11900         (lower_oacc_reductions): Add support for reference reductions.
11901         (lower_reduction_clauses): Remove dead code.
11902         (lower_omp_target): Don't remap variables appearing in acc parallel
11903         reductions.
11904         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
11906 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
11908         PR middle-end/70593
11909         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
11910         with multiple SSA_NAME defs, force the outputs other than first
11911         to be live before calling live_track_process_def on each output.
11913         PR rtl-optimization/70574
11914         * fwprop.c (forward_propagate_and_simplify): Don't add
11915         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
11916         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
11917         paradoxical subregs within *loc.
11919 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
11921         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
11922         -ftree-parallelize-loops={0,1}.
11923         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11924         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11925         * config/ia64/hpux.h (LIB_SPEC): Likewise.
11926         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11927         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11929 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
11931         PR sanitizer/70541
11932         * asan.c (instrument_derefs): If we get unknown location, extract it
11933         with EXPR_LOCATION.
11934         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
11936 2016-04-08  Tom de Vries  <tom@codesourcery.com>
11938         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
11939         implicit firstprivate clause.
11941 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11943         PR target/70566
11944         * config/arm/thumb2.md (tst + branch-> lsls + branch
11945         peephole below *orsi_not_shiftsi_si): Require that condition
11946         register is dead after the peephole.
11947         (second peephole after the above): Likewise.
11949 2016-04-08  Alan Modra  <amodra@gmail.com>
11951         PR target/70117
11952         * builtins.c (fold_builtin_classify): For IBM extended precision,
11953         look at just the high-order double to test for NaN.
11954         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
11955         test just the high double for Inf but both doubles for subnormal
11956         limit.
11958 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
11960         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
11961         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
11962         node->simdclone->mask_mode != VOIDmode masks.
11963         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
11964         earlier, use it instead of node->simdclone.
11965         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11966         Set clonei->mask_mode.
11968 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11970         PR c/70436
11971         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
11972         Pass it through to cp_parser_already_scoped_statement.
11973         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
11974         it through to cp_parser_statement.
11975         (cp_parser_statement): Pass IF_P through to
11976         cp_parser_iteration_statement.
11977         (cp_parser_pragma): Adjust call to
11978         cp_parser_iteration_statement.
11980 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
11982         PR c/70436
11983         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
11984         resolve a future -Wparentheses warning.
11985         * omp-low.c (scan_sharing_clauses): Likewise.
11986         * tree-parloops.c (eliminate_local_variables): Likewise.
11988 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
11990         PR rtl-optimization/70398
11991         * lra-constraints.c (process_address_1): Check zero scale and code
11992         for reloading with zero scale.
11994 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
11996         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
11997         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
11999 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
12001         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12002         Add support for AVX512F clones, include them by default for
12003         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
12004         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12005         up to 128.
12007         PR middle-end/70550
12008         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12009         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12010         firstprivate clauses.
12011         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12012         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12013         (lower_omp_target): Set TREE_NO_WARNING for
12014         non-addressable possibly uninitialized vars which are copied into
12015         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12017 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
12019         * config/pa/predicates.md (integer_store_memory_operand): Accept
12020         REG+D operands with a large offset when reload_in_progress is true.
12021         (floating_point_store_memory_operand): Likewise.
12023 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12025         PR c++/70336
12026         * match.pd (nested int casts): Limit to GIMPLE.
12028 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
12030         PR ipa/66223
12031         * ipa-devirt.c (maybe_record_node): Fix comment; use
12032         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12034 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12036         PR rtl-optimization/70542
12037         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12038         if there are any uses other than insn or debug insns.
12040 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
12041             Jakub Jelinek  <jakub@redhat.com>
12043         PR tree-optimization/70509
12044         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12045         Shift HOST_WIDE_INT_1U instead of 1.
12047 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
12049         PR tree-optimization/70509
12050         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12051         of the vector base type for index.
12053 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
12055         PR target/70510
12056         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12058 2016-04-05  Richard Biener  <rguenther@suse.de>
12060         PR tree-optimization/70526
12061         * tree-sra.c (build_ref_for_offset): Use prev_base to
12062         extract the alias pointer type.
12064 2016-04-05  Richard Biener  <rguenther@suse.de>
12066         * dse.c (struct store_info): Remove alias_set member.
12067         (struct read_info_type): Likewise.
12068         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12069         spill_deleted, clear_alias_set_lookup): Remove.
12070         (get_group_info): Remove dead base == NULL_RTX case.
12071         (dse_step0): Remove initialization of removed variables.
12072         (delete_dead_store_insn): Reomve alias set dumping.
12073         (free_read_records): Remove alias_set handling.
12074         (canon_address): Remove alias_set_out parameter.
12075         (record_store): Remove spill_alias_set, it's always zero.
12076         (check_mem_read_rtx): Likewise.
12077         (dse_step2): Rename from ...
12078         (dse_step2_nospill): ... this.  Adjust.
12079         (scan_stores): Rename from ...
12080         (scan_stores_nospill): ... this.
12081         (scan_reads): Rename from ...
12082         (scan_reads_nospill): ... this.
12083         (scan_stores_spill, scan_reads_spill): Remove.
12084         (dse_step3_scan): Remove for_spills argument which is always false.
12085         (dse_step3): Likewise.
12086         (dse_step5): Rename from ...
12087         (dse_step5_nospill): ... this.  Remove alias_set handling.
12088         (rest_of_handle_dse): Adjust.
12090 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12092         PR target/70525
12093         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12094         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12095         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12096         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12098 2016-04-05  Richard Biener  <rguenther@suse.de>
12100         PR middle-end/70499
12101         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12102         non-register type temporaries into SSA.
12104 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
12106         PR ipa/66223
12107         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12108         calls when sanitizing.
12109         (possible_polymorphic_call_target_p): Fix formatting.
12111 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12112             Jakub Jelinek <jakub@redhat.com>
12114         PR middle-end/70457
12115         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12116         to ensure a call statement is compatible with a built-in's
12117         prototype.
12118         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12119         Likewise.
12121 2016-04-04  Richard Biener  <rguenther@suse.de>
12123         PR rtl-optimization/70484
12124         * rtl.h (canon_output_dependence): Declare.
12125         * alias.c (canon_output_dependence): New function.
12126         * dse.c (record_store): Use canon_output_dependence rather
12127         than canon_true_dependence.
12129 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12131         PR ipa/68881
12132         * cgraph.h (symtab_node::copy_visibility_from): New function.
12133         * symtab.c (symtab_node::copy_visibility_from): New function.
12134         * ipa-visibility.c (optimize_weakref): New function.
12135         (function_and_variable_visibility): Use it.
12137 2016-04-04  Martin Liska  <mliska@suse.cz>
12139         PR hsa/70402
12140         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12141         value that is really in range handled by SBR instruction.
12142         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12143         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12144         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12146 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
12148         PR target/70416
12149         PR target/67391
12150         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12151         set, but not for SP_REG operands.
12153 2016-04-02  Martin Sebor  <msebor@redhat.com>
12155         PR c++/67376
12156         * fold-const.c (maybe_nonzero_address): New function.
12157         (fold_comparison): Call it.  Fold equality and relational
12158         expressions involving null pointers.
12159         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12161 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
12163         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12164         the "Y" constraint (scalar FP 0.0 immediate).
12166         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12167         Add the "const_double" to the list of operand constraints.
12169 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
12171         PR rtl-optimization/70467
12172         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12173         If low word of the last operand is 0, just emit addition/subtraction
12174         for the high word.
12176 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12178         PR target/70404
12179         * config/s390/s390.c (s390_expand_insv): Check for everything
12180         constant instead of just VOIDmode stuff.
12182 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12184         PR target/70496
12185         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12187 2016-04-01  Nathan Sidwell  <nathan@acm.org>
12189         * tree.def (TRY_CATCH_EXPR): Correct documentation.
12191 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12193         PR rtl-optimization/70461
12194         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12195         is necessary.
12197 2016-03-31  Martin Liska  <mliska@suse.cz>
12199         PR hsa/70399
12200         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12201         a tree value or an immediate integer value to a buffer
12202         that is eventually copied to a BRIG section.
12203         (emit_immediate_operand): Call the function here.
12204         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12205         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12206         of class' fields that are removed.
12207         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12208         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12209         m_brig_repr_size fields.
12211 2016-03-31  Martin Liska  <mliska@suse.cz>
12213         PR hsa/70391
12214         * hsa-gen.c (hsa_function_representation::update_dominance): New
12215         function.
12216         (convert_addr_to_flat_segment): Likewise.
12217         (gen_hsa_memory_set): New alignment argument.
12218         (gen_hsa_ctor_assignment): Likewise.
12219         (gen_hsa_insns_for_single_assignment): Provide alignment
12220         to gen_hsa_ctor_assignment.
12221         (gen_hsa_insns_for_direct_call): Add new argument.
12222         (expand_lhs_of_string_op): New function.
12223         (expand_string_operation_builtin): Likewise.
12224         (expand_memory_copy): New function.
12225         (expand_memory_set): New function.
12226         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12227         (convert_switch_statements): Change signature.
12228         (generate_hsa): Use a return value of the function.
12229         (pass_gen_hsail::execute): Do not call
12230         convert_switch_statements here.
12231         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12232         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12233         (hsa_function_representation::update_dominance): New function.
12235 2016-03-31  Martin Liska  <mliska@suse.cz>
12237         PR hsa/70391
12238         * hsa-brig.c (emit_directive_variable): Emit alignment
12239         according to hsa_symbol::m_align.
12240         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12241         (dump_hsa_symbol): Dump alignment of HSA symbols.
12242         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12243         (gen_hsa_addr_with_align): New function.
12244         (hsa_bitmemref_alignment): Use newly added function.
12245         (gen_hsa_insns_for_load): Likewise.
12246         (gen_hsa_insns_for_store): Likewise.
12247         (gen_hsa_memory_copy): New argument added.
12248         (gen_hsa_insns_for_single_assignment): Respect
12249         alignment for assignments processed via gen_hsa_memory_copy.
12250         (gen_hsa_insns_for_direct_call): Likewise.
12251         (gen_hsa_insns_for_return): Likewise.
12252         (gen_function_def_parameters): Set default alignment.
12253         * hsa.c (hsa_object_alignment): New function.
12254         (hsa_byte_alignment): Pasted function.
12255         * hsa.h (hsa_symbol::m_align): New field.
12257 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12259         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12260         scratch field for goto case.
12262 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
12264         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12266 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
12268         PR target/70442
12269         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12270         (scalar_chain::convert_insn): Call convert_op for reg
12271         moves to handle undefined registers.
12273 2016-03-31  Nathan Sidwell  <nathan@acm.org>
12275         PR c++/70393
12276         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12277         Assert we don't want to move backwards.
12279 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12281         PR target/70453
12282         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12284 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
12286         PR rtl-optimization/70460
12287         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12288         with operand from REG_LABEL_OPERAND, instead substitute
12289         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12290         Don't do anything for REG_NON_LOCAL_GOTO jumps.
12292 2016-03-31  Martin Liska  <mliska@suse.cz>
12294         * passes.c (execute_one_pass): Do not call
12295         todo_after for a discarded function.
12297 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12299         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12300         (no_cost, infinite_cost): Initialize the new field.
12301         (get_computation_cost_at): Record setup cost.
12302         (determine_use_iv_cost_address): Skip cost computation for sub
12303         uses if we can estimate it without losing accuracy.
12305 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12307         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12308         estimates here.
12309         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12310         max_loop_iterations_int.
12311         (tree_unswitch_outer_loop): Likewise.
12312         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12313         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12315 2016-03-30  Richard Biener  <rguenther@suse.de>
12317         PR middle-end/70450
12318         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12320 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
12322         PR target/70421
12323         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12324         in gen_blendm expander.
12326 2016-03-30  Nick Clifton  <nickc@redhat.com>
12328         PR target/62254
12329         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12330         case where we are already provided with an SImode SUBREG.
12332 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12334         PR target/70439
12335         * config/i386/i386.c (ix86_expand_epilogue): Properly check
12336         conflict between DRAP register and __builtin_eh_return.
12338 2016-03-30  Michael Matz  <matz@suse.de>
12339             Richard Biener  <rguenther@suse.de>
12341         PR ipa/12392
12342         * ipa-polymorphic-call.c (struct type_change_info): Change
12343         speculative to an unsigned allowing to limit the work we do.
12344         (csftc_abort_walking_p): New inline function..
12345         (check_stmt_for_type_change): Limit the number of may-defs
12346         skipped for speculative devirtualization to
12347         max-speculative-devirt-maydefs.
12348         * params.def (max-speculative-devirt-maydefs): New param.
12349         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12351 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
12353         PR target/63890
12354         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12355         and TARGET_MACHO.
12357 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
12359         PR tree-optimization/59124
12360         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12361         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12363 2016-03-29  Jeff Law  <law@redhat.com>
12365         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12367 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12369         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12370         to HOST_WIDE_INT.
12372 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12374         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12375         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12376         gcrt0.o if linking dynamically.
12378 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12380         PR ipa/70283
12381         * ipa-devirt.c (methods_equal_p): New function.
12382         (compare_virtual_tables): Use it.
12383         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12384         * cgraphclones.c (clone_function_name_1): Use
12385         symbol_table::symbol_suffix_separator.
12386         * coverage.c (build_var): Likewise.
12387         * symtab.c (symbol_table::symbol_suffix_separator): New.
12389 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
12391         PR rtl-optimization/70429
12392         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12393         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12394         mode != result_mode.
12396         PR c++/70353
12397         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12399         PR tree-optimization/70405
12400         * ssa-iterators.h (num_imm_uses): Add missing braces.
12402 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12404         PR rtl-optimization/68695
12405         * ira-color.c (allocno_copy_cost_saving): New.
12406         (improve_allocation): Use it.
12408 2016-03-29  Richard Henderson  <rth@redhat.com>
12410         PR middle-end/70355
12411         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12413 2016-03-29  Richard Biener  <rguenther@suse.de>
12415         PR middle-end/70424
12416         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12417         use alignment returned by get_pointer_alignment_1 if it is
12418         bigger than BITS_PER_UNIT.
12419         * builtins.c (get_pointer_alignment_1): Do not return true
12420         for alignment extracted from SSA info.
12422 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
12424         * config/ft32/ft32.opt (mnodiv): New.
12425         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12426         * doc/invoke.texi (FT32 Options -mnodiv): New.
12428 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
12430         PR target/70406
12431         * config/i386/i386.md (define_split, andn): Fix modes.
12433 2016-03-26  Richard Biener  <rguenther@suse.de>
12434             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12436         PR ipa/70366
12437         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12438         instead of
12439         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12440         as 2nd argument to cl_optimization_restore().
12442 2016-03-25  Richard Henderson  <rth@redhat.com>
12444         PR target/70120
12445         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12446         * config/aarch64/aarch64-protos.h: Declare it.
12447         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12449 2016-03-25  Alan Modra  <amodra@gmail.com>
12451         PR target/70052
12452         * config/rs6000/constraints.md (j): Simplify.
12453         * config/rs6000/predicates.md (easy_fp_constant): Exclude
12454         decimal float 0.D.
12455         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12456         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12457          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12458         in all constraint alternatives.
12459         (movtd_64bit_nodm): Delete "j" constraint alternative.
12461 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12463         * tree-ssa-propagate.c: Enhance docs for
12464         SSA_PROP_NOT_INTERESTING.
12466 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12468         * doc/extend.texi: Fix typo in documentation to pure attribute.
12470 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
12472         PR target/70319
12473         * config/pa/pa.md (bswapdi2): Use a scratch register.
12475 2016-03-24  Richard Henderson  <rth@redhat.com>
12477         PR middle-end/69845
12478         * fold-const.c (extract_muldiv_1): Correct test for multiplication
12479         overflow.
12481 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
12483         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12484         using ix86_expand_binary_operator instead of gen_andsi3.
12486 2016-03-24  Richard Biener  <rguenther@suse.de>
12488         PR tree-optimization/70396
12489         * tree-vect-stmts.c (vectorizable_comparison): Use
12490         get_vectype_for_scalar_type.
12492 2016-03-24  Richard Biener  <rguenther@suse.de>
12494         PR middle-end/70370
12495         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12496         with register bases.
12498 2016-03-24  Richard Biener  <rguenther@suse.de>
12500         PR tree-optimization/70372
12501         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12502         build_all_ones_cst to also handle vector types correctly.
12504 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12506         PR target/70381
12507         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12508         -mfloat128 here.
12510 2016-03-23  Marek Polacek  <polacek@redhat.com>
12512         PR c++/69884
12513         * doc/invoke.texi: Document -Wignored-attributes.
12515 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12517         PR tree-optimization/69042
12518         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12519         parameter from 30 to 40.
12521 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12523         PR tree-optimization/69042
12524         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12525         for use with constant offset stripped in base.
12527 2016-03-23  Richard Biener  <rguenther@suse.de>
12529         PR middle-end/70251
12530         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12531         mode compatibility check.
12532         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12534 2016-03-23  Jeff Law  <law@redhat.com>
12536         PR tree-optimization/64058
12537         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12538         CONFLICT_COUNT.
12539         (struct ssa_conflicts): Move up earlier in the file.
12540         (conflicts_, var_map_): New static variables.
12541         (initialize_conflict_count): New function to initialize the
12542         CONFLICT_COUNT field for each conflict pair.
12543         (compare_pairs): Lazily initialize the conflict count and use it
12544         as the first tie-breaker.
12545         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
12546         and wipe conflicts_ and map_ around the call to qsort.  Remove
12547         special case for 2 coalesce pairs.
12548         * bitmap.c (bitmap_count_unique_bits): New function.
12549         (bitmap_count_bits_in_word): New function, extracted from
12550         bitmap_count_bits.
12551         (bitmap_count_bits): Use bitmap_count_bits_in_word.
12552         * bitmap.h (bitmap_count_unique_bits): Declare it.
12554 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
12556         PR target/69917
12557         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12558         transparent alias chain for decl assembler name.
12559         * config/sol2.c (solaris_assemble_visibility): Likewise.
12561 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12563         * config/arm/arm1020e.md (1020call_op): Reduce reservation
12564         duration.
12565         (v10_fdivs): Likewise.
12566         (v10_fdivd): Likewise.
12568 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12570         PR driver/70132
12571         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12572         to not call fclose twice on file.
12574 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12576         PR tree-optimization/70354
12577         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12578         oprnd0 is wider than oprnd1 and there is a cast from the wider
12579         type to oprnd1, mask it with the mask of the narrower type.
12581         PR target/70321
12582         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12583         Optimize TARGET_STV splitters, if high or low word of last argument
12584         is 0 or -1.
12586 2016-03-22  Jeff Law  <law@redhat.com>
12588         PR target/70232
12589         tree-ssa-threadbackward.c
12590         (fsm_find_control_statement_thread_paths): Correctly distinguish
12591         between old style jump threads vs FSM jump threads.
12593 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
12595         PR target/70302
12596         * config/i386/i386.c (scalar_chain::convert_op): Support
12597         uninitialized register usage case.
12599 2016-03-22  Richard Biener  <rguenther@suse.de>
12601         PR middle-end/70251
12602         * genmatch.c (gen_transform): Adjust last parameter to a three-state
12603         int...
12604         (capture::gen_transform): ... to change behavior when substituting
12605         a condition into cond or not-cond expr context.
12606         (dt_simplify::gen_1): Adjust.
12607         * gimple-match-head.c: Include gimplify.h for unshare_expr.
12608         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12609         last change and instead change to
12610         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12611         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12613 2016-03-22  Anthony Green  <green@moxielogic.com>
12615         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
12616         issue for moxiebox targets.
12617         (CC1PLUS_SPEC): Ditto.
12619 2016-03-22  Richard Biener  <rguenther@suse.de>
12621         PR middle-end/70333
12622         * fold-const.c (extract_muldiv_1): Properly perform multiplication
12623         in the wide type.
12625 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12627         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12629 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12631         PR target/70325
12632         * config/i386/i386.c (def_builtin): Handle
12633         OPTION_MASK_ISA_AVX512VL to be and-ed with other
12634         bits.
12635         (const struct builtin_description bdesc_special_args[]):
12636         Remove duplicate ISA bits.
12638 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
12640         PR target/70329
12641         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12642         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
12643         in a way that works also for AVX512BW.
12645         PR target/70300
12646         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12647         instead of source if operands[1] is xmm16 and above and
12648         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
12649         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12651         PR c++/70295
12652         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12653         on assign if (*from_p) is a comparison, set it to
12654         TREE_NO_WARNING (*from_p).
12656 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12658         PR middle-end/70326
12659         * lra.c (restore_scratches): Ignore deleted insns.
12661 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
12662             Jakub Jelinek  <jakub@redhat.com>
12664         PR tree-optimization/70317
12665         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12666         to HONOR_NANS.
12668 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
12670         PR target/70327
12671         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12672         of ix86_expand_move.
12673         (movoi): Ditto.
12674         (movti): Use general_operand for operand 1 predicate.
12676 2016-03-21  Martin Liska  <mliska@suse.cz>
12678         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12679         insns.
12680         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12682 2016-03-21  Martin Liska  <mliska@suse.cz>
12684         PR ipa/70306
12685         * ipa-icf.c (sem_function::parse): Skip static
12686         constructors and destructors.
12688 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12690         PR target/70296
12691         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12692         function-like macro, peek following token(s) if it is followed
12693         by CPP_OPEN_PAREN token with optional padding in between, and
12694         if not, don't treat it like a macro.
12696 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12697             Alexander Monakov  <amonakov@ispras.ru>
12699         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12700         for the stabs debug format.
12702 2016-03-21  Richard Biener  <rguenther@suse.de>
12704         PR tree-optimization/70310
12705         * tree-vect-generic.c (expand_vector_condition): Fold the built
12706         condition.
12708 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
12710         PR target/70293
12711         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12712         Block third alternative for AVX-512VL target,
12714 2016-03-21  Martin Liska  <mliska@suse.cz>
12716         PR hsa/70234
12717         * hsa-brig.c (emit_function_directives): Mark unemitted
12718         global variables for emission.
12719         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12720         (get_symbol_for_decl): Likewise.
12721         * hsa.h (struct hsa_symbol): New flag.
12723 2016-03-21  Richard Biener  <rguenther@suse.de>
12725         PR tree-optimization/70288
12726         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12727         we do not estimate unsimplified all-constant conditionals or
12728         switches as optimized away.
12730 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
12732         PR rtl-optimization/69102
12733         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12734         when we have a readonly dependency context.
12736 2016-03-18  Jeff Law  <law@redhat.com>
12738         PR rtl-optimization/70263
12739         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12740         (update_equiv_regs): When trying to move a store to after the insn
12741         that sets the source of the store, make sure the store occurs after
12742         the insn that sets the source of the store.  When successful note
12743         the REG_EQUIV note created in the dump file.
12745 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
12746             Bernd Schmidt  <bschmidt@redhat.com>
12748         * doc/extend.texi: Document more potential problems with basic asms.
12750 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
12752         PR rtl-optimization/70278
12753         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12754         VOIDmode.
12756 2016-03-18  Jason Merrill  <jason@redhat.com>
12758         * calls.c (load_register_parameters): Fix zero size sibcall logic.
12760 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12762         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12763         values to 128b regs.
12765 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12767         PR tree-optimization/70252
12768         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12769         boolean vector has a proper number of elements.
12770         (supportable_narrowing_operation): Likewise.
12772 2016-03-18  Tom de Vries  <tom@codesourcery.com>
12774         PR ipa/70269
12775         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12777 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
12779         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12780         instead of replace_rtx for DEBUG_INSNs.
12782 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12784         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12785         load type reservations.
12787 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
12789         PR target/70188
12790         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
12791         define_constraint for "Q" and "T" constraints.
12793 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
12795         Tweak the pipeline model for Exynos M1
12797         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
12798         model.
12800 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
12802         PR c/70264
12803         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12804         where one or both locations aren't within a line_map.
12806 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12808         PR driver/70192
12809         * opts.c (finish_options): Don't set flag_pie to the default if
12810         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
12811         if it is -1.
12813 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12815         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12816         true as ALL_REGS argument to replace_rtx.
12818 2016-03-17  Richard Biener  <rguenther@suse.de>
12820         PR debug/70271
12821         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12822         last.
12824 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12826         PR target/70245
12827         * rtl.h (replace_rtx): Add ALL_REGS argument.
12828         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
12829         equality and assert mode is the same, instead of just rtx pointer
12830         equality.
12831         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12832         true as ALL_REGS argument to replace_rtx.
12834 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
12836         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12837         for boolean vector with vector mode only.
12838         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12840 2016-03-17  Nick Clifton  <nickc@redhat.com>
12842         PR target/70162
12843         * config/rx/rx.c (rx_print_integer): Print negative constants in
12844         decimal.
12846 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12848         PR target/70261
12849         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
12851 2016-03-16  Richard Henderson  <rth@redhat.com>
12852             Richard Biener  <rguenth@suse.de>
12854         PR middle-end/70240
12855         PR middle-end/68215
12856         PR tree-opt/68714
12857         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
12858         first operand as is_gimple_condexpr.
12860         PR middle-end/70240
12861         PR middle-end/68215
12862         Revert r231575
12863         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
12864         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
12865         Do not gimplify the result.
12866         (do_unop): Adjust call to tree_vec_extract.
12867         (do_binop): Likewise.
12868         (do_compare): Likewise.
12869         (do_plus_minus): Likewise.
12870         (do_negate): Likewise.
12871         (expand_vector_condition): Likewise.
12872         (do_cond): Likewise.
12874 2016-03-16  Richard Henderson  <rth@redhat.com>
12876         PR target/70048
12877         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
12878         (aarch64_classify_address): Use it.
12879         (aarch64_legitimize_address): Force all subexpressions of PLUS
12880         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
12882 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
12883             Richard Biener  <rguenth@suse.de>
12885         PR target/70245
12886         * rtlanal.c (replace_rtx): For REG, if from is a REG,
12887         return to even if only REGNO is equal, and assert
12888         mode is the same.
12890 2016-03-11  Jeff Law  <law@redhat.com>
12892         PR rtl-optimization/70224
12893         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
12895 2016-03-16  Richard Henderson  <rth@redhat.com>
12897         PR middle-end/70199
12898         * function.h (struct function): Add has_forced_label_in_static.
12899         * gimplify.c (force_labels_r): Set it.
12900         * lto-streamer-in.c (input_struct_function_base): Read it.
12901         * lto-streamer-out.c (output_struct_function_base): Write it.
12902         * tree-inline.c (has_label_address_in_static_1): Remove.
12903         (copy_forbidden): Remove fndecl parameter; test
12904         has_forced_label_in_static.
12905         (inline_forbidden_p): Update call to copy_forbidden.
12906         (tree_versionable_function_p): Likewise.
12907         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
12908         (chkp_versioning): Likewise.
12909         * tree-inline.h (copy_forbidden): Update decl.
12911 2016-03-16  Marek Polacek  <polacek@redhat.com>
12913         PR c/70093
12914         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
12915         function being thunked if the result type doesn't have fixed size.
12916         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
12917         doesn't have fixed size.
12919 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
12921         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
12922         reporting malformed loop nest.
12924 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12926         PR lto/70187
12927         * ipa-devirt.c (possible_polymorphic_call_targets): Move
12928         nodes.length () == 1 test to before first nodes[0] access.
12930 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12932         PR tree-optimization/68715
12933         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
12934         single_pred_p test.
12936 2016-03-16  Tom de Vries  <tom@codesourcery.com>
12938         PR tree-optimization/68809
12939         * graphite-scop-detection.c (same_close_phi_node): Test if result types
12940         are the same.
12942 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
12943             Sandra Loosemore  <sandra@codesourcery.com>
12945         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
12946         on leaf attribute. Mention ELF interposition problems.
12948 2016-03-16  Alan Modra  <amodra@gmail.com>
12950         PR rtl-optimization/69195
12951         PR rtl-optimization/47992
12952         * ira.c (indirect_jump_optimize): Ignore artificial defs.
12953         Add comments.
12955 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
12957         PR bootstrap/69513
12958         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
12960 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12962         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
12964 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
12966         PR rtl-optimization/70222
12967         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
12968         optimization if mode is different from result_mode, queue up masking
12969         of the result in outer_op.  Formatting fix.
12971         PR middle-end/70239
12972         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
12973         of safe_grow.
12975 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12977         PR rtl-optimization/69032
12978         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
12979         looping backwards over basic block insns.
12981 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12983         PR target/66660
12984         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
12985         to non-speculative when propagating trap bits.
12987 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12989         PR rtl-optimization/63384
12990         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
12991         DEBUG_INSN_P insns.
12993 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
12995         PR target/64411
12996         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
12997         factored out from ...
12998         (sched_analyze_insn): ... here.
12999         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13000         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13001         get_implicit_reg_pending_clobbers in it.
13002         (setup_id_reg_sets): Use setup_id_implicit_regs.
13003         (deps_init_id): Ditto.
13005 2016-03-15  Tom de Vries  <tom@codesourcery.com>
13007         PR ipa/70161
13008         * cgraph.c (cgraph_node::get_body): Save, reset and restore
13009         dump_file_name.
13010         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13011         execute_function_dump.
13012         (execute_one_pass): Don't dump function if it will be dumped after ipa
13013         transform.
13015 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
13017         * genrecog.c (match_pattern_2): If pred is NULL don't call
13018         safe_predicate_mode on it.
13020 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
13022         PR middle-end/70219
13023         * lra-constraints.c (delete_move_and_clobber): Change assertion
13024         to also allow dregno == 0.
13026 2016-03-14  Richard Henderson  <rth@redhat.com>
13028         PR tree-opt/68714
13029         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13030         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13031         (reassociate_bb): Use optimize_vec_cond_expr; avoid
13032         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13033         on vectors.
13035 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
13037         PR target/70083
13038         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13039         regs.
13040         (lra_create_live_ranges_1): initialize hard register biggest_mode to
13041         VOIDmode.
13042         * lra-constraints.c (split_reg): For hard regs, try to find the
13043         biggest single-register mode used in the function.
13045 2016-03-14  Richard Biener  <rguenther@suse.de>
13047         PR tree-optimization/56365
13048         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13049         constants to compare against.
13051 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
13053         PR target/70098
13054         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13055         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13056         (define_split for the GPR case): Use int_reg_operand instead of
13057         gpc_reg_operand for the output.
13059 2016-03-14  Tom de Vries  <tom@codesourcery.com>
13061         PR tree-optimization/70045
13062         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13063         create_empty_if_region_on_edge argument.
13065 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
13067         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13068         (STACK_CHECK_PROTECT): Likewise.
13069         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13070         (STACK_CHECK_PROTECT): Likewise.
13071         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13072         (STACK_CHECK_PROTECT): Likewise.
13073         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13074         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13075         (STACK_CHECK_PROTECT): Likewise.
13077 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
13079         PR rtl-optimization/69307
13080         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13081         registers in modes that span more than one register.
13083 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
13085         PR target/69614
13086         * lra-constraints.c (delete_move_and_clobber): New.
13087         (remove_inheritance_pseudos): Use it.
13089 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
13091         PR ada/70017
13092         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13093         the libcall is LCT_THROW.
13094         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13095         for the checking routine.
13097 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13099         PR target/70131
13100         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13101         optimization if we have direct move.
13102         (roundu32<mode>2_fprs): Likewise.
13104 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
13106         PR target/70123
13107         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13108         be rematerialized.
13109         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13110         Arguments swapped.  All callers changed.  Take reg_renumber into
13111         account, and Calculate and compare register ranges for hard regs.
13113 2016-03-11  Jeff Law  <law@redhat.com>
13115         PR tree-optimization/70190
13116         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13117         Handle cases where we can not extract the taken edge, even though we
13118         found a constant value.
13120         PR tree-optimization/64058
13121         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13122         (num_coalesce_pairs): Move up earlier in file.
13123         (find_coalesce_pair): Initialize the INDEX field for each pair
13124         discovered.
13125         (compare_pairs): No longer sort on the elements in each pair.
13126         Instead break ties with the index of the coalesce pair.
13128 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13130         PR target/70002
13131         * config/aarch64/aarch64-protos.h
13132         (aarch64_save_restore_target_globals): New prototype.
13133         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13134         Call the above when popping pragma.
13135         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13136         New function.
13137         (aarch64_set_current_function): Rewrite using the above.
13139 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13141         PR tree-optimization/70177
13142         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13143         (extract_ops_from_tree): ... this.  In the 2 argument
13144         overload remove _1 suffix.
13145         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13146         (extract_ops_from_tree): ... this.
13147         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13148         Adjust callers.
13149         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13150         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13151         extract_ops_from_tree instead of 2 operand one.
13153 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
13155         PR tree-optimization/70013
13156         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13157         for constant-pool entries.
13159 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13161         PR rtl-optimization/70174
13162         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13163         followed by gen_lowpart on force_reg instead of just gen_lowpart.
13165         PR tree-optimization/70169
13166         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13167         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
13168         for unknown codes.
13170 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
13171             Jakub Jelinek  <jakub@redhat.com>
13173         PR target/70160
13174         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13175         of uninitialized values.
13177 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13179         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13180         define_expand.
13181         ("*trunctddd2"): New pattern definition.
13182         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13183         TD->DD truncation.
13185 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13187         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13188         definitions for BFP and DFP rounding modes.
13189         ("fixuns_truncdddi2", "fixuns_trunctddi2")
13190         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13191         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13192         ("fix_trunctf<mode>2"): Use the new constants instead of magic
13193         numbers.
13195 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13197         * config/s390/constraints.md: Adjust comment.
13198         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
13199         s390_decompose_addrstyle_without_index.
13200         * config/s390/predicates.md (shift_count_or_setmem_operand):
13201         Rename to setmem_operand.
13202         * config/s390/s390-protos.h
13203         (s390_decompose_shift_count): Rename to
13204         s390_decompose_addrstyle_without_index.
13205         * config/s390/s390.c (s390_decompose_shift_count)
13206         (s390_mem_constraint, print_shift_count_operand)
13207         (print_operand_address, print_operand): Rename
13208         s390_decompose_shift_count to
13209         s390_decompose_addrstyle_without_index and rename
13210         print_shift_count_operand to print_addrstyle_operand troughout the
13211         file.
13212         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13213         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13214         Rename shift_count_or_setmem_operand to setmem_operand.
13215         * config/s390/vx-builtins.md ("vec_insert<mode>")
13216         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13217         nonmemory_operand.
13219 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13221         PR target/70168
13222         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13223         Handle overlapping retval and newval.
13225 2016-03-10  Nick Clifton  <nickc@redhat.com>
13227         PR target/7044
13228         * config/aarch64/aarch64.c
13229         (aarch64_override_options_after_change_1): When forcing
13230         flag_omit_frame_pointer to be true, use a special value that can
13231         be detected if this function is called again, thus preventing
13232         flag_omit_leaf_frame_pointer from being forced to be false.
13234 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13236         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13237         Set x_flag_omit_leaf_frame_pointer when handling
13238         -momit-leaf-frame-pointer.
13240 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13242         PR lto/69589
13243         * cgraph.c (cgraph_node::dump): Dump split_part and
13244         indirect_call_target.
13245         * cgraph.h (cgraph_node): Add indirect_call_target flag.
13246         * ipa.c (has_addr_references_p): Cleanup.
13247         (is_indirect_call_target_p): New.
13248         (walk_polymorphic_call_targets): Do not mark virtuals that may be
13249         called indirectly as local.
13250         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13252 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13254         PR ipa/69630
13255         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13256         on cxa_pure_virtual.
13258 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13260         PR lto/69589
13261         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13263 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13265         PR lto/69589
13266         * tree.c (need_assembler_name_p): Only record main variant type names.
13268 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13270         PR target/70113.
13271         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13272         Always define to 0 or 1.
13273         (TARGET_FIX_ERR_A53_843419): New macro.
13274         * config/aarch64/aarch64-elf-raw.h
13275         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13276         * config/aarch64/aarch64-linux.h: Likewise.
13277         * config/aarch64/aarch64.c
13278         (aarch64_override_options_after_change_1): Do not default
13279         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13280         843419 is on.
13281         (aarch64_attributes): Handle fix-cortex-a53-843419.
13282         (aarch64_can_inline_p): Likewise.
13283         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13285 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
13286         Jakub Jelinek <jakub@redhat.com>
13288         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13289         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13290         DECL_COMMONS if flag_unconstrained_commons is set.
13291         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13292         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13293         (funconstrained-commons): Document.
13295 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13297         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13298         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13300 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
13302         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13303         has a proper number of elements.
13305 2016-03-10  Alan Modra  <amodra@gmail.com>
13307         PR rtl-optimization/69195
13308         PR rtl-optimization/47992
13309         * ira.c (recorded_label_ref): Delete.
13310         (update_equiv_regs): Return void.
13311         (indirect_jump_optimize): New function.
13312         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13313         before regstat_compute_ri.  Don't rebuild_jump_labels here.
13314         Delete update_regstat.
13316 2016-03-10  Richard Biener  <rguenther@suse.de>
13318         PR tree-optimization/70128
13319         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13320         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13322 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13324         PR tree-optimization/70152
13325         * tree-sra.c (replace_removed_params_ssa_names): Copy over
13326         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13328         PR target/70086
13329         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13330         instead of gen_sse2_loadlpd.
13331         * config/i386/sse.md (*vec_concatv2df): Rename to...
13332         (vec_concatv2df): ... this.
13334         PR tree-optimization/70127
13335         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13337 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13339         PR c/68473
13340         PR c++/70105
13341         * diagnostic-show-locus.c (compatible_locations_p): New function.
13342         (layout::layout): Sanitize ranges using compatible_locations_p.
13344 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13346         PR c/68473
13347         PR c++/70105
13348         * diagnostic-show-locus.c (layout_range::layout_range): Replace
13349         location_range param with three const expanded_locations * and a
13350         bool.
13351         (layout::layout): Replace call to
13352         rich_location::lazily_expand_location with get_expanded_location.
13353         Extract the range and perform location expansion here, passing
13354         the results to the layout_range ctor.
13355         * diagnostic.c (source_range::debug): Delete.
13356         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13357         of rich_location::get_expanded_location.
13358         * gcc-rich-location.c (get_range_for_expr): Delete.
13359         (gcc_rich_location::add_expr): Reimplement to avoid the
13360         rich_location::add_range overload that took a location_range,
13361         passing a location_t instead.
13363 2016-03-09  Richard Biener  <rguenther@suse.de>
13364         Jakub Jelinek  <jakub@redhat.com>
13366         PR tree-optimization/70138
13367         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13368         Also skip vect_double_reduction_def.
13370 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13372         PR target/70049
13373         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13374         if the operand is "m".
13376 2016-03-09  Nathan Sidwell  <nathan@acm.org>
13378         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13380 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13382         * config/i386/i386.c (processor_target_table): Fix cost table
13383         intialization order for znver1.
13385 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13387         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13388         - becuase -> because.
13389         * ipa-reference.c (ignore_module_statics): Likewise.
13390         * cgraph.c (cgraph_node::get_body): Likewise.
13391         * ipa-inline.c (early_inliner): Likewise.
13392         * ipa-devirt.c (types_same_for_odr): Likewise.
13393         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13394         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13396 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13398         * tree-ssa-math-opts.c: Fix typo in comment.
13400 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13402         PR target/70110
13403         * config/i386/i386.c (scalar_chain::make_vector_copies,
13404         scalar_chain::convert_reg): Call end_sequence in between
13405         get_insns and emit_conversion_insns rather than after both
13406         calls.
13408 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
13410         PR target/70064
13411         * config/i386/i386.h (machine_function): Add
13412         pc_thunk_call_expanded flag.
13413         (ix86_pc_thunk_call_expanded): New define.
13414         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13415         (*set_got): Rename insn pattern from set_got.
13416         (*set_got_labelled): Rename inst pattern from set_got_labelled.
13417         * config/i386/i386.c (ix86_compute_frame_layout): Use
13418         ix86_pc_thunk_call_expanded to prevent red-zone.
13420 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13422         * hsa.h (hsa_get_ctor_statements): Declare.
13423         (hsa_get_dtor_statements): Likewise.
13424         (hsa_get_kernel_dispatch_type): Likewise.
13425         * hsa.c (hsa_get_ctor_statements): New function.
13426         (hsa_get_dtor_statements): Likewise.
13427         (hsa_get_kernel_dispatch_type): Likewise.
13428         * hsa-brig.c (hsa_cdtor_statements): Removed.
13429         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13430         hsa_get_dtor_statements.
13431         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13432         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13434 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13436         * config/arm/arm-cores.def (cortex-r8): New.
13437         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13438         * config/arm/arm-tune.md: Likewise.
13439         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13441 2016-03-07  Martin Sebor  <msebor@redhat.com>
13443         PR rtl-optimization/19705
13444         * doc/invoke.texi (Options That Control Optimization): Clarify
13445         -fno-branch-count-reg.
13447 2016-02-26  Richard Biener  <rguenther@suse.de>
13448             Jeff Law  <law@redhat.com>
13450         PR tree-optimization/69740
13451         * cfghooks.c (remove_edge): Request loop fixups if we delete
13452         an edge that might turn an irreducible loop into a natural
13453         loop.
13454         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13455         Move after definition of loops_state_clear.
13457 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
13459         PR rtl-optimization/69052
13460         * rtlanal.c (commutative_operand_precedence): Set higher precedence
13461         to CONST_WIDE_INT.
13463 2016-03-07  Tom de Vries  <tom@codesourcery.com>
13465         PR tree-optimization/70116
13466         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13467         is_tm_ending stmts and ubsan/asan internal functions.
13468         (find_duplicate): Use it.  Don't test is_tm_ending here.
13470 2016-03-07  Richard Biener  <rguenther@suse.de>
13472         PR tree-optimization/70115
13473         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13474         (propagate_constants_for_unrolling): Use replace_uses_by.
13476 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
13478         PR middle-end/69916
13479         * omp-low.c (struct oacc_loop): Add ifns.
13480         (new_oacc_loop_raw): Initialize it.
13481         (finish_oacc_loop): Clear mask & flags if no ifns.
13482         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13483         (oacc_loop_xform_loop): Add ifns arg & adjust.
13484         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13486 2016-03-07  Richard Henderson  <rth@redhat.com>
13488         PR rtl-opt/70061
13489         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13490         (insert_value_copy_on_edge): Likewise.
13492 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13494         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13496 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13498         PR target/62281
13499         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13501 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13503         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13505 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13507         Fix sseimul type attribute.
13508         * config/i386/znver1.md
13509         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13510         znver1_sseimul_avx256_load) : Fix the type attribute.
13511         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13512         pipe usage and latency.
13514 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
13516         PR c++/70084
13517         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13518         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13519         to the right type.
13521 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13523         PR c/69973
13524         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13526         PR rtl-optimization/69941
13527         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13528         the reg share its mode.
13530 2016-03-04  Jeff Law  <law@redhat.com>
13532         PR tree-optimization/69196
13533         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13534         If the both SSA_NAMEs are anonymous, then consider them unassociated
13535         and include the PHI in the statement count.
13537 2016-03-05  Tom de Vries  <tom@codesourcery.com>
13539         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13540         construct in oacc routine.  Check for oacc region in oacc routine.
13542 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
13544         PR target/70062
13545         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
13546         2016-02-22 changes, instead don't recurse if RECUR is already true.
13547         Don't change *dynamic_check if RECUR.  Adjust recursive caller
13548         to pass true to the new argument.
13549         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13551         PR target/70059
13552         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13553         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13554         fixes.
13555         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
13557 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13559         PR rtl-optimization/57676
13560         * lra-assigns.c (lra_assign): Guard test for maximum iterations
13561         with flag_checking.
13563 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
13565         * tree-vect-patterns.c (search_type_for_mask): Handle
13566         comparison of booleans.
13568 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
13570         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13571         Fix @xref usage.
13573         PR debug/69947
13574         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13575         all other ops that have dw_val_class_die_ref operands,
13576         and DW_OP_GNU_entry_value.
13578 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13580         PR rtl-optimization/69904
13581         * config/arm/arm.c (arm_cannot_copy_insn_p):
13582         Return true for load-exclusive instructions.
13584 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
13586         PR target/70021
13587         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13588         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13589         the pattern no matter if it is used just by non-pattern, pattern
13590         or mix thereof.
13591         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13592         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13593         oprnd1 def_stmt is in pattern, don't look through it.
13595 2016-03-03  Marek Polacek  <polacek@redhat.com>
13597         PR middle-end/70050
13598         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13600 2016-03-03  Martin Liska  <mliska@suse.cz>
13602         PR tree-optimization/70043
13603         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13604         previous statement if we see a debug statement.
13606 2016-03-03  Richard Biener  <rguenther@suse.de>
13608         PR tree-optimization/55936
13609         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13610         parameter and guard unsafe equivalence use.
13611         (vrp_evaluate_conditional_warnv_with_ops): Always use
13612         safe equivalences but not via the quadratic compare_names
13613         helper.
13615 2016-03-03  Michael Collison  <michael.collison@linaro.org>
13617         PR target/70014
13618         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13619         for operand 1 to s_register_operand. Change predicate for operand
13620         2 to arm_not_immediate_operand.
13622 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
13624         * doc/tm.texi: Regenerated.
13626 2016-03-02  Richard Henderson  <rth@redhat.com>
13628         PR rtl-opt/67145
13629         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13630         simplification when all args are positive non-fixed registers.
13632 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13634         * target.def (lra_p): Specify that new ports should use LRA.
13636 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13638         PR libgomp/69555
13639         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13640         gimplify_type_sizes the type they refer to.
13641         (omp_notice_variable): Handle reference vars to VLAs.
13642         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13643         reference to VLA decls in the second pass instead of first pass.
13645 2016-03-02  Tom de Vries  <tom@codesourcery.com>
13647         PR tree-optimization/68659
13648         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13649         new_expr == NULL_TREE.
13650         (get_new_name): Handle ADDR_EXPR.
13652 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
13654         PR rtl-optimization/69052
13655         * loop-invariant.c (canonicalize_address): New function.
13656         (inv_can_prop_to_addr_use): Check validity of address expression
13657         which is canonicalized by above function.
13659 2016-03-02  Alan Modra  <amodra@gmail.com>
13661         PR ipa/69990
13662         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13663         larger alignment.
13665 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13667         PR target/70028
13668         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13669         (*movhi_internal): Put mask moves from and to memory separately
13670         from moves from/to GPRs.
13672 2016-03-02  Richard Biener  <rguenther@suse.de>
13674         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13675         GENERIC expressions in GIMPLE.
13677 2016-03-02  Richard Biener  <rguenther@suse.de>
13679         * config/i386/i386.c (type_natural_mode): Fix typo.
13681 2016-03-02  Nick Clifton  <nickc@redhat.com>
13683         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13685 2016-03-02  Richard Biener  <rguenther@suse.de>
13686             Uros Bizjak  <ubizjak@gmail.com>
13688         PR target/67278
13689         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13691 2016-03-02  Richard Biener  <rguenther@suse.de>
13693         PR middle-end/67278
13694         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13696 2016-03-02  Marek Polacek  <polacek@redhat.com>
13698         PR c/67854
13699         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13700         "is promoted to" warning.
13702 2016-03-01  DJ Delorie  <dj@redhat.com>
13704         * config.gcc: Deprecate mep-*.
13706 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
13708         PR middle-end/70025
13709         * lra-constraints.c (regno_val_use_in): New.
13710         (match_reload): Use it instead of regno_use_in.
13712 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13714         PR rtl-optimization/70007
13715         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13716         references present in REG_EQUAL notes attached to non-SET patterns.
13718 2016-03-01  Jeff Law  <law@redhat.com>
13720         PR tree-optimization/69196
13721         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13722         Appropriately clamp the number of statements to copy when the
13723         thread path does not traverse a loop backedge.
13725         PR tree-optimization/69196
13726         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13727         Do count some PHIs in the thread path against the insn count.  Decrease
13728         final statement count by one as the control statement in the last
13729         block will get removed.  Remove special cased code for handling PHIs
13730         in the last block.
13732 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
13734         PR target/70027
13735         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13736         asm dialect alternatives to explicit GOTPCREL calls.
13738 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13740         PR ada/70017
13741         * ira.c (do_reload): Issue warning for generic stack checking here...
13742         * reload1.c (reload): ...instead of here and streamline it.
13744 2016-03-01  Nick Clifton  <nickc@redhat.com>
13746         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13748 2016-03-01  Richard Biener  <rguenther@suse.de>
13750         PR tree-optimization/69983
13751         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13752         types and fall back to operand_equal_p.
13754 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13756         Revert
13757         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13759         * config/s390/constraints.md ("jm8"): New constraint.
13760         * config/s390/predicates.md ("const_int_8bitset_operand"): New
13761         predicate.
13762         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13763         into ...
13764         ("*setmem_long<setmem_and>"): New pattern.
13765         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13766         into ...
13767         ("*setmem_long_31z<setmem_and>"): New pattern.
13768         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13769         New substitution rules with the required attributes.
13772 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13774         Revert
13775         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13777         * gensupport.c (process_substs_on_one_elem): Split loop to
13778         complete mark_operands_used_in_match_dup on all expressions in the
13779         vector first.
13780         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13781         and remove function.
13783 2016-03-01  Richard Biener  <rguenther@suse.de>
13785         PR middle-end/70022
13786         * fold-const.c (fold_indirect_ref_1): Fix range checking for
13787         vector BIT_FIELD_REF extract.
13789 2016-03-01  Richard Biener  <rguenther@suse.de>
13791         PR tree-optimization/69994
13792         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13794 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13796         PR tree-optimization/69956
13797         * tree-vect-stmts.c (supportable_widening_operation): Support
13798         multi-step conversion of boolean vectors.
13799         (supportable_narrowing_operation): Likewise.
13801 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13803         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13804         anymore.
13806 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13808         * config/s390/subst.md (DSI_VI): New mode iterator.
13809         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13810         * config/s390/vector.md ("vec_set<mode>"): Move expander before
13811         the insn definition.
13812         ("*vec_set<mode>"): Change predicate and add alternative to
13813         support only either register or const_int operands as element
13814         selector.
13815         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13816         operands.
13817         ("vec_extract<mode>"): New expander.
13818         ("*vec_extract<mode>"): New insn definition supporting reg and
13819         const_int element selectors.
13820         ("*vec_extract<mode>_plus"): New insn definition supporting
13821         reg+const_int element selectors.
13822         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13823         following expander+insn definition.
13824         ("<vec_shifts_name><mode>3"): New expander.
13825         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13827 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13829         * config/s390/s390.md ("*tabort_1"): Change predicate to
13830         nonmemory_operand.  Add a second alternative to cover
13831         register as well as const int operands.
13832         ("*tabort_1_plus"): New pattern definition.
13834 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13836         * config/s390/s390.md ("*ashrdi3_cc_31")
13837         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13838         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13839         Merge insn definitions into ...
13840         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13841         New pattern definition.
13842         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
13843         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
13844         ("*ashr<mode>3_and"): Merge insn definitions into ...
13845         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13846         New pattern definition.
13847         * config/s390/subst.md ("addr_style_op_cc_subst")
13848         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
13849         substitutions patterns plus attributes.
13850         Add ashiftrt to SUBST iterator.
13852 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13854         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
13855         op2 to nonmemory_operand.
13856         ("*<shift>di3_31", "*<shift>di3_31_and"):
13857         Merge into single pattern definition ...
13858         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
13859         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
13860         pattern definition ...
13861         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
13862         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
13863         iterator.
13865 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13867         * config/s390/predicates.md (const_int_6bitset_operand): New
13868         predicate.
13869         * config/s390/s390.md: Include subst.md.
13870         ("rotl<mode>3"): New expander.
13871         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
13872         ...
13873         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
13874         * config/s390/subst.md: New file.
13876 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13878         * config/s390/s390.md ("op_type", "atype", "length" attributes):
13879         Remove RRR type.  It doesn't really exist.
13880         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
13881         attributes.
13882         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
13883         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
13884         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
13885         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
13886         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
13887         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
13888         `enabled' attribute.
13890 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13892         * gensupport.c (process_substs_on_one_elem): Split loop to
13893         complete mark_operands_used_in_match_dup on all expressions in the
13894         vector first.
13895         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13896         and remove function.
13898 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13900         PR target/69706
13901         * config/sparc/sparc.c (NWORDS_UP): Rename to...
13902         (CEIL_NWORDS): ...this.  Use CEIL macro.
13903         (compute_fp_layout): Adjust to above renaming.
13904         (function_arg_union_value): Likewise.
13905         (sparc_arg_partial_bytes): Likewise.
13906         (sparc_function_arg_advance): Likewise.
13908 2016-02-29  Jeff Law  <law@redhat.com>
13910         PR tree-optimization/70005
13911         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
13912         where an object with a boolean range is compared against a value
13913         outside [0..1].
13915         PR tree-optimization/69999
13916         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
13917         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
13918         loop cleanups.
13920 2016-02-29  Richard Biener  <rguenther@suse.de>
13922         PR tree-optimization/69994
13923         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
13924         (get_unary_op): Look through nop conversions.
13925         (ops_equal_values_p): New function, look for equality diregarding
13926         nop conversions.
13927         (eliminate_plus_minus_pair): Use ops_equal_values_p
13928         (repropagate_negates): Do not use get_unary_op here.
13930 2016-02-29  Martin Liska  <mliska@suse.cz>
13932         * system.h: Poison ENABLE_CHECKING macro.
13934 2016-02-29  Martin Liska  <mliska@suse.cz>
13936         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
13937         is presented in dump flags.
13938         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
13939         (hsa_regalloc): Likewise.
13941 2016-02-19  Richard Biener  <rguenther@suse.de>
13943         PR tree-optimization/69980
13944         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
13945         permutation of those we need to keep.
13947 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13949         PR target/69706
13950         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
13951         (NWORDS_UP): ...this
13952         (init_cumulative_args): Minor tweaks.
13953         (sparc_promote_function_mode): Likewise.
13954         (scan_record_type): Delete.
13955         (traverse_record_type): New function template.
13956         (classify_data_t): New structure type.
13957         (classify_registers): New inline function.
13958         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
13959         exhausted.  Instantiate traverse_record_type on classify_registers and
13960         deal with the case of a structure passed in slot #15 with no FP field
13961         in the first word.
13962         (assign_data_t): New structure type.
13963         (compute_int_layout): New static function.
13964         (compute_fp_layout): Likewise.
13965         (count_registers): New inline function.
13966         (assign_int_registers): New static function.
13967         (assign_fp_registers): Likewise.
13968         (assign_registers): New inline function.
13969         (function_arg_record_value_1): Delete.
13970         (function_arg_record_value_2): Likewise.
13971         (function_arg_record_value_3): Likewise.
13972         (function_arg_record_value): Adjust to above changes.  Instantiate
13973         traverse_record_type on count_registers to first count the number of
13974         registers to be used and then on assign_registers to assign them.
13975         (function_arg_union_value): Adjust to above renaming.
13976         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
13977         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
13978         case of a structure passed in slot #15
13979         (sparc_function_arg_advance): Likewise.
13980         (function_arg_padding): Minor tweak.
13982 2016-02-29  Richard Biener  <rguenther@suse.de>
13984         PR tree-optimization/69720
13985         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
13986         the adjustment_def path for possibly vectorized defs.
13987         (vect_create_epilog_for_reduction): Handle vectorized initial
13988         defs properly.
13990 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
13992         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
13994 2016-02-27  Jeff Law  <law@redhat.com>
13996         Revert
13997         2016-02-26  Richard Biener  <rguenther@suse.de>
13998                     Jeff Law  <law@redhat.com>
14000         PR tree-optimization/69740
14001         * cfghooks.c (remove_edge): Request loop fixups if we delete
14002         an edge that might turn an irreducible loop into a natural
14003         loop.
14005 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
14007         PR rtl-optimization/69896
14008         * tree-vect-generic.c (get_compute_type): Avoid single element
14009         vector types.
14011 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
14013         Rename the AArch64 tuning option and related functions to enable the
14014         Newton series for the reciprocal square root to reflect its
14015         approximative characteristic.
14017         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14018         function to "aarch64_emit_approx_rsqrt".
14019         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14020         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14021         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14022         (xgene1_tunings): Likewise.
14023         (use_rsqrt_p): Likewise.
14024         (aarch64_emit_swrsqrt): Use new function name.
14025         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14026         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14027         text explaining this option.
14028         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14030 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14032         PR target/69969
14033         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14034         complain about -mallow-movmisalign without -mvsx if
14035         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14037 2016-02-26  Joel Sherrill  <joel@rtems.org>
14039         * config.gcc: Add x86_64-*-rtems*.
14040         * config/i386/rtems-64.h: New file.
14042 2016-02-26  Joel Sherrill  <joel@rtems.org>
14044         * config.gcc: Add aarch64-*-rtems*.
14045         * config/aarch64/rtems.h: New file.
14047 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
14049         PR target/69946
14050         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14051         shift amount using %h.  Add comment.
14053 2016-02-26  Richard Biener  <rguenther@suse.de>
14054             Jeff Law  <law@redhat.com>
14056         PR tree-optimization/69740
14057         * cfghooks.c (remove_edge): Request loop fixups if we delete
14058         an edge that might turn an irreducible loop into a natural
14059         loop.
14061 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14063         PR middle-end/69920
14064         * tree-sra.c (sra_modify_assign): Do not remove loads of
14065         uninitialized aggregates to SSA_NAMEs.
14067 2016-02-26  Richard Henderson  <rth@redhat.com>
14069         PR target/69709
14070         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14071         pseudo in case the target rtx matches the source of the left
14072         shift.
14074 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14076         PR hsa/69568
14077         * hsa.h (hsa_type_packed_p): Declare.
14078         * hsa.c (hsa_type_packed_p): New function.
14079         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14080         loads.
14081         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14082         * hsa-brig.c (emit_basic_insn): Likewise.
14084 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14086         pr hsa/69674
14087         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14088         pointers.
14089         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14091 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14093         * hsa.h (is_a_helper): New overload for hsa_op_immed for
14094         hsa_op_with_type operands.
14095         (hsa_unsigned_type_for_type): Declare.
14096         * hsa.c (hsa_unsigned_type_for_type): New function.
14097         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14098         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14099         the finalizer.  Do not emit extra move.
14101 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14103         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14104         atomic operations in private segment.
14106 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14108         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14109         statements to wi->info.  Also disallow omp simd constructs.
14110         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14111         for not gridifying.  Dump special string for omp_for.
14113 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14115         PR target/69245
14116         * config/aarch64/aarch64.c (aarch64_set_current_function):
14117         Save/restore target globals when switching to
14118         target_option_default_node.
14120 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14122         PR target/69613
14123         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14124         Return 0 if !SHIFT_COUNT_TRUNCATED.
14126 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14127             Eric Botcazou  <ebotcazou@adacore.com>
14129         PR rtl-optimization/69891
14130         * dse.c (scan_insn): If we can't figure out memset arguments
14131         or they are non-constant, call clear_rhs_from_active_local_stores.
14133 2016-02-26  Martin Liska  <mliska@suse.cz>
14135         * doc/extend.texi: Mention clog10, clog10f an clog10l
14136         in Builtins section.
14138 2016-02-26  Martin Liska  <mliska@suse.cz>
14140         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14141         CHECKING_P.
14142         (resolve_args_picking_1): Likewise.
14143         * dwarf2out.h (struct GTY): Likewise.
14145 2016-02-26  Martin Liska  <mliska@suse.cz>
14147         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14148         with flag_checking.
14149         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14151 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14152             Martin Liska  <mliska@suse.cz>
14154         * doc/install.texi: Mention --enable-valgrind-annotations.
14156 2016-02-26  Richard Biener  <rguenther@suse.de>
14158         PR tree-optimization/69551
14159         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14160         looking through aliases adjust DECL_PT_UID to refer to the
14161         ultimate alias target.
14163 2016-02-25  Martin Liska  <mliska@suse.cz>
14165         PR middle-end/69919
14166         * alloc-pool.c (after_memory_report): New variable.
14167         * alloc-pool.h (base_pool_allocator ::release): Do not use
14168         the infrastructure if after_memory_report.
14169         * toplev.c (toplev::main): Mark after memory report.
14171 2016-02-25  Richard Biener  <rguenther@suse.de>
14173         PR tree-optimization/48795
14174         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14176 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
14178         PR driver/68463
14179         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
14180         offloading is enabled and -fopenacc or -fopenmp is specified.
14181         (CRTOFFLOADEND): Likewise.
14182         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14183         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14184         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14185         (offload_objects_file_name): New static var.
14186         (tool_cleanup): Remove offload_objects_file_name file.
14187         (find_offloadbeginend): Replace with ...
14188         (find_crtoffloadtable): ... this.
14189         (run_gcc): Remove offload_argc and offload_argv.
14190         Get offload_objects_file_name from -foffload-objects=... option.
14191         Read names of object files with offload from this file, pass them to
14192         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
14193         don't pass offloadbegin and offloadend to the linker.  Don't pass
14194         offload non-LTO files to the linker, because now they're not claimed.
14196 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
14198         PR ipa/69630
14199         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14200         on builtin_unreachable.
14202 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
14204         PR rtl-optimization/69896
14205         * regcprop.c: Include cfgrtl.h.
14206         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14207         than remembered mode, either delete it (if noop_move_p), or
14208         treat like copy_p but not noop_p instruction.
14210 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14212         PR debug/69705
14213         * dwarf2out.c (gen_variable_die): Work around buggy LTO
14214         - allow NULL decl for Fortran DW_TAG_common_block variables.
14216 2016-02-24  Jason Merrill  <jason@redhat.com>
14218         * common.opt (flifetime-dse): Add -flifetime-dse=1.
14220 2016-02-24  Richard Biener  <rguenther@suse.de>
14221             Jakub Jelinek  <jakub@redhat.com>
14223         PR middle-end/69760
14224         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14225         conditionally executed ops to well-defined overflow behavior.
14227 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14229         PR middle-end/69915
14230         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14231         elements.
14233 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14235         PR rtl-optimization/69886
14236         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14237         argument.  Use it when checking validity of set instructions.
14238         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14239         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14240         callsite.
14241         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14242         * store-motion.c (find_moveable_store): Update
14243         can_assign_to_reg_without_clobbers_p callsite.
14245 2016-02-24  Richard Biener  <rguenther@suse.de>
14247         PR middle-end/68963
14248         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14249         bogus check.
14250         (record_nonwrapping_iv): Do not fall back to the low/high bound
14251         for non-constant IV bases if the stmt is not always executed.
14253 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14255         * config/arm/arm-cores.def (cortex-a32): New entry.
14256         * config/arm/arm-tables.opt: Regenerate.
14257         * config/arm/arm-tune.md: Regenerate.
14258         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14259         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14260         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14261         for -mcpu and -mtune.
14263 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14265         PR target/69875
14266         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14267         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14268         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14269         (atomic_loaddi_1): Delete.
14270         (atomic_loaddi): Rewrite expander using the above changes.
14272 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14274         PR c/69918
14275         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14276         2 to 3.
14278 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14279             Richard Biener  <rguenth@suse.de>
14281         PR middle-end/69909
14282         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14283         set_mem_attributes if tem is SSA_NAME which got expanded
14284         as a MEM.
14286 2016-02-24  Richard Biener  <rguenther@suse.de>
14288         PR tree-optimization/69907
14289         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14290         end of permutations for BB vectorization.
14292 2016-02-24  Christian Bruel  <christian.bruel@st.com>
14294         * config/arm/arm-c.c (arm_option_override): Initialize
14295         target_option_current_node.
14296         * config/arm/arm.c (arm_pragma_target_parse): Replace
14297         build_target_option_node call by target_option_current_node.
14298         Set target_option_current_node.
14299         Fix comments.
14301 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
14303         PR target/69810
14304         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14305         define_insn_and_split to define_insn.
14306         (zero_extendqi<mode>2_dot2): Same.
14307         (extendqi<mode>2_dot): Same.
14308         (extendqi<mode>2_dot2): Same.
14310 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14312         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14313         and add bypass for AES{D,E} and AESMC pairs.
14314         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14315         and AESMC pairs.
14317 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14319         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14320         series for reciprocal square root in Exynos M1.
14322 2016-02-23  Martin Sebor  <msebor@redhat.com>
14324         PR c/69759
14325         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14326         __builtin_alloca_with_align.
14328 2016-02-23  Richard Henderson  <rth@redhat.com>
14330         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14331         (ix86_register_pragmas): Remove __seg_tls.
14332         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14333         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14334         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14335         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14336         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14337         * doc/extend.texi (__seg_tls): Remove item.
14339 2016-02-23  Richard Biener  <rguenther@suse.de>
14341         * alloc-pool.h (struct allocation_object): Make id member
14342         conditional on CHECKING_P again.
14343         (get_instance): Adjust.
14344         (base_pool_allocator): Likewise.
14346 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
14348         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14349         (parallelize_loops): In OpenACC kernels mode, set n_threads to
14350         zero.
14351         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14352         flag_openacc.
14353         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14355 2016-02-23  Richard Biener  <rguenther@suse.de>
14357         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14358         * bitmap.h (struct bitmap_usage): Likewise.
14359         (bitmap_move): Declare.
14360         * bitmap.c (register_overhead): Take size_t argument.
14361         (bitmap_move): New function.
14362         * df-problems.c (df_rd_transfer_function): Use bitmap_move
14363         to properly account overhead.
14364         * tree.c (free_node): Use tree_size.
14366 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
14368         PR c++/69902
14369         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14370         when inverting comparison.
14372         PR c/69900
14373         * common.opt (Wunreachable-code): Add Warning flag.
14375 2016-02-23  Mark Wielaard  <mjw@redhat.com>
14376             Jakub Jelinek  <jakub@redhat.com>
14378         PR c/69911
14379         * cgraphunit.c (check_global_declaration): Check main_input_filename
14380         and DECL_SOURCE_FILE are not NULL.
14382 2016-02-23  Martin Jambor  <mjambor@suse.cz>
14384         PR tree-optimization/69666
14385         * tree-sra.c (sra_modify_assign): Do not attempt to create
14386         default_def replacements for unscalarizable regions.
14388 2016-02-20  Mark Wielaard  <mjw@redhat.com>
14390         PR c/28901
14391         * cgraphunit.c (check_global_declaration): Check level of
14392         warn_unused_const_variable and main_input_filename.
14393         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14394         (-Wunused-variable): For C implies -Wunused-const-variable=1.
14395         (-Wunused-const-variable): Explain levels 1 and 2.
14397 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14399         PR target/69888
14400         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14401         identical arguments.  Formatting and spelling fixes.
14403         PR target/69885
14404         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14405         be specified.
14407         PR target/69894
14408         PR target/69895
14409         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14410         and m68k-devices.def.
14411         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14412         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14414 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
14416         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14417         and HImode registers.
14419 2016-02-22  Richard Biener  <rguenther@suse.de>
14421         PR tree-optimization/69882
14422         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14423         preserve permutations present because of gaps.
14424         (vect_supported_load_permutation_p): Always continue checking
14425         permutations after vect_attempt_slp_rearrange_stmts.
14427 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
14429         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14430         min_profitable_estimate, rather than min_profitable_iters.
14432 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14434         PR target/69885
14435         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14436         SImode for last match_operand.
14438 2016-02-22  Martin Liska  <mliska@suse.cz>
14440         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14441         return bitsize - 1 as the return value.
14443 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
14445         PR target/69806
14446         PR target/54089
14447         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14448         Handle negative shift counts.
14449         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14450         force_reg on the shift constant.
14451         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
14452         (lshrsi3_d): Handle negative shift counts.
14454 2016-02-22  Richard Biener  <rguenther@suse.de>
14455             Tom de Vries  <tom@codesourcery.com>
14457         * graph.c: Include dumpfile.h.
14458         (print_graph_cfg): Split into three overloads.
14459         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14461 2016-02-22  Tom de Vries  <tom@codesourcery.com>
14463         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14464         dump-fn.
14466 2016-02-22  Richard Biener  <rguenther@suse.de>
14468         PR ipa/37448
14469         * ipa-inline-transform.c (inline_call): When not updating
14470         overall summaries adjust self size by the growth estimate.
14471         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14472         hash-set, do not update overall summaries here.  Renamed from ...
14473         (inline_to_all_callers): ... this which is now wrapping the
14474         above and performing delayed overall summary update.
14475         (early_inline_small_functions): Delay updating of the overall
14476         summary.
14478 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14480         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14481         variable.
14483 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14485         PR driver/69805
14486         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14487         :%* in %:gt() argument.
14488         (greater_than_spec_func): Adjust for expecting only numbers,
14489         if there are more than two numbers, compare the last two.
14491 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
14493         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14494         -Wnarrowing with -std.
14496 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14498         PR c++/69851
14499         * expr.c (store_field): Don't use bit-field path if exp is
14500         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14501         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14502         and the assignment can be performed by bitwise copy.  Formatting
14503         fix.
14505         PR middle-end/69838
14506         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14507         call copy_reg_eh_region_note_forward on before and/or after sequences
14508         and remove note from insn if it no longer can throw.
14510         PR target/69820
14511         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14512         if TARGET_AVX512BW.
14514 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14516         * config/s390/vector.md: Add missing commutative operand markers
14517         to the patterns which qualify for one.
14518         * config/s390/vx-builtins.md: Likewise.
14520 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14522         * config/s390/vector.md (VI, VI_QHS): Add single element vector
14523         types to mode iterators.
14524         (vec_double): ... and mode attribute.
14525         * config/s390/vx-builtins.md (non_vec_int): Likewise.
14527 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14529         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14530         Change the predicate of op2 from nonimmediate to general and let
14531         reload fix it if necessary.
14533 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14535         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14537 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14539         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14540         mode.
14542 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14544         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14545         * config/s390/s390.c (s390_expand_vec_movstr): New function.
14546         * config/s390/s390.md ("movstr<P:mode>"): Call
14547         s390_expand_vec_movstr.
14549 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14551         * config/s390/s390.md: Add missing output modifier for operand 1
14552         to print it as address properly.
14554 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14556         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14557         * config/s390/2964.md: New file.
14558         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14559         of insn grouping attributes depending on the CPU level.
14560         (s390_get_unit_mask): New function.
14561         (s390_sched_score): Remove the OOO from the scheduling macros.
14562         Add loop to calculate a score for the instruction mix.
14563         (s390_sched_reorder): Likewise plus improve debug output.
14564         (s390_sched_variable_issue): Rename macros as above.  Calculate
14565         the unit distances after actually scheduling an insn.  Improve
14566         debug output.
14567         (s390_sched_init): Clear last_scheduled_unit_distance array.
14568         * config/s390/s390.md: Include 2964.md.
14570 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14572         PR target/69671
14573         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14574         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14575         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14576         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14577         *avx512f_<code>v8div16qi2_mask_1): New insns.
14579 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14581         PR target/68404
14582         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14583         2016-02-09 change.
14585         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14586         earlyclobber from target.  Use wF constraint for fused memory
14587         address.
14588         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14590 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14591             Martin Liska  <mliska@suse.cz>
14593         PR sanitizer/69863
14594         * cfgexpand.c (asan_sanitize_stack_p): New function.
14595         (partition_stack_vars): Use the function.
14596         (expand_stack_vars): Likewise.
14597         (defer_stack_allocation): Likewise.
14598         (expand_used_vars): Likewise.
14600 2016-02-18  Richard Biener  <rguenther@suse.de>
14602         PR middle-end/69553
14603         * fold-const.c (operand_equal_p): Properly compare offsets for
14604         IMAGPART_EXPR and ARRAY_REF.
14606 2016-02-18  Nick Clifton  <nickc@redhat.com>
14608         PR target/62254
14609         PR target/69610
14610         * config/arm/arm.c (arm_option_override_internal): Disable
14611         interworking if the target does not support thumb instructions.
14612         (arm_reload_in_hi): Handle the case where a register to register
14613         move needs reloading because there is no simple pattern to handle
14614         it.
14615         (arm_reload_out_hi): Likewise.
14617 2016-02-18  Richard Biener  <rguenther@suse.de>
14619         PR middle-end/69854
14620         * match.pd: Don't use fold_binary or fold_unary for folding
14621         constants.
14623 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
14625         PR c++/69850
14626         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14627         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14628         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14629         warn on gimple_no_warning_p statements.
14631 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
14633         * doc/extend.texi (C++ Attributes): Correct description of
14634         warn_unused type attribute.
14636 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14638         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14639         correct instruction.
14641 2016-02-17  Richard Biener  <rguenther@suse.de>
14643         PR rtl-optimization/69609
14644         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14645         (find_traces_1_round): When ending a trace update cached priority
14646         of successors.
14647         (bb_to_key): Use cached priority when available.
14648         (copy_bb): Initialize cached priority.
14649         (reorder_basic_blocks_software_trace_cache): Likewise.
14651 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14653         PR target/69161
14654         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14655         New predicate.
14656         (aarch64_comparison_operator): Break overly long line into two.
14657         (aarch64_comparison_operation): Likewise.
14658         * config/aarch64/aarch64.md (cstorecc4): Use
14659         aarch64_comparison_operator_mode instead of
14660         aarch64_comparison_operator.
14661         (cstore<mode>4): Likewise.
14662         (aarch64_cstore<mode>): Likewise.
14663         (*cstoresi_insn_uxtw): Likewise.
14664         (cstore<mode>_neg): Likewise.
14665         (*cstoresi_neg_uxtw): Likewise.
14667 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14669         PR target/69161
14670         * config/arm/predicates.md (arm_comparison_operator_mode):
14671         New predicate.
14672         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14673         instead of arm_comparison_operator.
14674         (*mov_negscc): Likewise.
14675         (*mov_notscc): Likewise.
14676         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14677         (*thumb2_mov_negscc): Likewise.
14678         (*thumb2_mov_negscc_strict_it): Likewise.
14679         (*thumb2_mov_notscc): Likewise.
14680         (*thumb2_mov_notscc_strict_it): Likewise.
14682 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
14684         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14685         Add missing return.
14687 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
14689         * config/visium/visium.c (machine_libfunc_index): New enum.
14690         (machine_libfuncs): New structure.
14691         (visium_libfuncs): New static variable.
14692         (TARGET_INIT_LIBFUNCS): Define to...
14693         (visium_init_libfuncs): ...this.  New function.
14694         (expand_block_move_4): Use the appropriate libfunc.
14695         (expand_block_move_2): Likewise.
14696         (expand_block_move_1): Likewise.
14697         (expand_block_set_4): Likewise.
14698         (expand_block_set_2): Likewise.
14699         (expand_block_set_1): Likewise.
14700         (visium_trampoline_init): Likewise.
14702 2016-02-17  Nick Clifton  <nickc@redhat.com>
14704         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14705         TI's devices.csv file as of March 2016.
14707 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14709         PR Target/48344
14710         * opts-global.c (handle_common_deferred_options): Introduce and
14711         initialize two global variables to remember command-line options
14712         specifying a stack-limiting register.
14713         * opts.h: Add extern declarations of the two new global variables.
14714         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14715         variable based on the values of the two new global variables.
14717 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14719         PR c/69835
14720         * common.opt (Wnonnull-compare): New warning.
14721         * doc/invoke.texi (-Wnonnull): Remove text about comparison
14722         of arguments against NULL.
14723         (-Wnonnull-compare): Document.
14724         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14725         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14726         * passes.def (pass_warn_nonnull_compare): Add.
14727         * gimple-ssa-nonnull-compare.c: New file.
14729 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14731         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14732         AARCH64_EXTRA_TUNE_RECIP_SQRT.
14734 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14736         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14737         reciprocal sqrt for -mlow-precision-recip-sqrt.
14739 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14740             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14742         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14743         always use lane loads to construct non-constant vectors.
14745 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14747         * config/aarch64/aarch64.md
14748         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14749         constraints for operand 3.
14750         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14752 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14753             Richard Biener  <rguenther@suse.de>
14755         PR tree-optimization/69820
14756         * tree-vect-patterns.c (type_conversion_p): Return false if
14757         *orig_type is unsigned single precision or boolean.
14758         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14759         Formatting fix.
14761 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14763         PR rtl-optimization/69764
14764         PR rtl-optimization/69771
14765         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14766         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14768 2016-02-16  Richard Biener  <rguenther@suse.de>
14770         PR tree-optimization/69776
14771         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14772         sets from caller.
14773         (indirect_refs_may_alias_p): Likewise.
14774         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14775         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14776         according to tbaa_p.
14777         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14778         (optimize_stmt): For redundant store discovery do not allow tbaa.
14780 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
14782         PR tree-optimization/69714
14783         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14784         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14786 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
14788         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14789         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14790         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14791         * config/arc/arc.c (arc_init): Check FPU options.
14792         (get_arc_condition_code): Handle new CC_FPU* modes.
14793         (arc_select_cc_mode): Likewise.
14794         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14795         register pair only. Allow access for ARCv2 accumulator.
14796         (gen_compare_reg): Whenever we have FPU support use FPU compare
14797         instructions.
14798         (arc_reorg): Don't generate brcc insns when FPU compare
14799         instructions are involved.
14800         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14801         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14802         floating point emulation.
14803         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14804         (REVERSE_CONDITION): Add new CC_FPU* modes.
14805         (TARGET_FP_SP_BASE): Define.
14806         (TARGET_FP_DP_BASE): Likewise.
14807         (TARGET_FP_SP_FUSED): Likewise.
14808         (TARGET_FP_DP_FUSED): Likewise.
14809         (TARGET_FP_SP_CONV): Likewise.
14810         (TARGET_FP_DP_CONV): Likewise.
14811         (TARGET_FP_SP_SQRT): Likewise.
14812         (TARGET_FP_DP_SQRT): Likewise.
14813         (TARGET_FP_DP_AX): Likewise.
14814         * config/arc/arc.md (ARCV2_ACC): New constant.
14815         (type): New fpu type attribute.
14816         (SDF): Conditional iterator.
14817         (cstore<mode>, cbranch<mode>): Change expand condition.
14818         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14819         handles FPU/FPX cases as well.
14820         * config/arc/arc.opt (mfpu): New option.
14821         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14822         Renamed.
14823         (adddf3, muldf3, subdf3): Removed.
14824         * config/arc/predicates.md (proper_comparison_operator): Recognize
14825         CC_FPU* modes.
14826         * config/arc/fpu.md: New file.
14827         * doc/invoke.texi (ARC Options): Document mfpu option.
14829 2016-02-16  Richard Biener  <rguenther@suse.de>
14831         PR rtl-optimization/69291
14832         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14833         noce_operand_ok check.
14835 2016-02-16  Tom de Vries  <tom@codesourcery.com>
14837         PR lto/67709
14838         * omp-low.c (simd_clone_create): Remove call to
14839         symtab->call_cgraph_insertion_hooks.
14841 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14843         PR tree-optimization/69802
14844         * tree-ssa-reassoc.c (update_range_test): If op is
14845         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
14846         op == 1 test of precision 1 integral op, otherwise handle
14847         that case as op itself.  Fix up formatting.
14848         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
14849         up formatting.
14851 2016-02-16  Richard Biener  <rguenther@suse.de>
14853         PR tree-optimization/69586
14854         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
14855         types for conversion sources.
14857 2016-02-16  Richard Biener  <rguenther@suse.de>
14859         PR middle-end/69801
14860         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
14861         mask OEP_ADDRESS_OF.
14863 2016-02-16  Alan Modra  <amodra@gmail.com>
14865         PR target/68973
14866         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
14867         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
14868         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
14869         (p8_mtvsrwz): New.
14870         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
14871         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
14872         (p8_fmrgow_<mode>): Likewise.
14873         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
14874         changes.
14875         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
14876         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
14877         to use movdi_internal64.  Remove op0_di.
14878         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
14880 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
14882         Add support for the FCCMP insn types
14884         * config/aarch64/aarch64.md (fccmp): Change insn type.
14885         (fccmpe): Likewise.
14886         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
14887         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
14888         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
14889         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
14890         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
14891         * config/arm/types.md (fccmps): Add new insn type.
14892         (fccmpd): Likewise.
14894 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14896         * alias.c (get_alias_set): Fix a typo in comment.
14898 2016-02-15  Richard Biener  <rguenther@suse.de>
14900         PR tree-optimization/69595
14901         * match.pd: Complete range test simplification to true.
14903 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
14905         PR rtl-optimization/69648
14906         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
14907         pic_offset_table_rtx.
14909         PR rtl-optimization/69752
14910         * ira.c (update_equiv_regs): When looking for more than a single SET,
14911         also take other side effects into account.
14913 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14915         * config/s390/s390.c (s390_function_profiler): Add a new sequence
14916         for z900+ CPUs in 31-bit mode.
14918 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
14920         * common/config/s390/s390-common.c (s390_supports_split_stack):
14921         New function.
14922         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
14923         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
14924         * config/s390/s390.c (struct machine_function): New field
14925         split_stack_varargs_pointer.
14926         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
14927         in s390_emit_prologue.
14928         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
14929         vararg pointer.
14930         (morestack_ref): New global.
14931         (SPLIT_STACK_AVAILABLE): New macro.
14932         (s390_expand_split_stack_prologue): New function.
14933         (s390_live_on_entry): New function.
14934         (s390_va_start): Use split-stack vararg pointer if appropriate.
14935         (s390_asm_file_end): Emit the split-stack note sections.
14936         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
14937         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
14938         (UNSPECV_SPLIT_STACK_CALL): New unspec.
14939         (UNSPECV_SPLIT_STACK_DATA): New unspec.
14940         (split_stack_prologue): New expand.
14941         (split_stack_space_check): New expand.
14942         (split_stack_data): New insn.
14943         (split_stack_call): New expand.
14944         (split_stack_call_*): New insn.
14945         (split_stack_cond_call): New expand.
14946         (split_stack_cond_call_*): New insn.
14948 2016-02-15  Richard Biener  <rguenther@suse.de>
14950         PR tree-optimization/69783
14951         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
14952         Add trivially correct cases.
14954 2016-02-15  Tom de Vries  <tom@codesourcery.com>
14956         PR lto/69655
14957         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
14958         do_force_output.
14959         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
14961 2016-02-15  Richard Biener  <rguenther@suse.de>
14963         PR tree-optimization/69776
14964         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
14965         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
14966         indicate whether we can use TBAA to disambiguate against stores.
14967         Use alias-set zero if not.
14968         (visit_reference_op_store): Do not use TBAA when looking up
14969         redundant stores.
14970         * tree-ssa-pre.c (compute_avail): Use TBAA here.
14971         (eliminate_dom_walker::before_dom_children): But not when looking
14972         up redundant stores.
14974 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
14976         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
14978 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14980         *  config/i386/znver1.md
14981         (znver1_pop, znver1_pop_mem,
14982         znver1_load_imov_double_store,
14983         znver1_load_imov_direct_store,
14984         znver1_load_imov_direct_load,
14985         znver1_load_imov_double_load): Add new.
14986         (znver1_insn, znver1_insn_load): Add icmov type.
14987         (znver1_sseavx_fma,
14988         znver1_sseavx_fma_load,
14989         znver1_avx256_fma,
14990         znver1_avx256_fma_load): Fix pipe usage.
14992 2016-02-14  Alan Modra  <amodra@gmail.com>
14994         PR target/68973
14995         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
14996         with an invalid hard reg, reload just the reg not the entire
14997         pre/post-inc/dec address expression.
14999 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15001         PR target/67260
15002         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15003         fixed R1_REG scratch reg.
15004         (sibcall_value_pcrel_fdpic): Likewise.
15006 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15008         PR target/67636
15009         PR target/64345
15010         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15012 2016-02-12  Walter Lee  <walt@tilera.com>
15014         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15015         * config/tilegx/t-tilegx: Likewise.
15017 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15019         PR other/69554
15020         * diagnostic-show-locus.c (struct line_span): New struct.
15021         (layout::get_first_line): Delete.
15022         (layout::get_last_line): Delete.
15023         (layout::get_num_line_spans): New member function.
15024         (layout::get_line_span): Likewise.
15025         (layout::print_heading_for_line_span_index_p): Likewise.
15026         (layout::get_expanded_location): Likewise.
15027         (layout::calculate_line_spans): Likewise.
15028         (layout::m_first_line): Delete.
15029         (layout::m_last_line): Delete.
15030         (layout::m_line_spans): New field.
15031         (layout::layout): Update comment.  Replace m_first_line and
15032         m_last_line with m_line_spans, replacing their initialization
15033         with a call to calculate_line_spans.
15034         (diagnostic_show_locus): When printing source lines and
15035         annotations, rather than looping over a single span
15036         of lines, instead loop over each line_span within
15037         the layout, with an inner loop over the lines within them.
15038         Call the context's start_span callback when changing line spans.
15039         * diagnostic.c (diagnostic_initialize): Initialize start_span.
15040         (diagnostic_build_prefix): Break out the building of the location
15041         part of the string into...
15042         (diagnostic_get_location_text): ...this new function, rewriting
15043         it from nested ternary expressions to a sequence of "if"
15044         statements.
15045         (default_diagnostic_start_span_fn): New function.
15046         * diagnostic.h (diagnostic_start_span_fn): New typedef.
15047         (diagnostic_context::start_span): New field.
15048         (default_diagnostic_start_span_fn): New prototype.
15050 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15052         PR driver/69779
15053         * gcc.c (driver::finalize): Fix cleanup of "specs".
15055 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15057         PR driver/69265
15058         PR driver/69453
15059         * gcc.c (driver::driver): Initialize m_option_suggestions.
15060         (driver::~driver): Clean up m_option_suggestions.
15061         (suggest_option): Convert to...
15062         (driver::suggest_option): ...this, and split out into
15063         driver::build_option_suggestions and find_closest_string.
15064         (driver::build_option_suggestions): New function, from
15065         first half of suggest_option.  Special-case
15066         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15067         the sanitizer_opts array.  For options of enum types, add the
15068         various enum values to the candidate strings.
15069         (driver::handle_unrecognized_options): Remove "const".
15070         * gcc.h (driver::handle_unrecognized_options): Likewise.
15071         (driver::build_option_suggestions): New decl.
15072         (driver::suggest_option): New decl.
15073         (driver::m_option_suggestions): New field.
15074         * opts-common.c (add_misspelling_candidates): New function.
15075         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15076         and make non-static.
15077         * opts.h (sanitizer_opts): New array decl.
15078         (add_misspelling_candidates): New function decl.
15079         * spellcheck.c (find_closest_string): New function.
15080         * spellcheck.h (find_closest_string): New function decl.
15082 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15084         PR rtl-optimization/69764
15085         PR rtl-optimization/69771
15086         * optabs.c (expand_binop_directly): For shift_optab_p, force
15087         convert_modes with VOIDmode if xop1 has VOIDmode.
15089 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
15091         PR target/69729
15092         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15093         to correctly determine instrumentation thunks.
15095 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15097         PR ipa/69241
15098         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15099         type by reference, force lhs on the call.
15101         PR ipa/68672
15102         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15103         Compute retval and retbnd early in all cases if split_part_return_p
15104         and return_bb is not EXIT.  Remove all clobber stmts and reset
15105         all debug stmts that refer to SSA_NAMEs defined in split part,
15106         except if it is retval, in that case replace the old retval with the
15107         lhs of the call to the split part.
15109 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15111         revert:
15112         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15114         PR middle-end/66726
15115         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15116         whose result is used in PHI.
15117         (maybe_optimize_range_tests): Likewise.
15118         (final_range_test_p): Likweise.
15120 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15122         PR middle-end/66726
15123         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15124         whose result is used in PHI.
15125         (maybe_optimize_range_tests): Likewise.
15126         (final_range_test_p): Likweise.
15128 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15130         * cgraph.c: Spelling fixes - behaviour -> behavior and
15131         neighbour -> neighbor.
15132         * target.def: Likewise.
15133         * sel-sched.c: Likewise.
15134         * config/mips/mips.c: Likewise.
15135         * config/arc/arc.md: Likewise.
15136         * config/arm/cortex-a57.md: Likewise.
15137         * config/arm/arm.c: Likewise.
15138         * config/arm/neon.md: Likewise.
15139         * config/arm/arm-c.c: Likewise.
15140         * config/vms/vms-c.c: Likewise.
15141         * config/s390/s390.c: Likewise.
15142         * config/i386/znver1.md: Likewise.
15143         * config/i386/i386.c: Likewise.
15144         * config/ia64/hpux-unix2003.h: Likewise.
15145         * config/msp430/msp430.md: Likewise.
15146         * config/rx/rx.c: Likewise.
15147         * config/rx/rx.md: Likewise.
15148         * config/aarch64/aarch64-simd.md: Likewise.
15149         * config/aarch64/aarch64.c: Likewise.
15150         * config/nvptx/nvptx.c: Likewise.
15151         * config/bfin/bfin.c: Likewise.
15152         * config/cris/cris.opt: Likewise.
15153         * config/rs6000/rs6000.c: Likewise.
15154         * target.h: Likewise.
15155         * spellcheck.c: Likewise.
15156         * ira-build.c: Likewise.
15157         * tree-inline.c: Likewise.
15158         * builtins.c: Likewise.
15159         * lra-constraints.c: Likewise.
15160         * explow.c: Likewise.
15161         * hwint.h: Likewise.
15162         * targhooks.c: Likewise.
15163         * tree-vect-data-refs.c: Likewise.
15164         * expr.c: Likewise.
15165         * doc/tm.texi: Likewise.
15166         * doc/extend.texi: Likewise.
15167         * doc/install.texi: Likewise.
15168         * doc/md.texi: Likewise.
15169         * tree-ssa-tail-merge.c: Likewise.
15170         * sched-int.h: Likewise.
15171         * match.pd: Likewise.
15172         * sched-ebb.c: Likewise.
15173         * target.def (omit_struct_return_reg): Likewise.
15174         * gimple-ssa-isolate-paths.c: Likewise.
15175         (find_implicit_erroneous_behaviour): Renamed to...
15176         (find_implicit_erroneous_behavior): ... this.
15177         (find_explicit_erroneous_behaviour): Renamed to...
15178         (find_explicit_erroneous_behavior): ... this.
15179         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15181 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
15183         PR rtl-optimization/64682
15184         PR rtl-optimization/69567
15185         PR rtl-optimization/69737
15186         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15187         in I2 as well, just lose it.
15189 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15191         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15192         New variable.
15193         (aarch64_last_printed_tune_string): Likewise.
15194         (aarch64_declare_function_name): Only output .arch assembler
15195         directive if it will be different from the previously output
15196         directive.  Same for .tune comment but only if -dA is set.
15197         (aarch64_start_file): New function.
15198         (TARGET_ASM_FILE_START): Define.
15200 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
15202         PR plugins/69758
15203         * Makefile.in (PLUGIN_HEADERS): Add params.list.
15205 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
15207         PR target/65313
15208         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15209         -Wmaybe-uninitialized warning.
15211 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
15213         PR target/69713
15214         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15216 2016-02-11  Richard Biener  <rguenther@suse.de>
15218         PR rtl-optimization/69291
15219         * ifcvt.c (noce_try_store_flag_constants): Do not allow
15220         subexpressions affected by changing the result.
15222 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15224         PR target/69148
15225         * lra-constraints.c (curr_insn_transform): Find in/out operands
15226         for secondary memory moves.  Update dups.
15228 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
15230         PR tree-optimization/69652
15231         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15232         to nested loop, did source re-formatting, skip debug statements,
15233         add check on statement with volatile operand, remove dead scalar
15234         statements.
15236 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
15237             Patrick Palka  <ppalka@gcc.gnu.org>
15239         PR ipa/69241
15240         PR c++/69649
15241         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15242         calls if the return type is TREE_ADDRESSABLE.
15243         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15244         * ipa-split.c (split_function): Fix doubled "we" in comment.
15245         Use void return type for the split part even if
15246         !split_point->split_part_set_retval.
15248 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
15250         PR tree-optimization/68021
15251         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15252         when computing the value of biv cand by itself.
15254 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15256         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15257         (cortexa57_tunings): Likewise.
15258         (cortexa72_tunings): Likewise.
15259         (arch_macro_fusion_pair_p): Add support for AES fusion.
15260         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15261         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15262         Allow virtual registers before reload so early scheduling works.
15263         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15264         correct latency and pipeline.
15265         (cortex_a57_crypto_complex): Likewise.
15266         (cortex_a57_crypto_xor): Likewise.
15267         (define_bypass): Add AES bypass.
15269 2016-02-10  Richard Biener  <rguenther@suse.de>
15271         PR tree-optimization/69726
15272         * passes.def: Add DCE pass before late uninit.
15273         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15274         really fixup if-conversions job.
15276 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15278         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15279         (arm_cortex_a57_tune): Likewise.
15280         (aarch_macro_fusion_pair_p): Add support for AES fusion.
15281         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15283 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
15285         * timevar.def (TV_PHASE_DBGINFO): Delete.
15286         (TV_PHASE_CHECK_DBGINFO): Likewise.
15287         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15289 2016-02-10  Richard Biener  <rguenther@suse.de>
15291         PR tree-optimization/69719
15292         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15293         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15295 2016-02-09  Andrew Pinski  <apinski@cavium.com>
15297         PR tree-opt/69282
15298         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15299         get_vcond_mask_icode returns false.
15301 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
15303         PR target/68404
15304         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15305         an ADDIS that adds a pointer to a large constant that sets the
15306         upper16 bits with a load operation.
15308 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15310         PR target/68532
15311         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15312         order.
15313         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15314         endian.
15315         (vzipq_s16): Likewise.
15316         (vzipq_s32): Likewise.
15317         (vzipq_f32): Likewise.
15318         (vzipq_u8): Likewise.
15319         (vzipq_u16): Likewise.
15320         (vzipq_u32): Likewise.
15321         (vzipq_p8): Likewise.
15322         (vzipq_p16): Likewise.
15324 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15326         PR target/68532
15327         * config/arm/arm.c (neon_endian_lane_map): New function.
15328         (neon_vector_pair_endian_lane_map): New function.
15329         (arm_evpc_neon_vuzp): Allow for big endian lane order.
15330         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15331         endian.
15332         (vuzpq_s16): Likewise.
15333         (vuzpq_s32): Likewise.
15334         (vuzpq_f32): Likewise.
15335         (vuzpq_u8): Likewise.
15336         (vuzpq_u16): Likewise.
15337         (vuzpq_u32): Likewise.
15338         (vuzpq_p8): Likewise.
15339         (vuzpq_p16): Likewise.
15341 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
15343         PR target/69634
15344         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15345         debug insns.
15347 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
15349         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15350         truncate const_int operand 1 to QImode.
15352 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
15354         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15355         corresponding to an abnormal edge.
15357 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15359         PR tree-optimization/69599
15360         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15361         function.
15362         (find_func_aliases_for_builtin_call, find_func_clobbers)
15363         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
15364         partition.
15366 2016-02-09  Richard Biener  <rguenther@suse.de>
15368         PR tree-optimization/69715
15369         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15370         LHS on calls as non-rewritable.
15372 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15374         PR lto/69707
15375         * lto-wrapper.c (append_diag_options): New function.
15376         (compile_offload_image): Call append_diag_options.
15378 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
15380         PR other/69722
15381         * doc/extend.texi (Flag Output Operands): Correct sectioning.
15382         Minor copy-edit to fix verb tenses.
15384 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
15386         PR tree-optimization/69209
15387         * ipa-split.c (split_function): If split part is not
15388         returning retval, retval has gimple type but is not
15389         gimple value, force it into a SSA_NAME first.
15391 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
15393         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15394         outdated section.
15396 2016-02-08  Jason Merrill  <jason@redhat.com>
15398         PR c++/69631
15399         * convert.c (convert_to_integer_1): Check dofold on truncation
15400         distribution.
15401         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15402         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15403         Rename from *_nofold.
15404         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15405         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15407 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
15409         PR target/60410
15410         * tree.c (build_common_tree_nodes): Remove short_double argument.
15411         All callers changed.
15412         * tree.h (build_common_tree_nodes): Adjust declaration.
15413         * doc/invoke.texi (-fshort-double): Remove documentation.
15414         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15415         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15416         * lto-wrapper.c (merge_and_complain, append_compiler_options)
15417         (append_linker_options): Don't handle OPT_fshort_double.
15419         PR rtl-optimization/68730
15420         * lra-remat.c (insn_to_cand_activation): New static variable.
15421         (lra_remat): Allocate and free it.
15422         (create_cand): New arg activation. Initialize a field in
15423         insn_to_cand_activation if it is nonnull.
15424         (create_cands): Pass the activation insn to create_cand when making
15425         a candidate involving an output reload.  Reorganize code a little.
15426         (do_remat): Keep track of active status of candidates in a separate
15427         bitmap.
15429 2016-02-08  Richard Biener  <rguenther@suse.de>
15431         PR tree-optimization/69719
15432         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15433         Properly use absolute of the difference of the two offsets to
15434         compare or adjust the segment length.
15436 2016-02-08  Richard Biener  <rguenther@suse.de>
15437             Jeff Law  <law@redhat.com>
15439         PR target/68273
15440         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15441         types for anonymous SSA names.
15443 2016-02-08   Richard Biener  <rguenther@suse.de>
15445         PR rtl-optimization/69274
15446         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15448 2016-02-08  Jeff Law  <law@redhat.com>
15450         PR tree-optimization/65917
15451         * tree-ssa-dom.c (record_temporary_equivalences): Record both
15452         equivalences from if (x == y) style conditionals.
15453         (loop_depth_of_name): Remove.
15454         (record_equality): Remove loop depth check.
15455         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15456         (const_and_copies::record_const_or_copy_raw): New member function.
15457         * tree-ssa-scopedtables.c
15458         (const_and_copies::record_const_or_copy_raw): New, factored out of
15459         (const_and_copies::record_const_or_copy): Call new member function.
15461 2016-02-05  Jeff Law  <law@redhat.com>
15463         PR tree-optimization/68541
15464         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15465         (count_stmts_in_block): New function.
15466         (poor_ifcvt_candidate_code): Likewise.
15467         (is_feasible_trace): Add some heuristics to determine when path
15468         splitting is profitable.
15469         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15470         is a diamond with a single exit.
15472 2016-02-05  Martin Sebor  <msebor@redhat.com>
15474         PR c++/69662
15475         * doc/invoke.texi: Update -Wplacement-new to take an optional
15476         argument.
15478 2016-02-06  Richard Henderson  <rth@redhat.com>
15480         PR c/69643
15481         * tree.c (tree_nop_conversion_p): Do not strip casts into or
15482         out of non-standard address spaces.
15484 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15486         PR rtl-optimization/69691
15487         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15489 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
15491         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15492         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15493         (*ieee128_mfvsrd_64bit): Likewise.
15494         (*ieee128_mfvsrd_32bit): Likewise.
15496 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
15498         PR target/69369
15499         Revert r232560:
15500         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15502         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15503         instrumented_version.
15505 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
15507         * doc/invoke.texi (Optimize Options): In table of --param options
15508         rename second occurrence of tracer-min-branch-ratio to
15509         tracer-min-branch-probability, rename
15510         tracer-min-branch-ratio-feedback to
15511         tracer-min-branch-probability-feedback and clarify description,
15512         rename sched-spec-state-edge-prob-cutoff to
15513         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15514         to selsched-insns-to-rename, rename lto-minpartition to
15515         lto-min-partition, delete reorder-blocks-duplicate and
15516         reorder-blocks-duplicate-feedback.
15518 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15520         * config/s390/s390.c (s390_register_info_set_ranges): Remove
15521         superfluous loops.
15523 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15525         * doc/extend.texi: S/390: Correct some typos.
15527 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15529         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15531 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15533         PR target/69625
15534         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15535         (s390_register_info_gprtofpr): Use new macros above.
15536         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15537         its name.
15538         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15539         its name.  Adjust restore and save gpr ranges.
15540         (s390_register_info_set_ranges): New function.
15541         (s390_register_info): Use new macros above.  Call
15542         s390_register_info_set_ranges.
15543         (s390_optimize_register_info): Likewise.
15544         (s390_hard_regno_rename_ok): Use new macros.
15545         (s390_hard_regno_scratch_ok): Likewise.
15546         (s390_emit_epilogue): Likewise.
15547         (s390_can_use_return_insn): Likewise.
15548         (s390_optimize_prologue): Likewise.
15549         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15551 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15553         PR bootstrap/69677
15554         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15555         alignment fixes.
15556         (ix86_option_override_internal): Disable TARGET_STV even for
15557         -m{incoming,preferred}-stack-boundary=3.
15559 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15561         * config.gcc: Mark deprecated rtems targets as obsolete.
15563 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
15565         PR rtl-optimization/64682
15566         PR rtl-optimization/69567
15567         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15568         before I2 only if the register is both used and set in I2.
15570 2016-02-04  DJ Delorie  <dj@redhat.com>
15572         * config/msp430/msp430.c (msp430_start_function): Add function type.
15574 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15576         PR fortran/69368
15577         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15579 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
15581         PR rtl-optimization/69577
15582         Revert:
15583         2015-10-29  Richard Henderson  <rth@redhat.com>
15585         PR target/68124
15586         PR rtl-opt/67609
15587         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15588         sse check to the exact conditions of PR 67609.
15590 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15592         PR target/69667
15593         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15594         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15595         not allowed into the traditional Altivec registers.
15596         (movtd_64bit_nodm): Likewise.
15597         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15599 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
15601         * config/aarch64/cortex-a57-fma-steering.c
15602         (aarch64_register_fma_steering): Remove "static" from arguments
15603         to register_pass.
15605 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
15607         PR target/69619
15608         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15609         twice when complex.
15611 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
15613         * doc/invoke.texi: Delete -mno-fma4.
15615 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
15617         PR rtl-optimization/69577
15618         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15619         (find_subregs_of_mode): Update accordingly.  Iterate over partial
15620         definitions.
15622 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
15624         * config/arm/arm-protos.h (neon_reinterpret): Remove.
15625         * config/arm/arm.c (neon_reinterpret): Remove.
15626         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15627         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15628         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15629         vreinterpretti): Remove.
15630         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15631         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15632         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15633         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15634         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15635         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15636         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15637         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15638         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15639         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15640         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15641         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15642         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15643         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15644         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15645         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15646         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15647         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15648         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15649         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15650         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15651         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15652         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15653         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15654         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15655         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15656         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15657         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15658         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15659         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15660         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15661         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15662         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15663         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15664         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15665         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15666         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15667         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15668         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15669         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15670         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15671         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15672         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15673         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15674         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15675         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15676         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15677         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15678         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15679         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15680         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15681         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15682         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15683         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15684         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15685         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15686         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15687         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15688         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15689         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15690         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15691         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15692         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15693         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15694         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15695         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15696         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15697         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15698         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15699         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15700         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15701         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15702         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15703         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15704         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15705         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15706         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15707         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15708         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15709         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15710         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15711         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15712         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15713         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15714         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15715         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15716         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15717         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15718         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15719         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15720         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15721         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15722         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15723         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15724         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15725         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15726         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15727         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15728         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15729         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15730         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15731         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15732         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15734 2016-02-04  Martin Liska  <mliska@suse.cz>
15736         PR sanitizer/69276
15737         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15738         that are gimple_store_p.
15739         (maybe_instrument_call): Likewise.
15741 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
15743         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15744         register scaling out of memory reference and comment why.
15746 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15748         PR target/65932
15749         PR target/67714
15750         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15751         folding the source of a SET.
15753 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15755         PR target/65932
15756         PR target/67714
15757         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15758         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15760 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
15762         PR target/65932
15763         PR target/67714
15764         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15765         HImode.
15767 2016-02-04  Christian Bruel  <christian.bruel@st.com>
15769         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15770         * config/arm/arm.c (arm_set_current_function): Likewise.
15772 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15773             Ilya Enkovich  <enkovich.gnu@gmail.com>
15774             H.J. Lu  <hongjiu.lu@intel.com>
15776         PR target/69454
15777         * config/i386/i386.c (convert_scalars_to_vector): Remove
15778         stack alignment fixes.
15779         (ix86_option_override_internal): Disable TARGET_STV if stack
15780         might not be aligned enough.
15781         (ix86_minimum_alignment): Assert that TARGET_STV is false.
15783 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
15785         * config/i386/x86-tune.def: Disable default prefetching
15786         for -march=znver1.
15788 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15789             Vladimir Makarov  <vmakarov@redhat.com>
15791         PR target/69461
15792         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15793         in validating fused toc addresses.
15795 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
15797         PR c/69627
15798         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15799         range->m_caret fields if range->m_show_caret_p is false.
15801         PR target/69644
15802         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15803         Force oldval into register if it does not satisfy reg_or_short_operand
15804         predicate.  Fix up formatting.
15806 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
15807             Alexandre Oliva  <aoliva@redhat.com>
15809         PR target/69461
15810         * lra-constraints.c (simplify_operand_subreg): Check additionally
15811         address validity after potential reloading.
15812         (process_address_1): Check insns validity.  In case of failure do
15813         nothing.
15815 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
15817         PR target/69118
15818         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15819         Fix target.
15821 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
15823         * wide-int.cc (canonize_uhwi): New function.
15824         (wi::divmod_internal): Use it.
15826 2016-02-02  James Norris  <jnorris@codesourcery.com
15828         * gimplify.c (omp_notice_variable): Add usage check.
15830 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
15832         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15833         like LE, GE, LT, GT when emitting relational operator.
15835 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15837         * ira-costs.c (find_costs_and_classes): Add extra argument.
15838         * target.def (ira_change_pseudo_allocno_class): Add parameter.
15839         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15840         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
15841         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
15842         Add best_class parameter, and return it if not ALL_REGS.
15843         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
15844         Add parameter.
15845         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
15846         Update target hook.
15848 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
15850         * config/aarch64/aarch64.c
15851         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
15852         (aarch64_ira_change_pseudo_allocno_class): New function.
15854 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
15856         PR target/67032
15857         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
15859 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15861         * config/avr/avr.c (avr_option_override): Set
15862         PARAM_ALLOW_STORE_DATA_RACES to 1.
15864 2016-02-02  Richard Biener  <rguenther@suse.de>
15866         PR tree-optimization/69595
15867         * match.pd: Add range test simplifications to true/false.
15869 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
15871         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
15872         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
15873         instead.
15875 2016-02-02  Richard Biener  <rguenther@suse.de>
15877         PR tree-optimization/69606
15878         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
15879         info on the result before moving a stmt.
15881 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
15883         PR middle-end/68542
15884         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
15885         branch with vector comparison.
15886         * config/i386/sse.md (VI48_AVX): New mode iterator.
15887         (define_expand "cbranch<mode>4): Add support for conditional branch
15888         with vector comparison.
15889         * tree-vect-loop.c (optimize_mask_stores): New function.
15890         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
15891         has_mask_store field of vect_info.
15892         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
15893         vectorized loops having masked stores after vec_info destroy.
15894         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
15895         correspondent macros.
15896         (optimize_mask_stores): Add prototype.
15898 2016-02-02  Alan Modra  <amodra@gmail.com>
15900         PR target/69548
15901         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
15902         allow subregs.
15904 2016-02-02  Alan Modra  <amodra@gmail.com>
15906         PR target/68662
15907         * config/rs6000/rs6000.c (need_toc_init): New var, set it
15908         whenever toc_label_name used.
15909         (rs6000_file_start): Don't set up toc section here,
15910         (rs6000_output_function_epilogue): do so here instead,
15911         (rs6000_xcoff_file_start): and here.
15912         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
15913         (load_toc_aix_di): Likewise.
15915 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15917         PR rtl-optimization/69592
15918         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
15919         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
15920         (num_sign_bit_copies_binary_arith_p): New inline function.
15921         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
15923 2016-02-01  Jeff Law  <law@redhat.com>
15925         PR tree-optimization/69580
15926         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
15927         * tree-ssa-threadbackward.c
15928         (fsm_find_control_statement_thread_paths): Do not try to walk
15929         through large PHI nodes.
15931 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15933         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
15934         when count is incremented above limit, don't analyze further
15935         insns afterwards.
15937         * omp-low.c (oacc_parse_default_dims): Avoid
15938         -Wsign-compare warning, make sure value fits into int
15939         rather than just unsigned int.
15941 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
15943         PR tree-optimization/67921
15944         * fold-const.c (split_tree): New parameters.  Convert pointer
15945         type variable part to proper type before negating.
15946         (fold_binary_loc): Pass new arguments to split_tree.
15948 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
15950         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
15951         (nvptx_goacc_validate_dims): Extend to handle global defaults.
15952         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
15953         * doc/tm.texti: Rebuilt.
15954         * doc/invoke.texi (fopenacc-dim): Document.
15955         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
15956         (append_compiler_options): Likewise.
15957         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
15958         (oacc_parse_default_dims): New.
15959         (oacc_validate_dims): Add USED arg.  Select non-unity default when
15960         possible.
15961         (oacc_loop_fixed_partitions): Return mask of used partitions.
15962         (oacc_loop_auto_partitions): Emit dump info.
15963         (oacc_loop_partition): Return mask of used partitions.
15964         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
15965         loop partitioning and validation calls.
15967 2016-02-01  Richard Biener  <rguenther@suse.de>
15969         PR middle-end/69556
15970         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
15972 2016-02-01  Richard Biener  <rguenther@suse.de>
15974         PR tree-optimization/69574
15975         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
15976         of asserting return chrec_dont_know.
15978 2016-02-01  Martin Liska  <mliska@suse.cz>
15980         * mem-stats-traits.h: Add copyright header.
15981         * mem-stats.h: Likewise.
15983 2016-02-01  Richard Biener  <rguenther@suse.de>
15985         PR tree-optimization/69579
15986         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
15987         Do not propagate through abnormal PHI results.
15989 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
15991         * postreload.c (reload_cse_simplify): Remove dead code.
15993 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
15995         PR rtl-optimization/69570
15996         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
15997         if there is more than one set, not if there is a single set.
15999 2016-02-01  Richard Henderson  <rth@redhat.com>
16001         PR rtl-opt/69535
16002         * combine.c (make_compound_operation): When looking through a
16003         subreg, make sure to re-extend to the width of the outer mode.
16005 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
16007         PR tree-optimization/69546
16008         * wide-int.cc (wi::divmod_internal): For unsigned division
16009         where both operands fit into uhwi, if o1 is 1 and o0 has
16010         msb set, if divident_prec is larger than bits per hwi,
16011         clear another quotient word and return 2 instead of 1.
16012         Similarly for remainder with msb in HWI set, if dividend_prec
16013         is larger than bits per hwi.
16015 2016-01-29  Martin Jambor  <mjambor@suse.cz>
16017         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16018         Use short lowercase names.
16019         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
16020         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16021         acq_rel one.  Protect warning agains segfaults if
16022         get_memory_order_name returns NULL.
16023         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16024         with release semantics.  Do not warn if get_memory_order already did.
16025         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16026         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
16027         if get_memory_order already did.
16029 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
16031         * doc/install.texi: Document that isl-0.16 is supported.
16033 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
16035         PR target/69299
16036         * config/i386/constraints.md (Bm): Describe as special memory
16037         constraint.
16038         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16039         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16040         * genpreds.c (struct constraint_data): Add is_special_memory.
16041         (have_special_memory_constraints, special_memory_start): New
16042         static vars.
16043         (special_memory_end): Ditto.
16044         (add_constraint): Add new arg is_special_memory.  Add code to
16045         process its true value.  Update have_special_memory_constraints.
16046         (process_define_constraint): Pass the new arg.
16047         (process_define_register_constraint): Ditto.
16048         (choose_enum_order): Process special memory.
16049         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16050         function insn_extra_special_memory_constraint.
16051         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16052         * gensupport.c (process_rtx): Process
16053         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16054         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16055         * ira-lives.c (single_reg_class): Use
16056         insn_extra_special_memory_constraint.
16057         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16058         * lra-constraints.c (process_alt_operands): Ditto.
16059         (curr_insn_transform): Use insn_extra_special_memory_constraint.
16060         * recog.c (asm_operand_ok, preprocess_constraints): Process
16061         CT_SPECIAL_MEMORY.
16062         * reload.c (find_reloads): Ditto.
16063         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16064         * stmt.c (parse_input_constraint): Use
16065         insn_extra_special_memory_constraint.
16067 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16069         PR target/69530
16070         * lra-splill.c (lra_final_code_change): Revert r229087 by
16071         removing all sub-registers.
16073 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
16075         PR target/65604
16076         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16078 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
16080         PR target/69551
16081         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16082         SSE1, copy target into the temporary reg first before recursing
16083         on it.
16085 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16087         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16088         with vm.
16090 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16092         * ginclude/stdarg.h: Test __cplusplus instead of
16093         __GXX_EXPERIMENTAL_CXX0X__.
16095 2016-01-29  Richard Biener  <rguenther@suse.de>
16097         PR tree-optimization/69547
16098         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16099         Do not mark clobbers necessary.
16100         (mark_all_reaching_defs_necessary_1): Likewise.
16102 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16104         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16105         declaration name with %qs and print it in both error messages.
16106         Also fix indentation.
16108 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16110         PR other/69006
16111         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16112         trailing blank line from error message.
16114 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16116         PR c++/69462
16117         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16118         for C++-11.
16120 2016-01-29  Richard Biener  <rguenther@suse.de>
16122         PR middle-end/69537
16123         * match.pd: Allow all integral types when simplifying a
16124         widening or sign-changing conversion.
16126 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16128         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16129         back to setting codegen_error to fail codegen.
16131 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
16133         PR target/69459
16134         * config/i386/constraints.md (C): Only accept constant zero operand.
16135         (BC): New constraint.
16136         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16137         instead of C constraint.
16138         * doc/md.texi (Machine Constraints): Update description
16139         of C constraint.
16141 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
16143         PR target/68400
16144         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16146 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
16148         PR middle-end/69542
16149         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16150         non-debug insns.
16152 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
16154         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16155         branches if using guessed profile.
16157 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
16159         * graphite-optimize-isl.c (optimize_isl): Fix dump.
16161 2016-01-28  Richard Henderson  <rth@redhat.com>
16163         PR target/69305
16164         * config/aarch64/aarch64-modes.def (CC_Cmode): New
16165         * config/aarch64/aarch64-protos.h: Update.
16166         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16167         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16168         (aarch64_get_condition_code_1): Handle CC_Cmode.
16169         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16170         (*add<mode>3_compareC_cconly_imm): New.
16171         (*add<mode>3_compareC_cconly): New.
16172         (*add<mode>3_compareC_imm): New.
16173         (add<mode>3_compareC): New.
16174         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16175         to be first.  Use aarch64_carry_operation.
16176         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16177         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16178         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16179         (subti3): Use subdi3_compare1.
16180         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16181         (sub<mode>3_compare1): New.
16182         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16183         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16184         (*subsi3_carryin_uxtw): Likewise.
16185         (*ngc<mode>, *ngcsi_uxtw): Likewise.
16186         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16187         * config/aarch64/iterators.md (DWI): New.
16188         * config/aarch64/predicates.md (aarch64_carry_operation): New.
16189         (aarch64_borrow_operation): New.
16191 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16193         * graphite-optimize-isl.c (optimize_isl): Print a different debug
16194         message when isl does not return a valid schedule.
16196 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16198         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16199         Remove comments from class declarations: they are already in the code
16200         close by the defs.
16202 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16204         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16205         codegen_error_p.
16206         (ternary_op_to_tree): Same.
16207         (unary_op_to_tree): Same.
16208         (nary_op_to_tree): Same.
16209         (gcc_expression_from_isl_expr_op): Same.
16210         (gcc_expression_from_isl_expression): Same.
16211         (graphite_create_new_loop): Same.
16212         (graphite_create_new_loop_guard): Same.
16213         (build_iv_mapping): Same.
16214         (graphite_create_new_guard): Same.
16215         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16216         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16218 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16220         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16221         instead of setting codegen_error to fail codegen.
16223 2016-01-28  Jason Merrill  <jason@redhat.com>
16225         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16227 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16229         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16230         Remove CONST_INT_P check in CCMP cost calculation.
16232 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16234         * config/aarch64/aarch64.c (generic_vector_cost):
16235         Set vec_permute_cost.
16236         (cortexa57_vector_cost): Likewise.
16237         (exynosm1_vector_cost): Likewise.
16238         (xgene1_vector_cost): Likewise.
16239         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16240         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16241         Add vec_permute_cost entry.
16243 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16245         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16246         immediate as %1.
16247         (add<mode>3_compare0): Likewise.
16248         (addsi3_compare0_uxtw): Likewise.
16249         (add<mode>3nr_compare0): Likewise.
16250         (compare_neg<mode>): Likewise.
16251         (<optab><mode>3): Likewise.
16253 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
16255         * tree-vect-stmts.c (vectorizable_comparison): Add
16256         NULL check for vectype.
16258 2016-01-28  Richard Biener  <rguenther@suse.de>
16260         PR tree-optimization/69466
16261         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16262         Account for PHIs we couldn't duplicate.
16264 2016-01-28  Martin Liska  <mliska@suse.cz>
16266         PR pch/68758
16267         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16268         instead of ENABLE_VALGRIND_CHECKING.
16270 2016-01-27  Richard Henderson  <rth@redhat.com>
16272         PR rtl-opt/69447
16273         * lra-remat.c (subreg_regs): New.
16274         (dump_candidates_and_remat_bb_data): Dump it.
16275         (operand_to_remat): Reject if operand in subreg_regs.
16276         (set_bb_regs): Collect subreg_regs.
16277         (lra_remat): Init and free subreg_regs.  Compute
16278         calculate_local_reg_remat_bb_data before create_cands.
16280 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
16282         PR target/68986
16283         * config/i386/i386.c (ix86_update_stack_boundary): Don't
16284         change stack_alignment_needed for __tls_get_addr call.
16286 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
16288         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16290 2016-01-27  Jeff Law  <law@redhat.com>
16292         PR tree-optimization/68398
16293         PR tree-optimization/69196
16294         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16295         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16296         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16297         Only count PHIs in the last block in the path.  The others will
16298         const/copy propagate away.  Add heuristic to allow more irreducible
16299         subloops to be created when it is likely profitable to do so.
16301         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16302         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
16303         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
16305 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16307         PR lto/69254
16308         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16309         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16310         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16311         * tree-streamer-in.c: Include asan.h.
16312         (streamer_get_builtin_tree): For builtins in sanitizer
16313         range call initialize_sanitizer_builtins and retry.
16315 2016-01-27  Ian Lance Taylor  <iant@google.com>
16317         * common.opt (fkeep-gc-roots-live): New undocumented option.
16318         * tree-ssa-loop-ivopts.c (add_candidate_1): If
16319         -fkeep-gc-roots-live, skip pointers.
16320         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16321         NULL.
16323 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
16325         PR target/69512
16326         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16327         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16329 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
16331         PR target/68380
16332         * configure.ac: NetBSD provides SSP in its C library.
16333         * configure: Updated.
16335 2016-01-27  Richard Biener  <rguenther@suse.de>
16337         PR tree-optimization/69166
16338         * tree-vect-loop.c (vect_is_simple_reduction): Always check
16339         reduction code for commutativity / associativity.
16341 2016-01-27  Martin Jambor  <mjambor@suse.cz>
16343         PR tree-optimization/69355
16344         * tree-sra.c (analyze_access_subtree): Correct hole detection when
16345         total_scalarization fails.
16347 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
16349         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16350         power9.
16352 2016-01-27  Christian Bruel  <christian.bruel@st.com>
16354         PR target/69245
16355         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16356         Move arm_reset_previous_fndecl and set_target_option_current_node in
16357         the conditional part.  Call save_restore_target_globals.
16358         * config/arm/arm.c (arm_set_current_function):
16359         Refactor to better support #pragma target and attribute mix.
16360         Call save_restore_target_globals.
16361         * config/arm/arm-protos.h (save_restore_target_globals): New function.
16363 2016-01-27  Martin Liska  <mliska@suse.cz>
16365         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16366         reference for an HSA kernel and its host function.
16368 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16370         PR tree-optimization/69399
16371         * wide-int.h (wi::lrshift): For larger precisions, only
16372         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16374 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
16376         * config/arc/predicates.md (proper_comparison_operator): Reject
16377         constant-constant comparison.
16379 2016-01-26  Tom de Vries  <tom@codesourcery.com>
16381         PR tree-optimization/69110
16382         * tree-data-ref.c (initialize_data_dependence_relation): Handle
16383         DR_NUM_DIMENSIONS == 0.
16385 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16386             Sebastian Pop  <s.pop@samsung.com>
16388         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16389         isl_ast_op_cond and isl_ast_op_select.
16390         (gcc_expression_from_isl_expr_op): Same.
16392 2016-01-26  Jason Merrill  <jason@redhat.com>
16394         PR c++/68782
16395         * tree.c (recompute_constructor_flags): Split out from
16396         build_constructor.
16397         (verify_constructor_flags): New.
16398         * tree.h: Declare them.
16400 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
16402         PR rtl-optimization/69217
16403         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16404         are no TYPE_FIELDS set for the record type.
16406 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16408         PR target/68662
16409         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16410         toc_label_name unconditionally.
16411         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16412         SYMBOL_REF string.  Use toc_label_name instead of constructing
16413         LCTOC1.
16414         (rs6000_elf_declare_function_name): Use toc_label_name instead of
16415         constructing LCTOC1.
16417 2016-01-26  Martin Sebor  <msebor@redhat.com>
16419         PR other/69477
16420         * doc/extend.texi (Common Type Attributes): Move text that talks about
16421         attribute packed from attribute aligned to the section discussing
16422         the former attribute for clarity.
16424 2016-01-26  Richard Henderson  <rth@redhat.com>
16426         PR middle-end/60908
16427         * trans-mem.c (tm_region_init): Mark entry block as visited.
16429 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
16431         PR other/69006
16432         * diagnostic-show-locus.c (layout::print_source_line): Replace
16433         call to pp_newline with call to layout::print_newline.
16434         (layout::print_annotation_line): Likewise.
16435         (layout::move_to_column): Likewise.
16436         (layout::print_any_fixits): After printing any fixits, print a
16437         trailing newline, if necessary.
16438         (layout::print_newline): New method, resetting any colorization
16439         before a newline.
16440         (diagnostic_show_locus): Move the pp_newline to before the
16441         early bailout.  Remove dummy block enclosing the layout instance.
16442         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16443         of pp_newline_and_flush with pp_flush.
16444         (diagnostic_append_note): Delete use of pp_newline.
16445         (diagnostic_append_note_at_rich_loc): Delete.
16446         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16447         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16448         when newline characters are added to the buffer.
16450 2016-01-26  Michael Matz  <matz@suse.de>
16452         * configure.ac (ac_cv_std_swap_in_utility): New test.
16453         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16454         * configure: Regenerate.
16455         * config.in: Regenerate.
16457 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
16459         * config/arc/arc.md (cstoresi4): Force operand into register.
16460         (arcset<code>): Fix predicate.
16461         (arcsetltu): Likewise.
16462         (arcsetgeu): Likewise.
16463         (arcsethi): Likewise.
16464         (arcsetls): Likewise.
16466 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16468         PR tree-optimization/69483
16469         * gimple-fold.c (canonicalize_constructor_val): Return NULL
16470         if base has error_mark_node type.
16472 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
16474         PR target/68620
16475         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16476         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16477         New helper macros.
16478         (vget_lane_f16): Handle big-endian.
16479         (vgetq_lane_f16): Likewise.
16480         (vset_lane_f16): Likewise.
16481         (vsetq_lane_f16): Likewise.
16482         * config/arm/iterators.md (VQXMOV): Add V8HF.
16483         (VDQ): Add V4HF and V8HF.
16484         (V_reg): Handle V4HF and V8HF.
16485         (Is_float_mode): Likewise.
16486         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16487         neon_vdup_nv8hf): New patterns.
16488         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16489         Use VD_LANE iterator.
16490         (neon_vld1_dup<mode>): Use VQ2 iterator.
16492 2016-01-26  Nathan Sidwell  <nathan@acm.org>
16494         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16495         (set_oacc_fn_attrib): Add IS_KERNEL arg.
16496         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16497         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16498         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16499         (oacc_validate_dims): Add LEVEL arg, don't return level.
16500         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16501         oacc_validate_dims.
16502         (execute_oacc_device_lower): Adjust, add more dump output.
16503         * tree-ssa-loop.c (gate_oacc_kernels): Use
16504         oacc_fn_attrib_kernels_p.
16505         * tree-parloops.c (create_parallel_loop): Adjust
16506         set_oacc_fn_attrib call.
16508 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16510         PR lto/69254
16511         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16512         (append_compiler_options): Handle -fcilkplus.
16513         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16515 2016-01-26  Nick Clifton  <nickc@redhat.com>
16517         PR target/66655
16518         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16519         been marked as DECL_ONE_ONLY but we do not the means to make it
16520         so, then do not allow it to bind locally.
16522 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16524         PR lto/69254
16525         * opts.h (parse_sanitizer_options): New prototype.
16526         * opts.c (sanitizer_opts): New array.
16527         (parse_sanitizer_options): New function.
16528         (common_handle_option): Use parse_sanitizer_options.
16530 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
16532         PR target/68986
16533         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16534         alignment adjustment to ...
16535         (ix86_update_stack_boundary): Here.  Don't over-align stack for
16536         __tls_get_addr.
16537         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16538         if __tls_get_addr is called.
16540 2016-01-26  Christian Bruel  <christian.bruel@st.com>
16542         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16544 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
16546         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16548 2016-01-26  Richard Biener  <rguenther@suse.de>
16550         PR middle-end/69467
16551         * match.pd: Guard X * CST CMP 0 pattern with single_use.
16553 2016-01-26  Richard Biener  <rguenther@suse.de>
16555         PR tree-optimization/69452
16556         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16557         (move_computations_dom_walker::before_dom_children): Rename
16558         to ...
16559         (move_computations_worker): This.
16560         (move_computations): Perform an RPO rather than a DOM walk.
16562 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16564         PR target/69442
16565         * combine.c (combine_instructions): For REG_EQUAL note with
16566         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16567         to the underlying register.
16568         * doc/rtl.texi (REG_EQUAL): Document the behavior of
16569         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16571 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
16573         PR target/67896
16574         * config/aarch64/aarch64-builtins.c
16575         (aarch64_init_simd_builtin_types): Do not set structural
16576         equality to __Poly{8,16,64,128}_t types.
16578 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
16580         PR tree-optimization/69400
16581         * wide-int.cc (wi_pack): Take the precision as argument and
16582         perform canonicalization here rather than in the callers.
16583         Use the main loop to handle all full-width HWIs.  Add a
16584         zero HWI if in_len isn't a full result.
16585         (wi::divmod_internal): Update accordingly.
16586         (wi::mul_internal): Likewise.  Simplify.
16588 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16589             Sebastian Pop  <s.pop@samsung.com>
16591         * graphite-poly.c (apply_poly_transforms): Simplify.
16592         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16593         (print_isl_map): Same.
16594         (print_isl_union_map): Same.
16595         (print_isl_schedule): New.
16596         (debug_isl_schedule): New.
16597         * graphite-dependences.c (scop_get_reads): Do not call
16598         isl_union_map_add_map that is undocumented isl functionality.
16599         (scop_get_must_writes): Same.
16600         (scop_get_may_writes): Same.
16601         (scop_get_original_schedule): Remove.
16602         (scop_get_dependences): Do not call isl_union_map_compute_flow that
16603         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
16604         (compute_deps): Remove.
16605         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16606         (debug_schedule_ast): New.
16607         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16608         set_separate_option.
16609         (graphite_regenerate_ast_isl): Add dump.
16610         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16611         from scop->transformed_schedule.
16612         (graphite_regenerate_ast_isl): Add more dump.
16613         * graphite-optimize-isl.c (optimize_isl): Set
16614         scop->transformed_schedule.  Check whether schedules are equal.
16615         (apply_poly_transforms): Move here.
16616         * graphite-poly.c (apply_poly_transforms): ... from here.
16617         (free_poly_bb): Static.
16618         (free_scop): Static.
16619         (pbb_number_of_iterations_at_time): Remove.
16620         (print_isl_ast): New.
16621         (debug_isl_ast): New.
16622         (debug_scop_pbb): New.
16623         * graphite-scop-detection.c (print_edge): Move.
16624         (print_sese): Move.
16625         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16626         (build_scop_scattering): Remove.
16627         (create_pw_aff_from_tree): Assert instead of bailing out.
16628         (add_condition_to_pbb): Remove unused code, do not fail.
16629         (add_conditions_to_domain): Same.
16630         (add_conditions_to_constraints): Remove.
16631         (build_scop_context): New.
16632         (add_iter_domain_dimension): New.
16633         (build_iteration_domains): Initialize pbb->iterators.
16634         Call add_conditions_to_domain.
16635         (nested_in): New.
16636         (loop_at): New.
16637         (index_outermost_in_loop): New.
16638         (index_pbb_in_loop): New.
16639         (outermost_pbb_in): New.
16640         (add_in_sequence): New.
16641         (add_outer_projection): New.
16642         (outer_projection_mupa): New.
16643         (add_loop_schedule): New.
16644         (build_schedule_pbb): New.
16645         (build_schedule_loop): New.
16646         (embed_in_surrounding_loops): New.
16647         (build_schedule_loop_nest): New.
16648         (build_original_schedule): New.
16649         (build_poly_scop): Call build_original_schedule.
16650         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16651         (free_poly_dr): Remove.
16652         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
16653         (free_poly_bb): Remove.
16654         (debug_loop_vec): Remove.
16655         (print_isl_ast): Declare.
16656         (debug_isl_ast): Declare.
16657         (scop_do_interchange): Remove.
16658         (scop_do_strip_mine): Remove.
16659         (scop_do_block): Remove.
16660         (flatten_all_loops): Remove.
16661         (optimize_isl): Remove.
16662         (pbb_number_of_iterations_at_time): Remove.
16663         (debug_scop_pbb): Declare.
16664         (print_schedule_ast): Declare.
16665         (debug_schedule_ast): Declare.
16666         (struct scop): Remove schedule.  Add original_schedule,
16667         transformed_schedule.
16668         (free_gimple_poly_bb): Remove.
16669         (print_generated_program): Remove.
16670         (debug_generated_program): Remove.
16671         (unify_scattering_dimensions): Remove.
16672         * sese.c (print_edge): ... here.
16673         (print_sese): ... here.
16674         (debug_edge): ... here.
16675         (debug_sese): ... here.
16676         * sese.h (print_edge): Declare.
16677         (print_sese): Declare.
16678         (dump_edge): Declare.
16679         (dump_sese): Declare.
16681 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16682             Sebastian Pop  <s.pop@samsung.com>
16684         * Makefile.in: Set ISLVER in site.exp.
16686 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
16688         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16689         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
16690         through DECL_VALUE_EXPR for expansion.
16692 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16694         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16695         the frame info after reload completed.
16697 2016-01-25  Jeff Law  <law@redhat.com>
16699         PR tree-optimization/69196
16700         PR tree-optimization/68398
16701         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16702         tree-ssa-threadupdate.c.
16703         (determine_bb_domination_status): Prototype
16704         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16705         (determine_bb_domination_status): No longer static.
16706         (valid_jump_thread_path): Remove code to detect characteristics
16707         of the jump thread path not associated with correctness.
16708         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16709         Correct test for thread path length.  Count PHIs for real operands as
16710         statements that need to be copied.  Do not count ASSERT_EXPRs.
16711         Look at all the blocks in the thread path.  Compute and selectively
16712         filter thread paths based on threading through the latch, threading
16713         a multiway branch or crossing a multiway branch.
16715 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16717         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
16718         decl with __attribute__ ((unused)) annotation.
16720 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
16722         PR target/69421
16723         * tree-vect-stmts.c (vectorizable_condition): Check vectype
16724         of operands is compatible with a statement vectype.
16726 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
16728         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16729         improve wording for mixed storage order support.
16731 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
16733         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16734         (vcvt_u64_f64): Likewise.
16735         (vcvta_s64_f64): Likewise.
16736         (vcvta_u64_f64): Likewise.
16737         (vcvtm_s64_f64): Likewise.
16738         (vcvtm_u64_f64): Likewise.
16739         (vcvtn_s64_f64): Likewise.
16740         (vcvtn_u64_f64): Likewise.
16741         (vcvtp_s64_f64): Likewise.
16742         (vcvtp_u64_f64): Likewise.
16744 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
16746         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16747         (arc_init): Check validity mll64 option.
16748         (arc_save_restore): Use double load/store instruction.
16749         (arc_expand_movmem): Likewise.
16750         (arc_split_move): Don't split if we have double load/store
16751         instructions. Returns a boolean.
16752         (arc_process_double_reg_moves): Change function to return boolean
16753         instead of a sequence of instructions.
16754         (arc_dwarf_register_span): New function.
16755         * config/arc/arc-protos.h (arc_split_move): Change prototype.
16756         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16757         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16758         (*movdf_insn): Likewise.
16759         * config/arc/arc.opt (mll64): New option.
16760         * config/arc/predicates.md (even_register_operand): New predicate.
16761         * doc/invoke.texi (ARC Options): Add mll64 documentation.
16763 2016-01-25  Richard Biener  <rguenther@suse.de>
16765         PR lto/69393
16766         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16767         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16768         DECL_NAMELESS.
16769         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16771 2016-01-25  Richard Biener  <rguenther@suse.de>
16773         PR tree-optimization/69376
16774         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16775         flag.
16776         (VN_INFO_ANTI_RANGE_P): New inline.
16777         (VN_INFO_RANGE_TYPE): Likewise.
16778         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16779         SSA_NAME_ANTI_RANGE_P.
16780         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16781         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16782         Properly query VN_INFO_RANGE_TYPE.
16784 2016-01-25  Nick Clifton  <nickc@redhat.com>
16786         PR target/66655
16787         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16789 2016-01-23  Tom de Vries  <tom@codesourcery.com>
16791         PR tree-optimization/69426
16792         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16793         removed clobber.
16795 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
16797         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16798         "the the" with "the" in the comments.
16799         * ipa-devirt.c (build_type_inheritance_graph,
16800         update_type_inheritance_graph): Likewise.
16801         * tree.c (build_function_type_list_1): Likewise.
16802         * cfgloopmanip.c (scale_loop_profile): Likewise.
16803         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16804         * gimple-ssa-split-paths.c
16805         (find_block_to_duplicate_for_splitting_paths): Likewise.
16806         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16807         * expr.c (convert_move): Likewise.
16808         * var-tracking.c (vt_stack_adjustments): Likewise.
16809         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16810         * tree-vrp.c (test_for_singularity): Likewise.
16812         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16813         directly instead of building a temporary tree.
16815         PR bootstrap/69434
16816         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16817         remove <algorithm> include.
16819 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16821         PR target/69432
16822         * config/i386/i386.c: Include dojump.h.
16823         (expand_small_movmem_or_setmem,
16824         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16825         fixes.
16826         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16827         if dynamic_check != -1.
16829 2016-01-21  Jeff Law  <law@redhat.com>
16831         PR middle-end/69347
16832         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16833         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
16834         into dominated_by_p.
16835         (cprop_into_successor_phis): Avoid unnecessary tests.
16837 2016-01-22  Richard Henderson  <rth@redhat.com>
16839         PR target/69416
16840         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
16841         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
16843 2016-01-22  Michael Matz  <matz@suse.de>
16845         * system.h (string, algorithm): Include only conditionally.
16846         (new): Include always under C++.
16847         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
16848         * final.c (toplevel): Ditto.
16849         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
16850         * genconditions.c (write_header): Make gencondmd.c define
16851         INCLUDE_STRING.
16852         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
16854         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
16855         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
16857 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16859         PR target/68674
16860         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
16862 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16864         PR target/69403
16865         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
16866         define_insn_and_split.  Ensure operands[1] and operands[0] do not
16867         get assigned the same register.
16869 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
16871         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
16873 2016-01-22  Christian Bruel  <christian.bruel@st.com>
16875         * config/arm/arm-c.c (arm_pragma_target_parse):
16876         Remove warn_builtin_macro_redefined overwrite.
16878 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16880         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
16881         flag_non_call_exceptions compatibility.
16883 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16885         PR debug/66668
16886         * dwarf2out.c (add_child_die_after): New function.
16887         (dwarf_qual_info_t): New type.
16888         (dwarf_qual_info): New variable.
16889         (qualified_die_p): New function.
16890         (modified_type_die): For -fdebug-types-section, ensure
16891         canonical order of qualifiers.  Put qualified DIEs adjacent
16892         to the corresponding non-qualified type DIE and search there
16893         for existing qualified DIEs.
16895 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16897         * doc/extend.texi (scalar_storage_order type attribute): Document
16898         restriction on type punning and aliasing, and remove future tense.
16900 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
16902         PR target/69252
16903         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
16904         first stage.
16906 2016-01-21  Jeff Law  <law@redhat.com>
16908         PR middle-end/69347
16909         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
16910         useless call to record_temporary_equivalences.
16911         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
16912         allocate 10 slots in the bb_path vector and let it grow as needed.
16913         (fsm_find_control_statement_thread_paths): Similarly for the next_path
16914         vector.
16916 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16918         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
16919         Detangle.
16920         * configure: Regenerate.
16922 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
16924         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
16925         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
16927 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
16929         PR middle-end/66178
16930         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
16931         drop EXPAND_INITIALIZER.
16932         * rtl.h (contains_symbolic_reference_p): Declare.
16933         * rtlanal.c (contains_symbolic_reference_p): New function.
16934         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
16935         a subtraction into a NOT if symbolic constants are involved.
16937 2016-01-21  Anton Blanchard  <anton@samba.org>
16938             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16940         PR target/63354
16941         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
16942         #define.
16943         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
16944         function.
16946 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16948         * config/microblaze/microblaze.c
16949         (get_branch_target): New.
16950         (insert_wic_for_ilb_runout): New.
16951         (insert_wic): New.
16952         (microblaze_machine_dependent_reorg): New.
16953         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
16954         * config/microblaze/microblaze.md
16955         (UNSPEC_IPREFETCH): Define.
16956         (iprefetch): New pattern
16957         * config/microblaze/microblaze.opt
16958         (mxl-prefetch): New flag.
16960 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
16962         * config/microblaze/microblaze.h
16963         (FIXED_REGISTERS): Update in macro.
16964         (CALL_USED_REGISTERS): Update in macro.
16966 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
16968         PR rtl-optimization/68920
16969         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
16970         moves.
16972 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
16974         PR rtl-optimization/68990
16975         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
16976         pseudo instead of inheritance ones.
16978 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16979             Nick Clifton  <nickc@redhat.com>
16981         PR target/69129
16982         PR target/69012
16983         * config/mips/mips.c (mips_compute_frame_info): Initialise
16984         args_size and hard_frame_pointer_offset fields of the frame
16985         structure before calling mips_global_pointer.
16987 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
16989         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
16990         label reference.
16991         * configure: Regenerate.
16993 2016-01-21  Richard Biener  <rguenther@suse.de>
16995         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
16997 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
16999         * config/s390/s390.c (s390_asm_declare_function_size): Add code
17000         to actually emit the .size directive.
17002 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
17003              Jakub Jelinek  <jakub@redhat.com>
17005         PR target/69187
17006         PR target/65624
17007         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17008         args array size by one to avoid buffer overflow.
17010 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17012         * config/s390/s390.md (pool_section_start): Use switch_to_section
17013         to select proper read-only data section instead of hardcoding
17014         .rodata.
17015         (pool_section_end): Use switch_to_section to match the above.
17017 2016-01-21  Richard Biener  <rguenther@suse.de>
17019         PR tree-optimization/69378
17020         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17021         (set_ssa_val_to): Use it for dominance checks taking into
17022         account not executable edges.
17024 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17026         PR c++/69355
17027         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17028         for bitsize instead of GET_MODE_PRECISION (mode).
17030 2016-01-20  Martin Sebor  <msebor@redhat.com>
17032         PR c/52291
17033         * extend.texi (__sync Builtins): Clarify the semantics of
17034         __sync_fetch_and_OP built-ins on pointers.
17035         (__atomic Builtins): Same.
17037 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17038             Sebastian Pop  <s.pop@samsung.com>
17040         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17041         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17042         (is_valid_rename): Same.
17043         (translate_isl_ast_to_gimple::get_rename): Same.
17044         (translate_isl_ast_to_gimple::rename_all_uses): Same.
17045         (translate_isl_ast_to_gimple::rename_uses): Same.
17046         (get_new_name): Check for close_phi nodes.
17047         (copy_loop_phi_args): Use phi_node_kind.
17048         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17049         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17051 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17052             Sebastian Pop  <s.pop@samsung.com>
17054         Revert commit r229783.
17055         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17056         Remove use of parameter_rename_map.
17057         (copy_def): Remove.
17058         (copy_internal_parameters): Remove.
17059         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17060         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17061         (free_sese_info): Do not free parameter_rename_map.
17062         (set_rename): Do not use parameter_rename_map.
17063         (rename_uses): Update call to set_rename.
17064         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17065         * sese.h (parameter_rename_map_t): Remove.
17066         (struct sese_info_t): Remove field parameter_rename_map.
17068 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17069             Sebastian Pop  <s.pop@samsung.com>
17071         * graphite-isl-ast-to-gimple.c: Fix comment.
17072         * graphite-scop-detection.c (defined_in_loop_p): New.
17073         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17074         names defined in loop.
17076 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17077             Sebastian Pop  <s.pop@samsung.com>
17079         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17080         Discard unstructured if-then-else regions.
17082 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17083             Sebastian Pop  <s.pop@samsung.com>
17085         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17086         (cleanup_loop_iter_dom): Remove.
17087         (build_loop_iteration_domains): Remove.
17088         (build_scop_context): Remove.
17089         (build_scop_iteration_domain): Remove.
17090         (add_loop_constraints): New.
17091         (build_iteration_domains): New.
17092         (build_poly_scop): Call build_iteration_domains.
17094 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17095             Sebastian Pop  <s.pop@samsung.com>
17097         * graphite-scop-detection.c
17098         (scop_detection::harmful_loop_in_region): Free dom and loops.
17099         (scop_detection::loop_body_is_valid_scop): Free bbs.
17101 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17102             Sebastian Pop  <s.pop@samsung.com>
17104         * graphite-scop-detection.c (record_loop_in_sese): New.
17105         (gather_bbs::before_dom_children): Call record_loop_in_sese.
17106         (build_scops): Remove call to build_sese_loop_nests.
17107         * sese.c (sese_record_loop): Remove.
17108         (build_sese_loop_nests): Remove.
17109         (new_sese_info): Remove region->loops.
17110         (free_sese_info): Same.
17111         * sese.h (sese_contains_loop): Same.
17112         (build_sese_loop_nests): Remove.
17113         (sese_contains_loop): Remove.
17115 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17116             Sebastian Pop  <s.pop@samsung.com>
17118         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17119         loop_is_valid_in_scop.
17120         (scop_detection::harmful_stmt_in_region): Renamed
17121         harmful_loop_in_region.
17122         Call loop_is_valid_in_scop.
17124 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17125             Sebastian Pop  <s.pop@samsung.com>
17127         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17128         isl_ast_node_mark.
17130 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17131             Sebastian Pop  <s.pop@samsung.com>
17133         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17134         * graphite.h (struct poly_bb): Remove field is_reduction.
17135         (PBB_IS_REDUCTION): Remove.
17137 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17138             Sebastian Pop  <s.pop@samsung.com>
17140         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17141         (add_pdr_constraints): Same.
17142         (scop_get_reads): Same.
17143         (scop_get_must_writes): Same.
17144         (scop_get_may_writes): Same.
17145         (scop_get_original_schedule): Same.
17146         (extend_schedule): Same.
17147         (apply_schedule_on_deps): Same.
17148         (carries_deps): Same.
17149         (compute_deps): Same.
17150         (scop_get_dependences): Same.
17151         * graphite-isl-ast-to-gimple.c
17152         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17153         * graphite-optimize-isl.c (get_schedule_for_band): Same.
17154         (get_schedule_for_band_list): Same.
17155         (get_schedule_map): Same.
17156         (apply_schedule_map_to_scop): Same.
17157         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17158         (build_loop_iteration_domains): Same.
17159         (add_condition_to_pbb): Same.
17160         (add_param_constraints): Same.
17161         (pdr_add_memory_accesses): Same.
17162         (pdr_add_data_dimensions): Same.
17164 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17166         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17167         requirements.
17169 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17171         * common.opt (feliminate-dwarf2-dups): Replace references to
17172         "DWARF 2" with just "DWARF".
17173         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17174         * doc/extend.texi: Likewise.
17175         * doc/cpp.texi: Likewise.
17176         * doc/invoke.texi: Likewise.
17177         (Option Summary): Add -gdwarf to list of Debugging Options.
17178         (Debugging Options): Document -gdwarf.
17179         * doc/contrib.texi: Spell "DWARF" like that.
17181 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17183         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17184         warning.  Fix up formatting.
17186         PR middle-end/67653
17187         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17188         attempt to mark memory input operand addressable and
17189         call prepare_gimple_addressable in that case.  Don't adjust
17190         input_location for diagnostics, use error_at instead.
17192 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
17194         * config/rs6000/ppc-auxv.h: New file.
17195         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17196         (cpu_is): Likewise.
17197         (cpu_supports): Likewise.
17198         * config/rs6000/rs6000.c: include "ppc-auxv.h".
17199         (cpu_is_info): New variable.
17200         (cpu_supports_info): Likewise.
17201         (tcb_verification_symbol): Likewise.
17202         (cpu_builtin_p): Likewise.
17203         (cpu_expand_builtin): New function.
17204         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17205         (rs6000_init_builtins): Likewise.
17206         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17207         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17208         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17209         * configure: Regenerate.
17210         * config.in: Likewise.
17211         * doc/extend.texi (PowerPC Built-in Functions): Document
17212         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17214 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
17216         PR target/68609
17217         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17218         domain check.
17219         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17220         for V4SFmode.
17222 2016-01-20  Richard Henderson  <rth@redhat.com>
17224         PR bootstrap/69343
17225         PR bootstrap/69339
17226         PR tree-opt/68964
17227         Revert:
17228         * tree.c (tm_define_builtin): New.
17229         (find_tm_vector_type): New.
17230         (build_tm_vector_builtins): New.
17231         (build_common_builtin_nodes): Call it.
17233 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
17235         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17236         (arm_fp_ok): Likewise.
17237         (arm_fp): Likewise.
17238         (arm_crypto): Likewise.
17240 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
17241             Richard Biener  <rguenther@suse.de>
17243         PR tree-optimization/69328
17244         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17245         vectors have same number of elements.
17246         (vectorizable_condition): Fix masked version recognition.
17248 2016-01-20  Richard Biener  <rguenther@suse.de>
17250         PR tree-optimization/69345
17251         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17252         (VN_INFO_PTR_INFO): Likewise.
17253         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17254         info when it is equal between non-dominating SSA names.
17255         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17256         Make sure to look at original SSA infos.
17258 2016-01-20  Jeff Law  <law@redhat.com>
17260         PR target/25114
17261         * config/m68k/predicates.md (pow2_m1_operand): New predicate
17262         extracted from ...
17263         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17264         (pc_or_label_operand): New predicate.
17265         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17266         tests for small integers that are 2^n - 1.
17268 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
17270         * doc/invoke.texi (Options Summary): Add '.' after @xref.
17272 2016-01-19  Jeff Law  <law@redhat.com>
17274         PR middle-end/69347
17275         * tree-ssa-threadbackwards.c
17276         (fsm_find_control_statement_thread_paths): Do not try to lookup
17277         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17279 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
17281         * doc/lto.texi: Remove text that says only Gold has linker plugin
17282         support.
17284 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
17286         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17287         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17288         the DIE accordingly.
17289         (modified_type_die): Add REVERSE parameter and pass it recursively,
17290         as well as to base_type_die.  Adjust presence check accordingly.
17291         (base_type_for_mode): Adjust call to modified_type_die.
17292         (add_type_attribute): Add REVERSE parameter and pass it to
17293         modified_type_die.
17294         (generic_parameter_die): Adjust call to add_type_attribute.
17295         (add_scalar_info): Likewise.
17296         (add_subscript_info): Likewise.
17297         (gen_array_type_die): Likewise.
17298         (gen_descr_array_type_die): Likewise.
17299         (gen_entry_point_die): Likewise.
17300         (gen_enumeration_type_die): Likewise.
17301         (gen_formal_parameter_die): Likewise.
17302         (gen_subprogram_die): Likewise.
17303         (gen_variable_die ): Likewise.
17304         (gen_const_die): Likewise.
17305         (gen_field_die): Likewise.
17306         (gen_pointer_type_die): Likewise.
17307         (gen_reference_type_die): Likewise.
17308         (gen_ptr_to_mbr_type_die): Likewise.
17309         (gen_inheritance_die): Likewise.
17310         (gen_subroutine_type_die): Likewise.
17311         (gen_typedef_die): Likewise.
17312         (force_type_die): Adjust call to modified_type_die.
17314 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
17316         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17317         flow throughout the file.  Fix broken link to Objective-C 2.0
17318         documentation.
17319         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17320         errors.
17322 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17324         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17326 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17328         PR ipa/66223
17329         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17330         (maybe_record_node): Record cxa_pure_virtual as the only possible
17331         target if there are not ohter candidates.
17332         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17334 2016-01-19  Richard Biener  <rguenther@suse.de>
17336         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17337         (get_memory_order): Likewise.
17339 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
17341         * tree-vect-stmts.c (vectorizable_store): Check
17342         rhs vectype.
17344 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
17346         PR jit/68446
17347         * gcc.c (driver::decode_argv): Add call to
17348         init_opts_obstack before init_options_struct.
17349         * opts.c (init_opts_obstack): Remove idempotency.
17350         (init_options_struct): Replace call to init_opts_obstack
17351         with a gcc_assert to verify that it has already been called.
17352         * toplev.c (toplev::main): Add call to init_opts_obstack before
17353         calls to init_options_struct.
17354         (toplev::finalize): Move cleanup of opts_obstack next to
17355         cleanup of save_decoded_options, clearing the latter, and
17356         save_decoded_options_count.
17358 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17360         PR target/69135
17361         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17362         attribute to unconditional.  Remove %? from output template.
17364 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17365             Jiong Wang  <jiong.wang@arm.com>
17367         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17368         generated from different expand order.
17370 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17372         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17373         Add support for CCMP costing.
17375 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17377         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17378         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17379         (fccmpe<mode>): Likewise.
17380         (fcmp): Rename to fcmp and globalize pattern.
17381         (fcmpe): Likewise.
17382         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17383         (aarch64_gen_ccmp_next): Add FP support.
17385 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17387         * target.def (gen_ccmp_first): Update documentation.
17388         (gen_ccmp_next): Likewise.
17389         * doc/tm.texi (gen_ccmp_first): Update documentation.
17390         (gen_ccmp_next): Likewise.
17391         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17392         expand_ccmp_expr_1.  Improve comments.
17393         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17394         (ccmp_ior<mode>): Remove pattern.
17395         (cmp<mode>): Remove expand.
17396         (cmp): Globalize pattern.
17397         (cstorecc4): Use cc_register.
17398         (mov<mode>cc): Remove ccmp_cc_register check.
17399         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17400         Simplify after removal of CC_DNE/* modes.
17401         (aarch64_ccmp_mode_to_code): Remove.
17402         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
17403         In 'k' case use integer as condition.
17404         (aarch64_nzcv_codes): Remove inverted cases.
17405         (aarch64_code_to_ccmode): Remove.
17406         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
17407         comparison with CC register to be used in folowing CCMP/branch/CSEL.
17408         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17409         pattern.  Return the comparison with CC register.  Invert conditions
17410         when bitcode is OR.
17411         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17412         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17414 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17416         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17417         instrumented_version.
17419 2016-01-19  Richard Biener  <rguenther@suse.de>
17421         PR tree-optimization/69336
17422         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17423         handled components with get_ref_base_and_extent.
17424         (equal_mem_array_ref_p): Adjust.
17426 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17428         PR debug/65779
17429         * shrink-wrap.c: Include valtrack.h.
17430         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
17431         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17432         in between insn and where it will be moved to.  Call
17433         dead_debug_insert_temp.
17434         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
17435         first and dead_debug_local_finish at the end.
17436         For uses and defs bitmap, handle all regs in between REGNO and
17437         END_REGNO, not just the first one.
17439 2016-01-19  Richard Biener  <rguenther@suse.de>
17441         PR tree-optimization/69352
17442         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17443         (equal_mem_array_ref_p): Constrain size and max size properly.
17444         Compare the reverse flag.
17446 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
17448         * ira.c (ira): Update regstat data if we deleted insns.
17450 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17452         PR rtl-optimization/68955
17453         PR rtl-optimization/64557
17454         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17455         here.  Fix up formatting.
17456         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17458 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17460         PR lto/69133
17461         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17462         assume that the node has body.
17463         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17464         check.
17466 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17468         * lto-streamer-out.c (lto_output): Do not stream instrumentation
17469         thunks.
17471 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17473         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17474         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17476 2016-01-19  Martin Jambor  <mjambor@suse.cz>
17477             Martin Liska  <mliska@suse.cz>
17478             Michael Matz  <matz@suse.de>
17480         * Makefile.in (OBJS): Add new source files.
17481         (GTFILES): Add hsa.c.
17482         * common.opt (disable_hsa): New variable.
17483         (-Whsa): New warning.
17484         * config.in (ENABLE_HSA): New.
17485         * configure.ac: Treat hsa differently from other accelerators.
17486         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17487         $enable_offloading.
17488         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17489         * doc/install.texi (Configuration): Document --with-hsa-runtime,
17490         --with-hsa-runtime-include, --with-hsa-runtime-lib and
17491         --with-hsa-kmt-lib.
17492         * doc/invoke.texi (-Whsa): Document.
17493         (hsa-gen-debug-stores): Likewise.
17494         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17495         to invoke offload compiler for hsa acclerator.
17496         * opts.c (common_handle_option): Determine whether HSA offloading
17497         should be performed.
17498         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17499         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17500         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17501         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17502         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17503         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17504         GF_OMP_FOR_KIND_GRID_LOOP.
17505         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17506         (pp_gimple_stmt_1): Likewise.
17507         * gimple-walk.c (walk_gimple_stmt): Likewise.
17508         * gimple.c (gimple_build_omp_grid_body): New function.
17509         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17510         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17511         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17512         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17513         GF_OMP_TEAMS_GRID_PHONY.
17514         (gimple_statement_omp_single_layout): Updated comments.
17515         (gimple_build_omp_grid_body): New function.
17516         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17517         (gimple_omp_for_grid_phony): New function.
17518         (gimple_omp_for_set_grid_phony): Likewise.
17519         (gimple_omp_parallel_grid_phony): Likewise.
17520         (gimple_omp_parallel_set_grid_phony): Likewise.
17521         (gimple_omp_teams_grid_phony): Likewise.
17522         (gimple_omp_teams_set_grid_phony): Likewise.
17523         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17524         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17525         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17526         (BUILT_IN_GOMP_TARGET): Updated type.
17527         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17528         (adjust_for_condition): New function.
17529         (get_omp_for_step_from_incr): Likewise.
17530         (extract_omp_for_data): Moved parts to adjust_for_condition and
17531         get_omp_for_step_from_incr.
17532         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17533         (fixup_child_record_type): Bail out if receiver_decl is NULL.
17534         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17535         (scan_omp_parallel): Do not create child functions for phony
17536         constructs.
17537         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17538         (scan_omp_1_op): Checking assert we are not remapping to
17539         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
17540         (parallel_needs_hsa_kernel_p): New function.
17541         (expand_parallel_call): Register apprpriate parallel child
17542         functions as HSA kernels.
17543         (grid_launch_attributes_trees): New type.
17544         (grid_attr_trees): New variable.
17545         (grid_create_kernel_launch_attr_types): New function.
17546         (grid_insert_store_range_dim): Likewise.
17547         (grid_get_kernel_launch_attributes): Likewise.
17548         (get_target_argument_identifier_1): Likewise.
17549         (get_target_argument_identifier): Likewise.
17550         (get_target_argument_value): Likewise.
17551         (push_target_argument_according_to_value): Likewise.
17552         (get_target_arguments): Likewise.
17553         (expand_omp_target): Call get_target_arguments instead of looking
17554         up for teams and thread limit.
17555         (grid_expand_omp_for_loop): New function.
17556         (grid_arg_decl_map): New type.
17557         (grid_remap_kernel_arg_accesses): New function.
17558         (grid_expand_target_kernel_body): New function.
17559         (expand_omp): Call it.
17560         (lower_omp_for): Do not emit phony constructs.
17561         (lower_omp_taskreg): Do not emit phony constructs but create for them
17562         a temporary variable receiver_decl.
17563         (lower_omp_taskreg): Do not emit phony constructs.
17564         (lower_omp_teams): Likewise.
17565         (lower_omp_grid_body): New function.
17566         (lower_omp_1): Call it.
17567         (grid_reg_assignment_to_local_var_p): New function.
17568         (grid_seq_only_contains_local_assignments): Likewise.
17569         (grid_find_single_omp_among_assignments_1): Likewise.
17570         (grid_find_single_omp_among_assignments): Likewise.
17571         (grid_find_ungridifiable_statement): Likewise.
17572         (grid_target_follows_gridifiable_pattern): Likewise.
17573         (grid_remap_prebody_decls): Likewise.
17574         (grid_copy_leading_local_assignments): Likewise.
17575         (grid_process_kernel_body_copy): Likewise.
17576         (grid_attempt_target_gridification): Likewise.
17577         (grid_gridify_all_targets_stmt): Likewise.
17578         (grid_gridify_all_targets): Likewise.
17579         (execute_lower_omp): Call grid_gridify_all_targets.
17580         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17581         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17582         (tree_omp_clause): Added union field dimension.
17583         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17584         * tree.c (omp_clause_num_ops): Added number of arguments of
17585         OMP_CLAUSE__GRIDDIM_.
17586         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17587         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17588         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17589         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17590         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17591         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17592         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17593         * tree-pass.h (make_pass_gen_hsail): Declare.
17594         (make_pass_ipa_hsa): Likewise.
17595         * ipa-hsa.c: New file.
17596         * lto-section-in.c (lto_section_name): Add hsa section name.
17597         * lto-streamer.h (lto_section_type): Add hsa section.
17598         * timevar.def (TV_IPA_HSA): New.
17599         * hsa-brig-format.h: New file.
17600         * hsa-brig.c: New file.
17601         * hsa-dump.c: Likewise.
17602         * hsa-gen.c: Likewise.
17603         * hsa.c: Likewise.
17604         * hsa.h: Likewise.
17605         * toplev.c (compile_file): Call hsa_output_brig.
17606         * hsa-regalloc.c: New file.
17608 2016-01-18  Jeff Law  <law@redhat.com>
17610         PR tree-optimization/69320
17611         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17612         ranged object, do nothing if the RHS constant is not [0..1].
17613         (optimize_stmt): Comparing a boolean ranged object against a
17614         constant outside [0..1] results in a compile-time constant.
17616         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17617         test.
17619 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
17621         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17622         (Option Summary): Update to reflect new section and moved options.
17623         (C++ Dialect Options): Move -fstats to new section.
17624         (Debugging Options): Move all dump, statistics, and other GCC
17625         developer options to new section.  Rewrite section introduction
17626         and re-order remaining options to put the more basic ones first.
17627         (Optimization Options): Move -fira-verbose and -flto-report* to
17628         new section.
17629         (Developer Options): New section incorporating moved options.
17630         * doc/cppopts.texi (-dM): Update cross-reference.
17632 2016-01-18  Richard Henderson  <rth@redhat.com>
17634         PR target/69176
17635         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17636         operands to pseudo only if CSE is expected.  Split long immediate
17637         operands only after reload, and for the stack pointer.
17638         (*add<GPI>3_pluslong): Remove.
17639         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17640         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
17641         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17642         (*add<GPI>3 peepholes): New.
17643         (*add<GPI>3 splitters): New.
17644         * config/aarch64/constraints.md (Upl): New.
17645         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17647 2016-01-18  Richard Biener  <rguenther@suse.de>
17649         PR tree-optimization/69297
17650         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17651         stmt at most once.
17652         (vect_bb_vectorization_profitable_p): Clear visited flag again.
17654 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17656         PR middle-end/68542
17657         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17658         of mixind vector and scalar types.
17659         (fold_relational_const): Add handling of vector
17660         comparison with boolean result.
17661         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17662         comparison of vector operands with boolean result for EQ/NE only.
17663         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17664         (verify_gimple_cond): Likewise.
17665         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17666         valid type of VAL.
17668 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
17670         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17671         !TARGET_OCTEON.
17673 2016-01-18  Richard Biener  <rguenther@suse.de>
17675         PR middle-end/69308
17676         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17678 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17680         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17682 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17684         * omp-low.c (set_oacc_fn_attrib): Make extern.
17685         * omp-low.h (set_oacc_fn_attrib): Declare.
17686         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17687         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17688         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17689         Add and handle function parameter oacc_kernels_p.
17690         (find_reduc_addr, get_omp_data_i_param): New function.
17691         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17692         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17693         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17694         Calculate dominance info.  Skip loops that are not in a kernels region
17695         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
17696         (pass_parallelize_loops::execute): Call parallelize_loops with
17697         oacc_kernels_p argument.
17698         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17699         New member function.
17700         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17701         * passes.def: Add argument to pass_parallelize_loops instantation.
17703 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17705         * tree-parloops.c (pass_parallelize_loops::execute): Allow
17706         pass_parallelize_loops to be run outside the loop pipeline.
17708 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17710         * tree-scalar-evolution.c (follow_copies_to_constant): New.
17711         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17713 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17715         PR target/63679
17716         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17717         using get_ref_base_and_extent.
17718         (equal_mem_array_ref_p): New.
17719         (hashable_expr_equal_p): Add call to previous.
17721 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17723         PR target/63679
17724         * tree-sra.c (disqualified_constants, constant_decl_p): New.
17725         (sra_initialize): Allocate disqualified_constants.
17726         (sra_deinitialize): Free disqualified_constants.
17727         (disqualify_candidate): Update disqualified_constants when appropriate.
17728         (create_access): Scan for constant-pool entries as we go along.
17729         (scalarizable_type_p): Add check against type_contains_placeholder_p.
17730         (maybe_add_sra_candidate): Allow constant-pool entries.
17731         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17732         (initialize_constant_pool_replacements): New.
17733         (sra_modify_assign): Avoid mangling assignments created by previous,
17734         and don't generate writes into constant pool.
17735         (sra_modify_function_body): Call initialize_constant_pool_replacements.
17737 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
17739         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17740         andnot instruction.
17741         (scalar_chain::convert_op): Likewise.
17742         * config/i386/i386.md (*andndi3_doubleword): New.
17744 2016-01-18  Richard Biener  <rguenther@suse.de>
17746         PR tree-optimization/69170
17747         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17748         building a vector from scalar results of a pattern stmt.
17750 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
17752         * haifa-sched.c (autopref_multipass_init): Work around
17753         -Wmaybe-uninitialized warning.
17755 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17757         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17758         against the constant 0.
17760 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17762         PR tree-optimization/68799
17763         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17764         look up phi candidates in the statement-candidate map.
17765         (phi_add_costs): Likewise.
17766         (record_phi_increments): Likewise.
17767         (phi_incr_cost): Likewise.
17768         (ncd_with_phi): Likewise.
17769         (all_phi_incrs_profitable): Likewise.
17771 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
17773         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17774         -Wmaybe-uninitialized warning.
17776 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
17778         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17779         (Option Summary): Update to reflect new section and moved options.
17780         (C++ Dialect Options): Move -fvtable-verify and related options.
17781         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17782         and profiling-related options.
17783         (Optimization Options): Move profile generation options and
17784         -fstack-protector and related options.
17785         (Instrumentation Options): New section incorporating moved options.
17786         (Code Generation Options): Move -finstrument-functions and
17787         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17789 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17791         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17793 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17795         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
17797 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
17799         * hash-table.h (hash_table::empty): Turn into an inline wrapper
17800         that checks whether the table is already empty.  Rename the
17801         original implementation to...
17802         (hash_table::empty_slot): ...this new private function.
17804 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
17806         PR diagnostic/68899
17807         * diagnostic-show-locus.c (layout::print_source_line): Move x
17808         offset of line until after call to
17809         get_line_width_without_trailing_whitespace.
17811 2016-01-15  Jeff Law  <law@redhat.com>
17813         PR tree-optimization/69270
17814         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17815         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
17816         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17817         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17818         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17819         ssa_name_has_boolean_range and constant_boolean_node.
17821 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17823         PR rtl-optimization/69030
17824         * lra-spills.c (remove_pseudos): Check nrefs and make the function
17825         returning bool.
17826         (spill_pseudos): Delete debug insn for dead pseudo.
17827         (lra_spill): Initiate spill_hard_reg and slots memory separately.
17829 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
17831         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17832         New.
17833         (TYPES_UNOPUS): Likewise.
17834         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17835         builtin type, from UNOP to UNOPUS.
17836         (lbtruncuv4sf): Likewise.
17837         (lbtruncuv2df): Likewise.
17838         (lrounduv2sf): Likewise.
17839         (lrounduv4sf): Likewise.
17840         (lrounduv2df): Likewise.
17841         (lroundusf): Likewise.
17842         (lroundusf): Likewise.
17843         (lceiluv2sf): Likewise.
17844         (lceiluv4sf): Likewise.
17845         (lceiluv2df): Likewise.
17846         (lceilusf): Likewise.
17847         (lceiludf): Likewise.
17848         (lflooruv2sf): Likewise.
17849         (lflooruv4sf): Likewise.
17850         (lflooruv2df): Likewise.
17851         (lfloorusf): Likewise.
17852         (lfloorudf): Likewise.
17853         (lfrintnuv2sf): Likewise.
17854         (lfrintnuv4sf): Likewise.
17855         (lfrintnuv2df): Likewise.
17856         (lfrintnusf): Likewise.
17857         (lfrintnudf): Likewise.
17858         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
17859         conversion.
17860         (vcvtq_u32_f32): Likewise.
17861         (vcvtq_u64_f64): Likewise.
17862         (vcvta_u32_f32): Likewise.
17863         (vcvtaq_u32_f32): Likewise.
17864         (vcvtaq_u64_f64): Likewise.
17865         (vcvtm_u32_f32): Likewise.
17866         (vcvtmq_u32_f32): Likewise.
17867         (vcvtmq_u64_f64): Likewise.
17868         (vcvtn_u32_f32): Likwise.
17869         (vcvtnq_u32_f32): Likewise.
17870         (vcvtnq_u64_f64): Likewise.
17871         (vcvtp_u32_f32): Likewise.
17872         (vcvtpq_u32_f32): Likewise.
17873         (vcvtpq_u64_f64): Likewise.
17874         (vcvtmd_u64_f64): Likewise.
17875         (vcvtms_u32_f32): Likewise.
17876         (vcvtad_u64_f64): Likewise.
17877         (vcvtas_u32_f32): Likewise.
17878         (vcvtnd_u64_f64): Likewise.
17879         (vcvtns_u32_f32): Likewise.
17880         (vcvtpd_u64_f64): Likewise.
17881         (vcvtps_u32_f32): Likewise.
17883 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17885         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
17886         CSEL of zero_extended registers.
17888 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17890         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17891         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
17893 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17895         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
17896         false when argument string is not found in the attributes table
17897         at all.
17899 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
17901         PR target/68609
17902         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
17903         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
17904         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
17905         precision estimate.
17907 2016-01-15  Richard Biener  <rguenther@suse.de>
17909         PR tree-optimization/66856
17910         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
17911         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
17912         (vect_create_new_slp_node): Increment stmt reference count.
17913         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
17914         an SLP tree before swapping operands.
17915         (vect_build_slp_tree): Likewise.
17916         (destroy_bb_vec_info): Free stmt info after SLP instances.
17917         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
17918         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
17919         (STMT_VINFO_NUM_SLP_USES): New macro.
17921 2016-01-15  Richard Biener  <rguenther@suse.de>
17923         PR debug/69137
17924         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
17925         (add_linkage_name): ... here.
17926         (gen_typedef_die): Use add_linkage_name_raw instead of
17927         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
17928         if necessary.
17930 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
17932         * gimplify.c (oacc_default_clause): Decode reference and pointer
17933         types for both kernels and parallel regions.
17935 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
17937         PR middle-end/69246
17938         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
17940 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17942         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
17943         (convert_scalars_to_vector): Likewise.
17945 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
17947         * doc/extend.texi (Type Traits): Fix grammar.
17949 2016-01-15  Martin Jambor  <mjambor@suse.cz>
17951         * tree-inline.c (remap_decl): Use existing dclarations if
17952         remapping a type and prevent_decl_creation_for_types.
17953         (replace_locals_stmt): Do an initial remapping of non-VLA typed
17954         decls first.  Do real remapping with
17955         prevent_decl_creation_for_types set.
17956         * tree-inline.h (copy_body_data): New field
17957         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
17958         padding.
17960 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17962         * config/s390/s390.opt (mmvcle): More verbose help text.
17964 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17966         * config/s390/s390.opt: Add period to -mzvector option text.
17968 2016-01-15  Richard Biener  <rguenther@suse.de>
17970         PR tree-optimization/68961
17971         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
17972         of invariants in stores again.
17974 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17976         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
17978 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
17980         * config/i386/i386.c (ix86_expand_branch): Don't split
17981         DI mode xor instruction to SI mode.
17983 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17985         PR ipa/68148
17986         * ipa-icf.c (sem_function::merge): Virtual functions may become
17987         reachable even if they address is not taken and there are no
17988         idrect calls.
17990 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
17992         * lto-streamer-out.c (subtract_estimated_size): New function.
17993         (get_symbol_initial_value): Use it.
17995 2016-01-15  Christian Bruel  <christian.bruel@st.com>
17997         PR target/65837
17998         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
17999         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18000         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18001         use add_builtin_function_ext_scope instead of add_builtin_function.
18002         (neon_set_p, neon_crypto_set_p): Remove.
18003         (arm_init_builtins): Always call arm_init_neon_builtins and
18004         arm_init_crypto_builtins.
18005         (arm_expand_builtin): Check that builtins are allowed for the arch.
18006         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18007         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18008         arm_init_neon_builtins call.
18010 2016-01-15  Richard Biener  <rguenther@suse.de>
18012         PR tree-optimization/69117
18013         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18014         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18015         of the leader conservatively.
18016         (free_scc_vn): Restore original SSA name infos.
18018 2016-01-14  Jeff Law  <law@redhat.com>
18020         PR tree-optimization/69270
18021         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18022         single bit of precision, verify it's also unsigned.
18023         (record_edge_info): Use constant_boolean_node rather than fold_convert
18024         to convert boolean_true/boolean_false to the right type.
18026 2016-01-14  Richard Henderson  <rth@redhat.com>
18028         PR rtl-opt/69014
18029         * loop-doloop.c (record_reg_sets): New.
18030         (doloop_optimize): Reject the transform if the sequence
18031         clobbers registers live at the end of the loop block.
18032         (doloop_optimize_loops): Enable df_live if needed.
18034 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18036         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18037         * config/rs6000/rs6000.c: Likewise.
18038         * config/rs6000/rs6000.h: Likewise.
18039         * config/rs6000/rs6000.md: Likewise.
18040         * doc/extend.texi: Likewsie.
18042 2016-01-14  Jeff Law  <law@redhat.com>
18044         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18045         typo.
18047 2016-01-14  Richard Henderson  <rth@redhat.com>
18049         PR c/69272
18050         PR tree-opt/68964
18051         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18052         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18053         instead of builtin_decl_declared_p to test for declaration.
18055 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
18057         * doc/loop.texi (Loop Analysis and Representation): Document
18058         loop_depth function.
18060 2016-01-14  Tom de Vries  <tom@codesourcery.com>
18062         PR tree-optimization/68773
18063         * omp-low.c (expand_omp_target): Don't set force_output.
18064         * varpool.c (varpool_node::get_create): Same.
18065         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18066         offload_funcs with force_output.
18068 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18070         PR debug/69244
18071         * lra-eliminations.c (move_plus_up): Don't change anything if either
18072         the outer or inner subreg mode is not MODE_INT.
18073         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18074         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18076 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18078         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18079         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18080         reduc_uplus_@var{m}): Remove.
18081         * expr.c (expand_expr_real_2): Remove expansion path for
18082         reduc_[us](min|max|plus) optabs.
18083         * optabs-tree.c (scalar_reduc_to_vector): Remove.
18084         * optabs-tree.h (scalar_reduc_to_vector): Remove.
18085         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18086         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18087         * tree-vect-loop.c (vectorizable_reduction): Remove test for
18088         reduc_[us](min|max|plus) optabs.
18090 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18092         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18093         (reduc_plus_scal_v2sf): New.
18094         (reduc_smax_v2sf): Rename to...
18095         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18096         (reduc_smin_v2sf): Rename to...
18097         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18099 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
18101         * alias.c (compare_base_symbol_refs): New function.
18102         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18103         it.
18105 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18107         PR middle-end/68146
18108         PR tree-optimization/69155
18109         * tree-complex.c: Include cfganal.h.
18110         (phis_to_revisit): New variable.
18111         (extract_component): Add phiarg_p argument.  Assert that returned
18112         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18113         (update_phi_components): Partly rewrite to use loop over real/imag
18114         components instead of code duplication.  If extract_component returns
18115         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18116         create_tmp_reg into the PHI node instead, and mention the phi triplet
18117         in phis_to_revisit.
18118         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
18119         in phis_to_revisit at the end.
18121 2016-01-14  Richard Biener  <rguenther@suse.de>
18123         PR tree-optimization/68060
18124         * tree-vect-loop.c (vect_is_simple_reduction): Check the
18125         outer loop reduction is only used in the inner loop before
18126         detecting a double reduction.
18128 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18130         PR target/68269
18131         * combine.c (expand_field_assignment): Punt if compute_mode is
18132         unsupported scalar mode.
18134 2016-01-14  Richard Biener  <rguenther@suse.de>
18136         PR tree-optimization/66856
18137         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18138         SLP node only if it built successfully.
18139         (vect_analyze_slp_instance): Adjust.
18141 2016-01-14  Jeff Law  <law@redhat.com>
18143         PR tree-optimization/69270
18144         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18145         (record_edge_info): Use it.  Convert boolean_{true,false}_node
18146         to the type of op0.
18148 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
18150         PR ipa/66487
18151         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18152         use block_ultimate_origin
18153         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18155 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18157         * doc/invoke.texi (Submodel Options): Rename section to
18158         "Machine-Dependent Options" to better reflect its content.
18159         Rewrite introductory text to remove archaic CPU names.
18160         Update references.
18162 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18164         * doc/invoke.texi (Code Gen Options): Move section up in file,
18165         before target-specific options.  Update menu and option summary
18166         to reflect the new section ordering.
18168 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18170         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18171         (C++ Dialect Options): Add cross-reference to -std option.
18172         * doc/standards.texi (C++ Language): Document C++14 support.
18174 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18176         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18177         for pack/unpack functions for __ibm128.
18178         (PACK_IF): Likewise.
18179         (UNPACK_IF): Likewise.
18181         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18182         support for __ibm128 pack/unpack functions.
18183         (rs6000_invalid_builtin): Likewise.
18184         (rs6000_init_builtins): Likewise.
18185         (rs6000_opt_masks): Likewise.
18187         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18188         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18189         functions
18190         (RS6000_BTM_COMMON): Likewise.
18192         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18193         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18194         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18195         128-bit floating point.  Add support for the double values to be
18196         in Altivec registers for TF/IF packing and unpacking, but restrict
18197         TD packing sub-fields to be FPR registers.  Don't allow overlapped
18198         register support for packing.  Allow pack inputs to be memory
18199         locations.  Don't build generator functions for unpack<mode>_dm
18200         and unpack<mode>_nodm.
18201         (unpack<mode>_dm): Likewise.
18202         (unpack<mode>_nodm): Likewise.
18203         (pack<mode>): Likewise.
18205         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18206         built-in functions to pack/unpack explicit __ibm128 values.
18207         (__builtin_unpack_ibm128): Likewise.
18209         * doc/extend.texi (PowerPC Built-in Functions): Document
18210         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18212 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
18214         PR c/66208
18215         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18216         Add new arg loc and pass it down as context.
18217         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18218         to the location to use for the warning.
18219         (check_function_arguments): New arg loc.  All callers changed.  Pass
18220         it to check_function_nonnull.
18221         * c-common.h (check_function_arguments): Adjust declaration.
18223 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
18225         PR tree-optimization/69156
18226         * gimple.c (validate_type): Removed.
18227         (gimple_builtin_call_types_compatible_p): Use
18228         useless_type_conversion_p instead of validate_type.
18229         * value-prof.c (gimple_stringop_fixed_value): Fold
18230         icall_size to correct type.
18232 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18234         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18235         effects.
18237 2016-01-13  Richard Henderson  <rth@redhat.com>
18239         PR tree-opt/68964
18240         * target.def (builtin_tm_load, builtin_tm_store): Remove.
18241         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18242         (ix86_builtin_tm_store): Remove.
18243         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18244         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18245         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18246         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18247         * doc/tm.texi: Rebuild.
18249         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18250         (BUILT_IN_TM_MEMCPY_RTWN): New.
18251         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18252         fallback from vector to integer helpers.
18253         (build_tm_load): Handle vector types directly, instead of
18254         via target hook.
18255         (build_tm_store): Likewise.
18256         (expand_assign_tm): Prepare for register types not handled by
18257         the above.  Copy them to memory and use memcpy.
18258         * tree.c (tm_define_builtin): New.
18259         (find_tm_vector_type): New.
18260         (build_tm_vector_builtins): New.
18261         (build_common_builtin_nodes): Call it.
18263 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
18265         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18266         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
18268 2016-01-13  Tom de Vries  <tom@codesourcery.com>
18270         PR tree-optimization/69169
18271         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18272         handled_struct_type param.
18273         (create_variable_info_for, intra_create_variable_infos): Call
18274         create_variable_info_for_1 with extra arg.
18276 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
18278         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18279         and "armv8.1-a+crc" entries.
18281 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
18283         PR target/69228
18284         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18285         Change first operand predicate from register_or_constm1_operand
18286         to register_operand.
18287         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18288         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18289         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18290         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18291         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18292         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18293         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18294         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18295         comparison with constm1_rtx from vec_prefetch_gen part.
18297 2016-01-13  Richard Biener  <rguenther@suse.de>
18299         PR tree-optimization/69013
18300         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18301         Exchange assert for a test.
18303 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18305         PR target/69247
18306         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18308 2016-01-13  Richard Biener  <rguenther@suse.de>
18310         PR tree-optimization/69242
18311         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18312         assert with a check.
18314 2016-01-13  Richard Biener  <rguenther@suse.de>
18316         PR tree-optimization/69186
18317         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18318         Properly guard vect_update_misalignment_for_peel call.
18320 2016-01-12  Jeff Law  <law@redhat.com>
18322         PR tree-optimization/pr67755
18323         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18324         "need_profile_correction".
18325         (thread_block_1): Initialize new field to false by default.  If we
18326         have multiple thread paths through a common joiner to different
18327         final targets, then set new field to true.
18328         (compute_path_counts): Only do count adjustment when it's really
18329         needed.
18331 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18333         * doc/invoke.texi (Spec Files): Move section down in file, past
18334         all command-line option descriptions.
18336 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18338         PR middle-end/54809
18339         * doc/gty.texi: Remove documentation of mark_hook.
18340         * gengtype.c (struct write_types_data): Remove code to support
18341         mark_hook attribute.
18342         (walk_type): Likewise.
18343         (write_func_for_structure): Likewise.
18345 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18347         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18348         Directory Options, and -specs= to Overall Options.
18349         (Overall Options): Adjust similarly.  Reorder to group related
18350         options together.  Make -specs= cross-reference the spec file details.
18351         (Directory Options): Adjust similarly.
18353 2016-01-12  Jeff Law  <law@redhat.com>
18355         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18357 2016-01-12  Olivier Hainque  <hainque@adacore.com>
18359         * gcc.c (spec_undefvar_allowed): New global.
18360         (process_command): Set to true when running for --version or --help,
18361         alone or together.
18362         (getenv_spec_function): When the variable is not defined, use the
18363         variable name as the variable value if we're allowed not to issue
18364         a fatal error.
18366 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
18368         PR tree-optimization/68911
18369         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18370         information computed for expression "init + nit * step".
18372 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18374         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
18375         about name of GCC executable.  Remove deleted node from menu.
18376         (Directory Options) <-B>: Remove cross-reference to deleted node.
18377         (Target Options): Delete section.
18379 2016-01-12  Christian Bruel  <christian.bruel@st.com>
18381         PR target/69180
18382         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18383         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18385 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
18387         PR target/69198
18388         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18389         aligned_mem is properly set for AVX512-VL floating point masked
18390         stores.
18392         PR target/69175
18393         * ifcvt.c (cond_exec_process_if_block): When removing the last
18394         insn from then_bb, remove also any possible barriers that follow it.
18396 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18398         PR target/68456
18399         PR target/69226
18400         * config/i386/iamcu.h (SIZE_TYPE): New macro.
18401         (PTRDIFF_TYPE): Likewise.
18402         (WCHAR_TYPE): Likewise.
18403         (WCHAR_TYPE_SIZE): Likewise.
18404         (STDINT_LONG32): Likewise.
18406 2016-01-12  Richard Biener  <rguenther@suse.de>
18408         PR tree-optimization/69053
18409         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18410         convert initial value for cond reductions.
18412 2016-01-12  Richard Biener  <rguenther@suse.de>
18414         PR tree-optimization/69007
18415         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18416         widen_sum after dot_prod and sad.
18418 2016-01-12  Richard Biener  <rguenther@suse.de>
18420         PR tree-optimization/69168
18421         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18422         pattern stmt SLP type.
18423         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18424         end up unused so cope with that case.
18426 2016-01-12  Richard Biener  <rguenther@suse.de>
18428         PR tree-optimization/69157
18429         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18430         stmts def type only during analyze phase.
18431         (vectorizable_call): Likewise.
18432         (vectorizable_simd_clone_call): Likewise.
18433         (vectorizable_conversion): Likewise.
18434         (vectorizable_assignment): Likewise.
18435         (vectorizable_shift): Likewise.
18436         (vectorizable_operation): Likewise.
18437         (vectorizable_store): Likewise.
18438         (vectorizable_load): Likewise.
18440 2016-01-12  Richard Biener  <rguenther@suse.de>
18442         PR tree-optimization/69174
18443         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18444         space.
18445         (vectorizable_load): Properly compute the number of loads needed
18446         for permuted strided SLP loads and do not spuriously assign
18447         to SLP_TREE_VEC_STMTS.
18449 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
18451         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18452         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18453         (MD_EXEC_PREFIX): Remove.
18454         (MD_STARTFILE_PREFIX) Removee.
18455         (FILE_NAME_ABSOLUTE_P): Remove.
18456         (CPP_SPEC): Do not read macros from sys/version.h.
18457         (LINK_COMMAND_SPEC): Remove.
18458         (LOCAL_INCLUDE_DIR): Remove.
18459         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18460         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18461         (POST_LINK_SPEC): Define to invoke stubify after linker
18462         (LIBSTDCXX): Remove define
18463         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18464         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18465         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18466         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18467         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18468         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18469         (i386_djgpp_asm_named_section): Add propotype of new procedure
18471         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18472         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18473         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18474         in config/i386/djgpp.h).
18475         (STANDARD_STARTFILE_PREFIX_2): Define identical to
18476         STANDARD_STARTFILE_PREFIX_1.
18477         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18478         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18479         installation errors.
18480         (MAX_OFILE_ALIGNMENT): Define to 128.
18481         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18483         * config/i386/djgpp.c: New file. Add implementation of
18484         i386_djgpp_asm_named_section.
18486         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18488         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18489         Add rule for building djgpp.o.
18491 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18493         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18494         (rtx_is_swappable_p): Reductions are swappable.
18495         (insn_is_swappable_p): V2DF reductions are swappable.
18497 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
18499         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18500         reloads for other unsupported memory operands.
18502 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18503             Jim Wilson  <jim.wilson@linaro.org>
18505         PR target/69194
18506         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18507         copy_to_mode_reg instead of force_reg.
18509 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18511         PR target/69225
18512         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18513         TARGET_80387 is true.
18515 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
18517         PR target/69071
18518         * lra-eliminations.c (move_plus_up): Only move plus up
18519         if subreg of the constant can be simplified into constant
18520         and use the simplified subreg of the constant instead of
18521         the original constant.
18523         * fold-const.c (fold_convertible_p): Don't return true
18524         for conversion of VECTOR_TYPE to same sized integral type.
18525         (fold_convert_loc): Fix up formatting.  Fold conversion of
18526         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18527         instead of NOP_EXPR.
18529         PR tree-optimization/69214
18530         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18531         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18532         Formatting fix.
18534         PR tree-optimization/69207
18535         * tree-vect-slp.c (vect_get_constant_vectors): For
18536         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18537         fold_convertible_p to vector_type's element type, and always
18538         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18540 2016-01-11  Richard Biener  <rguenther@suse.de>
18542         PR tree-optimization/69173
18543         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18544         fixup the cycle if all stmts are in a pattern.
18546 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
18548         PR middle-end/68999
18549         * alias.c (base_alias_check): Move check for addresses with
18550         alignment ANDs before the call for compare_base_decls.
18551         (memrefs_conflict_p): Return -1 for different decls
18552         that went through alignment adjustments.
18554 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18556         PR rtl-optimization/68796
18557         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18558         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18559         and QImode comparisons against zero with CC_NZmode.
18560         * config/aarch64/iterators.md (short_mask): New mode_attr.
18562 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18564         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18565         (<avx512>_store<mode>_mask): Likewise.
18567 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
18568             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18570         PR rtl-optimization/68841
18571         * ifcvt.c (struct noce_if_info): Add orig_x field.
18572         (bbs_ok_for_cmove_arith): Add to_rename parameter.
18573         Don't record conflicts on to_rename if it's present.
18574         Allow memory destinations in sets.
18575         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18576         blocks, passing orig_x to the checks.
18577         (noce_process_if_block): Set if_info->orig_x appropriately.
18579 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18581         PR tree-optimization/69069
18582         * tree-parloops.c (create_parallel_loop): Add missing phi args.
18584 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18586         PR rtl-optimization/68920
18587         * config/i386/i386.c (ix86_option_override_internal): Restrict number
18588         of conditional moves for  RTL if-conversion to 1 for
18589         TARGET_ONE_IF_CONV_INSN.
18590         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18591         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18592         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18593         parameter to restirct number of conditional moves for
18594         RTL if-conversion.
18595         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18596         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18597         conditionl moves.
18599 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
18601         PR bootstrap/69123
18602         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18603         onepart vars.  Fix typo in comment.  Fix reversed condition in
18604         unshare test.
18605         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18607         PR bootstrap/69123
18608         * var-tracking.c (dump_onepart_variable_differences): New.
18609         (dataflow_set_different): If a detailed dump is requested,
18610         delay early returns and dump differences between onepart
18611         variables present before and after, and added variables.
18613 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18615         PR target/69010
18616         * expr.c (expand_expr_real_1): For boolean vector constants
18617         with a scalar mode use const_scalar_mask_from_tree.
18618         (const_scalar_mask_from_tree): New.
18619         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18620         assigned to a mask type to handle constants.
18622 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18624         PR ipa/69044
18625         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18626         useless parameters if we cannot change function signature.
18628 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18630         PR ipa/66616
18631         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18632         flag.
18634 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18636         PR tree-optimization/69109
18637         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18638         latch with phi.
18640 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18642         PR tree-optimization/69108
18643         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18644         res is not used in a phi.
18646 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
18648         PR 67425
18649         * common.opt (frandom-seed): Fix parameter name.
18650         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18652 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18654         PR tree-optimization/69058
18655         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18656         not supported.
18658 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
18660         * config/arc/arc.opt (mdiv-rem): Add period to the end.
18661         (mcode-density): Likewise.
18663 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18665         PR tree-optimization/69062
18666         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18667         (parallelize_loops): Don't paralelize loop that has phi with address
18668         arg.
18670 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18672         PR tree-optimization/69039
18673         * tree-parloops.c (try_create_reduction_list): Only allow single exit
18674         phi for reduction.
18676 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
18678         PR middle-end/68743
18679         * match.pd: Require target has function_c99_misc before doing
18680         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18682 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
18684         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18685         use GMPINC.
18686         * configure: Regenerate.
18688 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
18690         PR middle-end/50865
18691         PR tree-optimization/69097
18692         * fold-const.h (expr_not_equal_to): New prototype.
18693         * fold-const.c: Include stringpool.h and tree-ssanames.h.
18694         (expr_not_equal_to): New function.
18695         * match.pd (X % -Y is the same as X % Y): Don't optimize
18696         unless X is known not to be equal to minimum or Y is known
18697         not to be equal to -1.
18698         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18699         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18700         (simplify_stmt_using_ranges): Adjust caller.
18701         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18702         substitute_and_fold.
18704 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
18706         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18707         w/o DECL_NAME.
18709 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18711         PR tree-optimization/69167
18712         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18713         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18714         ops[0] comparison.
18715         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18717 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18718             Richard Biener  <rguenther@suse.de>
18720         PR tree-optimization/68707
18721         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18722         instances that can be handled via vect_load_lanes.
18724 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
18726         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18727         if we can't determine address equivalence.
18728         * alias.c (compare_base_decl): Update for changed return value of
18729         symtab_node::equal_address_to.
18731 2016-01-08  Jason Merrill  <jason@redhat.com>
18733         PR c++/68983
18734         PR c++/67557
18735         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18736         * expr.c (store_field): Not here.
18737         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18738         call with TREE_ADDRESSABLE type.
18739         * tree-cfg.c (verify_gimple_call): Adjust.
18741 2016-01-08  Olivier Hainque  <hainque@adacore.com>
18743         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18744         libc_internal.
18746 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18748         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18749         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18750         (reduc_smin_v2sf): Rename to...
18751         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18752         (reduc_splus_v2sf): Rename to...
18753         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18755 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18757         PR tree-optimization/69162
18758         * gimplify.c (gimplify_va_arg_expr): Encode original type of
18759         valist argument in another argument.
18760         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
18761         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18762         to determine the va_list type, build a MEM_REF instead of
18763         build_fold_indirect_ref.
18765         PR tree-optimization/69172
18766         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18767         gimple_build.
18769 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18771         PR tree-optimization/67781
18772         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18773         and cmpnop in two steps: first the ones not accessed in original
18774         gimple expression in a endian independent way and then the ones not
18775         accessed in the final result in an endian-specific way.
18777 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18779         PR tree-optimization/69083
18780         * tree-vect-slp.c (vect_get_constant_vectors): For
18781         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18782         element type.  If op is fold_convertible_p to vector_type's element
18783         type, use NOP_EXPR instead of VCE.
18785 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
18787         PR rtl-optimization/67778
18788         PR rtl-optimization/68634
18789         PR rtl-optimization/68909
18790         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
18791         block from the stack until done with it.  Remove a superfluous
18792         bitmap set.  Remove a superfluous bitmap test.
18794 2016-01-07  Martin Sebor  <msebor@redhat.com>
18796         PR c/68966
18797         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18798         constraint on the type of arguments.
18800 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
18802         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18803         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18804         unaligned_access on the gcc_options set.
18805         * config/arm/arm.c (arm_option_override_internal): Use
18806         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18808 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18810         PR target/69140
18811         * config/i386/i386.c (ix86_frame_pointer_required): Enable
18812         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18814 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18816         Revert
18817         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18819         PR target/69140
18820         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18821         depending on frame_pointer_needed before remaining integer and SSE
18822         registers are saved.
18824 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18826         PR 1078
18827         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18829 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
18831         PR target/69171
18832         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18833         Use the "xBm" constraint.
18834         (float<sseintvecmodelower><mode>2<mask_name><round_name):
18835         Likewise.
18836         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18837         (sse_cvtsi2ssq<round_name>): Likewise.
18838         (sse_cvtss2si<round_name>): Likewise.
18839         (sse_cvtss2siq<round_name>): Likewise.
18840         (sse2_cvtsi2sdq<round_name>): Likewise.
18841         (sse2_cvtsd2si<round_name>): Likewise.
18842         (sse2_cvtsd2siq<round_name>): Likewise.
18843         * config/i386/subst.md (round_nimm_scalar_predicate): New
18844         predicate.
18846 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
18848         PR middle-end/67639
18849         * varasm.c (make_decl_rtl): Mark invalid register vars as
18850         DECL_EXTERNAL.
18852         PR rtl-optimization/66206
18853         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
18854         All callers changed.
18856 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
18858         PR tree-optimization/69141
18859         * tree-ssa-pre.c: Include langhooks.h.
18860         (eliminate_dom_walker::before_dom_children): Use
18861         lang_hooks.decl_printable_name instead of
18862         cgraph_node::get ()->name ().
18864         PR middle-end/68960
18865         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
18866         it and DECL_ALIGN too.
18868 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
18870         * config/mips/mips-ftypes.def: Sort to lexicographical order.
18872 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18874         PR target/69140
18875         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18876         depending on frame_pointer_needed before remaining integer and SSE
18877         registers are saved.
18879 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18881         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
18882         mode iterator with VSX_M2.
18883         (*p9_vecstore_<mode>): Likewise.
18884         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
18885         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
18886         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
18887         (define_split for VSX_LE128 stores): Likewise.
18888         (define_peephole2 for TImode LE swaps): Likewise.
18889         (define_split for VSX_LE128 post-reload stores): Likewise.
18891 2016-01-06  Marek Polacek  <polacek@redhat.com>
18893         PR sanitizer/69099
18894         * convert.c (convert_to_integer_1): Adjust call to
18895         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
18896         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
18897         EXPR instead of ARG.
18898         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
18900 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18902         PR 1078
18903         * doc/extend.texi (RL78 Variable Attributes): New section.
18905 2016-01-05  Marek Polacek  <polacek@redhat.com>
18907         PR c/69104
18908         * builtins.c (get_memmodel): Use expansion point location rather than
18909         the input location.  Call warning_at rather than warning.
18910         (expand_builtin_atomic_compare_exchange): Likewise.
18911         (expand_builtin_atomic_load): Likewise.
18912         (expand_builtin_atomic_store): Likewise.
18913         (expand_builtin_atomic_clear): Likewise.
18915 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18917         PR target/68991
18918         * config/i386/i386.c (ix86_expand_vector_logical_operator):
18919         Replace nonimmediate_operand with vector_operand.
18920         * config/i386/predicates.md (vector_operand): New predicate.
18921         (general_vector_operand): Replace nonimmediate_operand with
18922         vector_operand.
18923         * config/i386/sse.md: Replace nonimmediate_operand with
18924         vector_operand and m constraint with Bm constraint on SSE
18925         patterns with 16-byte memory operand.
18926         * config/i386/subst.md (round_nimm_predicate): Replace
18927         nonimmediate_operand with vector_operand.
18928         (round_saeonly_nimm_predicate): Likewise.
18929         (round_saeonly_nimm_scalar_predicate): New.
18931 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18933         PR target/68991
18934         * config/i386/constraints.md (Bm): New constraint.
18935         * config/i386/predicates.md (vector_memory_operand): New
18936         predicate.
18937         * config/i386/sse.md: Replace xm with xBm in plusminus and
18938         any_logic patterns.
18940 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18942         PR 1078
18943         * doc/extend.texi (V850 Function Attributes): New section.
18944         (V850 Variable Attributes): New section.
18946 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
18948         PR 1078
18949         * doc/extend.texi (MicroBlaze Function Attributes): Document
18950         interrupt_handler and fast_interrupt attributes.
18952 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
18954         PR other/60465
18955         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
18956         for local symbolic operands.
18957         * config/ia64/predicates.md (local_symbolic_operand64): New
18958         predicate.
18960 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18962         PR rtl-optimization/68651
18963         * combine.c (combine_simplify_rtx): Canonicalize x + x into
18964         x << 1.
18966 2016-01-05  Nathan Sidwell  <nathan@acm.org>
18968         * alias.c (compare_base_decls): Use symtab_node::get.
18970 2016-01-05  Nick Clifton  <nickc@redhat.com>
18972         PR target/68770
18973         * ira-costs.c (copy_cost): Initialise the t_icode field of the
18974         secondary_reload_info structure.
18976         PR target/66655
18977         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
18978         decls if weak support is available.
18980 2016-01-04  Martin Sebor  <msebor@redhat.com>
18982         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
18984 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
18986         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18987         OPTION_MASK_P9_DFORM.
18989         * config/rs6000/constraints.md (wo constraint): New constraint for
18990         ISA 3.0 (power9).
18992         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
18993         for wo constraint.
18994         (rs6000_init_hard_regno_mode_ok): Likewise.
18996         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
18997         wo constraint.
18999         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19000         expanders not to have constraints.  Add support for ISA 3.0 xxperm
19001         instruction.  Add support for fusing xxlor with xxperm.
19002         (altivec_vperm_<mode>_internal): Likewise.
19003         (altivec_vperm_v8hiv16qi): Likewise.
19004         (altivec_vperm_<mode>v16q): Likewise.
19005         (altivec_vperm_<mode>_uns): Likewise.
19006         (vperm_v8hiv4si): Likewise.
19007         (vperm_v16qiv8hi): Likewise.
19009         * doc/md.texi (RS/6000 constraints): Document wo constraint.
19011 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
19013         Update copyright years.
19015         * gcc.c (process_command): Update copyright notice dates.
19016         * gcov-dump.c (print_version): Ditto.
19017         * gcov.c (print_version): Ditto.
19018         * gcov-tool.c (print_version): Ditto.
19019         * gengtype.c (create_file): Ditto.
19020         * doc/cpp.texi: Bump @copying's copyright year.
19021         * doc/cppinternals.texi: Ditto.
19022         * doc/gcc.texi: Ditto.
19023         * doc/gccint.texi: Ditto.
19024         * doc/gcov.texi: Ditto.
19025         * doc/install.texi: Ditto.
19026         * doc/invoke.texi: Ditto.
19028 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19030         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19031         modes larger than TImode as TImode if NEON is not enabled.
19033 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19035         PR target/69100
19036         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19037         mode for %f0-%f31 only if TARGET_FPU.
19039 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19041         PR target/69072
19042         * config/sparc/sparc.c (scan_record_type): Take into account subfields
19043         to compute the PACKED_P predicate.
19044         (function_arg_record_value): Minor tweaks.
19046 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19048         * doc/install.texi (--with-multilib-list): Describe the meaning of the
19049         option for arm*-*-* targets.
19051 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19053         * doc/extend.texi (Common Function Attributes): Move docs for
19054         MSP430-specific attributes to....
19055         (MSP430 Function Attributes): ...here.  Delete the redundant
19056         entries and copy-edit the remaining text.
19057         (MSP430 Variable Attributes): Use uniform format for index
19058         entries and add a cross-reference to the corresponding function
19059         attribute docs.
19061 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
19063         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19064         -finite-math typo.
19065         (x86 Options): Likewise.
19067 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19069         PR 1078
19071         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19072         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19073         to corresponding attribute.
19075 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19077         * doc/extend.texi (Common Function Attributes) <noplt>: Move
19078         to correct alphabetization of table.  Copy-edit and correct
19079         markup.
19080         <stack_protect>: Likewise.
19081         <target_clones>: Likewise.
19082         <simd>: Likewise.
19083         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19084         Correct punctuation.
19085         (Code Gen Options) <-fno-plt>: Copy-edit.
19087 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19089         PR target/68917
19090         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19091         SI values.  Explicitly convert SI to DI and vice-versa.
19093 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
19095         PR tree-optimization/69070
19096         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19097         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19099         PR sanitizer/69055
19100         * ubsan.c (ubsan_instrument_float_cast): Call
19101         initialize_sanitizer_builtins.
19103         PR target/69015
19104         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19106 Copyright (C) 2016 Free Software Foundation, Inc.
19108 Copying and distribution of this file, with or without modification,
19109 are permitted in any medium without royalty provided the copyright
19110 notice and this notice are preserved.