16db0abc10583508bc7342e3b7f2b879e2a05734
[gcc.git] / gcc / ChangeLog
1 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
4 (aarch64_push_reg): New function to push 1 or 2 registers.
5 (aarch64_pop_reg): New function to pop 1 or 2 registers.
6 (aarch64_expand_prologue): Use aarch64_push_regs.
7 (aarch64_expand_epilogue): Use aarch64_pop_regs.
8
9 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
10
11 PR tree-optimization/71734
12 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
13 attribute instead of REF_LOOP and use it.
14 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15 set it for Loops having non-zero safelen attribute.
16 (ref_indep_loop_p): Pass zero as initial value for safelen.
17
18 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
19
20 PR middle-end/72657
21 PR target/72683
22 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
23 call using chkp_gimple_call_builtin_p.
24 (chkp_copy_bounds_for_assign): Likewise.
25
26 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27
28 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
29 * config/arm/arm-protos.h (struct tune_params): Likewise.
30 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
31 (cortex_a9_sched_adjust_cost): Likewise.
32 (fa726te_sched_adjust_cost): Likewise.
33 (arm_adjust_cost): Likewise.
34 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
35 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
36 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
37 * config/i386/i386.c (ix86_adjust_cost): Likewise.
38 * config/ia64/ia64.c: Likewise.
39 * config/m68k/m68k.c: Likewise.
40 * config/mep/mep.c (mep_adjust_cost): Likewise.
41 * config/microblaze/microblaze.c (microblaze_adjust_cost):
42 * Likewise.
43 * config/mips/mips.c (mips_adjust_cost): Likewise.
44 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
45 * Likewise.
46 * config/pa/pa.c (pa_adjust_cost): Likewise.
47 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
48 (rs6000_debug_adjust_cost): Likewise.
49 * config/sh/sh.c (sh_adjust_cost): Likewise.
50 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
51 (hypersparc_adjust_cost): Likewise.
52 (sparc_adjust_cost): Likewise.
53 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
54 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
55 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
56 * Likewise.
57 * config/visium/visium.c (visium_adjust_cost): Likewise.
58 * doc/tm.texi: Regenerate.
59 * haifa-sched.c (dep_cost_1): Adjust.
60 * target.def: Merge adjust_cost and adjust_cost_2.
61
62 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
63
64 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
65
66 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
67
68 * store-motion.c (struct st_expr): Make pattern_regs a vector.
69 (extract_mentioned_regs): Append to a vector instead of
70 returning a rtx_expr_list.
71 (st_expr_entry): Adjust.
72 (free_st_expr_entry): Likewise.
73 (store_ops_ok): Likewise.
74 (store_killed_in_insn): Likewise.
75 (find_moveable_store): Likewise.
76
77 2016-07-28 Martin Liska <mliska@suse.cz>
78
79 PR gcov-profile/68025
80 * tree-profile.c (tree_profiling): Respect
81 no_profile_instrument_function attribute.
82 * doc/extend.texi: Document no_profile_instrument_function
83 attribute.
84
85 2016-07-28 Martin Liska <mliska@suse.cz>
86
87 PR rtl-optimization/70944
88 * combine.c (make_compound_operation):
89 Do not allow make_compound_operation for vector mode
90
91 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
92
93 PR middle-end/71994
94 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
95 before calling get_ops.
96
97 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
98
99 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
100 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
101 (BITS_PER_UNIT_LOG): Remove.
102 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
103 * expr.c (expand_assignment): Likewise.
104 * stor-layout.c (initialize_sizetypes): Likewise.
105
106 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
107
108 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
109 signature of rs6000_expand_vector_extract so that the element
110 number is a RTX instead of a constant integer.
111 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
112 Likewise.
113 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
114 (altivec_expand_vec_ext_builtin): Likewise.
115 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
116 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
117 MFVSRLD instruction.
118
119 2016-07-27 David Malcolm <dmalcolm@redhat.com>
120
121 * input.c (get_pure_location): Move here from tree.c.
122 (make_location): Likewise. Add header comment.
123 (selftest::test_accessing_ordinary_linemaps): Verify
124 pure_location_p, make_location, get_location_from_adhoc_loc and
125 get_range_from_loc.
126 * input.h (get_pure_location): Move declaration here from tree.h.
127 (get_finish): Likewise for inline function.
128 (make_location): Likewise for declaration.
129 * tree.c (get_pure_location): Move to input.c.
130 (make_location): Likewise.
131 * tree.h (get_pure_location): Move declaration to tree.h.
132 (get_finish): Likewise for inline function.
133 (make_location): Likewise for declaration.
134
135 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
136
137 PR middle-end/71078
138 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
139
140 2016-07-27 David Malcolm <dmalcolm@redhat.com>
141
142 * system.h (STATIC_ASSERT): Use static_assert if building
143 with C++11 onwards.
144
145 2016-07-27 Richard Biener <rguenther@suse.de>
146
147 PR tree-optimization/72517
148 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
149 Revert change to not compute read-read dependences.
150
151 2016-07-27 Richard Biener <rguenther@suse.de>
152
153 * predict.c (set_even_probabilities): Make nedges unsigned.
154
155 2016-07-27 Martin Liska <mliska@suse.cz>
156
157 * predict.c (set_even_probabilities): Handle unlikely edges.
158 (combine_predictions_for_bb): Likewise.
159
160 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
161
162 PR target/71869
163 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
164 __float128 support when we don't have hardware support, so that
165 the IEEE built-in functions like isgreater, first call __unordkf3
166 to make sure neither operand is a NaN, and if both operands are
167 ordered, do the normal comparison.
168
169 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
170
171 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
172 name.
173 (extract_code_and_val_from_cond_with_ops): Verify that name is
174 either cond_op0 or cond_op1.
175
176 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
177
178 PR tree-optimization/18046
179 * genmodes.c (emit_mode_size_inline): Emit an assert that
180 verifies that mode is a valid array index.
181 (emit_mode_nuinits_inline): Likewise.
182 (emit_mode_inner_inline): Likewise.
183 (emit_mode_unit_size_inline): Likewise.
184 (emit_mode_unit_precision_inline): Likewise.
185 * tree-vrp.c: Include params.h.
186 (find_switch_asserts): Register edge assertions for the default
187 label which correspond to the anti-ranges of each case label.
188 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
189 * doc/invoke.texi: Document it.
190
191 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
192
193 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
194 and unnecessary call to gimple_bb.
195
196 2016-07-26 Richard Biener <rguenther@suse.de>
197
198 PR rtl-optimization/71984
199 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
200 for VOIDmode.
201
202 2016-07-26 Richard Biener <rguenther@suse.de>
203
204 PR middle-end/72517
205 * expmed.c (extract_bit_field_1): Constrain the vector mode
206 with element size matching the extraction mode size when
207 choosing a better vector mode to do the extraction from.
208
209 2016-07-26 Richard Biener <rguenther@suse.de>
210 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
211
212 PR middle-end/70920
213 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
214 pattern.
215
216 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
217
218 * tree-ssa-structalias.c (struct scc_info): Change types of
219 members to auto_sbitmap and auto_vec.
220 (scc_info::scc_info): New constructor.
221 (scc_info::~scc_info): New destructor.
222 (init_scc_info): Remove.
223 (free_scc_info): Remove.
224 (find_indirect_cycles): Adjust.
225 (perform_var_substitution): Likewise.
226 (free_var_substitution_info): Likewise.
227
228 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
229
230 * tree-outof-ssa.c (struct elim_graph): Change type of members
231 to auto_vec and auto_sbitmap.
232 (elim_graph::elim_graph): New constructor.
233 (delete_elim_graph): Remove.
234 (expand_phi_nodes): Adjust.
235
236 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
237
238 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
239 (new_elim_graph): Adjust.
240 (clear_elim_graph): Likewise.
241 (delete_elim_graph): Likewise.
242 (elim_graph_size): Likewise.
243 (elim_graph_add_node): Likewise.
244 (elim_graph_add_edge): Likewise.
245 (elim_graph_remove_succ_edge): Likewise.
246 (eliminate_name): Likewise.
247 (eliminate_build): Likewise.
248 (elim_forward): Likewise.
249 (elim_unvisited_predecessor): Likewise.
250 (elim_backward): Likewise.
251 (elim_create): Likewise.
252 (eliminate_phi): Likewise.
253 (expand_phi_nodes): Likewise.
254
255 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
256
257 * bt-load.c (compute_out): Use auto_sbitmap class.
258 (link_btr_uses): Likewise.
259 * cfganal.c (mark_dfs_back_edges): Likewise.
260 (post_order_compute): Likewise.
261 (inverted_post_order_compute): Likewise.
262 (pre_and_rev_post_order_compute_fn): Likewise.
263 (single_pred_before_succ_order): Likewise.
264 * cfgexpand.c (pass_expand::execute): Likewise.
265 * cfgloop.c (verify_loop_structure): Likewise.
266 * cfgloopmanip.c (fix_bb_placements): Likewise.
267 (remove_path): Likewise.
268 (update_dominators_in_loop): Likewise.
269 * cfgrtl.c (break_superblocks): Likewise.
270 * ddg.c (check_sccs): Likewise.
271 (create_ddg_all_sccs): Likewise.
272 * df-core.c (df_worklist_dataflow): Likewise.
273 * dse.c (dse_step3): Likewise.
274 * except.c (eh_region_outermost): Likewise.
275 * function.c (thread_prologue_and_epilogue_insns): Likewise.
276 * gcse.c (prune_expressions): Likewise.
277 (prune_insertions_deletions): Likewise.
278 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
279 * graph.c (draw_cfg_nodes_no_loops): Likewise.
280 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
281 * lcm.c (compute_earliest): Likewise.
282 (compute_farthest): Likewise.
283 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
284 (unroll_loop_runtime_iterations): Likewise.
285 (unroll_loop_stupid): Likewise.
286 * lower-subreg.c (decompose_multiword_subregs): Likewise.
287 * lra-lives.c: Likewise.
288 * lra.c (lra): Likewise.
289 * modulo-sched.c (schedule_reg_moves): Likewise.
290 (optimize_sc): Likewise.
291 (get_sched_window): Likewise.
292 (sms_schedule_by_order): Likewise.
293 (check_nodes_order): Likewise.
294 (order_nodes_of_sccs): Likewise.
295 (order_nodes_in_scc): Likewise.
296 * recog.c (split_all_insns): Likewise.
297 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
298 * reload1.c (reload): Likewise.
299 * sched-rgn.c (haifa_find_rgns): Likewise.
300 (split_edges): Likewise.
301 (compute_trg_info): Likewise.
302 * sel-sched.c (init_seqno): Likewise.
303 * store-motion.c (remove_reachable_equiv_notes): Likewise.
304 * tree-into-ssa.c (update_ssa): Likewise.
305 * tree-ssa-live.c (live_worklist): Likewise.
306 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
307 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
308 * Likewise.
309 (try_peel_loop): Likewise.
310 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
311 * Likewise.
312 * tree-ssa-pre.c (compute_antic): Likewise.
313 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
314 * tree-stdarg.c (reachable_at_most_once): Likewise.
315 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
316 * var-tracking.c (vt_find_locations): Likewise.
317
318 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
319
320 * sbitmap.h (auto_sbitmap): New class.
321
322 2016-07-26 Alan Modra <amodra@gmail.com>
323
324 PR target/72103
325 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
326 sri->t_icode.
327
328 2016-07-25 David Malcolm <dmalcolm@redhat.com>
329
330 * input.c (selftest::temp_source_file::temp_source_file): Fix
331 missing "%s" in fprintf.
332
333 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
334
335 PR middle-end/71732
336 * cselib.c (cselib_process_insn): Invalidate argument slots for
337 const/pure calls.
338
339 2016-07-25 Jiong Wang <jiong.wang@arm.com>
340
341 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
342 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
343 vmulxh_lane_f16, vmulxh_laneq_f16): New.
344
345 2016-07-25 Jiong Wang <jiong.wang@arm.com>
346
347 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
348 * config/aarch64/aarch64.md (fma, fnma): Support HF.
349 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
350
351 2016-07-25 Jiong Wang <jiong.wang@arm.com>
352
353 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
354 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
355 New.
356 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
357 (add<mode>3): Likewise.
358 (sub<mode>3): Likewise.
359 (mul<mode>3): Likewise.
360 (div<mode>3): Likewise.
361 (*div<mode>3): Likewise.
362 (<fmaxmin><mode>3): Extend to HF.
363 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
364 (fabd<mode>3): Likewise.
365 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
366 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
367 (aarch64_fmulx<mode>): Likewise.
368 (aarch64_fac<optab><mode>): Likewise.
369 (aarch64_frecps<mode>): Likewise.
370 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
371 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
372 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
373 (VSDQ_HSDI): Support HI.
374 (fcvt_target, FCVT_TARGET): Likewise.
375 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
376 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
377 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
378 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
379 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
380 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
381 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
382 vrsqrtsh_f16): New.
383
384 2016-07-25 Jiong Wang <jiong.wang@arm.com>
385
386 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
387 * config/aarch64/aarch64-builtins.c (hi_UP): New.
388 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
389 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
390 mode.
391 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
392 (aarch64_cm<optab><mode>): Likewise.
393 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
394 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
395 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
396 (sqrt<mode>2): Likewise.
397 (*sqrt<mode>2): Likewise.
398 (abs<mode>2): Likewise.
399 (<optab><mode>hf2): New pattern for HF mode.
400 (<optab>hihf2): Likewise.
401 * config/aarch64/arm_neon.h: Include arm_fp16.h.
402 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
403 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
404 Support HF mode.
405 * config/aarch64/arm_fp16.h: New file.
406 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
407 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
408 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
409 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
410 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
411 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
412 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
413 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
414 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
415 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
416 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
417 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
418 vsqrth_f16): New.
419
420 2016-07-25 Jiong Wang <jiong.wang@arm.com>
421
422 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
423 reduc_smin_scal_): Use VDQIF_F16.
424 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
425 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
426 Use VHSDF.
427 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
428 * config/aarch64/iterators.md (VDQIF_F16): New.
429 (vp): Support HF modes.
430 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
431 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
432
433 2016-07-25 Jiong Wang <jiong.wang@arm.com>
434
435 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
436 "*aarch64_mulx_elt_from_dup<mode>".
437 (*aarch64_mul3_elt<mode>): Update schedule type.
438 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
439 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
440 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
441 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
442 (f, fp): Support HF modes.
443 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
444 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
445 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
446 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
447 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
448 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
449
450 2016-07-25 Jiong Wang <jiong.wang@arm.com>
451
452 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
453 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
454 modes.
455 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
456 vfmsq_f16): New.
457
458 2016-07-25 Jiong Wang <jiong.wang@arm.com>
459
460 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
461 * config/aarch64/aarch64-simd.md
462 (aarch64_rsqrts<mode>): Extend to HF modes.
463 (fabd<mode>3): Likewise.
464 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
465 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
466 (aarch64_<maxmin_uns>p<mode>): Likewise.
467 (<su><maxmin><mode>3): Likewise.
468 (<maxmin_uns><mode>3): Likewise.
469 (<fmaxmin><mode>3): Likewise.
470 (aarch64_faddp<mode>): Likewise.
471 (aarch64_fmulx<mode>): Likewise.
472 (aarch64_frecps<mode>): Likewise.
473 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
474 (add<mode>3): Extend to HF modes.
475 (sub<mode>3): Likewise.
476 (mul<mode>3): Likewise.
477 (div<mode>3): Likewise.
478 (*div<mode>3): Likewise.
479 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
480 HF, V4HF and V8HF.
481 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
482 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
483 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
484 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
485 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
486 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
487 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
488 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
489 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
490 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
491 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
492 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
493 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
494 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
495
496 2016-07-25 Jiong Wang <jiong.wang@arm.com>
497
498 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
499 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
500 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
501 (neg<mode>2): Likewise.
502 (abs<mode>2): Likewise.
503 (<frint_pattern><mode>2): Likewise.
504 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
505 (<optab><VDQF:mode><fcvt_target>2): Likewise.
506 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
507 (ftrunc<VDQF:mode>2): Likewise.
508 (<optab><fcvt_target><VDQF:mode>2): Likewise.
509 (sqrt<mode>2): Likewise.
510 (*sqrt<mode>2): Likewise.
511 (aarch64_frecpe<mode>): Likewise.
512 (aarch64_cm<optab><mode>): Likewise.
513 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
514 HF, V4HF and V8HF.
515 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
516 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
517 (stype): New.
518 * config/aarch64/arm_neon.h (vdup_n_f16): New.
519 (vdupq_n_f16): Likewise.
520 (vld1_dup_f16): Use vdup_n_f16.
521 (vld1q_dup_f16): Use vdupq_n_f16.
522 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
523 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
524 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
525 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
526 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
527 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
528 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
529 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
530 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
531 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
532 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
533 vsqrt_f16, vsqrtq_f16): New.
534
535 2016-07-25 Jiong Wang <jiong.wang@arm.com>
536
537 * config/aarch64/aarch64-simd.md
538 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
539 (aarch64_ext<mode>): Likewise.
540 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
541 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
542 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
543 and V8HFmode.
544 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
545 float16x8_t.
546 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
547 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
548 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
549 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
550 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
551 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
552 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
553 New.
554 (vmov_n_f16): Reimplement using vdup_n_f16.
555 (vmovq_n_f16): Reimplement using vdupq_n_f16..
556
557 2016-07-25 Jiong Wang <jiong.wang@arm.com>
558
559 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
560 "frame_related_p". Generate CFA annotation when it's necessary.
561 (aarch64_expand_prologue): Use aarch64_add_constant.
562 (aarch64_expand_epilogue): Likewise.
563 (aarch64_output_mi_thunk): Pass "false" when calling
564 aarch64_add_constant.
565
566 2016-07-25 Jiong Wang <jiong.wang@arm.com>
567
568 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
569 sequences.
570
571 2016-07-25 Jiong Wang <jiong.wang@arm.com>
572
573 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
574 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
575 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
576 (aarch64_build_constant): Delete.
577
578 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
579
580 Revert
581 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
582
583 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
584 flag_toplevel_reorder.
585
586 2016-07-25 Richard Biener <rguenther@suse.de>
587
588 * cgraph.c (cgraph_node::verify_node): Compare against builtin
589 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
590 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
591 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
592 (streamer_get_builtin_tree): Likewise.
593 (streamer_write_builtin): Likewise.
594 * lto-streamer.h (LTO_builtin_decl): Remove.
595 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
596 (lto_input_scc): Remove LTO_builtin_decl handling.
597 (lto_input_tree_1): Liekwise.
598 * lto-streamer-out.c (lto_output_tree_1): Remove special
599 handling of builtins.
600 (DFS::DFS): Likewise.
601 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
602 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
603 assert.
604 (streamer_write_builtin): Remove.
605
606 2016-07-25 Martin Liska <mliska@suse.cz>
607
608 * lto-cgraph.c (input_symtab): Don't call get_working_sets
609 if flag_auto_profile is set to true.
610
611 2016-07-25 Martin Liska <mliska@suse.cz>
612
613 PR gcov-profile/71868
614 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
615 have a function with multiple latches, count them all.
616
617 2016-07-25 Martin Liska <mliska@suse.cz>
618
619 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
620
621 2016-07-25 Martin Liska <mliska@suse.cz>
622
623 PR tree-optimization/71987
624 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
625 just for SSA_NAMEs. Fix GNU coding style.
626
627 2016-07-25 Martin Liska <mliska@suse.cz>
628
629 PR gcov-profile/64874
630 * gcov-io.h: Update command about file format.
631 * gcov-iov.c (main): Adapt the numbering scheme.
632
633 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
634
635 PR middle-end/66726
636 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
637 whose result is used in PHI.
638 (final_range_test_p): Likewise.
639 (maybe_optimize_range_tests): Likewise.
640
641 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
642
643 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
644 Reformat two multi-line strings.
645
646 2016-07-22 Martin Sebor <msebor@redhat.com>
647
648 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
649
650 2016-07-22 Martin Sebor <msebor@redhat.com>
651
652 PR c/71560
653 * doc/extend.texi (Compound Literals): Correct and clarify.
654 (Cast to Union): Same.
655
656 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
657
658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
659 comments to explain why certain error messages make mention of
660 undocumented options.
661 (rs6000_invalid_builtin): Change error messages to replace mention
662 of undocumented options with mention of the -mcpu=power9 option
663 that enables those undocumented options.
664 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
665 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
666 definition of this macro to correct an existing error.
667 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
668 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
669 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
670 descriptions of built-in functions so that they depend on
671 -mcpu=power9 instead of on the corresponding undocumented flags.
672 * doc/invoke.texi (Option Summary): Remove all mention of newly
673 undocumented flags.
674 (IBM RS/6000 and PowerPC Options): Likewise.
675 * doc/md.texi (Constraints for Particuliar Machines): Remove all
676 mention of newly undocumented flags.
677
678 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
679
680 * ipa-cp.c (determine_versionability): Do not create constprop clones,
681 when target_clones attribute is set.
682
683 2016-07-22 Bin Cheng <bin.cheng@arm.com>
684
685 * common.opt (funsafe-loop-optimizations): Mark ignore.
686 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
687 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
688 related code.
689 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
690 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
691
692 2016-07-22 Bin Cheng <bin.cheng@arm.com>
693
694 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
695 Parameter.
696 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
697 Parameter.
698 (number_of_iterations_exit): Warn missed loop optimization for
699 possible infinite loops.
700
701 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
702
703 PR target/71216
704 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
705 when to emit a ".machine" pseudo-op.
706
707 2016-07-22 Martin Liska <mliska@suse.cz>
708
709 PR gcov-profile/69028
710 PR gcov-profile/62047
711 * coverage.c (coverage_compute_lineno_checksum): Do not
712 calculate checksum for fns w/o xloc.file.
713 (coverage_compute_profile_id): Likewise.
714
715 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
716
717 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
718 (avr_secondary_reload): ...and implementation.
719 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
720 * config/avr/avr.md (reload_in<mode>): Remove insns.
721 (adjust_len) [lpm]: Remove insn attribute value.
722 * config/avr/predicates.md (flash_operand): Remove insn predicate.
723
724 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
725
726 PR middle-end/71876
727 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
728 attribute.
729 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
730 * calls.c (special_function_p): Remove the special handling of the
731 "__builtin_" prefix.
732
733 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
734
735 PR middle-end/71876
736 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
737 if STMT may be an alloca call.
738 (gimple_alloca_call_p, alloca_call_p): Return only true for the
739 builtin alloca call.
740 * calls.h (gimple_maybe_alloca_call_p): New function.
741 * tree-inline.c (inline_forbidden_p_stmt): Use
742 gimple_maybe_alloca_call_p here.
743
744 2016-07-21 David Malcolm <dmalcolm@redhat.com>
745
746 * spellcheck-tree.c (best_macro_match::best_macro_match):
747 Explictly specify the template arguments when invoking the base
748 class constructor, to help older C++ compilers.
749
750 2016-07-21 Jakub Jelinek <jakub@redhat.com>
751
752 PR sanitizer/71953
753 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
754 before builtin_decl_implicit.
755
756 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
757
758 * optabs.c (emit_condiitonal_move): Short circuit for identical
759 sources.
760
761 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
762
763 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
764 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
765 (noce_conversion_profitable_p): New.
766 (noce_try_store_flag_constants): Use it.
767 (noce_try_addcc): Likewise.
768 (noce_try_store_flag_mask): Likewise.
769 (noce_try_cmove): Likewise.
770 (noce_try_cmove_arith): Likewise.
771 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
772 overwriting it.
773 (noce_convert_multiple_sets): Move cost model to here, from...
774 (bb_ok_for_noce_convert_multiple_sets) ...here.
775 (noce_process_if_block): Update calls for above changes.
776 (noce_find_if_block): Record new noce_if_info parameters.
777
778 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
779
780 * target.def (max_noce_ifcvt_seq_cost): New.
781 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
782 * doc/tm.texi: Regenerate.
783 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
784 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
785 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
786 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
787 * doc/invoke.texi: Document new params.
788
789 2016-07-21 Richard Biener <rguenther@suse.de>
790
791 PR tree-optimization/71947
792 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
793 ranges have useful limit_vr information.
794
795 2016-07-21 Richard Biener <rguenther@suse.de>
796
797 * function-tests.c (build_trivial_generic_function): Set
798 BLOCK_SUPERCONTEXT of DECL_INITIAL.
799 * omp-low.c (create_omp_child_function): Likewise.
800 (grid_expand_target_grid_body): Likewise.
801 * cgraphunit.c (init_lowered_empty_function): Likewise.
802 (cgraph_node::expand_thunk): Likewise.
803 * tree-parloops.c (create_loop_fn): Likewise.
804 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
805
806 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
807
808 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
809 in comment.
810
811 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
812
813 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
814 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
815 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
816 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
817 values for insn attribute.
818 * config/avr/avr.c (avr_out_insert_notbit): New function.
819 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
820 ADJUST_LEN_INSV_NOTBIT_0/_7.
821 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
822
823 2016-07-21 Bin Cheng <bin.cheng@arm.com>
824
825 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
826 (chrec_convert_1, chrec_convert): Ditto.
827 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
828 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
829 * tree-vrp.c (adjust_range_with_scev): Ditto.
830 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
831 (scev_var_range_cant_overflow): New function.
832 (scev_probably_wraps_p): New parameter. Call above function.
833 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
834
835 2016-07-21 Bin Cheng <bin.cheng@arm.com>
836
837 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
838 by removing computation of may_be_zero.
839
840 2016-07-21 Jakub Jelinek <jakub@redhat.com>
841
842 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
843
844 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
845
846 Improving concepts performance and diagnostics.
847 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
848 for constraint satisfaction and subsumption.
849 * timevar.h (auto_timevar): New constructor that matches the push/pop
850 pattern of usage in pt.c.
851
852 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
853
854 * hwint.h (HOST_WIDE_INT_0): New define.
855 (HOST_WIDE_INT_0U): Ditto.
856 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
857 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
858 * simplify-rtx.c: Ditto.
859 * tree-object-size.c: Ditto.
860
861 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
862
863 * config/s390/s390.c (s390_encode_section_info): Remove mode size
864 check.
865
866 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
867
868 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
869 * combine.c: Use HOST_WIDE_INT_M1U instead of
870 ~(unsigned HOST_WIDE_INT) 0.
871 * double-int.h: Ditto.
872 * dse.c: Ditto.
873 * dwarf2asm.c:Ditto.
874 * expmed.c: Ditto.
875 * genmodes.c: Ditto.
876 * match.pd: Ditto.
877 * read-rtl.c: Ditto.
878 * tree-ssa-loop-ivopts.c: Ditto.
879 * tree-ssa-loop-prefetch.c: Ditto.
880 * tree-vect-generic.c: Ditto.
881 * tree-vect-patterns.c: Ditto.
882 * tree.c: Ditto.
883
884 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
885
886 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
887 constant addresses outside [0,0xc0] into a register.
888 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
889 cases where the base address register is unused after.
890 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
891 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
892 (avr_out_store_psi_reg_disp_tiny): Same.
893
894 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
895
896 Implement attribute progmem on reduced Tiny cores by adding
897 flash offset 0x4000 to respective symbols.
898
899 PR target/71948
900 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
901 documentation how it works on reduced Tiny cores.
902 (AVR Named Address Spaces): No support for reduced Tiny.
903 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
904 (avr_address_tiny_pm_p): New static function.
905 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
906 if the address is in progmem.
907 (avr_assemble_integer): Same.
908 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
909 for symbol_ref in progmem.
910 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
911 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
912 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
913
914 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
915
916 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
917 * configure: Regenerate.
918 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
919 (USE_THIN_ARCHIVES): New variable.
920 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
921 this archive as a thin archive.
922
923 2016-07-20 David Malcolm <dmalcolm@redhat.com>
924
925 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
926 same location as last time, don't skip if we have fix-it hints.
927 Clarify the skipping logic by converting it from one "if" clause
928 to repeated "if" clauses.
929 * spellcheck-tree.c: Include "cpplib.h".
930 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
931 (best_macro_match::best_macro_match): New constructor.
932 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
933 Move here from c/c-decl.c.
934 (class best_macro_match): Move here from c/c-decl.c, converting
935 from a typedef to a subclass, gaining a ctor.
936
937 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
938
939 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
940 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
941 define...
942 (avr_addr_space_diagnose_usage): ...and implementation.
943 (avr_addr_space_supported_p): New function.
944 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
945 report bad address space usage if that space is supported.
946 (avr_insert_attributes): Same. No more complain about unsupported
947 address spaces.
948 * config/avr/avr-c.c (tm_p.h): Include it.
949 (avr_cpu_cpp_builtins): Only define addr-space related built-in
950 macro if avr_addr_space_supported_p.
951
952 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
953
954 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
955 flag_toplevel_reorder.
956
957 2016-07-20 David Malcolm <dmalcolm@redhat.com>
958
959 * gcc-rich-location.c
960 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
961 a const char *.
962 * gcc-rich-location.h
963 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
964
965 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
966
967 * target.def (addr_space): Add new diagnose_usage to hook vector.
968 * targhooks.c (default_addr_space_diagnose_usage): Add default
969 implementation and...
970 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
971 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
972 is some address space, call targetm.addr_space.diagnose_usage.
973 * doc/tm.texi.in (Named Address Spaces): Add anchor for
974 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
975 * doc/tm.texi: Regenerate.
976
977 2016-07-20 Martin Liska <mliska@suse.cz>
978
979 PR middle-end/71898
980 * graphite-isl-ast-to-gimple.c (later_of_the_two):
981 Properly handly PHI stmts.
982
983 2016-07-20 Bin Cheng <bin.cheng@arm.com>
984
985 PR tree-optimization/71503
986 PR tree-optimization/71683
987 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
988 and break.
989
990 2016-07-20 Martin Liska <mliska@suse.cz>
991
992 * doc/invoke.texi (-fipa-ra): Document when the option is
993 disabled. Fix a typo.
994
995 2016-07-20 Martin Liska <mliska@suse.cz>
996
997 * Makefile.in: Include fibonacci_heap.c
998 * fibonacci_heap.c: New file.
999 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1000 (fibonacci_heap::union_with): Fix deletion of the second heap.
1001 * selftest-run-tests.c (selftest::run_tests): Incorporate
1002 fibonacci heap tests.
1003 * selftest.h: Declare fibonacci_heap_c_tests.
1004
1005 2016-07-20 Martin Liska <mliska@suse.cz>
1006
1007 * selftest-run-tests.c (selftest::run_tests): New function.
1008 * selftest.h (sreal_c_tests): Declare.
1009 * sreal.c (sreal_verify_basics): New function.
1010 (verify_aritmetics): Likewise.
1011 (sreal_verify_arithmetics): Likewise.
1012 (verify_shifting): Likewise.
1013 (sreal_verify_shifting): Likewise.
1014 (void sreal_c_tests): Likewise.
1015
1016 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1017
1018 PR rtl-optimization/71916
1019 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1020 bb which have a single succ fake edge.
1021
1022 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1023
1024 PR debug/71855
1025 * dwarf2out.c (gen_subprogram_die): Only call
1026 gen_unspecified_parameters_die while dumping early dwarf.
1027
1028 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1029
1030 PR middle-end/71874
1031 * gimple-fold.c (fold_builtin_memory_op): Use
1032 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1033
1034 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1035
1036 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1037 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1038 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1039 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1040 * combine.c: Ditto.
1041 * cse.c: Ditto.
1042 * dojump.c: Ditto.
1043 * double-int.c: Ditto.
1044 * dse.c: Ditto.
1045 * dwarf2out.c: Ditto.
1046 * expmed.c: Ditto.
1047 * expr.c: Ditto.
1048 * fold-const.c: Ditto.
1049 * function.c: Ditto.
1050 * fwprop.c: Ditto.
1051 * genmodes.c: Ditto.
1052 * hwint.c: Ditto.
1053 * hwint.h: Ditto.
1054 * ifcvt.c: Ditto.
1055 * loop-doloop.c: Ditto.
1056 * loop-invariant.c: Ditto.
1057 * loop-iv.c: Ditto.
1058 * match.pd: Ditto.
1059 * optabs.c: Ditto.
1060 * real.c: Ditto.
1061 * reload.c: Ditto.
1062 * rtlanal.c: Ditto.
1063 * simplify-rtx.c: Ditto.
1064 * stor-layout.c: Ditto.
1065 * toplev.c: Ditto.
1066 * tree-ssa-loop-ivopts.c: Ditto.
1067 * tree-vect-generic.c: Ditto.
1068 * tree-vect-patterns.c: Ditto.
1069 * tree.c: Ditto.
1070 * tree.h: Ditto.
1071 * ubsan.c: Ditto.
1072 * varasm.c: Ditto.
1073 * wide-int-print.cc: Ditto.
1074 * wide-int.cc: Ditto.
1075 * wide-int.h: Ditto.
1076
1077 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1078
1079 * selftest.c (selftest::assert_streq): Handle NULL values of
1080 val_actual and val_expected.
1081
1082 2016-07-19 Martin Jambor <mjambor@suse.cz>
1083
1084 PR fortran/71688
1085 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1086 rather than cgraph_create_node to get a call graph node.
1087
1088 2016-07-19 Richard Biener <rguenther@suse.de>
1089
1090 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1091 handle all tcc_constant bases and valueize SSA names.
1092 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1093 tcc_constant bases.
1094
1095 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1096
1097 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1098 the flags of the exit block and bb2, not just the entry block.
1099
1100 2016-07-19 Richard Biener <rguenther@suse.de>
1101
1102 PR tree-optimization/71901
1103 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1104 align member, group stuff with the bitfield.
1105 (vn_ref_op_align_unit): New inline.
1106 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1107 record element alignment and operand 3 unchanged.
1108 (ao_ref_init_from_vn_reference): Adjust.
1109 (valueize_refs_1): Likewise.
1110 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1111
1112 2016-07-19 Richard Biener <rguenther@suse.de>
1113
1114 PR tree-optimization/71908
1115 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1116 symbolic constants in a more reliable way.
1117
1118 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1119
1120 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1121 comment.
1122 (vect_update_inits_of_drs): Likewise.
1123 (vect_create_cond_for_alias_checks): Likewise.
1124 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1125
1126 2016-07-19 Richard Biener <rguenther@suse.de>
1127
1128 PR lto/71907
1129 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1130 with an abstract origin that is not an inlined function outer
1131 scope add a self-reference as abstract origin.
1132 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1133
1134 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1135
1136 PR target/71493
1137 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1138 unintentional System V.4 structure return breakage for structures
1139 with a single floating point element.
1140
1141 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1142
1143 PR tree-optimization/71734
1144 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1145 contains REF, use it to check safelen, assume that safelen value
1146 must be greater 1, fix style.
1147 (ref_indep_loop_p_2): Add REF_LOOP argument.
1148 (ref_indep_loop_p): Pass LOOP as additional argument to
1149 ref_indep_loop_p_2.
1150
1151 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1152
1153 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1154 allocation in the prologue.
1155 * explow.c (get_dynamic_stack_base): New function to return an address
1156 expression for the dynamic stack base.
1157 (get_dynamic_stack_size): New function to do the required dynamic stack
1158 space size calculations.
1159 (allocate_dynamic_stack_space): Use new functions.
1160 (align_dynamic_address): Move some code from
1161 allocate_dynamic_stack_space to new function.
1162 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1163
1164 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1165
1166 * config/s390/s390.c (s390_encode_section_info): Always set
1167 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1168 found.
1169
1170 2016-07-18 Richard Biener <rguenther@suse.de>
1171
1172 PR tree-optimization/71893
1173 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1174 for sizetype cast added by array_ref_element_size.
1175 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1176
1177 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1178
1179 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1180 register parameters. Remove code to initialize argument pointer
1181 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1182 using a pc-relative branch. Cleanup conditional code.
1183 * config/pa/pa.md (call_mcount): New expander.
1184 (call_mcount_nonpic): New insn.
1185 (call_mcount_pic): New insn and split.
1186 (call_mcount_pic_post_reload): New insn.
1187 (call_mcount_64bit): New insn and split.
1188 (call_mcount_64bit_post_reload): New insn.
1189
1190 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1191
1192 * config/avr/predicates.md (const_m255_to_m1_operand): New.
1193 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1194 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1195 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1196 (*usum_widenqihi3, *udiff_widenqihi3)
1197 (*addhi3_zero_extend.const): New combiner insns.
1198 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1199 just 1 bit is affected.
1200 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1201 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1202
1203 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1204
1205 * omp-low.c (lower_omp_target): Mark data clauses with
1206 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1207 zero-length subarrays.
1208
1209 2016-07-15 Richard Biener <rguenther@suse.de>
1210
1211 PR tree-optimization/71881
1212 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1213 reverse DOM order to make debug temp generation happy.
1214
1215 2016-07-15 Richard Biener <rguenther@suse.de>
1216
1217 PR tree-optimization/71887
1218 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1219 verify it is not zero for division / modulo handling.
1220 (value_replacement): Adjust.
1221
1222 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1223 Julian Brown <julian@codesourcery.com>
1224
1225 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1226 * config/aarch64/aarch64-cost-tables.h
1227 (vulcan_extra_costs): New variable.
1228 * config/aarch64/aarch64.c
1229 (vulcan_addrcost_table): Likewise.
1230 (vulcan_regmove_cost): Likewise.
1231 (vulcan_vector_cost): Likewise.
1232 (vulcan_branch_cost): Likewise.
1233 (vulcan_tunings): Likewise.
1234
1235 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1236
1237 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1238 (output_in_order): Loop over undefined variables too. Output them
1239 via assemble_undefined_decl. Skip variables that correspond to hard
1240 registers or have value-exprs.
1241 * varpool.c (symbol_table::output_variables): Handle undefined
1242 variables together with defined ones.
1243
1244 2016-07-15 Richard Biener <rguenther@suse.de>
1245
1246 * tree-ssa-pre.c (get_representative_for): Make sure to return
1247 the value number of SSA names.
1248 (phi_translate_1): get_representative_for cannot return NULL.
1249 (do_pre_regular_insertion): Remove redundant call to
1250 fully_constant_expression.
1251 (do_pre_partial_partial_insertion): Likewise.
1252
1253 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1254
1255 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1256 (derive_simple_iv_with_niters): New function.
1257 (simple_iv): Rewrite using simple_iv_with_niters.
1258 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1259 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1260 function.
1261 (number_of_iterations_exit): Rewrite using above function.
1262 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1263 Decl.
1264
1265 2016-07-15 Richard Biener <rguenther@suse.de>
1266
1267 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1268 vec_construct cost.
1269
1270 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1271
1272 PR tree-optimization/71872
1273 * tree-data-ref.c (get_references_in_stmt): Ignore references
1274 with is_gimple_constant get_base_address.
1275
1276 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1277
1278 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1279 (TARGET_HAVE_LDACQD): New macro.
1280 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1281 than TARGET_HAVE_LDACQ.
1282 (arm_load_acquire_exclusivedi): Likewise.
1283 (arm_store_release_exclusivedi): Likewise.
1284
1285 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1286
1287 PR rtl-optimization/71878
1288 * lra-constraints.c (match_reload): Pass information about other
1289 output operands. Create new unique register value if matching input
1290 operand shares same register value as output operand being considered.
1291 (curr_insn_transform): Record output operands already processed.
1292
1293 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1294
1295 PR target/65951
1296 PR tree-optimization/70923
1297 * tree-vect-patterns.c: Include mult-synthesis.h.
1298 (target_supports_mult_synth_alg): New function.
1299 (synth_lshift_by_additions): Likewise.
1300 (apply_binop_and_append_stmt): Likewise.
1301 (vect_synth_mult_by_constant): Likewise.
1302 (target_has_vecop_for_code): Likewise.
1303 (vect_recog_mult_pattern): Use above functions to synthesize vector
1304 multiplication by integer constants.
1305
1306 2016-07-14 Alan Modra <amodra@gmail.com>
1307
1308 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1309 gpr alternatives. Correct '*' placement on Y,r alternative.
1310 Add '*' on operand 1 of r,r alternative.
1311
1312 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1313
1314 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1315 * expmed.h: ... Here.
1316
1317 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1318
1319 * gimple.h (stmt_can_terminate_bb_p): New function.
1320 * tree-cfg.c (need_fake_edge_p): Rename to ...
1321 (stmt_can_terminate_bb_p): ... this; return true if stmt can
1322 throw external; handle const and pure calls.
1323 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1324
1325 2016-07-14 Richard Biener <rguenther@suse.de>
1326
1327 PR tree-optimization/71866
1328 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1329 (do_hoist_insertion): Avoid endless recursion when we
1330 didn't insert anything because we managed to simplify
1331 things down to a constant or SSA name.
1332 (fully_constant_expression): Re-write in terms of ...
1333 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
1334 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1335 vn_nary_build_or_lookup_1.
1336 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1337 (vn_nary_build_or_lookup): ... this which now wraps it.
1338
1339 2016-07-14 Alan Modra <amodra@gmail.com>
1340
1341 PR target/71733
1342 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1343 with p9_vector override before power9-dform override.
1344
1345 2016-07-13 Andi Kleen <ak@linux.intel.com>
1346
1347 * value-prof.c (gimple_value_profile_transformations): Don't run
1348 when auto_profile is on.
1349
1350 2016-07-13 Andi Kleen <ak@linux.intel.com>
1351
1352 * auto-profile.c (update_inlined_ind_target,
1353 afdo_indirect_call): Print information to dump file.
1354
1355 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * genrecog.c (special_predicate_operand_p): New function.
1358 (predicate_name): Move function.
1359 (validate_pattern): Don't warn about missing mode for all
1360 define_special_predicate predicates.
1361
1362 2016-07-13 Bin Cheng <bin.cheng@arm.com>
1363
1364 * tree-vect-data-refs.c (vect_no_alias_p): New function.
1365 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1366 resolve alias checks which are known at compilation time.
1367 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1368 alias checks are resolved. Move dump info for too many runtime
1369 alias checks to here...
1370 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1371
1372 2016-07-13 Richard Biener <rguenther@suse.de>
1373
1374 PR tree-optimization/24574
1375 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1376 position and add shift, rotate, divison and modulo support
1377 for left zero.
1378 (value_replacement): Pass in argument position to absorbing_element_p.
1379
1380 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1381
1382 PR ipa/71633
1383 * ipa-inline-transform.c (inline_call): Support
1384 instrumented thunks.
1385
1386 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1387
1388 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1389 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1390 divide feature.
1391 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1392 Baseline. Make initial alternative TARGET_32BIT only.
1393 (udivsi3): Likewise.
1394 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1395 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1396 target.
1397
1398 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1399
1400 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1401 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1402 availability with TARGET_HAVE_MOVT.
1403 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1404 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1405 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1406 UINTVAL.
1407 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1408 extra instruction if MOVW is available. Use a cost variable
1409 incremented by COSTS_N_INSNS (1) when the condition match rather than
1410 returning an arithmetic expression based on COSTS_N_INSNS. Make
1411 constant with bottom half word zero cost 2 instruction if MOVW is
1412 available.
1413 * config/arm/arm.md (define_attr "arch"): Add v8mb.
1414 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1415 target is ARMv8-M Baseline.
1416 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1417 (arm_movtas_ze): Likewise.
1418 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1419 alternative for constants satisfying j constraint.
1420 (thumb1_movsi_insn): Likewise.
1421 (movsi splitter for K alternative): Tighten condition to not trigger
1422 if movt is available and j constraint is satisfied.
1423 (Pe immediate splitter): Likewise.
1424 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1425 constant fitting in an halfword to use MOVW.
1426 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1427 effective target.
1428
1429 2016-07-13 Richard Biener <rguenther@suse.de>
1430
1431 PR middle-end/71104
1432 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1433 gimplifying the LHS. Make sure to gimplify a returning twice
1434 call LHS without using SSA names.
1435
1436 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1437
1438 * tree-data-ref.c (find_data_references_in_stmt): Remove
1439 unnecessary call to vec::release.
1440 (graphite_find_data_references_in_stmt): Likewise.
1441 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1442 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1443
1444 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1445
1446 * cfgexpand.c (expand_used_vars): Make the type of a local
1447 variable auto_vec.
1448 * genmatch.c (lower_for): Likewise.
1449 * haifa-sched.c (haifa_sched_init): Likewise.
1450 (add_to_speculative_block): Likewise.
1451 (create_check_block_twin): Likewise.
1452 * predict.c (handle_missing_profiles): Likewise.
1453 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1454 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1455 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1456 Likewise.
1457 (maybe_lower_iteration_bound): Likewise.
1458 * tree-ssa-sccvn.c (DFS): Likewise.
1459 * tree-stdarg.c (reachable_at_most_once): Likewise.
1460 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1461 (vectorizable_store): Likewise.
1462
1463 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1464
1465 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1466 (sccvn_dom_walker): make cond_stack an auto_vec.
1467
1468 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1469
1470 * ree.c (struct ext_state): Make type of members auto_vec.
1471 (find_and_remove_re): Adjust.
1472
1473 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1474
1475 * cfgexpand.c (struct stack_vars_data): Make type of fields
1476 auto_vec.
1477 (expand_used_vars): Adjust.
1478
1479 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1480
1481 * ipa.c (record_cdtor_fn): Adjust.
1482 (build_cdtor_fns): Likewise.
1483 (ipa_cdtor_merge): Make static_ctors and static_dtors local
1484 variables.
1485
1486 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1487
1488 * genextract.c (struct accum_extract): Add constructor and make
1489 members auto_vec.
1490 (gen_insn): Adjust.
1491
1492 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1493
1494 * tree.c (struct free_lang_data_d): Add constructor and change
1495 types of members to ones that automatically manage resources.
1496 (fld_worklist_push): Adjust.
1497 (find_decls_types): Likewise.
1498 (find_decls_types_in_eh_region): Likewise.
1499 (free_lang_data_in_cgraph): Stop manually creating and
1500 destroying members of free_lang_data_d.
1501
1502 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
1503
1504 PR rtl-optimization/68961
1505 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1506 peephole variant. Use sse_reg_operand predicates.
1507
1508 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1509
1510 * config/i386/predicates.md (x86_64_immediate_operand)
1511 <case CONST_INT>: Remove unneeded truncation to DImode.
1512 <case CONST>: Ditto.
1513 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1514
1515 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1516
1517 PR target/71805
1518 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1519 The xxperm and xxpermr instructions require that the 2nd input
1520 operand overlap with the output operand, and not the 1st.
1521 (altivec_vperm_v8hiv16qi): Likewise.
1522 (altivec_vperm_<mode>_uns_internal): Likewise.
1523 (altivec_vpermr_<mode>_internal): Likewise.
1524 (vperm_v8hiv4si): Likewise.
1525 (vperm_v16qiv8hi): Likewise.
1526
1527 2016-07-12 Nathan Sidwell <nathan@acm.org>
1528
1529 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1530 when -mno-pic-data-is-text-relative is in effect, by default.
1531 * doc/invoke.texi (mpic-data-is-text-relative): Document new
1532 behavior and clarify.
1533
1534 2016-07-12 Martin Liska <mliska@suse.cz>
1535
1536 * params.def: Add avg-loop niter.
1537 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1538 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1539 * doc/invoke.texi: Document the new parameter.
1540
1541 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1542
1543 PR middle-end/71700
1544 * expr.c (store_constructor): Mask sign-extended bits when widening
1545 sub-word constructor element at the start of a word.
1546
1547 2016-07-12 Martin Liska <mliska@suse.cz>
1548
1549 * Makefile.in: Append rule for params-options.h.
1550 * params-options.h: New file.
1551
1552 2016-07-12 Martin Liska <mliska@suse.cz>
1553
1554 * ira-build.c (mark_loops_for_removal): Properly iterate
1555 loops.
1556
1557 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1558 Richard Biener <rguenther@suse.de>
1559
1560 PR tree-optimization/23286
1561 PR tree-optimization/70159
1562 * doc/invoke.texi: Document -fcode-hoisting.
1563 * common.opt (fcode-hoisting): New flag.
1564 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1565 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1566 (do_regular_insertion): Rename to ...
1567 (do_pre_regular_insertion): ... this and amend general comments
1568 on insertion strathegy.
1569 (do_partial_partial_insertion): Rename to ...
1570 (do_pre_partial_partial_insertion): ... this.
1571 (do_hoist_insertion): New function.
1572 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1573 and call do_hoist_insertion properly.
1574 (insert): Adjust.
1575 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1576 (pass_pre::execute): Register hoist_insert stats.
1577
1578 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR middle-end/71716
1581 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1582 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1583 is different from mode's bitsize. Small cleanup.
1584
1585 2016-07-12 Richard Biener <rguenther@suse.de>
1586
1587 PR rtl-optimization/68961
1588 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1589 to simplify to a non-constant.
1590
1591 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1592
1593 PR middle-end/71758
1594 * omp-low.c (expand_omp_target): Gimplify device.
1595
1596 PR tree-optimization/71823
1597 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1598 to get vec_oprnds2 from op2.
1599
1600 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1601
1602 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1603 Hoist common subexpressions.
1604 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1605
1606 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1607
1608 PR target/71800
1609 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1610 prevent generation of 'stxsiwx' on pre Power8 hardware.
1611
1612 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1613
1614 * input.c: Include cpplib.h.
1615 (selftest::temp_source_file): New class.
1616 (selftest::temp_source_file::temp_source_file): New ctor.
1617 (selftest::temp_source_file::~temp_source_file): New dtor.
1618 (selftest::should_have_column_data_p): New function.
1619 (selftest::test_should_have_column_data_p): New function.
1620 (selftest::temp_line_table): New class.
1621 (selftest::temp_line_table::temp_line_table): New ctor.
1622 (selftest::temp_line_table::~temp_line_table): New dtor.
1623 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1624 it to create a temp_line_table.
1625 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1626 locations that are known to have column data.
1627 (selftest::line_table_case): New struct.
1628 (selftest::test_reading_source_line): Move tempfile handling
1629 to class temp_source_file.
1630 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1631 (selftest::assert_token_loc_eq): New function.
1632 (ASSERT_TOKEN_LOC_EQ): New macro.
1633 (selftest::test_lexer): New function.
1634 (selftest::boundary_locations): New array.
1635 (selftest::input_c_tests): Call test_should_have_column_data_p.
1636 Loop over a test matrix of interesting values of location and
1637 default_range_bits, calling test_lexer on each case in the matrix.
1638 Move call to test_accessing_ordinary_linemaps into the matrix.
1639 * selftest.h (ASSERT_EQ): Reimplement in terms of...
1640 (ASSERT_EQ_AT): New macro.
1641
1642 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1643
1644 PR target/71801
1645 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1646 Don't convert TImode in debug insn.
1647
1648 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1649
1650 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1651 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1652 (tree_type_common::lang_flag_7): New.
1653 (tree_type_common::spare): Reduce size.
1654 * tree.h (TYPE_ALIGN_OK): Remove.
1655 (TYPE_LANG_FLAG_7): New.
1656 (get_inner_reference): Adjust header.
1657 * print-tree.c (print_node): Adjust.
1658 * expr.c (get_inner_reference): Remove parameter keep_aligning.
1659 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1660 calls to get_inner_reference.
1661 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
1662 handling of TYPE_ALIGN_OK.
1663 * builtins.c (get_object_alignment_2): Adjust call to
1664 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
1665 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1666 TYPE_ALIGN_OK.
1667 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1668 * cfgexpand.c (expand_debug_expr): Likewise.
1669 * dbxout.c (dbxout_expand_expr): Likewise.
1670 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1671 loc_list_from_tree, fortran_common): Likewise.
1672 * fold-const.c (optimize_bit_field_compare,
1673 decode_field_reference, fold_unary_loc, fold_comparison,
1674 split_address_to_core_and_offset): Likewise.
1675 * gimple-laddress.c (execute): Likewise.
1676 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1677 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1678 * hsa-gen.c (gen_hsa_addr): Likewise.
1679 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1680 * tsan.c (instrument_expr): Likewise.
1681 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1682 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1683 * tree-affine.c (tree_to_aff_combination,
1684 get_inner_reference_aff): Adjust calls to get_inner_reference.
1685 * tree-data-ref.c (split_constant_offset_1,
1686 dr_analyze_innermost): Likewise.
1687 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1688 * tree-sra.c (ipa_sra_check_caller): Likewise.
1689 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1690 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1691 bswap_replace): Likewise.
1692 * tree-vect-data-refs.c (vect_check_gather,
1693 vect_analyze_data_refs): Likewise.
1694 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1695 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1696 TYPE_ALIGN_OK.
1697
1698 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1699
1700 * Makefile.in (selftest-valgrind): New phony target.
1701 * function-tests.c (selftest::build_cfg): Delete pass instances
1702 created by the test.
1703 (selftest::convert_to_ssa): Likewise.
1704 (selftest::test_expansion_to_rtl): Likewise.
1705 * tree-cfg.c (selftest::test_linear_chain): Release dominator
1706 vectors.
1707 (selftest::test_diamond): Likewise.
1708
1709 2016-07-11 Richard Biener <rguenther@suse.de>
1710
1711 PR tree-optimization/71816
1712 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1713 than replacing all of its operands.
1714
1715 2016-07-11 Alan Modra <amodra@gmail.com>
1716
1717 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1718 (ctr<mode>): Add unspec.
1719 (ctr<mode>_internal*): Likewise.
1720
1721 2016-07-08 James Bowman <james.bowman@ftdichip.com>
1722
1723 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1724 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1725
1726 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
1727
1728 PR rtl-optimization/71621
1729 * lra-constraints.c (process_alt_operands): Check combination of
1730 reg class and mode.
1731
1732 2016-07-08 Jason Merrill <jason@redhat.com>
1733 Richard Biener <rguenther@suse.de>
1734
1735 P0145: Refining Expression Order for C++.
1736 * gimplify.c (initial_rhs_predicate_for): New.
1737 (gimplfy_modify_expr): Gimplify RHS before LHS.
1738
1739 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1740
1741 PR target/71297
1742 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1743 Allow standard error handling to take over when a wrong number
1744 of arguments is presented to __builtin_vec_ld () or
1745 __builtin_vec_st ().
1746
1747 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1748
1749 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1750 variants.
1751 (smin): Likewise.
1752 (fmax): New entry.
1753 (fmin): Likewise.
1754 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1755 __builtin_aarch64_fmaxv2sf.
1756 (vmaxnmq_f32): Likewise.
1757 (vmaxnmq_f64): Likewise.
1758 (vminnm_f32): Likewise.
1759 (vminnmq_f32): Likewise.
1760 (vminnmq_f64): Likewise.
1761
1762 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1763
1764 PR target/71806
1765 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1766 enable -mfloat128-hardware by default.
1767 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1768 that IEEE 128-bit hardware support needs.
1769 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1770 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1771 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1772 floating point requires.
1773 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1774 -mfloat128 and -mfloat128-hardware changes.
1775
1776 2016-07-08 Alan Hayward <alan.hayward@arm.com>
1777
1778 PR tree-optimization/71667
1779 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1780
1781 2016-07-08 Martin Liska <mliska@suse.cz>
1782
1783 PR middle-end/71606
1784 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1785 folding produces SAVE_EXPRs, thus return false for the type.
1786
1787 2016-07-07 Martin Liska <mliska@suse.cz>
1788
1789 * file-find.c (remove_prefix): New function.
1790 * file-find.h (remove_prefix): Declare the function.
1791 * gcc-ar.c (main): Skip a folder of the wrapper if
1792 a wrapped binary would point to the same file.
1793
1794 2016-07-07 Jan Hubicka <jh@suse.cz>
1795
1796 * tree-scalar-evolution.c (iv_can_overflow_p): export.
1797 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1798 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1799
1800 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1801
1802 PR ipa/71624
1803 * ipa-inline-analysis.c (compute_inline_parameters): Set
1804 local.can_change_signature to false for intrumentation
1805 thunk callees.
1806
1807 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1808
1809 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1810 with TARGET_HAVE_MOVT.
1811 (TARGET_HAVE_MOVT): Define.
1812 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1813 availability with TARGET_HAVE_MOVT.
1814 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1815 availability.
1816 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1817 TARGET_THUMB2.
1818 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1819 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1820 * config/arm/constraints.md (define_constraint "j"): Use
1821 TARGET_HAVE_MOVT to check MOVT availability.
1822
1823 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1824
1825 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1826
1827 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1828
1829 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1830 (armv8-m.main): Likewise.
1831 (armv8-m.main+dsp): Likewise.
1832 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1833 (FL_FOR_ARCH8M_MAIN): Likewise.
1834 * config/arm/arm-tables.opt: Regenerate.
1835 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1836 armv8-m.main+dsp to BE8_LINK_SPEC.
1837 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1838 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1839 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1840 Baseline and Mainline.
1841 (arm_option_override_internal): Also disable arm_restrict_it when
1842 !arm_arch_notm. Update comment for -munaligned-access to also cover
1843 ARMv8-M Baseline.
1844 (arm_file_start): Increase buffer size for printing architecture name.
1845 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1846 and armv8-m.main+dsp.
1847 (mno-unaligned-access): Clarify that this is disabled by default for
1848 ARMv8-M Baseline architectures as well.
1849
1850 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1851
1852 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1853 decide whether to prevent some libgcc routines being included for some
1854 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1855 link between this condition and the one in
1856 libgcc/config/arm/lib1func.S.
1857
1858 2016-07-07 Richard Biener <rguenther@suse.de>
1859
1860 * tree-ssa-pre.c: Include alias.h.
1861 (compute_avail): If we have multiple VN_REFERENCEs with the
1862 same hashtable entry adjust that to make it a valid replacement
1863 for all of them with respect to alignment and aliasing
1864 when doing insertion.
1865 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1866 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1867
1868 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1869
1870 PR target/70098
1871 PR target/71763
1872 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1873 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1874 constraint.
1875
1876 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1877
1878 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1879 (adjust_mems): Adjust.
1880 (adjust_insn): Likewise.
1881 (prepare_call_arguments): Likewise.
1882
1883 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1884
1885 * gcse.c (struct ls_expr): Make stores field a vector.
1886 (ldst_entry): Adjust.
1887 (free_ldst_entry): Likewise.
1888 (print_ldst_list): Likewise.
1889 (compute_ld_motion_mems): Likewise.
1890 (update_ld_motion_stores): Likewise.
1891
1892 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1893
1894 * gcse.c (struct ls_expr): Remove loads field.
1895 (ldst_entry): Adjust.
1896 (free_ldst_entry): Likewise.
1897 (print_ldst_list): Likewise.
1898 (compute_ld_motion_mems): Likewise.
1899
1900 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1901
1902 * store-motion.c (struct st_expr): Make antic_stores a vector.
1903 (st_expr_entry): Adjust.
1904 (free_st_expr_entry): Likewise.
1905 (print_store_motion_mems): Likewise.
1906 (find_moveable_store): Likewise.
1907 (compute_store_table): Likewise.
1908 (remove_reachable_equiv_notes): Likewise.
1909 (replace_store_insn): Likewise.
1910 (build_store_vectors): Likewise.
1911
1912 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1913
1914 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1915 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1916
1917 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1918
1919 PR tree-optimization/71518
1920 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1921 misalign also for outer loops with negative step.
1922
1923 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
1924
1925 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1926 (cortex_a53_shift): Add mov_shift.
1927 (cortex_a53_shift_reg): Add new reservation for register shifts.
1928 (cortex_a53_alu): Remove bfm.
1929 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1930 (cortex_a53_alu_extr): Add new reservation for EXTR.
1931 (bypasses): Improve bypass modelling.
1932
1933 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1934
1935 PR target/50739
1936 * config/avr/avr.c (avr_asm_select_section): Strip off
1937 SECTION_DECLARED from flags when calling get_section.
1938
1939 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1940
1941 * tree-vectorizer.h (vect_memory_access_type): Add
1942 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1943 * tree-vect-stmts.c (compare_step_with_zero): New function.
1944 (perm_mask_for_reverse): Move further up file.
1945 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1946 step is negative.
1947 (get_negative_load_store_type): New function.
1948 (get_load_store_type): Call it. Add an ncopies argument.
1949 (vectorizable_mask_load_store): Update call accordingly and
1950 remove tests for negative steps.
1951 (vectorizable_store, vectorizable_load): Likewise. Handle new
1952 memory_access_types.
1953
1954 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1955
1956 * tree-vectorizer.h (vect_memory_access_type): New enum.
1957 (_stmt_vec_info): Add a memory_access_type field.
1958 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1959 (vect_model_store_cost): Take an access type instead of a boolean.
1960 (vect_model_load_cost): Likewise.
1961 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1962 vect_model_store_cost and vect_model_load_cost.
1963 * tree-vect-stmts.c (vec_load_store_type): New enum.
1964 (vect_model_store_cost): Take an access type instead of a
1965 store_lanes_p boolean. Simplify tests.
1966 (vect_model_load_cost): Likewise, but for load_lanes_p.
1967 (get_group_load_store_type, get_load_store_type): New functions.
1968 (vectorizable_store): Use get_load_store_type. Record the access
1969 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1970 (vectorizable_load): Likewise.
1971 (vectorizable_mask_load_store): Likewise. Replace is_store
1972 variable with vls_type.
1973
1974 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1975
1976 * tree-vectorizer.h (vect_grouped_load_supported): Add a
1977 single_element_p parameter.
1978 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1979 Check the PR65518 case here rather than in vectorizable_load.
1980 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1981 * tree-vect-stmts.c (vectorizable_load): Likewise.
1982
1983 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1984
1985 * tree-vectorizer.h (gather_scatter_info): New structure.
1986 (vect_check_gather_scatter): Return a bool rather than a decl.
1987 Replace return-by-pointer arguments with a single
1988 gather_scatter_info *.
1989 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1990 (vect_analyze_data_refs): Update call accordingly.
1991 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1992 (vectorizable_mask_load_store): Likewise. Also record the
1993 offset dt and vectype in the gather_scatter_info.
1994 (vectorizable_store): Likewise.
1995 (vectorizable_load): Likewise.
1996
1997 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2000 strided groups, use the cost of N scalar accesses instead
2001 of ncopies vector accesses.
2002 (vect_model_load_cost): Likewise.
2003
2004 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * tree-vect-stmts.c (vect_cost_group_size): Delete.
2007 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
2008 variable to indicate when once-per-group costs are being used.
2009 (vect_model_load_cost): Likewise. Fix comment and misindented code.
2010
2011 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2012
2013 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2014 peeling-for-gaps condition.
2015
2016 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2017
2018 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2019 element to register if it doesn't match general_operand.
2020
2021 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2022 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2023
2024 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2025 prototype.
2026 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2027 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2028 (SIGNBIT): New mode iterator.
2029 (Fsignbit): New mode attribute.
2030 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2031 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2032 when direct moves are available.
2033 (signbit<mode>2_dm): New define_insn_and_split).
2034 (signbit<mode>2_dm2): New define_insn.
2035
2036 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2037
2038 PR rtl-optimization/71594
2039 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2040 into subregs of appropriate mode before trying to emit a conditional
2041 move.
2042
2043 2016-07-05 Jan Hubicka <jh@suse.cz>
2044
2045 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2046 (simple_iv): Use it.
2047
2048 2016-07-05 Jan Hubicka <jh@suse.cz>
2049
2050 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2051
2052 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2053
2054 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2055 "offmemok".
2056
2057 2016-07-05 Jan Hubicka <jh@suse.cz>
2058
2059 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2060 IV can overflow.
2061
2062 2016-07-05 Richard Biener <rguenther@suse.de>
2063
2064 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2065 Handle empty else block.
2066 (is_feasible_trace): Likewise.
2067 (split_paths): Likewise.
2068
2069 2016-07-05 Richard Biener <rguenther@suse.de>
2070
2071 * tree-loop-distribution.c (distribute_loop): Fix issue with
2072 the cost model loop.
2073
2074 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2075
2076 * config/arm/neon-testgen.ml: Delete.
2077 * config/arm/neon.ml: Delete.
2078
2079 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2080
2081 PR c++/71739
2082 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2083 directly using TREE_PURPOSE.
2084
2085 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2086
2087 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2088 * config/aarch64/aarch64_neon.h: Likewise.
2089 * config/aarch64/arm_neon.h: Likewise.
2090 * config/aarch64/atomics.md: Likewise.
2091 * config/aarch64/aarch64-simd-builtins.def: Likewise.
2092 * doc/invoke.texi: Likewise.
2093
2094 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2095
2096 * config/s390/s390.md: Add "z13" cpu_facility.
2097 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2098 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2099 condition" type instructions.
2100
2101 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2102 Jeff Law <law@redhat.com>
2103
2104 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2105 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2106
2107 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2108
2109 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2110 permutation for TARGET_AVX512F.
2111 (ix86_expand_vec_one_operand_perm_avx512): New function.
2112 (expand_vec_perm_1): Invoke introduced function.
2113 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2114 it may be not valid after vectorization.
2115
2116 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2117
2118 PR target/63874
2119 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2120 typo in comment. Only force to memory if it is a weak
2121 external reference.
2122
2123 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2124 Jiong Wang <jiong.wang@arm.com>
2125
2126 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2127 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2128 (AARCH64_FL_F16): New.
2129 (AARCH64_FL_FOR_ARCH8_2): New.
2130 (AARCH64_ISA_8_2): New.
2131 (AARCH64_ISA_F16): New.
2132 (TARGET_FP_F16INST): New.
2133 (TARGET_SIMD_F16INST): New.
2134 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2135 ("fp"): Disabling "fp" also disables "fp16".
2136 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2137 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2138 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2139 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2140
2141 2016-07-04 Jan Beulich <jbeulich@suse.com>
2142
2143 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2144
2145 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2146
2147 PR target/71720
2148 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2149 the insns, use an insn form that does not adjust the offset on
2150 little endian systems.
2151
2152 2016-07-01 Jan Beulich <jbeulich@suse.com>
2153
2154 * varasm.c (get_variable_section): Validate initializer in
2155 named .bss-like sections.
2156
2157 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2158
2159 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2160 Exchange the order of the second and third operands in the vpermr
2161 instruction tmeplate.
2162
2163 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2164
2165 PR target/71698
2166 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2167 Disallow TDmode values.
2168
2169 2016-07-01 Alan Modra <amodra@gmail.com>
2170
2171 PR rtl-optimization/71709
2172 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2173 being set, not referenced.
2174
2175 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2176
2177 PR tree-optimization/70729
2178 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2179 of loop since it can be not valid after transformation.
2180
2181 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2182
2183 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2184 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2185
2186 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2187
2188 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2189 for NULL decl.
2190
2191 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2192
2193 PR target/71677
2194 * config/rs6000/constraints.md (wY constraint): New constraint to
2195 match the requirements for the LXSD and STXSD instructions.
2196 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2197 predicate to match the requirements for the LXSD and STXSD
2198 instructions.
2199 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2200 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2201 to make sure that the bottom 2 bits of offset are 0, the address
2202 form is offsettable, and no updating is done in the address mode.
2203 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2204 (movdi_internal32): Likewise
2205 (movdi_internal64): Likewise.
2206
2207 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2208
2209 PR tree-optimization/71707
2210 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2211 strinfo even for ADDR_EXPR ptr.
2212
2213 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2214
2215 * config/rs6000/altivec.md (darn_32): Change the condition to
2216 TARGET_P9_MISC instead of TARGET_MODULO.
2217 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2218 condition expression.
2219 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2220 condition expression.
2221 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2222 (DFP_TEST): New code iterator.
2223 (dfptstsfi_<code>_mode>): New define_expand.
2224 (*dfp_sgnfcnc_<mode>): New define_insn.
2225 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2226 definition next to BU_P9_MISC_1 definition and change the MASK
2227 value to RS6000_BTM_P9_MISC.
2228 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2229 (BU_P9_64BIT_MISC_0): Likewise.
2230 (BU_P9_DFP_MISC_0): New macro definition.
2231 (BU_P9_DFP_MISC_1): New macro definition.
2232 (BU_P9_DFP_MISC_2): New macro definition.
2233 (BU_P9_DFP_OVERLOAD_1): New macro definition.
2234 (BU_P9_DFP_OVERLOAD_2): New macro definition.
2235 (BU_P9_DFP_OVERLOAD_3): New macro definition.
2236 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2237 (TSTSFI_LT_TD): Likewise.
2238 (TSTSFI_EQ_DD): Likewise.
2239 (TSTSFI_EQ_TD): Likewise.
2240 (TSTSFI_GT_DD): Likewise.
2241 (TSTSFI_GT_TD): Likewise.
2242 (TSTSFI_OV_DD): Likewise.
2243 (TSTSFI_OV_TD): Likewise.
2244 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2245 (TSTSFI_LT_DD): Likewise.
2246 (TSTSFI_LT_TD): Likewise.
2247 (TSTSFI_EQ): Likewise.
2248 (TSTSFI_EQ_DD): Likewise.
2249 (TSTSFI_EQ_TD): Likewise.
2250 (TSTSFI_GT): Likewise.
2251 (TSTSFI_GT_DD): Likewise.
2252 (TSTSFI_GT_TD): Likewise.
2253 (TSTSFI_OV): Likewise.
2254 (TSTSFI_OV_DD): Likewise.
2255 (TSTSFI_OV_TD): Likewise.
2256 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2257 overloaded test significance functions.
2258 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2259 OPTION_MASK_P9_MISC into the representation of this mask.
2260 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2261 of this mask.
2262 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2263 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2264 non-zero.
2265 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2266 argument is a 6-bit unsigned literal value if the icode argument
2267 represents a DFP test significance built-in call.
2268 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2269 flag used independently and in combination with the
2270 RS6000_BTM_64BIT flag.
2271 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2272 (rs6000_builtin_mask_names): Add entry for power9-misc
2273 command-line option.
2274 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2275 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2276 RS6000_BTM_P9_MISC macros.
2277 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2278 option and change the description of the -mpower9-vector option to
2279 enable only vector instructions, removing its erroneously claimed
2280 support for scalar instructions.
2281 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2282 the ISA 3.0 digital floating point test significance built-in
2283 functions.
2284
2285 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2286
2287 * config/aarch64/aarch64.c (cortexa35_tunings):
2288 Enable AES fusion. Use cortexa57_branch_cost.
2289 (cortexa53_tunings): Use cortexa57_branch_cost.
2290 (cortexa72_tunings): Use cortexa57_branch_cost.
2291 Use AUTOPREFETCHER_WEAK.
2292 (cortexa73_tunings): Use cortexa57_branch_cost.
2293
2294 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2295 James Greenhalgh <james.greenhalgh@arm.com>
2296
2297 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2298 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2299 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2300 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2301 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2302 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2303 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2304 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2305 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2306 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2307 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2308 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2309 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2310 New intrinsics.
2311
2312 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2313 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2314
2315 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2316 New define_insn.
2317 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2318
2319 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2320
2321 PR driver/71651
2322 * gcc.c (driver::build_option_suggestions): Pass "option" to
2323 add_misspelling_candidates.
2324 * opts-common.c (add_misspelling_candidates): Add "option" param;
2325 use it to avoid adding negated forms for options marked with
2326 RejectNegative.
2327 * opts.h (add_misspelling_candidates): Add "option" param.
2328
2329 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2330
2331 PR middle-end/71693
2332 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2333 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2334 first when permuting bitwise operation with rotate. Cast
2335 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2336
2337 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2338
2339 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2340 for misspelled param names.
2341 * params.c: Include spellcheck.h.
2342 (find_param_fuzzy): New function.
2343 * params.h (find_param_fuzzy): New prototype.
2344 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2345 * spellcheck.h (struct edit_distance_traits<const char *>):
2346 ...here.
2347
2348 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2349
2350 * config/rs6000/predicates.md (const_0_to_7_operand): New
2351 predicate, recognize 0..7.
2352 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2353 support for doing extracts from V16QImode, V8HImode, V4SImode
2354 under ISA 3.0.
2355 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2356 vector extract support.
2357 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2358 for ISA 3.0 vector extract.
2359 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2360 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2361 extracts of a constant element number from small integer vectors
2362 on 64-bit ISA 3.0 systems.
2363 (vsx_extract_<mode>_di): Likewise.
2364 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2365 say when we can do ISA 3.0 vector extracts.
2366 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2367 registers, using the stxsiwx instruction.
2368
2369 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
2370
2371 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2372 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2373 qdf24xx_regmove_cost, qdf24xx_tunings): New.
2374 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2375 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2376 * config/arm/arm.c (arm_qdf24xx_tune): New.
2377
2378 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
2379
2380 * config/aarch64/aarch64.c (cortexa53_tunings):
2381 Increase loop alignment to 8. Set function alignment to 16.
2382 (cortexa35_tunings): Likewise.
2383 (cortexa57_tunings): Increase loop alignment to 8.
2384 (cortexa72_tunings): Likewise.
2385 (cortexa73_tunings): Likewise.
2386
2387 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
2388
2389 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2390 for arm_fp16_ok and arm_fp16_hw.
2391 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2392 arm_fp16_alternative.
2393
2394 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
2395
2396 PR tree-optimization/71655
2397 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2398 types when swapping operands.
2399
2400 2016-06-29 Martin Liska <mliska@suse.cz>
2401
2402 PR middle-end/71585
2403 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2404 * ipa-inline-transform.c (inline_call): Remove unnecessary call
2405 of build_optimization_node.
2406
2407 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2408
2409 PR tree-optimization/70729
2410 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2411 independent in loops having positive safelen value.
2412 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2413 it may be not valid after vectorization.
2414
2415 2016-06-29 Jakub Jelinek <jakub@redhat.com>
2416
2417 PR tree-optimization/71625
2418 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
2419 is sorted by ascending list->offset. If PTR is non-NULL and there is
2420 previous strinfo, call get_stridx_plus_constant.
2421 (get_stridx): Pass exp as second argument to get_addr_stridx.
2422 (addr_stridxptr): Add missing list = list->next, so that there can be
2423 more than one entries in the list. Bump limit from 16 to 32. Ensure
2424 the list is sorted by ascending list->offset.
2425 (get_stridx_plus_constant): Adjust so that it can be also called with
2426 ADDR_EXPR instead of SSA_NAME as PTR.
2427 (handle_char_store): Pass NULL_TREE as second argument to
2428 get_addr_stridx.
2429
2430 2016-06-29 Richard Biener <rguenther@suse.de>
2431
2432 PR rtl-optimization/68961
2433 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2434
2435 2016-06-29 Richard Biener <rguenther@suse.de>
2436
2437 PR middle-end/71002
2438 * alias.c (component_uses_parent_alias_set_from): Handle
2439 type punning through union accesses by using the union alias set.
2440 * gimple.c (gimple_get_alias_set): Remove union type punning case.
2441
2442 2016-07-29 Richard Biener <rguenther@suse.de>
2443
2444 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2445 precision not matching mode precision.
2446
2447 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
2448
2449 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2450 pa_output_arg_descriptor.
2451 (call_val_symref_64bit_post_reload): Likewise.
2452 (call_val_powf_64bit_post_reload): Likewise.
2453 (sibcall_internal_symref_64bit): Likewise.
2454 (sibcall_value_internal_symref_64bit): Likewise.
2455
2456 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2457
2458 PR middle-end/71626
2459 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2460 a constant, force its SUBREG_REG into memory or register instead
2461 of whole op1.
2462
2463 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2464
2465 PR target/58655
2466 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2467 * doc/invoke.texi (AVR Options): Document it.
2468
2469 2016-06-28 Walter Lee <walt@tilera.com>
2470
2471 * config/tilegx/linux.h: Do not include arch/icache.h
2472 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2473 * config/tilepro/linux.h: Do not include arch/icache.h
2474 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2475
2476 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2477
2478 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2479 for big-endian BIT_FIELD_REF.
2480
2481 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2482
2483 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2484 ('size' attribute): Add '128'.
2485 Include power9.md.
2486 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2487 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2488 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2489 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2490 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2491 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2492 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2493 *trunc<mode>df2_odd): Set size attribute to '128'.
2494 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2495 * config/rs6000/power6.md (power6-fp): Include dfp type.
2496 * config/rs6000/power7.md (power7-fp): Likewise.
2497 * config/rs6000/power8.md (power8-fp): Likewise.
2498 * config/rs6000/power9.md: New file.
2499 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2500 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2501 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2502 htmsimple.
2503 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2504 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2505 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2506 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2507 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2508 dfp_dscri_<mode>): Change type attribute to dfp.
2509 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2510 attribute to vecsimple.
2511 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2512 and prefetch streams.
2513 (rs6000_option_override_internal): Remove temporary code setting
2514 tuning to power8. Don't set rs6000_sched_groups for power9.
2515 (last_scheduled_insn): Change to rtx_insn *.
2516 (divide_cnt, vec_load_pendulum): New variables.
2517 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2518 (rs6000_issue_rate): Set issue rate for Power9.
2519 (is_power9_pairable_vec_type): New.
2520 (power9_sched_reorder2): New.
2521 (rs6000_sched_reorder2): Call new function for Power9 specific
2522 reordering.
2523 (insn_must_be_first_in_group): Remove Power9.
2524 (insn_must_be_last_in_group): Likewise.
2525 (force_new_group): Likewise.
2526 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2527 Initialize divide_cnt/vec_load_pendulum.
2528 (_rs6000_sched_context, rs6000_init_sched_context,
2529 rs6000_set_sched_context): Handle context save/restore of new
2530 variables.
2531
2532 2016-06-28 Richard Biener <rguenther@suse.de>
2533
2534 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2535 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2536 COMPONENT_REF operand.
2537 (nonoverlapping_component_refs_p): Likewise.
2538 * stor-layout.c (start_bitfield_representative): Mark
2539 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2540
2541 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2542
2543 * Makefile.in: Don't cat ../stage_current if it does not exist.
2544
2545 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2546 last argument is a bit-field.
2547
2548 PR rtl-optimization/71673
2549 * internal-fn.c (expand_arith_overflow_result_store): Use
2550 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2551 expand_simple_binop.
2552
2553 PR middle-end/66867
2554 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2555 expand_ifn_atomic_compare_exchange): New functions.
2556 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2557 * tree.h (build_call_expr_internal_loc): Rename to ...
2558 (build_call_expr_internal_loc_array): ... this. Fix up type of
2559 last argument.
2560 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2561 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2562 ATOMIC_COMPARE_EXCHANGE result.
2563 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2564 * gimple-fold.h (optimize_atomic_compare_exchange_p,
2565 fold_builtin_atomic_compare_exchange): New prototypes.
2566 * gimple-fold.c (optimize_atomic_compare_exchange_p,
2567 fold_builtin_atomic_compare_exchange): New functions..
2568 * tree-ssa.c (execute_update_addresses_taken): If
2569 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2570 of call when finding addressable vars, and if such var becomes
2571 non-addressable, call fold_builtin_atomic_compare_exchange.
2572
2573 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2574
2575 PR target/71670
2576 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2577 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2578
2579 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2580
2581 * config/rs6000/rs6000.md ('type' attribute): Add
2582 veclogical,veccmpfx,vecexts,vecmove insn types.
2583 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2584 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2585 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2586 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2587 *nabs<mode>2_hw): Change type to vecmove.
2588 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2589 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2590 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2591 *ieee_128bit_vsx_abs<mode>2_internal,
2592 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2593 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2594 *ieee128_mtvsrd_32bit): Change type to veclogical.
2595 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2596 *movdi_internal32, *movdi_internal64): Update insn types.
2597 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2598 vsx_extract_<mode>): Change type to veclogical.
2599 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2600 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2601 *vsx_sign_extend_si_v2di): Change type to vecexts.
2602 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2603 type to veclogical.
2604 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2605 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2606 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2607 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2608 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2609 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2610 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2611 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2612 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2613 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2614 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2615 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2616 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2617 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2618 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2619 (ppc7450-vecsimple): Add veclogical, vecmove.
2620 (ppc7450-veccmp): Add veccmpfx.
2621 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2622 vecmove.
2623 (ppc8540_vector_compare): Add veccmpfx.
2624 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2625 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2626 (cell-vecsimple): Add veclogical, vecmove.
2627 (cell-veccmp): Add veccmpfx.
2628 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2629 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2630 veccmpfx.
2631 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2632 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2633 (power4-vecsimple): Add veclogical, vecmove.
2634 (power4-veccmp): Add veccmpfx.
2635 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2636 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2637 (power6-vecsimple): Add veclogical, vecmove.
2638 (power6-veccmp): Add veccmpfx.
2639 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2640 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2641 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2642 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2643 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2644 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2645 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2646 fpsimple.
2647 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2648
2649 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2650
2651 PR target/71656
2652 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2653 OPTION_MASK_P9_DFORM_VECTOR.
2654 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2655 disable -mpower9-dform-vector when using reload.
2656 (quad_address_p): Remove 'gpr_p' argument and all associated code.
2657 New 'strict' argument. Update all callers. Add strict addressing
2658 support.
2659 (rs6000_legitimate_offset_address_p): Remove call to
2660 virtual_stack_registers_memory_p.
2661 (rs6000_legitimize_reload_address): Add quad address support.
2662 (rs6000_legitimate_address_p): Move call to quad_address_p above
2663 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
2664 to account for new strict usage.
2665 (rs6000_output_move_128bit): Adjust quad_address_p args to account
2666 for new strict usage.
2667 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2668
2669 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
2670
2671 PR target/70902
2672 PR target/71453
2673 PR target/71555
2674 PR target/71596
2675 PR target/71657
2676 * config/i386/i386.c (ix86_spill_class): Disable condition to
2677 always return NO_REGS.
2678
2679 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2680
2681 * predict.c: Include gimple-pretty-print.h
2682 (predicted_by_loop_heuristics_p): Check also
2683 PRED_LOOP_EXIT_WITH_RECURSION
2684 (predict_loops): Find self recursive calls and use special purpose
2685 predictors for them; dump log about decisions.
2686 (pass_profile::execute): Dump info about #of iterations.
2687 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2688 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2689
2690 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
2691
2692 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2693 output_asm_insn calls and shorten long lines. Output .CALL
2694 argument descriptor using pa_output_arg_descriptor. Add various
2695 inline $$dyncall and other optimizations.
2696 (pa_attr_length_indirect_call): Adjust ordering and lengths.
2697
2698 2016-06-25 Jakub Jelinek <jakub@redhat.com>
2699
2700 PR tree-optimization/71643
2701 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2702 EH preds.
2703
2704 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2705 leak a bitmap if dep_bb is NULL.
2706
2707 PR tree-optimization/71631
2708 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2709 to rewrite_expr_tree even if negate_result, move new_lhs var
2710 declaration and initialization earlier, for powi_result set afterwards
2711 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
2712 if new_lhs != lhs, and don't shadow gsi var.
2713
2714 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2715
2716 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2717 Add in_loop parameter.
2718 (predict_loops): Add loop guard heuristics.
2719 * predict.def (PRED_LOOP_GUARD): New heuristics.
2720
2721 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2722
2723 * predict.c: Include ipa-utils.h
2724 (tree_bb_level_prediction): Predict recursive calls.
2725 (tree_estimate_probability_bb): Skip inexpensive calls for call
2726 predictor.
2727 * predict.def (PRED_RECURSIVE_CALL): New.
2728
2729 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2730
2731 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2732 (BU_FLOAT128_1): Likewise.
2733 (FABSQ): Likewise.
2734 (COPYSIGNQ): Likewise.
2735 (RS6000_BUILTIN_NANQ): Likewise.
2736 (RS6000_BUILTIN_NANSQ): Likewise.
2737 (RS6000_BUILTIN_INFQ): Likewise.
2738 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2739 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2740 (TARGET_FOLD_BUILTIN): New #define.
2741 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2742 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2743 (rs6000_fold_builtin): New target hook implementation, handling
2744 folding of 128-bit NaNs and infinities.
2745 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2746 entries are filled in to avoid problems during bootstrap
2747 self-test; define builtins for 128-bit NaNs and infinities.
2748 (rs6000_opt_mask): Add entry for float128.
2749 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2750 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2751 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2752 (const_str_type_node): New #define.
2753 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2754 to a define_expand that dispatches to either copysign<mode>3_soft
2755 or copysign<mode>3_hard.
2756 (copysign<mode>3_hard): Rename from copysign<mode>3.
2757 (copysign<mode>3_soft): New define_insn.
2758 * doc/extend.texi: Document new builtins.
2759
2760 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2761
2762 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2763 PRIu64 instead of lu.
2764
2765 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
2766
2767 PR debug/71642
2768 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2769 copy the type name.
2770
2771 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2772
2773 PR tree-optimization/71647
2774 * omp-low.c (lower_rec_input_clauses): Convert
2775 omp_clause_aligned_alignment (c) to size_type_node for the
2776 last argument of __builtin_assume_aligned.
2777
2778 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
2779
2780 * configure.ac (calling ___tls_get_addr via GOT): New
2781 assembler/linker check.
2782 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
2783 assembler and linker supports calling ___tls_get_addr via GOT.
2784 Otherise, defined to 0.
2785 * config.in: Regenerated.
2786 * configure: Likewise.
2787 * config/i386/constraints.md (Yb): New constraint.
2788 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2789 (REG_CLASS_NAMES): Likewise.
2790 (REG_CLASS_CONTENTS): Likewise.
2791 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2792 the b constraint with the Yb constraint. Call ___tls_get_addr
2793 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2794 is 1.
2795 (*tls_local_dynamic_base_32_gnu): Likewise.
2796 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2797 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2798 (*tls_local_dynamic_base_64_<mode>): Likewise.
2799
2800 2016-06-24 Martin Liska <mliska@suse.cz>
2801
2802 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2803 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2804 few functions.
2805 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2806 argument to true if the expected number of iterations is
2807 loop-based.
2808
2809 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
2810
2811 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2812 assemble for 32bit target.
2813 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2814 and $ld_ix86_gld_32_opt to link for 32bit target.
2815 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2816 * configure: Regenerate.
2817
2818 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2819
2820 * config/arm/arm.c (int_log2): Delete definition and prototype.
2821 (shift_op): Use exact_log2 instead of int_log2.
2822 (vfp3_const_double_for_fract_bits): Likewise.
2823
2824 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2825
2826 * internal-fn.c (expand_arith_set_overflow): New function.
2827 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2828 Use it.
2829 (expand_arith_overflow_result_store): Likewise. Handle precision
2830 smaller than mode precision.
2831 * tree-vrp.c (extract_range_basic): For imag part, handle
2832 properly signed 1-bit precision result.
2833 * doc/extend.texi (__builtin_add_overflow): Document that last
2834 argument can't be pointer to enumerated or boolean type.
2835 (__builtin_add_overflow_p): Document that last argument can't
2836 have enumerated or boolean type.
2837
2838 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2839 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2840
2841 * config/rs6000/predicates.md (splat_input_operand): Rework.
2842 Don't allow constants, since the insns that use this predicate
2843 don't support constants. Constants are handled by other insns
2844 that are created via combine. During and after register
2845 allocation, only allow indexed or indirect addresses, and not
2846 general addresses. Only allow modes supported by the hardware.
2847 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2848 comment. Move check for using VSPLTIS<x> to a common location,
2849 instead of doing it in two different places.
2850
2851 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
2852
2853 * config/i386/driver-i386.c (host_detect_local_cpu): Set
2854 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2855 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2856 signature_CENTAUR_ebx.
2857
2858 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
2859
2860 PR target/66232
2861 PR target/67400
2862 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2863 (as_ix86_gas_32_opt): This.
2864 (ld_ix86_tls_ldm_opt): Renamed to ...
2865 (ld_ix86_gld_32_opt): This.
2866 (R_386_TLS_LDM reloc): Updated.
2867 (R_386_GOT32X reloc): New assembler/linker check.
2868 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
2869 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
2870 defined to 0.
2871 * config.in: Regenerated.
2872 * configure: Likewise.
2873 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2874 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2875 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2876 if ix86_force_load_from_GOT_p returns true.
2877 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2878 ix86_force_load_from_GOT_p returns true.
2879 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2880 the external function address via the GOT slot.
2881 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2882 HAVE_AS_IX86_GOT32X before returning false.
2883 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2884 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2885
2886 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
2887
2888 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2889
2890 2016-06-23 Andi Kleen <ak@linux.intel.com>
2891
2892 * Makefile.in: Regenerate.
2893 * doc/install.texi: Document autoprofiledbootstrap.
2894
2895 2016-06-23 Andi Kleen <ak@linux.intel.com>
2896
2897 * config/i386/gcc-auto-profile: New file.
2898
2899 2016-06-23 Martin Liska <mliska@suse.cz>
2900
2901 PR middle-end/71619
2902 * predict.c (predict_loops): Revert the hunk that was removed
2903 in r237103.
2904
2905 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
2906
2907 * config.gcc: Add support for arm*-*-phoenix* targets.
2908 * config/arm/t-phoenix: New.
2909 * config/phoenix.h: New.
2910
2911 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
2912 H.J. Lu <hongjiu.lu@intel.com>
2913
2914 PR target/67400
2915 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2916 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2917 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2918 ix86_force_load_from_GOT_p returns true.
2919 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2920 ix86_force_load_from_GOT_p returns true.
2921 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2922 ix86_force_load_from_GOT_p returns true.
2923 (ix86_expand_move): Load the external function address via the
2924 GOT slot if ix86_force_load_from_GOT_p returns true.
2925 * config/i386/predicates.md (x86_64_immediate_operand): Return
2926 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2927 (x86_64_zext_immediate_operand): Ditto.
2928
2929 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
2930
2931 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2932
2933 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2934
2935 PR c/70339
2936 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2937 * diagnostic.c (pedwarn_at_rich_loc): New function.
2938 * spellcheck.h (best_match::best_match): Add a
2939 "best_distance_so_far" optional parameter.
2940 (best_match::set_best_so_far): New method.
2941 (best_match::get_best_distance): New accessor.
2942 (best_match::get_best_candidate_length): New accessor.
2943
2944 2016-06-22 Nick Clifton <nickc@redhat.com>
2945
2946 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2947 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2948 modes are accepted as well.
2949 (ucompare_loc_descriptor): Likewise.
2950 (minmax_loc_descriptor): Likewise.
2951 (clz_loc_descriptor): Likewise.
2952 (popcount_loc_descriptor): Likewise.
2953 (bswap_loc_descriptor): Likewise.
2954 (rotate_loc_descriptor): Likewise.
2955 (mem_loc_descriptor): Likewise.
2956 (loc_descriptor): Likewise.
2957
2958 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2959
2960 * common.opt (fdiagnostics-parseable-fixits): New option.
2961 * diagnostic.c: Include "selftest.h".
2962 (print_escaped_string): New function.
2963 (print_parseable_fixits): New function.
2964 (diagnostic_report_diagnostic): Call print_parseable_fixits.
2965 (selftest::assert_print_escaped_string): New function.
2966 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2967 (selftest::test_print_escaped_string): New function.
2968 (selftest::test_print_parseable_fixits_none): New function.
2969 (selftest::test_print_parseable_fixits_insert): New function.
2970 (selftest::test_print_parseable_fixits_remove): New function.
2971 (selftest::test_print_parseable_fixits_replace): New function.
2972 (selftest::diagnostic_c_tests): New function.
2973 * diagnostic.h (struct diagnostic_context): Add field
2974 "parseable_fixits_p".
2975 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2976 -fdiagnostics-parseable-fixits.
2977 (-fdiagnostics-parseable-fixits): New option.
2978 * opts.c (common_handle_option): Handle
2979 -fdiagnostics-parseable-fixits.
2980 * selftest-run-tests.c (selftest::run_tests): Call
2981 selftest::diagnostic_c_tests.
2982 * selftest.h (selftest::diagnostic_c_tests): New prototype.
2983
2984 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
2985
2986 PR tree-optimization/71488
2987 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2988 comparison of boolean vectors.
2989 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2990 of boolean vectors using bitwise operations.
2991
2992 2016-06-22 Andreas Schwab <schwab@suse.de>
2993
2994 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2995 Remove declaration.
2996
2997 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
2998
2999 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3000
3001 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3002
3003 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3004 print FLAGS_REG.
3005
3006 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3007
3008 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3009 * config/arm/arm-cores.def (cortex-a73): New entry.
3010 (cortex-a73.cortex-a35): Likewise.
3011 (cortex-a73.cortex-a53): Likewise.
3012 * config/arm/arm-tables.opt: Regenerate.
3013 * config/arm/arm-tune.md: Likewise.
3014 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3015 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3016 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3017 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3018 * doc/invoke.texi (ARM Options): Document cortex-a73,
3019 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3020
3021 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3022
3023 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3024 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3025 (cortex-a73.cortex-a35): Likewise.
3026 (cortex-a73.cortex-a53): Likewise.
3027 * config/aarch64/aarch64-tune.md: Regenerate.
3028 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3029 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3030 -mcpu and -mtune.
3031
3032 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3033
3034 * configure.ac (gcc_cv_as_compress_debug): Remove
3035 --compress-debug-sections as extra as switch.
3036 Handle gas --compress-debug-sections=type.
3037 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3038 Handle gld --compress-debug-sections=type.
3039 * configure: Regenerate.
3040
3041 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3042
3043 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3044
3045 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3046
3047 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3048 (do_rewrite): likewise.
3049
3050 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3051
3052 * common/config/mep/mep-common.c: Remove.
3053 * config.gcc: Remove mep-* support.
3054 * config/mep/constraints.md: Remove.
3055 * config/mep/default.h: Remove.
3056 * config/mep/intrinsics.h: Remove.
3057 * config/mep/intrinsics.md: Remove.
3058 * config/mep/ivc2-template.h: Remove.
3059 * config/mep/mep-c5.cpu: Remove.
3060 * config/mep/mep-core.cpu: Remove.
3061 * config/mep/mep-default.cpu: Remove.
3062 * config/mep/mep-ext-cop.cpu: Remove.
3063 * config/mep/mep-intrin.h: Remove.
3064 * config/mep/mep-ivc2.cpu: Remove.
3065 * config/mep/mep-pragma.c: Remove.
3066 * config/mep/mep-protos.h: Remove.
3067 * config/mep/mep.c: Remove.
3068 * config/mep/mep.cpu: Remove.
3069 * config/mep/mep.h: Remove.
3070 * config/mep/mep.md: Remove.
3071 * config/mep/mep.opt: Remove.
3072 * config/mep/predicates.md: Remove.
3073 * config/mep/t-mep: Remove.
3074 * doc/install.texi: Remove mep-* documentation.
3075 * doc/md.texi: Likewise.
3076
3077 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3078
3079 * config.gcc: Remove support for avr-rtems.
3080 * config/avr/gen-avr-mmcu-specs.c: Likewise.
3081 * config/avr/rtems.h: Remove.
3082 * config/avr/t-rtems: Remove.
3083
3084 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3085
3086 * config.gcc: Remove m32r-rtems support.
3087 * config/m32r/rtems.h: Remove.
3088
3089 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3090
3091 * config.gcc: Remove h8300-rtems support.
3092 * config/h8300/rtems.h: Remove.
3093 * config/h8300/t-rtems: Remove.
3094
3095 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3096
3097 * config.gcc: Remove support for knetbsd.
3098 * configure.ac: Likewise.
3099 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
3100 * config/knetbsd-gnu.h: Remove.
3101 * configure: Regenerate.
3102
3103 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3104
3105 * config.gcc: Remove support for openbsd 2 and 3.
3106 * config/openbsd-oldgas.h: Remove.
3107
3108 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3109
3110 * config.gcc: Remove interix support.
3111 * config/i386/i386-interix.h: Remove.
3112 * config/i386/interix.opt: Remove.
3113 * config/i386/t-interix: Remove.
3114 * configure: Regenerate.
3115 * configure.ac: Remove interix support.
3116 * doc/install.texi: Remove interix documentation.
3117
3118 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3119
3120 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3121 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3122 not defined.
3123
3124 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3125
3126 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3127 they are both PLACEHOLDER_EXPRs.
3128
3129 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3130
3131 * stor-layout.c (layout_type): Move setting complex MODE to
3132 layout_type, instead of setting it ahead of time by the caller.
3133 * tree.c (build_complex_type): Likewise.
3134
3135 2016-06-21 Martin Liska <mliska@suse.cz>
3136
3137 * predict.c (force_edge_cold): Replace imposisble with
3138 impossible.
3139
3140 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3141
3142 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3143 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3144
3145 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3146
3147 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3148
3149 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3150 Ilya Enkovich <ilya.enkovich@intel.com>
3151
3152 PR target/71549
3153 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3154 New member function to convert V1TImode register to SUBREG
3155 TImode in debug insn.
3156 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3157 after changing register mode to V1TImode.
3158
3159 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3160
3161 * config/aarch64/aarch64-cores.def (vulcan): New core.
3162 * config/aarch64/aarch64-tune.md: Regenerate.
3163 * doc/invoke.texi: Document vulcan as an available option.
3164
3165 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3166
3167 * cse.c (canon_asm_operands): New function extracted from...
3168 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
3169 either standalone or member of a PARALLEL.
3170
3171 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3172
3173 PR target/30417
3174 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3175 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3176 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3177
3178 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3179
3180 PR target/71103
3181 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3182 constant addresses if can_create_pseudo_p.
3183
3184 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3185
3186 PR tree-optimization/71588
3187 * tree-ssa-strlen.c (valid_builtin_call): New function.
3188 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3189 it.
3190
3191 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3192
3193 PR middle-end/71581
3194 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3195 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3196 for conversion of scalar user var to complex type and use the
3197 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
3198 punt.
3199
3200 PR rtl-optimization/71591
3201 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3202 don't run any tests.
3203
3204 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3205
3206 PR target/71571
3207 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3208 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
3209 space for PIC with non-v32 and the common non-PIC "jump".
3210
3211 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3212
3213 PR target/71559
3214 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3215 returned values and add UN*/LTGT/*ORDERED cases with values matching
3216 D operand modifier on vcmp for AVX.
3217
3218 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3219
3220 * config/aarch64/aarch64.opt
3221 (mpc-relative-literal-loads): Rename internal option name.
3222 * config/aarch64/aarch64.c
3223 (aarch64_nopcrelative_literal_loads): Rename to
3224 aarch64_pcrelative_literal_loads.
3225 (aarch64_expand_mov_immediate): Likewise.
3226 (aarch64_secondary_reload): Likewise.
3227 (aarch64_can_use_per_function_literal_pools_p): Likewise.
3228 (aarch64_override_options_after_change_1): Rename and simplify logic.
3229 (aarch64_classify_symbol): Merge large model checks into switch,
3230 remove pc-relative load check.
3231
3232 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3233
3234 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3235 costs relative to the cost of a register move.
3236
3237 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3238
3239 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3240 (vcvt_n_f64_u64): Likewise.
3241 (vcvt_n_s64_f64): Likewise.
3242 (vcvt_n_u64_f64): Likewise.
3243 (vcvt_f64_s64): Likewise.
3244 (vrecpe_f64): Likewise.
3245 (vcvt_f64_u64): Likewise.
3246 (vrecps_f64): Likewise.
3247
3248 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3249
3250 * config/aarch64/aarch64.md
3251 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3252 iterators.
3253 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3254 attributes.
3255 * config/aarch64/aarch64-builtins.c
3256 (aarch64_types_binop_uss_qualifiers): Delete.
3257 (TYPES_BINOP_USS): Likewise.
3258 (aarch64_types_binop_sus_qualifiers): Likewise.
3259 (TYPES_BINOP_SUS): Likewise.
3260 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3261 (TYPES_FCVTIMM_SUS): Likewise.
3262 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3263 rather than BINOP.
3264 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3265 (fcvtzs): Use SHIFTIMM rather than BINOP.
3266 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3267
3268 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3269
3270 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3271 costs relative to the cost of a register move.
3272
3273 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3274
3275 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3276 Allow scalar/single vector modes to be tieable.
3277
3278 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3279
3280 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3281
3282 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3283
3284 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3285 "alignement".
3286 * tree.h (TYPE_ALIGN): Likewise.
3287
3288 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3289
3290 PR target/71103
3291 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3292
3293 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3294
3295 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3296 literal" build warnings.
3297 (avr_print_operand_address): Dito.
3298
3299 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3300
3301 PR target/71375
3302 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3303 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3304
3305 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3306
3307 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3308
3309 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3310
3311 PR bootstrap/71435
3312 * reload1.c (reload): Pass 0 to finish_spills when called because
3313 update_eliminables_and_spill returns true and remove did_spill.
3314 (finish_spills): Adjust comment and document GLOBAL parameter.
3315
3316 2016-06-17 DJ Delorie <dj@redhat.com>
3317
3318 PR target/71338
3319 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3320 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3321 (umulqihi3_virt): Likewise.
3322 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3323 (umulqihi3_real): Likewise.
3324
3325 2016-06-17 Martin Liska <mliska@suse.cz>
3326
3327 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3328
3329 2016-06-17 Martin Liska <mliska@suse.cz>
3330
3331 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3332
3333 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3334
3335 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3336 __FAST_MATH__.
3337 (vaddq_f32): Likewise.
3338 (vmul_f32): Likewise.
3339 (vmulq_f32): Likewise.
3340 (vsub_f32): Likewise.
3341 (vsubq_f32): Likewise.
3342
3343 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3344
3345 PR tree-optimization/71347
3346 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3347 cost for all uses in group.
3348
3349 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3350
3351 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3352 insert gimple seq if it's not empty.
3353
3354 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3355
3356 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3357 member OFFSET.
3358 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3359 rather than OFFSET.
3360 (comp_dr_with_seg_len_pair): Ditto.
3361 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
3362 struct dr_with_seg_len_pair against DR_OFFSET.
3363 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3364 DR_OFFSET directly.
3365
3366 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
3367
3368 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3369
3370 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
3371
3372 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3373 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3374 (pa_output_millicode_call): Likewise.
3375 (pa_output_call): Likewise.
3376 (pa_output_indirect_call): Likewise.
3377 (pa_asm_output_mi_thunk): Likewise.
3378
3379 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3380
3381 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3382
3383 2016-06-16 Martin Liska <mliska@suse.cz>
3384
3385 * predict.c (combine_predictions_for_insn): When we find a first
3386 match predictor, we should consider just predictors with
3387 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
3388 DS theory predictor.
3389 (combine_predictions_for_bb): Likewise.
3390
3391 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3392
3393 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3394 with base of reference to struct.
3395
3396 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3397
3398 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3399
3400 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3401
3402 PR target/71151
3403 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3404 progmem_swtable_section.
3405 (progmem_swtable_section): Remove.
3406 (avr_asm_function_rodata_section): Remove.
3407 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3408 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3409
3410 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
3411
3412 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3413 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3414 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3415 signature_CENTAUR_ebx.
3416 * config/i386/i386.c (ix86_option_override_internal): Add
3417 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3418 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3419 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3420
3421 2016-06-16 Martin Liska <mliska@suse.cz>
3422
3423 * predict.def: Add fortran loop preheader predictor.
3424 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3425 fold IFN_BUILTIN_EXPECT with a known constant argument.
3426
3427 2016-06-16 Martin Liska <mliska@suse.cz>
3428
3429 * predict.def: Add 'Fortran' to display text of all
3430 PRED_FORTRAN_* predictors.
3431
3432 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3433
3434 PR target/71242
3435 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3436 [IA64_BUILTIN_NANSQ]: Ditto.
3437 (ia64_fold_builtin): New function.
3438 (TARGET_FOLD_BUILTIN): New define.
3439 (ia64_init_builtins) Declare const_string_type node.
3440 Add __builtin_nanq and __builtin_nansq builtin functions.
3441 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3442
3443 2016-06-16 Nick Clifton <nickc@redhat.com>
3444
3445 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3446 MSP430_HWMULT_ prefix to enum values.
3447 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3448 * config/msp430/msp430.c: Update use of enum values.
3449 * config/msp430/msp430.md: Likewise.
3450 * config/msp430/msp430.opt: Likewise.
3451
3452 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
3453
3454 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3455 of comparsions in the last iteration.
3456
3457 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3458 Joern Rennecke <joern.rennecke@embecosm.com>
3459
3460 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3461 addresses.
3462 (arc_needs_pcl_p): Add GOTOFFPC.
3463 (arc_legitimate_pic_addr_p): Likewise.
3464 (arc_output_pic_addr_const): Likewise.
3465 (arc_legitimize_pic_address): Generate a pc-relative address using
3466 GOTOFFPC.
3467 (arc_output_libcall): Use @pcl syntax.
3468 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3469 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3470 (*movsi_insn): Use @pcl syntax.
3471 (doloop_begin_i): Likewise.
3472
3473 2016-06-16 Martin Liska <mliska@suse.cz>
3474
3475 * predict.def: Define a new predictor.
3476
3477 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3478
3479 * config/arc/arc.opt (mtp-regno): Update text.
3480
3481 2016-06-16 Renlin Li <renlin.li@arm.com>
3482
3483 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3484
3485 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3486
3487 PR target/71554
3488 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3489 (setcc + and peephole2): Likewise.
3490
3491 PR rtl-optimization/71532
3492 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3493 memory slots.
3494
3495 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3496
3497 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3498 DImode constants with XXSPLTIB in vector registers.
3499 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3500 vsx_extract_<mode>_internal{1,2} into a single insn that handles
3501 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3502 extraction of the element at the top of the register as a scalar
3503 value.
3504 (vsx_extract_<mode>_internal1): Likewise.
3505 (vsx_extract_<mode>_internal2): Likewise.
3506 * config/rs6000/constraints.md (wi constraint): Remove a comment
3507 about DImode not being allowed in Altivec registers.
3508 (wB constraint): New constraint for constants that can be
3509 generated in Altivec registers with VSPLTISW/VUPKHSW.
3510 * config/rs6000/predicates.md (xxspltib_constant_split): Update
3511 comments.
3512 (xxspltib_constant_nosplit): Likewise.
3513 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3514 support for -mupper-regs-di to enable DImode to go into Altivec
3515 registers.
3516 (POWERPC_MASKS): Likewise.
3517 (power7 cpu): Likewise.
3518 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3519 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3520 for DImode being allowed in Altivec registers. Update wi/wj
3521 constraints. Set scalar_in_vmx_p flag.
3522 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3523 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
3524 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3525 (rs6000_opt_masks): Add -mupper-regs-di.
3526 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3527 direct move to use wi and not wj.
3528 (lfiwzx): Likewise.
3529 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3530 alternative.
3531 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3532 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3533 any VSX register, instead of just Altivec registers, to allow
3534 either operand to be an Altivec register or both.
3535 (fixuns_trunc<mode>di2_fctiduz): Likewise.
3536 (movdi_internal32): Add support for -mupper-regs-di. Add support
3537 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
3538 the alternatives and attributes to be lined up to be easier to
3539 read.
3540 (movdi_internal64): Likewise.
3541 (64-bit DImode splitters): Change predicates to only split loading
3542 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
3543 load constants in ISA 3.0 or ISA 2.07 respectively.
3544 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3545 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
3546 mention -mcpu=power9 sets these options.
3547 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3548 wB constraint.
3549
3550 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3551
3552 PR target/67353
3553 * config/avr/avr.c (avr_set_current_function): Warn misspelled
3554 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3555 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3556 by default to warn misspelled interrupt/ signal handler.
3557 * doc/invoke.texi (AVR Options): Document it. Update description
3558 for -nodevicelib option.
3559
3560 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3561
3562 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3563 up parentheses. Use GET_MODE_UNIT_BITSIZE.
3564 (aarch64_<sur>shll2_n<mode>): Likewise.
3565
3566 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3567
3568 PR middle-end/71529
3569 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3570 DECL_CONTEXT for copied arguments.
3571
3572 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3573
3574 PR tree-optimization/71483
3575 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3576 for slp
3577
3578 2016-06-15 Martin Liska <mliska@suse.cz>
3579
3580 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3581 instead of predict_edge w/o a probability.
3582
3583 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3584
3585 PR tree-optimization/71439
3586 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3587 live PHIs.
3588
3589 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3590
3591 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3592 register subregs in SET_SRC.
3593
3594 2016-06-15 Richard Biener <rguenther@suse.de>
3595
3596 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3597 store restrictions.
3598
3599 2016-06-15 Richard Biener <rguenther@suse.de>
3600
3601 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3602 not consider dependences between accesses that belong to the
3603 same group.
3604 (vect_analyze_data_ref_dependences): Do not analyze read-read
3605 or self-dependences.
3606
3607 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3608
3609 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3610 spellcheck.h.
3611 (find_closest_identifier): Reimplement in terms of
3612 best_match<tree,tree>.
3613 * spellcheck-tree.h: New file.
3614 * spellcheck.c (struct edit_distance_traits<const char *>): New
3615 struct.
3616 (find_closest_string): Reimplement in terms of
3617 best_match<const char *, const char *>.
3618 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3619 overload to spellcheck-tree.h.
3620 (find_closest_identifier): Likewise.
3621 (struct edit_distance_traits<T>): New template.
3622 (class best_match): New class.
3623
3624 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3625
3626 * selftest-run-tests.c (selftest::run_tests): Call
3627 selftest::spellcheck_tree_c_tests.
3628 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3629 * spellcheck-tree.c: Include selftest.h and stringpool.h.
3630 (selftest::test_find_closest_identifier): New function.
3631 (selftest::spellcheck_tree_c_tests): New function.
3632 * spellcheck.c (selftest::test_find_closest_string): Verify that
3633 the order of the vec does not affect the results for this case.
3634 (selftest::test_data): New array.
3635 (selftest::test_metric_conditions): New function.
3636 (selftest::spellcheck_c_tests): Add a test of case-comparison.
3637 Call selftest::test_metric_conditions.
3638
3639 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3640
3641 * config/rs6000/rs6000-builtin.def (commentary): Typo.
3642 (BU_P9_MISC_1): Likewise.
3643 (BU_P9_64BIT_MISC_0): Likewise.
3644 (BU_P9_MISC_0): Likewise.
3645
3646 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3647
3648 * gcc-rich-location.c
3649 (gcc_rich_location::add_fixit_misspelled_id): New method.
3650 * gcc-rich-location.h
3651 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3652
3653 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
3654
3655 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3656 FreeBSD 11 and above.
3657
3658 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
3659
3660 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3661
3662 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3663
3664 * expmed.h: Close parenthesis in "at your option" in copyright
3665 boilerplate.
3666 * lower-subreg.h: Likewise.
3667
3668 2016-06-14 Richard Biener <rguenther@suse.de>
3669
3670 PR middle-end/71526
3671 * genmatch.c (expr::gen_transform): Use in_type for comparisons
3672 if available.
3673
3674 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3675
3676 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3677 New function.
3678 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
3679 mask+shift version.
3680 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3681 New prototype.
3682 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3683 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3684
3685 2016-06-14 Richard Biener <rguenther@suse.de>
3686
3687 PR tree-optimization/71522
3688 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3689 copying into float copying.
3690
3691 2016-06-14 Jakub Jelinek <jakub@redhat.com>
3692
3693 PR tree-optimization/71520
3694 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3695 (replace_block_by): Move user labels from bb1 to bb2.
3696
3697 2016-06-14 Richard Biener <rguenther@suse.de>
3698
3699 PR middle-end/71310
3700 PR bootstrap/71510
3701 * expr.h (get_bit_range): Declare.
3702 * expr.c (get_bit_range): Export.
3703 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3704 word_mode again to constrain the bitfield access.
3705
3706 2016-06-14 Richard Biener <rguenther@suse.de>
3707
3708 PR tree-optimization/71521
3709 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3710 division int_const_binop against zero divisor.
3711
3712 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3713
3714 * config/i386/i386.md (signbittf2): New expander.
3715 * config/i386/sse.md (ptesttf2): New insn pattern.
3716
3717 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3718
3719 PR bootstrap/71481
3720 * input.c (selftest::test_reading_source_line): Avoid reading from
3721 __FILE__ by creating a tempfile with known content and reading
3722 from that instead.
3723
3724 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3725
3726 * pretty-print.c (assert_pp_format_colored): Skip the test if
3727 GCC_COLORS is set.
3728 (test_pp_format): Remove comment about GCC_COLORS.
3729
3730 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3731
3732 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3733 * pretty-print.c (assert_pp_format_va): Add location param and use
3734 it with ASSERT_STREQ_AT.
3735 (assert_pp_format): Add location param and pass it to
3736 assert_pp_format_va.
3737 (assert_pp_format_colored): Likewise.
3738 (ASSERT_PP_FORMAT_1): New.
3739 (ASSERT_PP_FORMAT_2): New.
3740 (ASSERT_PP_FORMAT_3): New.
3741 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3742 explicitly, or implicitly via the above macros.
3743 * selftest.c (selftest::pass): Use a selftest::location rather
3744 than file and line.
3745 (selftest::fail): Likewise. Print the function name.
3746 (selftest::fail_formatted): Likewise.
3747 (selftest::assert_streq): Use a selftest::location rather than
3748 file and line.
3749 * selftest.h (selftest::location): New struct.
3750 (SELFTEST_LOCATION): New macro.
3751 (selftest::pass): Accept a const location & rather than file
3752 and line.
3753 (selftest::fail): Likewise.
3754 (selftest::fail_formatted): Likewise.
3755 (selftest::assert_streq): Likewise.
3756 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3757 (ASSERT_FALSE): Likewise.
3758 (ASSERT_EQ): Likewise.
3759 (ASSERT_NE): Likewise.
3760 (ASSERT_STREQ): Likewise.
3761 (ASSERT_PRED1): Likewise.
3762 (ASSERT_STREQ_AT): New macro.
3763
3764 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3765
3766 * selftest.c (selftest::fail_formatted): New function.
3767 (selftest::assert_streq): New function.
3768 * selftest.h (selftests::fail_formatted): New decl.
3769 (selftest::assert_streq): New decl.
3770 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3771
3772 2016-06-13 Jeff Law <law@redhat.com>
3773
3774 PR tree-optimization/71403
3775 * tree-ssa-threadbackward.c
3776 (convert_and_register_jump_thread_path): No longer accept reference
3777 to path. Do not pop items off the path anymore.
3778 (fsm_find_control_statement_thread_paths): Do not allow threading
3779 to a deeper loop nest. Pop the last item off the path here rather
3780 than in convert_and_register_jump_thread_path.
3781
3782 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3783 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
3784
3785 [AArch64] Emit division using the Newton series
3786
3787 * config/aarch64/aarch64-protos.h
3788 (cpu_approx_modes): Add new member "division".
3789 (aarch64_emit_approx_div): Declare new function.
3790 * config/aarch64/aarch64.c
3791 (generic_approx_modes): New member "division".
3792 (exynosm1_approx_modes): Likewise.
3793 (xgene1_approx_modes): Likewise.
3794 (aarch64_emit_approx_div): Define new function.
3795 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3796 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3797 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3798 * doc/invoke.texi (-mlow-precision-div): Describe new option.
3799
3800 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3801 Wilco Dijkstra <wilco.dijkstra@arm.com>
3802
3803 [AArch64] Emit square root using the Newton series
3804
3805 * config/aarch64/aarch64-protos.h
3806 (aarch64_emit_approx_rsqrt): Replace with new function
3807 "aarch64_emit_approx_sqrt".
3808 (cpu_approx_modes): New member "sqrt".
3809 * config/aarch64/aarch64.c
3810 (generic_approx_modes): New member "sqrt".
3811 (exynosm1_approx_modes): Likewise.
3812 (xgene1_approx_modes): Likewise.
3813 (aarch64_emit_approx_rsqrt): Replace with new function
3814 "aarch64_emit_approx_sqrt".
3815 (aarch64_override_options_after_change_1): Handle new option.
3816 * config/aarch64/aarch64-simd.md
3817 (rsqrt<mode>2): Use new function instead.
3818 (sqrt<mode>2): New expansion and insn definitions.
3819 * config/aarch64/aarch64.md: Likewise.
3820 * config/aarch64/aarch64.opt
3821 (mlow-precision-sqrt): Add new option description.
3822 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3823
3824 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3825
3826 [AArch64] Add more choices for the reciprocal square root approximation
3827
3828 Allow a target to prefer such operation depending on the operation mode.
3829
3830 * config/aarch64/aarch64-protos.h
3831 (AARCH64_APPROX_MODE): New macro.
3832 (AARCH64_APPROX_{NONE,ALL}): Likewise.
3833 (cpu_approx_modes): New structure.
3834 (tune_params): New member "approx_modes".
3835 * config/aarch64/aarch64-tuning-flags.def
3836 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3837 * config/aarch64/aarch64.c
3838 (generic_approx_modes): New core "cpu_approx_modes" structure.
3839 (exynosm1_approx_modes): Likewise.
3840 (xgene1_approx_modes): Likewise.
3841 (generic_tunings): New member "approx_modes".
3842 (cortexa35_tunings): Likewise.
3843 (cortexa53_tunings): Likewise.
3844 (cortexa57_tunings): Likewise.
3845 (cortexa72_tunings): Likewise.
3846 (exynosm1_tunings): Likewise.
3847 (thunderx_tunings): Likewise.
3848 (xgene1_tunings): Likewise.
3849 (use_rsqrt_p): New argument for the mode and use new member from
3850 "tune_params".
3851 (aarch64_builtin_reciprocal): Devise mode from builtin.
3852 (aarch64_optab_supported_p): New argument for the mode.
3853 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3854
3855 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3856
3857 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3858 RS6000_BTM_MODULO flag into the set of flags that are considered
3859 to be part of the common configuration.
3860
3861 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3862
3863 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3864 difference unsigned.
3865 (vec_absdb): New macro for vector absolute difference unsigned
3866 byte.
3867 (vec_absdh): New macro for vector absolute difference unsigned
3868 half-word.
3869 (vec_absdw): New macro for vector absolute difference unsigned word.
3870 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3871 (vadu<mode>3): New insn.
3872 (*p9_vadu<mode>3): New insn.
3873 * config/rs6000/rs6000-builtin.def (vadub): New built-in
3874 definition.
3875 (vaduh): New built-in definition.
3876 (vaduw): New built-in definition.
3877 (vadu): New overloaded built-in definition.
3878 (vadub): New overloaded built-in definition.
3879 (vaduh): New overloaded built-in definition.
3880 (vaduw): New overloaded built-in definition.
3881 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3882 overloaded vector absolute difference unsigned functions.
3883 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3884 the ISA 3.0 vector absolute difference unsigned built-in functions.
3885
3886 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
3887
3888 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3889 update shared_lookup_references only once after changing operands.
3890
3891 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
3892
3893 PR middle-end/71373
3894 * tree-nested.c (convert_nonlocal_omp_clauses)
3895 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3896
3897 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3898 * tree.def (CASE_LABEL_EXPR): Likewise.
3899
3900 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3901
3902 PR bootstrap/71481
3903 * input.c (test_builtins): Fix an assertion.
3904
3905 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3906
3907 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3908 (paritysi2): Ditto.
3909 (isinfxf2): Ditto.
3910 (isinf<mode>2): Ditto.
3911
3912 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3913
3914 * ggc-tests.c (test_finalization): Only test need_finalization_p
3915 for GCC_VERSION >= 4003.
3916
3917 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3918
3919 * config/s390/vecintrin.h: Fix file description in comment.
3920
3921 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3922
3923 * config/s390/s390-builtin-types.def: Change builtin type naming
3924 scheme to match builtin-types.def.
3925
3926 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
3927
3928 * fold-const.c (optimize_minmax_comparison): Remove.
3929 (fold_comparison): Remove call to the above.
3930 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3931 New transformations.
3932
3933 2016-06-13 Alan Hayward <alan.hayward@arm.com>
3934
3935 PR tree-optimization/71416
3936 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3937 multiple entries
3938
3939 2016-06-13 Martin Liska <mliska@suse.cz>
3940
3941 * predict.c (enum predictor_reason): Prefix enum with REASON_.
3942 (combine_predictions_for_insn): Likewise.
3943 (prune_predictions_for_bb): Likewise.
3944 (combine_predictions_for_bb): Likewise.
3945
3946 2016-06-13 Richard Biener <rguenther@suse.de>
3947
3948 PR tree-optimization/71505
3949 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3950 assert match comment.
3951
3952 2016-06-13 Marek Polacek <polacek@redhat.com>
3953
3954 PR middle-end/71476
3955 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3956 gimplify_switch_expr.
3957 (warn_switch_unreachable_r): New function.
3958
3959 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3960
3961 PR target/71379
3962 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3963 one.
3964
3965 2016-06-13 Richard Biener <rguenther@suse.de>
3966
3967 PR middle-end/64516
3968 * fold-const.c (fold_unary_loc): Preserve alignment when
3969 folding a VIEW_CONVERT_EXPR into a MEM_REF.
3970
3971 2016-06-13 Martin Liska <mliska@suse.cz>
3972
3973 PR sanitizer/71458
3974 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3975 w/ -fsanitize=bounds.
3976
3977 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3978
3979 * config/i386/i386.c (ix86_init_builtins): Calculate
3980 FLOAT128_FTYPE_CONST_STRING function type only once.
3981 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3982 built-in functions are available for x86-32 and x86-64 targets.
3983
3984 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3985
3986 PR target/71241
3987 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3988 New primitive type.
3989 (FLOAT128_FTYPE_CONST_STRING): New function type.
3990 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3991 [IX86_BUILTIN_NANSQ]: Ditto.
3992 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3993 (ix86_init_builtin_types): Declare const_string_type_node.
3994 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
3995 builtin functions.
3996 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3997 * doc/extend.texi (x86 Built-in Functions): Document
3998 __builtin_nanq and __builtin_nansq.
3999
4000 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4001
4002 PR target/71061
4003 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4004 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4005 length for pop patterns.
4006 (arm_attr_length_push_multi): Update comments.
4007 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4008 attribute.
4009 (*pop_multiple_with_writeback_and_return): Likewise.
4010 (*pop_multiple_with_return): Likewise.
4011
4012 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4013
4014 PR middle-end/71310
4015 * fold-const.c (optimize_bit_field_compare): Don't try to use
4016 word_mode unconditionally for reading the bit field, look at
4017 DECL_BIT_FIELD_REPRESENTATIVE instead.
4018
4019 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4020
4021 PR middle-end/71478
4022 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4023 vector integer type.
4024
4025 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4026
4027 PR middle-end/71494
4028 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4029 without LABEL_DECL, set *handled_ops_p to false instead of true.
4030
4031 2016-06-10 Martin Sebor <msebor@redhat.com>
4032
4033 PR c/71392
4034 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4035 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4036 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4037 them.
4038 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4039 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4040 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4041 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4042 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4043 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4044 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4045 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4046
4047 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4048
4049 * config/arm/arm.h (pool_vector_label,
4050 return_used_this_function): Remove.
4051
4052 2016-06-10 Jeff Law <law@redhat.com>
4053
4054 PR tree-optimization/71335
4055 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4056 zero length paths here.
4057 (convert_and_register_jump_thread_path): Remove hacks related to
4058 duplicated blocks in the jump thread path.
4059 (fsm_find_control_statement_thread_paths): Avoid putting the same
4060 block on the thread path twice, but ensure the thread path is
4061 unchanged from the caller's point of view.
4062
4063 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4064
4065 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4066 * predict.def (PRED_LOOP_BRANCH): Remove.
4067
4068 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4069
4070 * Makefile.in (OBJS): Add ggc-tests.o.
4071 (GTFILES): Add ggc-tests.c.
4072 * ggc-tests.c: New file.
4073 * selftest-run-tests.c (selftest::run_tests): Call
4074 selftest::ggc_tests_c_tests.
4075 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4076
4077 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4078
4079 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4080
4081 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4082
4083 PR sanitizer/71480
4084 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4085 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4086
4087 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4088
4089 * profile.c: Include cfgloop.h.
4090 (branch_prob): Compute estimated number of iterations.
4091 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4092 recompute estimate number of iterations from profile.
4093
4094 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4095
4096 PR inline-asm/68843
4097 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4098 must be grouped on top of stack. Don't force early clobber
4099 on ordinary reg outputs.
4100
4101 2016-06-10 Richard Biener <rguenther@suse.de>
4102
4103 * targhooks.c (default_builtin_vectorization_cost): Adjust
4104 vec_construct cost.
4105
4106 2016-06-10 Richard Biener <rguenther@suse.de>
4107
4108 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4109 to fold the RHS to a constant if possible.
4110
4111 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4112
4113 PR middle-end/71373
4114 * tree-nested.c (convert_nonlocal_omp_clauses)
4115 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4116 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4117 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4118
4119 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4120 OMP_CLAUSE_TILE.
4121 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4122
4123 * omp-low.c (scan_sharing_clauses): Don't expect
4124 OMP_CLAUSE__CACHE_.
4125
4126 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4127
4128 PR tree-optimization/71407
4129 PR tree-optimization/71416
4130 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4131 BIT_FIELD_REF type.
4132
4133 2016-06-10 Richard Biener <rguenther@suse.de>
4134
4135 PR middle-end/71477
4136 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4137
4138 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4139
4140 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4141
4142 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4143 Jiong Wang <jiong.wang@arm.com>
4144
4145 PR rtl-optimization/70751
4146 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4147 spilled into memory.
4148
4149 2016-06-09 Jonathan Yong <10walls@gmail.com>
4150
4151 Revert:
4152 2015-09-21 Jonathan Yong <10walls@gmail.com>
4153
4154 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4155 sysroot/usr/lib/32api for additional win32 libraries,
4156 fixes failing Cygwin bootstrapping.
4157
4158 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4159
4160 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4161 Delete.
4162
4163 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4164
4165 PR bootstrap/71471
4166 * pretty-print.c (pp_indent): Specify that %p is printed in a
4167 host-dependent manner.
4168 (test_pp_format): Remove the test for %p.
4169
4170 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4171
4172 * config/mips/mips.c (mips_output_jump): Fix formatting.
4173
4174 2016-06-09 Richard Biener <rguenther@suse.de>
4175
4176 PR tree-optimization/71462
4177 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4178 removed blocks.
4179
4180 2016-06-09 Martin Liska <mliska@suse.cz>
4181
4182 * predict.c (dump_prediction): Add new argument.
4183 (enum predictor_reason): New enum.
4184 (struct predictor_hash): New struct.
4185 (predictor_hash::hash): New function.
4186 (predictor_hash::equal): Likewise.
4187 (not_removed_prediction_p): New function.
4188 (prune_predictions_for_bb): Likewise.
4189 (combine_predictions_for_bb): Prune predictions.
4190
4191 2016-06-09 Martin Liska <mliska@suse.cz>
4192
4193 * predict.c (filter_predictions): New function.
4194 (remove_predictions_associated_with_edge): Use the filter
4195 function.
4196 (equal_edge_p): New function.
4197
4198 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4199
4200 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4201 Correct usage of @samp vs @option, add @samp where appropriate.
4202 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4203 Add armv6s-m and document it, as it is no official ARM name.
4204
4205 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4206
4207 * ifcvt.c (struct noce_if_info): Add transform_name field.
4208 (noce_try_move): Set if_info->transform_name to the function name.
4209 (noce_try_ifelse_collapse): Likewise.
4210 (noce_try_store_flag): Likewise.
4211 (noce_try_inverse_constants): Likewise.
4212 (noce_try_store_flag_constants): Likewise.
4213 (noce_try_addcc): Likewise.
4214 (noce_try_store_flag_mask): Likewise.
4215 (noce_try_cmove): Likewise.
4216 (noce_try_cmove_arith): Likewise.
4217 (noce_try_minmax): Likewise.
4218 (noce_try_abs): Likewise.
4219 (noce_try_sign_mask): Likewise.
4220 (noce_try_bitop): Likewise.
4221 (noce_convert_multiple_sets): Likewise.
4222 (noce_process_if_block): Print if_info->transform_name to
4223 dump_file if transformation succeeded.
4224
4225 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4226
4227 * config/arm/cortex-a57.md (cortex_a57_alu):
4228 Handle csel type.
4229
4230 2016-06-08 Martin Sebor <msebor@redhat.com>
4231 Jakub Jelinek <jakub@redhat.com>
4232
4233 PR c++/70507
4234 PR c/68120
4235 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4236 BUILT_IN_MUL_OVERFLOW_P): New builtins.
4237 * builtins.c: Include gimple-fold.h.
4238 (fold_builtin_arith_overflow): Handle
4239 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4240 (fold_builtin_3): Likewise.
4241 * doc/extend.texi (Integer Overflow Builtins): Document
4242 __builtin_{add,sub,mul}_overflow_p.
4243
4244 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4245
4246 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4247 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4248
4249 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4250
4251 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4252 Rewrite, looking one level down for records and arrays.
4253
4254 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4255
4256 * pretty-print.c: Include "selftest.h".
4257 (pp_format): Fix comment.
4258 (identifier_to_locale): Likewise.
4259 (selftest::test_basic_printing): New function.
4260 (selftest::assert_pp_format): New function.
4261 (selftest::test_pp_format): New function.
4262 (selftest::pretty_print_c_tests): New function.
4263 * selftest-run-tests.c (selftest::run_tests): Call
4264 selftest::pretty_print_c_tests.
4265 * selftest.h (pretty_print_c_tests): New declaration.
4266
4267 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4268
4269 * invoke.texi (max-loop-headers-insns): Document.
4270 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4271 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4272 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4273
4274 2016-06-08 Richard Biener <rguenther@suse.de>
4275
4276 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4277 on strided SLP loads and fall back to scalar loads in case
4278 we can't chunk them.
4279
4280 2016-06-08 Richard Biener <rguenther@suse.de>
4281
4282 PR tree-optimization/71452
4283 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4284 type used for the SSA rewrite has enough precision to cover
4285 the dynamic type of the location.
4286
4287 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4288 Richard Biener <rguenther@suse.de>
4289
4290 PR c++/71448
4291 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4292 the same as DECL_P (base0) for indirect_base0. Use equality_code
4293 in one further place.
4294
4295 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4296
4297 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4298 to one word if the field is known to overlap other words.
4299 (extract_bit_field_1): Likewise.
4300 (store_split_bit_field): Remove compensating code.
4301 (extract_split_bit_field): Likewise.
4302
4303 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4304
4305 PR debug/71432
4306 PR ada/71413
4307 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4308
4309 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4310
4311 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4312 VDQF.
4313 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4314 (arch64_addpv4sf): Delete.
4315 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4316 "gen_aarch64_addpv4sf".
4317 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
4318 builtin.
4319 (vpadds_f32): Likewise.
4320 (vpaddq_f32): Likewise.
4321 (vpaddq_f64): Likewise.
4322
4323 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4324
4325 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4326 VALLF.
4327 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4328 to VALLF. Rename to "fabd<mode>3".
4329 "*fabd_scalar<mode>3): Delete.
4330 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4331 Use builtin.
4332 (vabdd_f64): Likewise.
4333 (vabd_f32): Likewise.
4334 (vabd_f64): Likewise.
4335 (vabdq_f32): Likewise.
4336 (vabdq_f64): Likewise.
4337
4338 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4339
4340 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4341 VALLF.
4342 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4343 "aarch64_rsqrts<mode>".
4344 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4345 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
4346 builtin.
4347 (vrsqrtsd_f64): Likewise.
4348 (vrsqrts_f32): Likewise.
4349 (vrsqrts_f64): Likewise.
4350 (vrsqrtsq_f32): Likewise.
4351 (vrsqrtsq_f64): Likewise.
4352
4353 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4354
4355 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4356 VALLF.
4357 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4358 "aarch64_rsqrte<mode>".
4359 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4360 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
4361 builtin.
4362 (vrsqrted_f64): Likewise.
4363 (vrsqrte_f32): Likewise.
4364 (vrsqrte_f64): Likewise.
4365 (vrsqrteq_f32): Likewise.
4366 (vrsqrteq_f64): Likewise.
4367
4368 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4369
4370 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4371 (ucvtf): Likewise.
4372 (fcvtzs): Likewise.
4373 (fcvtzu): Likewise.
4374 * config/aarch64/aarch64-simd.md
4375 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4376 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4377 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4378 Use builtin.
4379 (vcvt_n_f32_u32): Likewise.
4380 (vcvt_n_s32_f32): Likewise.
4381 (vcvt_n_u32_f32): Likewise.
4382 (vcvtq_n_f32_s32): Likewise.
4383 (vcvtq_n_f32_u32): Likewise.
4384 (vcvtq_n_f64_s64): Likewise.
4385 (vcvtq_n_f64_u64): Likewise.
4386 (vcvtq_n_s32_f32): Likewise.
4387 (vcvtq_n_s64_f64): Likewise.
4388 (vcvtq_n_u32_f32): Likewise.
4389 (vcvtq_n_u64_f64): Likewise.
4390 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4391 (VSDQ_SDI): Likewise.
4392 (fcvt_target): Support V4DI, V4SI and V2SI.
4393 (FCVT_TARGET): Likewise.
4394
4395 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4396
4397 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4398 (TYPES_BINOP_SUS): Likewise.
4399 (aarch64_simd_builtin_data): Update include file name.
4400 (aarch64_builtins): Likewise.
4401 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4402 for conversion between scalar float-point and fixed-point.
4403 (ucvtf): Likewise.
4404 (fcvtzs): Likewise.
4405 (fcvtzu): Likewise.
4406 * config/aarch64/aarch64.md
4407 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4408 pattern for conversion between scalar float to fixed-pointer.
4409 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4410 (UNSPEC_FCVTZS): New UNSPEC enumeration.
4411 (UNSPEC_FCVTZU): Likewise.
4412 (UNSPEC_SCVTF): Likewise.
4413 (UNSPEC_UCVTF): Likewise.
4414 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4415 Use builtin.
4416 (vcvtd_n_f64_u64): Likewise.
4417 (vcvtd_n_s64_f64): Likewise.
4418 (vcvtd_n_u64_f64): Likewise.
4419 (vcvtd_n_f32_s32): Likewise.
4420 (vcvts_n_f32_u32): Likewise.
4421 (vcvtd_n_s32_f32): Likewise.
4422 (vcvts_n_u32_f32): Likewise.
4423 * config/aarch64/iterators.md (fcvt_target): Support integer to float
4424 mapping.
4425 (FCVT_TARGET): Likewise.
4426 (FCVT_FIXED2F): New iterator.
4427 (FCVT_F2FIXED): Likewise.
4428 (fcvt_fixed_insn): New define_int_attr.
4429
4430 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4431
4432 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4433 some statements was removed.
4434
4435 2016-06-08 Alan Hayward <alan.hayward@arm.com>
4436
4437 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4438 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4439 (vect_can_advance_ivs_p): likewise.
4440 (vect_update_ivs_after_vectorizer): likewise.
4441 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4442 (vect_analyze_scalar_cycles_1): likewise.
4443 (vect_analyze_loop_operations): likewise.
4444 (report_vect_op): likewise.
4445 (vect_is_slp_reduction): likewise.
4446 (vect_is_simple_reduction): likewise.
4447 (get_initial_def_for_induction): likewise.
4448 (vect_transform_loop): likewise.
4449 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4450 (vect_recog_sad_pattern): likewise.
4451 (vect_recog_widen_sum_pattern): likewise.
4452 (vect_recog_widening_pattern): likewise.
4453 (vect_recog_divmod_pattern): likewise.
4454 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4455 (vect_analyze_slp_instance): likewise.
4456 (vect_transform_slp_perm_load): likewise.
4457 (vect_schedule_slp_instance): likewise.
4458
4459 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4460
4461 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4462 (return_prediction): PRED_CONST_RETURN predict return as not taken.
4463 * predict.def (PRED_CONTINUE): Change hitrate 50->67
4464 (PRED_LOOP_BRANCH): Document predictor as broken.
4465 (PRED_LOOP_EXIT): Change hitrate 91->92.
4466 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4467 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4468 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4469 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4470 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4471 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4472 (PRED_CALL): Chane hitrate 71->67.
4473 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4474 (PRED_GOTO): Document as unused right now.
4475 (PRED_CONST_RETURN): Change hitrate 67->69
4476 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4477 (PRED_NULL_RETURN): Change hitrate 91->90.
4478 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4479 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4480 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4481
4482 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
4483
4484 * config/rs6000/altivec.h: Add __builtin_vec_mul.
4485 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4486 special case Altivec builtin.
4487 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4488 VSX_BUILTIN_VEC_MUL (replaced with special case code).
4489 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4490 code for ALTIVEC_BUILTIN_VEC_MUL.
4491 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4492 for __builtin_vec_mul.
4493
4494 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
4495
4496 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4497 -mno-htm.
4498
4499 2016-06-07 David Malcolm <dmalcolm@redhat.com>
4500
4501 * spellcheck.c (selftest::test_find_closest_string): New function.
4502 (spellcheck_c_tests): Call the above.
4503
4504 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4505
4506 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4507
4508 2016-06-07 Jakub Jelinek <jakub@redhat.com>
4509
4510 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4511 Yv=Yv,C alternatives.
4512
4513 2016-06-07 Richard Biener <rguenther@suse.de>
4514
4515 PR c/61564
4516 * common.opt (ffast-math): Make Optimization.
4517
4518 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4519 Prachi Godbole <prachi.godbole@imgtec.com>
4520
4521 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4522 `fabs' and `fneg' type attributes.
4523 (p5600_fpu_fabs): Add `fmove' to the comment.
4524
4525 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4526
4527 * gimple.c: Include builtins.h
4528 (gimple_inexpensive_call_p): New function.
4529 * gimple.h (gimple_inexpensive_call_p): Declare.
4530 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4531 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4532 fix formatting.
4533
4534 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4535
4536 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4537 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4538 warning_at_rich_loc, warning_n, pedwarn, permerror,
4539 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4540 sorry, fatal_error, internal_error, internal_error_no_backtrace):
4541 Use the above.
4542
4543 2016-06-07 Richard Biener <rguenther@suse.de>
4544
4545 PR tree-optimization/71428
4546 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4547 BIT_FIELD_REF op vs. load.
4548
4549 2016-06-07 Richard Biener <rguenther@suse.de>
4550
4551 PR middle-end/71423
4552 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4553 for signed ops.
4554
4555 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4556
4557 * config/pa/pa.md (call): Generate indirect long calls to non-local
4558 functions on TARGET_64BIT.
4559 (call_value): Likewise.
4560
4561 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4562
4563 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4564 pattern and subsequent splitters.
4565 (call_val_reg_64bit_post_reload): Likewise.
4566
4567 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4568
4569 PR middle-end/71408
4570 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4571 propagate_op_to_single_use.
4572
4573 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4574
4575 PR middle-end/71281
4576 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4577
4578 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4579
4580 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4581 (enum x86_dirflag_state): New enum.
4582 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4583 (machine_function): Remove needs_cld.
4584 (ix86_current_function_needs_cld): Remove.
4585 * config/i386/i386.c (ix86_set_func_type): Set
4586 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4587 (ix86_expand_prologue): Do not emit CLD here.
4588 (ix86_dirflag_mode_needed): New function.
4589 (ix86_dirflag_mode_entry): Ditto.
4590 (ix86_mode_needed): Handle X86_DIRFLAG entity.
4591 (ix86_mode_after): Ditto.
4592 (ix86_mode_entry): Ditto.
4593 (ix86_mode_exit): Ditto.
4594 (ix86_emit_mode_set): Ditto.
4595 * config/i386/i386.md (strmov_singleop): Set
4596 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4597 Do not set ix86_current_function_needs_cld.
4598 (rep_mov): Ditto.
4599 (strset_singleop): Ditto.
4600 (rep_stos): Ditto.
4601 (cmpstrnqi_nz_1): Ditto.
4602 (cmpstrnqi_1): Ditto.
4603 (strlenqi_1): Ditto.
4604
4605 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4606
4607 PR tree-optimization/71259
4608 * tree-vect-slp.c (vect_get_constant_vectors): For
4609 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4610 one for constant op, and use COND_EXPR for non-constant.
4611
4612 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4613
4614 * Makefile.in (OBJS): Add function-tests.o,
4615 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4616 selftest-run-tests.o.
4617 (OBJS-libcommon): Add selftest.o.
4618 (OBJS-libcommon-target): Add selftest.o.
4619 (all.internal): Add "selftest".
4620 (all.cross): Likewise.
4621 (selftest): New phony target.
4622 (s-selftest): New target.
4623 (selftest-gdb): New phony target.
4624 (COLLECT2_OBJS): Add selftest.o.
4625 * bitmap.c: Include "selftest.h".
4626 (selftest::test_gc_alloc): New function.
4627 (selftest::test_set_range): New function.
4628 (selftest::test_clear_bit_in_middle): New function.
4629 (selftest::test_copying): New function.
4630 (selftest::test_bitmap_single_bit_set_p): New function.
4631 (selftest::bitmap_c_tests): New function.
4632 * common.opt (fself-test): New.
4633 * diagnostic-show-locus.c: Include "selftest.h".
4634 (make_range): New function.
4635 (test_range_contains_point_for_single_point): New function.
4636 (test_range_contains_point_for_single_line): New function.
4637 (test_range_contains_point_for_multiple_lines): New function.
4638 (assert_eq): New function.
4639 (test_get_line_width_without_trailing_whitespace): New function.
4640 (selftest::diagnostic_show_locus_c_tests): New function.
4641 * et-forest.c: Include "selftest.h".
4642 (selftest::test_single_node): New function.
4643 (selftest::test_simple_tree): New function.
4644 (selftest::test_disconnected_nodes): New function.
4645 (selftest::et_forest_c_tests): New function.
4646 * fold-const.c: Include "selftest.h".
4647 (selftest::assert_binop_folds_to_const): New function.
4648 (selftest::assert_binop_folds_to_nonlvalue): New function.
4649 (selftest::test_arithmetic_folding): New function.
4650 (selftest::fold_const_c_tests): New function.
4651 * function-tests.c: New file.
4652 * gimple.c: Include "selftest.h".
4653 Include "gimple-pretty-print.h".
4654 (selftest::verify_gimple_pp): New function.
4655 (selftest::test_assign_single): New function.
4656 (selftest::test_assign_binop): New function.
4657 (selftest::test_nop_stmt): New function.
4658 (selftest::test_return_stmt): New function.
4659 (selftest::test_return_without_value): New function.
4660 (selftest::gimple_c_tests): New function.
4661 * hash-map-tests.c: New file.
4662 * hash-set-tests.c: New file.
4663 * input.c: Include "selftest.h".
4664 (selftest::assert_loceq): New function.
4665 (selftest::test_accessing_ordinary_linemaps): New function.
4666 (selftest::test_unknown_location): New function.
4667 (selftest::test_builtins): New function.
4668 (selftest::test_reading_source_line): New function.
4669 (selftest::input_c_tests): New function.
4670 * rtl-tests.c: New file.
4671 * selftest-run-tests.c: New file.
4672 * selftest.c: New file.
4673 * selftest.h: New file.
4674 * spellcheck.c: Include "selftest.h".
4675 (selftest::levenshtein_distance_unit_test_oneway): New function,
4676 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4677 (selftest::levenshtein_distance_unit_test): Likewise.
4678 (selftest::spellcheck_c_tests): Likewise.
4679 * toplev.c: Include selftest.h.
4680 (toplev::run_self_tests): New.
4681 (toplev::main): Handle -fself-test.
4682 * toplev.h (toplev::run_self_tests): New.
4683 * tree.c: Include "selftest.h".
4684 (selftest::test_integer_constants): New function.
4685 (selftest::test_identifiers): New function.
4686 (selftest::test_labels): New function.
4687 (selftest::tree_c_tests): New function.
4688 * tree-cfg.c: Include "selftest.h".
4689 (selftest::push_fndecl): New function.
4690 (selftest::test_linear_chain): New function.
4691 (selftest::test_diamond): New function.
4692 (selftest::test_fully_connected): New function.
4693 (selftest::tree_cfg_c_tests): New function.
4694 * vec.c: Include "selftest.h".
4695 (selftest::safe_push_range): New function.
4696 (selftest::test_quick_push): New function.
4697 (selftest::test_safe_push): New function.
4698 (selftest::test_truncate): New function.
4699 (selftest::test_safe_grow_cleared): New function.
4700 (selftest::test_pop): New function.
4701 (selftest::test_safe_insert): New function.
4702 (selftest::test_ordered_remove): New function.
4703 (selftest::test_unordered_remove): New function.
4704 (selftest::test_block_remove): New function.
4705 (selftest::reverse_cmp): New function.
4706 (selftest::test_qsort): New function.
4707 (selftest::vec_c_tests): New function.c.
4708 * wide-int.cc: Include selftest.h and wide-int-print.h.
4709 (selftest::from_int <wide_int>): New function.
4710 (selftest::from_int <offset_int>): New function.
4711 (selftest::from_int <widest_int>): New function.
4712 (selftest::assert_deceq): New function.
4713 (selftest::assert_hexeq): New function.
4714 (selftest::test_printing <VALUE_TYPE>): New function template.
4715 (selftest::test_ops <VALUE_TYPE>): New function template.
4716 (selftest::test_comparisons <VALUE_TYPE>): New function template.
4717 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4718 template.
4719 (selftest::wide_int_cc_tests): New function.
4720
4721 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4722
4723 PR middle-end/37780
4724 * ifcvt.c (noce_try_ifelse_collapse): New function.
4725 Declare prototype.
4726 (noce_process_if_block): Call noce_try_ifelse_collapse.
4727 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4728 (simplify_ternary_operation): Use the above to simplify
4729 conditional CLZ/CTZ expressions.
4730
4731 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4732
4733 PR middle-end/37780
4734 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4735 define_insn_and_split.
4736
4737 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4738
4739 PR middle-end/37780
4740 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4741
4742 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
4743
4744 PR c/24414
4745 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4746 Implicitly clobber memory for basic asm with non-empty assembler
4747 string. Use targetm.md_asm_adjust also here.
4748 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4749 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4750 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4751 non-empty assembler string.
4752 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4753 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4754 (decode_asm_operands): Handle basic asm in PARALLEL block.
4755 (extract_insn): Handle basic asm in PARALLEL block.
4756 * doc/extend.texi: Mention new behavior of basic asm.
4757 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4758 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4759 branch_needs_nop_p): Use asm_noperands.
4760
4761 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4762
4763 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4764 Include the M7 SPARC DFA scheduler.
4765 New attribute v3pipe.
4766 Annotate insns with v3pipe where appropriate.
4767 Define cpu_feature vis4.
4768 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4769 Add (V8QI "8") to vbits.
4770 Add insns {add,sub}v8qi3
4771 Add insns ss{add,sub}v8qi3
4772 Add insns us{add,sub}{v8qi,v4hi}3
4773 Add insns {min,max}{v8qi,v4hi,v2si}3
4774 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4775 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4776 * config/sparc/niagara4.md: Add a comment explaining the
4777 discrepancy between the documented latenty numbers and the
4778 implemented ones.
4779 * config/sparc/niagara7.md: New file.
4780 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4781 supports SPARC5 and VIS 4.0 instructions.
4782 * configure: Regenerate.
4783 * config.in: Likewise.
4784 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4785 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4786 TARGET_CPU_niagara7.
4787 (ASM_CPU64_DEFAULT_SPEC): Likewise.
4788 (CPP_CPU_SPEC): Handle niagara7.
4789 (ASM_CPU_SPEC): Likewise.
4790 * config/sparc/sparc-opts.h (processor_type): Add
4791 PROCESSOR_NIAGARA7.
4792 (mvis4): New option.
4793 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4794 (AS_NIAGARA7_FLAG): Define.
4795 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4796 (CPP_CPU64_DEFAULT_SPEC): Likewise.
4797 (CPP_CPU_SPEC): Handle niagara7.
4798 (ASM_CPU_SPEC): Likewise.
4799 * config/sparc/sparc.c (niagara7_costs): Define.
4800 (sparc_option_override): Handle niagara7 and adjust cache-related
4801 parameters with better values for niagara cpus. Also support VIS4.
4802 (sparc32_initialize_trampoline): Likewise.
4803 (sparc_use_sched_lookahead): Likewise.
4804 (sparc_issue_rate): Likewise.
4805 (sparc_register_move_cost): Likewise.
4806 (dump_target_flag_bits): Support VIS4.
4807 (sparc_vis_init_builtins): Likewise.
4808 (sparc_builtins): Likewise.
4809 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4810 VIS4 4.0.
4811 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4812 UltraSparc M7.
4813 * config/sparc/sparc.opt (sparc_processor_type): New value
4814 niagara7.
4815 * config/sparc/visintrin.h (__attribute__): Prototypes for the
4816 VIS4 builtins.
4817 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4818 -mvis4.
4819 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4820 VIS4 builtins.
4821
4822 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
4823
4824 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4825
4826 2016-06-06 Richard Biener <rguenther@suse.de>
4827
4828 PR tree-optimization/71398
4829 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4830 remove edges.
4831
4832 2016-06-05 James Bowman <james.bowman@ftdichip.com>
4833
4834 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4835 ft32_expand_prolog, ft32_expand_epilogue):
4836 Handle pretend_args.
4837 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4838 * config/ft32/ft32.md: Add pretend_returner.
4839
4840 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
4841
4842 PR target/71389
4843 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4844 Copy op1 RTX to avoid invalid sharing.
4845 (ix86_expand_vector_move_misalign): Ditto.
4846
4847 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
4848
4849 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4850 ATTRIBUTE_UNUSED.
4851
4852 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4853
4854 * predict.c (predicted_by_loop_heuristics_p): New function.
4855 (predict_iv_comparison): Use it.
4856 (predict_loops): Walk from innermost loops; do not predict edges
4857 leaving multiple loops multiple times; implement
4858 PRED_LOOP_ITERATIONS_MAX heuristics.
4859 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4860
4861 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4862
4863 * cfg.c (check_bb_profile): Do not report mismatched profiles when
4864 only edges out of BB are EH edges.
4865
4866 2016-06-04 Martin Sebor <msebor@redhat.com>
4867 Marcin Baczyński <marbacz@gmail.com>
4868
4869 PR c/48116
4870 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4871 a void expression in a void function.
4872
4873 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4874
4875 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4876 aux; dump reasons of decisions.
4877 (should_duplicate_loop_header_p): Likewise.
4878 (do_while_loop_p): Likewise.
4879 (ch_base::copy_headers): Dump asi num insns duplicated.
4880
4881 2016-06-04 Jakub Jelinek <jakub@redhat.com>
4882
4883 PR tree-optimization/71405
4884 * tree-ssa.c (execute_update_addresses_taken): For clobber with
4885 incompatible type, build a new clobber with the right type instead
4886 of building a VIEW_CONVERT_EXPR around it.
4887
4888 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4889
4890 PR tree-optimization/52171
4891 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4892 by_pieces_ninsns instead of move_by_pieces_ninsns.
4893
4894 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4895
4896 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4897 for reg+reg addressing mode.
4898
4899 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4900
4901 * rs6000-c.c (c/c-tree.h): Add #include.
4902 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4903 in C++ when found in the base position of vec_ld or vec_st.
4904
4905 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4906
4907 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4908 use of profile unless profile status is PROFILE_READ.
4909 * profile.c (compute_branch_probabilities): Set profile status
4910 only after reporting predictor hitrates.
4911
4912 2016-06-03 Joseph Myers <joseph@codesourcery.com>
4913
4914 PR target/71276
4915 PR target/71277
4916 * common.opt (ffp-int-builtin-inexact): New option.
4917 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4918 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4919 (ceil@var{m}2): Document dependence on this option.
4920 * ipa-inline-transform.c (inline_call): Handle
4921 flag_fp_int_builtin_inexact.
4922 * ipa-inline.c (can_inline_edge_p): Likewise.
4923 * config/i386/i386.md (rintxf2): Do not test
4924 flag_unsafe_math_optimizations.
4925 (rint<mode>2_frndint): New define_insn.
4926 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4927 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
4928 for 387 instead of extending and truncating.
4929 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4930 !flag_trapping_math instead of flag_unsafe_math_optimizations.
4931 Change to frndint<mode>2_<rounding>.
4932 (frndintxf2_<rounding>_i387): Likewise. Change to
4933 frndint<mode>2_<rounding>_i387.
4934 (<rounding_insn>xf2): Likewise.
4935 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4936 !flag_trapping_math instead of flag_unsafe_math_optimizations for
4937 x87. Test TARGET_ROUND || !flag_trapping_math ||
4938 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4939 SSE. Use ROUND_NO_EXC in constant operand of
4940 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
4941 for 387 instead of extending and truncating.
4942
4943 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
4944 Julia Koval <julia.koval@intel.com>
4945
4946 PR target/66960
4947 PR target/67630
4948 PR target/67634
4949 PR target/67841
4950 PR target/68037
4951 PR target/68618
4952 PR target/68661
4953 PR target/69575
4954 PR target/69596
4955 PR target/69734
4956 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4957 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4958 all registers, except for function return registers if there are
4959 no caller-saved registers.
4960 (ix86_set_func_type): New function.
4961 (ix86_set_current_function): Call ix86_set_func_type to set
4962 no_caller_saved_registers and func_type. Call reinit_regs if
4963 caller-saved registers are changed. Don't allow MPX, SSE, MMX
4964 nor x87 instructions in interrupt handler nor function with
4965 no_caller_saved_registers attribute.
4966 (ix86_function_ok_for_sibcall): Return false if there are no
4967 caller-saved registers.
4968 (type_natural_mode): Don't warn ABI change for MMX in interrupt
4969 handler.
4970 (ix86_function_arg_advance): Skip for callee in interrupt handler.
4971 (ix86_function_arg): Return special arguments in interrupt handler.
4972 (ix86_promote_function_mode): Promote pointer to word_mode only
4973 for normal functions.
4974 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4975 interrupt handler.
4976 (ix86_epilogue_uses): New function.
4977 (ix86_hard_regno_scratch_ok): Likewise.
4978 (ix86_save_reg): Preserve all registers in interrupt handler
4979 after reload. Preserve all registers, except for function return
4980 registers, if there are no caller-saved registers after reload.
4981 (find_drap_reg): Always use callee-saved register if there are
4982 no caller-saved registers.
4983 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4984 for interrupt handler.
4985 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4986 Emit cld instruction if stringops are used in interrupt handler
4987 or interrupt handler isn't a leaf function.
4988 (ix86_expand_epilogue): Generate interrupt return for interrupt
4989 handler and pop the 'ERROR_CODE' off the stack before interrupt
4990 return in exception handler.
4991 (ix86_expand_call): Disallow calling interrupt handler directly.
4992 If there are no caller-saved registers, mark all registers that
4993 are clobbered by the call which returns as clobbered.
4994 (ix86_handle_no_caller_saved_registers_attribute): New function.
4995 (ix86_handle_interrupt_attribute): Likewise.
4996 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
4997 attributes.
4998 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
4999 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5000 accumulation in interrupt function if stack may be realigned to
5001 avoid DRAP.
5002 (EPILOGUE_USES): New.
5003 (function_type): New enum.
5004 (machine_function): Add func_type and no_caller_saved_registers.
5005 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5006 (interrupt_return): New pattern.
5007 * doc/extend.texi: Document x86 interrupt and
5008 no_caller_saved_registers attributes.
5009
5010 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5011
5012 PR tree-optimization/52171
5013 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5014 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
5015 Look for constant strings. Move some code to emit_block_cmp_hints
5016 and use it.
5017 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5018 * defaults.h (COMPARE_MAX_PIECES): New macro.
5019 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5020 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5021 (clear_by_pieces_1): Don't declare. Move definition before use.
5022 (can_do_by_pieces): New static function.
5023 (can_move_by_pieces): Use it. Return bool.
5024 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
5025 OP. All callers changed. Handle COMPARE_BY_PIECES.
5026 (class pieces_addr); New.
5027 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5028 pieces_addr::adjust, pieces_addr::increment_address,
5029 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5030 functions for it.
5031 (class op_by_pieces_d): New.
5032 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5033 functions for it.
5034 (class move_by_pieces_d, class compare_by_pieces_d,
5035 class store_by_pieces_d): New subclasses of op_by_pieces_d.
5036 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5037 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5038 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5039 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5040 compare_by_pieces_d::finish_mode): New member functions.
5041 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5042 functions.
5043 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5044 (emit_block_cmp_hints): New function.
5045 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5046 use the newly defined classes.
5047 * expr.h (by_pieces_constfn): New typedef.
5048 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5049 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5050 (move_by_pieces_ninsns): Don't declare.
5051 (can_move_by_pieces): Change return value to bool.
5052 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5053 (compare_by_pieces_branch_ratio): New hook.
5054 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5055 (by_pieces_ninsns): Declare.
5056 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5057 COMPARE_BY_PIECES.
5058 (default_compare_by_pieces_branch_ratio): New function.
5059 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5060 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5061 * doc/tm.texi: Regenerate.
5062 * tree-ssa-strlen.c: Include "builtins.h".
5063 (handle_builtin_memcmp): New static function.
5064 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5065 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5066
5067 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5068
5069 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5070 relevant stmts which are simple and invariant.
5071 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5072 instead of simple and invariant
5073
5074 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5075
5076 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5077 (vectorizable_reduction): Check for new relevant state.
5078 (vectorizable_live_operation): vectorize live stmts using
5079 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
5080 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5081 (vect_stmt_relevant_p): Check for stmts which are only used live.
5082 (process_use): Use of a stmt does not inherit it's live value.
5083 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5084 (vect_analyze_stmt): Check for new relevant state.
5085 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5086 outside the loop, but not inside it.
5087
5088 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5089
5090 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5091 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5092 (vect_get_vec_def_for_operand): Split out code.
5093
5094 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5095
5096 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5097
5098 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5099
5100 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5101
5102 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5103
5104 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5105
5106 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5107
5108 PR middle-end/71387
5109 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5110 to noreturn e->callee->decl that has void return type and void
5111 arguments, adjust gimple_call_fntype and remove lhs even if it had
5112 previously addressable type.
5113
5114 2016-06-02 Jeff Law <law@redhat.com>
5115
5116 PR tree-optimization/71328
5117 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5118 error when checking for a jump back onto the copied path.
5119
5120 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5121
5122 * config/microblaze/microblaze.c (get_branch_target): Add return
5123 NULL_RTX for the non-CALL_P case.
5124 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5125 (insert_wic): Remove unused local "j".
5126
5127 2016-06-02 Martin Liska <mliska@suse.cz>
5128
5129 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5130
5131 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5132 Julia Koval <julia.koval@intel.com>
5133
5134 * function.c (assign_parm_setup_stack): Force source into a
5135 register if needed.
5136 * target.def (function_incoming_arg): Update documentation to
5137 allow arbitrary address computation based on hard register.
5138 * doc/tm.texi: Regenerated.
5139
5140 2016-06-02 Martin Liska <mliska@suse.cz>
5141
5142 * predict.c (combine_predictions_for_bb): Fix first match in
5143 cases where a first predictor contains more than one occurence
5144 in list of predictors. Take the best value in such case.
5145
5146 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5147
5148 PR rtl-optimization/71295
5149 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5150 offset would go over the size of the inner mode reject it.
5151
5152 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5153
5154 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5155 x=x,x and v=v,m instead of x=x,m.
5156
5157 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5158 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
5159 alternative to v=rm,C.
5160
5161 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5162 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
5163 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
5164 instead of vex for the last two above mentioned alternatives.
5165
5166 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5167
5168 PR target/70830
5169 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5170
5171 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5172
5173 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5174
5175 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5176
5177 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5178 from int to unsigned.
5179
5180 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5181
5182 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5183 alternatives, eliminating preferred register class. Add support
5184 for the MTVSRDD instruction in ISA 3.0.
5185 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5186 reg_or_indexed_operand.
5187 (vsx_splat_v4sf_internal): Likewise.
5188
5189 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5190
5191 PR target/71186
5192 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5193 for loading up all 0's or all 1's.
5194
5195 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5196
5197 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5198
5199 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5200
5201 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5202 extension.
5203 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5204 * gcc.c (set_source_date_epoch_envvar): New function, sets
5205 the SOURCE_DATE_EPOCH environment variable to the current time.
5206
5207 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5208
5209 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5210 the factor for live Phi nodes.
5211
5212 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5213
5214 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5215 * tree-parloops.c (parallelize_loops): likewise.
5216 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5217 tree_unswitch_outer_loop): likewise.
5218
5219 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5220
5221 PR middle-end/71371
5222 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5223 around creation of the temporary.
5224
5225 2016-06-01 Richard Biener <rguenther@suse.de>
5226
5227 PR tree-optimization/71366
5228 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5229 (unloop_loops): Move removing edges here ...
5230 (try_unroll_loop_completely): ... from here.
5231 (try_peel_loop): ... and here.
5232 (tree_unroll_loops_completely_1): Track parent loops via
5233 bitmap of header BBs.
5234 (tree_unroll_loops_completely): Adjust for that.
5235
5236 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5237
5238 * config/rs6000/altivec.h (vec_slv): New macro.
5239 (vec_srv): New macro.
5240 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5241 (UNSPEC_VSRV): New value.
5242 (vslv): New insn.
5243 (vsrv): New insn.
5244 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5245 (vsrv): New builtin definition.
5246 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5247 define argument types for new builtin.
5248 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5249 new builtin.
5250 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5251 functions.
5252
5253 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5254 Jocelyn Mayer <l_indien@magic.fr>
5255
5256 PR target/67310
5257 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5258 detect processor family for signature_CENTAUR_ebx.
5259 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5260 signature_CENTAUR_ebx.
5261 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5262 <default>: Pass x86-64 for has_longmode.
5263
5264 2016-06-01 Nathan Sidwell <nathan@acm.org>
5265
5266 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5267 undefined weak.
5268
5269 2016-06-01 Richard Biener <rguenther@suse.de>
5270
5271 PR tree-optimization/71261
5272 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5273 of stmts successfully put in the bool pattern. Remove
5274 single-use restriction.
5275 (adjust_bool_pattern_cast): Add cast at the use site via the
5276 pattern def sequence.
5277 (adjust_bool_pattern): Remove recursion, maintain a hash-map
5278 of patterned defs. Use the pattern def seqence instead of
5279 multiple independent patterns.
5280 (sort_after_uid): New qsort compare function.
5281 (adjust_bool_stmts): New function to process stmts in the bool
5282 pattern in IL order.
5283 (vect_recog_bool_pattern): Adjust.
5284 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5285 (ifcvt_walk_pattern_tree): Likewise.
5286 (stmt_is_root_of_bool_pattern): Likewise.
5287 (ifcvt_repair_bool_pattern): Likewise.
5288 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5289
5290 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5291
5292 * loop-unroll.c (decide_unroll_constant_iterations,
5293 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5294 likely upper bounds.
5295 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5296
5297 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5298
5299 * tree-core.h (enum omp_clause_code): Remove
5300 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5301
5302 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5303
5304 * config/arm/sync.md (arm_store_exclusive<mode>):
5305 Use 'H' output modifier on operands[2] rather than creating a new
5306 entry in out-of-bounds memory of the operands array.
5307 (arm_store_release_exclusivedi): Likewise.
5308
5309 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5310
5311 * config/arm/arm.c (arm_fusion_enabled_p): New function.
5312 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5313 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5314 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5315
5316 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5317
5318 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5319 into account live statements for mask producers.
5320
5321 2016-06-01 Richard Biener <rguenther@suse.de>
5322
5323 PR tree-optimization/71311
5324 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5325 restrict to non-INTEGER_CST @0.
5326
5327 2016-06-01 Richard Biener <rguenther@suse.de>
5328
5329 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5330 (relational patterns): Use :c to avoid pattern duplications.
5331
5332 2016-06-01 Richard Biener <rguenther@suse.de>
5333
5334 * genmatch.c (comparison_code_p): New predicate.
5335 (swap_tree_comparison): New function.
5336 (commutate): Add for_vec parameter to append new for entries.
5337 Support commutating relational operators by swapping it alongside
5338 operands.
5339 (lower_commutative): Adjust.
5340 (dt_simplify::gen): Do not pass artificial operators to gen
5341 functions.
5342 (decision_tree::gen): Do not add artificial operators as parameters.
5343 (parser::parse_expr): Verify operator commutativity when :c is
5344 applied. Allow :C to override this.
5345 * match.pd: Adjust patterns to use :C instead of :c where required.
5346
5347 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5348
5349 PR tree-optimization/71077
5350 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5351 the combining step, use boolean_false_node and boolean_true_node
5352 as the designated false/true return values.
5353
5354 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5355
5356 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5357 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5358 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5359 PRED_LOOP_EXIT.
5360
5361 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5362
5363 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5364 of flags impliying the register renaming.
5365 * toplev.c (process_options): Do not imply flag_rename_registers with
5366 loop peeling.
5367
5368 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5369
5370 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5371 default implementation.
5372
5373 2016-05-31 Nathan Sidwell <nathan@acm.org>
5374
5375 * dwarf2out.c (cur_line_info_table): Add GTY marker.
5376
5377 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5378
5379 * config/sh/constraints.md (b): Remove constraint.
5380 * config/sh/predicates.md (arith_reg_operand): Remove
5381 TARGET_REGISTER_P.
5382 * config/sh/sh-modes.def (PDI): Remove.
5383 * config/sh/sh.c (sh_target_reg_class,
5384 sh_optimize_target_register_callee_saved): Remove functions.
5385 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5386 (sh_expand_epilogue): Update comment.
5387 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5388 sh_secondary_reload): Remove TARGET_REGS related code.
5389 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5390 TARGET_REGISTER_P): Remove macros.
5391 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5392 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5393 TR1_REG, TR2_REG): Remove constants.
5394 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5395
5396 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5397
5398 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5399 define_expand patterns.
5400 (adddi3_compact): Rename to adddi3.
5401 (subdi3_compact): Rename to subdi3.
5402 (*negdi2): Rename to negdi2.
5403 (*abs<mode>2): Rename to abs<mode>2.
5404
5405 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5406
5407 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5408 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5409 (atomic_sub_fetchsi): ... this new pattern.
5410 (mvtc): Add CC_REG clobber.
5411
5412 2016-05-31 Marek Polacek <polacek@redhat.com>
5413
5414 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5415
5416 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5417
5418 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5419 aarch64_fusion_enabled_p to check for fusion capabilities.
5420
5421 2016-05-31 Richard Biener <rguenther@suse.de>
5422
5423 PR tree-optimization/71352
5424 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5425 minus one and a negate.
5426
5427 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5428
5429 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5430 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5431 Delete prototype.
5432 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5433 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5434 Remove use of aarch64_simd_attr_length_move, set length attribute
5435 directly.
5436 (*aarch64_be_movoi): Likewise.
5437 (*aarch64_be_movci): Likewise.
5438 (*aarch64_be_movxi): Likewise.
5439
5440 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5441
5442 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5443 It no longer does that.
5444 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5445
5446 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
5447
5448 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5449 attribute __unused__.
5450
5451 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5452
5453 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5454 * config/arm/arm.c (arm_arch_thumb1): Define.
5455 (arm_option_override): Initialize arm_arch_thumb1.
5456 * config/arm/arm.h (arm_arch_thumb1): Declare.
5457 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5458 support Thumb-1 ISA.
5459
5460 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
5461
5462 PR target/71346
5463 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5464 `Yv' for scalar operand.
5465
5466 2016-05-31 Tom de Vries <tom@codesourcery.com>
5467
5468 PR tree-optimization/69068
5469 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5470 phis with more than two args.
5471
5472 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5473
5474 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5475 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5476 target.
5477
5478 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5479
5480 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5481 tune_64.
5482 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5483 support on SPARC.
5484 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5485 cpu_32, cpu_64, tune_32 and tune_64.
5486 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5487
5488 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5489
5490 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5491
5492 2016-05-30 Andi Kleen <ak@linux.intel.com>
5493
5494 * auto-profile.c (read_profile): Replace asserts with errors
5495 when file does not exist.
5496 * gcov-io.c (gcov_read_words): Dito.
5497
5498 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5499
5500 * tree-cfg.c (print_loop): Print likely upper bounds.
5501
5502 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5503
5504 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5505 * opts.c (default_options): Enable peel loops at -O3.
5506 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5507 (try_peel_loop): Do not re-peel already peeled loops;
5508 use likely upper bounds; fix profile updating.
5509 (pass_complete_unroll::execute): Initialize peeled_loops.
5510
5511 2016-05-30 Martin Liska <mliska@suse.cz>
5512
5513 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5514 computed costs by frequency of BB they belong to.
5515 (get_scaled_computation_cost_at): New function.
5516
5517 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5518 Marc Glisse <marc.glisse@inria.fr>
5519
5520 PR tree-optimization/71289
5521 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5522
5523 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5524
5525 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5526
5527 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5528
5529 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5530 for peeled copies; avoid underflow when updating estimates; correctly
5531 scale loop profile.
5532
5533 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5534
5535 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5536 r236875. Corrected oe3 to oe2 as obvious.
5537
5538 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5539
5540 PR middle-end/71269
5541 PR middle-end/71252
5542 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5543 that inserted stmt will not dominate stmts that defines its operand.
5544 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5545 (rewrite_expr_tree_parallel): Likewise.
5546
5547 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5548
5549 PR middle-end/71252
5550 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5551 all fields including stmt_to_insert are swapped.
5552
5553 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5554
5555 * predict.h (force_edge_cold): Declare.
5556 * predict.c (force_edge_cold): New function.
5557 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5558 updating.
5559 (canonicalize_loop_induction_variables): Fix formating.
5560
5561 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5562
5563 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5564 (visium_expand_copysign): Use gen_int_mode directly.
5565 (visium_compute_frame_size): Minor tweaks.
5566
5567 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5568
5569 * tree-vect-loop.c (vect_analyze_loop_2): Use
5570 likely_max_stmt_executions_int.
5571
5572 2016-05-30 Tom de Vries <tom@codesourcery.com>
5573
5574 PR tree-optimization/69067
5575 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5576
5577 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5578
5579 PR target/71245
5580 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5581 New peepholes to remove unneeded fild/fistp pairs.
5582 (define_peephole2 atomic_loaddi_fpu): Ditto.
5583
5584 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5585
5586 * predict.c (maybe_hot_frequency_p): Avoid division.
5587
5588 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5589
5590 * doc/install.texi: Use https for shop.fsf.org.
5591
5592 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5593
5594 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5595 likely_max_stmt_executions_int.
5596
5597 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5598
5599 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5600 likely_max_stmt_executions_int.
5601
5602 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5603
5604 * profile.c (compute_branch_probabilities): Do not report hitrates
5605 here.
5606 (branch_prob): Report hitrates here.
5607 * predict.c (gimple_predict_edge): Do not assert profile status;
5608 fix formatting issues.
5609
5610 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5611
5612 * predict.c (edge_predicted_by_p): New function.
5613 (predict_paths_for_bb): Do not put multiple predictions of the same type
5614 on one edge.
5615
5616 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5617
5618 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5619 commit.
5620
5621 2016-05-28 Alan Modra <amodra@gmail.com>
5622
5623 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5624
5625 2016-05-28 Alan Modra <amodra@gmail.com>
5626
5627 PR rtl-optimization/71275
5628 * ira.c (ira): Free dominance info.
5629
5630 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5631
5632 * doc/sourcebuild.texi: New address for upstream Go repository.
5633
5634 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5635
5636 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5637 (TARGET_ARM_V7M): Likewise.
5638
5639 2016-05-26 Jeff Law <law@redhat.com>
5640
5641 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5642 (thread_across_edge): Remove calls to find_jump_threads_backwards.
5643 * passes.def: Add jump threading passes before DOM/VRP.
5644 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5645 argument to a basic block from an edge. Remove tests which are
5646 handled elsewhere.
5647 (pass_data_thread_jumps, class pass_thread_jumps): New.
5648 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5649 (make_pass_thread_jumps): Likewise.
5650 * tree-pass.h (make_pass_thread_jumps): Declare.
5651
5652 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5653
5654 * config/visium/visium-protos.h (split_double_move): Rename into...
5655 (visium_split_double_move): ...this.
5656 (visium_split_double_add): Declare.
5657 * config/visium/visium.c (split_double_move): Rename into...
5658 (visium_split_double_move): ...this.
5659 (visium_split_double_add): New function.
5660 (visium_expand_copysign): Renumber operands for consistency.
5661 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5662 (DFmode move splitter): Likewise.
5663 (*addi3_insn): Split by means of visium_split_double_add.
5664 (*adddi3_insn_flags): Delete.
5665 (*plus_plus_sltu<subst_arith>): New insn.
5666 (*subdi3_insn): Split by means of visium_split_double_add.
5667 (subdi3_insn_flags): Delete.
5668 (*minus_minus_sltu<subst_arith>): New insn.
5669 (*negdi2_insn): Split by means of visium_split_double_add.
5670 (*negdi2_insn_flags): Delete.
5671
5672 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
5673
5674 * configure.ac: Treat a --with-headers option without argument
5675 the same as the default (i.e. consult sys-include directory).
5676 * configure: Regenerate.
5677
5678 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5679
5680 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5681 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5682 prototype.
5683 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5684 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5685
5686 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5687
5688 PR target/63596
5689 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5690 tree-stdarg analysis results.
5691 (aarch64_setup_incoming_varargs): Likewise.
5692
5693 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5694
5695 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5696 va_list_gpr_counter_field and va_list_fpr_counter_field.
5697
5698 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
5699
5700 PR67609
5701 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5702 * config/aarch64/aarch64.c
5703 (aarch64_cannot_change_mode_class): Remove function.
5704 * config/aarch64/aarch64-protos.h
5705 (aarch64_cannot_change_mode_class): Remove.
5706
5707 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5708
5709 * cfgloop.c (record_niter_bound): Record likely upper bounds.
5710 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5711 get_likely_max_loop_iterations_int): New.
5712 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5713 any_likely_upper_bound.
5714 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5715 Declare.
5716 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5717 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5718 upper bound.
5719 (unroll_loop_constant_iterations): Likewise.
5720 (unroll_loop_runtime_iterations): Likewise.
5721 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5722 * lto-streamer-out.c (output_cfg): Likewise.
5723 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5724 bounds.
5725 (canonicalize_loop_induction_variables): Dump likely upper bounds.
5726 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5727 (likely_max_loop_iterations): New.
5728 (likely_max_loop_iterations_int): New.
5729 (likely_max_stmt_executions): New.
5730 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5731 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5732 likely_max_stmt_executions): Declare.
5733
5734 2016-05-27 Marek Polacek <polacek@redhat.com>
5735
5736 PR middle-end/71308
5737 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5738
5739 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5740
5741 * config/s390/s390.md (2x risbg splitters): Use
5742 reg_overlap_mentioned_p instead of rtx_equal_p.
5743
5744 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5745
5746 * combine.c (make_compound_operation): Take known zero bits into
5747 account when checking for possible zero_extend.
5748
5749 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5750
5751 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5752 Use const_int_operand for operand 2 predicate. Simplify expand code
5753 as a result.
5754
5755 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5756
5757 PR middle-end/71279
5758 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5759 into comparison.
5760
5761 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5762
5763 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5764 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5765 that returns CC_SESWPmode and CC_ZESWPmode.
5766 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5767 and CC_SESWPmode.
5768 (aarch64_rtx_costs): Likewise.
5769
5770 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5771
5772 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5773 for ISA 3.0 min/max support.
5774 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5775 conditional move support.
5776 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5777 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5778 available.
5779 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5780 conditional moves where the comparison type is different from move
5781 type.
5782 (fp_minmax): New code iterator for smin/smax.
5783 (minmax): New code attributes for min/max.
5784 (SMINMAX): Likewise.
5785 (smax<mode>3): Combine min, max insns into one insn using the
5786 fp_minmax code iterator. Add support for ISA 3.0 min/max
5787 instructions that don't need -ffast-math.
5788 (s<minmax><mode>3): Likewise.
5789 (smax<mode>3_vsx): Likewise.
5790 (smin<mode>3): Likewise.
5791 (s<minmax><mode>3_vsx): Likewise.
5792 (smin<mode>3_vsx): Likewise.
5793 (pre-VSX min/max splitters): Likewise.
5794 (s<minmax><mode>3_fpr): Likewise.
5795 (movsfcc): Rewrite floating point conditional moves to combine
5796 SFmode/DFmode into a single insn.
5797 (mov<mode>cc): Likewise.
5798 (movdfcc): Likewise.
5799 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5800 SFDF2 iterators to handle all combinations.
5801 (fseldfsf4): Likewise.
5802 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5803 (fseldfdf4): Likewise.
5804 (fselsfdf4): Likewise.
5805 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5806 comparison instructions that set a 0/-1 mask, and use it for
5807 floating point conditional move via XXSEL.
5808 (fpmask<mode>): Likewise.
5809 (xxsel<mode>): Likewise.
5810 * config/rs6000/predicates.md (min_max_operator): Delete, no
5811 longer used.
5812 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5813 instructions that generate a 0/-1 mask for use with XXSEL.
5814 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5815 say whether floating point min/max is available, either through
5816 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5817 (TARGET_MINMAX_DF): Likewise.
5818
5819 2016-05-27 Alan Modra <amodra@gmail.com>
5820
5821 PR rtl-optimization/71275
5822 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5823 for update_equiv_regs and combine_and_move_insns.
5824
5825 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
5826
5827 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5828 if_then_else or cond RTXes to calculate attribute value.
5829 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5830 <attr "length_immediate>: Ditto.
5831 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5832 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5833 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5834 <attr "type">: Ditto.
5835 <attr "prefix_data16">: Ditto.
5836 <attr "prefix_extra">: Ditto.
5837 <attr "length_immediate">: Ditto.
5838 <attr "prefix">: Ditto.
5839 (vec_set<mode>_0) <attr "isa">: Ditto.
5840 <attr "prefix_extra">: Ditto.
5841 <attr "length_immediate">: Ditto.
5842 <attr "prefix">: Ditto.
5843 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5844 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5845 (sse2_storelpd) <attr "prefix_data16">: Ditto.
5846 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5847 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5848 <attr "length_immediate">: Ditto.
5849 <attr "prefix">: Ditto.
5850 (sse2_movsd) <attr "length_immediate">: Ditto.
5851 <attr "prefix">: Ditto.
5852 (vec_concatv2df) <attr "isa">: Ditto.
5853 <attr "prefix">: Ditto.
5854 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5855 (*vec_extractv2di_1) <attr "isa">: Ditto.
5856 <attr "type">: Ditto.
5857 <attr "length_immediate">: Ditto.
5858 <attr "prefix_rex">: Ditto.
5859 <attr "prefix_extra">: Ditto.
5860 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5861 <attr "prefix_extra">: Ditto.
5862 <attr "length_immediate">: Ditto.
5863 (vec_concatv2di) <attr "isa">: Ditto.
5864 <attr "prefix_extra">: Ditto.
5865 <attr "length_immediate">: Ditto.
5866 <attr "prefix">: Ditto.
5867
5868 2016-05-26 Martin Liska <mliska@suse.cz>
5869
5870 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5871 function.
5872 (operator+): Likewise.
5873 (operator-): Likewise.
5874 (comp_cost::operator+=): Likewise.
5875 (comp_cost::operator-=): Likewise.
5876 (comp_cost::operator/=): Likewise.
5877 (comp_cost::operator*=): Likewise.
5878 (operator<): Likewise.
5879 (operator==): Likewise.
5880 (operator<=): Likewise.
5881 (new_cost): Remove.
5882 (infinite_cost_p): Likewise.
5883 (add_costs): Likewise.
5884 (sub_costs): Likewise.
5885 (compare_costs): Likewise.
5886 (set_group_iv_cost): Use the newly introduced functions.
5887 (get_address_cost): Likewise.
5888 (get_shiftadd_cost): Likewise.
5889 (force_expr_to_var_cost): Likewise.
5890 (split_address_cost): Likewise.
5891 (ptr_difference_cost): Likewise.
5892 (difference_cost): Likewise.
5893 (get_computation_cost_at): Likewise.
5894 (determine_group_iv_cost_generic): Likewise.
5895 (determine_group_iv_cost_address): Likewise.
5896 (determine_group_iv_cost_cond): Likewise.
5897 (autoinc_possible_for_pair): Likewise.
5898 (determine_group_iv_costs): Likewise.
5899 (cheaper_cost_pair): Likewise.
5900 (iv_ca_recount_cost): Likewise.
5901 (iv_ca_set_no_cp): Likewise.
5902 (iv_ca_set_cp): Likewise.
5903 (iv_ca_cost): Likewise.
5904 (iv_ca_new): Likewise.
5905 (iv_ca_dump): Likewise.
5906 (iv_ca_narrow): Likewise.
5907 (iv_ca_prune): Likewise.
5908 (iv_ca_replace): Likewise.
5909 (try_add_cand_for): Likewise.
5910 (try_improve_iv_set): Likewise.
5911 (find_optimal_iv_set): Likewise.
5912
5913 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
5914
5915 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5916 that internal functions will clobber all caller-saved registers.
5917
5918 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5919
5920 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5921 Return a better case_values_threshold when optimizing.
5922
5923 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5924
5925 * config/aarch64/aarch64-simd.md (aarch64_combinez):
5926 Add ? to integer variant.
5927 (aarch64_combinez_be): Likewise.
5928
5929 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5930
5931 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5932 instead of x constraint.
5933 (vcvtps2ph256<mask_name>): Likewise.
5934
5935 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5936 alternative. Formatting fix.
5937
5938 * config/i386/sse.md
5939 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5940 to ...
5941 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5942 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
5943 maybe_evex prefix instead of vex.
5944 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
5945 EXT_REX_SSE_REG_P (op0) case in the splitter.
5946
5947 2016-05-25 Jeff Law <law@redhat.com>
5948
5949 PR tree-optimization/71272
5950 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5951 Update comments. Add test for empty path.
5952
5953 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5954
5955 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5956 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5957 special case builtin.
5958 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5959 code for ALTIVEC_BUILTIN_VEC_CMPNE.
5960 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5961 for __builtin_vec_cmpne.
5962
5963 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
5964
5965 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5966 redundant test and bail out if the type of the new operand is not
5967 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5968
5969 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5970
5971 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5972 (x_ix86_target_flags_explicit): Remove.
5973 * config/i386/i386.c (ix86_function_specific_save): Do not copy
5974 x_ix86_target_flags_explicit.
5975 (ix86_function_specific_restore): Ditto.
5976
5977 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5978 H.J. Lu <hongjiu.lu@intel.com>
5979
5980 PR target/70738
5981 * common/config/i386/i386-common.c
5982 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5983 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5984 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5985 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5986 (-mgeneral-regs-only): Add new option.
5987 * config/i386/i386.c (ix86_option_override_internal): Don't enable
5988 x87 instructions if only general registers are allowed.
5989 (ix86_target_string): Add ix86_flags argument. Handle additional
5990 flags options through ix86_flags argument. Update all callers.
5991 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5992
5993 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5994
5995 PR rtl-optimization/66940
5996 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
5997 decrementing desired_val will not overflow before performing these
5998 operations.
5999
6000 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6001
6002 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6003 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6004 * config/i386/i386.c (enum ix86_builtins): Add
6005 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6006 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6007 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6008 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6009 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6010 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6011 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6012 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6013 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6014 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6015 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6016 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6017 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6018 __builtin_ia32_cvtps2dq512_mask.
6019 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6020 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6021 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6022 * config/i386/sse.md
6023 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6024 Rename to ...
6025 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6026 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6027 to ...
6028 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6029 (avx512f_vec_pack_sfix_v8df): New define_expand.
6030 (avx512f_roundpd512): Rename to ...
6031 (avx512f_round<castmode>512): ... this. Change iterator.
6032 (avx512f_roundps512_sfix): New define_expand.
6033 (round<mode>2_sfix): Change iterator.
6034
6035 2016-05-25 Nick Clifton <nickc@redhat.com>
6036
6037 * config/msp430/msp430.c (msp430_attr): Produce an error if a
6038 static interrupt handler is detected.
6039 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6040 default linker script.
6041 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6042 the low part of a symbolic pointer.
6043
6044 2016-05-25 Richard Biener <rguenther@suse.de>
6045
6046 PR tree-optimization/71261
6047 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6048 interesting stmt instead of immediate uses when looking
6049 for the use operand to replace.
6050
6051 2016-05-25 Martin Liska <mliska@suse.cz>
6052
6053 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6054
6055 2016-05-25 Richard Biener <rguenther@suse.de>
6056
6057 PR tree-optimization/71264
6058 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6059 vector type val.
6060
6061 2016-05-25 Martin Liska <mliska@suse.cz>
6062
6063 PR tree-optimization/71239
6064 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6065 if DECL_SIZE is NULL.
6066
6067 2016-05-25 Richard Biener <rguenther@suse.de>
6068
6069 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6070 * tree-if-conv.c (pass_data_if_conversion): Use it.
6071
6072 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6073
6074 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6075 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6076 * varpool.c (varpool_node::get_availability): Likewise.
6077
6078 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6079
6080 * config/rs6000/altivec.md (VNEG iterator): New iterator for
6081 VNEGW/VNEGD instructions.
6082 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6083 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6084 support for ISA 3.0 VNEGW/VNEGD instructions.
6085
6086 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6087
6088 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6089 pointers inside OACC_DATA regions.
6090 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6091 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6092 (gimplify_adjust_omp_clauses): Fix typo in comment.
6093
6094 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6095
6096 * config/rs6000/altivec.md (VParity): New mode iterator for vector
6097 parity built-in functions.
6098 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6099 zeros.
6100 (p9v_parity<mode>2): Likewise.
6101 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6102 parity.
6103 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6104 (parity<mode>2): ISA 3.0 expander for vector parity.
6105 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6106 power9 built-ins.
6107 (BU_P9_64BIT_MISC_0): Likewise.
6108 (BU_P9_MISC_0): Likewise.
6109 (BU_P9V_AV_1): Likewise.
6110 (BU_P9V_AV_2): Likewise.
6111 (BU_P9V_AV_3): Likewise.
6112 (BU_P9V_AV_P): Likewise.
6113 (BU_P9V_VSX_1): Likewise.
6114 (BU_P9V_OVERLOAD_1): Likewise.
6115 (BU_P9V_OVERLOAD_2): Likewise.
6116 (BU_P9V_OVERLOAD_3): Likewise.
6117 (VCTZB): Add vector count trailing zeros support.
6118 (VCTZH): Likewise.
6119 (VCTZW): Likewise.
6120 (VCTZD): Likewise.
6121 (VPRTYBD): Add vector parity support.
6122 (VPRTYBQ): Likewise.
6123 (VPRTYBW): Likewise.
6124 (VCTZ): Add overloaded vector count trailing zeros support.
6125 (VPRTYB): Add overloaded vector parity support.
6126 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6127 overloaded vector count trailing zeros and parity instructions.
6128 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6129 vector parity support.
6130 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6131 trailing zeros support.
6132 (vec_cntlz): Likewise.
6133 (vec_vctzb): Likewise.
6134 (vec_vctzd): Likewise.
6135 (vec_vctzh): Likewise.
6136 (vec_vctzw): Likewise.
6137 (vec_vprtyb): Add ISA 3.0 vector parity support.
6138 (vec_vprtybd): Likewise.
6139 (vec_vprtybw): Likewise.
6140 (vec_vprtybq): Likewise.
6141 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6142 the ISA 3.0 vector count trailing zeros and vector parity built-in
6143 functions.
6144
6145 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6146
6147 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6148 when there is stmt_to_insert.
6149
6150 2016-05-24 Martin Sebor <msebor@redhat.com>
6151
6152 PR c++/71147
6153 * tree.h (complete_or_array_type_p): New inline function.
6154
6155 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6156
6157 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6158 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6159 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6160
6161 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6162 Limit 1st alternative to noavx isa, split 2nd alternative into one
6163 noavx and one avx alternative, use *x and Bm in the former and
6164 x and m in the latter.
6165
6166 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6167 of sse4 for the first alternative, drop %v from the template
6168 and d operand modifier. Split second alternative into one sse4_noavx
6169 and one avx alternative, use *x instead of *v in the former and v
6170 instead of *v in the latter.
6171 (*sse4_1_extractps): Use noavx isa instead of * for the first
6172 alternative, drop %v from the template. Split second alternative into
6173 one noavx and one avx alternative, use *x instead of *v in the
6174 former and v instead of *v in the latter.
6175 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6176 with noavx and the last one with avx.
6177 (sse4_1_phminposuw): Guard first alternative with noavx isa,
6178 split the second one into one noavx and one avx alternative,
6179 use *x and Bm in the former and x and m in the latter one.
6180 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6181 alternatives.
6182
6183 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6184 first two alternatives to noavx, use *x instead of *v in the second
6185 one, add avx alternative without *.
6186 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6187 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6188 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6189
6190 2016-05-24 Jeff Law <law@redhat.com>
6191
6192 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6193 New function, extracted from...
6194 (fsm_find_control_statement_thread_paths): Here. Use the new function.
6195 Allow simple copies and constant initializations in the SSA chain.
6196
6197 2016-05-24 Marek Polacek <polacek@redhat.com>
6198
6199 PR c/71249
6200 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6201 scope.
6202
6203 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6204
6205 PR c++/71257
6206 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6207 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6208 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
6209 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6210 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6211
6212 2016-05-24 Richard Biener <rguenther@suse.de>
6213
6214 PR tree-optimization/71240
6215 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6216 has integral type.
6217
6218 2016-05-24 Richard Biener <rguenther@suse.de>
6219
6220 PR tree-optimization/71230
6221 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6222
6223 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6224
6225 * tree-vectorizer.h (vectorizable_comparison): Delete.
6226 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6227 PURE_SLP_STMT check.
6228 * tree-vect-stmts.c (vectorizable_call): Likewise.
6229 (vectorizable_simd_clone_call): Likewise.
6230 (vectorizable_conversion): Likewise.
6231 (vectorizable_assignment): Likewise.
6232 (vectorizable_shift): Likewise.
6233 (vectorizable_operation): Likewise.
6234 (vectorizable_load): Likewise.
6235 (vectorizable_condition): Likewise.
6236 (vectorizable_store): Likewise. Assert that we don't have
6237 hybrid SLP.
6238 (vectorizable_comparison): Make static. Remove redundant
6239 PURE_SLP_STMT check.
6240 (vect_transform_stmt): Assert that we always have an slp_node
6241 if PURE_SLP_STMT.
6242
6243 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6244
6245 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
6246 operands[2] against 1 with comparison against CONST1_RTX.
6247 (<shift>di3_neon): Likewise.
6248 * config/arm/predicates.md (const0_operand): Replace with comparison
6249 against CONST0_RTX.
6250
6251 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6252
6253 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6254 operands[2] against 1 with comparison against CONST1_RTX.
6255 (ashrdi3): Likewise.
6256 (lshrdi3): Likewise.
6257 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6258 UINTVAL.
6259 (ashrsi3): Likewise.
6260 (lshrsi3): Likewise.
6261 (rotrsi3): Likewise.
6262 (define_split above *compareqi_eq0): Likewise.
6263 (define_split above "prologue"): Likewise.
6264 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6265 * config/arm/predicates.md (shift_operator): Likewise.
6266 (shift_nomul_operator): Likewise.
6267 (sat_shift_operator): Likewise.
6268 (thumb1_cmp_operand): Likewise.
6269 (const_neon_scalar_shift_amount_operand): Replace manual range
6270 check with IN_RANGE.
6271 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6272 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6273
6274 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6275
6276 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6277 with HOST_WIDE_INT_1.
6278 (insv): Likewise.
6279 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6280 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6281 (arm_canonicalize_comparison): Likewise.
6282 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6283 HOST_WIDE_INT_1.
6284 (thumb1_size_rtx_costs): Likewise.
6285 (vfp_const_double_index): Replace cast of 1 to unsigned
6286 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6287 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6288 HOST_WIDE_INT_1.
6289 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6290 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6291 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6292 HOST_WIDE_INT with HOST_WIDE_INT_1.
6293
6294 2016-05-24 Marek Polacek <polacek@redhat.com>
6295
6296 * tree-cfg.h (should_remove_lhs_p): New predicate.
6297 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6298 * gimplify.c (gimplify_modify_expr): Likewise.
6299 * tree-cfg.c (verify_gimple_call): Likewise.
6300 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6301 * gimple-fold.c: Include "tree-cfg.h".
6302 (gimple_fold_call): Use should_remove_lhs_p.
6303
6304 2016-05-24 Richard Biener <rguenther@suse.de>
6305
6306 PR tree-optimization/71253
6307 * cfganal.h (control_dependences): Make robust against edge
6308 and BB removal.
6309 (control_dependences::control_dependences): Remove edge_list argument.
6310 (control_dependences::get_edge): Remove.
6311 (control_dependences::get_edge_src): Add.
6312 (control_dependences::get_edge_dest): Likewise.
6313 (control_dependences::m_el): Make a vector of edge src/dest index.
6314 * cfganal.c (control_dependences::find_control_dependence): Adjust.
6315 (control_dependences::control_dependences): Likewise.
6316 (control_dependences::~control_dependence): Likewise.
6317 (control_dependences::get_edge): Remove.
6318 (control_dependences::get_edge_src): Add.
6319 (control_dependences::get_edge_dest): Likewise.
6320 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6321 get_edge_src.
6322 (perform_tree_ssa_dce): Adjust.
6323 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6324 get_edge_src.
6325 (pass_loop_distribution::execute): Adjust. Do loop destroying
6326 conditional on changed.
6327
6328 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6329
6330 PR target/69857
6331 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6332 return. Reindent transformation comment and mention the ARM state
6333 behavior.
6334
6335 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6336
6337 PR middle-end/71252
6338 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6339 after build_and_add_sum creates new use stmt.
6340
6341 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6342
6343 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6344 load_lanes/grouped_load classification comes first. Don't check
6345 whether the vectorization factor is a multiple of the group size
6346 for load_lanes.
6347
6348 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6349
6350 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6351 GROUP_GAP for single-element interleaving.
6352 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6353 variable.
6354
6355 2016-05-24 Richard Biener <rguenther@suse.de>
6356
6357 PR middle-end/70434
6358 PR c/69504
6359 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6360 bases which are accessed with non-invariant indices.
6361 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6362 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6363
6364 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6365
6366 PR middle-end/71170
6367 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6368 (add_to_ops_vec): Add stmt_to_insert.
6369 (add_repeat_to_ops_vec): Init stmt_to_insert.
6370 (insert_stmt_before_use): New.
6371 (transform_add_to_multiply): Remove mult_stmt insertion and add it
6372 to ops vector.
6373 (get_ops): Init stmt_to_insert.
6374 (maybe_optimize_range_tests): Likewise.
6375 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6376 (rewrite_expr_tree_parallel): Likewise.
6377 (reassociate_bb): Likewise.
6378
6379 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6380
6381 PR target/71201
6382 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6383 ISA 3.0 xxperm fusion alternative.
6384 (altivec_vperm_v8hiv16qi): Likewise.
6385 (altivec_vperm_<mode>_uns_internal): Likewise.
6386 (vperm_v8hiv4si): Likewise.
6387 (vperm_v16qiv8hi): Likewise.
6388
6389 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6390 Kelvin Nilsen <kelvin@gcc.gnu.org>
6391
6392 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6393 vpermr/xxpermr on ISA 3.0.
6394 (altivec_expand_vec_perm_le): Likewise.
6395 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6396 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6397 ISA 3.0.
6398
6399 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
6400
6401 * config/i386/i386.h (IS_STACK_MODE): Enable for
6402 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
6403 SSE_FLOAT_MODE_P macros.
6404 * config/i386/i386.c (ix86_preferred_reload_class): Use
6405 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6406 Cleanup regclass processing for CONST_DOUBLE_P.
6407 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6408 (ix86_rtx_costs): Remove redundant TARGET_80387 check
6409 with IS_STACK_MODE macro.
6410 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6411 with TARGET_SSE2.
6412 (*movdf_internal): Use IS_STACK_MODE macro.
6413 (*movsf_internal): Ditto.
6414
6415 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
6416
6417 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6418 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6419
6420 2016-05-23 Jeff Law <law@redhat.com>
6421
6422 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6423 extracted from ...
6424 (fsm_find_control_statement_thread_paths): Call it.
6425
6426 2016-05-23 Martin Jambor <mjambor@suse.cz>
6427
6428 PR ipa/71234
6429 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6430 from_global_constant if t is not NULL.
6431
6432 2016-05-23 Marek Polacek <polacek@redhat.com>
6433
6434 PR c/49859
6435 * common.opt (Wswitch-unreachable): New option.
6436 * doc/invoke.texi: Document -Wswitch-unreachable.
6437 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6438 warning.
6439
6440 2016-05-23 Bin Cheng <bin.cheng@arm.com>
6441
6442 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6443 TMR_INDEX is non-NULL.
6444
6445 2016-05-23 Richard Biener <rguenther@suse.de>
6446
6447 PR tree-optimization/71230
6448 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6449 (try_special_add_to_ops): ... here. Always test for single-use.
6450
6451 2016-05-23 Martin Jambor <mjambor@suse.cz>
6452
6453 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6454 default block if a PHI node in the original one would be resized.
6455
6456 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6457
6458 PR tree-optimization/58135
6459 * tree-vect-slp.c: When group size is not multiple
6460 of vector size, allow splitting of store group at
6461 vector boundary.
6462
6463 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
6464
6465 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6466
6467 2016-05-22 Jakub Jelinek <jakub@redhat.com>
6468
6469 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6470 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6471 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
6472 of 64x2.
6473
6474 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6475 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6476 v constraint instead of x and vinserti32x4 insn.
6477
6478 * config/i386/sse.md (i128vldq): New mode iterator.
6479 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6480 avx512dq and avx512vl alternatives.
6481
6482 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6483 constraint, use maybe_evex prefix instead of vex.
6484 (vec_dupv4sf): Use v constraint instead of x for output
6485 operand except for noavx alternative, use Yv constraint
6486 instead of x for input. Use maybe_evex prefix instead of vex.
6487 (*vec_dupv4si): Likewise.
6488 (*vec_dupv2di): Likewise.
6489
6490 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6491
6492 PR middle-end/40921
6493 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6494 (linearize_expr_tree): Call try_special_add_to_ops.
6495 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6496
6497 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6498
6499 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6500 to computed stack_usage.
6501
6502 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6503
6504 PR target/71103
6505 * config/avr/avr.md (define_expand "mov<mode>"): If the source
6506 operand is subreg (symbol_ref) then move the symbol ref to register.
6507
6508 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
6509
6510 * tree.c (array_at_struct_end_p): Look through MEM_REF.
6511
6512 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6513
6514 PR middle-end/71179
6515 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6516 VECTOR type.
6517
6518 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6519
6520 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6521 ranges by calling get_single_symbol and tidy up. Look more closely
6522 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6523
6524 2016-05-20 Jeff Law <law@redhat.com>
6525
6526 * bitmap.c (bitmap_find_bit): Remove useless test.
6527
6528 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6529
6530 * function.c (thread_prologue_and_epilogue_insns): Commit the
6531 insertion of the epilogue.
6532
6533 2016-05-20 Martin Jambor <mjambor@suse.cz>
6534
6535 PR tree-optimization/70884
6536 * tree-sra.c (initialize_constant_pool_replacements): Do not check
6537 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6538 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6539 of constant pool data as a reason for scalarization.
6540
6541 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6542
6543 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6544 for naked functions.
6545 (thumb1_expand_prologue): Likewise.
6546
6547 2016-05-20 Nathan Sidwell <nathan@acm.org>
6548
6549 * config/nvptx/nptx.c (nvptx_option_override): Only set
6550 flag_toplevel_reorder, if not explicitly specified. Set
6551 flag_no_common, unless explicitly specified.
6552
6553 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6554
6555 * calls.c (can_implement_as_sibling_call_p): Mark param
6556 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6557
6558 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6559
6560 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6561 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6562 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6563 constants.
6564 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6565 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6566 and CASE_CONST_ANY.
6567
6568 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6569
6570 * config/nvptx/nvptx.md (sincossf3): New pattern.
6571
6572 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6573
6574 * calls.c (maybe_complain_about_tail_call): New function.
6575 (initialize_argument_information): Call
6576 maybe_complain_about_tail_call when clearing *may_tailcall.
6577 (can_implement_as_sibling_call_p): Call
6578 maybe_complain_about_tail_call when returning false.
6579 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6580 ensure try_tail_call is set. Call maybe_complain_about_tail_call
6581 if tail-call optimization fails.
6582 * cfgexpand.c (expand_call_stmt): Initialize
6583 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6584 * gimple-pretty-print.c (dump_gimple_call): Dump
6585 gimple_call_must_tail_p.
6586 * gimple.c (gimple_build_call_from_tree): Call
6587 gimple_call_set_must_tail with the value of
6588 CALL_EXPR_MUST_TAIL_CALL.
6589 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6590 (gimple_call_set_must_tail): New function.
6591 (gimple_call_must_tail_p): New function.
6592 * print-tree.c (print_node): Update printing of TREE_STATIC
6593 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6594 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6595 trailing comment listing applicable flags.
6596 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6597
6598 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6599
6600 * calls.c (expand_call): Move "Rest of purposes for tail call
6601 optimizations to fail" to...
6602 (can_implement_as_sibling_call_p): ...this new function, and
6603 split into multiple "if" statements.
6604
6605 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6606
6607 * cfgloop.h (expected_loop_iterations_unbounded,
6608 expected_loop_iterations): Unconstify.
6609 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6610 profile with known upper bound; return 3 when profile is absent.
6611 (expected_loop_iterations): Update.
6612
6613 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6614
6615 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6616 and get_max_loop_iterations_int.
6617
6618 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6619
6620 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6621 realistic upper bounds here.
6622
6623 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6624
6625 PR c++/71210
6626 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6627 calls if the LHS is variable length or has addressable type.
6628 If targets[0]->decl is a noreturn call with void return type and
6629 zero arguments, adjust fntype and remove lhs in that case.
6630
6631 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6632
6633 PR tree-optimization/71079
6634 PR tree-optimization/71206
6635 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6636
6637 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6638
6639 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6640 (get_vec_alignment_for_array_decl): Likewise.
6641 (get_vec_alignment_for_record_decl): Likewise.
6642 (increase_alignment::execute): Move code to find alignment to
6643 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6644 (type_align_map): New hash_map.
6645
6646 2016-05-20 Richard Guenther <rguenther@suse.de>
6647
6648 PR tree-optimization/29756
6649 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6650 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6651 * fold-const.c (operand_equal_p): Likewise.
6652 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6653 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6654 * tree-inline.c (estimate_operator_cost): Likewise.
6655 * tree-pretty-print.c (dump_generic_node): Likewise.
6656 * tree-ssa-operands.c (get_expr_operands): Likewise.
6657 * cfgexpand.c (expand_debug_expr): Likewise.
6658 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6659 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6660 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6661 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6662 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6663 (execute_update_addresses_taken): Do it.
6664
6665 2016-05-20 Richard Biener <rguenther@suse.de>
6666
6667 PR tree-optimization/71185
6668 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6669 register operations.
6670
6671 2016-05-20 Richard Biener <rguenther@suse.de>
6672
6673 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6674 gimple_seq_add_seq_without_update.
6675 (release_bb_predicate): Assert we have no operands to free.
6676 (if_convertible_loop_p_1): Calculate post dominators later.
6677 Do not free BB predicates here.
6678 (combine_blocks): Do not recompute BB predicates.
6679 (version_loop_for_if_conversion): Save BB predicates around
6680 loop versioning.
6681
6682 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6683
6684 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6685 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
6686 code. Ignore sibcalls on EDGE_IGNORE edges.
6687 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
6688 on edges for sibcalls that run without prologue. The rest of the
6689 function is combined from...
6690 (fix_fake_fallthrough_edge): ... this, and ...
6691 (try_shrink_wrapping): ... a part of this. Remove the bb_with
6692 function argument, make it a local variable.
6693
6694 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
6695
6696 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6697 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6698 for 32-bit mode and SEH for 64-bit.
6699 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6700 TARGET_64BIT_DEFAULT.
6701
6702 2016-05-19 Ryan Burn <contact@rnburn.com>
6703
6704 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6705 * gengtype.c (open_base_files): Add cilk.h to ifiles.
6706
6707 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
6708
6709 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6710 force pending loads from memory.
6711
6712 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
6713
6714 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6715 (UNSPEC_DARN_32): New unspec constant.
6716 (UNSPEC_DARN_RAW): New unspec constant.
6717 (darn_32): New instruction.
6718 (darn_raw): New instruction.
6719 (darn): New instruction.
6720 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6721 support and documentation for this macro.
6722 (BU_P9_MISC_1): New macro definition.
6723 (BU_P9_64BIT_MISC_0): New macro definition.
6724 (BU_P9_MISC_0): New macro definition.
6725 (darn_32): New builtin definition.
6726 (darn_raw): New builtin definition.
6727 (darn): New builtin definition.
6728 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6729 RS6000_BUILTIN_0 directives to surround each occurrence of
6730 #include "rs6000-builtin.def".
6731 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6732 RS6000_BTM_64BIT flags to the returned mask, depending on
6733 configuration.
6734 (def_builtin): Correct an error in the assignments made to the
6735 debugging variable attr_string.
6736 (rs6000_expand_builtin): Add support for no-operand built-in
6737 functions.
6738 (builtin_function_type): Remove fatal_error assertion that is no
6739 longer valid.
6740 (rs6000_common_init_builtins): Add support for no-operand built-in
6741 functions.
6742 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6743 definition.
6744 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6745 definition.
6746 (RS6000_BTM_64BIT): New macro definition.
6747 * doc/extend.texi: Document __builtin_darn (void),
6748 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6749 functions.
6750
6751 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
6752
6753 * tree-vect-loop.c (vect_analyze_loop_2): Use also
6754 max_loop_iterations_int.
6755
6756 2016-05-19 Marek Polacek <polacek@redhat.com>
6757
6758 PR tree-optimization/71031
6759 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6760 condition and adjust the code a bit.
6761
6762 2016-05-19 Martin Liska <mliska@suse.cz>
6763
6764 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6765 auto_vec instead of vec.
6766
6767 2016-05-19 Martin Liska <mliska@suse.cz>
6768
6769 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6770
6771 2016-05-19 Martin Liska <mliska@suse.cz>
6772
6773 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6774
6775 2016-05-19 Martin Liska <mliska@suse.cz>
6776
6777 * ipa-pure-const.c (set_function_state): Remove an existing
6778 funct_state.
6779 (remove_node_data): Do not free it as it's released
6780 in set_function_state.
6781
6782 2016-05-19 Martin Liska <mliska@suse.cz>
6783
6784 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6785 bitmap.
6786
6787 2016-05-19 Martin Liska <mliska@suse.cz>
6788
6789 * omp-simd-clone.c (simd_clone_adjust): Release vector.
6790
6791 2016-05-19 Martin Liska <mliska@suse.cz>
6792
6793 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6794 an auto_vec instead of re-creating it.
6795
6796 2016-05-19 Martin Liska <mliska@suse.cz>
6797
6798 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6799 auto_vec instead of vec.
6800
6801 2016-05-19 Martin Liska <mliska@suse.cz>
6802
6803 * lto-section-in.c (lto_get_section_data): Call
6804 lto_check_version with additional argument.
6805 * lto-streamer.c (lto_check_version): Add new argument.
6806 * lto-streamer.h (lto_check_version): Likewise.
6807
6808 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6809
6810 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6811 Don't add cost of inner memory when handling sign-extended loads.
6812
6813 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
6814
6815 PR rtl-optimization/71148
6816 * cse.c (cse_main): Free dominance info.
6817 (rest_of_handle_cse): Don't free dominance info.
6818 (rest_of_handle_cse2): Likewise.
6819 (rest_of_handle_cse_after_global_opts): Likewise.
6820
6821 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6822
6823 PR target/71056
6824 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6825 NULL_TREE early if NEON is not available. Remove now redundant check
6826 in ARM_CHECK_BUILTIN_MODE.
6827
6828 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
6829
6830 PR sanitizer/64354
6831 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6832 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6833 * doc/cpp.texi: Document new macros.
6834
6835 2016-05-19 Bin Cheng <bin.cheng@arm.com>
6836
6837 PR tree-optimization/69848
6838 * tree-vect-loop.c (vectorizable_reduction): Don't factor
6839 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6840
6841 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6842
6843 * function.c (thread_prologue_and_epilogue_insn): Move the
6844 "goto epilogue_done" one block later.
6845
6846 2016-05-19 Richard Biener <rguenther@suse.de>
6847
6848 PR tree-optimization/70729
6849 * passes.def: Move LIM pass before PRE. Remove no longer
6850 required copyprop and move first DCE out of the loop pipeline.
6851
6852 2016-05-18 David Malcolm <dmalcolm@redhat.com>
6853
6854 PR driver/69265
6855 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6856 (OBJS-libcommon-target): ...here.
6857 * opts-common.c: Include spellcheck.h.
6858 (cmdline_handle_error): Build a vec of valid options and use it
6859 to suggest provide hints for misspelled arguments.
6860
6861 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6862
6863 PR c++/71100
6864 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6865 lhs if it has TREE_ADDRESSABLE type.
6866
6867 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
6868
6869 PR target/71145
6870 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6871 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6872
6873 2016-05-18 Martin Jambor <mjambor@suse.cz>
6874
6875 PR ipa/69708
6876 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6877 input for NOP_EXPR pass-through functions.
6878 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6879 aggregate global constant VAR_DECLs in constant jump functions.
6880
6881 2016-05-18 Martin Jambor <mjambor@suse.cz>
6882
6883 PR ipa/69708
6884 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6885 from TREE_READONLY parameters.
6886
6887 2016-05-18 Martin Jambor <mjambor@suse.cz>
6888
6889 PR ipa/69708
6890 * cgraph.h (cgraph_indirect_call_info): New field
6891 guaranteed_unmodified.
6892 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6893 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6894 appropriate.
6895 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6896 pass the parameter value to ipa_find_agg_cst_for_param.
6897 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6898 guaranteed_unmodified, store AA results there instead of bailing out
6899 if present.
6900 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6901 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6902 (find_constructor_constant_at_offset): New function.
6903 (ipa_find_agg_cst_from_init): Likewise.
6904 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6905 static initializers of contants, report back through a new paameter
6906 from_global_constant if that was the case.
6907 (try_make_edge_direct_simple_call): Also pass parameter value to
6908 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6909 appropriate.
6910 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6911 (ipa_read_indirect_edge_info): Likewise.
6912 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6913 (ipa_load_from_parm_agg): Likewise.
6914
6915 2016-05-18 Jiong Wang <jiong.wang@arm.com>
6916
6917 PR rtl-optimization/71150
6918 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6919 check.
6920
6921 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6922
6923 PR target/70915
6924 * config/rs6000/constraints.md (wE constraint): New constraint
6925 for a vector constant that can be loaded with XXSPLTIB.
6926 (wM constraint): New constraint for a vector constant of a 1's.
6927 (wS constraint): New constraint for a vector constant that can be
6928 loaded with XXSPLTIB and a vector sign extend instruction.
6929 * config/rs6000/predicates.md (xxspltib_constant_split): New
6930 predicates for wE/wS constraints.
6931 (xxspltib_constant_nosplit): Likewise.
6932 (easy_vector_constant): Add support for constants that can be
6933 loaded via XXSPLTIB.
6934 (all_ones_constant): New predicate for vector constant with all
6935 1's set.
6936 (splat_input_operand): Add support for ISA 3.0 word splat operations.
6937 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6938 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6939 instruction and possibly with a sign extension.
6940 (output_vec_const_move): Add support for XXSPLTIB. If we are
6941 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6942 instead of XXLXOR/XXLORC.
6943 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6944 operations.
6945 (rs6000_legitimize_reload_address): Likewise.
6946 (rs6000_output_move_128bit): Use output_vec_const_move to emit
6947 constants.
6948 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6949 combine VSX_M and VSX_M2 into one iterator.
6950 (VSX_M2): Likewise.
6951 (VSINT_84): New iterators for loading constants with XXSPLTIB.
6952 (VSINT_842): Likewise.
6953 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6954 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6955 XXSPLTIB instruction.
6956 (xxspltib_<mode>_nosplit): Likewise.
6957 (xxspltib_<mode>_split): New insn to load up constants with
6958 XXSPLTIB and a sign extend instruction.
6959 (vsx_mov<mode>): Replace single move that handled all vector types
6960 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
6961 moves (when -mvsx-timode is in effect) into the main vector
6962 moves. Eliminate separate moves for <VSr> <VSa>, where the
6963 preferred register class (<VSr>) is listed first, and the
6964 secondary register class (<VSa>) is listed second with a '?' to
6965 discourage use. Prefer loading 0/-1 in any VSX register for ISA
6966 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6967 that if the register was involved in a slow operation, the
6968 clear/set operation does not wait for the slow operation to
6969 finish. Adjust the length attributes for 32-bit mode. Use
6970 rs6000_output_move_128bit and drop the use of the string
6971 instructions for 32-bit movti when -mvsx-timode is in effect. Use
6972 spacing so that the alternatives and attributes don't generate
6973 long lines, and put things in columns, so that it is easier to
6974 match up the operands and attributes with the insn alternatives.
6975 (vsx_mov<mode>_64bit): Likewise.
6976 (vsx_mov<mode>_32bit): Likewise.
6977 (vsx_movti_64bit): Fold movti into normal vector moves.
6978 (vsx_movti_32bit): Likewise.
6979 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6980 splat instructions.
6981 (vsx_splat_v4si_internal): Likewise.
6982 (vsx_splat_v4sf_internal): Likewise.
6983 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6984 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6985 extend vector elements.
6986 (vsx_sign_extend_hi_<mode>): Likewise.
6987 (vsx_sign_extend_si_v2di): Likewise.
6988 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6989 declaration.
6990 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6991 constraints. Add trailing period to wL documentation.
6992
6993 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
6994
6995 PR middle-end/71020
6996 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
6997 * tree-dfa.c (replace_abnormal_ssa_names): New function.
6998 * tree-call-cdce.c: Include tree-dfa.h.
6999 (can_guard_call_p): New function, extracted from...
7000 (can_use_internal_fn): ...here.
7001 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7002 and return void.
7003 (shrink_wrap_one_built_in_call): Likewise.
7004 (use_internal_fn): Likewise.
7005 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7006 and return void. Call replace_abnormal_ssa_names.
7007 (pass_call_cdce::execute): Check can_guard_call_p during the
7008 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
7009 will always change something.
7010
7011 2016-05-18 Martin Jambor <mjambor@suse.cz>
7012
7013 PR ipa/70646
7014 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7015 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7016
7017 2016-05-18 Martin Jambor <mjambor@suse.cz>
7018
7019 PR ipa/70646
7020 * ipa-inline.h (condition): New field size.
7021 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7022 for comaprison and store it into the new condition.
7023 (evaluate_conditions_for_known_args): Use condition size to check
7024 access sizes for all but CHANGED conditions.
7025 (unmodified_parm_1): New parameter size_p, store access size into it.
7026 (unmodified_parm): Likewise.
7027 (unmodified_parm_or_parm_agg_item): Likewise.
7028 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7029 (set_cond_stmt_execution_predicate): Extract access sizes and store
7030 them to conditions.
7031 (set_switch_stmt_execution_predicate): Likewise.
7032 (will_be_nonconstant_expr_predicate): Likewise.
7033 (will_be_nonconstant_predicate): Likewise.
7034 (inline_read_section): Stream condition size.
7035 (inline_write_summary): Likewise.
7036
7037 2016-05-18 Richard Biener <rguenther@suse.de>
7038
7039 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7040 condition cost to PHI cost instead of total_cost.
7041
7042 2016-05-18 Martin Liska <mliska@suse.cz>
7043
7044 PR fortran/70856
7045 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7046 merged variables.
7047
7048 2016-05-18 Richard Biener <rguenther@suse.de>
7049
7050 * lto-streamer.h (LTO_major_version): Bump to 6.
7051
7052 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7053
7054 * function.c (make_split_prologue_seq, make_prologue_seq,
7055 make_epilogue_seq): New functions, factored out from...
7056 (thread_prologue_and_epilogue_insns): Here.
7057
7058 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7059
7060 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7061 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7062 of before. Add a comment.
7063
7064 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7065
7066 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7067 expression pointer, not pointer to the pointer.
7068
7069 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7070
7071 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7072 (avx2_pbroadcast<mode>): Add another alternative with v instead
7073 of x constraints in it, using <pbroadcast_evex_isa> isa.
7074 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7075
7076 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7077 constraint x instead of v in second alternative, add avx512bw
7078 alternative.
7079
7080 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7081 constraint x instead of v in second alternative, add avx512bw
7082 alternative.
7083
7084 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7085 constraint x instead of v in second alternative, add avx512bw
7086 alternative.
7087
7088 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7089 avx512bw alternative.
7090
7091 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7092
7093 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7094 array to 128 chars.
7095 (define_insn "*andnottf3"): Ditto.
7096 (define_insn "*<code><mode>3"/any_logic): Ditto.
7097 (define_insn "*<code>tf3"/any_logic): Ditto.
7098 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7099 operand to block AVX-512VL insn variant emit when it is not enabled.
7100
7101 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7102
7103 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7104 constraint fot SF mode.
7105
7106 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7107 Kirill Yukhin <kirill.yukhin@intel.com>
7108
7109 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7110 modifiers.
7111 (define_insn "rsqrt14<mode>"): Ditto.
7112 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7113 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7114 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7115 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7116 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7117 Ditto.
7118 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7119 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7120 * config/i386/i386.c (ix86_print_operand): Expand check for size
7121 override codes for Intel syntax.
7122
7123 2016-05-18 Richard Biener <rguenther@suse.de>
7124
7125 PR tree-optimization/71168
7126 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7127 initialization earlier.
7128
7129 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7130
7131 * config/aarch64/aarch64-simd.md
7132 (aarch64_reduc_plus_internal<mode>): Rename to...
7133 (reduc_plus_scal): ...This, and remove previous implementation.
7134
7135 2016-05-18 Richard Biener <rguenther@suse.de>
7136
7137 * passes.def: Put late dse and cd_dce in canonical order.
7138
7139 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7140
7141 * ipa-inline-transform.c (preserve_function_body_p): Look for
7142 first non-thunk clone.
7143 (save_function_body): Save into first non-thunk.
7144 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7145 up call stmt id.
7146 (lto_output_node): Inline thunks don't need body in every
7147 partition.
7148 * lto-streamer-in.c: Do not fixup thunk clones.
7149 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7150 thunks.
7151 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7152 folding suceeds.
7153
7154 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7155
7156 PR middle-end/63586
7157 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7158 (reassociate_bb): Call transform_add_to_multiply.
7159
7160 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7161
7162 * config/aarch64/aarch64.c (all_extensions): Removed unused
7163 static variable.
7164
7165 2016-05-17 Nathan Sidwell <nathan@acm.org>
7166
7167 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7168 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7169
7170 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7171
7172 PR tree-optimization/54579
7173 PR middle-end/55299
7174 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7175
7176 2016-05-17 Marek Polacek <polacek@redhat.com>
7177
7178 PR ipa/71146
7179 * tree-inline.c (expand_call_inline): Call
7180 maybe_remove_unused_call_args.
7181
7182 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7183
7184 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7185 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7186 * doc/md.texi (fmin@var{m}3): Likewise.
7187
7188 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7189
7190 * match.pd (X & C): New transformation.
7191
7192 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7193
7194 * match.pd (~X & Y): New transformation.
7195
7196 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7197
7198 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7199 information for new SSA_NAME.
7200 (simplify_conversion_using_ranges): Get range through get_range_info
7201 instead of get_value_range.
7202
7203 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7204
7205 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7206 Remove inline assembly.
7207 (vmvn_s16): Likewise.
7208 (vmvn_s32): Likewise.
7209 (vmvn_u8): Likewise.
7210 (vmvn_u16): Likewise.
7211 (vmvn_u32): Likewise.
7212 (vmvnq_s8): Likewise.
7213 (vmvnq_s16): Likewise.
7214 (vmvnq_s32): Likewise.
7215 (vmvnq_u8): Likewise.
7216 (vmvnq_u16): Likewise.
7217 (vmvnq_u32): Likewise.
7218 (vmvn_p8): Likewise.
7219 (vmvnq_p16): Likewise.
7220
7221 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7222
7223 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7224 Use builtin.
7225 (vmul_n_s16): Likewise.
7226 (vmul_n_s32): Likewise.
7227 (vmul_n_u16): Likewise.
7228 (vmul_n_u32): Likewise.
7229 (vmulq_n_f32): Likewise.
7230 (vmulq_n_f64): Likewise.
7231 (vmulq_n_s16): Likewise.
7232 (vmulq_n_s32): Likewise.
7233 (vmulq_n_u16): Likewise.
7234 (vmulq_n_u32): Likewise.
7235
7236 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7237
7238 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7239 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7240
7241 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7242
7243 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7244 to *aarch64_fma4_elt_from_dup<mode>.
7245 (*aarch64_fnma4_elt_to_128df): Rename to
7246 *aarch64_fnma4_elt_from_dup<mode>.
7247 * config/aarch64/arm_neon.h (vfma_n_f64): New.
7248 (vfms_n_f32): Likewise.
7249 (vfms_n_f64): Likewise.
7250 (vfmsq_n_f32): Likewise.
7251 (vfmsq_n_f64): Likewise.
7252
7253 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7254
7255 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7256
7257 2016-05-17 Richard Biener <rguenther@suse.de>
7258
7259 PR tree-optimization/71132
7260 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7261 Only add control dependences for blocks in the loop.
7262 (build_rdg): Adjust.
7263 (generate_code_for_partition): Return whether loop should
7264 be destroyed and delay that.
7265 (distribute_loop): Likewise.
7266 (pass_loop_distribution::execute): Record loops to be destroyed
7267 and perform delayed destroying of loops.
7268
7269 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7270
7271 PR target/70809
7272 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7273
7274 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7275
7276 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7277
7278 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7279
7280 PR target/71114
7281 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7282 insertion point for instructions generated by validize_mem.
7283
7284 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7285
7286 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7287 in brackets.
7288
7289 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7290
7291 * config/aarch64/aarch64.c
7292 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7293 rather than a macro.
7294
7295 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7296
7297 * doc/invoke.texi (AArch64 Options): Various updates.
7298
7299 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7300
7301 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7302 into instrumentation thunks.
7303 * cif-code.def (CIF_CHKP): New.
7304
7305 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7306
7307 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7308
7309 2016-05-16 Martin Jambor <mjambor@suse.cz>
7310
7311 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7312 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7313
7314 2016-05-16 Marek Polacek <polacek@redhat.com>
7315
7316 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7317 commentary.
7318
7319 2016-05-16 Martin Jambor <mjambor@suse.cz>
7320
7321 PR hsa/70857
7322 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7323 the outlined kernel function.
7324
7325 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7326
7327 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7328 (ISA_HAS_DLSA): Ditto.
7329
7330 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7331
7332 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7333
7334 2016-05-16 Nathan Sidwell <nathan@acm.org>
7335
7336 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7337 (nvptx_name_replacement): Restore. Add comment.
7338 (write_fn_proto, write_fn_proto_from_insn,
7339 nvptx_output_call_insn): Restore
7340 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7341
7342 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7343
7344 * config/aarch64/aarch64.md
7345 (add<mode>3_compareC_cconly_imm): Remove use of %w.
7346 (add<mode>3_compareC_imm): Likewise.
7347 (<optab>si3_uxtw): Split into register and immediate variants.
7348 (andsi3_compare0_uxtw): Likewise.
7349 (and<mode>3_compare0): Likewise.
7350 (and<mode>3nr_compare0): Likewise.
7351 (stack_protect_test_<mode>): Don't use %x for memory operands.
7352
7353 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7354
7355 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7356
7357 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7358
7359 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7360 Split integer shifts into shift_reg and bfm.
7361 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7362 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7363 (ror<mode>3_insn): Likewise.
7364 (<optab>si3_insn_uxtw): Likewise.
7365 (<optab><mode>3_insn): Change to rotate_imm.
7366 (extr<mode>5_insn_alt): Likewise.
7367 (extrsi5_insn_uxtw): Likewise.
7368 (extrsi5_insn_uxtw_alt): Likewise.
7369
7370 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7371
7372 * doc/tm.texi: Regenerate.
7373 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7374 (TARGET_INVALID_RETURN_TYPE): Remove.
7375 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7376 TARGET_INVALID_RETURN_TYPE.
7377 * target.def (invalid_parameter_type): Remove.
7378 (invalid_return_type): Remove.
7379
7380 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7381
7382 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7383 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7384 calls from thunk.
7385 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7386 gimple body.
7387 (preserve_function_body_p): No need to preserve function body
7388 * cif-codes.def (CIF_THUNK): Remove.
7389 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7390
7391 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7392
7393 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7394
7395 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7396
7397 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7398 for thunks.
7399
7400 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7401
7402 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7403 (inline_small_functions): Do not look for function symbol when
7404 resetting caches.
7405
7406 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7407
7408 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7409 of inline thunks
7410
7411 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7412 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7413 Jiong Wang <jiong.wang@arm.com>
7414
7415 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7416 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7417 Define __ARM_FP16_ARGS when appropriate.
7418 * config/arm/arm.c (arm_invalid_parameter_type): Remove
7419 declaration.
7420 (arm_invalid_return_type): Likewise.
7421 (TARGET_INVALID_PARAMETER_TYPE): Remove.
7422 (TARGET_INVALID_RETURN_TYPE): Remove.
7423 (aapcs_vfp_sub_candidate): Allow HFmode.
7424 (aapcs_vfp_allocate): Add comment. Support HFmode.
7425 (aapcs_vfp_allocate_return_reg): Likewise.
7426 (struct aapcs_cp_arg_layout): Slightly reword comments for
7427 is_return_candidate and allocate_return_reg.
7428 (output_mov_vfp): Update assert.
7429 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7430 condition.
7431 (arm_invalid_parameter_type): Remove.
7432 (amr_invalid_return_type): Remove.
7433 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7434 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7435 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7436
7437 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7438
7439 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7440 * config/aarch64/arch64-protos.h
7441 (aarch64_legitimize_reload_address): Remove.
7442 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7443 Remove.
7444
7445 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
7446
7447 * configure.ac: Add ACX_NONCANONICAL_HOST.
7448 * configure: Regenerate.
7449 * Makefile.in: Set host_noncanonical.
7450
7451 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
7452
7453 PR target/71097
7454 * config/i386/i386.md (*movtf_internal): Before register allocation,
7455 do not allow FP constants for CM_MEDIUM memory model, allow only
7456 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7457 (*movxf_internal): Ditto.
7458 (*movdf_internal): Ditto.
7459 (*movsf_internal): Ditto.
7460
7461 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7462
7463 PR rtl-optimization/67483
7464 * combine.c (make_compound_operation): Don't call extract_left_shift
7465 with negative shift amounts.
7466
7467 2016-05-13 Jakub Jelinek <jakub@redhat.com>
7468
7469 PR bootstrap/71071
7470 * fold-const.c (fold_checksum_tree): Allow modification
7471 of TYPE_ALIAS_SET during folding.
7472
7473 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7474 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7475 (ix86_split_to_parts): Likewise. Fix up formatting.
7476
7477 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
7478
7479 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7480 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7481 printf format.
7482
7483 2016-05-13 Nathan Sidwell <nathan@acm.org>
7484
7485 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7486 (nvptx_name_replacement): Delete.
7487 (write_fn_proto, write_fn_proto_from_insn,
7488 nvptx_output_call_insn): Remove nvptx_name_replacement call.
7489 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7490 * langhooks.c (add_builtin_funcction_common): Call
7491 targetm.mangle_decl_assembler_name.
7492
7493 * config/nvptx/nvptx.c (write_fn_proto): Handle
7494 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7495
7496 2016-05-13 Martin Liska <mliska@suse.cz>
7497
7498 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7499 and PRIu64 in printf format.
7500
7501 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7502
7503 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7504 comment.
7505
7506 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7507
7508 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7509 Change --param max-completely-peeled-times to
7510 --param max-completely-peel-times in dump file printing.
7511
7512 2016-05-13 Richard Biener <rguenther@suse.de>
7513
7514 PR tree-optimization/42587
7515 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7516 (find_bswap_or_nop_1): Likewise.
7517 (bswap_replace): Likewise.
7518
7519 2016-05-13 Martin Liska <mliska@suse.cz>
7520
7521 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7522 Initialize a variable with default value.
7523
7524 2016-05-13 Martin Liska <mliska@suse.cz>
7525
7526 * doc/invoke.texi: Enhance explanation of error recovery
7527 of sanitizers.
7528
7529 2016-05-13 Martin Liska <mliska@suse.cz>
7530
7531 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7532 (struct cost_pair): Change inv_expr_id (int) to inv_expr
7533 (iv_inv_expr_ent *).
7534 (struct iv_inv_expr_ent): Comment struct fields.
7535 (sort_iv_inv_expr_ent): New function.
7536 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7537 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7538 a hash_map between iv_inv_expr_ent and number of usages.
7539 (niter_for_exit): Fix coding style.
7540 (tree_ssa_iv_optimize_init): Use renamed variable.
7541 (determine_base_object): Fix coding style.
7542 (alloc_iv): Likewise.
7543 (find_interesting_uses_outside): Likewise.
7544 (add_candidate_1): Likewise.
7545 (add_standard_iv_candidates): Likewise.
7546 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7547 (prepare_decl_rtl): Fix coding style.
7548 (get_address_cost): Likewise.
7549 (get_shiftadd_cost): Likewise.
7550 (force_expr_to_var_cost): Likewise.
7551 (compare_aff_trees): Likewise.
7552 (get_expr_id): Restructure the function.
7553 (get_loop_invariant_expr_id): Renamed to
7554 get_loop_invariant_expr.
7555 (get_computation_cost_at): Replace usage of inv_expr_id with
7556 inv_expr.
7557 (get_computation_cost): Likewise.
7558 (determine_group_iv_cost_generic): Likewise.
7559 (determine_group_iv_cost_address): Likewise.
7560 (iv_period): Fix coding style.
7561 (iv_elimination_compare_lt): Likewise.
7562 (may_eliminate_iv): Likewise.
7563 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
7564 inv_expr.
7565 (determine_group_iv_costs): Dump invariant expressions.
7566 (iv_ca_recount_cost): Use the newly added hash_map.
7567 (iv_ca_set_remove_invariants): Fix coding style.
7568 (iv_ca_set_add_invariants): Fix coding style.
7569 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7570 invariants.
7571 (iv_ca_set_cp): Likewise.
7572 (iv_ca_new): Initialize the newly added hash_map and remove
7573 initialization of fields.
7574 (iv_ca_free): Delete the hash_map.
7575 (iv_ca_dump): Dump invariant expressions.
7576 (iv_ca_extend): Fix coding style.
7577 (try_add_cand_for): Likewise.
7578 (create_new_ivs): Dump information about # of avg iterations and
7579 # of used invariant expressions.
7580 (rewrite_use_compare): Fix coding style.
7581 (free_loop_data): Set default value for max_inv_expr_id.
7582
7583 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7584
7585 * cse.c (rest_of_handle_cse): Use cleanup_cfg
7586 returned value cse_cfg_altered computation.
7587 (rest_of_handle_cse2): Likewise.
7588 (rest_of_handle_cse_after_global_opts): Likewise.
7589
7590 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7591
7592 PR target/53440
7593 * config/arm/arm.c (arm32_output_mi_thunk): New.
7594 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7595 to split Thumb1 vs TARGET_32BIT functionality.
7596 (arm_thumb1_mi_thunk): New.
7597
7598 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7599
7600 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7601 to true.
7602
7603 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7604
7605 PR target/71080
7606 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7607
7608 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7609
7610 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7611 (expand_builtin_trap): Emit a regular call.
7612 (set_builtin_user_assembler_name): Remove obsolete cases.
7613 * dse.c (scan_insn): Adjust.
7614 * except.c: Include calls.h.
7615 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7616 emit a regular call to setjmp.
7617 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7618 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7619 (emit_block_move_via_libcall): Delete.
7620 (block_move_fn): Delete.
7621 (init_block_move_fn): Likewise.
7622 (emit_block_move_libcall_fn): Likewise.
7623 (emit_block_op_via_libcall): New function.
7624 (set_storage_via_libcall): Tidy up and use memset builtin.
7625 (block_clear_fn): Delete.
7626 (init_block_clear_fn): Likewise.
7627 (clear_storage_libcall_fn): Likewise.
7628 (expand_assignment): Call emit_block_move_via_libcall.
7629 Do not include gt-expr.h.
7630 * expr.h (emit_block_op_via_libcall): Declare.
7631 (emit_block_copy_via_libcall): New inline function.
7632 (emit_block_move_via_libcall): Likewise.
7633 (emit_block_comp_via_libcall): Likewise.
7634 (block_clear_fn): Delete.
7635 (init_block_move_fn): Likewise.
7636 (init_block_clear_fn): Likewise.
7637 (emit_block_move_via_libcall): Likewise.
7638 (set_storage_via_libcall): Add default parameter value.
7639 * libfuncs.h (enum libfunc_index): Remove obsolete values.
7640 (abort_libfunc): Delete.
7641 (memcpy_libfunc): Likewise.
7642 (memmove_libfunc): Likewise.
7643 (memcmp_libfunc): Likewise.
7644 (memset_libfunc): Likewise.
7645 (setbits_libfunc): Likewise.
7646 (setjmp_libfunc): Likewise.
7647 (longjmp_libfunc): Likewise.
7648 (profile_function_entry_libfunc): Likewise.
7649 (profile_function_exit_libfunc): Likewise.
7650 (gcov_flush_libfunc): Likewise.
7651 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7652 and DECL_VISIBILITY on the declaration.
7653 (init_optabs): Do not initialize obsolete libfuncs.
7654 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7655 * tree-core.h (ECF_RET1): Define.
7656 (ECF_TM_PURE): Adjust.
7657 (ECF_TM_BUILTIN): Likewise.
7658 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7659 (build_common_builtin_nodes): Initialize abort builtin.
7660 Add ECF_RET1 on memcpy, memmove and memset builtins.
7661 Pass final flags for alloca and alloca_with_align builtins.
7662 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7663 obsolete builtins.
7664 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7665 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7666 set_storage_via_libcall and call emit_block_copy_via_libcall.
7667
7668 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
7669
7670 * config/i386/i386.md (*call_got_x32): Change operand 0 to
7671 DImode before it is passed to ix86_output_call_operand.
7672 (*call_value_got_x32): Ditto for operand 1.
7673
7674 2016-05-12 Jiong Wang <jiong.wang@arm.com>
7675
7676 PR rtl-optimization/70904
7677 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7678 reload for wide mode.
7679
7680 2016-05-12 Marek Polacek <polacek@redhat.com>
7681
7682 PR c/70756
7683 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7684 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7685 * langhooks.h (incomplete_type_error): Likewise.
7686 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
7687 parameter, pass it down to incomplete_type_error.
7688 * tree.h (size_in_bytes): New inline overload.
7689 (size_in_bytes_loc): Renamed from size_in_bytes.
7690
7691 2016-05-12 Richard Biener <rguenther@suse.de>
7692
7693 PR tree-optimization/71059
7694 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7695 nary before looking up or entering the expression into the VN
7696 hashes.
7697 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7698 Make sure to re-use NARYs without result as inserted by
7699 phi-translation.
7700
7701 2016-05-12 Richard Biener <rguenther@suse.de>
7702
7703 PR tree-optimization/71062
7704 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7705 field.
7706 * tree-ssa-structalias.c (set_uids_in_ptset): Set
7707 vars_contains_restrict if the var is a restrict tag.
7708 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7709 do not disambiguate pointers against it.
7710 (dump_points_to_solution): Re-structure and adjust for new
7711 vars_contains_restrict flag.
7712 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7713
7714 2016-05-12 Martin Liska <mliska@suse.cz>
7715
7716 * doc/invoke.texi: Explain connection between
7717 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7718
7719 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
7720
7721 PR tree-optimization/71006
7722 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7723 consider COND_EXPR as a mask producer.
7724
7725 2016-05-12 Marek Polacek <polacek@redhat.com>
7726
7727 PR driver/71063
7728 * opts.c (common_handle_option): Detect missing argument for --help^.
7729
7730 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7731
7732 PR target/70830
7733 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7734 when popping the PC and within an interrupt handler routine.
7735 Add missing tab to output of "ldmfd".
7736 (output_return_instruction): Output LDMFD with SP update rather
7737 than POP when returning from interrupt handler.
7738
7739 2016-05-12 Jakub Jelinek <jakub@redhat.com>
7740
7741 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7742 TARGET_64BIT && TARGET_AVX512DQ.
7743 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7744 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7745 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7746 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7747 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7748 (*vec_extractv4si_zext): Add avx512dq alternative.
7749 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7750 use v instead of x constraint in other alternatives where possible.
7751
7752 * config/i386/sse.md (sse2_loadld): Use v instead of x
7753 constraint in alternatives 0,1,4.
7754
7755 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7756 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7757 v constraints instead of x and <pinsr_evex_isa> isa attribute.
7758
7759 PR target/71019
7760 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7761 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7762 is not emitted unless TARGET_AVX512BW.
7763 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7764 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7765 for the result operand.
7766
7767 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7768 constraint instead of x in avx alternatives. Use maybe_evex instead
7769 of vex prefix.
7770
7771 * config/i386/constraints.md (Yv): New constraint.
7772 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7773 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7774 * config/i386/i386.md (avx512fvecmode): New mode attr.
7775 (*pushtf): Use v constraint instead of x.
7776 (*movtf_internal): Likewise. For TARGET_AVX512VL and
7777 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7778 (*absneg<mode>2): Use Yv constraint instead of x constraint.
7779 (*absnegtf2_sse): Likewise.
7780 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7781 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7782 avx512f alternatives.
7783 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7784
7785 2016-05-12 Richard Biener <rguenther@suse.de>
7786
7787 PR tree-optimization/71060
7788 * tree-data-ref.c (initialize_data_dependence_relation): Do not
7789 require exact match of DR_BASE_OBJECT but only matching address and
7790 type.
7791
7792 2016-05-12 Richard Biener <rguenther@suse.de>
7793
7794 PR tree-optimization/70986
7795 * cfganal.c: Include cfgloop.h.
7796 (dfs_find_deadend): Prefer to take edges exiting loops.
7797
7798 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7799
7800 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7801 compile and run time.
7802
7803 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7804
7805 PR c/43651
7806 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7807
7808 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
7809
7810 * config/i386/i386.c (legitimize_pic_address): Use
7811 copy_to_suggested_reg instead of gen_movsi.
7812
7813 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7814
7815 * config/rs6000/predicates.md (quad_memory_operand): Move most of
7816 the code into quad_address_p and call it to share code with
7817 vsx_quad_dform_memory_operand.
7818 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7819 d-form support.
7820 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7821 bit instead of being a separate word. Split -mpower9-dform into
7822 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7823 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7824 for the register class supporting 128-bit quad word memory offsets.
7825 (mode_supports_vsx_dform_quad): Helper function to return if the
7826 register class uses quad word memory offsets.
7827 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7828 (rs6000_debug_reg_global): Always print if we are using LRA or not.
7829 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7830 instructions are enabled, set up the appropriate addr_masks for
7831 128-bit types.
7832 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7833 -mpower9-dform-scalar, instead of -mpower9-dform.
7834 (rs6000_option_override_internal): Split -mpower9-dform into two
7835 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
7836 -mpower9-dform switch sets or clears both. If we are not using
7837 the LRA register allocator, do not enable -mpower9-dform-vector by
7838 default. If we are using LRA, enable -mpower9-dform-vector and
7839 -mvsx-timode if it is appropriate. Issue a warning if either
7840 -mpower9-dform-vector or -mvsx-timode are explicitly used without
7841 enabling LRA.
7842 (quad_address_offset_p): New helper function to return if the
7843 offset is legal for quad word memory instructions.
7844 (quad_address_p): New function to determin if GPR or vector
7845 register quad word memory addresses are legal.
7846 (mem_operand_gpr): Validate quad word address offsets.
7847 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7848 d-form (register + offset) instructions.
7849 (offsettable_ok_by_alignment): Likewise.
7850 (rs6000_legitimate_offset_address_p): Likewise.
7851 (legitimate_lo_sum_address_p): Likewise.
7852 (rs6000_legitimize_address): Likewise.
7853 (rs6000_legitimize_reload_address): Add more debug statements for
7854 -mdebug=addr.
7855 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7856 d-form instructions.
7857 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7858 d-form instructions. Distinguish different cases in debug
7859 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7860 d-form instructions.
7861 (rs6000_preferred_reload_class): Likewise.
7862 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7863 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
7864 of the ISA 2.06 indexed memory instructions.
7865 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7866 use them to save/restore the saved vector registers instead of
7867 using Altivec instructions.
7868 (rs6000_emit_epilogue): Likewise.
7869 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7870 (rs6000_opt_masks): Split -mpower9-dform into
7871 -mpower9-dform-scalar and -mpower9-dform-vector.
7872 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7873 was not selected.
7874 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7875 ISA 3.0 vector indexed memory instructions, and fold the code into
7876 the normal mov<mode> patterns.
7877 (p9_vecstore_<mode>): Likewise.
7878 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7879 instructions.
7880 (vsx_movti_64bit): Likewise.
7881 (vsx_movti_32bit): Likewise.
7882 * config/rs6000/constraints.md (wO constraint): New constraint for
7883 ISA 3.0 vector d-form support.
7884 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7885 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
7886 include -mpower9-dform-vector until we switch over to LRA.
7887 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7888 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7889 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7890 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7891 for -mpower9-dform and -mlra.
7892 * doc/md.texi (wO constraint): Document wO constraint.
7893
7894 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
7895
7896 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7897 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7898 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7899 Move handling of non-insn arguments inline into the sole user:
7900 (output_trans_func): ...here.
7901 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7902 in emitted function prototype.
7903 (output_internal_insn_latency_func): Ditto. Simplify.
7904 (output_internal_maximal_insn_latency_func): Ditto. Delete
7905 always-unused argument.
7906 (output_insn_latency_func): Ditto.
7907 (output_maximal_insn_latency_func): Ditto.
7908
7909 2016-05-11 Richard Biener <rguenther@suse.de>
7910
7911 PR tree-optimization/71055
7912 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7913 sth with precision not equal to access size verify we don't chop
7914 off bits.
7915
7916 2016-05-11 Richard Biener <rguenther@suse.de>
7917
7918 PR debug/71057
7919 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7920 (dwarf2out_finish): Move retry_incomplete_types call ...
7921 (dwarf2out_early_finish): ... here.
7922
7923 2016-05-11 Richard Biener <rguenther@suse.de>
7924
7925 PR middle-end/71002
7926 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7927 if the langhook insists on it.
7928 * fold-const.c (make_bit_field_ref): Add arg for the original
7929 reference and preserve its alias-set.
7930 (decode_field_reference): Take exp by reference and adjust it
7931 to the original memory reference.
7932 (optimize_bit_field_compare): Adjust callers.
7933 (fold_truth_andor_1): Likewise.
7934 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7935
7936 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
7937
7938 PR middle-end/70807
7939 * cfgrtl.h (delete_insn_and_edges): Now return bool.
7940 * cfgrtl.c (delete_insn_and_edges): Likewise.
7941 * config/i386/i386.c (convert_scalars_to_vector): Remove
7942 redundant code.
7943 * cse.c (cse_insn): Compute cse_cfg_altered.
7944 (delete_trivially_dead_insns): Likewise.
7945 (cse_cc_succs): Likewise.
7946 (rest_of_handle_cse): Free dominance info if required.
7947 (rest_of_handle_cse2): Likewise.
7948 (rest_of_handle_cse_after_global_opts): Likewise.
7949
7950 2016-05-11 Alan Modra <amodra@gmail.com>
7951
7952 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7953 abi_v4_pass_in_fpr): New functions.
7954 (rs6000_function_arg_boundary): Exclude complex IBM long double
7955 from 64-bit alignment when ABI_V4.
7956 (rs6000_function_arg, rs6000_function_arg_advance_1,
7957 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7958
7959 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
7960
7961 PR rtl-optimization/71028
7962 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7963 jump with just a return in the fallthrough block if the branch
7964 block contains just a return as well.
7965
7966 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
7967
7968 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7969 * match.pd ((X & Y) ^ Y): ... this.
7970 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7971 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7972
7973 2016-05-10 David Malcolm <dmalcolm@redhat.com>
7974
7975 * read-md.c (require_char_ws): New function.
7976 (read_string): Simplify using require_char_ws.
7977 (handle_constants): Likewise.
7978 (handle_enum): Likewise.
7979 (handle_file): Likewise.
7980 * read-md.h (require_char_ws): New declaration.
7981 * read-rtl.c (read_conditions): Simplify using require_char_ws.
7982 (read_mapping): Likewise.
7983 (read_rtx_code): Likewise.
7984 (read_nested_rtx): Likewise.
7985
7986 2016-05-10 James Norris <jnorris@codesourcery.com>
7987
7988 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7989 if offloading is enabled and -fopenacc or -fopenmp is specified.
7990 (CRTOFFLOADEND): Likewise.
7991 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7992 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7993
7994 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
7995
7996 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
7997 gotoff_operand code paths. Use copy_to_suggested_regs and
7998 expand_simple_binop where appropriate. Cleanup.
7999
8000 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8001
8002 PR target/70799
8003 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8004 integer constants.
8005 (dimode_scalar_chain::vector_const_cost): New.
8006 (dimode_scalar_chain::compute_convert_gain): Handle constants.
8007 (dimode_scalar_chain::convert_op): Likewise.
8008 (dimode_scalar_chain::convert_insn): Likewise.
8009
8010 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8011
8012 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8013 unary operation, not a binary one.
8014
8015 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8016
8017 PR middle-end/70877
8018 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8019 calls with type casted fndecl.
8020
8021 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8022
8023 PR tree-optimization/70786
8024 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8025 * calls.c (initialize_argument_information): Bind bounds
8026 with corresponding args passed by reference.
8027
8028 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8029
8030 PR target/70927
8031 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8032 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8033 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8034 accordingly.
8035
8036 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8037
8038 PR target/70963
8039 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8040 code for a zero scale factor.
8041 (vsx_xvcvdpuxds_scale): Likewise.
8042
8043 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8044
8045 * diagnostic-show-locus.c (layout::layout): Call show_ruler
8046 if show_ruler_p was set on the context.
8047 (layout::show_ruler): New method.
8048 * diagnostic.h (struct diagnostic_context): Add field
8049 "show_ruler_p".
8050
8051 2016-05-10 Richard Biener <rguenther@suse.de>
8052
8053 PR tree-optimization/71039
8054 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8055 (chk_uses): New function.
8056 (propagate_with_phi): Verify we can safely replicate the lhs of an
8057 aggregate assignment on all incoming edges.
8058
8059 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8060
8061 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8062 Forward declare.
8063 (rx_atomic_sequence): New class.
8064 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8065 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8066 non-inline.
8067 (rx_atomic_sequence::rx_atomic_sequence,
8068 rx_atomic_sequence::~rx_atomic_sequence): New functions.
8069 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8070 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8071 CTRLREG_INTB): New constants.
8072 (FETCHOP): New code iterator.
8073 (fethcop_name, fetchop_name2): New iterator code attributes.
8074 (QIHI): New mode iterator.
8075 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8076 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8077 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8078
8079 2016-05-10 Martin Liska <mliska@suse.cz>
8080
8081 * tree-inline.c (remap_dependence_clique): Do not remap
8082 debugging statements.
8083
8084 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8085
8086 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8087 ("*fixuns_truncdfdi2_z13")
8088 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8089 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8090 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8091
8092 2016-05-10 Richard Biener <rguenther@suse.de>
8093
8094 PR tree-optimization/70497
8095 PR tree-optimization/28367
8096 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8097 split out from ...
8098 (visit_reference_op_load): ... here.
8099 (vn_reference_lookup_3): Use it to handle subreg-like accesses
8100 with simplified BIT_FIELD_REFs.
8101 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8102 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8103 correctly.
8104
8105 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8106
8107 * dwarf2out.c (add_abstract_origin_attribute): Adjust
8108 documentation comment. For BLOCK nodes, add a
8109 DW_AT_abstract_origin attribute that points to the DIE generated
8110 for the origin BLOCK.
8111 (gen_lexical_block_die): Call add_abstract_origin_attribute for
8112 blocks from inlined functions.
8113
8114 2016-05-10 Alan Modra <amodra@gmail.com>
8115
8116 PR target/70947
8117 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8118 regrename modifying insns saving lr before __morestack call.
8119 * config/rs6000/rs6000.md (split_stack_return): Similarly for
8120 insns restoring lr after __morestack call.
8121
8122 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8123
8124 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8125 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8126 expanders.
8127 * config/i386/sse.md (vec_interleave_high<mode>,
8128 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8129 <avx512>_vpermt2var<mode>3_maskz): Likewise.
8130
8131 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8132
8133 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8134 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8135 parallel reassociation for power8 and forward.
8136
8137 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8138
8139 * config/i386/i386.md (absneg splitters with general regs): Use
8140 general_reg_operand predicate.
8141 (btsq peephole2): Use x86_64_immediate_operand to check if new
8142 value is suitable for immediate operand. Generate emitted insn
8143 using RTL expressions.
8144 (btcq peephole2): Ditto.
8145 (btrq peephole2): Ditto. Generate correct immediate operand
8146 for AND masking.
8147
8148 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8149
8150 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8151 bitpos.
8152
8153 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8154
8155 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8156 pointer dereference.
8157
8158 2016-05-09 Richard Biener <rguenther@suse.de>
8159
8160 PR tree-optimization/70985
8161 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8162 op0 isn't a gimple register.
8163
8164 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8165
8166 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8167 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8168 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8169 (i6400_fpu_mult): New cpu units.
8170 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8171 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8172 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8173 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8174 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8175 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8176 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8177 (i6400_msa_long_float4, i6400_msa_long_float5)
8178 (i6400_msa_long_float8, i6400_msa_fdiv_df)
8179 (i6400_msa_fdiv_sf): New reservations.
8180 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8181 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8182 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8183 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8184 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8185 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8186 (msa_short_cmp, msa_short_float2, msa_short_logic3)
8187 (msa_short_store4, msa_long_load, msa_short_store)
8188 (msa_long_logic, msa_long_float2, msa_long_float4)
8189 (msa_long_float5, msa_long_float8, msa_long_mult)
8190 (msa_long_fdiv, msa_long_div): New reservations.
8191
8192 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
8193 Sameera Deshpande <sameera.deshpande@imgtec.com>
8194 Matthew Fortune <matthew.fortune@imgtec.com>
8195 Graham Stott <graham.stott@imgtec.com>
8196 Chao-ying Fu <chao-ying.fu@imgtec.com>
8197
8198 * config.gcc: Add MSA header file for mips*-*-* target.
8199 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8200 (Ubv8i, Urv8): New constraints.
8201 * config/mips/mips-ftypes.def: Add function types for MSA
8202 builtins.
8203 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8204 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8205 * config/mips/mips-msa.md: New file.
8206 * config/mips/mips-protos.h
8207 (mips_split_128bit_const_insns): New prototype.
8208 (mips_msa_idiv_insns): Likewise.
8209 (mips_split_128bit_move): Likewise.
8210 (mips_split_128bit_move_p): Likewise.
8211 (mips_split_msa_copy_d): Likewise.
8212 (mips_split_msa_insert_d): Likewise.
8213 (mips_split_msa_fill_d): Likewise.
8214 (mips_expand_msa_branch): Likewise.
8215 (mips_const_vector_same_val_p): Likewise.
8216 (mips_const_vector_same_bytes_p): Likewise.
8217 (mips_const_vector_same_int_p): Likewise.
8218 (mips_const_vector_shuffle_set_p): Likewise.
8219 (mips_const_vector_bitimm_set_p): Likewise.
8220 (mips_const_vector_bitimm_clr_p): Likewise.
8221 (mips_msa_vec_parallel_const_half): Likewise.
8222 (mips_msa_output_division): Likewise.
8223 (mips_ldst_scaled_shift): Likewise.
8224 (mips_expand_vec_cond_expr): Likewise.
8225 * config/mips/mips.c (enum mips_builtin_type): Add
8226 MIPS_BUILTIN_MSA_TEST_BRANCH.
8227 (mips_gen_const_int_vector_shuffle): New prototype.
8228 (mips_const_vector_bitimm_set_p): New function.
8229 (mips_const_vector_bitimm_clr_p): Likewise.
8230 (mips_const_vector_same_val_p): Likewise.
8231 (mips_const_vector_same_bytes_p): Likewise.
8232 (mips_const_vector_same_int_p): Likewise.
8233 (mips_const_vector_shuffle_set_p): Likewise.
8234 (mips_symbol_insns): Forbid loading symbols via immediate for
8235 MSA.
8236 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8237 stores.
8238 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8239 MSA.
8240 (mips_lx_address_p): Add support load indexed address for MSA.
8241 (mips_address_insns): Add calculation of instructions needed for
8242 stores and loads for MSA.
8243 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
8244 CONST_VECTOR for MSA and let it fall through.
8245 (mips_ldst_scaled_shift): New function.
8246 (mips_subword_at_byte): Likewise.
8247 (mips_msa_idiv_insns): Likewise.
8248 (mips_legitimize_move): Validate MSA moves.
8249 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
8250 calculation of costs for MSA division.
8251 (mips_split_move_p): Check if MSA moves need splitting.
8252 (mips_split_move): Split MSA moves if necessary.
8253 (mips_split_128bit_move_p): New function.
8254 (mips_split_128bit_move): Likewise.
8255 (mips_split_msa_copy_d): Likewise.
8256 (mips_split_msa_insert_d): Likewise.
8257 (mips_split_msa_fill_d): Likewise.
8258 (mips_output_move): Handle MSA moves.
8259 (mips_expand_msa_branch): New function.
8260 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8261 Reinstate 'y' modifier.
8262 (mips_file_start): Add MSA .gnu_attribute.
8263 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8264 FPRs.
8265 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8266 (mips_class_max_nregs): Add register size for MSA supported mode.
8267 (mips_cannot_change_mode_class): Allow conversion between MSA
8268 vector modes and TImode.
8269 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8270 instruction.
8271 (mips_secondary_reload_class): Force MSA loads/stores via memory.
8272 (mips_preferred_simd_mode): Add preffered modes for MSA.
8273 (mips_vector_mode_supported_p): Add MSA supported modes.
8274 (mips_autovectorize_vector_sizes): New function.
8275 (mips_msa_output_division): Likewise.
8276 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8277 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8278 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8279 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8280 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8281 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8282 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8283 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8284 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8285 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8286 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8287 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8288 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8289 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8290 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8291 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8292 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8293 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8294 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8295 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8296 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8297 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8298 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8299 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8300 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8301 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8302 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8303 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8304 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8305 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8306 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8307 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8308 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8309 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8310 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8311 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8312 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8313 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8314 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8315 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8316 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8317 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8318 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8319 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8320 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8321 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8322 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8323 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8324 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8325 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8326 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8327 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8328 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8329 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8330 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8331 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8332 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8333 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8334 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8335 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8336 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8337 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8338 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8339 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8340 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8341 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8342 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8343 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8344 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8345 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8346 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8347 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8348 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8349 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8350 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8351 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8352 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8353 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8354 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8355 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8356 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8357 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8358 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8359 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8360 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8361 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8362 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8363 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8364 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8365 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8366 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8367 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8368 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8369 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8370 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8371 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8372 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8373 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8374 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8375 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8376 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8377 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8378 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8379 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8380 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8381 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8382 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8383 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8384 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8385 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8386 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8387 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8388 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8389 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8390 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8391 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8392 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8393 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8394 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8395 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8396 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8397 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8398 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8399 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8400 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8401 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8402 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8403 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8404 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8405 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8406 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8407 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8408 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8409 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8410 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8411 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8412 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8413 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8414 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8415 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8416 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8417 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8418 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8419 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8420 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8421 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8422 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8423 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8424 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8425 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8426 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8427 move_v builtins.
8428 (mips_get_builtin_decl_index): New array.
8429 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8430 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8431 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8432 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8433 (mips_init_builtins): Initialize mips_get_builtin_decl_index
8434 array.
8435 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8436 hook.
8437 (mips_expand_builtin_insn): Prepare operands for
8438 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8439 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8440 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8441 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8442 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8443 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8444 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8445 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8446 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8447 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8448 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8449 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8450 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8451 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8452 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8453 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8454 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8455 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8456 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8457 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8458 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8459 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8460 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8461 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8462 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8463 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8464 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8465 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8466 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8467 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8468 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8469 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8470 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8471 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8472 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8473 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8474 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8475 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8476 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8477 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8478 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8479 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8480 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8481 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8482 These are set implicitly and an error is reported if overridden.
8483 (mips_expand_builtin_msa_test_branch): New function.
8484 (mips_expand_msa_shuffle): Likewise.
8485 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8486 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8487 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8488 (mips_expand_vec_unpack): Add support for MSA.
8489 (mips_expand_vector_init): Likewise.
8490 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8491 instead of const0_rtx.
8492 (mips_msa_vec_parallel_const_half): New function.
8493 (mips_gen_const_int_vector): Likewise.
8494 (mips_gen_const_int_vector_shuffle): Likewise.
8495 (mips_expand_msa_cmp): Likewise.
8496 (mips_expand_vec_cond_expr): Likewise.
8497 * config/mips/mips.h
8498 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8499 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8500 specified.
8501 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8502 (ISA_HAS_MSA): New macro.
8503 (UNITS_PER_MSA_REG): Likewise.
8504 (BITS_PER_MSA_REG): Likewise.
8505 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8506 (MSA_REG_FIRST): New macro.
8507 (MSA_REG_LAST): Likewise.
8508 (MSA_REG_NUM): Likewise.
8509 (MSA_REG_P): Likewise.
8510 (MSA_REG_RTX_P): Likewise.
8511 (MSA_SUPPORTED_MODE_P): Likewise.
8512 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8513 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8514 * config/mips/mips.md: Include mips-msa.md.
8515 (alu_type): Add simd_add.
8516 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8517 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8518 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8519 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8520 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8521 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8522 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8523 simd_move, simd_load, simd_store. Choose "multi" for moves
8524 for "qword_mode".
8525 (qword_mode): New attribute.
8526 (insn_count): Add instruction count for quad moves.
8527 Increase the count for MIPS SIMD division.
8528 (UNITMODE): Add UNITMODEs for vector types.
8529 (addsub): New code iterator.
8530 * config/mips/mips.opt (mmsa): New option.
8531 * config/mips/msa.h: New file.
8532 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8533 specified.
8534 * config/mips/mti-linux.h: Likewise.
8535 * config/mips/predicates.md
8536 (const_msa_branch_operand): New constraint.
8537 (const_uimm3_operand): Likewise.
8538 (const_uimm4_operand): Likewise.
8539 (const_uimm5_operand): Likewise.
8540 (const_uimm8_operand): Likewise.
8541 (const_imm5_operand): Likewise.
8542 (aq10b_operand): Likewise.
8543 (aq10h_operand): Likewise.
8544 (aq10w_operand): Likewise.
8545 (aq10d_operand): Likewise.
8546 (const_m1_operand): Likewise.
8547 (reg_or_m1_operand): Likewise.
8548 (const_exp_2_operand): Likewise.
8549 (const_exp_4_operand): Likewise.
8550 (const_exp_8_operand): Likewise.
8551 (const_exp_16_operand): Likewise.
8552 (const_vector_same_val_operand): Likewise.
8553 (const_vector_same_simm5_operand): Likewise.
8554 (const_vector_same_uimm5_operand): Likewise.
8555 (const_vector_same_uimm6_operand): Likewise.
8556 (const_vector_same_uimm8_operand): Likewise.
8557 (par_const_vector_shf_set_operand): Likewise.
8558 (reg_or_vector_same_val_operand): Likewise.
8559 (reg_or_vector_same_simm5_operand): Likewise.
8560 (reg_or_vector_same_uimm6_operand): Likewise.
8561 * doc/extend.texi (MIPS SIMD Architecture Functions): New
8562 section.
8563 * doc/invoke.texi (-mmsa): Document new option.
8564
8565 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8566
8567 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8568 * configure: Regenerate.
8569 * config.in: Regenerate.
8570 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8571 on -fvtable-verify.
8572 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8573 (ENDFILE_VTV_SPEC): Define.
8574
8575 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8576
8577 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8578 registers in all interrupt handlers if necessary.
8579 (rl78_option_override): Add warning.
8580 (MUST_SAVE_MDUC_REGISTERS): New macro.
8581 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8582 * config/rl78/rl78.c (check_mduc_usage): New function.
8583 (mduc_regs): New structure to hold MDUC register data.
8584 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8585 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8586 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8587 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8588 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8589 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8590
8591 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8592
8593 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8594 (tree-ssa-loop-niter.h): Ditto.
8595 (idx_within_array_bound, ref_within_array_bound): New functions.
8596 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8597 Factor out check on writable base object to ...
8598 (base_object_writable): ... here.
8599
8600 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8601
8602 * config/arm/arm.md (probe_stack): Add modes to set source
8603 and destination.
8604
8605 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8606
8607 * regrename.c (base_reg_class_for_rename): New static function.
8608 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8609
8610 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8611
8612 * cgraph.c (thunk_adjust): Export.
8613 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8614 * cgraphunit.c (thunk_adjust): Export.
8615 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8616 thunks.
8617 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8618 inlinable.
8619 * tree-inline.c (expand_call_inline): Expand thunks inline.
8620
8621 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8622
8623 PR target/70998
8624 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8625 (*sse2_vd_cvtss2sd): Ditto.
8626 * config/i386/i386.md
8627 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8628 Generate *sse2_vd_cvtsd2ss pattern.
8629 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8630 Generate *sse2_vd_cvtss2sd pattern.
8631
8632 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8633
8634 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8635 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
8636 users.
8637
8638 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8639
8640 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8641 * config/sh/sh.c: Define and declare variables on first use throughout
8642 the file.
8643 (current_function_interrupt): Change to bool type.
8644 (frame_insn): Rename to emit_frame_insn and update users.
8645 (push_regs): Use bool for 'interrupt_handler' argument.
8646 (save_schedule_s): Remove.
8647 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8648 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8649 targetm.asm_out.unaligned_op.di.
8650 (gen_far_branch): Remove redundant forward declaration.
8651 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8652 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8653 (sh_set_return_address, sh_function_ok_for_sibcall,
8654 scavenge_reg): Update comments.
8655 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8656 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8657 (sh_attr_renesas_p): Remove unnecessary parentheses.
8658 (branch_dest): Simplify.
8659 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8660 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8661 (CUMULATIVE_ARGS): Change macro to typedef.
8662 (current_function_interrupt): Change to bool type.
8663 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8664 Surround with __cplusplus ifdef.
8665 (sh_compare_op0, sh_compare_op1): Remove.
8666 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8667
8668 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
8669
8670 * config/arm/arm.md: (arch): Add neon.
8671 (arch_enabled): Return yes for arch neon when TARGET_NEON.
8672 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
8673 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
8674 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
8675 attributes for alt renumbering. Mark alt 3 as non-predicable.
8676 (thumb2_movdf_vfp): Likewise.
8677
8678 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
8679
8680 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8681 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8682 (*andqi_1): Add preferred_for_speed attribute to disparage
8683 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8684 (*<code>qi_1): Ditto.
8685 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8686 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8687 (*ashlqi3_1): Ditto.
8688 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8689 Add preferred_for_size attribute to disparage alternative 0 and
8690 preferred_for_speed attribute to disparage alternative 1 for
8691 TARGET_PARTIAL_REG_STALL targets.
8692
8693 2016-05-07 Tom de Vries <tom@codesourcery.com>
8694
8695 PR tree-optimization/70956
8696 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8697 def.
8698
8699 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
8700
8701 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8702 * config/sh/sh.c (sh_cbranch_distance): Implement it.
8703 * config/sh/sh.md (branch_zero): Remove define_attr.
8704 (define_delay): Disable delay slot if branch distance is one insn.
8705
8706 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8707
8708 * config/i386/i386.md (LEAMODE): New mode attribute.
8709 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8710 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8711 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
8712 operand 2 predicate.
8713 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8714 (*lea<mode>_general_3): Ditto.
8715 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8716
8717 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8718
8719 * genmddump.c (main): Convert argv from char ** to const char **.
8720
8721 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8722
8723 * coretypes.h (OVERRIDE): New macro.
8724 (FINAL): New macro.
8725
8726 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
8727
8728 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8729 allow coalescing if the types are compatible.
8730
8731 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8732
8733 * pass_manager.h (pass_manager::register_pass_name): New method.
8734 (pass_manager::get_pass_by_name): New method.
8735 (pass_manager::create_pass_tab): New method.
8736 (pass_manager::m_name_to_pass_map): New field.
8737 * passes.c (name_to_pass_map): Delete global in favor of field
8738 "m_name_to_pass_map" of pass_manager.
8739 (register_pass_name): Rename from a function to...
8740 (pass_manager::register_pass_name): ...this method, updating
8741 for renaming of global "name_to_pass_map" to field
8742 "m_name_to_pass_map".
8743 (create_pass_tab): Rename from a function to...
8744 (pass_manager::create_pass_tab): ...this method, updating
8745 for renaming of global "name_to_pass_map" to field.
8746 (get_pass_by_name): Rename from a function to...
8747 (pass_manager::get_pass_by_name): ...this method.
8748 (enable_disable_pass): Convert use of get_pass_by_name to
8749 a method call, locating the pass_manager singleton.
8750
8751 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8752
8753 * genattr-common.c (main): Convert argv from char ** to const char **.
8754 * genattr.c (main): Likewise.
8755 * genattrtab.c (main): Likewise.
8756 * genautomata.c (initiate_automaton_gen): Likewise.
8757 (main): Likewise.
8758 * gencodes.c (main): Likewise.
8759 * genconditions.c (main): Likewise.
8760 * genconfig.c (main): Likewise.
8761 * genconstants.c (main): Likewise.
8762 * genemit.c (main): Likewise.
8763 * genenums.c (main): Likewise.
8764 * genextract.c (main): Likewise.
8765 * genflags.c (main): Likewise.
8766 * genmddeps.c (main): Likewise.
8767 * genopinit.c (main): Likewise.
8768 * genoutput.c (main): Likewise.
8769 * genpeep.c (main): Likewise.
8770 * genpreds.c (main): Likewise.
8771 * genrecog.c (main): Likewise.
8772 * gensupport.c (init_rtx_reader_args_cb): Likewise.
8773 (init_rtx_reader_args): Likewise.
8774 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8775 (init_rtx_reader_args): Likewise.
8776 * gentarget-def.c (main): Likewise.
8777 * read-md.c (read_md_files): Likewise.
8778 * read-md.h (read_md_files): Likewise.
8779
8780 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8781
8782 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8783 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8784 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8785 Remove unused predicate.
8786 (register_and_not_fp_reg_operand): Ditto.
8787
8788 2016-05-06 Martin Liska <mliska@suse.cz>
8789
8790 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8791 instead of vec as the vector is local to the function.
8792
8793 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8794
8795 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8796 avx512bw alternative.
8797
8798 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8799 before the ashr<mode>3 pattern.
8800
8801 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8802 v instead of x in vex or maybe_vex alternatives, use
8803 maybe_evex instead of vex in prefix.
8804
8805 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8806 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8807 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8808 in vex or maybe_vex alternatives, use maybe_evex instead of vex
8809 in prefix.
8810
8811 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8812 v instead of x in vex or maybe_vex alternatives, use
8813 maybe_evex instead of vex in prefix.
8814
8815 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8816 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8817 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8818 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8819 alternatives, use maybe_evex instead of vex in prefix.
8820
8821 * config/i386/sse.md (vec_interleave_lowv4sf,
8822 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8823 v instead of x in vex or maybe_vex alternatives, use
8824 maybe_evex instead of vex in prefix.
8825
8826 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8827 v instead of x in vex or maybe_vex alternatives, use
8828 maybe_evex instead of vex in prefix.
8829
8830 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8831 v constraint instead of x.
8832
8833 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
8834
8835 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8836 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8837 equality first.
8838
8839 2016-05-06 Richard Biener <rguenther@suse.de>
8840
8841 PR tree-optimization/70948
8842 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8843 Properly clobber all fields of va_list for __builtin_va_start.
8844
8845 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8846
8847 PR debug/70935
8848 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8849 loop latch destination.
8850
8851 2016-05-06 Martin Liska <mliska@suse.cz>
8852
8853 * tree-ssa-uninit.c: Apply manual changes
8854 to the GNU coding style.
8855 (prune_uninit_phi_opnds): Rename from
8856 prune_uninit_phi_opnds_in_unrealizable_paths.
8857
8858 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8859
8860 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8861 mspace): Remove deprecated options.
8862 * doc/invoke.texi (SH options): Remove -mspace.
8863
8864 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8865
8866 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8867
8868 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8869
8870 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8871 corresponding combine split pattern.
8872
8873 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8874
8875 PR target/58219
8876 * config/sh/predicates.md (long_displacement_mem_operand): New.
8877 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8878 Add movi20, movi20s alternatives. Adjust length attribute for
8879 alternatives.
8880 (movsi_ie): Allow for any FPU. Adjust length attribute for
8881 alternatives.
8882 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
8883 attribute for alternatives.
8884 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8885 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8886 length attribute for alternatives.
8887
8888 2016-05-06 Richard Biener <rguenther@suse.de>
8889
8890 PR tree-optimization/70960
8891 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8892
8893 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8894
8895 PR target/52933
8896 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8897 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8898
8899 2016-05-06 Marek Polacek <polacek@redhat.com>
8900
8901 PR sanitizer/70875
8902 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8903
8904 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8905
8906 PR target/54089
8907 * config/sh/sh.md (*rotcr): Add another variant.
8908
8909 2016-05-06 Richard Biener <rguenther@suse.de>
8910
8911 PR middle-end/70931
8912 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8913
8914 2016-05-06 Richard Biener <rguenther@suse.de>
8915
8916 PR middle-end/70941
8917 * fold-const.c (split_tree): Always convert to the original type
8918 before negating.
8919
8920 2016-05-06 Richard Biener <rguenther@suse.de>
8921
8922 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8923 (fwprop_addr): Likewise.
8924
8925 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8926
8927 PR target/70873
8928 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8929 New prototype.
8930 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8931 * config/i386/i386.md (push mem splitter): Use find_constant_src in
8932 the splitter condition.
8933 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8934 the splitter condition.
8935 (FP float_extend load splitter): Ditto.
8936
8937 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
8938
8939 * config/i386/i386.md (peehole2 patterns): Change true_regnum
8940 to REGNO in all peephole2 patterns.
8941 (post-reload splitters): Change true_regnum to REGNO in
8942 post-reload splitters.
8943 (zero_extend splitters): Use general_reg_operand and
8944 nonimmediate_gr_operand predicates.
8945
8946 2016-05-05 Jakub Jelinek <jakub@redhat.com>
8947
8948 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8949 v constraint instead of x.
8950
8951 2016-05-05 Alan Modra <amodra@gmail.com>
8952
8953 PR target/68662
8954 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8955 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
8956 TARGET_NO_FP_IN_TOC for -mrelocatable.
8957 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8958 TARGET_RELOCATABLE test.
8959 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8960 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8961 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8962 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8963 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8964 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8965 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8966 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8967 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8968 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8969 Likewise.
8970 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8971 (rs6000_stack_info): Likewise.
8972 (rs6000_elf_asm_out_constructor): Likewise.
8973 (rs6000_elf_asm_out_destructor): Likewise.
8974 (rs6000_elf_declare_function_name): Likewise.
8975 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8976 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8977 Don't define.
8978
8979 2016-05-05 Alan Modra <amodra@gmail.com>
8980
8981 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8982
8983 2016-05-05 Alan Modra <amodra@gmail.com>
8984
8985 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8986 out-of-line gpr restore for one or two regs if that would add
8987 a save of lr.
8988
8989 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
8990
8991 PR target/70873
8992 * config/i386/i386.md
8993 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8994 Change to post-epilogue_completed late splitter. Use sse_reg_operand
8995 as operand 0 predicate.
8996 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
8997 Ditto.
8998 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
8999 Ditto. Emit the pattern using RTX.
9000
9001 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9002 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
9003 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
9004 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9005 Ditto.
9006 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9007 sse_reg_operand as operand 0 predicate.
9008
9009 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9010 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
9011 instead of gen_rtx_REG.
9012 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9013 Ditto.
9014
9015 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9016
9017 * function.c (emit_use_return_register_into_block): Delete.
9018 (gen_return_pattern): Delete.
9019 (emit_return_into_block): Delete.
9020 (active_insn_between): Delete.
9021 (convert_jumps_to_returns): Delete.
9022 (emit_return_for_exit): Delete.
9023 (thread_prologue_and_epilogue_insns): Delete all code dealing with
9024 simple_return for shrink-wrapped blocks.
9025 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9026 end of blocks that need one.
9027 (get_unconverted_simple_return): Delete.
9028 (convert_to_simple_return): Delete.
9029 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9030 (convert_to_simple_return): Ditto.
9031
9032 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9033
9034 * cfgcleanup.c (bb_is_just_return): New function.
9035 (try_optimize_cfg): Simplify jumps to return, branches to return,
9036 and branches around return.
9037
9038 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9039
9040 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9041 branch to a return.
9042
9043 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9044
9045 PR c++/70906
9046 PR c++/70933
9047 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9048 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9049 assert flags & OEP_HASH_CHECK, instead of asserting it
9050 never happens. Handle TARGET_EXPR.
9051 * fold-const.c (operand_equal_p): For hash verification,
9052 or in OEP_HASH_CHECK into flags.
9053
9054 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9055
9056 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9057 comment.
9058 (compute_samebase_partition_bases): Fix typo.
9059
9060 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9061
9062 * config/i386/sse.md (vec_interleave_highv8sf,
9063 vec_interleave_lowv8sf, vec_interleave_highv4df,
9064 vec_interleave_lowv4df): Remove constraints from expanders.
9065
9066 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9067
9068 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9069
9070 * tree-inline.c (expand_call_inline): Fix path dealing with
9071 making lhs of call statement undefined.
9072
9073 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9074
9075 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9076 Check availability on NODE, too.
9077 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9078 (cgraph_node::call_for_symbol_and_aliases): Likewise.
9079 (varpool_node::call_for_symbol_and_aliase): Likewise.
9080 * ipa-pure-const.c (add_new_function): Analyze all bodies.
9081 (propagate_pure_const): Propagate across interposable functions, too.
9082 (skip_function_for_local_pure_const): Do not skip interposable bodies
9083 with aliases.
9084 (pass_local_pure_const::execute): Update.
9085
9086 2016-05-04 Marek Polacek <polacek@redhat.com>
9087
9088 * doc/invoke.texi: Document -Wdangling-else.
9089
9090 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9091
9092 * config.gcc: Error out when conflicting multilib is detected. Do not
9093 loop over multilibs since no combination is legal.
9094
9095 2016-05-04 Alan Modra <amodra@gmail.com>
9096
9097 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9098 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9099 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9100 Align .toc.
9101
9102 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9103
9104 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9105 Clean up p5600 comments.
9106
9107 2016-05-04 Richard Biener <rguenther@suse.de>
9108
9109 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9110 constructor simplifications.
9111 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9112
9113 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9114
9115 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9116 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9117 result.set_rtx is null instead of aborting.
9118 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9119 Always enable.
9120 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9121 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9122 *mov<mode>_store_postinc): New patterns.
9123
9124 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9125
9126 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
9127 as commutative. Check both conversions are NOP.
9128 ((A & B) OP (C & B)): Remove.
9129
9130 2016-05-04 Alan Modra <amodra@gmail.com>
9131
9132 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9133
9134 2016-05-04 Alan Modra <amodra@gmail.com>
9135
9136 PR target/70866
9137 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9138 when cr2,3,4 are all fixed regs.
9139
9140 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9141
9142 PR rtl-optimization/57193
9143 * opts.c (default_options_table): Revert OPT_frename_registers change.
9144 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9145
9146 2016-05-03 Martin Sebor <msebor@redhat.com>
9147
9148 PR c++/66561
9149 * builtins.c (fold_builtin_FILE): New function.
9150 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9151 (fold_builtin_0): Call them.
9152 * gimplify.c (gimplify_call_expr): Remove the handling of
9153 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9154
9155 PR c++/66561
9156 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9157 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9158 constants.
9159
9160 PR c++/66639
9161 * doc/extend.texi (Function Names as Strings): Update __func__,
9162 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9163 constants.
9164
9165 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9166 Richard Biener <rguenther@suse.de>
9167
9168 PR tree-optimization/70916
9169 * tree-if-conv.c: Include cfganal.h.
9170 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9171 and remove_fake_exit_edges around the optimization pass.
9172
9173 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9174
9175 * cgraph.c (symbol_table::create_edge): Set inline_failed.
9176 (cgraph_edge::make_direct): Likewise.
9177 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9178 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9179 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9180 (CIF_THUNK): New code.
9181 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9182 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9183 (compute_inline_parameters): Set inline_failed for thunks.
9184 (inline_analyze_function): Cleanup.
9185 * ipa-inline.c (can_inline_edge_p): Do not deal with
9186 call_stmt_cannot_inline_p.
9187 (can_early_inline_edge_p): Likewise.
9188 (early_inliner): Initialize inline_failed.
9189 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9190
9191 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9192
9193 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9194 from nonimm_ssenomem_operand.
9195 (nonimm_ssenomem_operand): New predicate.
9196 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9197 as operand 0 predicate.
9198 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9199 Disable unsupported alternatives using "enabled" attribute.
9200 Use register_ssemem_operand as operand 0 predicate.
9201 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9202
9203 2016-05-03 Marek Polacek <polacek@redhat.com>
9204
9205 PR c/70859
9206 * input.c (expansion_point_location): New function.
9207 * input.h (expansion_point_location): Declare.
9208
9209 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9210
9211 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9212 occurence with frame_offset_ ones.
9213
9214 2016-05-03 Alan Modra <amodra@gmail.com>
9215
9216 PR rtl-optimization/70890
9217 * ira.c (combine_and_move_insns): When moving def_insn, remove
9218 equivs on use_insn.
9219
9220 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9221
9222 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9223 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9224 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9225 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9226
9227 2016-05-03 Alan Modra <amodra@gmail.com>
9228
9229 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9230 for SAVE_MULTIPLE/STORE_MULTIPLE.
9231
9232 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9233
9234 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9235 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9236
9237 2016-05-03 Richard Biener <rguenther@suse.de>
9238
9239 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9240 default true.
9241 (gimplify_arg): Likewise.
9242 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9243 re-writing the result to a decl if required.
9244 (internal_get_tmp_var): Add allow_ssa parameter
9245 and override into_ssa with it.
9246 (get_formal_tmp_var): Adjust.
9247 (get_initialized_tmp_var): Add allow_ssa parameter.
9248 (gimplify_arg): Add allow_ssa parameter and avoid generating
9249 SSA names for the result false.
9250 (gimplify_call_expr): If the call may return twice do not
9251 gimplify parameters into SSA.
9252 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9253 (gimplify_modify_expr): Adjust assert. For noreturn calls
9254 with a SSA name LHS adjust its def.
9255 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9256 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9257 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9258 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9259 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
9260 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
9261 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9262 (optimize_target_teams): Do not allow SSA names for clause operands.
9263 (gimplify_expr): Likewise for where we mark the result addressable.
9264 * passes.def (pass_init_datastructures): Remove.
9265 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9266 (rewrite_stmt): Likewise.
9267 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9268 (replace_locals_op): Replace SSA names.
9269 (copy_gimple_seq_and_replace_locals): Init src_cfun.
9270 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9271 * cgraph.c (release_function_body): Free CFG annotations only
9272 when we have a CFG. Simplify.
9273 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9274 force_gimple_operand instead of get_initialized_tmp_var.
9275 * tree-pass.h (make_pass_init_datastructures): Remove.
9276 * tree-ssa.c (execute_init_datastructures): Remove.
9277 (pass_data_init_datastructures): Likewise.
9278 (class pass_init_datastructures): Likewise.
9279 (make_pass_init_datastructures): Likewise.
9280 * omp-low.c (create_omp_child_function): Init SSA data structures.
9281 (grid_expand_target_grid_body): Likewise.
9282 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9283 name before adding it to names_to_release.
9284 (remove_bb): Always release SSA defs.
9285 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9286 before dereferencing it.
9287 * cgraphunit.c (init_lowered_empty_function): Always
9288 int SSA data structures.
9289 * tree-ssanames.c (release_defs): Remove assert that we are in
9290 SSA form.
9291 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9292
9293 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9294 Uros Bizjak <ubizjak@gmail.com>
9295
9296 PR rtl-optimization/70467
9297 * config/i386/predicates.md (x86_64_hilo_int_operand,
9298 x86_64_hilo_general_operand): New predicates.
9299 * config/i386/constraints.md (Wd): New constraint.
9300 * config/i386/i386.md (mode attr di): Use Wd instead of e.
9301 (general_hilo_operand): New mode attr.
9302 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9303 instead of <general_operand>.
9304 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9305 x86_64_hilo_general_operand instead of <general_operand>.
9306
9307 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9308
9309 PR tree-optimization/70916
9310 * tree-if-conv.c (constant_or_ssa_name): Removed.
9311 (fold_build_cond_expr): Use is_gimple_val instead of
9312 constant_or_ssa_name.
9313
9314 PR tree-optimization/70916
9315 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9316 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9317
9318 PR target/49244
9319 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9320 (optimize_atomic_bit_test_and): New function.
9321 (pass_fold_builtins::execute): Use it.
9322 * optabs.def (atomic_bit_test_and_set_optab,
9323 atomic_bit_test_and_complement_optab,
9324 atomic_bit_test_and_reset_optab): New optabs.
9325 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9326 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9327 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9328 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9329 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9330 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9331 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9332 * doc/md.texi (atomic_bit_test_and_set@var{mode},
9333 atomic_bit_test_and_complement@var{mode},
9334 atomic_bit_test_and_reset@var{mode}): Document.
9335 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9336 atomic_bit_test_and_complement<mode>,
9337 atomic_bit_test_and_reset<mode>): New expanders.
9338 (atomic_bit_test_and_set<mode>_1,
9339 atomic_bit_test_and_complement<mode>_1,
9340 atomic_bit_test_and_reset<mode>_1): New insns.
9341
9342 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9343
9344 PR rtl-optimization/70687
9345 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
9346 instead of unsigned HOST_WIDE_INT.
9347
9348 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9349
9350 PR rtl-optimization/44281
9351 * hard-reg-set.h (struct target_hard_regs): New field
9352 x_fixed_nonglobal_reg_set.
9353 (fixed_nonglobal_reg_set): New macro.
9354 * reginfo.c (init_reg_sets_1): Initialize it.
9355 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9356 of fixed_reg_set.
9357 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9358
9359 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9360
9361 PR tree-optimization/56541
9362 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9363 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9364 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9365 (any_complicated_phi): new static variable.
9366 (aggressive_if_conv): delete.
9367 (if_convertible_phi_p): support phis with more than two arguments.
9368 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9369 critical pred edges.
9370 (ifcvt_split_critical_edges): support phis with more than two
9371 arguments by checking new parameter. only split critical edges
9372 if needed.
9373 (tree_if_conversion): handle simd pragma marked loop using new
9374 local variable aggressive_if_conv. check any_complicated_phi.
9375
9376 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9377
9378 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9379 before using it.
9380
9381 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9382
9383 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9384 cbase.
9385
9386 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
9387
9388 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9389 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9390 define_insn_and_split.
9391 (mulsi3_i): New define_insn_and_split.
9392 (mulsi3_call): Convert to define_insn.
9393 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9394 Remove constraints.
9395
9396 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9397
9398 * machmode.h (mode_complex): Add support to give the complex mode
9399 for a given mode.
9400 (GET_MODE_COMPLEX_MODE): Likewise.
9401 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9402 stored by build_complex_type and gfc_build_complex_type instead of
9403 trying to figure out the appropriate mode based on the size. Raise
9404 an assertion error, if the type was not set.
9405 * genmodes.c (struct mode_data): Add field for the complex type of
9406 the given type.
9407 (blank_mode): Likewise.
9408 (make_complex_modes): Remember the complex mode created in the
9409 base type.
9410 (emit_mode_complex): Write out the mode_complex array to map a
9411 type mode to the complex version.
9412 (emit_insn_modes_c): Likewise.
9413 * tree.c (build_complex_type): Set the complex type to use before
9414 calling layout_type.
9415 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9416 support for __float128 complex datatypes.
9417 (rs6000_hard_regno_mode_ok): Likewise.
9418 (rs6000_setup_reg_addr_masks): Likewise.
9419 (rs6000_complex_function_value): Likewise.
9420 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9421 __float128 and __ibm128 complex.
9422 (FLOAT128_IBM_P): Likewise.
9423 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9424 * doc/extend.texi (Additional Floating Types): Document that
9425 -mfloat128 must be used to enable __float128. Document complex
9426 __float128 and __ibm128 support.
9427
9428 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9429
9430 PR target/49244
9431 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9432 char/short arguments promoted to int because of promote_prototypes.
9433
9434 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9435
9436 * config/i386/predicates.md (register_ssemem_operand): New predicate.
9437 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9438 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9439 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
9440 alternatives using "enabled" attribute. Use register_ssemem_operand
9441 as operand 1 predicate.
9442 (*cmpi<unord>xf_i387): Split XFmode pattern from
9443 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9444 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9445 *absneg<mode>2_i387. Disable unsupported alternatives using
9446 "enabled" attribute.
9447 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9448
9449 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9450
9451 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9452 marker.
9453 (oacc_loop_process): Check mask for loop termination.
9454
9455 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9456
9457 * cif-code.def (CIF_THUNK): Add.
9458 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9459 accidental change.
9460
9461 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9462
9463 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9464 (dump_inline_summary): Dump it.
9465 (fp_expression_p): New predicate.
9466 (estimate_function_body_sizes): Use it.
9467 (inline_merge_summary): Merge fp_expressions.
9468 (inline_read_section): Read fp_expressions.
9469 (inline_write_summary): Write fp_expressions.
9470 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9471 codegen boundary if either caller or callee is !fp_expressions.
9472 * ipa-inline.h (inline_summary): Add fp_expressions.
9473 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9474 to fp_expressions be sure the fp generation flags are updated.
9475
9476 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9477
9478 PR rtl-optimization/70467
9479 * cse.c (cse_insn): Handle no-op MEM moves after folding.
9480
9481 PR rtl-optimization/70467
9482 * ipa-pure-const.c (check_call): Handle internal calls even in
9483 ipa mode like in local mode.
9484
9485 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9486
9487 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9488
9489 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9490
9491 * match.pd (X u< X, X u> X): New transformations.
9492
9493 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9494
9495 * flag-types.h (enum warn_strict_overflow_code): Move ...
9496 * coretypes.h: ... here.
9497 * fold-const.h (fold_overflow_warning): Declare.
9498 * fold-const.c (fold_overflow_warning): Make non-static.
9499 (fold_comparison): Move the transformation of X +- C1 CMP C2
9500 into X CMP C2 -+ C1 ...
9501 * match.pd: ... here.
9502 * gimple-fold.c (fold_stmt_1): Protect with
9503 fold_defer_overflow_warnings.
9504
9505 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9506
9507 * omp-low.c (struct oacc_loop): Add 'inner' field.
9508 (new_oacc_loop_raw): Initialize it to zero.
9509 (oacc_loop_fixed_partitions): Initialize it.
9510 (oacc_loop_auto_partitions): Partition outermost loop to outermost
9511 available partitioning.
9512
9513 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9514
9515 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9516 register_operand.
9517 (umulsidi3): Likewise.
9518 (indirect_jump): Fix jump instruction assembly patterns.
9519
9520 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9521
9522 PR target/70860
9523 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9524 (nvptx_function_value): Assert non-NULL cfun.
9525
9526 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9527
9528 PR rtl-optimization/70886
9529 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9530
9531 * cselib.h (rtx_equal_for_cselib_1): Declare.
9532 (rtx_equal_for_cselib_p: New inline function.
9533 * cselib.c (rtx_equal_for_cselib_p): Delete.
9534 (rtx_equal_for_cselib_1): Make public.
9535
9536 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9537
9538 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9539 (register_mixssei387nonimm_operand): Remove predicate.
9540 * config/i386/i386.md (*fop_<mode>_comm): Merge from
9541 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
9542 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
9543 for TARGET_MIX_SSE_I387 alternatives.
9544 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9545 Disable unsupported alternatives using "enabled" attribute. Use
9546 nonimm_ssenomem_operand as operand 1 predicate. Also check
9547 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9548
9549 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9550
9551 * tree.c (cst_and_fits_in_hwi): Simplify.
9552
9553 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9554
9555 * tree.h (wi::to_wide): New function.
9556 * expr.c (expand_expr_real_1): Use wi::to_wide.
9557 * fold-const.c (int_const_binop_1): Likewise.
9558 (extract_muldiv_1): Likewise.
9559
9560 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9561
9562 * wide-int.h: Update offset_int and widest_int documentation.
9563 (WI_SIGNED_SHIFT_RESULT): New macro.
9564 (wi::binary_shift): Define signed_shift_result_type for
9565 shifts on offset_int- and widest_int-like types.
9566 (generic_wide_int): Support <<= and >>= if << and >> are supported.
9567 * tree.h (int_bit_position): Use shift operators instead of wi::
9568 shifts.
9569 * alias.c (adjust_offset_for_component_ref): Likewise.
9570 * expr.c (get_inner_reference): Likewise.
9571 * fold-const.c (fold_comparison): Likewise.
9572 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9573 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9574 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9575 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9576 (stmt_kills_ref_p): Likewise.
9577 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9578 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9579 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9580 (ao_ref_init_from_vn_reference): Likewise.
9581
9582 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9583
9584 * wide-int.h: Update offset_int and widest_int documentation.
9585 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9586 (wi::binary_traits): Allow ordered comparisons between offset_int and
9587 offset_int, between widest_int and widest_int, and between either
9588 of these types and basic C types.
9589 (operator <, <=, >, >=): Define for the same combinations.
9590 * tree.h (tree_int_cst_lt): Use comparison operators instead
9591 of wi:: comparisons.
9592 (tree_int_cst_le): Likewise.
9593 * gimple-fold.c (fold_array_ctor_reference): Likewise.
9594 (fold_nonarray_ctor_reference): Likewise.
9595 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9596 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9597 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9598 * tree-sra.c (completely_scalarize): Likewise.
9599 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9600 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9601 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9602 (check_for_binary_op_overflow): Likewise.
9603 (search_for_addr_array): Likewise.
9604 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9605
9606 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9607
9608 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9609 (arc_save_restore): Likewise.
9610 (arc_dwarf_register_span): Likewise.
9611 (arc_output_pic_addr_const): Initialize suffix variable.
9612
9613 2016-05-02 Martin Liska <mliska@suse.cz>
9614
9615 * symbol-summary.h (function_summary::function_summary):
9616 Remove checking assert for all cgraph nodes.
9617 (function_summary::get): Check summary_uid.
9618 (symtab_insertion): Check summary_uid.
9619
9620 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9621
9622 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9623 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9624 bmaskn instruction.
9625 (arc_dwarf_register_span): Remove enum keyword.
9626 (compact_memory_operand_p): New function.
9627 * config/arc/arc.h (reg_class): Add code density register classes.
9628 (REG_CLASS_NAMES): Likewise.
9629 (REG_CLASS_CONTENTS): Likewise.
9630 * config/arc/arc.md (*movqi_insn): Add code density instructions.
9631 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9632 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9633 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9634 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9635 constraints.
9636 (h, Rcd, Rsd, Rzd): New register constraints.
9637 (T): Use compact_memory_operand_p function.
9638 * config/arc/predicates.md (compact_load_memory_operand): Remove.
9639
9640 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9641
9642 * config/sh/sh.md (*negnegt, *movtt): Remove.
9643
9644 2016-05-02 Marek Polacek <polacek@redhat.com>
9645 Tom de Vries <tom@codesourcery.com>
9646
9647 PR tree-optimization/70700
9648 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9649 bigger than FIRST_REF_NODE.
9650
9651 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9652
9653 PR target/52898
9654 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9655 TARGET_CMPEQDI_T.
9656 (prepare_cbranch_operands): Don't use scratch register. Assume that
9657 function is used when pseudos can be created.
9658 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
9659 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9660 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9661 define_expand. Allow it only when pseudos can be created.
9662 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9663
9664 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
9665
9666 * config/i386/constraints.md (BC): Only allow -1 operands.
9667 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9668 Add "enabled" attribute. Update XI mode attribute calculation.
9669 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9670 (*movoi_internal_avx): Update XI mode attribute calculation.
9671 (*movti_internal): Ditto.
9672
9673 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9674
9675 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9676 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9677
9678 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
9679
9680 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9681 statement on instruction code. Remove trailing spaces.
9682 (altivec_expand_stv_builtin): Likewise.
9683
9684 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9685
9686 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9687 (TARGET_FPU_DOUBLE): Simplify.
9688 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9689 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9690 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9691 with 'TARGET_FPU_DOUBLE'.
9692 * config/sh/sh.md: Likewise.
9693
9694 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
9695
9696 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9697 SH_DIV_STR_FOR_SIZE): Remove.
9698 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9699 SH_DIV_STR_FOR_SIZE): Remove.
9700
9701 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9702
9703 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9704 logical_reg_operand): Delete.
9705 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9706 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9707 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9708 match_operand and match_test.
9709 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
9710 variables on their first use. Return bool values.
9711 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9712 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9713 arith_reg_operand for input operand. Remove empty constraints.
9714 (xorsi3): Delete.
9715 (*xorsi3_compact): Rename to xorsi3.
9716 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9717 (*zero_extend<mode>si2_disp_mem): Update comment.
9718 (mov_nop): Delete.
9719
9720 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9721
9722 * config/sh/t-sh: Remove SH5 support.
9723 * config.gcc: Likewise.
9724 * configure: Likewise.
9725
9726 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9727
9728 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9729
9730 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9731
9732 * config/sh/sh.c (register_sh_passes, sh_option_override,
9733 sh_print_operand, prepare_move_operands,
9734 sh_can_follow_jump): Remove TARGET_SH1 checks.
9735 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9736 PROMOTE_MODE): Likewise.
9737 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9738 movdi): Likewise.
9739
9740 2016-04-30 Alan Modra <amodra@gmail.com>
9741
9742 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9743 restoring when fixed_reg_p, but allow out-of-line or stmw save.
9744 Check for user regs later to avoid unnecessary looping over regs.
9745 Merge user reg check with non-saved reg check. Don't force
9746 inline VR restore when static chain used.
9747 (rs6000_frame_related): Omit eh_frame info for user regs when
9748 saving.
9749 (fixed_regs_p): Delete.
9750
9751 2016-04-30 Alan Modra <amodra@gmail.com>
9752
9753 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9754 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
9755 Update all uses.
9756
9757 2016-04-30 Alan Modra <amodra@gmail.com>
9758
9759 PR target/69645
9760 * config/rs6000/rs6000.c (fixed_reg_p): New function.
9761 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
9762 Update all uses.
9763
9764 2016-04-30 Alan Modra <amodra@gmail.com>
9765
9766 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9767 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
9768 flag_pic test for Darwin.
9769
9770 2016-04-30 Alan Modra <amodra@gmail.com>
9771
9772 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9773 throw_calls_crossed.
9774 (REG_FREQ_CALLS_CROSSED): Delete.
9775 (REG_N_THROWING_CALLS_CROSSED): Delete.
9776 * regstat.c (regstat_bb_compute_ri): Don't calculate
9777 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9778 (dump_reg_info): Don't print call cross frequency.
9779 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9780 and REG_N_THROWING_CALLS_CROSSED.
9781
9782 2016-04-30 Alan Modra <amodra@gmail.com>
9783
9784 * regs.h (struct reg_info_t): Delete live_length.
9785 (REG_LIVE_LENGTH): Delete macro.
9786 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9787 local_live, local_processed and local_live_last_luid params.
9788 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
9789 Formatting fixes.
9790 (regstat_compute_ri): Adjust for above. Don't set
9791 REG_LIVE_LENGTH.
9792 (dump_reg_info): Don't print live length.
9793 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9794 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
9795 Localize loop_depth var.
9796
9797 2016-04-30 Alan Modra <amodra@gmail.com>
9798
9799 * ira.c (enum valid_equiv): New.
9800 (validate_equiv_mem): Return enum.
9801 (update_equiv_mem): Create replacement in more cases.
9802 (add_store_equivs): Update validate_equiv_mem call.
9803
9804 2016-04-30 Alan Modra <amodra@gmail.com>
9805
9806 * ira.c (combine_and_move_insns): Rather than scanning insns,
9807 use DF infrastucture to find use and def insns.
9808
9809 2016-04-30 Alan Modra <amodra@gmail.com>
9810
9811 ira.c (combine_and_move_insns): Move invariant conditions..
9812 (ira.c): ..to here. Call combine_and_move_insns before
9813 add_store_equivs. Call grow_reg_equivs later. Allocate
9814 req_equiv later using max_reg_num() rather than global max_regno.
9815 (contains_replace_regs): Delete.
9816 (add_store_equivs): Remove contains_replace_regs test.
9817
9818 2016-04-30 Alan Modra <amodra@gmail.com>
9819
9820 * ira.c (struct equiv_mem_data): New.
9821 (equiv_mem, equiv_mem_modified): Delete static vars.
9822 (validate_equiv_mem_from_store): Use "data" param to communicate..
9823 (validate_equiv_mem): ..from here.
9824
9825 2016-04-30 Alan Modra <amodra@gmail.com>
9826
9827 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9828 split out from..
9829 (update_reg_equivs): ..here. Move allocation and freeing of
9830 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9831 end_alias_analysis to..
9832 (ira): ..here.
9833
9834 2016-04-30 Alan Modra <amodra@gmail.com>
9835
9836 * ira.c (pdx_subregs): Delete.
9837 (struct equivalence): Add pdx_subregs field.
9838 (set_paradoxical_subreg): Remove pdx_subregs param. Update
9839 pdx_subregs access.
9840 (update_equiv_regs): Don't create or free pdx_subregs. Update
9841 pdx_subregs access.
9842
9843 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9844
9845 * config/rs6000/altivec.h: Change definitions of vec_xl and
9846 vec_xst.
9847 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9848 (LD_ELEMREV_V2DI): New.
9849 (LD_ELEMREV_V4SF): New.
9850 (LD_ELEMREV_V4SI): New.
9851 (LD_ELEMREV_V8HI): New.
9852 (LD_ELEMREV_V16QI): New.
9853 (ST_ELEMREV_V2DF): New.
9854 (ST_ELEMREV_V2DI): New.
9855 (ST_ELEMREV_V4SF): New.
9856 (ST_ELEMREV_V4SI): New.
9857 (ST_ELEMREV_V8HI): New.
9858 (ST_ELEMREV_V16QI): New.
9859 (XL): New.
9860 (XST): New.
9861 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9862 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9863 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9864 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9865 (altivec_expand_builtin): Add handling for
9866 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9867 (rs6000_invalid_builtin): Add error-checking for
9868 RS6000_BTM_P9_VECTOR.
9869 (altivec_init_builtins): Define builtins used to implement vec_xl
9870 and vec_xst.
9871 (rs6000_builtin_mask_names): Define power9-vector.
9872 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9873 (RS6000_BTM_P9_VECTOR): Define.
9874 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9875 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9876 (vsx_ld_elemrev_v2df): Likewise.
9877 (vsx_ld_elemrev_v4sf): Likewise.
9878 (vsx_ld_elemrev_v4si): Likewise.
9879 (vsx_ld_elemrev_v8hi): Likewise.
9880 (vsx_ld_elemrev_v16qi): Likewise.
9881 (vsx_st_elemrev_v2df): Likewise.
9882 (vsx_st_elemrev_v2di): Likewise.
9883 (vsx_st_elemrev_v4sf): Likewise.
9884 (vsx_st_elemrev_v4si): Likewise.
9885 (vsx_st_elemrev_v8hi): Likewise.
9886 (vsx_st_elemrev_v16qi): Likewise.
9887 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
9888 grammar.
9889
9890 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
9891
9892 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9893 out into ...
9894 (simplify_control_stmt_condition_1): ... here. Recurse into
9895 BIT_AND_EXPRs and BIT_IOR_EXPRs.
9896
9897 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
9898
9899 PR target/69810
9900 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9901 (zero_extendqi<mode>2_dot): Revert earlier conversion from
9902 define_insn_and_split to define_insn.
9903 (zero_extendqi<mode>2_dot2): Same.
9904 (extendqi<mode>2_dot): Same.
9905 (extendqi<mode>2_dot2): Same.
9906
9907 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9908
9909 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9910 (probe_stack): New expander.
9911 (probe_stack_<mode>): New insn pattern.
9912
9913 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9914
9915 * config/i386/i386.md
9916 (operations with memory inputs setting flags peephole2):
9917 Remove uneeded REG_P checks. Cleanup pattern generation.
9918
9919 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
9920
9921 * tree-vect-loop.c (vect_transform_loop): Fix
9922 nb_iterations_upper_bound computation for vectorized loop.
9923
9924 2016-04-29 Marek Polacek <polacek@redhat.com>
9925 Jakub Jelinek <jakub@redhat.com>
9926
9927 PR sanitizer/70342
9928 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9929 TARGET_EXPR_SLOT as a base.
9930
9931 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9932
9933 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9934 with 'rCm2' constraints to limit possible immediate size.
9935 (*load_zeroextendqisi_update): Likewise.
9936 (*load_signextendqisi_update): Likewise.
9937 (*loadhi_update): Likewise.
9938 (*load_zeroextendhisi_update): Likewise.
9939 (*load_signextendhisi_update): Likewise.
9940 (*loadsi_update): Likewise.
9941 (*loadsf_update): Likewise.
9942
9943 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9944
9945 * config/i386/predicates.md (constm1_operand): Fix comparison.
9946
9947 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9948
9949 * testsuite/gcc.target/arc/ieee_eq.c: New test.
9950
9951 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
9952
9953 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9954 remaining SH5 related settings.
9955 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9956 shmedia_prepare_call_address): Delete.
9957 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9958 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9959 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9960 UNSUPPORTED_SH2A): Remove m5 checks.
9961 (sh_divide_strategy_e): Remove SH5 division strategies.
9962 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9963 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9964
9965 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9966
9967 * config/s390/s390.c (s390_rtx_costs): Update documentation.
9968
9969 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9970
9971 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9972 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9973 Change lder to ldr.
9974 * config/s390/vector.md ("mov<mode>"): Likewise.
9975
9976 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
9977
9978 * config/s390/constraints.md ("U", "W"): Invoke
9979 s390_mem_constraint with "ZR" and "ZT".
9980 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9981 addresses when using LRA. Accept also short displacements for S
9982 and T constraints. Do not check for long displacement target for
9983 S and T constraints.
9984 (s390_mem_constraint): Remove handling of U and W constraints.
9985 * config/s390/s390.md (various patterns): Remove the short
9986 displacement constraints (Q and R) if a long displacement
9987 constraint is present. Add longdisp as required CPU capability.
9988 * config/s390/vector.md: Likewise.
9989 * config/s390/vx-builtins.md: Likewise.
9990
9991 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9992
9993 PR target/60040
9994 * reload1.c (reload): Call finish_spills before
9995 restarting reload loop. Skip select_reload_regs
9996 if update_eliminables_and_spill returns true.
9997
9998 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9999
10000 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10001 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10002 (umulhisi3_imm): Update predicates and constraint letters.
10003 (umulhisi3_reg): Declare instruction as commutative.
10004 * config/arc/constraints.md (J12, J16): New constraints.
10005 * config/arc/predicates.md (short_unsigned_const_operand): New
10006 predicate.
10007 (arc_short_operand): Likewise.
10008 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10009
10010 2016-04-29 Richard Biener <rguenther@suse.de>
10011
10012 PR tree-optimization/13962
10013 PR tree-optimization/65686
10014 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10015 * tree-ssa-alias.c (ptrs_compare_unequal): New function
10016 using PTA to compare pointers.
10017 * match.pd: Add pattern for pointer equality compare simplification
10018 using ptrs_compare_unequal.
10019
10020 2016-04-29 Richard Biener <rguenther@suse.de>
10021
10022 * stor-layout.c (layout_type): Do not build a pointer-to-element
10023 type for arrays.
10024
10025 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10026
10027 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10028 Use SWI mode iterator. Use general_reg_operand predicate.
10029 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10030 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
10031 predicates.
10032
10033 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10034
10035 PR middle-end/70843
10036 * fold-const.c (operand_equal_p): Don't verify hash value equality
10037 if arg0 == arg1.
10038 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10039 and OMP_CLAUSE.
10040
10041 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10042
10043 PR target/70858
10044 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10045 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10046 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10047 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10048 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10049
10050 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10051
10052 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10053 to info. Don't initialize separate fields to 0. Clean up
10054 formatting a bit.
10055
10056 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10057
10058 * config/i386/i386.md (peephole2s for operations with memory inputs):
10059 Use SWI mode iterator.
10060 (peephole2s for operations with memory outputs): Ditto.
10061 Do not check for stack checking probe.
10062
10063 (probe_stack): Remove expander.
10064
10065 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10066 Andrew Burgess <andrew.burgess@embecosm.com>
10067
10068 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10069 operands as 32-bits.
10070
10071 2016-04-28 Jason Merrill <jason@redhat.com>
10072
10073 * gdbinit.in: Skip line-map.h.
10074
10075 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10076 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * config/arc/arc.c (arc_conditional_register_usage): Take
10079 TARGET_RRQ_CLASS into account.
10080 (arc_print_operand): Support printing 'p' and 's' operands.
10081 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10082 as 0.
10083 (TARGET_RRQ_CLASS): Define.
10084 (IS_POWEROF2_OR_0_P): Define.
10085 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10086 alternatives.
10087 (*tst_movb): New define_insn.
10088 (*tst): Avoid recognition if it could prevent '*tst_movb'
10089 combination; replace c/CnL with c/Chs alternative.
10090 (*tst_bitfield_tst): New define_insn.
10091 (*tst_bitfield_asr): New define_insn.
10092 (*tst_bitfield): New define_insn.
10093 (andsi3_i): Add Rrq variant.
10094 (extzv): New define_expand.
10095 (insv): New define_expand.
10096 (*insv_i): New define_insn.
10097 (*movb): New define_insn.
10098 (*movb_signed): New define_insn.
10099 (*movb_high): New define_insn.
10100 (*movb_high_signed): New define_insn.
10101 (*movb_high_signed + 1): New define_split pattern.
10102 (*mrgb): New define_insn.
10103 (*mrgb + 1): New define_peephole2 pattern.
10104 (*mrgb + 2): New define_peephole2 pattern.
10105 * config/arc/arc.opt (mbitops): New option for nps400, uses
10106 TARGET_NPS_BITOPS_DEFAULT.
10107 * config/arc/constraints.md (q): Make register class conditional.
10108 (Rrq): New register constraint.
10109 (Chs): New constraint.
10110 (Clo): New constraint.
10111 (Chi): New constraint.
10112 (Cbf): New constraint.
10113 (Cbn): New constraint.
10114 (C18): New constraint.
10115 (Cbi): New constraint.
10116
10117 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10118
10119 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10120 dst->popcount.
10121 (bitmap_intersection_of_preds): Ditto.
10122 (bitmap_union_of_succs): Ditto.
10123 (bitmap_union_of_preds): Ditto.
10124 * sbitmap.c (do_popcount): Delete.
10125 (BITMAP_DEBUGGING): Delete.
10126 (sbitmap_verify_popcount): Delete.
10127 (sbitmap_alloc): Don't initialize the popcount field.
10128 (sbitmap_alloc_with_popcount): Delete.
10129 (sbitmap_resize): Don't resize the popcount array.
10130 (sbitmap_vector_alloc): Don't initialize the popcount field.
10131 (bitmap_copy): Don't copy the popcount array.
10132 (bitmap_clear): Don't clear the popcount array.
10133 (bitmap_clear): Delete the popcount array handling.
10134 (bitmap_ior_and_compl): Delete the popcount assert.
10135 (bitmap_not): Ditto.
10136 (bitmap_and_compl): Ditto.
10137 (bitmap_and): Delete the popcount array handling.
10138 (bitmap_xor): Ditto.
10139 (bitmap_ior): Ditto.
10140 (bitmap_or_and): Delete the popcount assert.
10141 (bitmap_and_or): Ditto.
10142 (popcount_table): Delete.
10143 (sbitmap_elt_popcount): Delete.
10144 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10145 (bitmap_set_bit): Delete the popcount assert.
10146 (bitmap_clear_bit): Ditto.
10147 (sbitmap_free): Don't free the popcount array.
10148 (sbitmap_alloc_with_popcount): Delete declaration.
10149 (sbitmap_popcount): Ditto.
10150
10151 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10152 Andrew Burgess <andrew.burgess@embecosm.com>
10153
10154 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10155 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10156 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10157 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10158 * config/arc/arc.opt (mcmem): New option.
10159 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10160 supply length for r/m alternative.
10161 (*extendqisi2_ac): Likewise.
10162 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10163 r/Uex alternative.
10164 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10165 (movhi_insn): Likewise.
10166 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10167 (*zero_extendqihi2_i): Add r/Ucm alternative.
10168 (*zero_extendqisi2_ac): Likewise.
10169 (*zero_extendhisi2_i): Likewise.
10170 * config/arc/constraints.md (Uex): New memory constraint.
10171 (Ucm): New define_constraint.
10172 * config/arc/predicates.md (long_immediate_loadstore_operand):
10173 Return 0 for MEM with cmem_address address.
10174 (cmem_address_0): New predicates.
10175 (cmem_address_1): Likewise.
10176 (cmem_address_2): Likewise.
10177 (cmem_address): Likewise.
10178
10179 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10180
10181 * config/rs6000/rs6000.c (machine_function): Rename
10182 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10183 (rs6000_stack_info): Adjust.
10184
10185 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10186 Andrew Burgess <andrew.burgess@embecosm.com>
10187
10188 * config/arc/constraints.md (Usd): Convert to define_constraint.
10189 (Us<): Likewise.
10190 (Us>): Likewise.
10191
10192 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10193
10194 PR target/70821
10195 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10196 Add new peephole2 where the first insn is *mov<mode>_or instead of
10197 *mov<mode>_internal.
10198
10199 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10200
10201 * tracer.c (bb_seen): Make static.
10202
10203 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10206 support, setup defaults.
10207 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10208 * config/arc/arc.c (arc_init): Add NPS400 support.
10209 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10210 (TARGET_ARC700): NPS400 is also an ARC700.
10211 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10212
10213 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10214
10215 PR target/70668
10216 * config/nds32/nds32.md (casesi): Don't access the operands array
10217 out of bounds.
10218
10219 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10220
10221 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10222 (or $-1,reg peephole2): Ditto.
10223 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10224
10225 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10226
10227 * doc/extend.texi (Common Function Attributes) [optimize]:
10228 Discourage use of the optimize attribute.
10229
10230 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10231
10232 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10233 special case builtin.
10234 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10235 ALTIVEC_BUILTIN_VEC_ADDE.
10236 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10237 support for ALTIVEC_BUILTIN_VEC_ADDE.
10238 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10239 for __builtin_vec_adde.
10240
10241 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10242
10243 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10244 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10245
10246 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10247
10248 PR testsuite/70595
10249 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10250 attributes): Document cilkplus_runtime.
10251
10252 2016-04-28 Martin Jambor <mjambor@suse.cz>
10253
10254 * tree-cfg.c (verify_expr): Verify that local declarations belong to
10255 this function. Call verify_expr on MEM_REFs and bases of other
10256 handled_components.
10257
10258 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10259
10260 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10261 for WORD_REGISTER_OPERATIONS to runtime check.
10262
10263 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10264
10265 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10266
10267 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10268
10269 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10270 big-endian compilation.
10271 * config/arc/arc.md (addf3): Likewise.
10272 (subdf3): Likewise.
10273 (muldf3): Likewise.
10274
10275 2016-04-28 Richard Biener <rguenther@suse.de>
10276
10277 PR tree-optimization/70840
10278 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10279 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10280 Mark x * pow(x,c) -> pow(x,c+1) commutative.
10281 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10282
10283 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10284
10285 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10286 and explain why in a comment.
10287
10288 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10289
10290 * config/arc/arc.md (cpu_facility): Add fpx variant.
10291 (subdf3): Prohibit use reverse sub when assist operations option
10292 is enabled.
10293 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10294 instructions only when FPX is enabled.
10295 * testsuite/gcc.target/arc/trsub.c: New test.
10296
10297 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10298
10299 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10300 mult_operator when calculating "type" attribute.
10301 (*fop_<mode>_1_i387): Ditto.
10302 (*fop_xf_1_i387): Ditto.
10303 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10304 Use std::swap to swap operands. Use RTL expressions to generate
10305 converted pattern.
10306
10307 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10308 Joern Rennecke <joern.rennecke@embecosm.com>
10309
10310 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10311 declaration.
10312 (emit_pic_move): Remove.
10313 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10314 * config/arc/arc.c (emit_pic_move): Removed.
10315 (TARGET_HAVE_TLS): Define.
10316 (arc_conditional_register_usage): Test for arc_tp_regno.
10317 (arc_print_operand, arc_print_operand_address): Handle TLS
10318 unspecs.
10319 (arc_needs_pcl_p): New function.
10320 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10321 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10322 (arc_raw_symbolic_reference_mentioned_p): Likewise.
10323 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10324 (arc_legitimize_tls_address): Likewise.
10325 (DTPOFF_ZERO_SYM): Define.
10326 (arc_legitimize_pic_address): Make it static, handle TLS cases.
10327 (arc_output_pic_addr_const): Print TLS unspecs.
10328 (prepare_pic_move): New function, replaces emit_pic_move.
10329 (arc_legitimate_constant_p): Handle TLS unspecs.
10330 (arc_legitimate_address_p): Likewise.
10331 (arc_rewrite_small_data_p): Use assert for TLS constants.
10332 (prepare_move_operands): Use prepare_pic_move.
10333 (arc_legitimize_address): Legitimize tls addresses.
10334 (arc_epilogue_uses): Check for arc_tp_regno.
10335 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10336 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10337 Define.
10338 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10339 Likewise.
10340 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10341 %(arc_tls_extra_start_spec).
10342 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10343 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10344 (EH_USES): Define.
10345 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10346 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10347 (UNSPEC_TLS_OFF): Add.
10348 (R10_REG): Define.
10349 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10350 (get_thread_pointersi): New patterns.
10351 * config/arc/arc.opt (mtp-regno): New option.
10352 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10353 (move_dest_operand): Likewise.
10354 * configure: Regenerate.
10355 * configure.ac: Add arc*-*-* case to test for tls.
10356 * doc/invoke.texi (ARC options): Document mtp-regno.
10357
10358 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10359
10360 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10361 the new ARC HS SIMD instructions.
10362 (arc_preferred_simd_mode): New function.
10363 (arc_autovectorize_vector_sizes): Likewise.
10364 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10365 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10366 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10367 (arc_init_builtins): Add new SIMD builtin types.
10368 (arc_split_move): Handle 64 bit vector moves.
10369 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10370 (TARGET_PLUS_QMACW): Define.
10371 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10372 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10373 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10374 (VSUBADD4H): New builtins.
10375 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10376 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10377
10378 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
10379 Matthias Klose <doko@debian.org>
10380
10381 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10382
10383 2016-04-28 Richard Biener <rguenther@suse.de>
10384
10385 PR middle-end/70777
10386 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10387 canonicalization.
10388
10389 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
10390
10391 * common/config/sh/sh-common.c: Remove SH5 support.
10392 * config/sh/constraints.md: Likewise.
10393 * config/sh/config/sh/elf.h: Likewise.
10394 * config/sh/linux.h: Likewise.
10395 * config/sh/netbsd-elf.h: Likewise.
10396 * config/sh/predicates.md: Likewise.
10397 * config/sh/sh-c.c: Likewise.
10398 * config/sh/sh-protos.h: Likewise.
10399 * config/sh/sh.c: Likewise.
10400 * config/sh/sh.h: Likewise.
10401 * config/sh/sh.md: Likewise.
10402 * config/sh/sh.opt: Likewise.
10403 * config/sh/sync.md: Likewise.
10404 * config/sh/sh64.h: Delete.
10405 * config/sh/shmedia.h: Likewise.
10406 * config/sh/shmedia.md: Likewise.
10407 * config/sh/sshmedia.h: Likewise.
10408 * config/sh/t-netbsd-sh5-64: Likewise.
10409 * config/sh/t-sh64: Likewise.
10410 * config/sh/ushmedia.h: Likewise.
10411
10412 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10413
10414 * config/i386/i386.md (sign_extend to memory peephole2s): Use
10415 general_reg_operand instead of register_operand predicate.
10416
10417 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10418
10419 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10420
10421 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
10422
10423 * match.pd (A - B > A, A + B < A): New transformations.
10424
10425 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
10426
10427 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10428 which defaults to true. Emit an outer pair of parentheses only if
10429 EMIT_PARENS. When continuing a chain of && or || (or & or |),
10430 don't emit parentheses for the right-hand operand.
10431
10432 2016-04-27 Jeff Law <law@redhat.com>
10433
10434 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10435
10436 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10437
10438 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10439 (altivec_lvx_<mode>_internal): Document.
10440 (altivec_lvx_<mode>_2op): New define_insn.
10441 (altivec_lvx_<mode>_1op): Likewise.
10442 (altivec_lvx_<mode>_2op_si): Likewise.
10443 (altivec_lvx_<mode>_1op_si): Likewise.
10444 (altivec_stvx_<mode>): Remove.
10445 (altivec_stvx_<mode>_internal): Document.
10446 (altivec_stvx_<mode>_2op): New define_insn.
10447 (altivec_stvx_<mode>_1op): Likewise.
10448 (altivec_stvx_<mode>_2op_si): Likewise.
10449 (altivec_stvx_<mode>_1op_si): Likewise.
10450 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10451 Expand vec_ld and vec_st during parsing.
10452 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10453 changes.
10454 (altivec_expand_stvx_be): Likewise.
10455 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10456 address-masking behavior in RTL.
10457 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10458 address-masking behavior in RTL.
10459 (altivec_expand_builtin): Change builtin code arguments for calls
10460 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10461 (insn_is_swappable_p): Avoid incorrect swap optimization in the
10462 presence of lvx/stvx patterns.
10463 (alignment_with_canonical_addr): New function.
10464 (alignment_mask): Likewise.
10465 (find_alignment_op): Likewise.
10466 (recombine_lvx_pattern): Likewise.
10467 (recombine_stvx_pattern): Likewise.
10468 (recombine_lvx_stvx_patterns): Likewise.
10469 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10470 stvx patterns from expand.
10471 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10472 expansions.
10473 (vector_altivec_store_<mode>): Likewise.
10474
10475 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
10476
10477 * config/aarch64/aarch64.md
10478 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10479 remove the "fp" attributes.
10480 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10481 add the "simd" attributes.
10482 (*movdf_aarch64): Likewise.
10483 (*movtf_aarch64): Remove the "fp" attributes.
10484 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10485 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10486
10487 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10488
10489 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10490 rtx to rtx_code_label *.
10491 * rtl.h (maybe_set_first_label_num): Likewise.
10492
10493 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10494
10495 * df-core.c (df_add_problem): Make the problem param be const.
10496 (df_remove_problem): Make local "problem" be const.
10497 * df-problems.c (problem_RD): Make const.
10498 (problem_LR): Likewise.
10499 (problem_LIVE): Likewise.
10500 (problem_MIR): Likewise.
10501 (problem_CHAIN): Likewise.
10502 (problem_WORD_LR): Likewise.
10503 (problem_NOTE): Likewise.
10504 (problem_MD): Likewise.
10505 * df-scan.c (problem_SCAN): Likewise.
10506 * df.h (struct df_problem): Make field "dependent_problem" be
10507 const.
10508 (struct dataflow): Likewise for field "problem".
10509 (df_add_problem): Make param const.
10510
10511 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10512
10513 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10514 inter-unit moves to/from vector registers are enabled. Do not disable
10515 for TARGET_MMX.
10516
10517 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10518
10519 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10520 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10521 #define to...
10522 (enum df_problem_id): ...this new enum.
10523 (struct df_problem): Convert field "id" from "int" to
10524 enum df_problem_id.
10525
10526 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10527
10528 * rtl.def: Update comment for "things in the instruction chain" to
10529 reflect the removal of the leading "i" field for INSN_UID in
10530 r210360. Fix bogus apostrophe.
10531
10532 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10533
10534 * config/i386/i386.md
10535 (lea arith with mem operand + setcc peephole2): Set operator mode.
10536
10537 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10538
10539 PR target/70155
10540 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10541 (dimode_scalar_to_vector_candidate_p): This.
10542 (timode_scalar_to_vector_candidate_p): New function.
10543 (scalar_to_vector_candidate_p): Likewise.
10544 (timode_check_non_convertible_regs): Likewise.
10545 (timode_remove_non_convertible_regs): Likewise.
10546 (remove_non_convertible_regs): Likewise.
10547 (remove_non_convertible_regs): Renamed to ...
10548 (dimode_remove_non_convertible_regs): This.
10549 (scalar_chain::~scalar_chain): Make it virtual.
10550 (scalar_chain::compute_convert_gain): Make it pure virtual.
10551 (scalar_chain::mark_dual_mode_def): Likewise.
10552 (scalar_chain::convert_insn): Likewise.
10553 (scalar_chain::convert_registers): Likewise.
10554 (scalar_chain::add_to_queue): Make it protected.
10555 (scalar_chain::emit_conversion_insns): Likewise.
10556 (scalar_chain::replace_with_subreg): Likewise.
10557 (scalar_chain::replace_with_subreg_in_insn): Likewise.
10558 (scalar_chain::convert_op): Likewise.
10559 (scalar_chain::convert_reg): Likewise.
10560 (scalar_chain::make_vector_copies): Likewise.
10561 (scalar_chain::convert_registers): New pure virtual function.
10562 (class dimode_scalar_chain): New class.
10563 (class timode_scalar_chain): Likewise.
10564 (scalar_chain::mark_dual_mode_def): Renamed to ...
10565 (dimode_scalar_chain::mark_dual_mode_def): This.
10566 (timode_scalar_chain::mark_dual_mode_def): New function.
10567 (timode_scalar_chain::convert_insn): Likewise.
10568 (dimode_scalar_chain::convert_registers): Likewise.
10569 (scalar_chain::compute_convert_gain): Renamed to ...
10570 (dimode_scalar_chain::compute_convert_gain): This.
10571 (scalar_chain::replace_with_subreg): Renamed to ...
10572 (dimode_scalar_chain::replace_with_subreg): This.
10573 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10574 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10575 (scalar_chain::make_vector_copies): Renamed to ...
10576 (dimode_scalar_chain::make_vector_copies): This.
10577 (scalar_chain::convert_reg): Renamed to ...
10578 (dimode_scalar_chain::convert_reg ): This.
10579 (scalar_chain::convert_op): Renamed to ...
10580 (dimode_scalar_chain::convert_op): This.
10581 (scalar_chain::convert_insn): Renamed to ...
10582 (dimode_scalar_chain::convert_insn): This.
10583 (scalar_chain::convert): Call convert_registers.
10584 (convert_scalars_to_vector): Change to scalar_chain pointer to
10585 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10586 in 32-bit mode. Delete scalar_chain pointer. Call
10587 free_dominance_info in 64-bit mode.
10588 (pass_stv::gate): Remove TARGET_64BIT check.
10589 (ix86_option_override): Put the 64-bit STV pass before the CSE
10590 pass.
10591
10592 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10593
10594 * dwarf2out.h (struct dw_loc_descr_node): Remove the
10595 dw_loc_frame_offset field.
10596 * dwarf2out.c (new_loc_descr): Likewise.
10597 (resolve_args_picking_1): Turn the VISITED hash set into a
10598 FRAME_OFFSET hash map. Use it to associate a frame offset to
10599 visited nodes. Remove uses of the CHECKING_P macro.
10600 (resolve_args_picking): Update call to resolve_args_picking_1.
10601
10602 2016-04-27 Martin Liska <mliska@suse.cz>
10603
10604 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10605 (free_loop_data): Release vuses of groups.
10606
10607 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10608
10609 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10610 instead of redundant use_id and boolean have_use_for.
10611 (struct iv_use): Change sub_id into group_id. Remove field next.
10612 Move fields: related_cands, n_map_members, cost_map and selected
10613 to ...
10614 (struct iv_group): ... here. New structure.
10615 (struct iv_common_cand): Use structure declaration directly.
10616 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10617 (MAX_CONSIDERED_USES): Rename macro to ...
10618 (MAX_CONSIDERED_GROUPS): ... here.
10619 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10620 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10621 (dump_uses): Rename to ...
10622 (dump_groups): ... here. Update all uses.
10623 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10624 (find_induction_variables): Refactor format of dump information.
10625 (record_sub_use): Delete.
10626 (record_use): Update all uses.
10627 (record_group): New function.
10628 (record_group_use, find_interesting_uses_op): Call above functions.
10629 Update all uses.
10630 (find_interesting_uses_cond): Ditto.
10631 (group_compare_offset): New function.
10632 (split_all_small_groups): Rename to ...
10633 (split_small_address_groups_p): ... here. Update all uses.
10634 (split_address_groups): Update all uses.
10635 (find_interesting_uses): Refactor format of dump information.
10636 (add_candidate_1): Update all uses. Remove redundant check on iv,
10637 base and step.
10638 (add_candidate, record_common_cand): Remove redundant assert.
10639 (add_iv_candidate_for_biv): Update use.
10640 (add_iv_candidate_derived_from_uses): Update all uses.
10641 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10642 (alloc_use_cost_map): Ditto.
10643 (set_use_iv_cost, get_use_iv_cost): Rename to ...
10644 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
10645 (determine_use_iv_cost_generic): Ditto.
10646 (determine_group_iv_cost_generic): Ditto.
10647 (determine_use_iv_cost_address): Ditto.
10648 (determine_group_iv_cost_address): Ditto.
10649 (determine_use_iv_cost_condition): Ditto.
10650 (determine_group_iv_cost_cond): Ditto.
10651 (determine_use_iv_cost): Ditto.
10652 (determine_group_iv_cost): Ditto.
10653 (set_autoinc_for_original_candidates): Update all uses.
10654 (find_iv_candidates): Update all uses. Refactor dump information.
10655 (determine_use_iv_costs): Ditto.
10656 (determine_iv_costs): Ditto.
10657 (iv_ca_cand_for_use): Rename to ...
10658 (iv_ca_cand_for_group): ... here. Update all uses.
10659 (iv_ca_add_use, iv_ca_add_group): Ditto.
10660 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10661 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10662 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10663 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10664 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10665 (create_new_iv, adjust_iv_update_pos): Ditto.
10666 (rewrite_use_address): Delete.
10667 (rewrite_use_address_1): Rename to ...
10668 (rewrite_use_address): ... here.
10669 (rewrite_use_compare): Update all uses.
10670 (rewrite_use): Delete.
10671 (rewrite_uses): Rename to ...
10672 (rewrite_groups): ... here. Update all uses.
10673 (remove_unused_ivs, free_loop_data): Update all uses.
10674 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10675
10676 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10677
10678 * rtlanal.c (nonzero_bits1): Convert preprocessor check
10679 for WORD_REGISTER_OPERATIONS to runtime check.
10680
10681 2016-04-27 Richard Biener <rguenther@suse.de>
10682
10683 PR ipa/70760
10684 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10685 aggregate_value_p to determine if a function result is
10686 returned by reference.
10687 (ipa_pta_execute): Functions having their address taken are
10688 not automatically nonlocal.
10689
10690 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR sanitizer/70683
10693 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10694 * fold-const.c (operand_equal_p): If flag_checking and
10695 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10696 and if it returns non-zero, assert iterative_hash_expr on both
10697 args is the same.
10698
10699 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10700
10701 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10702
10703 2016-04-27 Nick Clifton <nickc@redhat.com>
10704
10705 PR middle-end/49889
10706 * varasm.c (merge_weak): Generate an error if an attempt is made
10707 to convert a non-weak static function into a weak, public function.
10708
10709 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10710
10711 * params.def (MAX_PARTITION_SIZE): New param.
10712 * doc/invoke.texi: Document lto-max-partition.
10713
10714 2016-04-27 Richard Biener <rguenther@suse.de>
10715
10716 PR ipa/70785
10717 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10718 function cummulating used_from_other_partition, externally_visible
10719 and force_output from aliases.
10720 (refered_from_nonlocal_var): Likewise.
10721 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10722 node flags properly.
10723
10724 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10725
10726 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10727 (-Wmemset-elt-size): New item.
10728
10729 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
10730
10731 PR ada/70759
10732 * stor-layout.h (internal_reference_types): Delete.
10733 * stor-layout.c (reference_types_internal): Likewise.
10734 (internal_reference_types): Likewise.
10735 (layout_type) <REFERENCE_TYPE>: Adjust.
10736
10737 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10738
10739 PR sanitizer/70683
10740 * tree.h (inchash::add_expr): Add FLAGS argument.
10741 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
10742 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
10743 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10744 Formatting fix. Adjust recursive calls. For tcc_comparison,
10745 if swap_tree_comparison (code) is smaller than code, hash that
10746 and arguments in the other order. Hash CONVERT_EXPR the same
10747 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10748 of ADDR_EXPR of decl as the decl itself. Add or remove
10749 OEP_ADDRESS_OF from recursive flags as needed. For
10750 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10751 operands commutatively and only the third one normally.
10752 For internal CALL_EXPR hash in CALL_EXPR_IFN.
10753
10754 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
10755
10756 * config/rtems.h (LIB_SPEC): Add -latomic.
10757
10758 2016-04-27 Joel Sherrill <joel@rtems.org>
10759
10760 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10761 xilink.ld and flags not relevant to RTEMS.
10762
10763 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10764
10765 * toplev.c (backend_init_target): Avoid calling init_reload when using
10766 LRA.
10767
10768 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10769
10770 * reorg.c (try_merge_delay_insns): Declare i and j inside the
10771 for loops rather than one for the whole function.
10772
10773 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10774
10775 * match.pd (X + CST CMP X): New transformation.
10776
10777 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10778
10779 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10780 * fold-const.c (fold_binary_loc): Remove 2 transformations
10781 superseded by match.pd.
10782 * match.pd (x+x -> x*2): Generalize to integers.
10783
10784 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
10785
10786 * config/i386/i386.md (operation on memory peephole): Duplicate an
10787 existing peephole and adapt it to match lea rather than an operation
10788 that clobbers CC.
10789
10790 PR rtl-optimization/57193
10791 * opts.c (default_options_table): Add OPT_frename_registers at -O2
10792 and above.
10793 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10794
10795 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10796
10797 * tree-if-conv.c (any_pred_load_store): New static variable.
10798 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
10799 any_pred_load_store instead of and_mask_load_store.
10800 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10801 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10802 (combine_blocks, tree_if_conversion): Ditto.
10803
10804 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10805
10806 PR tree-optimization/70771
10807 PR tree-optimization/70775
10808 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10809 virtual PHI nodes. Delete parameter.
10810 (if_convertible_loop_p_1): Delete argument to above function.
10811 (predicate_all_scalar_phis): Delete code handling single-argument
10812 PHIs.
10813 (tree_if_conversion): Mark and update virtual SSA.
10814
10815 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10816
10817 PR target/61821
10818 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10819 (x86_elf_aligned_common): Rename to ...
10820 (x86_elf_aligned_decl_common): ... this.
10821 Add decl arg. Switch to .lbss for largecomm object. Use
10822 LARGECOMM_SECTION_ASM_OP.
10823 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10824 renaming.
10825 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10826 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10827 Pass new decl arg.
10828 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10829 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10830
10831 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10832
10833 PR target/59407
10834 * config/i386/i386.c (SECTION_LARGE): Define.
10835 (x86_64_elf_select_section): Set it for large data/bss sections.
10836 Only clear SECTION_WRITE for .lrodata.
10837 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10838 data/bss sections.
10839 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10840 * varasm.c (default_elf_asm_named_section): Grow flagchars.
10841 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10842 SECTION_MACH_DEP.
10843 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10844 * doc/tm.texi: Regenerate.
10845
10846 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10847
10848 PR bootstrap/70704
10849 * configure.ac (--enable-checking): Document extra flag, for
10850 non-release builds default to --enable-checking=yes,extra.
10851 If misc checking and extra checking, define CHECKING_P to 2 instead
10852 of 1.
10853 * common.opt (fchecking=): Add.
10854 * doc/invoke.texi (-fchecking=): Document.
10855 * doc/install.texi: Document --enable-checking changes.
10856 * configure: Regenerated.
10857 * config.in: Regenerated.
10858
10859 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10860
10861 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10862 attribute instead of which_alternative.
10863 * config/i386/sse.md (*mov<mode>_internal): Ditto.
10864 Use EXT_REX_SSE_REG_P where appropriate.
10865
10866 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10867
10868 * config/i386/predicates.md (const0_operand): Do not match
10869 const_wide_int code.
10870 (const1_operand): Ditto.
10871
10872 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10873
10874 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10875 for SSE constm1 operands and TARGET_AVX512VL.
10876 (*movti_internal): Ditto.
10877 (*mov<mode>_or): Use constm1_operand predicate.
10878 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10879 for SSE vector_all_ones operands and TARGET_AVX512VL.
10880 * config/i386/predicates.md (constm1_operand): New predicate.
10881 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10882 emission of constant -1 load.
10883
10884 2016-04-25 Jason Merrill <jason@redhat.com>
10885
10886 * gdbinit.in: Skip is-a.h.
10887
10888 * attribs.c (register_scoped_attributes): Fix logic.
10889 * attribs.h: Declare register_scoped_attributes.
10890
10891 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10892
10893 * config/rs6000/rs6000-builtin.def: Correct pasto error for
10894 stxvd2x and stxvw4x built-in functions.
10895
10896 2016-04-25 DJ Delorie <dj@redhat.com>
10897
10898 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10899 (ashrhi3): Likewise.
10900 (lshrhi3): Likewise.
10901
10902 2016-04-25 Richard Biener <rguenther@suse.de>
10903
10904 PR tree-optimization/70780
10905 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10906 wasn't visited yet.
10907 (compute_antic): Mark blocks with abnormal preds as visited as
10908 they have a final empty antic-in solution already.
10909
10910 2016-04-25 Michael Collison <michael.collison@linaro.org>
10911
10912 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10913
10914 2016-04-25 Michael Collison <michael.collison@linaro.org>
10915
10916 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10917 mode is VQI to improve mixed mode vectorization.
10918 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10919 define_insn to match low half of signed vaddw.
10920 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10921 define_insn to match high half of signed vaddw.
10922 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10923 define_insn to match low half of unsigned vaddw.
10924 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10925 define_insn to match high half of unsigned vaddw.
10926 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10927 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10928 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10929 for new function.
10930 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10931 * config/arm/predicates.md (vect_par_constant_high): Support
10932 big endian and simplify by calling
10933 arm_simd_check_vect_par_cnst_half
10934 (vect_par_constant_low): Likewise.
10935
10936 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10937
10938 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10939 predicate for operand 2.
10940
10941 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
10942 H.J. Lu <hongjiu.lu@intel.com>
10943
10944 * config/i386/i386-protos.h (standard_sse_constant_p): Add
10945 machine_mode argument.
10946 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10947 constm1_rtx operands. For VOIDmode constants, get mode from
10948 pred_mode. Check mode size if the mode is supported by ABI.
10949 (standard_sse_constant_opcode): Do not use standard_constant_p.
10950 Strictly check ABI support for all-ones operands.
10951 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10952 immediates. Update calls to standard_sse_constant_p.
10953 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10954 (ix86_rtx_costs): Ditto.
10955 * config/i386/i386.md (*movxi_internal_avx512f): Use
10956 nonimmediate_or_sse_const_operand instead of vector_move_operand.
10957 Use (v,BC) alternative instead of (v,C). Use register_operand
10958 checks instead of MEM_P.
10959 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10960 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
10961 isa attribute. Use register_operand checks instead of MEM_P.
10962 (*movti_internal): Use nonimmediate_or_sse_const_operand for
10963 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
10964 alternative and corresponding sse2 isa attribute.
10965 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10966 to standard_sse_constant_p.
10967 (FP constant splitters): Ditto.
10968 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10969 (C): Ditto.
10970 * config/i386/predicates.md (constm1_operand): Remove.
10971 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10972 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10973 vector_all_ones_operand instead of constm1_operand.
10974
10975 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10976
10977 * print-rtl.c (print_rtx_insn_vec): New function.
10978 * print-rtl.h: New prototype.
10979 * store-motion.c (struct st_expr): Make avail_stores a vector.
10980 (st_expr_entry): Adjust.
10981 (free_st_expr_entry): Likewise.
10982 (print_store_motion_mems): Likewise.
10983 (find_moveable_store): Likewise.
10984 (compute_store_table): Likewise.
10985 (delete_store): Likewise.
10986 (build_store_vectors): Likewise.
10987
10988 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10989
10990 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10991
10992 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10993
10994 * vec.h (vec_safe_contains): New function.
10995 (vec::contains): Likewise.
10996 (vec::begin): Likewise.
10997 (vec::end): Likewise.
10998
10999 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11000
11001 PR sanitizer/70712
11002 * cfgexpand.c (expand_stack_vars): Fix typo.
11003
11004 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11005
11006 * system.h (list, map, set, vector): Include conditionally.
11007 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11008 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11009 * ipa-icf.c (INCLUDE_LIST): Define.
11010 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11011 * config/sh/sh.c (INCLUDE_VECTOR): Define.
11012 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11013 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11014 * cp/logic.cc (INCLUDE_LIST): Define.
11015 * fortran/trans-common.c (INCLUDE_MAP): Define.
11016
11017 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11018
11019 * auto-profile.c: Remove <string.h> include.
11020 * ipa-icf-gimple.c: Remove <list> include.
11021 * diagnostic.c: Remove <new> include.
11022 * genmatch.c: Likewise.
11023 * pretty-print.c: Likewise.
11024 * toplev.c: Likewise
11025 * c/c-objc-common.c: Likewise.
11026 * cp/error.c: Likewise.
11027 * fortran/error.c: Likewise.
11028
11029 2016-04-22 Richard Biener <rguenther@suse.de>
11030
11031 * lto-streamer-in.c (input_ssa_names): Do not allocate
11032 GIMPLE_NOP for all SSA names.
11033 * lto-streamer-out.c (output_ssa_names): Do not output
11034 SSA names that should have been released.
11035
11036 2016-04-22 Richard Biener <rguenther@suse.de>
11037
11038 PR tree-optimization/70740
11039 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11040 VDEF.
11041
11042 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11043
11044 PR target/70750
11045 * config/i386/predicates.md (call_insn_operand): Replace
11046 sibcall_memory_operand with memory_operand.
11047
11048 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11049
11050 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11051 has_single_use() tests.
11052 (register_edge_assert_for_1): Likewise.
11053 (find_assert_locations_1): Check the liveness bitmap instead of
11054 checking has_single_use().
11055
11056 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11057
11058 PR target/70728
11059 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11060 Extract AVX-512BW constraint from AVX.
11061
11062 2016-04-21 Richard Biener <rguenther@suse.de>
11063
11064 PR tree-optimization/70725
11065 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11066 for phi_convertible_by_degenerating_args.
11067 (predicate_all_scalar_phis): Handle single-argument PHIs.
11068
11069 2016-04-21 Richard Biener <rguenther@suse.de>
11070
11071 PR middle-end/70747
11072 * fold-const.c (fold_comparison): Return properly typed
11073 constant boolean.
11074
11075 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11076
11077 PR tree-optimization/70715
11078 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11079 after expanding BASE using expand_simple_operations.
11080
11081 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11082
11083 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11084 New transformations.
11085
11086 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11087
11088 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11089
11090 2016-04-20 Jan Hubicka <jh@suse.cz>
11091
11092 * ipa-inline.c (can_inline_edge_p): Pass caller info to
11093 ultiimate_alias_target.
11094 (update_callee_keys): Likewise.
11095 (lookup_recursive_calls): Likewise.
11096 (speculation_useful_p): Likewise.
11097
11098 2016-04-20 Jan Hubicka <jh@suse.cz>
11099
11100 PR ipa/70018
11101 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11102 (set_nothrow_flag_1): ... this; handle interposition correctly;
11103 recurse on aliases and thunks.
11104 (cgraph_node::set_nothrow_flag): New.
11105 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11106 functions compiled with non-call exceptions that binds to current
11107 def.
11108 (propagate_nothrow): Be safe WRT interposition.
11109 * cgraph.h (set_nothrow_flag): Update prototype.
11110
11111 2016-04-18 Jan Hubicka <jh@suse.cz>
11112
11113 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11114 max_loop_iterations_int.
11115 (tree_unswitch_outer_loop): Likewise.
11116
11117 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11118
11119 PR tree-optimization/69489
11120 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11121 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11122 Revise dump message.
11123 (if_convertible_bb_p): Remove check on edge count of basic block's
11124 predecessors.
11125
11126 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11127
11128 PR tree-optimization/56625
11129 PR tree-optimization/69489
11130 * tree-data-ref.h (DR_INNERMOST): New macro.
11131 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11132 hashing struct innermost_loop_behavior.
11133 (ref_DR_map): Remove.
11134 (innermost_DR_map): New map.
11135 (baseref_DR_map): Revise comment.
11136 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11137 to innermost_DR_map accroding to its innermost loop behavior.
11138 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11139 to its innermost loop behavior.
11140 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11141 Add initialization for innermost_DR_map. Record memory reference
11142 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11143 have innermost loop behavior.
11144 (if_convertible_loop_p): Remove release for ref_DR_map. Release
11145 innermost_DR_map.
11146
11147 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11148
11149 * config/i386/i386.md (*lea<mode>_general_1): Rename from
11150 *lea_general_1. Use explicit SWI12 mode interator.
11151 (*lea<mode>_general_2): Rename from *lea_general_2.
11152 Use explicit SWI12 mode interator.
11153 (*lea<mode>_general_3): Rename from *lea_general_3.
11154 Use explicit SWI12 mode interator.
11155 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11156 Use explicit SWI12 mode interator.
11157 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11158 Use explicit SWI48 mode interator.
11159
11160 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11161
11162 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11163 Short-cut unaligned load and store cases. Handle all integer
11164 vector modes.
11165 (ix86_expand_vector_move_misalign): Short-cut unaligned load
11166 and store cases. Call ix86_avx256_split_vector_move_misalign
11167 directly without checking mode class.
11168
11169 2016-04-20 Andrew Pinski <apinski@cavium.com>
11170 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11171
11172 PR target/64971
11173 * config/aarch64/aarch64.md (sibcall): Force call
11174 address to be DImode for ILP32.
11175 (sibcall_value): Likewise.
11176
11177 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11178
11179 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11180
11181 2016-04-20 Richard Biener <rguenther@suse.de>
11182
11183 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11184 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11185 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11186 (maybe_push_res_to_seq): Adjust.
11187 * gimple-fold.c (maybe_build_generic_op): Likewise.
11188
11189 2016-04-20 Marek Polacek <polacek@redhat.com>
11190
11191 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11192 rather than true.
11193
11194 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11195
11196 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11197 use kmovw to support AVX512F target.
11198
11199 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11200
11201 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11202
11203 2016-04-20 Marek Polacek <polacek@redhat.com>
11204
11205 PR tree-optimization/70725
11206 * tree-if-conv.c (is_false_predicate): New function.
11207 (predicate_mem_writes): Use it.
11208
11209 2016-04-20 Richard Biener <rguenther@suse.de>
11210
11211 PR tree-optimization/70726
11212 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11213 shift amounts from a pattern stmt operand.
11214
11215 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11216
11217 PR target/70674
11218 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11219 stack_restore_from_fpr pattern when restoring r15.
11220 (s390_optimize_prologue): Strip away the memory barrier in the
11221 parallel when trying to get rid of restore insns.
11222 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11223 definition for loading the stack pointer from an FPR. Compared to
11224 the normal move insn this pattern includes a full memory barrier.
11225
11226 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11227
11228 PR middle-end/70680
11229 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11230 implicitly linear or lastprivate iterator on the outer context.
11231
11232 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11233
11234 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11235 alignment check.
11236 * config/i386/i386.md (ssememalign): Removed.
11237 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11238
11239 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11240
11241 PR target/69201
11242 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11243 const short * to __builtin_ia32_loaddquhi512_mask.
11244 (_mm512_maskz_loadu_epi16): Likewise.
11245 (_mm512_mask_storeu_epi16): Pass short * to
11246 __builtin_ia32_storedquhi512_mask.
11247 (_mm512_mask_loadu_epi8): Pass const char * to
11248 __builtin_ia32_loaddquqi512_mask.
11249 (_mm512_maskz_loadu_epi8): Likewise.
11250 (_mm512_mask_storeu_epi8): Pass char * to
11251 __builtin_ia32_storedquqi512_mask.
11252 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11253 const double * to __builtin_ia32_loadupd512_mask.
11254 (_mm512_mask_loadu_pd): Likewise.
11255 (_mm512_maskz_loadu_pd): Likewise.
11256 (_mm512_storeu_pd): Pass double * to
11257 __builtin_ia32_storeupd512_mask.
11258 (_mm512_mask_storeu_pd): Likewise.
11259 (_mm512_loadu_ps): Pass const float * to
11260 __builtin_ia32_loadups512_mask.
11261 (_mm512_mask_loadu_ps): Likewise.
11262 (_mm512_maskz_loadu_ps): Likewise.
11263 (_mm512_storeu_ps): Pass float * to
11264 __builtin_ia32_storeups512_mask.
11265 (_mm512_mask_storeu_ps): Likewise.
11266 (_mm512_mask_loadu_epi64): Pass const long long * to
11267 __builtin_ia32_loaddqudi512_mask.
11268 (_mm512_maskz_loadu_epi64): Likewise.
11269 (_mm512_mask_storeu_epi64): Pass long long *
11270 to __builtin_ia32_storedqudi512_mask.
11271 (_mm512_loadu_si512): Pass const int * to
11272 __builtin_ia32_loaddqusi512_mask.
11273 (_mm512_mask_loadu_epi32): Likewise.
11274 (_mm512_maskz_loadu_epi32): Likewise.
11275 (_mm512_storeu_si512): Pass int * to
11276 __builtin_ia32_storedqusi512_mask.
11277 (_mm512_mask_storeu_epi32): Likewise.
11278 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11279 char * to __builtin_ia32_storedquqi256_mask.
11280 (_mm_mask_storeu_epi8): Likewise.
11281 (_mm256_mask_loadu_epi16): Pass const short * to
11282 __builtin_ia32_loaddquhi256_mask.
11283 (_mm256_maskz_loadu_epi16): Likewise.
11284 (_mm_mask_loadu_epi16): Pass const short * to
11285 __builtin_ia32_loaddquhi128_mask.
11286 (_mm_maskz_loadu_epi16): Likewise.
11287 (_mm256_mask_loadu_epi8): Pass const char * to
11288 __builtin_ia32_loaddquqi256_mask.
11289 (_mm256_maskz_loadu_epi8): Likewise.
11290 (_mm_mask_loadu_epi8): Pass const char * to
11291 __builtin_ia32_loaddquqi128_mask.
11292 (_mm_maskz_loadu_epi8): Likewise.
11293 (_mm256_mask_storeu_epi16): Pass short * to.
11294 __builtin_ia32_storedquhi256_mask.
11295 (_mm_mask_storeu_epi16): Pass short * to.
11296 __builtin_ia32_storedquhi128_mask.
11297 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11298 const double * to __builtin_ia32_loadupd256_mask.
11299 (_mm256_maskz_loadu_pd): Likewise.
11300 (_mm_mask_loadu_pd): Pass onst double * to
11301 __builtin_ia32_loadupd128_mask.
11302 (_mm_maskz_loadu_pd): Likewise.
11303 (_mm256_mask_storeu_pd): Pass double * to
11304 __builtin_ia32_storeupd256_mask.
11305 (_mm_mask_storeu_pd): Pass double * to
11306 __builtin_ia32_storeupd128_mask.
11307 (_mm256_mask_loadu_ps): Pass const float * to
11308 __builtin_ia32_loadups256_mask.
11309 (_mm256_maskz_loadu_ps): Likewise.
11310 (_mm_mask_loadu_ps): Pass const float * to
11311 __builtin_ia32_loadups128_mask.
11312 (_mm_maskz_loadu_ps): Likewise.
11313 (_mm256_mask_storeu_ps): Pass float * to
11314 __builtin_ia32_storeups256_mask.
11315 (_mm_mask_storeu_ps): ass float * to
11316 __builtin_ia32_storeups128_mask.
11317 (_mm256_mask_loadu_epi64): Pass const long long * to
11318 __builtin_ia32_loaddqudi256_mask.
11319 (_mm256_maskz_loadu_epi64): Likewise.
11320 (_mm_mask_loadu_epi64): Pass const long long * to
11321 __builtin_ia32_loaddqudi128_mask.
11322 (_mm_maskz_loadu_epi64): Likewise.
11323 (_mm256_mask_storeu_epi64): Pass long long * to
11324 __builtin_ia32_storedqudi256_mask.
11325 (_mm_mask_storeu_epi64): Pass long long * to
11326 __builtin_ia32_storedqudi128_mask.
11327 (_mm256_mask_loadu_epi32): Pass const int * to
11328 __builtin_ia32_loaddqusi256_mask.
11329 (_mm256_maskz_loadu_epi32): Likewise.
11330 (_mm_mask_loadu_epi32): Pass const int * to
11331 __builtin_ia32_loaddqusi128_mask.
11332 (_mm_maskz_loadu_epi32): Likewise.
11333 (_mm256_mask_storeu_epi32): Pass int * to
11334 __builtin_ia32_storedqusi256_mask.
11335 (_mm_mask_storeu_epi32): Pass int * to
11336 __builtin_ia32_storedqusi128_mask.
11337 * config/i386/i386-builtin-types.def (PCSHORT): New.
11338 (PINT64): Likewise.
11339 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11340 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11341 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11342 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11343 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11344 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11345 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11346 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11347 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11348 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11349 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11350 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11351 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11352 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11353 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11354 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11355 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11356 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11357 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11358 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11359 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11360 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11361 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11362 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11363 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11364 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11365 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11366 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11367 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11368 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11369 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11370 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11371 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11372 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11373 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11374 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11375 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11376 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11377 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11378 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11379 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11380 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11381 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11382 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11383 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11384 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11385 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11386 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11387 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11388 use UNSPEC_STOREU.
11389 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11390 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11391 load nor store.
11392 (ix86_expand_vector_move_misalign): Likewise.
11393 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11394 to scalar function prototype for unaligned load/store builtins.
11395 (ix86_expand_special_args_builtin): Updated.
11396 * config/i386/sse.md (UNSPEC_LOADU): Removed.
11397 (UNSPEC_STOREU): Likewise.
11398 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11399 (VI_ULOADSTORE_F_AVX512VL): Likewise.
11400 (ssescalarsize): Handle V4TI, V2TI and V1TI.
11401 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11402 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11403 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11404 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11405 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11406 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11407 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11408 (<avx512>_storedqu<mode>_mask): Likewise.
11409 (*sse4_2_pcmpestr_unaligned): Likewise.
11410 (*sse4_2_pcmpistr_unaligned): Likewise.
11411 (*mov<mode>_internal): Renamed to ...
11412 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
11413 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11414 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11415 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11416
11417 2016-04-19 Richard Biener <rguenther@suse.de>
11418
11419 PR tree-optimization/70171
11420 * tree-ssa-phiprop.c: Include stor-layout.h.
11421 (phiprop_insert_phi): Handle the aggregate copy case.
11422 (propagate_with_phi): Likewise.
11423
11424 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
11425
11426 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11427 instead of simplify_gen_subreg (... , 0).
11428 (ix86_delegitimize_address): Ditto.
11429 (ix86_split_divmod): Ditto.
11430 (ix86_split_copysign_const): Ditto.
11431 (ix86_split_copysign_var): Ditto.
11432 (ix86_expand_args_builtin): Ditto.
11433 (ix86_expand_round_builtin): Ditto.
11434 (ix86_expand_special_args_builtin): Ditto.
11435 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11436 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11437 (udivmodqi4): Ditto.
11438 (absneg splitters): Ditto.
11439 (*jcc_bt<mode>_1): Ditto.
11440
11441 2016-04-19 Richard Biener <rguenther@suse.de>
11442
11443 PR tree-optimization/70724
11444 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11445 restoring out from ...
11446 (free_scc_vn): ... here.
11447 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11448 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11449 tail merging.
11450 (pass_fre::execute): Restore SSA info.
11451
11452 2016-04-19 Richard Biener <rguenther@suse.de>
11453
11454 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11455 * gimple-walk.c (walk_gimple_op): Initialize it.
11456 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11457 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11458 remapping SSA names of defs.
11459 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11460 adjustment.
11461
11462 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
11463
11464 PR middle-end/70689
11465 * lra-constraints.c (equiv_substition_p): New.
11466 (process_alt_operands): Use it.
11467 (swap_operands): Swap it.
11468 (curr_insn_transform): Update it.
11469
11470 2016-04-18 Michael Matz <matz@suse.de>
11471
11472 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11473 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11474 * tree-core.h (tree_type_common.align): Use bit-field.
11475 (tree_type_common.spare): New.
11476 (tree_decl_common.off_align): Make smaller.
11477 (tree_decl_common.align): Use bit-field.
11478
11479 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11480 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11481 (scan_sharing_clauses): Ditto.
11482 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11483 (omp_finish_file): Ditto.
11484 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11485 (layout_decl): Ditto.
11486 (relayout_decl): Ditto.
11487 (finalize_record_size): Use SET_TYPE_ALIGN.
11488 (finalize_type_size): Ditto.
11489 (finish_builtin_struct): Ditto.
11490 (layout_type): Ditto.
11491 (initialize_sizetypes): Ditto.
11492 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11493 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11494 (lookup_field_for_decl): Use SET_DECL_ALIGN.
11495 (get_chain_field): Ditto.
11496 (get_trampoline_type): Ditto.
11497 (get_nl_goto_field): Ditto.
11498 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11499 SET_DECL_ALIGN.
11500 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11501 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11502 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11503 (build_qualified_type): Use SET_TYPE_ALIGN.
11504 (build_aligned_type, build_range_type_1): Ditto.
11505 (build_atomic_base): Ditto.
11506 (build_common_tree_nodes): Ditto.
11507 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11508 (expand_one_stack_var_at): Ditto.
11509 * coverage.c (build_var): Use SET_DECL_ALIGN.
11510 * except.c (init_eh): Ditto.
11511 * function.c (assign_parm_setup_block): Ditto.
11512 * symtab.c (increase_alignment_1): Ditto.
11513 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11514 * tree-vect-stmts.c (ensure_base_align): Ditto.
11515 * varasm.c (align_variable): Ditto.
11516 (assemble_variable): Ditto.
11517 (build_constant_desc): Ditto.
11518 (output_constant_def_contents): Ditto.
11519
11520 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11521 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11522 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11523 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11524 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11525
11526 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11527
11528 PR target/70708
11529 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11530 replace %vmovsd with "%vmovq".
11531 (vec_concatv2df): Likewise.
11532
11533 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11534
11535 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11536 (*vec_extractv2si_0): Ditto.
11537 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11538 (zero_extended_scalar_load_operand splitters): Ditto.
11539 (vec_extract splitters): Ditto.
11540 (*vec_extractv4si_0_zext): Ditto.
11541 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11542 and lowpart_subreg.
11543 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11544 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11545 (*sse4_1_extractps): Use lowpart_subreg.
11546 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11547
11548 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11549
11550 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11551 gld requirements.
11552 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11553 Mention Solaris 11 packaging changes.
11554 Update gas and gld requirements.
11555 Remove reference to pre-Solaris 10 bug.
11556 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11557 systems and bugs.
11558 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11559 with cc.
11560
11561 2016-04-17 Jan Hubicka <jh@suse.cz>
11562
11563 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11564 max_loop_iterations_int.
11565
11566 2016-04-18 Richard Biener <rguenther@suse.de>
11567
11568 PR tree-optimization/43434
11569 * tree-ssa-structalias.c (struct vls_data): New.
11570 (visit_loadstore): Handle all pointer-based accesses.
11571 (compute_dependence_clique): Compute a bitmap of restrict tags
11572 assigned bases and pass it to visit_loadstore.
11573
11574 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11575
11576 PR target/70711
11577 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11578 armv8.1-a and armv8.1-a+crc.
11579
11580 2016-04-18 Richard Biener <rguenther@suse.de>
11581
11582 PR tree-optimization/70701
11583 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11584 references after translating through a memcpy.
11585
11586 2016-04-18 Richard Biener <rguenther@suse.de>
11587
11588 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11589 (compute_antic): ... here. For partial antic use regular
11590 postorder and scrap iteration.
11591 (compute_partial_antic_aux): Remove unused return value.
11592 (init_pre): Do not allocate postorder.
11593 (fini_pre): Do not free postorder.
11594
11595 2016-04-18 Richard Biener <rguenther@suse.de>
11596
11597 PR middle-end/37870
11598 * expmed.c (extract_bit_field_1): Remove broken case
11599 using a wider MODE_INT mode.
11600
11601 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11602
11603 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11604 unless compiling with at least GCC-4.8.
11605
11606 2016-04-17 Jan Hubicka <jh@suse.cz>
11607
11608 PR bootstrap/70706
11609 * graphite.c (graphite_finalize): Update call to
11610 tree_estimate_probability.
11611 * predict.h (tree_estimate_probability): Update prototype.
11612
11613 2016-04-17 Jan Hubicka <jh@suse.cz>
11614
11615 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11616 (tree_estimate_probability): Likewise.
11617 (pass_profile::execute): Update.
11618 (report_predictor_hitrates): New function.
11619 * profile.c (compute_branch_probabilities): Use it.
11620 * predict.h (report_predictor_hitrates): Declare.
11621
11622 2016-04-17 Jan Hubicka <jh@suse.cz>
11623
11624 PR ipa/70018
11625 * cgraph.h (cgraph_node::set_const_flag,
11626 cgraph_node::set_pure_flag): Update prototype to return bool;
11627 update comment.
11628 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11629 of interposable symbol are interposable, too.
11630 (cgraph_set_const_flag_1): Rename to ...
11631 (set_const_flag_1): ... this one; change to self recursive function
11632 instead of call_for_symbol_thunks_and_aliases. Handle correctly
11633 clearnig the flag in all variants and also virtual thunks of const
11634 functions are pure; track if any change was done.
11635 (cgraph_node::set_const_flag): Update.
11636 (struct set_pure_flag_info): New struct.
11637 (cgraph_set_pure_flag_1): Rename to ...
11638 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11639 rather than pointer encoded flags; track if any changes was done;
11640 handle correctly clearning flag and setting flag of aliases already
11641 declared const.
11642 (cgraph_node::set_pure_flag): Update.
11643 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11644
11645 2016-04-17 Tom de Vries <tom@codesourcery.com>
11646
11647 PR other/70433
11648 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11649 backslash in label.
11650
11651 2016-04-17 Tom de Vries <tom@codesourcery.com>
11652
11653 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11654 '{}<> ' as escape-for-record.
11655
11656 2016-04-17 Tom de Vries <tom@codesourcery.com>
11657
11658 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11659 structure.
11660
11661 2016-04-17 Tom de Vries <tom@codesourcery.com>
11662
11663 PR other/70185
11664 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11665 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11666 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11667 * passes.c (finish_optimization_passes): Only call
11668 finish_graph_dump_file if dfi->graph_dump_initialized.
11669 (execute_function_dump, pass_init_dump_file): Use
11670 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11671
11672 2016-04-17 Tom de Vries <tom@codesourcery.com>
11673
11674 PR tree-optimization/70256
11675 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11676 (debug_varmap): New function.
11677
11678 2016-04-17 Tom de Vries <tom@codesourcery.com>
11679
11680 PR other/70183
11681 * passes.c (pass_manager::register_pass): Propagate pflags.
11682
11683 2016-04-17 Tom de Vries <tom@codesourcery.com>
11684
11685 PR other/68875
11686 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11687 * passes.c (pass_manager::pass_manager): Declare and init p_start in
11688 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
11689 check if it's equal to p_start.
11690 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11691
11692 2016-04-15 Jan Hubicka <jh@suse.cz>
11693
11694 PR ipa/70018
11695 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11696 function does not bind to current def.
11697 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11698 handle conservatively calls to functions that does not need to bind
11699 to current def.
11700 (check_call): Update call of worse_state.
11701 (ignore_edge_for_nothrow): Update.
11702 (ignore_edge_for_pure_const): Likewise.
11703 (propagate_pure_const): Update calls to worse_state.
11704 (skip_function_for_local_pure_const): Reformat comments.
11705
11706 2016-04-15 Jan Hubicka <jh@suse.cz>
11707
11708 PR ipa/70018
11709 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11710 (cgraph_node::function_symbol): Likewise.
11711 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11712 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11713 (symtab_node::ultimate_alias_target): Add REF parameter.
11714 (symtab_node::binds_to_current_def_p): Declare.
11715 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11716 (cgraph_node::function_symbol): Likewise.
11717 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11718 (cgraph_node::get_availability): Likewise.
11719 (cgraph_edge::binds_to_current_def_p): New inline function.
11720 (varpool_node::get_availability): Add REF parameter.
11721 (varpool_node::ultimate_alias_target): Likewise.
11722 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11723 (symtab_node::binds_to_current_def_p): Likewise.
11724 * varpool.c (varpool_node::get_availability): Likewise.
11725
11726 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11727
11728 PR target/70662
11729 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11730 Fix mode size check.
11731
11732 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11733
11734 * BASE-VER: Set to 7.0.0.
11735
11736 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
11737
11738 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11739
11740 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11741
11742 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11743 architecture revisions.
11744
11745 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
11746
11747 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11748 * config/i386/i386.c (ix86_using_red_zone): No longer static.
11749 * config/i386/i386.md (stack decrement to push peepholes): Guard
11750 with !x86_using_red_zone ().
11751
11752 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11753
11754 PR c++/70675
11755 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11756 to dump_generic_node.
11757 (NIY): Pass also flags to do_niy.
11758
11759 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
11760
11761 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11762 (simd_clone_vector_of_formal_parm_types)
11763 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11764 (simd_clone_mangle, simd_clone_create)
11765 (simd_clone_adjust_return_type, create_tmp_simd_array)
11766 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11767 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11768 (ipa_simd_modify_function_body, simd_clone_linear_addend)
11769 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11770 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11771 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11772 * omp-simd-clone.c: ... this new file.
11773 (simd_clone_vector_of_formal_parm_types): Make it static.
11774 * Makefile.in (OBJS): Add omp-simd-clone.o.
11775
11776 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11777
11778 PR target/70662
11779 * config/i386/sse.md: Use proper memory operand modifiers.
11780
11781
11782 2016-04-15 Richard Biener <rguenther@suse.de>
11783 Alan Modra <amodra@gmail.com>
11784
11785 PR tree-optimization/70130
11786 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11787 when alignment stays not the same and no not use the realign
11788 scheme then.
11789
11790 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11791
11792 PR target/70669
11793 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11794 direct move handlers for KFmode. Change TFmode handlers test from
11795 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11796
11797 2016-04-14 Jakub Jelinek <jakub@redhat.com>
11798
11799 PR c++/70594
11800 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11801 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11802 (inlined_polymorphic_ctor_dtor_block_p): Use it.
11803 * tree-ssa-live.c (remove_unused_scope_block_p): When
11804 in_ctor_dtor_block, avoid discarding not just BLOCKs with
11805 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11806 block_ultimate_origin is FUNCTION_DECL.
11807 (remove_unused_locals): If current_function_decl is
11808 polymorphic_ctor_dtor_p, pass initial true to
11809 remove_unused_scope_block_p' is_ctor_dtor_block.
11810
11811 2016-04-14 Martin Sebor <msebor@redhat.com>
11812
11813 PR c++/69517
11814 PR c++/70019
11815 PR c++/70588
11816 * doc/extend.texi (Variable Length): Revert.
11817
11818 2016-04-14 Marek Polacek <polacek@redhat.com>
11819 Jan Hubicka <hubicka@ucw.cz>
11820
11821 PR c++/70029
11822 * tree.c (verify_type): Disable the canonical type of main variant
11823 check.
11824
11825 2016-04-14 Jason Merrill <jason@redhat.com>
11826
11827 * cfgexpand.c, expr.c: Revert previous change.
11828
11829 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11830
11831 PR middle-end/70643
11832 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11833 when building a mem ref for the incoming reduction variable.
11834
11835 2016-04-14 Richard Biener <rguenther@suse.de>
11836
11837 PR tree-optimization/70614
11838 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11839 loop if the evolution dropped to chrec_dont_know.
11840 (interpret_condition_phi): Likewise.
11841
11842 2016-04-14 Richard Biener <rguenther@suse.de>
11843
11844 PR tree-optimization/70623
11845 * tree-ssa-pre.c (changed_blocks): Make global ...
11846 (compute_antic): ... local here. Move and fix worklist
11847 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11848 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
11849 worklist handling, dump when ANTIC_IN changed.
11850 (compute_partial_antic_aux): Remove worklist handling.
11851 (init_pre): Do not compute post dominators. Add a comment about
11852 the CFG order chosen.
11853 (fini_pre): Do not free post dominators.
11854
11855 2016-04-13 Martin Sebor <msebor@redhat.com>
11856
11857 PR c++/69517
11858 PR c++/70019
11859 PR c++/70588
11860 * doc/extend.texi (Variable Length): Document C++ specifics.
11861
11862 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11863
11864 PR c++/70641
11865 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11866 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
11867 eh edges have been purged.
11868
11869 PR c++/70594
11870 * tree-sra.c (create_access_replacement,
11871 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11872 gets fancy name.
11873 * tree-pretty-print.c (dump_fancy_name): New function.
11874 (dump_decl_name, dump_generic_node): Use it.
11875
11876 2016-04-13 Jason Merrill <jason@redhat.com>
11877
11878 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11879 * expr.c (expand_expr_real_1): Likewise.
11880
11881 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
11882
11883 * config/i386/i386.md (kunpckhi): Swap operands.
11884 (kunpcksi): Likewise.
11885 (kunpckdi): Likewise.
11886 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11887 (vec_pack_trunc_<mode>): Likewise.
11888
11889 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11890
11891 PR debug/70628
11892 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11893
11894 PR middle-end/70633
11895 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11896 gimplification turns some element into non-constant.
11897
11898 PR debug/70628
11899 * rtl.h (convert_memory_address_addr_space_1): New prototype.
11900 * explow.c (convert_memory_address_addr_space_1): No longer static,
11901 add NO_EMIT argument and don't call convert_modes if true, pass
11902 it down recursively, remove break after return.
11903 (convert_memory_address_addr_space): Adjust caller.
11904 * simplify-rtx.c (simplify_unary_operation_1): Call
11905 convert_memory_address_addr_space_1 instead of convert_memory_address,
11906 if it returns NULL, don't simplify.
11907
11908 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
11909
11910 PR target/70630
11911 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11912
11913 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11914
11915 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11916 Bump the upper SIMDLEN limits, so that if the return type or
11917 characteristic type if the return type is void can be passed in
11918 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11919 allowed.
11920
11921 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11922
11923 PR target/70640
11924 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11925 Do not use "=" constraint on an input constraint.
11926 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11927 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11928 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11929 generates (neg (abs ...)) instead of (abs ...).
11930
11931 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11932
11933 PR rtl-optimization/70596
11934 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11935 just invalidate LRA data and reset them. Adjust dump wording.
11936
11937 2016-04-12 Martin Liska <mliska@suse.cz>
11938
11939 Revert
11940 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11941
11942 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11943 estimates here.
11944 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11945 max_loop_iterations_int.
11946 (tree_unswitch_outer_loop): Likewise.
11947 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11948 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11949
11950 2016-04-12 Tom de Vries <tom@codesourcery.com>
11951
11952 PR tree-optimization/68756
11953 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11954 instead of new_name.
11955
11956 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11957
11958 PR tree-optimization/70602
11959 * tree-sra.c (generate_subtree_copies): Don't write anything into
11960 constant pool decls.
11961
11962 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11963 regardless whether there are depend clauses or not.
11964
11965 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11966
11967 PR target/70381
11968 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11969 target attribute and pragma from changing the -mfloat128
11970 and -mfloat128-hardware options.
11971
11972 * doc/extend.texi (Additional Floating Types): Document PowerPC
11973 __float128 restrictions.
11974
11975 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11976
11977 PR target/70133
11978 * config/aarch64/driver-aarch64.c
11979 (aarch64_get_extension_string_for_isa_flags): New.
11980 (arch_extension): Rename to...
11981 (aarch64_arch_extension): ...This.
11982 (ext_to_feat_string): Rename to...
11983 (aarch64_extensions): ...This.
11984 (aarch64_core_data): Keep track of architecture extension flags.
11985 (cpu_data): Rename to...
11986 (aarch64_cpu_data): ...This.
11987 (aarch64_arch_driver_info): Keep track of architecture extension
11988 flags.
11989 (get_arch_name_from_id): Rename to...
11990 (get_arch_from_id): ...This, change return type.
11991 (host_detect_local_cpu): Update and reformat for renames, handle
11992 extensions through common infrastructure.
11993
11994 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11995
11996 PR target/70133
11997 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
11998 track of a canonical flag name.
11999 (all_extensions): Likewise.
12000 (arch_to_arch_name): Also track extension flags enabled by the arch.
12001 (all_architectures): Likewise.
12002 (aarch64_parse_extension): Move to here.
12003 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12004 rework.
12005 (aarch64_rewrite_selected_cpu): Update for above change.
12006 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12007 are handled, such that the single explicit value enabled by an
12008 extension is kept seperate from the implicit values it also enables.
12009 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12010 to here.
12011 (aarch64_parse_extension): New.
12012 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12013 here to config/aarch64/aarch64-protos.h.
12014 (aarch64_parse_extension): Move from here to
12015 common/config/aarch64/aarch64-common.c.
12016 (aarch64_option_print): Update.
12017 (aarch64_declare_function_name): Likewise.
12018 (aarch64_start_file): Likewise.
12019 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12020 the canonical flag for extensions.
12021 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12022 flags.
12023
12024 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12025
12026 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12027 AARCH64_FL_CRC.
12028
12029 2016-04-09 Tom de Vries <tom@codesourcery.com>
12030
12031 PR tree-optimization/68953
12032 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12033 first to last subscript.
12034
12035 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12036
12037 PR tree-optimization/70586
12038 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12039 for any calls.
12040
12041 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12042
12043 PR lto/70289
12044 PR ipa/70348
12045 PR tree-optimization/70373
12046 PR middle-end/70533
12047 PR middle-end/70534
12048 PR middle-end/70535
12049 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12050 clauses for acc parallel reductions as necessary. Error on those
12051 that are private.
12052 * omp-low.c (scan_sharing_clauses): Don't install variables which
12053 are used in acc parallel reductions.
12054 (lower_rec_input_clauses): Remove dead code.
12055 (lower_oacc_reductions): Add support for reference reductions.
12056 (lower_reduction_clauses): Remove dead code.
12057 (lower_omp_target): Don't remap variables appearing in acc parallel
12058 reductions.
12059 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12060
12061 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12062
12063 PR middle-end/70593
12064 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12065 with multiple SSA_NAME defs, force the outputs other than first
12066 to be live before calling live_track_process_def on each output.
12067
12068 PR rtl-optimization/70574
12069 * fwprop.c (forward_propagate_and_simplify): Don't add
12070 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12071 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12072 paradoxical subregs within *loc.
12073
12074 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12075
12076 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12077 -ftree-parallelize-loops={0,1}.
12078 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12079 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12080 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12081 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12082 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12083
12084 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12085
12086 PR sanitizer/70541
12087 * asan.c (instrument_derefs): If we get unknown location, extract it
12088 with EXPR_LOCATION.
12089 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12090
12091 2016-04-08 Tom de Vries <tom@codesourcery.com>
12092
12093 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12094 implicit firstprivate clause.
12095
12096 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12097
12098 PR target/70566
12099 * config/arm/thumb2.md (tst + branch-> lsls + branch
12100 peephole below *orsi_not_shiftsi_si): Require that condition
12101 register is dead after the peephole.
12102 (second peephole after the above): Likewise.
12103
12104 2016-04-08 Alan Modra <amodra@gmail.com>
12105
12106 PR target/70117
12107 * builtins.c (fold_builtin_classify): For IBM extended precision,
12108 look at just the high-order double to test for NaN.
12109 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
12110 test just the high double for Inf but both doubles for subnormal
12111 limit.
12112
12113 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12114
12115 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12116 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12117 node->simdclone->mask_mode != VOIDmode masks.
12118 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
12119 earlier, use it instead of node->simdclone.
12120 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12121 Set clonei->mask_mode.
12122
12123 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12124
12125 PR c/70436
12126 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12127 Pass it through to cp_parser_already_scoped_statement.
12128 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
12129 it through to cp_parser_statement.
12130 (cp_parser_statement): Pass IF_P through to
12131 cp_parser_iteration_statement.
12132 (cp_parser_pragma): Adjust call to
12133 cp_parser_iteration_statement.
12134
12135 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12136
12137 PR c/70436
12138 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12139 resolve a future -Wparentheses warning.
12140 * omp-low.c (scan_sharing_clauses): Likewise.
12141 * tree-parloops.c (eliminate_local_variables): Likewise.
12142
12143 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12144
12145 PR rtl-optimization/70398
12146 * lra-constraints.c (process_address_1): Check zero scale and code
12147 for reloading with zero scale.
12148
12149 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12150
12151 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12152 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12153
12154 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12155
12156 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12157 Add support for AVX512F clones, include them by default for
12158 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
12159 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12160 up to 128.
12161
12162 PR middle-end/70550
12163 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12164 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12165 firstprivate clauses.
12166 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12167 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12168 (lower_omp_target): Set TREE_NO_WARNING for
12169 non-addressable possibly uninitialized vars which are copied into
12170 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12171
12172 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12173
12174 * config/pa/predicates.md (integer_store_memory_operand): Accept
12175 REG+D operands with a large offset when reload_in_progress is true.
12176 (floating_point_store_memory_operand): Likewise.
12177
12178 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12179
12180 PR c++/70336
12181 * match.pd (nested int casts): Limit to GIMPLE.
12182
12183 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12184
12185 PR ipa/66223
12186 * ipa-devirt.c (maybe_record_node): Fix comment; use
12187 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12188
12189 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12190
12191 PR rtl-optimization/70542
12192 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12193 if there are any uses other than insn or debug insns.
12194
12195 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12196 Jakub Jelinek <jakub@redhat.com>
12197
12198 PR tree-optimization/70509
12199 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12200 Shift HOST_WIDE_INT_1U instead of 1.
12201
12202 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12203
12204 PR tree-optimization/70509
12205 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12206 of the vector base type for index.
12207
12208 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12209
12210 PR target/70510
12211 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12212
12213 2016-04-05 Richard Biener <rguenther@suse.de>
12214
12215 PR tree-optimization/70526
12216 * tree-sra.c (build_ref_for_offset): Use prev_base to
12217 extract the alias pointer type.
12218
12219 2016-04-05 Richard Biener <rguenther@suse.de>
12220
12221 * dse.c (struct store_info): Remove alias_set member.
12222 (struct read_info_type): Likewise.
12223 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12224 spill_deleted, clear_alias_set_lookup): Remove.
12225 (get_group_info): Remove dead base == NULL_RTX case.
12226 (dse_step0): Remove initialization of removed variables.
12227 (delete_dead_store_insn): Reomve alias set dumping.
12228 (free_read_records): Remove alias_set handling.
12229 (canon_address): Remove alias_set_out parameter.
12230 (record_store): Remove spill_alias_set, it's always zero.
12231 (check_mem_read_rtx): Likewise.
12232 (dse_step2): Rename from ...
12233 (dse_step2_nospill): ... this. Adjust.
12234 (scan_stores): Rename from ...
12235 (scan_stores_nospill): ... this.
12236 (scan_reads): Rename from ...
12237 (scan_reads_nospill): ... this.
12238 (scan_stores_spill, scan_reads_spill): Remove.
12239 (dse_step3_scan): Remove for_spills argument which is always false.
12240 (dse_step3): Likewise.
12241 (dse_step5): Rename from ...
12242 (dse_step5_nospill): ... this. Remove alias_set handling.
12243 (rest_of_handle_dse): Adjust.
12244
12245 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12246
12247 PR target/70525
12248 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12249 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12250 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12251 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12252
12253 2016-04-05 Richard Biener <rguenther@suse.de>
12254
12255 PR middle-end/70499
12256 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12257 non-register type temporaries into SSA.
12258
12259 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12260
12261 PR ipa/66223
12262 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12263 calls when sanitizing.
12264 (possible_polymorphic_call_target_p): Fix formatting.
12265
12266 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12267 Jakub Jelinek <jakub@redhat.com>
12268
12269 PR middle-end/70457
12270 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12271 to ensure a call statement is compatible with a built-in's
12272 prototype.
12273 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12274 Likewise.
12275
12276 2016-04-04 Richard Biener <rguenther@suse.de>
12277
12278 PR rtl-optimization/70484
12279 * rtl.h (canon_output_dependence): Declare.
12280 * alias.c (canon_output_dependence): New function.
12281 * dse.c (record_store): Use canon_output_dependence rather
12282 than canon_true_dependence.
12283
12284 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12285
12286 PR ipa/68881
12287 * cgraph.h (symtab_node::copy_visibility_from): New function.
12288 * symtab.c (symtab_node::copy_visibility_from): New function.
12289 * ipa-visibility.c (optimize_weakref): New function.
12290 (function_and_variable_visibility): Use it.
12291
12292 2016-04-04 Martin Liska <mliska@suse.cz>
12293
12294 PR hsa/70402
12295 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12296 value that is really in range handled by SBR instruction.
12297 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12298 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12299 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12300
12301 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12302
12303 PR target/70416
12304 PR target/67391
12305 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12306 set, but not for SP_REG operands.
12307
12308 2016-04-02 Martin Sebor <msebor@redhat.com>
12309
12310 PR c++/67376
12311 * fold-const.c (maybe_nonzero_address): New function.
12312 (fold_comparison): Call it. Fold equality and relational
12313 expressions involving null pointers.
12314 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12315
12316 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12317
12318 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12319 the "Y" constraint (scalar FP 0.0 immediate).
12320
12321 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12322 Add the "const_double" to the list of operand constraints.
12323
12324 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12325
12326 PR rtl-optimization/70467
12327 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12328 If low word of the last operand is 0, just emit addition/subtraction
12329 for the high word.
12330
12331 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12332
12333 PR target/70404
12334 * config/s390/s390.c (s390_expand_insv): Check for everything
12335 constant instead of just VOIDmode stuff.
12336
12337 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12338
12339 PR target/70496
12340 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12341
12342 2016-04-01 Nathan Sidwell <nathan@acm.org>
12343
12344 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12345
12346 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12347
12348 PR rtl-optimization/70461
12349 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12350 is necessary.
12351
12352 2016-03-31 Martin Liska <mliska@suse.cz>
12353
12354 PR hsa/70399
12355 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12356 a tree value or an immediate integer value to a buffer
12357 that is eventually copied to a BRIG section.
12358 (emit_immediate_operand): Call the function here.
12359 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12360 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12361 of class' fields that are removed.
12362 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12363 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12364 m_brig_repr_size fields.
12365
12366 2016-03-31 Martin Liska <mliska@suse.cz>
12367
12368 PR hsa/70391
12369 * hsa-gen.c (hsa_function_representation::update_dominance): New
12370 function.
12371 (convert_addr_to_flat_segment): Likewise.
12372 (gen_hsa_memory_set): New alignment argument.
12373 (gen_hsa_ctor_assignment): Likewise.
12374 (gen_hsa_insns_for_single_assignment): Provide alignment
12375 to gen_hsa_ctor_assignment.
12376 (gen_hsa_insns_for_direct_call): Add new argument.
12377 (expand_lhs_of_string_op): New function.
12378 (expand_string_operation_builtin): Likewise.
12379 (expand_memory_copy): New function.
12380 (expand_memory_set): New function.
12381 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12382 (convert_switch_statements): Change signature.
12383 (generate_hsa): Use a return value of the function.
12384 (pass_gen_hsail::execute): Do not call
12385 convert_switch_statements here.
12386 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12387 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12388 (hsa_function_representation::update_dominance): New function.
12389
12390 2016-03-31 Martin Liska <mliska@suse.cz>
12391
12392 PR hsa/70391
12393 * hsa-brig.c (emit_directive_variable): Emit alignment
12394 according to hsa_symbol::m_align.
12395 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12396 (dump_hsa_symbol): Dump alignment of HSA symbols.
12397 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12398 (gen_hsa_addr_with_align): New function.
12399 (hsa_bitmemref_alignment): Use newly added function.
12400 (gen_hsa_insns_for_load): Likewise.
12401 (gen_hsa_insns_for_store): Likewise.
12402 (gen_hsa_memory_copy): New argument added.
12403 (gen_hsa_insns_for_single_assignment): Respect
12404 alignment for assignments processed via gen_hsa_memory_copy.
12405 (gen_hsa_insns_for_direct_call): Likewise.
12406 (gen_hsa_insns_for_return): Likewise.
12407 (gen_function_def_parameters): Set default alignment.
12408 * hsa.c (hsa_object_alignment): New function.
12409 (hsa_byte_alignment): Pasted function.
12410 * hsa.h (hsa_symbol::m_align): New field.
12411
12412 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12413
12414 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12415 scratch field for goto case.
12416
12417 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
12418
12419 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12420
12421 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
12422
12423 PR target/70442
12424 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12425 (scalar_chain::convert_insn): Call convert_op for reg
12426 moves to handle undefined registers.
12427
12428 2016-03-31 Nathan Sidwell <nathan@acm.org>
12429
12430 PR c++/70393
12431 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12432 Assert we don't want to move backwards.
12433
12434 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
12435
12436 PR target/70453
12437 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12438
12439 2016-03-31 Jakub Jelinek <jakub@redhat.com>
12440
12441 PR rtl-optimization/70460
12442 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12443 with operand from REG_LABEL_OPERAND, instead substitute
12444 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12445 Don't do anything for REG_NON_LOCAL_GOTO jumps.
12446
12447 2016-03-31 Martin Liska <mliska@suse.cz>
12448
12449 * passes.c (execute_one_pass): Do not call
12450 todo_after for a discarded function.
12451
12452 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12453
12454 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12455 (no_cost, infinite_cost): Initialize the new field.
12456 (get_computation_cost_at): Record setup cost.
12457 (determine_use_iv_cost_address): Skip cost computation for sub
12458 uses if we can estimate it without losing accuracy.
12459
12460 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12461
12462 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12463 estimates here.
12464 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12465 max_loop_iterations_int.
12466 (tree_unswitch_outer_loop): Likewise.
12467 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12468 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12469
12470 2016-03-30 Richard Biener <rguenther@suse.de>
12471
12472 PR middle-end/70450
12473 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12474
12475 2016-03-30 Jakub Jelinek <jakub@redhat.com>
12476
12477 PR target/70421
12478 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12479 in gen_blendm expander.
12480
12481 2016-03-30 Nick Clifton <nickc@redhat.com>
12482
12483 PR target/62254
12484 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12485 case where we are already provided with an SImode SUBREG.
12486
12487 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
12488
12489 PR target/70439
12490 * config/i386/i386.c (ix86_expand_epilogue): Properly check
12491 conflict between DRAP register and __builtin_eh_return.
12492
12493 2016-03-30 Michael Matz <matz@suse.de>
12494 Richard Biener <rguenther@suse.de>
12495
12496 PR ipa/12392
12497 * ipa-polymorphic-call.c (struct type_change_info): Change
12498 speculative to an unsigned allowing to limit the work we do.
12499 (csftc_abort_walking_p): New inline function..
12500 (check_stmt_for_type_change): Limit the number of may-defs
12501 skipped for speculative devirtualization to
12502 max-speculative-devirt-maydefs.
12503 * params.def (max-speculative-devirt-maydefs): New param.
12504 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12505
12506 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
12507
12508 PR target/63890
12509 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12510 and TARGET_MACHO.
12511
12512 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
12513
12514 PR tree-optimization/59124
12515 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12516 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12517
12518 2016-03-29 Jeff Law <law@redhat.com>
12519
12520 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12521
12522 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12523
12524 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12525 to HOST_WIDE_INT.
12526
12527 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12528
12529 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12530 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12531 gcrt0.o if linking dynamically.
12532
12533 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12534
12535 PR ipa/70283
12536 * ipa-devirt.c (methods_equal_p): New function.
12537 (compare_virtual_tables): Use it.
12538 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12539 * cgraphclones.c (clone_function_name_1): Use
12540 symbol_table::symbol_suffix_separator.
12541 * coverage.c (build_var): Likewise.
12542 * symtab.c (symbol_table::symbol_suffix_separator): New.
12543
12544 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12545
12546 PR rtl-optimization/70429
12547 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12548 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12549 mode != result_mode.
12550
12551 PR c++/70353
12552 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12553
12554 PR tree-optimization/70405
12555 * ssa-iterators.h (num_imm_uses): Add missing braces.
12556
12557 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12558
12559 PR rtl-optimization/68695
12560 * ira-color.c (allocno_copy_cost_saving): New.
12561 (improve_allocation): Use it.
12562
12563 2016-03-29 Richard Henderson <rth@redhat.com>
12564
12565 PR middle-end/70355
12566 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12567
12568 2016-03-29 Richard Biener <rguenther@suse.de>
12569
12570 PR middle-end/70424
12571 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12572 use alignment returned by get_pointer_alignment_1 if it is
12573 bigger than BITS_PER_UNIT.
12574 * builtins.c (get_pointer_alignment_1): Do not return true
12575 for alignment extracted from SSA info.
12576
12577 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12578
12579 * config/ft32/ft32.opt (mnodiv): New.
12580 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12581 * doc/invoke.texi (FT32 Options -mnodiv): New.
12582
12583 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12584
12585 PR target/70406
12586 * config/i386/i386.md (define_split, andn): Fix modes.
12587
12588 2016-03-26 Richard Biener <rguenther@suse.de>
12589 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12590
12591 PR ipa/70366
12592 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12593 instead of
12594 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12595 as 2nd argument to cl_optimization_restore().
12596
12597 2016-03-25 Richard Henderson <rth@redhat.com>
12598
12599 PR target/70120
12600 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12601 * config/aarch64/aarch64-protos.h: Declare it.
12602 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12603
12604 2016-03-25 Alan Modra <amodra@gmail.com>
12605
12606 PR target/70052
12607 * config/rs6000/constraints.md (j): Simplify.
12608 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12609 decimal float 0.D.
12610 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12611 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12612 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12613 in all constraint alternatives.
12614 (movtd_64bit_nodm): Delete "j" constraint alternative.
12615
12616 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12617
12618 * tree-ssa-propagate.c: Enhance docs for
12619 SSA_PROP_NOT_INTERESTING.
12620
12621 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12622
12623 * doc/extend.texi: Fix typo in documentation to pure attribute.
12624
12625 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12626
12627 PR target/70319
12628 * config/pa/pa.md (bswapdi2): Use a scratch register.
12629
12630 2016-03-24 Richard Henderson <rth@redhat.com>
12631
12632 PR middle-end/69845
12633 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12634 overflow.
12635
12636 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12637
12638 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12639 using ix86_expand_binary_operator instead of gen_andsi3.
12640
12641 2016-03-24 Richard Biener <rguenther@suse.de>
12642
12643 PR tree-optimization/70396
12644 * tree-vect-stmts.c (vectorizable_comparison): Use
12645 get_vectype_for_scalar_type.
12646
12647 2016-03-24 Richard Biener <rguenther@suse.de>
12648
12649 PR middle-end/70370
12650 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12651 with register bases.
12652
12653 2016-03-24 Richard Biener <rguenther@suse.de>
12654
12655 PR tree-optimization/70372
12656 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12657 build_all_ones_cst to also handle vector types correctly.
12658
12659 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12660
12661 PR target/70381
12662 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12663 -mfloat128 here.
12664
12665 2016-03-23 Marek Polacek <polacek@redhat.com>
12666
12667 PR c++/69884
12668 * doc/invoke.texi: Document -Wignored-attributes.
12669
12670 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12671
12672 PR tree-optimization/69042
12673 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12674 parameter from 30 to 40.
12675
12676 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12677
12678 PR tree-optimization/69042
12679 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12680 for use with constant offset stripped in base.
12681
12682 2016-03-23 Richard Biener <rguenther@suse.de>
12683
12684 PR middle-end/70251
12685 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12686 mode compatibility check.
12687 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12688
12689 2016-03-23 Jeff Law <law@redhat.com>
12690
12691 PR tree-optimization/64058
12692 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12693 CONFLICT_COUNT.
12694 (struct ssa_conflicts): Move up earlier in the file.
12695 (conflicts_, var_map_): New static variables.
12696 (initialize_conflict_count): New function to initialize the
12697 CONFLICT_COUNT field for each conflict pair.
12698 (compare_pairs): Lazily initialize the conflict count and use it
12699 as the first tie-breaker.
12700 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
12701 and wipe conflicts_ and map_ around the call to qsort. Remove
12702 special case for 2 coalesce pairs.
12703 * bitmap.c (bitmap_count_unique_bits): New function.
12704 (bitmap_count_bits_in_word): New function, extracted from
12705 bitmap_count_bits.
12706 (bitmap_count_bits): Use bitmap_count_bits_in_word.
12707 * bitmap.h (bitmap_count_unique_bits): Declare it.
12708
12709 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
12710
12711 PR target/69917
12712 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12713 transparent alias chain for decl assembler name.
12714 * config/sol2.c (solaris_assemble_visibility): Likewise.
12715
12716 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12717
12718 * config/arm/arm1020e.md (1020call_op): Reduce reservation
12719 duration.
12720 (v10_fdivs): Likewise.
12721 (v10_fdivd): Likewise.
12722
12723 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12724
12725 PR driver/70132
12726 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12727 to not call fclose twice on file.
12728
12729 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12730
12731 PR tree-optimization/70354
12732 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12733 oprnd0 is wider than oprnd1 and there is a cast from the wider
12734 type to oprnd1, mask it with the mask of the narrower type.
12735
12736 PR target/70321
12737 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12738 Optimize TARGET_STV splitters, if high or low word of last argument
12739 is 0 or -1.
12740
12741 2016-03-22 Jeff Law <law@redhat.com>
12742
12743 PR target/70232
12744 tree-ssa-threadbackward.c
12745 (fsm_find_control_statement_thread_paths): Correctly distinguish
12746 between old style jump threads vs FSM jump threads.
12747
12748 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12749
12750 PR target/70302
12751 * config/i386/i386.c (scalar_chain::convert_op): Support
12752 uninitialized register usage case.
12753
12754 2016-03-22 Richard Biener <rguenther@suse.de>
12755
12756 PR middle-end/70251
12757 * genmatch.c (gen_transform): Adjust last parameter to a three-state
12758 int...
12759 (capture::gen_transform): ... to change behavior when substituting
12760 a condition into cond or not-cond expr context.
12761 (dt_simplify::gen_1): Adjust.
12762 * gimple-match-head.c: Include gimplify.h for unshare_expr.
12763 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12764 last change and instead change to
12765 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12766 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12767
12768 2016-03-22 Anthony Green <green@moxielogic.com>
12769
12770 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
12771 issue for moxiebox targets.
12772 (CC1PLUS_SPEC): Ditto.
12773
12774 2016-03-22 Richard Biener <rguenther@suse.de>
12775
12776 PR middle-end/70333
12777 * fold-const.c (extract_muldiv_1): Properly perform multiplication
12778 in the wide type.
12779
12780 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12781
12782 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12783
12784 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12785
12786 PR target/70325
12787 * config/i386/i386.c (def_builtin): Handle
12788 OPTION_MASK_ISA_AVX512VL to be and-ed with other
12789 bits.
12790 (const struct builtin_description bdesc_special_args[]):
12791 Remove duplicate ISA bits.
12792
12793 2016-03-22 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR target/70329
12796 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12797 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
12798 in a way that works also for AVX512BW.
12799
12800 PR target/70300
12801 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12802 instead of source if operands[1] is xmm16 and above and
12803 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
12804 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12805
12806 PR c++/70295
12807 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12808 on assign if (*from_p) is a comparison, set it to
12809 TREE_NO_WARNING (*from_p).
12810
12811 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12812
12813 PR middle-end/70326
12814 * lra.c (restore_scratches): Ignore deleted insns.
12815
12816 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
12817 Jakub Jelinek <jakub@redhat.com>
12818
12819 PR tree-optimization/70317
12820 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12821 to HONOR_NANS.
12822
12823 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
12824
12825 PR target/70327
12826 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12827 of ix86_expand_move.
12828 (movoi): Ditto.
12829 (movti): Use general_operand for operand 1 predicate.
12830
12831 2016-03-21 Martin Liska <mliska@suse.cz>
12832
12833 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12834 insns.
12835 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12836
12837 2016-03-21 Martin Liska <mliska@suse.cz>
12838
12839 PR ipa/70306
12840 * ipa-icf.c (sem_function::parse): Skip static
12841 constructors and destructors.
12842
12843 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12844
12845 PR target/70296
12846 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12847 function-like macro, peek following token(s) if it is followed
12848 by CPP_OPEN_PAREN token with optional padding in between, and
12849 if not, don't treat it like a macro.
12850
12851 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
12852 Alexander Monakov <amonakov@ispras.ru>
12853
12854 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12855 for the stabs debug format.
12856
12857 2016-03-21 Richard Biener <rguenther@suse.de>
12858
12859 PR tree-optimization/70310
12860 * tree-vect-generic.c (expand_vector_condition): Fold the built
12861 condition.
12862
12863 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
12864
12865 PR target/70293
12866 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12867 Block third alternative for AVX-512VL target,
12868
12869 2016-03-21 Martin Liska <mliska@suse.cz>
12870
12871 PR hsa/70234
12872 * hsa-brig.c (emit_function_directives): Mark unemitted
12873 global variables for emission.
12874 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12875 (get_symbol_for_decl): Likewise.
12876 * hsa.h (struct hsa_symbol): New flag.
12877
12878 2016-03-21 Richard Biener <rguenther@suse.de>
12879
12880 PR tree-optimization/70288
12881 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12882 we do not estimate unsimplified all-constant conditionals or
12883 switches as optimized away.
12884
12885 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
12886
12887 PR rtl-optimization/69102
12888 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12889 when we have a readonly dependency context.
12890
12891 2016-03-18 Jeff Law <law@redhat.com>
12892
12893 PR rtl-optimization/70263
12894 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12895 (update_equiv_regs): When trying to move a store to after the insn
12896 that sets the source of the store, make sure the store occurs after
12897 the insn that sets the source of the store. When successful note
12898 the REG_EQUIV note created in the dump file.
12899
12900 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
12901 Bernd Schmidt <bschmidt@redhat.com>
12902
12903 * doc/extend.texi: Document more potential problems with basic asms.
12904
12905 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
12906
12907 PR rtl-optimization/70278
12908 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12909 VOIDmode.
12910
12911 2016-03-18 Jason Merrill <jason@redhat.com>
12912
12913 * calls.c (load_register_parameters): Fix zero size sibcall logic.
12914
12915 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12916
12917 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12918 values to 128b regs.
12919
12920 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12921
12922 PR tree-optimization/70252
12923 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12924 boolean vector has a proper number of elements.
12925 (supportable_narrowing_operation): Likewise.
12926
12927 2016-03-18 Tom de Vries <tom@codesourcery.com>
12928
12929 PR ipa/70269
12930 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12931
12932 2016-03-18 Jakub Jelinek <jakub@redhat.com>
12933
12934 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12935 instead of replace_rtx for DEBUG_INSNs.
12936
12937 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12938
12939 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12940 load type reservations.
12941
12942 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
12943
12944 PR target/70188
12945 * config/pa/constraints.md: Revert 2015-02-13 change. Use
12946 define_constraint for "Q" and "T" constraints.
12947
12948 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
12949
12950 Tweak the pipeline model for Exynos M1
12951
12952 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
12953 model.
12954
12955 2016-03-17 David Malcolm <dmalcolm@redhat.com>
12956
12957 PR c/70264
12958 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12959 where one or both locations aren't within a line_map.
12960
12961 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
12962
12963 PR driver/70192
12964 * opts.c (finish_options): Don't set flag_pie to the default if
12965 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
12966 if it is -1.
12967
12968 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
12969
12970 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12971 true as ALL_REGS argument to replace_rtx.
12972
12973 2016-03-17 Richard Biener <rguenther@suse.de>
12974
12975 PR debug/70271
12976 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12977 last.
12978
12979 2016-03-17 Jakub Jelinek <jakub@redhat.com>
12980
12981 PR target/70245
12982 * rtl.h (replace_rtx): Add ALL_REGS argument.
12983 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
12984 equality and assert mode is the same, instead of just rtx pointer
12985 equality.
12986 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12987 true as ALL_REGS argument to replace_rtx.
12988
12989 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
12990
12991 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12992 for boolean vector with vector mode only.
12993 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12994
12995 2016-03-17 Nick Clifton <nickc@redhat.com>
12996
12997 PR target/70162
12998 * config/rx/rx.c (rx_print_integer): Print negative constants in
12999 decimal.
13000
13001 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13002
13003 PR target/70261
13004 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13005
13006 2016-03-16 Richard Henderson <rth@redhat.com>
13007 Richard Biener <rguenth@suse.de>
13008
13009 PR middle-end/70240
13010 PR middle-end/68215
13011 PR tree-opt/68714
13012 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13013 first operand as is_gimple_condexpr.
13014
13015 PR middle-end/70240
13016 PR middle-end/68215
13017 Revert r231575
13018 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
13019 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13020 Do not gimplify the result.
13021 (do_unop): Adjust call to tree_vec_extract.
13022 (do_binop): Likewise.
13023 (do_compare): Likewise.
13024 (do_plus_minus): Likewise.
13025 (do_negate): Likewise.
13026 (expand_vector_condition): Likewise.
13027 (do_cond): Likewise.
13028
13029 2016-03-16 Richard Henderson <rth@redhat.com>
13030
13031 PR target/70048
13032 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13033 (aarch64_classify_address): Use it.
13034 (aarch64_legitimize_address): Force all subexpressions of PLUS
13035 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
13036
13037 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13038 Richard Biener <rguenth@suse.de>
13039
13040 PR target/70245
13041 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13042 return to even if only REGNO is equal, and assert
13043 mode is the same.
13044
13045 2016-03-11 Jeff Law <law@redhat.com>
13046
13047 PR rtl-optimization/70224
13048 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13049
13050 2016-03-16 Richard Henderson <rth@redhat.com>
13051
13052 PR middle-end/70199
13053 * function.h (struct function): Add has_forced_label_in_static.
13054 * gimplify.c (force_labels_r): Set it.
13055 * lto-streamer-in.c (input_struct_function_base): Read it.
13056 * lto-streamer-out.c (output_struct_function_base): Write it.
13057 * tree-inline.c (has_label_address_in_static_1): Remove.
13058 (copy_forbidden): Remove fndecl parameter; test
13059 has_forced_label_in_static.
13060 (inline_forbidden_p): Update call to copy_forbidden.
13061 (tree_versionable_function_p): Likewise.
13062 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13063 (chkp_versioning): Likewise.
13064 * tree-inline.h (copy_forbidden): Update decl.
13065
13066 2016-03-16 Marek Polacek <polacek@redhat.com>
13067
13068 PR c/70093
13069 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13070 function being thunked if the result type doesn't have fixed size.
13071 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13072 doesn't have fixed size.
13073
13074 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13075
13076 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13077 reporting malformed loop nest.
13078
13079 2016-03-16 Tom de Vries <tom@codesourcery.com>
13080
13081 PR lto/70187
13082 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13083 nodes.length () == 1 test to before first nodes[0] access.
13084
13085 2016-03-16 Tom de Vries <tom@codesourcery.com>
13086
13087 PR tree-optimization/68715
13088 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13089 single_pred_p test.
13090
13091 2016-03-16 Tom de Vries <tom@codesourcery.com>
13092
13093 PR tree-optimization/68809
13094 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13095 are the same.
13096
13097 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13098 Sandra Loosemore <sandra@codesourcery.com>
13099
13100 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13101 on leaf attribute. Mention ELF interposition problems.
13102
13103 2016-03-16 Alan Modra <amodra@gmail.com>
13104
13105 PR rtl-optimization/69195
13106 PR rtl-optimization/47992
13107 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13108 Add comments.
13109
13110 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13111
13112 PR bootstrap/69513
13113 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13114
13115 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13116
13117 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13118
13119 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13120
13121 PR rtl-optimization/70222
13122 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13123 optimization if mode is different from result_mode, queue up masking
13124 of the result in outer_op. Formatting fix.
13125
13126 PR middle-end/70239
13127 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13128 of safe_grow.
13129
13130 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13131
13132 PR rtl-optimization/69032
13133 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13134 looping backwards over basic block insns.
13135
13136 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13137
13138 PR target/66660
13139 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13140 to non-speculative when propagating trap bits.
13141
13142 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13143
13144 PR rtl-optimization/63384
13145 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13146 DEBUG_INSN_P insns.
13147
13148 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13149
13150 PR target/64411
13151 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13152 factored out from ...
13153 (sched_analyze_insn): ... here.
13154 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13155 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13156 get_implicit_reg_pending_clobbers in it.
13157 (setup_id_reg_sets): Use setup_id_implicit_regs.
13158 (deps_init_id): Ditto.
13159
13160 2016-03-15 Tom de Vries <tom@codesourcery.com>
13161
13162 PR ipa/70161
13163 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13164 dump_file_name.
13165 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13166 execute_function_dump.
13167 (execute_one_pass): Don't dump function if it will be dumped after ipa
13168 transform.
13169
13170 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13171
13172 * genrecog.c (match_pattern_2): If pred is NULL don't call
13173 safe_predicate_mode on it.
13174
13175 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13176
13177 PR middle-end/70219
13178 * lra-constraints.c (delete_move_and_clobber): Change assertion
13179 to also allow dregno == 0.
13180
13181 2016-03-14 Richard Henderson <rth@redhat.com>
13182
13183 PR tree-opt/68714
13184 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13185 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13186 (reassociate_bb): Use optimize_vec_cond_expr; avoid
13187 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13188 on vectors.
13189
13190 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13191
13192 PR target/70083
13193 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13194 regs.
13195 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13196 VOIDmode.
13197 * lra-constraints.c (split_reg): For hard regs, try to find the
13198 biggest single-register mode used in the function.
13199
13200 2016-03-14 Richard Biener <rguenther@suse.de>
13201
13202 PR tree-optimization/56365
13203 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13204 constants to compare against.
13205
13206 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13207
13208 PR target/70098
13209 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13210 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13211 (define_split for the GPR case): Use int_reg_operand instead of
13212 gpc_reg_operand for the output.
13213
13214 2016-03-14 Tom de Vries <tom@codesourcery.com>
13215
13216 PR tree-optimization/70045
13217 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13218 create_empty_if_region_on_edge argument.
13219
13220 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13221
13222 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13223 (STACK_CHECK_PROTECT): Likewise.
13224 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13225 (STACK_CHECK_PROTECT): Likewise.
13226 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13227 (STACK_CHECK_PROTECT): Likewise.
13228 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13229 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13230 (STACK_CHECK_PROTECT): Likewise.
13231
13232 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13233
13234 PR rtl-optimization/69307
13235 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13236 registers in modes that span more than one register.
13237
13238 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13239
13240 PR target/69614
13241 * lra-constraints.c (delete_move_and_clobber): New.
13242 (remove_inheritance_pseudos): Use it.
13243
13244 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13245
13246 PR ada/70017
13247 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13248 the libcall is LCT_THROW.
13249 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13250 for the checking routine.
13251
13252 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13253
13254 PR target/70131
13255 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13256 optimization if we have direct move.
13257 (roundu32<mode>2_fprs): Likewise.
13258
13259 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13260
13261 PR target/70123
13262 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13263 be rematerialized.
13264 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13265 Arguments swapped. All callers changed. Take reg_renumber into
13266 account, and Calculate and compare register ranges for hard regs.
13267
13268 2016-03-11 Jeff Law <law@redhat.com>
13269
13270 PR tree-optimization/70190
13271 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13272 Handle cases where we can not extract the taken edge, even though we
13273 found a constant value.
13274
13275 PR tree-optimization/64058
13276 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13277 (num_coalesce_pairs): Move up earlier in file.
13278 (find_coalesce_pair): Initialize the INDEX field for each pair
13279 discovered.
13280 (compare_pairs): No longer sort on the elements in each pair.
13281 Instead break ties with the index of the coalesce pair.
13282
13283 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13284
13285 PR target/70002
13286 * config/aarch64/aarch64-protos.h
13287 (aarch64_save_restore_target_globals): New prototype.
13288 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13289 Call the above when popping pragma.
13290 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13291 New function.
13292 (aarch64_set_current_function): Rewrite using the above.
13293
13294 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13295
13296 PR tree-optimization/70177
13297 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13298 (extract_ops_from_tree): ... this. In the 2 argument
13299 overload remove _1 suffix.
13300 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13301 (extract_ops_from_tree): ... this.
13302 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13303 Adjust callers.
13304 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13305 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13306 extract_ops_from_tree instead of 2 operand one.
13307
13308 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13309
13310 PR tree-optimization/70013
13311 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13312 for constant-pool entries.
13313
13314 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13315
13316 PR rtl-optimization/70174
13317 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13318 followed by gen_lowpart on force_reg instead of just gen_lowpart.
13319
13320 PR tree-optimization/70169
13321 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13322 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
13323 for unknown codes.
13324
13325 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13326 Jakub Jelinek <jakub@redhat.com>
13327
13328 PR target/70160
13329 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13330 of uninitialized values.
13331
13332 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13333
13334 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13335 define_expand.
13336 ("*trunctddd2"): New pattern definition.
13337 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13338 TD->DD truncation.
13339
13340 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13341
13342 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13343 definitions for BFP and DFP rounding modes.
13344 ("fixuns_truncdddi2", "fixuns_trunctddi2")
13345 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13346 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13347 ("fix_trunctf<mode>2"): Use the new constants instead of magic
13348 numbers.
13349
13350 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13351
13352 * config/s390/constraints.md: Adjust comment.
13353 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
13354 s390_decompose_addrstyle_without_index.
13355 * config/s390/predicates.md (shift_count_or_setmem_operand):
13356 Rename to setmem_operand.
13357 * config/s390/s390-protos.h
13358 (s390_decompose_shift_count): Rename to
13359 s390_decompose_addrstyle_without_index.
13360 * config/s390/s390.c (s390_decompose_shift_count)
13361 (s390_mem_constraint, print_shift_count_operand)
13362 (print_operand_address, print_operand): Rename
13363 s390_decompose_shift_count to
13364 s390_decompose_addrstyle_without_index and rename
13365 print_shift_count_operand to print_addrstyle_operand troughout the
13366 file.
13367 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13368 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13369 Rename shift_count_or_setmem_operand to setmem_operand.
13370 * config/s390/vx-builtins.md ("vec_insert<mode>")
13371 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13372 nonmemory_operand.
13373
13374 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13375
13376 PR target/70168
13377 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13378 Handle overlapping retval and newval.
13379
13380 2016-03-10 Nick Clifton <nickc@redhat.com>
13381
13382 PR target/7044
13383 * config/aarch64/aarch64.c
13384 (aarch64_override_options_after_change_1): When forcing
13385 flag_omit_frame_pointer to be true, use a special value that can
13386 be detected if this function is called again, thus preventing
13387 flag_omit_leaf_frame_pointer from being forced to be false.
13388
13389 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13390
13391 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13392 Set x_flag_omit_leaf_frame_pointer when handling
13393 -momit-leaf-frame-pointer.
13394
13395 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13396
13397 PR lto/69589
13398 * cgraph.c (cgraph_node::dump): Dump split_part and
13399 indirect_call_target.
13400 * cgraph.h (cgraph_node): Add indirect_call_target flag.
13401 * ipa.c (has_addr_references_p): Cleanup.
13402 (is_indirect_call_target_p): New.
13403 (walk_polymorphic_call_targets): Do not mark virtuals that may be
13404 called indirectly as local.
13405 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13406
13407 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13408
13409 PR ipa/69630
13410 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13411 on cxa_pure_virtual.
13412
13413 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13414
13415 PR lto/69589
13416 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13417
13418 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13419
13420 PR lto/69589
13421 * tree.c (need_assembler_name_p): Only record main variant type names.
13422
13423 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13424
13425 PR target/70113.
13426 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13427 Always define to 0 or 1.
13428 (TARGET_FIX_ERR_A53_843419): New macro.
13429 * config/aarch64/aarch64-elf-raw.h
13430 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13431 * config/aarch64/aarch64-linux.h: Likewise.
13432 * config/aarch64/aarch64.c
13433 (aarch64_override_options_after_change_1): Do not default
13434 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13435 843419 is on.
13436 (aarch64_attributes): Handle fix-cortex-a53-843419.
13437 (aarch64_can_inline_p): Likewise.
13438 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13439
13440 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
13441 Jakub Jelinek <jakub@redhat.com>
13442
13443 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13444 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13445 DECL_COMMONS if flag_unconstrained_commons is set.
13446 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13447 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13448 (funconstrained-commons): Document.
13449
13450 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13451
13452 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13453 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13454
13455 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
13456
13457 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13458 has a proper number of elements.
13459
13460 2016-03-10 Alan Modra <amodra@gmail.com>
13461
13462 PR rtl-optimization/69195
13463 PR rtl-optimization/47992
13464 * ira.c (recorded_label_ref): Delete.
13465 (update_equiv_regs): Return void.
13466 (indirect_jump_optimize): New function.
13467 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13468 before regstat_compute_ri. Don't rebuild_jump_labels here.
13469 Delete update_regstat.
13470
13471 2016-03-10 Richard Biener <rguenther@suse.de>
13472
13473 PR tree-optimization/70128
13474 * tree-ssa-structalias.c (set_uids_in_ptset): Set
13475 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13476
13477 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13478
13479 PR tree-optimization/70152
13480 * tree-sra.c (replace_removed_params_ssa_names): Copy over
13481 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13482
13483 PR target/70086
13484 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13485 instead of gen_sse2_loadlpd.
13486 * config/i386/sse.md (*vec_concatv2df): Rename to...
13487 (vec_concatv2df): ... this.
13488
13489 PR tree-optimization/70127
13490 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13491
13492 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13493
13494 PR c/68473
13495 PR c++/70105
13496 * diagnostic-show-locus.c (compatible_locations_p): New function.
13497 (layout::layout): Sanitize ranges using compatible_locations_p.
13498
13499 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13500
13501 PR c/68473
13502 PR c++/70105
13503 * diagnostic-show-locus.c (layout_range::layout_range): Replace
13504 location_range param with three const expanded_locations * and a
13505 bool.
13506 (layout::layout): Replace call to
13507 rich_location::lazily_expand_location with get_expanded_location.
13508 Extract the range and perform location expansion here, passing
13509 the results to the layout_range ctor.
13510 * diagnostic.c (source_range::debug): Delete.
13511 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13512 of rich_location::get_expanded_location.
13513 * gcc-rich-location.c (get_range_for_expr): Delete.
13514 (gcc_rich_location::add_expr): Reimplement to avoid the
13515 rich_location::add_range overload that took a location_range,
13516 passing a location_t instead.
13517
13518 2016-03-09 Richard Biener <rguenther@suse.de>
13519 Jakub Jelinek <jakub@redhat.com>
13520
13521 PR tree-optimization/70138
13522 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13523 Also skip vect_double_reduction_def.
13524
13525 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13526
13527 PR target/70049
13528 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13529 if the operand is "m".
13530
13531 2016-03-09 Nathan Sidwell <nathan@acm.org>
13532
13533 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13534
13535 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13536
13537 * config/i386/i386.c (processor_target_table): Fix cost table
13538 intialization order for znver1.
13539
13540 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13541
13542 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13543 - becuase -> because.
13544 * ipa-reference.c (ignore_module_statics): Likewise.
13545 * cgraph.c (cgraph_node::get_body): Likewise.
13546 * ipa-inline.c (early_inliner): Likewise.
13547 * ipa-devirt.c (types_same_for_odr): Likewise.
13548 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13549 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13550
13551 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13552
13553 * tree-ssa-math-opts.c: Fix typo in comment.
13554
13555 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13556
13557 PR target/70110
13558 * config/i386/i386.c (scalar_chain::make_vector_copies,
13559 scalar_chain::convert_reg): Call end_sequence in between
13560 get_insns and emit_conversion_insns rather than after both
13561 calls.
13562
13563 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13564
13565 PR target/70064
13566 * config/i386/i386.h (machine_function): Add
13567 pc_thunk_call_expanded flag.
13568 (ix86_pc_thunk_call_expanded): New define.
13569 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13570 (*set_got): Rename insn pattern from set_got.
13571 (*set_got_labelled): Rename inst pattern from set_got_labelled.
13572 * config/i386/i386.c (ix86_compute_frame_layout): Use
13573 ix86_pc_thunk_call_expanded to prevent red-zone.
13574
13575 2016-03-07 Martin Jambor <mjambor@suse.cz>
13576
13577 * hsa.h (hsa_get_ctor_statements): Declare.
13578 (hsa_get_dtor_statements): Likewise.
13579 (hsa_get_kernel_dispatch_type): Likewise.
13580 * hsa.c (hsa_get_ctor_statements): New function.
13581 (hsa_get_dtor_statements): Likewise.
13582 (hsa_get_kernel_dispatch_type): Likewise.
13583 * hsa-brig.c (hsa_cdtor_statements): Removed.
13584 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13585 hsa_get_dtor_statements.
13586 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13587 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13588
13589 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13590
13591 * config/arm/arm-cores.def (cortex-r8): New.
13592 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13593 * config/arm/arm-tune.md: Likewise.
13594 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13595
13596 2016-03-07 Martin Sebor <msebor@redhat.com>
13597
13598 PR rtl-optimization/19705
13599 * doc/invoke.texi (Options That Control Optimization): Clarify
13600 -fno-branch-count-reg.
13601
13602 2016-02-26 Richard Biener <rguenther@suse.de>
13603 Jeff Law <law@redhat.com>
13604
13605 PR tree-optimization/69740
13606 * cfghooks.c (remove_edge): Request loop fixups if we delete
13607 an edge that might turn an irreducible loop into a natural
13608 loop.
13609 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13610 Move after definition of loops_state_clear.
13611
13612 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13613
13614 PR rtl-optimization/69052
13615 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13616 to CONST_WIDE_INT.
13617
13618 2016-03-07 Tom de Vries <tom@codesourcery.com>
13619
13620 PR tree-optimization/70116
13621 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13622 is_tm_ending stmts and ubsan/asan internal functions.
13623 (find_duplicate): Use it. Don't test is_tm_ending here.
13624
13625 2016-03-07 Richard Biener <rguenther@suse.de>
13626
13627 PR tree-optimization/70115
13628 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13629 (propagate_constants_for_unrolling): Use replace_uses_by.
13630
13631 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13632
13633 PR middle-end/69916
13634 * omp-low.c (struct oacc_loop): Add ifns.
13635 (new_oacc_loop_raw): Initialize it.
13636 (finish_oacc_loop): Clear mask & flags if no ifns.
13637 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13638 (oacc_loop_xform_loop): Add ifns arg & adjust.
13639 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13640
13641 2016-03-07 Richard Henderson <rth@redhat.com>
13642
13643 PR rtl-opt/70061
13644 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13645 (insert_value_copy_on_edge): Likewise.
13646
13647 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13648
13649 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13650
13651 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13652
13653 PR target/62281
13654 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13655
13656 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13657
13658 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13659
13660 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13661
13662 Fix sseimul type attribute.
13663 * config/i386/znver1.md
13664 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13665 znver1_sseimul_avx256_load) : Fix the type attribute.
13666 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13667 pipe usage and latency.
13668
13669 2016-03-05 Jakub Jelinek <jakub@redhat.com>
13670
13671 PR c++/70084
13672 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13673 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13674 to the right type.
13675
13676 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13677
13678 PR c/69973
13679 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13680
13681 PR rtl-optimization/69941
13682 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13683 the reg share its mode.
13684
13685 2016-03-04 Jeff Law <law@redhat.com>
13686
13687 PR tree-optimization/69196
13688 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13689 If the both SSA_NAMEs are anonymous, then consider them unassociated
13690 and include the PHI in the statement count.
13691
13692 2016-03-05 Tom de Vries <tom@codesourcery.com>
13693
13694 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13695 construct in oacc routine. Check for oacc region in oacc routine.
13696
13697 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13698
13699 PR target/70062
13700 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
13701 2016-02-22 changes, instead don't recurse if RECUR is already true.
13702 Don't change *dynamic_check if RECUR. Adjust recursive caller
13703 to pass true to the new argument.
13704 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13705
13706 PR target/70059
13707 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13708 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13709 fixes.
13710 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
13711
13712 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13713
13714 PR rtl-optimization/57676
13715 * lra-assigns.c (lra_assign): Guard test for maximum iterations
13716 with flag_checking.
13717
13718 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
13719
13720 * tree-vect-patterns.c (search_type_for_mask): Handle
13721 comparison of booleans.
13722
13723 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13724
13725 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13726 Fix @xref usage.
13727
13728 PR debug/69947
13729 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13730 all other ops that have dw_val_class_die_ref operands,
13731 and DW_OP_GNU_entry_value.
13732
13733 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13734
13735 PR rtl-optimization/69904
13736 * config/arm/arm.c (arm_cannot_copy_insn_p):
13737 Return true for load-exclusive instructions.
13738
13739 2016-03-03 Jakub Jelinek <jakub@redhat.com>
13740
13741 PR target/70021
13742 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13743 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13744 the pattern no matter if it is used just by non-pattern, pattern
13745 or mix thereof.
13746 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13747 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13748 oprnd1 def_stmt is in pattern, don't look through it.
13749
13750 2016-03-03 Marek Polacek <polacek@redhat.com>
13751
13752 PR middle-end/70050
13753 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13754
13755 2016-03-03 Martin Liska <mliska@suse.cz>
13756
13757 PR tree-optimization/70043
13758 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13759 previous statement if we see a debug statement.
13760
13761 2016-03-03 Richard Biener <rguenther@suse.de>
13762
13763 PR tree-optimization/55936
13764 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13765 parameter and guard unsafe equivalence use.
13766 (vrp_evaluate_conditional_warnv_with_ops): Always use
13767 safe equivalences but not via the quadratic compare_names
13768 helper.
13769
13770 2016-03-03 Michael Collison <michael.collison@linaro.org>
13771
13772 PR target/70014
13773 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13774 for operand 1 to s_register_operand. Change predicate for operand
13775 2 to arm_not_immediate_operand.
13776
13777 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
13778
13779 * doc/tm.texi: Regenerated.
13780
13781 2016-03-02 Richard Henderson <rth@redhat.com>
13782
13783 PR rtl-opt/67145
13784 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13785 simplification when all args are positive non-fixed registers.
13786
13787 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13788
13789 * target.def (lra_p): Specify that new ports should use LRA.
13790
13791 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13792
13793 PR libgomp/69555
13794 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13795 gimplify_type_sizes the type they refer to.
13796 (omp_notice_variable): Handle reference vars to VLAs.
13797 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13798 reference to VLA decls in the second pass instead of first pass.
13799
13800 2016-03-02 Tom de Vries <tom@codesourcery.com>
13801
13802 PR tree-optimization/68659
13803 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13804 new_expr == NULL_TREE.
13805 (get_new_name): Handle ADDR_EXPR.
13806
13807 2016-03-02 Bin Cheng <bin.cheng@arm.com>
13808
13809 PR rtl-optimization/69052
13810 * loop-invariant.c (canonicalize_address): New function.
13811 (inv_can_prop_to_addr_use): Check validity of address expression
13812 which is canonicalized by above function.
13813
13814 2016-03-02 Alan Modra <amodra@gmail.com>
13815
13816 PR ipa/69990
13817 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13818 larger alignment.
13819
13820 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13821
13822 PR target/70028
13823 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13824 (*movhi_internal): Put mask moves from and to memory separately
13825 from moves from/to GPRs.
13826
13827 2016-03-02 Richard Biener <rguenther@suse.de>
13828
13829 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13830 GENERIC expressions in GIMPLE.
13831
13832 2016-03-02 Richard Biener <rguenther@suse.de>
13833
13834 * config/i386/i386.c (type_natural_mode): Fix typo.
13835
13836 2016-03-02 Nick Clifton <nickc@redhat.com>
13837
13838 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13839
13840 2016-03-02 Richard Biener <rguenther@suse.de>
13841 Uros Bizjak <ubizjak@gmail.com>
13842
13843 PR target/67278
13844 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13845
13846 2016-03-02 Richard Biener <rguenther@suse.de>
13847
13848 PR middle-end/67278
13849 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13850
13851 2016-03-02 Marek Polacek <polacek@redhat.com>
13852
13853 PR c/67854
13854 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13855 "is promoted to" warning.
13856
13857 2016-03-01 DJ Delorie <dj@redhat.com>
13858
13859 * config.gcc: Deprecate mep-*.
13860
13861 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
13862
13863 PR middle-end/70025
13864 * lra-constraints.c (regno_val_use_in): New.
13865 (match_reload): Use it instead of regno_use_in.
13866
13867 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13868
13869 PR rtl-optimization/70007
13870 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13871 references present in REG_EQUAL notes attached to non-SET patterns.
13872
13873 2016-03-01 Jeff Law <law@redhat.com>
13874
13875 PR tree-optimization/69196
13876 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13877 Appropriately clamp the number of statements to copy when the
13878 thread path does not traverse a loop backedge.
13879
13880 PR tree-optimization/69196
13881 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13882 Do count some PHIs in the thread path against the insn count. Decrease
13883 final statement count by one as the control statement in the last
13884 block will get removed. Remove special cased code for handling PHIs
13885 in the last block.
13886
13887 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
13888
13889 PR target/70027
13890 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13891 asm dialect alternatives to explicit GOTPCREL calls.
13892
13893 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13894
13895 PR ada/70017
13896 * ira.c (do_reload): Issue warning for generic stack checking here...
13897 * reload1.c (reload): ...instead of here and streamline it.
13898
13899 2016-03-01 Nick Clifton <nickc@redhat.com>
13900
13901 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13902
13903 2016-03-01 Richard Biener <rguenther@suse.de>
13904
13905 PR tree-optimization/69983
13906 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13907 types and fall back to operand_equal_p.
13908
13909 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13910
13911 Revert
13912 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13913
13914 * config/s390/constraints.md ("jm8"): New constraint.
13915 * config/s390/predicates.md ("const_int_8bitset_operand"): New
13916 predicate.
13917 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13918 into ...
13919 ("*setmem_long<setmem_and>"): New pattern.
13920 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13921 into ...
13922 ("*setmem_long_31z<setmem_and>"): New pattern.
13923 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13924 New substitution rules with the required attributes.
13925
13926
13927 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13928
13929 Revert
13930 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13931
13932 * gensupport.c (process_substs_on_one_elem): Split loop to
13933 complete mark_operands_used_in_match_dup on all expressions in the
13934 vector first.
13935 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13936 and remove function.
13937
13938 2016-03-01 Richard Biener <rguenther@suse.de>
13939
13940 PR middle-end/70022
13941 * fold-const.c (fold_indirect_ref_1): Fix range checking for
13942 vector BIT_FIELD_REF extract.
13943
13944 2016-03-01 Richard Biener <rguenther@suse.de>
13945
13946 PR tree-optimization/69994
13947 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13948
13949 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13950
13951 PR tree-optimization/69956
13952 * tree-vect-stmts.c (supportable_widening_operation): Support
13953 multi-step conversion of boolean vectors.
13954 (supportable_narrowing_operation): Likewise.
13955
13956 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13957
13958 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13959 anymore.
13960
13961 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13962
13963 * config/s390/subst.md (DSI_VI): New mode iterator.
13964 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13965 * config/s390/vector.md ("vec_set<mode>"): Move expander before
13966 the insn definition.
13967 ("*vec_set<mode>"): Change predicate and add alternative to
13968 support only either register or const_int operands as element
13969 selector.
13970 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13971 operands.
13972 ("vec_extract<mode>"): New expander.
13973 ("*vec_extract<mode>"): New insn definition supporting reg and
13974 const_int element selectors.
13975 ("*vec_extract<mode>_plus"): New insn definition supporting
13976 reg+const_int element selectors.
13977 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13978 following expander+insn definition.
13979 ("<vec_shifts_name><mode>3"): New expander.
13980 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13981
13982 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13983
13984 * config/s390/s390.md ("*tabort_1"): Change predicate to
13985 nonmemory_operand. Add a second alternative to cover
13986 register as well as const int operands.
13987 ("*tabort_1_plus"): New pattern definition.
13988
13989 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13990
13991 * config/s390/s390.md ("*ashrdi3_cc_31")
13992 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13993 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13994 Merge insn definitions into ...
13995 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
13996 New pattern definition.
13997 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
13998 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
13999 ("*ashr<mode>3_and"): Merge insn definitions into ...
14000 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14001 New pattern definition.
14002 * config/s390/subst.md ("addr_style_op_cc_subst")
14003 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14004 substitutions patterns plus attributes.
14005 Add ashiftrt to SUBST iterator.
14006
14007 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14008
14009 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14010 op2 to nonmemory_operand.
14011 ("*<shift>di3_31", "*<shift>di3_31_and"):
14012 Merge into single pattern definition ...
14013 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14014 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14015 pattern definition ...
14016 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14017 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14018 iterator.
14019
14020 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14021
14022 * config/s390/predicates.md (const_int_6bitset_operand): New
14023 predicate.
14024 * config/s390/s390.md: Include subst.md.
14025 ("rotl<mode>3"): New expander.
14026 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14027 ...
14028 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14029 * config/s390/subst.md: New file.
14030
14031 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14032
14033 * config/s390/s390.md ("op_type", "atype", "length" attributes):
14034 Remove RRR type. It doesn't really exist.
14035 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14036 attributes.
14037 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14038 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14039 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14040 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14041 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14042 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14043 `enabled' attribute.
14044
14045 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14046
14047 * gensupport.c (process_substs_on_one_elem): Split loop to
14048 complete mark_operands_used_in_match_dup on all expressions in the
14049 vector first.
14050 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14051 and remove function.
14052
14053 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14054
14055 PR target/69706
14056 * config/sparc/sparc.c (NWORDS_UP): Rename to...
14057 (CEIL_NWORDS): ...this. Use CEIL macro.
14058 (compute_fp_layout): Adjust to above renaming.
14059 (function_arg_union_value): Likewise.
14060 (sparc_arg_partial_bytes): Likewise.
14061 (sparc_function_arg_advance): Likewise.
14062
14063 2016-02-29 Jeff Law <law@redhat.com>
14064
14065 PR tree-optimization/70005
14066 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14067 where an object with a boolean range is compared against a value
14068 outside [0..1].
14069
14070 PR tree-optimization/69999
14071 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14072 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14073 loop cleanups.
14074
14075 2016-02-29 Richard Biener <rguenther@suse.de>
14076
14077 PR tree-optimization/69994
14078 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14079 (get_unary_op): Look through nop conversions.
14080 (ops_equal_values_p): New function, look for equality diregarding
14081 nop conversions.
14082 (eliminate_plus_minus_pair): Use ops_equal_values_p
14083 (repropagate_negates): Do not use get_unary_op here.
14084
14085 2016-02-29 Martin Liska <mliska@suse.cz>
14086
14087 * system.h: Poison ENABLE_CHECKING macro.
14088
14089 2016-02-29 Martin Liska <mliska@suse.cz>
14090
14091 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14092 is presented in dump flags.
14093 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14094 (hsa_regalloc): Likewise.
14095
14096 2016-02-19 Richard Biener <rguenther@suse.de>
14097
14098 PR tree-optimization/69980
14099 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14100 permutation of those we need to keep.
14101
14102 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14103
14104 PR target/69706
14105 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14106 (NWORDS_UP): ...this
14107 (init_cumulative_args): Minor tweaks.
14108 (sparc_promote_function_mode): Likewise.
14109 (scan_record_type): Delete.
14110 (traverse_record_type): New function template.
14111 (classify_data_t): New structure type.
14112 (classify_registers): New inline function.
14113 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14114 exhausted. Instantiate traverse_record_type on classify_registers and
14115 deal with the case of a structure passed in slot #15 with no FP field
14116 in the first word.
14117 (assign_data_t): New structure type.
14118 (compute_int_layout): New static function.
14119 (compute_fp_layout): Likewise.
14120 (count_registers): New inline function.
14121 (assign_int_registers): New static function.
14122 (assign_fp_registers): Likewise.
14123 (assign_registers): New inline function.
14124 (function_arg_record_value_1): Delete.
14125 (function_arg_record_value_2): Likewise.
14126 (function_arg_record_value_3): Likewise.
14127 (function_arg_record_value): Adjust to above changes. Instantiate
14128 traverse_record_type on count_registers to first count the number of
14129 registers to be used and then on assign_registers to assign them.
14130 (function_arg_union_value): Adjust to above renaming.
14131 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
14132 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
14133 case of a structure passed in slot #15
14134 (sparc_function_arg_advance): Likewise.
14135 (function_arg_padding): Minor tweak.
14136
14137 2016-02-29 Richard Biener <rguenther@suse.de>
14138
14139 PR tree-optimization/69720
14140 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14141 the adjustment_def path for possibly vectorized defs.
14142 (vect_create_epilog_for_reduction): Handle vectorized initial
14143 defs properly.
14144
14145 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14146
14147 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14148
14149 2016-02-27 Jeff Law <law@redhat.com>
14150
14151 Revert
14152 2016-02-26 Richard Biener <rguenther@suse.de>
14153 Jeff Law <law@redhat.com>
14154
14155 PR tree-optimization/69740
14156 * cfghooks.c (remove_edge): Request loop fixups if we delete
14157 an edge that might turn an irreducible loop into a natural
14158 loop.
14159
14160 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14161
14162 PR rtl-optimization/69896
14163 * tree-vect-generic.c (get_compute_type): Avoid single element
14164 vector types.
14165
14166 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14167
14168 Rename the AArch64 tuning option and related functions to enable the
14169 Newton series for the reciprocal square root to reflect its
14170 approximative characteristic.
14171
14172 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14173 function to "aarch64_emit_approx_rsqrt".
14174 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14175 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14176 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14177 (xgene1_tunings): Likewise.
14178 (use_rsqrt_p): Likewise.
14179 (aarch64_emit_swrsqrt): Use new function name.
14180 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14181 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14182 text explaining this option.
14183 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14184
14185 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14186
14187 PR target/69969
14188 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14189 complain about -mallow-movmisalign without -mvsx if
14190 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14191
14192 2016-02-26 Joel Sherrill <joel@rtems.org>
14193
14194 * config.gcc: Add x86_64-*-rtems*.
14195 * config/i386/rtems-64.h: New file.
14196
14197 2016-02-26 Joel Sherrill <joel@rtems.org>
14198
14199 * config.gcc: Add aarch64-*-rtems*.
14200 * config/aarch64/rtems.h: New file.
14201
14202 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14203
14204 PR target/69946
14205 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14206 shift amount using %h. Add comment.
14207
14208 2016-02-26 Richard Biener <rguenther@suse.de>
14209 Jeff Law <law@redhat.com>
14210
14211 PR tree-optimization/69740
14212 * cfghooks.c (remove_edge): Request loop fixups if we delete
14213 an edge that might turn an irreducible loop into a natural
14214 loop.
14215
14216 2016-02-26 Martin Jambor <mjambor@suse.cz>
14217
14218 PR middle-end/69920
14219 * tree-sra.c (sra_modify_assign): Do not remove loads of
14220 uninitialized aggregates to SSA_NAMEs.
14221
14222 2016-02-26 Richard Henderson <rth@redhat.com>
14223
14224 PR target/69709
14225 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14226 pseudo in case the target rtx matches the source of the left
14227 shift.
14228
14229 2016-02-26 Martin Jambor <mjambor@suse.cz>
14230
14231 PR hsa/69568
14232 * hsa.h (hsa_type_packed_p): Declare.
14233 * hsa.c (hsa_type_packed_p): New function.
14234 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14235 loads.
14236 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14237 * hsa-brig.c (emit_basic_insn): Likewise.
14238
14239 2016-02-26 Martin Jambor <mjambor@suse.cz>
14240
14241 pr hsa/69674
14242 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14243 pointers.
14244 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14245
14246 2016-02-26 Martin Jambor <mjambor@suse.cz>
14247
14248 * hsa.h (is_a_helper): New overload for hsa_op_immed for
14249 hsa_op_with_type operands.
14250 (hsa_unsigned_type_for_type): Declare.
14251 * hsa.c (hsa_unsigned_type_for_type): New function.
14252 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14253 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14254 the finalizer. Do not emit extra move.
14255
14256 2016-02-26 Martin Jambor <mjambor@suse.cz>
14257
14258 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14259 atomic operations in private segment.
14260
14261 2016-02-26 Martin Jambor <mjambor@suse.cz>
14262
14263 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14264 statements to wi->info. Also disallow omp simd constructs.
14265 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14266 for not gridifying. Dump special string for omp_for.
14267
14268 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14269
14270 PR target/69245
14271 * config/aarch64/aarch64.c (aarch64_set_current_function):
14272 Save/restore target globals when switching to
14273 target_option_default_node.
14274
14275 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14276
14277 PR target/69613
14278 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14279 Return 0 if !SHIFT_COUNT_TRUNCATED.
14280
14281 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14282 Eric Botcazou <ebotcazou@adacore.com>
14283
14284 PR rtl-optimization/69891
14285 * dse.c (scan_insn): If we can't figure out memset arguments
14286 or they are non-constant, call clear_rhs_from_active_local_stores.
14287
14288 2016-02-26 Martin Liska <mliska@suse.cz>
14289
14290 * doc/extend.texi: Mention clog10, clog10f an clog10l
14291 in Builtins section.
14292
14293 2016-02-26 Martin Liska <mliska@suse.cz>
14294
14295 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14296 CHECKING_P.
14297 (resolve_args_picking_1): Likewise.
14298 * dwarf2out.h (struct GTY): Likewise.
14299
14300 2016-02-26 Martin Liska <mliska@suse.cz>
14301
14302 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14303 with flag_checking.
14304 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14305
14306 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14307 Martin Liska <mliska@suse.cz>
14308
14309 * doc/install.texi: Mention --enable-valgrind-annotations.
14310
14311 2016-02-26 Richard Biener <rguenther@suse.de>
14312
14313 PR tree-optimization/69551
14314 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14315 looking through aliases adjust DECL_PT_UID to refer to the
14316 ultimate alias target.
14317
14318 2016-02-25 Martin Liska <mliska@suse.cz>
14319
14320 PR middle-end/69919
14321 * alloc-pool.c (after_memory_report): New variable.
14322 * alloc-pool.h (base_pool_allocator ::release): Do not use
14323 the infrastructure if after_memory_report.
14324 * toplev.c (toplev::main): Mark after memory report.
14325
14326 2016-02-25 Richard Biener <rguenther@suse.de>
14327
14328 PR tree-optimization/48795
14329 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14330
14331 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14332
14333 PR driver/68463
14334 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
14335 offloading is enabled and -fopenacc or -fopenmp is specified.
14336 (CRTOFFLOADEND): Likewise.
14337 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14338 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14339 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14340 (offload_objects_file_name): New static var.
14341 (tool_cleanup): Remove offload_objects_file_name file.
14342 (find_offloadbeginend): Replace with ...
14343 (find_crtoffloadtable): ... this.
14344 (run_gcc): Remove offload_argc and offload_argv.
14345 Get offload_objects_file_name from -foffload-objects=... option.
14346 Read names of object files with offload from this file, pass them to
14347 compile_images_for_offload_targets. Don't call find_offloadbeginend and
14348 don't pass offloadbegin and offloadend to the linker. Don't pass
14349 offload non-LTO files to the linker, because now they're not claimed.
14350
14351 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
14352
14353 PR ipa/69630
14354 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14355 on builtin_unreachable.
14356
14357 2016-02-25 Jakub Jelinek <jakub@redhat.com>
14358
14359 PR rtl-optimization/69896
14360 * regcprop.c: Include cfgrtl.h.
14361 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14362 than remembered mode, either delete it (if noop_move_p), or
14363 treat like copy_p but not noop_p instruction.
14364
14365 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14366
14367 PR debug/69705
14368 * dwarf2out.c (gen_variable_die): Work around buggy LTO
14369 - allow NULL decl for Fortran DW_TAG_common_block variables.
14370
14371 2016-02-24 Jason Merrill <jason@redhat.com>
14372
14373 * common.opt (flifetime-dse): Add -flifetime-dse=1.
14374
14375 2016-02-24 Richard Biener <rguenther@suse.de>
14376 Jakub Jelinek <jakub@redhat.com>
14377
14378 PR middle-end/69760
14379 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14380 conditionally executed ops to well-defined overflow behavior.
14381
14382 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14383
14384 PR middle-end/69915
14385 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14386 elements.
14387
14388 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14389
14390 PR rtl-optimization/69886
14391 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14392 argument. Use it when checking validity of set instructions.
14393 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14394 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14395 callsite.
14396 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14397 * store-motion.c (find_moveable_store): Update
14398 can_assign_to_reg_without_clobbers_p callsite.
14399
14400 2016-02-24 Richard Biener <rguenther@suse.de>
14401
14402 PR middle-end/68963
14403 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14404 bogus check.
14405 (record_nonwrapping_iv): Do not fall back to the low/high bound
14406 for non-constant IV bases if the stmt is not always executed.
14407
14408 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14409
14410 * config/arm/arm-cores.def (cortex-a32): New entry.
14411 * config/arm/arm-tables.opt: Regenerate.
14412 * config/arm/arm-tune.md: Regenerate.
14413 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14414 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14415 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14416 for -mcpu and -mtune.
14417
14418 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14419
14420 PR target/69875
14421 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14422 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14423 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14424 (atomic_loaddi_1): Delete.
14425 (atomic_loaddi): Rewrite expander using the above changes.
14426
14427 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14428
14429 PR c/69918
14430 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14431 2 to 3.
14432
14433 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14434 Richard Biener <rguenth@suse.de>
14435
14436 PR middle-end/69909
14437 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14438 set_mem_attributes if tem is SSA_NAME which got expanded
14439 as a MEM.
14440
14441 2016-02-24 Richard Biener <rguenther@suse.de>
14442
14443 PR tree-optimization/69907
14444 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14445 end of permutations for BB vectorization.
14446
14447 2016-02-24 Christian Bruel <christian.bruel@st.com>
14448
14449 * config/arm/arm-c.c (arm_option_override): Initialize
14450 target_option_current_node.
14451 * config/arm/arm.c (arm_pragma_target_parse): Replace
14452 build_target_option_node call by target_option_current_node.
14453 Set target_option_current_node.
14454 Fix comments.
14455
14456 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
14457
14458 PR target/69810
14459 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14460 define_insn_and_split to define_insn.
14461 (zero_extendqi<mode>2_dot2): Same.
14462 (extendqi<mode>2_dot): Same.
14463 (extendqi<mode>2_dot2): Same.
14464
14465 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14466
14467 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14468 and add bypass for AES{D,E} and AESMC pairs.
14469 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14470 and AESMC pairs.
14471
14472 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14473
14474 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14475 series for reciprocal square root in Exynos M1.
14476
14477 2016-02-23 Martin Sebor <msebor@redhat.com>
14478
14479 PR c/69759
14480 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14481 __builtin_alloca_with_align.
14482
14483 2016-02-23 Richard Henderson <rth@redhat.com>
14484
14485 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14486 (ix86_register_pragmas): Remove __seg_tls.
14487 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14488 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14489 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14490 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14491 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14492 * doc/extend.texi (__seg_tls): Remove item.
14493
14494 2016-02-23 Richard Biener <rguenther@suse.de>
14495
14496 * alloc-pool.h (struct allocation_object): Make id member
14497 conditional on CHECKING_P again.
14498 (get_instance): Adjust.
14499 (base_pool_allocator): Likewise.
14500
14501 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
14502
14503 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14504 (parallelize_loops): In OpenACC kernels mode, set n_threads to
14505 zero.
14506 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14507 flag_openacc.
14508 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14509
14510 2016-02-23 Richard Biener <rguenther@suse.de>
14511
14512 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14513 * bitmap.h (struct bitmap_usage): Likewise.
14514 (bitmap_move): Declare.
14515 * bitmap.c (register_overhead): Take size_t argument.
14516 (bitmap_move): New function.
14517 * df-problems.c (df_rd_transfer_function): Use bitmap_move
14518 to properly account overhead.
14519 * tree.c (free_node): Use tree_size.
14520
14521 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14522
14523 PR c++/69902
14524 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14525 when inverting comparison.
14526
14527 PR c/69900
14528 * common.opt (Wunreachable-code): Add Warning flag.
14529
14530 2016-02-23 Mark Wielaard <mjw@redhat.com>
14531 Jakub Jelinek <jakub@redhat.com>
14532
14533 PR c/69911
14534 * cgraphunit.c (check_global_declaration): Check main_input_filename
14535 and DECL_SOURCE_FILE are not NULL.
14536
14537 2016-02-23 Martin Jambor <mjambor@suse.cz>
14538
14539 PR tree-optimization/69666
14540 * tree-sra.c (sra_modify_assign): Do not attempt to create
14541 default_def replacements for unscalarizable regions.
14542
14543 2016-02-20 Mark Wielaard <mjw@redhat.com>
14544
14545 PR c/28901
14546 * cgraphunit.c (check_global_declaration): Check level of
14547 warn_unused_const_variable and main_input_filename.
14548 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14549 (-Wunused-variable): For C implies -Wunused-const-variable=1.
14550 (-Wunused-const-variable): Explain levels 1 and 2.
14551
14552 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14553
14554 PR target/69888
14555 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14556 identical arguments. Formatting and spelling fixes.
14557
14558 PR target/69885
14559 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14560 be specified.
14561
14562 PR target/69894
14563 PR target/69895
14564 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14565 and m68k-devices.def.
14566 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14567 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14568
14569 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14570
14571 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14572 and HImode registers.
14573
14574 2016-02-22 Richard Biener <rguenther@suse.de>
14575
14576 PR tree-optimization/69882
14577 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14578 preserve permutations present because of gaps.
14579 (vect_supported_load_permutation_p): Always continue checking
14580 permutations after vect_attempt_slp_rearrange_stmts.
14581
14582 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14583
14584 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14585 min_profitable_estimate, rather than min_profitable_iters.
14586
14587 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14588
14589 PR target/69885
14590 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14591 SImode for last match_operand.
14592
14593 2016-02-22 Martin Liska <mliska@suse.cz>
14594
14595 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14596 return bitsize - 1 as the return value.
14597
14598 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14599
14600 PR target/69806
14601 PR target/54089
14602 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14603 Handle negative shift counts.
14604 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14605 force_reg on the shift constant.
14606 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
14607 (lshrsi3_d): Handle negative shift counts.
14608
14609 2016-02-22 Richard Biener <rguenther@suse.de>
14610 Tom de Vries <tom@codesourcery.com>
14611
14612 * graph.c: Include dumpfile.h.
14613 (print_graph_cfg): Split into three overloads.
14614 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14615
14616 2016-02-22 Tom de Vries <tom@codesourcery.com>
14617
14618 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14619 dump-fn.
14620
14621 2016-02-22 Richard Biener <rguenther@suse.de>
14622
14623 PR ipa/37448
14624 * ipa-inline-transform.c (inline_call): When not updating
14625 overall summaries adjust self size by the growth estimate.
14626 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14627 hash-set, do not update overall summaries here. Renamed from ...
14628 (inline_to_all_callers): ... this which is now wrapping the
14629 above and performing delayed overall summary update.
14630 (early_inline_small_functions): Delay updating of the overall
14631 summary.
14632
14633 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14634
14635 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14636 variable.
14637
14638 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14639
14640 PR driver/69805
14641 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14642 :%* in %:gt() argument.
14643 (greater_than_spec_func): Adjust for expecting only numbers,
14644 if there are more than two numbers, compare the last two.
14645
14646 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14647
14648 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14649 -Wnarrowing with -std.
14650
14651 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14652
14653 PR c++/69851
14654 * expr.c (store_field): Don't use bit-field path if exp is
14655 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14656 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14657 and the assignment can be performed by bitwise copy. Formatting
14658 fix.
14659
14660 PR middle-end/69838
14661 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14662 call copy_reg_eh_region_note_forward on before and/or after sequences
14663 and remove note from insn if it no longer can throw.
14664
14665 PR target/69820
14666 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14667 if TARGET_AVX512BW.
14668
14669 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14670
14671 * config/s390/vector.md: Add missing commutative operand markers
14672 to the patterns which qualify for one.
14673 * config/s390/vx-builtins.md: Likewise.
14674
14675 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14676
14677 * config/s390/vector.md (VI, VI_QHS): Add single element vector
14678 types to mode iterators.
14679 (vec_double): ... and mode attribute.
14680 * config/s390/vx-builtins.md (non_vec_int): Likewise.
14681
14682 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14683
14684 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14685 Change the predicate of op2 from nonimmediate to general and let
14686 reload fix it if necessary.
14687
14688 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14689
14690 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14691
14692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14693
14694 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14695 mode.
14696
14697 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14698
14699 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14700 * config/s390/s390.c (s390_expand_vec_movstr): New function.
14701 * config/s390/s390.md ("movstr<P:mode>"): Call
14702 s390_expand_vec_movstr.
14703
14704 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14705
14706 * config/s390/s390.md: Add missing output modifier for operand 1
14707 to print it as address properly.
14708
14709 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14710
14711 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14712 * config/s390/2964.md: New file.
14713 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14714 of insn grouping attributes depending on the CPU level.
14715 (s390_get_unit_mask): New function.
14716 (s390_sched_score): Remove the OOO from the scheduling macros.
14717 Add loop to calculate a score for the instruction mix.
14718 (s390_sched_reorder): Likewise plus improve debug output.
14719 (s390_sched_variable_issue): Rename macros as above. Calculate
14720 the unit distances after actually scheduling an insn. Improve
14721 debug output.
14722 (s390_sched_init): Clear last_scheduled_unit_distance array.
14723 * config/s390/s390.md: Include 2964.md.
14724
14725 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14726
14727 PR target/69671
14728 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14729 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14730 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14731 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14732 *avx512f_<code>v8div16qi2_mask_1): New insns.
14733
14734 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14735
14736 PR target/68404
14737 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14738 2016-02-09 change.
14739
14740 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14741 earlyclobber from target. Use wF constraint for fused memory
14742 address.
14743 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14744
14745 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14746 Martin Liska <mliska@suse.cz>
14747
14748 PR sanitizer/69863
14749 * cfgexpand.c (asan_sanitize_stack_p): New function.
14750 (partition_stack_vars): Use the function.
14751 (expand_stack_vars): Likewise.
14752 (defer_stack_allocation): Likewise.
14753 (expand_used_vars): Likewise.
14754
14755 2016-02-18 Richard Biener <rguenther@suse.de>
14756
14757 PR middle-end/69553
14758 * fold-const.c (operand_equal_p): Properly compare offsets for
14759 IMAGPART_EXPR and ARRAY_REF.
14760
14761 2016-02-18 Nick Clifton <nickc@redhat.com>
14762
14763 PR target/62254
14764 PR target/69610
14765 * config/arm/arm.c (arm_option_override_internal): Disable
14766 interworking if the target does not support thumb instructions.
14767 (arm_reload_in_hi): Handle the case where a register to register
14768 move needs reloading because there is no simple pattern to handle
14769 it.
14770 (arm_reload_out_hi): Likewise.
14771
14772 2016-02-18 Richard Biener <rguenther@suse.de>
14773
14774 PR middle-end/69854
14775 * match.pd: Don't use fold_binary or fold_unary for folding
14776 constants.
14777
14778 2016-02-17 Jakub Jelinek <jakub@redhat.com>
14779
14780 PR c++/69850
14781 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14782 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14783 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14784 warn on gimple_no_warning_p statements.
14785
14786 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
14787
14788 * doc/extend.texi (C++ Attributes): Correct description of
14789 warn_unused type attribute.
14790
14791 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14792
14793 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14794 correct instruction.
14795
14796 2016-02-17 Richard Biener <rguenther@suse.de>
14797
14798 PR rtl-optimization/69609
14799 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14800 (find_traces_1_round): When ending a trace update cached priority
14801 of successors.
14802 (bb_to_key): Use cached priority when available.
14803 (copy_bb): Initialize cached priority.
14804 (reorder_basic_blocks_software_trace_cache): Likewise.
14805
14806 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14807
14808 PR target/69161
14809 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14810 New predicate.
14811 (aarch64_comparison_operator): Break overly long line into two.
14812 (aarch64_comparison_operation): Likewise.
14813 * config/aarch64/aarch64.md (cstorecc4): Use
14814 aarch64_comparison_operator_mode instead of
14815 aarch64_comparison_operator.
14816 (cstore<mode>4): Likewise.
14817 (aarch64_cstore<mode>): Likewise.
14818 (*cstoresi_insn_uxtw): Likewise.
14819 (cstore<mode>_neg): Likewise.
14820 (*cstoresi_neg_uxtw): Likewise.
14821
14822 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14823
14824 PR target/69161
14825 * config/arm/predicates.md (arm_comparison_operator_mode):
14826 New predicate.
14827 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14828 instead of arm_comparison_operator.
14829 (*mov_negscc): Likewise.
14830 (*mov_notscc): Likewise.
14831 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14832 (*thumb2_mov_negscc): Likewise.
14833 (*thumb2_mov_negscc_strict_it): Likewise.
14834 (*thumb2_mov_notscc): Likewise.
14835 (*thumb2_mov_notscc_strict_it): Likewise.
14836
14837 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
14838
14839 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14840 Add missing return.
14841
14842 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
14843
14844 * config/visium/visium.c (machine_libfunc_index): New enum.
14845 (machine_libfuncs): New structure.
14846 (visium_libfuncs): New static variable.
14847 (TARGET_INIT_LIBFUNCS): Define to...
14848 (visium_init_libfuncs): ...this. New function.
14849 (expand_block_move_4): Use the appropriate libfunc.
14850 (expand_block_move_2): Likewise.
14851 (expand_block_move_1): Likewise.
14852 (expand_block_set_4): Likewise.
14853 (expand_block_set_2): Likewise.
14854 (expand_block_set_1): Likewise.
14855 (visium_trampoline_init): Likewise.
14856
14857 2016-02-17 Nick Clifton <nickc@redhat.com>
14858
14859 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14860 TI's devices.csv file as of March 2016.
14861
14862 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
14863
14864 PR Target/48344
14865 * opts-global.c (handle_common_deferred_options): Introduce and
14866 initialize two global variables to remember command-line options
14867 specifying a stack-limiting register.
14868 * opts.h: Add extern declarations of the two new global variables.
14869 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14870 variable based on the values of the two new global variables.
14871
14872 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14873
14874 PR c/69835
14875 * common.opt (Wnonnull-compare): New warning.
14876 * doc/invoke.texi (-Wnonnull): Remove text about comparison
14877 of arguments against NULL.
14878 (-Wnonnull-compare): Document.
14879 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14880 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14881 * passes.def (pass_warn_nonnull_compare): Add.
14882 * gimple-ssa-nonnull-compare.c: New file.
14883
14884 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14885
14886 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14887 AARCH64_EXTRA_TUNE_RECIP_SQRT.
14888
14889 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14890
14891 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14892 reciprocal sqrt for -mlow-precision-recip-sqrt.
14893
14894 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14895 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14896
14897 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14898 always use lane loads to construct non-constant vectors.
14899
14900 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14901
14902 * config/aarch64/aarch64.md
14903 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14904 constraints for operand 3.
14905 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14906
14907 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14908 Richard Biener <rguenther@suse.de>
14909
14910 PR tree-optimization/69820
14911 * tree-vect-patterns.c (type_conversion_p): Return false if
14912 *orig_type is unsigned single precision or boolean.
14913 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14914 Formatting fix.
14915
14916 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14917
14918 PR rtl-optimization/69764
14919 PR rtl-optimization/69771
14920 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14921 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14922
14923 2016-02-16 Richard Biener <rguenther@suse.de>
14924
14925 PR tree-optimization/69776
14926 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14927 sets from caller.
14928 (indirect_refs_may_alias_p): Likewise.
14929 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14930 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14931 according to tbaa_p.
14932 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14933 (optimize_stmt): For redundant store discovery do not allow tbaa.
14934
14935 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
14936
14937 PR tree-optimization/69714
14938 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14939 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14940
14941 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
14942
14943 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14944 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14945 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14946 * config/arc/arc.c (arc_init): Check FPU options.
14947 (get_arc_condition_code): Handle new CC_FPU* modes.
14948 (arc_select_cc_mode): Likewise.
14949 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14950 register pair only. Allow access for ARCv2 accumulator.
14951 (gen_compare_reg): Whenever we have FPU support use FPU compare
14952 instructions.
14953 (arc_reorg): Don't generate brcc insns when FPU compare
14954 instructions are involved.
14955 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14956 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14957 floating point emulation.
14958 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14959 (REVERSE_CONDITION): Add new CC_FPU* modes.
14960 (TARGET_FP_SP_BASE): Define.
14961 (TARGET_FP_DP_BASE): Likewise.
14962 (TARGET_FP_SP_FUSED): Likewise.
14963 (TARGET_FP_DP_FUSED): Likewise.
14964 (TARGET_FP_SP_CONV): Likewise.
14965 (TARGET_FP_DP_CONV): Likewise.
14966 (TARGET_FP_SP_SQRT): Likewise.
14967 (TARGET_FP_DP_SQRT): Likewise.
14968 (TARGET_FP_DP_AX): Likewise.
14969 * config/arc/arc.md (ARCV2_ACC): New constant.
14970 (type): New fpu type attribute.
14971 (SDF): Conditional iterator.
14972 (cstore<mode>, cbranch<mode>): Change expand condition.
14973 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14974 handles FPU/FPX cases as well.
14975 * config/arc/arc.opt (mfpu): New option.
14976 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14977 Renamed.
14978 (adddf3, muldf3, subdf3): Removed.
14979 * config/arc/predicates.md (proper_comparison_operator): Recognize
14980 CC_FPU* modes.
14981 * config/arc/fpu.md: New file.
14982 * doc/invoke.texi (ARC Options): Document mfpu option.
14983
14984 2016-02-16 Richard Biener <rguenther@suse.de>
14985
14986 PR rtl-optimization/69291
14987 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14988 noce_operand_ok check.
14989
14990 2016-02-16 Tom de Vries <tom@codesourcery.com>
14991
14992 PR lto/67709
14993 * omp-low.c (simd_clone_create): Remove call to
14994 symtab->call_cgraph_insertion_hooks.
14995
14996 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14997
14998 PR tree-optimization/69802
14999 * tree-ssa-reassoc.c (update_range_test): If op is
15000 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15001 op == 1 test of precision 1 integral op, otherwise handle
15002 that case as op itself. Fix up formatting.
15003 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15004 up formatting.
15005
15006 2016-02-16 Richard Biener <rguenther@suse.de>
15007
15008 PR tree-optimization/69586
15009 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15010 types for conversion sources.
15011
15012 2016-02-16 Richard Biener <rguenther@suse.de>
15013
15014 PR middle-end/69801
15015 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15016 mask OEP_ADDRESS_OF.
15017
15018 2016-02-16 Alan Modra <amodra@gmail.com>
15019
15020 PR target/68973
15021 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15022 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15023 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15024 (p8_mtvsrwz): New.
15025 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15026 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15027 (p8_fmrgow_<mode>): Likewise.
15028 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
15029 changes.
15030 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15031 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15032 to use movdi_internal64. Remove op0_di.
15033 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15034
15035 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15036
15037 Add support for the FCCMP insn types
15038
15039 * config/aarch64/aarch64.md (fccmp): Change insn type.
15040 (fccmpe): Likewise.
15041 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15042 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15043 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15044 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15045 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15046 * config/arm/types.md (fccmps): Add new insn type.
15047 (fccmpd): Likewise.
15048
15049 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15050
15051 * alias.c (get_alias_set): Fix a typo in comment.
15052
15053 2016-02-15 Richard Biener <rguenther@suse.de>
15054
15055 PR tree-optimization/69595
15056 * match.pd: Complete range test simplification to true.
15057
15058 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15059
15060 PR rtl-optimization/69648
15061 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15062 pic_offset_table_rtx.
15063
15064 PR rtl-optimization/69752
15065 * ira.c (update_equiv_regs): When looking for more than a single SET,
15066 also take other side effects into account.
15067
15068 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15069
15070 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15071 for z900+ CPUs in 31-bit mode.
15072
15073 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15074
15075 * common/config/s390/s390-common.c (s390_supports_split_stack):
15076 New function.
15077 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15078 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15079 * config/s390/s390.c (struct machine_function): New field
15080 split_stack_varargs_pointer.
15081 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15082 in s390_emit_prologue.
15083 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15084 vararg pointer.
15085 (morestack_ref): New global.
15086 (SPLIT_STACK_AVAILABLE): New macro.
15087 (s390_expand_split_stack_prologue): New function.
15088 (s390_live_on_entry): New function.
15089 (s390_va_start): Use split-stack vararg pointer if appropriate.
15090 (s390_asm_file_end): Emit the split-stack note sections.
15091 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15092 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15093 (UNSPECV_SPLIT_STACK_CALL): New unspec.
15094 (UNSPECV_SPLIT_STACK_DATA): New unspec.
15095 (split_stack_prologue): New expand.
15096 (split_stack_space_check): New expand.
15097 (split_stack_data): New insn.
15098 (split_stack_call): New expand.
15099 (split_stack_call_*): New insn.
15100 (split_stack_cond_call): New expand.
15101 (split_stack_cond_call_*): New insn.
15102
15103 2016-02-15 Richard Biener <rguenther@suse.de>
15104
15105 PR tree-optimization/69783
15106 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15107 Add trivially correct cases.
15108
15109 2016-02-15 Tom de Vries <tom@codesourcery.com>
15110
15111 PR lto/69655
15112 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15113 do_force_output.
15114 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15115
15116 2016-02-15 Richard Biener <rguenther@suse.de>
15117
15118 PR tree-optimization/69776
15119 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15120 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15121 indicate whether we can use TBAA to disambiguate against stores.
15122 Use alias-set zero if not.
15123 (visit_reference_op_store): Do not use TBAA when looking up
15124 redundant stores.
15125 * tree-ssa-pre.c (compute_avail): Use TBAA here.
15126 (eliminate_dom_walker::before_dom_children): But not when looking
15127 up redundant stores.
15128
15129 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15130
15131 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15132
15133 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15134
15135 * config/i386/znver1.md
15136 (znver1_pop, znver1_pop_mem,
15137 znver1_load_imov_double_store,
15138 znver1_load_imov_direct_store,
15139 znver1_load_imov_direct_load,
15140 znver1_load_imov_double_load): Add new.
15141 (znver1_insn, znver1_insn_load): Add icmov type.
15142 (znver1_sseavx_fma,
15143 znver1_sseavx_fma_load,
15144 znver1_avx256_fma,
15145 znver1_avx256_fma_load): Fix pipe usage.
15146
15147 2016-02-14 Alan Modra <amodra@gmail.com>
15148
15149 PR target/68973
15150 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15151 with an invalid hard reg, reload just the reg not the entire
15152 pre/post-inc/dec address expression.
15153
15154 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15155
15156 PR target/67260
15157 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15158 fixed R1_REG scratch reg.
15159 (sibcall_value_pcrel_fdpic): Likewise.
15160
15161 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15162
15163 PR target/67636
15164 PR target/64345
15165 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15166
15167 2016-02-12 Walter Lee <walt@tilera.com>
15168
15169 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15170 * config/tilegx/t-tilegx: Likewise.
15171
15172 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15173
15174 PR other/69554
15175 * diagnostic-show-locus.c (struct line_span): New struct.
15176 (layout::get_first_line): Delete.
15177 (layout::get_last_line): Delete.
15178 (layout::get_num_line_spans): New member function.
15179 (layout::get_line_span): Likewise.
15180 (layout::print_heading_for_line_span_index_p): Likewise.
15181 (layout::get_expanded_location): Likewise.
15182 (layout::calculate_line_spans): Likewise.
15183 (layout::m_first_line): Delete.
15184 (layout::m_last_line): Delete.
15185 (layout::m_line_spans): New field.
15186 (layout::layout): Update comment. Replace m_first_line and
15187 m_last_line with m_line_spans, replacing their initialization
15188 with a call to calculate_line_spans.
15189 (diagnostic_show_locus): When printing source lines and
15190 annotations, rather than looping over a single span
15191 of lines, instead loop over each line_span within
15192 the layout, with an inner loop over the lines within them.
15193 Call the context's start_span callback when changing line spans.
15194 * diagnostic.c (diagnostic_initialize): Initialize start_span.
15195 (diagnostic_build_prefix): Break out the building of the location
15196 part of the string into...
15197 (diagnostic_get_location_text): ...this new function, rewriting
15198 it from nested ternary expressions to a sequence of "if"
15199 statements.
15200 (default_diagnostic_start_span_fn): New function.
15201 * diagnostic.h (diagnostic_start_span_fn): New typedef.
15202 (diagnostic_context::start_span): New field.
15203 (default_diagnostic_start_span_fn): New prototype.
15204
15205 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15206
15207 PR driver/69779
15208 * gcc.c (driver::finalize): Fix cleanup of "specs".
15209
15210 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15211
15212 PR driver/69265
15213 PR driver/69453
15214 * gcc.c (driver::driver): Initialize m_option_suggestions.
15215 (driver::~driver): Clean up m_option_suggestions.
15216 (suggest_option): Convert to...
15217 (driver::suggest_option): ...this, and split out into
15218 driver::build_option_suggestions and find_closest_string.
15219 (driver::build_option_suggestions): New function, from
15220 first half of suggest_option. Special-case
15221 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15222 the sanitizer_opts array. For options of enum types, add the
15223 various enum values to the candidate strings.
15224 (driver::handle_unrecognized_options): Remove "const".
15225 * gcc.h (driver::handle_unrecognized_options): Likewise.
15226 (driver::build_option_suggestions): New decl.
15227 (driver::suggest_option): New decl.
15228 (driver::m_option_suggestions): New field.
15229 * opts-common.c (add_misspelling_candidates): New function.
15230 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15231 and make non-static.
15232 * opts.h (sanitizer_opts): New array decl.
15233 (add_misspelling_candidates): New function decl.
15234 * spellcheck.c (find_closest_string): New function.
15235 * spellcheck.h (find_closest_string): New function decl.
15236
15237 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15238
15239 PR rtl-optimization/69764
15240 PR rtl-optimization/69771
15241 * optabs.c (expand_binop_directly): For shift_optab_p, force
15242 convert_modes with VOIDmode if xop1 has VOIDmode.
15243
15244 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15245
15246 PR target/69729
15247 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15248 to correctly determine instrumentation thunks.
15249
15250 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15251
15252 PR ipa/69241
15253 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15254 type by reference, force lhs on the call.
15255
15256 PR ipa/68672
15257 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15258 Compute retval and retbnd early in all cases if split_part_return_p
15259 and return_bb is not EXIT. Remove all clobber stmts and reset
15260 all debug stmts that refer to SSA_NAMEs defined in split part,
15261 except if it is retval, in that case replace the old retval with the
15262 lhs of the call to the split part.
15263
15264 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15265
15266 revert:
15267 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15268
15269 PR middle-end/66726
15270 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15271 whose result is used in PHI.
15272 (maybe_optimize_range_tests): Likewise.
15273 (final_range_test_p): Likweise.
15274
15275 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15276
15277 PR middle-end/66726
15278 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15279 whose result is used in PHI.
15280 (maybe_optimize_range_tests): Likewise.
15281 (final_range_test_p): Likweise.
15282
15283 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15284
15285 * cgraph.c: Spelling fixes - behaviour -> behavior and
15286 neighbour -> neighbor.
15287 * target.def: Likewise.
15288 * sel-sched.c: Likewise.
15289 * config/mips/mips.c: Likewise.
15290 * config/arc/arc.md: Likewise.
15291 * config/arm/cortex-a57.md: Likewise.
15292 * config/arm/arm.c: Likewise.
15293 * config/arm/neon.md: Likewise.
15294 * config/arm/arm-c.c: Likewise.
15295 * config/vms/vms-c.c: Likewise.
15296 * config/s390/s390.c: Likewise.
15297 * config/i386/znver1.md: Likewise.
15298 * config/i386/i386.c: Likewise.
15299 * config/ia64/hpux-unix2003.h: Likewise.
15300 * config/msp430/msp430.md: Likewise.
15301 * config/rx/rx.c: Likewise.
15302 * config/rx/rx.md: Likewise.
15303 * config/aarch64/aarch64-simd.md: Likewise.
15304 * config/aarch64/aarch64.c: Likewise.
15305 * config/nvptx/nvptx.c: Likewise.
15306 * config/bfin/bfin.c: Likewise.
15307 * config/cris/cris.opt: Likewise.
15308 * config/rs6000/rs6000.c: Likewise.
15309 * target.h: Likewise.
15310 * spellcheck.c: Likewise.
15311 * ira-build.c: Likewise.
15312 * tree-inline.c: Likewise.
15313 * builtins.c: Likewise.
15314 * lra-constraints.c: Likewise.
15315 * explow.c: Likewise.
15316 * hwint.h: Likewise.
15317 * targhooks.c: Likewise.
15318 * tree-vect-data-refs.c: Likewise.
15319 * expr.c: Likewise.
15320 * doc/tm.texi: Likewise.
15321 * doc/extend.texi: Likewise.
15322 * doc/install.texi: Likewise.
15323 * doc/md.texi: Likewise.
15324 * tree-ssa-tail-merge.c: Likewise.
15325 * sched-int.h: Likewise.
15326 * match.pd: Likewise.
15327 * sched-ebb.c: Likewise.
15328 * target.def (omit_struct_return_reg): Likewise.
15329 * gimple-ssa-isolate-paths.c: Likewise.
15330 (find_implicit_erroneous_behaviour): Renamed to...
15331 (find_implicit_erroneous_behavior): ... this.
15332 (find_explicit_erroneous_behaviour): Renamed to...
15333 (find_explicit_erroneous_behavior): ... this.
15334 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15335
15336 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15337
15338 PR rtl-optimization/64682
15339 PR rtl-optimization/69567
15340 PR rtl-optimization/69737
15341 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15342 in I2 as well, just lose it.
15343
15344 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15345
15346 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15347 New variable.
15348 (aarch64_last_printed_tune_string): Likewise.
15349 (aarch64_declare_function_name): Only output .arch assembler
15350 directive if it will be different from the previously output
15351 directive. Same for .tune comment but only if -dA is set.
15352 (aarch64_start_file): New function.
15353 (TARGET_ASM_FILE_START): Define.
15354
15355 2016-02-11 David Malcolm <dmalcolm@redhat.com>
15356
15357 PR plugins/69758
15358 * Makefile.in (PLUGIN_HEADERS): Add params.list.
15359
15360 2016-02-11 Jakub Jelinek <jakub@redhat.com>
15361
15362 PR target/65313
15363 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15364 -Wmaybe-uninitialized warning.
15365
15366 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
15367
15368 PR target/69713
15369 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15370
15371 2016-02-11 Richard Biener <rguenther@suse.de>
15372
15373 PR rtl-optimization/69291
15374 * ifcvt.c (noce_try_store_flag_constants): Do not allow
15375 subexpressions affected by changing the result.
15376
15377 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
15378
15379 PR target/69148
15380 * lra-constraints.c (curr_insn_transform): Find in/out operands
15381 for secondary memory moves. Update dups.
15382
15383 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15384
15385 PR tree-optimization/69652
15386 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15387 to nested loop, did source re-formatting, skip debug statements,
15388 add check on statement with volatile operand, remove dead scalar
15389 statements.
15390
15391 2016-02-10 Jakub Jelinek <jakub@redhat.com>
15392 Patrick Palka <ppalka@gcc.gnu.org>
15393
15394 PR ipa/69241
15395 PR c++/69649
15396 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15397 calls if the return type is TREE_ADDRESSABLE.
15398 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15399 * ipa-split.c (split_function): Fix doubled "we" in comment.
15400 Use void return type for the split part even if
15401 !split_point->split_part_set_retval.
15402
15403 2016-02-10 Bin Cheng <bin.cheng@arm.com>
15404
15405 PR tree-optimization/68021
15406 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15407 when computing the value of biv cand by itself.
15408
15409 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15410
15411 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15412 (cortexa57_tunings): Likewise.
15413 (cortexa72_tunings): Likewise.
15414 (arch_macro_fusion_pair_p): Add support for AES fusion.
15415 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15416 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15417 Allow virtual registers before reload so early scheduling works.
15418 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15419 correct latency and pipeline.
15420 (cortex_a57_crypto_complex): Likewise.
15421 (cortex_a57_crypto_xor): Likewise.
15422 (define_bypass): Add AES bypass.
15423
15424 2016-02-10 Richard Biener <rguenther@suse.de>
15425
15426 PR tree-optimization/69726
15427 * passes.def: Add DCE pass before late uninit.
15428 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15429 really fixup if-conversions job.
15430
15431 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15432
15433 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15434 (arm_cortex_a57_tune): Likewise.
15435 (aarch_macro_fusion_pair_p): Add support for AES fusion.
15436 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15437
15438 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
15439
15440 * timevar.def (TV_PHASE_DBGINFO): Delete.
15441 (TV_PHASE_CHECK_DBGINFO): Likewise.
15442 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15443
15444 2016-02-10 Richard Biener <rguenther@suse.de>
15445
15446 PR tree-optimization/69719
15447 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15448 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15449
15450 2016-02-09 Andrew Pinski <apinski@cavium.com>
15451
15452 PR tree-opt/69282
15453 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15454 get_vcond_mask_icode returns false.
15455
15456 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15457
15458 PR target/68404
15459 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15460 an ADDIS that adds a pointer to a large constant that sets the
15461 upper16 bits with a load operation.
15462
15463 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15464
15465 PR target/68532
15466 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15467 order.
15468 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15469 endian.
15470 (vzipq_s16): Likewise.
15471 (vzipq_s32): Likewise.
15472 (vzipq_f32): Likewise.
15473 (vzipq_u8): Likewise.
15474 (vzipq_u16): Likewise.
15475 (vzipq_u32): Likewise.
15476 (vzipq_p8): Likewise.
15477 (vzipq_p16): Likewise.
15478
15479 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15480
15481 PR target/68532
15482 * config/arm/arm.c (neon_endian_lane_map): New function.
15483 (neon_vector_pair_endian_lane_map): New function.
15484 (arm_evpc_neon_vuzp): Allow for big endian lane order.
15485 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15486 endian.
15487 (vuzpq_s16): Likewise.
15488 (vuzpq_s32): Likewise.
15489 (vuzpq_f32): Likewise.
15490 (vuzpq_u8): Likewise.
15491 (vuzpq_u16): Likewise.
15492 (vuzpq_u32): Likewise.
15493 (vuzpq_p8): Likewise.
15494 (vuzpq_p16): Likewise.
15495
15496 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
15497
15498 PR target/69634
15499 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15500 debug insns.
15501
15502 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
15503
15504 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15505 truncate const_int operand 1 to QImode.
15506
15507 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
15508
15509 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15510 corresponding to an abnormal edge.
15511
15512 2016-02-09 Tom de Vries <tom@codesourcery.com>
15513
15514 PR tree-optimization/69599
15515 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15516 function.
15517 (find_func_aliases_for_builtin_call, find_func_clobbers)
15518 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
15519 partition.
15520
15521 2016-02-09 Richard Biener <rguenther@suse.de>
15522
15523 PR tree-optimization/69715
15524 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15525 LHS on calls as non-rewritable.
15526
15527 2016-02-09 Tom de Vries <tom@codesourcery.com>
15528
15529 PR lto/69707
15530 * lto-wrapper.c (append_diag_options): New function.
15531 (compile_offload_image): Call append_diag_options.
15532
15533 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15534
15535 PR other/69722
15536 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15537 Minor copy-edit to fix verb tenses.
15538
15539 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15540
15541 PR tree-optimization/69209
15542 * ipa-split.c (split_function): If split part is not
15543 returning retval, retval has gimple type but is not
15544 gimple value, force it into a SSA_NAME first.
15545
15546 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15547
15548 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15549 outdated section.
15550
15551 2016-02-08 Jason Merrill <jason@redhat.com>
15552
15553 PR c++/69631
15554 * convert.c (convert_to_integer_1): Check dofold on truncation
15555 distribution.
15556 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15557 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15558 Rename from *_nofold.
15559 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15560 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15561
15562 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15563
15564 PR target/60410
15565 * tree.c (build_common_tree_nodes): Remove short_double argument.
15566 All callers changed.
15567 * tree.h (build_common_tree_nodes): Adjust declaration.
15568 * doc/invoke.texi (-fshort-double): Remove documentation.
15569 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15570 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15571 * lto-wrapper.c (merge_and_complain, append_compiler_options)
15572 (append_linker_options): Don't handle OPT_fshort_double.
15573
15574 PR rtl-optimization/68730
15575 * lra-remat.c (insn_to_cand_activation): New static variable.
15576 (lra_remat): Allocate and free it.
15577 (create_cand): New arg activation. Initialize a field in
15578 insn_to_cand_activation if it is nonnull.
15579 (create_cands): Pass the activation insn to create_cand when making
15580 a candidate involving an output reload. Reorganize code a little.
15581 (do_remat): Keep track of active status of candidates in a separate
15582 bitmap.
15583
15584 2016-02-08 Richard Biener <rguenther@suse.de>
15585
15586 PR tree-optimization/69719
15587 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15588 Properly use absolute of the difference of the two offsets to
15589 compare or adjust the segment length.
15590
15591 2016-02-08 Richard Biener <rguenther@suse.de>
15592 Jeff Law <law@redhat.com>
15593
15594 PR target/68273
15595 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15596 types for anonymous SSA names.
15597
15598 2016-02-08 Richard Biener <rguenther@suse.de>
15599
15600 PR rtl-optimization/69274
15601 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15602
15603 2016-02-08 Jeff Law <law@redhat.com>
15604
15605 PR tree-optimization/65917
15606 * tree-ssa-dom.c (record_temporary_equivalences): Record both
15607 equivalences from if (x == y) style conditionals.
15608 (loop_depth_of_name): Remove.
15609 (record_equality): Remove loop depth check.
15610 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15611 (const_and_copies::record_const_or_copy_raw): New member function.
15612 * tree-ssa-scopedtables.c
15613 (const_and_copies::record_const_or_copy_raw): New, factored out of
15614 (const_and_copies::record_const_or_copy): Call new member function.
15615
15616 2016-02-05 Jeff Law <law@redhat.com>
15617
15618 PR tree-optimization/68541
15619 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15620 (count_stmts_in_block): New function.
15621 (poor_ifcvt_candidate_code): Likewise.
15622 (is_feasible_trace): Add some heuristics to determine when path
15623 splitting is profitable.
15624 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15625 is a diamond with a single exit.
15626
15627 2016-02-05 Martin Sebor <msebor@redhat.com>
15628
15629 PR c++/69662
15630 * doc/invoke.texi: Update -Wplacement-new to take an optional
15631 argument.
15632
15633 2016-02-06 Richard Henderson <rth@redhat.com>
15634
15635 PR c/69643
15636 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15637 out of non-standard address spaces.
15638
15639 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15640
15641 PR rtl-optimization/69691
15642 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15643
15644 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15645
15646 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15647 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15648 (*ieee128_mfvsrd_64bit): Likewise.
15649 (*ieee128_mfvsrd_32bit): Likewise.
15650
15651 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
15652
15653 PR target/69369
15654 Revert r232560:
15655 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
15656
15657 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15658 instrumented_version.
15659
15660 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
15661
15662 * doc/invoke.texi (Optimize Options): In table of --param options
15663 rename second occurrence of tracer-min-branch-ratio to
15664 tracer-min-branch-probability, rename
15665 tracer-min-branch-ratio-feedback to
15666 tracer-min-branch-probability-feedback and clarify description,
15667 rename sched-spec-state-edge-prob-cutoff to
15668 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15669 to selsched-insns-to-rename, rename lto-minpartition to
15670 lto-min-partition, delete reorder-blocks-duplicate and
15671 reorder-blocks-duplicate-feedback.
15672
15673 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15674
15675 * config/s390/s390.c (s390_register_info_set_ranges): Remove
15676 superfluous loops.
15677
15678 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15679
15680 * doc/extend.texi: S/390: Correct some typos.
15681
15682 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15683
15684 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15685
15686 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15687
15688 PR target/69625
15689 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15690 (s390_register_info_gprtofpr): Use new macros above.
15691 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15692 its name.
15693 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15694 its name. Adjust restore and save gpr ranges.
15695 (s390_register_info_set_ranges): New function.
15696 (s390_register_info): Use new macros above. Call
15697 s390_register_info_set_ranges.
15698 (s390_optimize_register_info): Likewise.
15699 (s390_hard_regno_rename_ok): Use new macros.
15700 (s390_hard_regno_scratch_ok): Likewise.
15701 (s390_emit_epilogue): Likewise.
15702 (s390_can_use_return_insn): Likewise.
15703 (s390_optimize_prologue): Likewise.
15704 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15705
15706 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15707
15708 PR bootstrap/69677
15709 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15710 alignment fixes.
15711 (ix86_option_override_internal): Disable TARGET_STV even for
15712 -m{incoming,preferred}-stack-boundary=3.
15713
15714 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15715
15716 * config.gcc: Mark deprecated rtems targets as obsolete.
15717
15718 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
15719
15720 PR rtl-optimization/64682
15721 PR rtl-optimization/69567
15722 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15723 before I2 only if the register is both used and set in I2.
15724
15725 2016-02-04 DJ Delorie <dj@redhat.com>
15726
15727 * config/msp430/msp430.c (msp430_start_function): Add function type.
15728
15729 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15730
15731 PR fortran/69368
15732 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15733
15734 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
15735
15736 PR rtl-optimization/69577
15737 Revert:
15738 2015-10-29 Richard Henderson <rth@redhat.com>
15739
15740 PR target/68124
15741 PR rtl-opt/67609
15742 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15743 sse check to the exact conditions of PR 67609.
15744
15745 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15746
15747 PR target/69667
15748 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15749 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15750 not allowed into the traditional Altivec registers.
15751 (movtd_64bit_nodm): Likewise.
15752 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15753
15754 2016-02-04 David Malcolm <dmalcolm@redhat.com>
15755
15756 * config/aarch64/cortex-a57-fma-steering.c
15757 (aarch64_register_fma_steering): Remove "static" from arguments
15758 to register_pass.
15759
15760 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
15761
15762 PR target/69619
15763 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15764 twice when complex.
15765
15766 2016-02-04 Mike Frysinger <vapier@gentoo.org>
15767
15768 * doc/invoke.texi: Delete -mno-fma4.
15769
15770 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
15771
15772 PR rtl-optimization/69577
15773 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15774 (find_subregs_of_mode): Update accordingly. Iterate over partial
15775 definitions.
15776
15777 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
15778
15779 * config/arm/arm-protos.h (neon_reinterpret): Remove.
15780 * config/arm/arm.c (neon_reinterpret): Remove.
15781 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15782 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15783 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15784 vreinterpretti): Remove.
15785 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15786 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15787 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15788 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15789 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15790 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15791 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15792 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15793 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15794 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15795 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15796 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15797 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15798 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15799 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15800 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15801 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15802 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15803 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15804 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15805 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15806 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15807 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15808 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15809 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15810 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15811 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15812 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15813 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15814 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15815 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15816 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15817 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15818 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15819 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15820 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15821 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15822 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15823 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15824 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15825 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15826 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15827 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15828 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15829 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15830 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15831 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15832 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15833 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15834 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15835 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15836 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15837 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15838 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15839 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15840 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15841 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15842 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15843 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15844 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15845 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15846 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15847 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15848 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15849 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15850 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15851 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15852 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15853 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15854 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15855 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15856 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15857 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15858 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15859 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15860 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15861 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15862 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15863 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15864 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15865 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15866 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15867 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15868 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15869 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15870 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15871 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15872 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15873 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15874 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15875 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15876 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15877 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15878 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15879 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15880 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15881 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15882 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15883 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15884 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15885 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15886 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15887 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15888
15889 2016-02-04 Martin Liska <mliska@suse.cz>
15890
15891 PR sanitizer/69276
15892 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15893 that are gimple_store_p.
15894 (maybe_instrument_call): Likewise.
15895
15896 2016-02-04 Bin Cheng <bin.cheng@arm.com>
15897
15898 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15899 register scaling out of memory reference and comment why.
15900
15901 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15902
15903 PR target/65932
15904 PR target/67714
15905 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15906 folding the source of a SET.
15907
15908 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15909
15910 PR target/65932
15911 PR target/67714
15912 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15913 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15914
15915 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
15916
15917 PR target/65932
15918 PR target/67714
15919 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15920 HImode.
15921
15922 2016-02-04 Christian Bruel <christian.bruel@st.com>
15923
15924 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15925 * config/arm/arm.c (arm_set_current_function): Likewise.
15926
15927 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15928 Ilya Enkovich <enkovich.gnu@gmail.com>
15929 H.J. Lu <hongjiu.lu@intel.com>
15930
15931 PR target/69454
15932 * config/i386/i386.c (convert_scalars_to_vector): Remove
15933 stack alignment fixes.
15934 (ix86_option_override_internal): Disable TARGET_STV if stack
15935 might not be aligned enough.
15936 (ix86_minimum_alignment): Assert that TARGET_STV is false.
15937
15938 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
15939
15940 * config/i386/x86-tune.def: Disable default prefetching
15941 for -march=znver1.
15942
15943 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15944 Vladimir Makarov <vmakarov@redhat.com>
15945
15946 PR target/69461
15947 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15948 in validating fused toc addresses.
15949
15950 2016-02-03 Jakub Jelinek <jakub@redhat.com>
15951
15952 PR c/69627
15953 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15954 range->m_caret fields if range->m_show_caret_p is false.
15955
15956 PR target/69644
15957 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15958 Force oldval into register if it does not satisfy reg_or_short_operand
15959 predicate. Fix up formatting.
15960
15961 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
15962 Alexandre Oliva <aoliva@redhat.com>
15963
15964 PR target/69461
15965 * lra-constraints.c (simplify_operand_subreg): Check additionally
15966 address validity after potential reloading.
15967 (process_address_1): Check insns validity. In case of failure do
15968 nothing.
15969
15970 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
15971
15972 PR target/69118
15973 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15974 Fix target.
15975
15976 2016-02-02 Jakub Jelinek <jakub@redhat.com>
15977
15978 * wide-int.cc (canonize_uhwi): New function.
15979 (wi::divmod_internal): Use it.
15980
15981 2016-02-02 James Norris <jnorris@codesourcery.com
15982
15983 * gimplify.c (omp_notice_variable): Add usage check.
15984
15985 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
15986
15987 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15988 like LE, GE, LT, GT when emitting relational operator.
15989
15990 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
15991
15992 * ira-costs.c (find_costs_and_classes): Add extra argument.
15993 * target.def (ira_change_pseudo_allocno_class): Add parameter.
15994 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15995 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
15996 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
15997 Add best_class parameter, and return it if not ALL_REGS.
15998 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
15999 Add parameter.
16000 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16001 Update target hook.
16002
16003 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16004
16005 * config/aarch64/aarch64.c
16006 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16007 (aarch64_ira_change_pseudo_allocno_class): New function.
16008
16009 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16010
16011 PR target/67032
16012 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16013
16014 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16015
16016 * config/avr/avr.c (avr_option_override): Set
16017 PARAM_ALLOW_STORE_DATA_RACES to 1.
16018
16019 2016-02-02 Richard Biener <rguenther@suse.de>
16020
16021 PR tree-optimization/69595
16022 * match.pd: Add range test simplifications to true/false.
16023
16024 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16025
16026 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16027 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16028 instead.
16029
16030 2016-02-02 Richard Biener <rguenther@suse.de>
16031
16032 PR tree-optimization/69606
16033 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16034 info on the result before moving a stmt.
16035
16036 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16037
16038 PR middle-end/68542
16039 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16040 branch with vector comparison.
16041 * config/i386/sse.md (VI48_AVX): New mode iterator.
16042 (define_expand "cbranch<mode>4): Add support for conditional branch
16043 with vector comparison.
16044 * tree-vect-loop.c (optimize_mask_stores): New function.
16045 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16046 has_mask_store field of vect_info.
16047 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16048 vectorized loops having masked stores after vec_info destroy.
16049 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16050 correspondent macros.
16051 (optimize_mask_stores): Add prototype.
16052
16053 2016-02-02 Alan Modra <amodra@gmail.com>
16054
16055 PR target/69548
16056 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16057 allow subregs.
16058
16059 2016-02-02 Alan Modra <amodra@gmail.com>
16060
16061 PR target/68662
16062 * config/rs6000/rs6000.c (need_toc_init): New var, set it
16063 whenever toc_label_name used.
16064 (rs6000_file_start): Don't set up toc section here,
16065 (rs6000_output_function_epilogue): do so here instead,
16066 (rs6000_xcoff_file_start): and here.
16067 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16068 (load_toc_aix_di): Likewise.
16069
16070 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16071
16072 PR rtl-optimization/69592
16073 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16074 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16075 (num_sign_bit_copies_binary_arith_p): New inline function.
16076 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16077
16078 2016-02-01 Jeff Law <law@redhat.com>
16079
16080 PR tree-optimization/69580
16081 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16082 * tree-ssa-threadbackward.c
16083 (fsm_find_control_statement_thread_paths): Do not try to walk
16084 through large PHI nodes.
16085
16086 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16087
16088 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16089 when count is incremented above limit, don't analyze further
16090 insns afterwards.
16091
16092 * omp-low.c (oacc_parse_default_dims): Avoid
16093 -Wsign-compare warning, make sure value fits into int
16094 rather than just unsigned int.
16095
16096 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16097
16098 PR tree-optimization/67921
16099 * fold-const.c (split_tree): New parameters. Convert pointer
16100 type variable part to proper type before negating.
16101 (fold_binary_loc): Pass new arguments to split_tree.
16102
16103 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16104
16105 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16106 (nvptx_goacc_validate_dims): Extend to handle global defaults.
16107 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16108 * doc/tm.texti: Rebuilt.
16109 * doc/invoke.texi (fopenacc-dim): Document.
16110 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16111 (append_compiler_options): Likewise.
16112 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16113 (oacc_parse_default_dims): New.
16114 (oacc_validate_dims): Add USED arg. Select non-unity default when
16115 possible.
16116 (oacc_loop_fixed_partitions): Return mask of used partitions.
16117 (oacc_loop_auto_partitions): Emit dump info.
16118 (oacc_loop_partition): Return mask of used partitions.
16119 (execute_oacc_device_lower): Parse default dimension arg. Adjust
16120 loop partitioning and validation calls.
16121
16122 2016-02-01 Richard Biener <rguenther@suse.de>
16123
16124 PR middle-end/69556
16125 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16126
16127 2016-02-01 Richard Biener <rguenther@suse.de>
16128
16129 PR tree-optimization/69574
16130 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16131 of asserting return chrec_dont_know.
16132
16133 2016-02-01 Martin Liska <mliska@suse.cz>
16134
16135 * mem-stats-traits.h: Add copyright header.
16136 * mem-stats.h: Likewise.
16137
16138 2016-02-01 Richard Biener <rguenther@suse.de>
16139
16140 PR tree-optimization/69579
16141 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16142 Do not propagate through abnormal PHI results.
16143
16144 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16145
16146 * postreload.c (reload_cse_simplify): Remove dead code.
16147
16148 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16149
16150 PR rtl-optimization/69570
16151 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16152 if there is more than one set, not if there is a single set.
16153
16154 2016-02-01 Richard Henderson <rth@redhat.com>
16155
16156 PR rtl-opt/69535
16157 * combine.c (make_compound_operation): When looking through a
16158 subreg, make sure to re-extend to the width of the outer mode.
16159
16160 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16161
16162 PR tree-optimization/69546
16163 * wide-int.cc (wi::divmod_internal): For unsigned division
16164 where both operands fit into uhwi, if o1 is 1 and o0 has
16165 msb set, if divident_prec is larger than bits per hwi,
16166 clear another quotient word and return 2 instead of 1.
16167 Similarly for remainder with msb in HWI set, if dividend_prec
16168 is larger than bits per hwi.
16169
16170 2016-01-29 Martin Jambor <mjambor@suse.cz>
16171
16172 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16173 Use short lowercase names.
16174 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
16175 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16176 acq_rel one. Protect warning agains segfaults if
16177 get_memory_order_name returns NULL.
16178 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16179 with release semantics. Do not warn if get_memory_order already did.
16180 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16181 semantics. Fix check for relaxed or acquire semantics. Do not warn
16182 if get_memory_order already did.
16183
16184 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16185
16186 * doc/install.texi: Document that isl-0.16 is supported.
16187
16188 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16189
16190 PR target/69299
16191 * config/i386/constraints.md (Bm): Describe as special memory
16192 constraint.
16193 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16194 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16195 * genpreds.c (struct constraint_data): Add is_special_memory.
16196 (have_special_memory_constraints, special_memory_start): New
16197 static vars.
16198 (special_memory_end): Ditto.
16199 (add_constraint): Add new arg is_special_memory. Add code to
16200 process its true value. Update have_special_memory_constraints.
16201 (process_define_constraint): Pass the new arg.
16202 (process_define_register_constraint): Ditto.
16203 (choose_enum_order): Process special memory.
16204 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16205 function insn_extra_special_memory_constraint.
16206 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16207 * gensupport.c (process_rtx): Process
16208 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16209 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16210 * ira-lives.c (single_reg_class): Use
16211 insn_extra_special_memory_constraint.
16212 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16213 * lra-constraints.c (process_alt_operands): Ditto.
16214 (curr_insn_transform): Use insn_extra_special_memory_constraint.
16215 * recog.c (asm_operand_ok, preprocess_constraints): Process
16216 CT_SPECIAL_MEMORY.
16217 * reload.c (find_reloads): Ditto.
16218 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16219 * stmt.c (parse_input_constraint): Use
16220 insn_extra_special_memory_constraint.
16221
16222 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16223
16224 PR target/69530
16225 * lra-splill.c (lra_final_code_change): Revert r229087 by
16226 removing all sub-registers.
16227
16228 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16229
16230 PR target/65604
16231 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16232
16233 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16234
16235 PR target/69551
16236 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16237 SSE1, copy target into the temporary reg first before recursing
16238 on it.
16239
16240 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16241
16242 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16243 with vm.
16244
16245 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16246
16247 * ginclude/stdarg.h: Test __cplusplus instead of
16248 __GXX_EXPERIMENTAL_CXX0X__.
16249
16250 2016-01-29 Richard Biener <rguenther@suse.de>
16251
16252 PR tree-optimization/69547
16253 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16254 Do not mark clobbers necessary.
16255 (mark_all_reaching_defs_necessary_1): Likewise.
16256
16257 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16258
16259 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16260 declaration name with %qs and print it in both error messages.
16261 Also fix indentation.
16262
16263 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16264
16265 PR other/69006
16266 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16267 trailing blank line from error message.
16268
16269 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16270
16271 PR c++/69462
16272 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16273 for C++-11.
16274
16275 2016-01-29 Richard Biener <rguenther@suse.de>
16276
16277 PR middle-end/69537
16278 * match.pd: Allow all integral types when simplifying a
16279 widening or sign-changing conversion.
16280
16281 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16282
16283 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16284 back to setting codegen_error to fail codegen.
16285
16286 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16287
16288 PR target/69459
16289 * config/i386/constraints.md (C): Only accept constant zero operand.
16290 (BC): New constraint.
16291 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16292 instead of C constraint.
16293 * doc/md.texi (Machine Constraints): Update description
16294 of C constraint.
16295
16296 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16297
16298 PR target/68400
16299 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16300
16301 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16302
16303 PR middle-end/69542
16304 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16305 non-debug insns.
16306
16307 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16308
16309 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16310 branches if using guessed profile.
16311
16312 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16313
16314 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16315
16316 2016-01-28 Richard Henderson <rth@redhat.com>
16317
16318 PR target/69305
16319 * config/aarch64/aarch64-modes.def (CC_Cmode): New
16320 * config/aarch64/aarch64-protos.h: Update.
16321 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16322 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16323 (aarch64_get_condition_code_1): Handle CC_Cmode.
16324 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16325 (*add<mode>3_compareC_cconly_imm): New.
16326 (*add<mode>3_compareC_cconly): New.
16327 (*add<mode>3_compareC_imm): New.
16328 (add<mode>3_compareC): New.
16329 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16330 to be first. Use aarch64_carry_operation.
16331 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16332 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16333 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16334 (subti3): Use subdi3_compare1.
16335 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16336 (sub<mode>3_compare1): New.
16337 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16338 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16339 (*subsi3_carryin_uxtw): Likewise.
16340 (*ngc<mode>, *ngcsi_uxtw): Likewise.
16341 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16342 * config/aarch64/iterators.md (DWI): New.
16343 * config/aarch64/predicates.md (aarch64_carry_operation): New.
16344 (aarch64_borrow_operation): New.
16345
16346 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16347
16348 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16349 message when isl does not return a valid schedule.
16350
16351 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16352
16353 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16354 Remove comments from class declarations: they are already in the code
16355 close by the defs.
16356
16357 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16358
16359 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16360 codegen_error_p.
16361 (ternary_op_to_tree): Same.
16362 (unary_op_to_tree): Same.
16363 (nary_op_to_tree): Same.
16364 (gcc_expression_from_isl_expr_op): Same.
16365 (gcc_expression_from_isl_expression): Same.
16366 (graphite_create_new_loop): Same.
16367 (graphite_create_new_loop_guard): Same.
16368 (build_iv_mapping): Same.
16369 (graphite_create_new_guard): Same.
16370 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16371 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16372
16373 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16374
16375 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16376 instead of setting codegen_error to fail codegen.
16377
16378 2016-01-28 Jason Merrill <jason@redhat.com>
16379
16380 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16381
16382 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16383
16384 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16385 Remove CONST_INT_P check in CCMP cost calculation.
16386
16387 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16388
16389 * config/aarch64/aarch64.c (generic_vector_cost):
16390 Set vec_permute_cost.
16391 (cortexa57_vector_cost): Likewise.
16392 (exynosm1_vector_cost): Likewise.
16393 (xgene1_vector_cost): Likewise.
16394 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16395 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16396 Add vec_permute_cost entry.
16397
16398 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16399
16400 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16401 immediate as %1.
16402 (add<mode>3_compare0): Likewise.
16403 (addsi3_compare0_uxtw): Likewise.
16404 (add<mode>3nr_compare0): Likewise.
16405 (compare_neg<mode>): Likewise.
16406 (<optab><mode>3): Likewise.
16407
16408 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
16409
16410 * tree-vect-stmts.c (vectorizable_comparison): Add
16411 NULL check for vectype.
16412
16413 2016-01-28 Richard Biener <rguenther@suse.de>
16414
16415 PR tree-optimization/69466
16416 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16417 Account for PHIs we couldn't duplicate.
16418
16419 2016-01-28 Martin Liska <mliska@suse.cz>
16420
16421 PR pch/68758
16422 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16423 instead of ENABLE_VALGRIND_CHECKING.
16424
16425 2016-01-27 Richard Henderson <rth@redhat.com>
16426
16427 PR rtl-opt/69447
16428 * lra-remat.c (subreg_regs): New.
16429 (dump_candidates_and_remat_bb_data): Dump it.
16430 (operand_to_remat): Reject if operand in subreg_regs.
16431 (set_bb_regs): Collect subreg_regs.
16432 (lra_remat): Init and free subreg_regs. Compute
16433 calculate_local_reg_remat_bb_data before create_cands.
16434
16435 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
16436
16437 PR target/68986
16438 * config/i386/i386.c (ix86_update_stack_boundary): Don't
16439 change stack_alignment_needed for __tls_get_addr call.
16440
16441 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
16442
16443 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16444
16445 2016-01-27 Jeff Law <law@redhat.com>
16446
16447 PR tree-optimization/68398
16448 PR tree-optimization/69196
16449 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16450 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16451 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16452 Only count PHIs in the last block in the path. The others will
16453 const/copy propagate away. Add heuristic to allow more irreducible
16454 subloops to be created when it is likely profitable to do so.
16455
16456 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16457 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
16458 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
16459
16460 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16461
16462 PR lto/69254
16463 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16464 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16465 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16466 * tree-streamer-in.c: Include asan.h.
16467 (streamer_get_builtin_tree): For builtins in sanitizer
16468 range call initialize_sanitizer_builtins and retry.
16469
16470 2016-01-27 Ian Lance Taylor <iant@google.com>
16471
16472 * common.opt (fkeep-gc-roots-live): New undocumented option.
16473 * tree-ssa-loop-ivopts.c (add_candidate_1): If
16474 -fkeep-gc-roots-live, skip pointers.
16475 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16476 NULL.
16477
16478 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
16479
16480 PR target/69512
16481 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16482 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16483
16484 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
16485
16486 PR target/68380
16487 * configure.ac: NetBSD provides SSP in its C library.
16488 * configure: Updated.
16489
16490 2016-01-27 Richard Biener <rguenther@suse.de>
16491
16492 PR tree-optimization/69166
16493 * tree-vect-loop.c (vect_is_simple_reduction): Always check
16494 reduction code for commutativity / associativity.
16495
16496 2016-01-27 Martin Jambor <mjambor@suse.cz>
16497
16498 PR tree-optimization/69355
16499 * tree-sra.c (analyze_access_subtree): Correct hole detection when
16500 total_scalarization fails.
16501
16502 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
16503
16504 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16505 power9.
16506
16507 2016-01-27 Christian Bruel <christian.bruel@st.com>
16508
16509 PR target/69245
16510 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16511 Move arm_reset_previous_fndecl and set_target_option_current_node in
16512 the conditional part. Call save_restore_target_globals.
16513 * config/arm/arm.c (arm_set_current_function):
16514 Refactor to better support #pragma target and attribute mix.
16515 Call save_restore_target_globals.
16516 * config/arm/arm-protos.h (save_restore_target_globals): New function.
16517
16518 2016-01-27 Martin Liska <mliska@suse.cz>
16519
16520 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16521 reference for an HSA kernel and its host function.
16522
16523 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16524
16525 PR tree-optimization/69399
16526 * wide-int.h (wi::lrshift): For larger precisions, only
16527 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16528
16529 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16530
16531 * config/arc/predicates.md (proper_comparison_operator): Reject
16532 constant-constant comparison.
16533
16534 2016-01-26 Tom de Vries <tom@codesourcery.com>
16535
16536 PR tree-optimization/69110
16537 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16538 DR_NUM_DIMENSIONS == 0.
16539
16540 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16541 Sebastian Pop <s.pop@samsung.com>
16542
16543 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16544 isl_ast_op_cond and isl_ast_op_select.
16545 (gcc_expression_from_isl_expr_op): Same.
16546
16547 2016-01-26 Jason Merrill <jason@redhat.com>
16548
16549 PR c++/68782
16550 * tree.c (recompute_constructor_flags): Split out from
16551 build_constructor.
16552 (verify_constructor_flags): New.
16553 * tree.h: Declare them.
16554
16555 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16556
16557 PR rtl-optimization/69217
16558 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16559 are no TYPE_FIELDS set for the record type.
16560
16561 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16562
16563 PR target/68662
16564 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16565 toc_label_name unconditionally.
16566 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16567 SYMBOL_REF string. Use toc_label_name instead of constructing
16568 LCTOC1.
16569 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16570 constructing LCTOC1.
16571
16572 2016-01-26 Martin Sebor <msebor@redhat.com>
16573
16574 PR other/69477
16575 * doc/extend.texi (Common Type Attributes): Move text that talks about
16576 attribute packed from attribute aligned to the section discussing
16577 the former attribute for clarity.
16578
16579 2016-01-26 Richard Henderson <rth@redhat.com>
16580
16581 PR middle-end/60908
16582 * trans-mem.c (tm_region_init): Mark entry block as visited.
16583
16584 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16585
16586 PR other/69006
16587 * diagnostic-show-locus.c (layout::print_source_line): Replace
16588 call to pp_newline with call to layout::print_newline.
16589 (layout::print_annotation_line): Likewise.
16590 (layout::move_to_column): Likewise.
16591 (layout::print_any_fixits): After printing any fixits, print a
16592 trailing newline, if necessary.
16593 (layout::print_newline): New method, resetting any colorization
16594 before a newline.
16595 (diagnostic_show_locus): Move the pp_newline to before the
16596 early bailout. Remove dummy block enclosing the layout instance.
16597 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16598 of pp_newline_and_flush with pp_flush.
16599 (diagnostic_append_note): Delete use of pp_newline.
16600 (diagnostic_append_note_at_rich_loc): Delete.
16601 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16602 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16603 when newline characters are added to the buffer.
16604
16605 2016-01-26 Michael Matz <matz@suse.de>
16606
16607 * configure.ac (ac_cv_std_swap_in_utility): New test.
16608 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16609 * configure: Regenerate.
16610 * config.in: Regenerate.
16611
16612 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16613
16614 * config/arc/arc.md (cstoresi4): Force operand into register.
16615 (arcset<code>): Fix predicate.
16616 (arcsetltu): Likewise.
16617 (arcsetgeu): Likewise.
16618 (arcsethi): Likewise.
16619 (arcsetls): Likewise.
16620
16621 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16622
16623 PR tree-optimization/69483
16624 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16625 if base has error_mark_node type.
16626
16627 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16628
16629 PR target/68620
16630 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16631 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16632 New helper macros.
16633 (vget_lane_f16): Handle big-endian.
16634 (vgetq_lane_f16): Likewise.
16635 (vset_lane_f16): Likewise.
16636 (vsetq_lane_f16): Likewise.
16637 * config/arm/iterators.md (VQXMOV): Add V8HF.
16638 (VDQ): Add V4HF and V8HF.
16639 (V_reg): Handle V4HF and V8HF.
16640 (Is_float_mode): Likewise.
16641 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16642 neon_vdup_nv8hf): New patterns.
16643 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16644 Use VD_LANE iterator.
16645 (neon_vld1_dup<mode>): Use VQ2 iterator.
16646
16647 2016-01-26 Nathan Sidwell <nathan@acm.org>
16648
16649 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16650 (set_oacc_fn_attrib): Add IS_KERNEL arg.
16651 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16652 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16653 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16654 (oacc_validate_dims): Add LEVEL arg, don't return level.
16655 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16656 oacc_validate_dims.
16657 (execute_oacc_device_lower): Adjust, add more dump output.
16658 * tree-ssa-loop.c (gate_oacc_kernels): Use
16659 oacc_fn_attrib_kernels_p.
16660 * tree-parloops.c (create_parallel_loop): Adjust
16661 set_oacc_fn_attrib call.
16662
16663 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16664
16665 PR lto/69254
16666 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16667 (append_compiler_options): Handle -fcilkplus.
16668 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16669
16670 2016-01-26 Nick Clifton <nickc@redhat.com>
16671
16672 PR target/66655
16673 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16674 been marked as DECL_ONE_ONLY but we do not the means to make it
16675 so, then do not allow it to bind locally.
16676
16677 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16678
16679 PR lto/69254
16680 * opts.h (parse_sanitizer_options): New prototype.
16681 * opts.c (sanitizer_opts): New array.
16682 (parse_sanitizer_options): New function.
16683 (common_handle_option): Use parse_sanitizer_options.
16684
16685 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
16686
16687 PR target/68986
16688 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16689 alignment adjustment to ...
16690 (ix86_update_stack_boundary): Here. Don't over-align stack for
16691 __tls_get_addr.
16692 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16693 if __tls_get_addr is called.
16694
16695 2016-01-26 Christian Bruel <christian.bruel@st.com>
16696
16697 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16698
16699 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
16700
16701 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16702
16703 2016-01-26 Richard Biener <rguenther@suse.de>
16704
16705 PR middle-end/69467
16706 * match.pd: Guard X * CST CMP 0 pattern with single_use.
16707
16708 2016-01-26 Richard Biener <rguenther@suse.de>
16709
16710 PR tree-optimization/69452
16711 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16712 (move_computations_dom_walker::before_dom_children): Rename
16713 to ...
16714 (move_computations_worker): This.
16715 (move_computations): Perform an RPO rather than a DOM walk.
16716
16717 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16718
16719 PR target/69442
16720 * combine.c (combine_instructions): For REG_EQUAL note with
16721 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16722 to the underlying register.
16723 * doc/rtl.texi (REG_EQUAL): Document the behavior of
16724 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16725
16726 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
16727
16728 PR target/67896
16729 * config/aarch64/aarch64-builtins.c
16730 (aarch64_init_simd_builtin_types): Do not set structural
16731 equality to __Poly{8,16,64,128}_t types.
16732
16733 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
16734
16735 PR tree-optimization/69400
16736 * wide-int.cc (wi_pack): Take the precision as argument and
16737 perform canonicalization here rather than in the callers.
16738 Use the main loop to handle all full-width HWIs. Add a
16739 zero HWI if in_len isn't a full result.
16740 (wi::divmod_internal): Update accordingly.
16741 (wi::mul_internal): Likewise. Simplify.
16742
16743 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16744 Sebastian Pop <s.pop@samsung.com>
16745
16746 * graphite-poly.c (apply_poly_transforms): Simplify.
16747 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16748 (print_isl_map): Same.
16749 (print_isl_union_map): Same.
16750 (print_isl_schedule): New.
16751 (debug_isl_schedule): New.
16752 * graphite-dependences.c (scop_get_reads): Do not call
16753 isl_union_map_add_map that is undocumented isl functionality.
16754 (scop_get_must_writes): Same.
16755 (scop_get_may_writes): Same.
16756 (scop_get_original_schedule): Remove.
16757 (scop_get_dependences): Do not call isl_union_map_compute_flow that
16758 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
16759 (compute_deps): Remove.
16760 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16761 (debug_schedule_ast): New.
16762 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16763 set_separate_option.
16764 (graphite_regenerate_ast_isl): Add dump.
16765 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16766 from scop->transformed_schedule.
16767 (graphite_regenerate_ast_isl): Add more dump.
16768 * graphite-optimize-isl.c (optimize_isl): Set
16769 scop->transformed_schedule. Check whether schedules are equal.
16770 (apply_poly_transforms): Move here.
16771 * graphite-poly.c (apply_poly_transforms): ... from here.
16772 (free_poly_bb): Static.
16773 (free_scop): Static.
16774 (pbb_number_of_iterations_at_time): Remove.
16775 (print_isl_ast): New.
16776 (debug_isl_ast): New.
16777 (debug_scop_pbb): New.
16778 * graphite-scop-detection.c (print_edge): Move.
16779 (print_sese): Move.
16780 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16781 (build_scop_scattering): Remove.
16782 (create_pw_aff_from_tree): Assert instead of bailing out.
16783 (add_condition_to_pbb): Remove unused code, do not fail.
16784 (add_conditions_to_domain): Same.
16785 (add_conditions_to_constraints): Remove.
16786 (build_scop_context): New.
16787 (add_iter_domain_dimension): New.
16788 (build_iteration_domains): Initialize pbb->iterators.
16789 Call add_conditions_to_domain.
16790 (nested_in): New.
16791 (loop_at): New.
16792 (index_outermost_in_loop): New.
16793 (index_pbb_in_loop): New.
16794 (outermost_pbb_in): New.
16795 (add_in_sequence): New.
16796 (add_outer_projection): New.
16797 (outer_projection_mupa): New.
16798 (add_loop_schedule): New.
16799 (build_schedule_pbb): New.
16800 (build_schedule_loop): New.
16801 (embed_in_surrounding_loops): New.
16802 (build_schedule_loop_nest): New.
16803 (build_original_schedule): New.
16804 (build_poly_scop): Call build_original_schedule.
16805 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16806 (free_poly_dr): Remove.
16807 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
16808 (free_poly_bb): Remove.
16809 (debug_loop_vec): Remove.
16810 (print_isl_ast): Declare.
16811 (debug_isl_ast): Declare.
16812 (scop_do_interchange): Remove.
16813 (scop_do_strip_mine): Remove.
16814 (scop_do_block): Remove.
16815 (flatten_all_loops): Remove.
16816 (optimize_isl): Remove.
16817 (pbb_number_of_iterations_at_time): Remove.
16818 (debug_scop_pbb): Declare.
16819 (print_schedule_ast): Declare.
16820 (debug_schedule_ast): Declare.
16821 (struct scop): Remove schedule. Add original_schedule,
16822 transformed_schedule.
16823 (free_gimple_poly_bb): Remove.
16824 (print_generated_program): Remove.
16825 (debug_generated_program): Remove.
16826 (unify_scattering_dimensions): Remove.
16827 * sese.c (print_edge): ... here.
16828 (print_sese): ... here.
16829 (debug_edge): ... here.
16830 (debug_sese): ... here.
16831 * sese.h (print_edge): Declare.
16832 (print_sese): Declare.
16833 (dump_edge): Declare.
16834 (dump_sese): Declare.
16835
16836 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16837 Sebastian Pop <s.pop@samsung.com>
16838
16839 * Makefile.in: Set ISLVER in site.exp.
16840
16841 2016-01-25 Jakub Jelinek <jakub@redhat.com>
16842
16843 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16844 DECL_VALUE_EXPR of new_var even for the non-array case. Look
16845 through DECL_VALUE_EXPR for expansion.
16846
16847 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16848
16849 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16850 the frame info after reload completed.
16851
16852 2016-01-25 Jeff Law <law@redhat.com>
16853
16854 PR tree-optimization/69196
16855 PR tree-optimization/68398
16856 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16857 tree-ssa-threadupdate.c.
16858 (determine_bb_domination_status): Prototype
16859 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16860 (determine_bb_domination_status): No longer static.
16861 (valid_jump_thread_path): Remove code to detect characteristics
16862 of the jump thread path not associated with correctness.
16863 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16864 Correct test for thread path length. Count PHIs for real operands as
16865 statements that need to be copied. Do not count ASSERT_EXPRs.
16866 Look at all the blocks in the thread path. Compute and selectively
16867 filter thread paths based on threading through the latch, threading
16868 a multiway branch or crossing a multiway branch.
16869
16870 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16871
16872 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
16873 decl with __attribute__ ((unused)) annotation.
16874
16875 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
16876
16877 PR target/69421
16878 * tree-vect-stmts.c (vectorizable_condition): Check vectype
16879 of operands is compatible with a statement vectype.
16880
16881 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
16882
16883 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16884 improve wording for mixed storage order support.
16885
16886 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
16887
16888 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16889 (vcvt_u64_f64): Likewise.
16890 (vcvta_s64_f64): Likewise.
16891 (vcvta_u64_f64): Likewise.
16892 (vcvtm_s64_f64): Likewise.
16893 (vcvtm_u64_f64): Likewise.
16894 (vcvtn_s64_f64): Likewise.
16895 (vcvtn_u64_f64): Likewise.
16896 (vcvtp_s64_f64): Likewise.
16897 (vcvtp_u64_f64): Likewise.
16898
16899 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
16900
16901 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16902 (arc_init): Check validity mll64 option.
16903 (arc_save_restore): Use double load/store instruction.
16904 (arc_expand_movmem): Likewise.
16905 (arc_split_move): Don't split if we have double load/store
16906 instructions. Returns a boolean.
16907 (arc_process_double_reg_moves): Change function to return boolean
16908 instead of a sequence of instructions.
16909 (arc_dwarf_register_span): New function.
16910 * config/arc/arc-protos.h (arc_split_move): Change prototype.
16911 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16912 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16913 (*movdf_insn): Likewise.
16914 * config/arc/arc.opt (mll64): New option.
16915 * config/arc/predicates.md (even_register_operand): New predicate.
16916 * doc/invoke.texi (ARC Options): Add mll64 documentation.
16917
16918 2016-01-25 Richard Biener <rguenther@suse.de>
16919
16920 PR lto/69393
16921 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16922 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16923 DECL_NAMELESS.
16924 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16925
16926 2016-01-25 Richard Biener <rguenther@suse.de>
16927
16928 PR tree-optimization/69376
16929 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16930 flag.
16931 (VN_INFO_ANTI_RANGE_P): New inline.
16932 (VN_INFO_RANGE_TYPE): Likewise.
16933 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16934 SSA_NAME_ANTI_RANGE_P.
16935 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16936 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16937 Properly query VN_INFO_RANGE_TYPE.
16938
16939 2016-01-25 Nick Clifton <nickc@redhat.com>
16940
16941 PR target/66655
16942 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16943
16944 2016-01-23 Tom de Vries <tom@codesourcery.com>
16945
16946 PR tree-optimization/69426
16947 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16948 removed clobber.
16949
16950 2016-01-23 Jakub Jelinek <jakub@redhat.com>
16951
16952 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16953 "the the" with "the" in the comments.
16954 * ipa-devirt.c (build_type_inheritance_graph,
16955 update_type_inheritance_graph): Likewise.
16956 * tree.c (build_function_type_list_1): Likewise.
16957 * cfgloopmanip.c (scale_loop_profile): Likewise.
16958 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16959 * gimple-ssa-split-paths.c
16960 (find_block_to_duplicate_for_splitting_paths): Likewise.
16961 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16962 * expr.c (convert_move): Likewise.
16963 * var-tracking.c (vt_stack_adjustments): Likewise.
16964 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16965 * tree-vrp.c (test_for_singularity): Likewise.
16966
16967 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16968 directly instead of building a temporary tree.
16969
16970 PR bootstrap/69434
16971 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16972 remove <algorithm> include.
16973
16974 2016-01-22 Jakub Jelinek <jakub@redhat.com>
16975
16976 PR target/69432
16977 * config/i386/i386.c: Include dojump.h.
16978 (expand_small_movmem_or_setmem,
16979 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16980 fixes.
16981 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16982 if dynamic_check != -1.
16983
16984 2016-01-21 Jeff Law <law@redhat.com>
16985
16986 PR middle-end/69347
16987 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16988 record_temporary_equivalences. Rewritten to avoid unnecessary calls
16989 into dominated_by_p.
16990 (cprop_into_successor_phis): Avoid unnecessary tests.
16991
16992 2016-01-22 Richard Henderson <rth@redhat.com>
16993
16994 PR target/69416
16995 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
16996 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
16997
16998 2016-01-22 Michael Matz <matz@suse.de>
16999
17000 * system.h (string, algorithm): Include only conditionally.
17001 (new): Include always under C++.
17002 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17003 * final.c (toplevel): Ditto.
17004 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17005 * genconditions.c (write_header): Make gencondmd.c define
17006 INCLUDE_STRING.
17007 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17008
17009 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17010 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17011
17012 2016-01-22 Christian Bruel <christian.bruel@st.com>
17013
17014 PR target/68674
17015 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17016
17017 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17018
17019 PR target/69403
17020 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17021 define_insn_and_split. Ensure operands[1] and operands[0] do not
17022 get assigned the same register.
17023
17024 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17025
17026 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17027
17028 2016-01-22 Christian Bruel <christian.bruel@st.com>
17029
17030 * config/arm/arm-c.c (arm_pragma_target_parse):
17031 Remove warn_builtin_macro_redefined overwrite.
17032
17033 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17034
17035 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17036 flag_non_call_exceptions compatibility.
17037
17038 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17039
17040 PR debug/66668
17041 * dwarf2out.c (add_child_die_after): New function.
17042 (dwarf_qual_info_t): New type.
17043 (dwarf_qual_info): New variable.
17044 (qualified_die_p): New function.
17045 (modified_type_die): For -fdebug-types-section, ensure
17046 canonical order of qualifiers. Put qualified DIEs adjacent
17047 to the corresponding non-qualified type DIE and search there
17048 for existing qualified DIEs.
17049
17050 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17051
17052 * doc/extend.texi (scalar_storage_order type attribute): Document
17053 restriction on type punning and aliasing, and remove future tense.
17054
17055 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17056
17057 PR target/69252
17058 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17059 first stage.
17060
17061 2016-01-21 Jeff Law <law@redhat.com>
17062
17063 PR middle-end/69347
17064 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17065 useless call to record_temporary_equivalences.
17066 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17067 allocate 10 slots in the bb_path vector and let it grow as needed.
17068 (fsm_find_control_statement_thread_paths): Similarly for the next_path
17069 vector.
17070
17071 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17072
17073 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17074 Detangle.
17075 * configure: Regenerate.
17076
17077 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17078
17079 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17080 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17081
17082 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17083
17084 PR middle-end/66178
17085 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17086 drop EXPAND_INITIALIZER.
17087 * rtl.h (contains_symbolic_reference_p): Declare.
17088 * rtlanal.c (contains_symbolic_reference_p): New function.
17089 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17090 a subtraction into a NOT if symbolic constants are involved.
17091
17092 2016-01-21 Anton Blanchard <anton@samba.org>
17093 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17094
17095 PR target/63354
17096 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17097 #define.
17098 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17099 function.
17100
17101 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17102
17103 * config/microblaze/microblaze.c
17104 (get_branch_target): New.
17105 (insert_wic_for_ilb_runout): New.
17106 (insert_wic): New.
17107 (microblaze_machine_dependent_reorg): New.
17108 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17109 * config/microblaze/microblaze.md
17110 (UNSPEC_IPREFETCH): Define.
17111 (iprefetch): New pattern
17112 * config/microblaze/microblaze.opt
17113 (mxl-prefetch): New flag.
17114
17115 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17116
17117 * config/microblaze/microblaze.h
17118 (FIXED_REGISTERS): Update in macro.
17119 (CALL_USED_REGISTERS): Update in macro.
17120
17121 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17122
17123 PR rtl-optimization/68920
17124 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17125 moves.
17126
17127 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17128
17129 PR rtl-optimization/68990
17130 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17131 pseudo instead of inheritance ones.
17132
17133 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17134 Nick Clifton <nickc@redhat.com>
17135
17136 PR target/69129
17137 PR target/69012
17138 * config/mips/mips.c (mips_compute_frame_info): Initialise
17139 args_size and hard_frame_pointer_offset fields of the frame
17140 structure before calling mips_global_pointer.
17141
17142 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17143
17144 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17145 label reference.
17146 * configure: Regenerate.
17147
17148 2016-01-21 Richard Biener <rguenther@suse.de>
17149
17150 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17151
17152 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17153
17154 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17155 to actually emit the .size directive.
17156
17157 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17158 Jakub Jelinek <jakub@redhat.com>
17159
17160 PR target/69187
17161 PR target/65624
17162 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17163 args array size by one to avoid buffer overflow.
17164
17165 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17166
17167 * config/s390/s390.md (pool_section_start): Use switch_to_section
17168 to select proper read-only data section instead of hardcoding
17169 .rodata.
17170 (pool_section_end): Use switch_to_section to match the above.
17171
17172 2016-01-21 Richard Biener <rguenther@suse.de>
17173
17174 PR tree-optimization/69378
17175 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17176 (set_ssa_val_to): Use it for dominance checks taking into
17177 account not executable edges.
17178
17179 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17180
17181 PR c++/69355
17182 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17183 for bitsize instead of GET_MODE_PRECISION (mode).
17184
17185 2016-01-20 Martin Sebor <msebor@redhat.com>
17186
17187 PR c/52291
17188 * extend.texi (__sync Builtins): Clarify the semantics of
17189 __sync_fetch_and_OP built-ins on pointers.
17190 (__atomic Builtins): Same.
17191
17192 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17193 Sebastian Pop <s.pop@samsung.com>
17194
17195 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17196 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17197 (is_valid_rename): Same.
17198 (translate_isl_ast_to_gimple::get_rename): Same.
17199 (translate_isl_ast_to_gimple::rename_all_uses): Same.
17200 (translate_isl_ast_to_gimple::rename_uses): Same.
17201 (get_new_name): Check for close_phi nodes.
17202 (copy_loop_phi_args): Use phi_node_kind.
17203 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17204 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17205
17206 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17207 Sebastian Pop <s.pop@samsung.com>
17208
17209 Revert commit r229783.
17210 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17211 Remove use of parameter_rename_map.
17212 (copy_def): Remove.
17213 (copy_internal_parameters): Remove.
17214 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17215 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17216 (free_sese_info): Do not free parameter_rename_map.
17217 (set_rename): Do not use parameter_rename_map.
17218 (rename_uses): Update call to set_rename.
17219 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17220 * sese.h (parameter_rename_map_t): Remove.
17221 (struct sese_info_t): Remove field parameter_rename_map.
17222
17223 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17224 Sebastian Pop <s.pop@samsung.com>
17225
17226 * graphite-isl-ast-to-gimple.c: Fix comment.
17227 * graphite-scop-detection.c (defined_in_loop_p): New.
17228 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17229 names defined in loop.
17230
17231 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17232 Sebastian Pop <s.pop@samsung.com>
17233
17234 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17235 Discard unstructured if-then-else regions.
17236
17237 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17238 Sebastian Pop <s.pop@samsung.com>
17239
17240 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17241 (cleanup_loop_iter_dom): Remove.
17242 (build_loop_iteration_domains): Remove.
17243 (build_scop_context): Remove.
17244 (build_scop_iteration_domain): Remove.
17245 (add_loop_constraints): New.
17246 (build_iteration_domains): New.
17247 (build_poly_scop): Call build_iteration_domains.
17248
17249 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17250 Sebastian Pop <s.pop@samsung.com>
17251
17252 * graphite-scop-detection.c
17253 (scop_detection::harmful_loop_in_region): Free dom and loops.
17254 (scop_detection::loop_body_is_valid_scop): Free bbs.
17255
17256 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17257 Sebastian Pop <s.pop@samsung.com>
17258
17259 * graphite-scop-detection.c (record_loop_in_sese): New.
17260 (gather_bbs::before_dom_children): Call record_loop_in_sese.
17261 (build_scops): Remove call to build_sese_loop_nests.
17262 * sese.c (sese_record_loop): Remove.
17263 (build_sese_loop_nests): Remove.
17264 (new_sese_info): Remove region->loops.
17265 (free_sese_info): Same.
17266 * sese.h (sese_contains_loop): Same.
17267 (build_sese_loop_nests): Remove.
17268 (sese_contains_loop): Remove.
17269
17270 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17271 Sebastian Pop <s.pop@samsung.com>
17272
17273 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17274 loop_is_valid_in_scop.
17275 (scop_detection::harmful_stmt_in_region): Renamed
17276 harmful_loop_in_region.
17277 Call loop_is_valid_in_scop.
17278
17279 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17280 Sebastian Pop <s.pop@samsung.com>
17281
17282 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17283 isl_ast_node_mark.
17284
17285 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17286 Sebastian Pop <s.pop@samsung.com>
17287
17288 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17289 * graphite.h (struct poly_bb): Remove field is_reduction.
17290 (PBB_IS_REDUCTION): Remove.
17291
17292 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17293 Sebastian Pop <s.pop@samsung.com>
17294
17295 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17296 (add_pdr_constraints): Same.
17297 (scop_get_reads): Same.
17298 (scop_get_must_writes): Same.
17299 (scop_get_may_writes): Same.
17300 (scop_get_original_schedule): Same.
17301 (extend_schedule): Same.
17302 (apply_schedule_on_deps): Same.
17303 (carries_deps): Same.
17304 (compute_deps): Same.
17305 (scop_get_dependences): Same.
17306 * graphite-isl-ast-to-gimple.c
17307 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17308 * graphite-optimize-isl.c (get_schedule_for_band): Same.
17309 (get_schedule_for_band_list): Same.
17310 (get_schedule_map): Same.
17311 (apply_schedule_map_to_scop): Same.
17312 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17313 (build_loop_iteration_domains): Same.
17314 (add_condition_to_pbb): Same.
17315 (add_param_constraints): Same.
17316 (pdr_add_memory_accesses): Same.
17317 (pdr_add_data_dimensions): Same.
17318
17319 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17320
17321 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17322 requirements.
17323
17324 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17325
17326 * common.opt (feliminate-dwarf2-dups): Replace references to
17327 "DWARF 2" with just "DWARF".
17328 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17329 * doc/extend.texi: Likewise.
17330 * doc/cpp.texi: Likewise.
17331 * doc/invoke.texi: Likewise.
17332 (Option Summary): Add -gdwarf to list of Debugging Options.
17333 (Debugging Options): Document -gdwarf.
17334 * doc/contrib.texi: Spell "DWARF" like that.
17335
17336 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17337
17338 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17339 warning. Fix up formatting.
17340
17341 PR middle-end/67653
17342 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17343 attempt to mark memory input operand addressable and
17344 call prepare_gimple_addressable in that case. Don't adjust
17345 input_location for diagnostics, use error_at instead.
17346
17347 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17348
17349 * config/rs6000/ppc-auxv.h: New file.
17350 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17351 (cpu_is): Likewise.
17352 (cpu_supports): Likewise.
17353 * config/rs6000/rs6000.c: include "ppc-auxv.h".
17354 (cpu_is_info): New variable.
17355 (cpu_supports_info): Likewise.
17356 (tcb_verification_symbol): Likewise.
17357 (cpu_builtin_p): Likewise.
17358 (cpu_expand_builtin): New function.
17359 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17360 (rs6000_init_builtins): Likewise.
17361 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17362 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17363 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17364 * configure: Regenerate.
17365 * config.in: Likewise.
17366 * doc/extend.texi (PowerPC Built-in Functions): Document
17367 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17368
17369 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
17370
17371 PR target/68609
17372 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17373 domain check.
17374 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17375 for V4SFmode.
17376
17377 2016-01-20 Richard Henderson <rth@redhat.com>
17378
17379 PR bootstrap/69343
17380 PR bootstrap/69339
17381 PR tree-opt/68964
17382 Revert:
17383 * tree.c (tm_define_builtin): New.
17384 (find_tm_vector_type): New.
17385 (build_tm_vector_builtins): New.
17386 (build_common_builtin_nodes): Call it.
17387
17388 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
17389
17390 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17391 (arm_fp_ok): Likewise.
17392 (arm_fp): Likewise.
17393 (arm_crypto): Likewise.
17394
17395 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17396 Richard Biener <rguenther@suse.de>
17397
17398 PR tree-optimization/69328
17399 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17400 vectors have same number of elements.
17401 (vectorizable_condition): Fix masked version recognition.
17402
17403 2016-01-20 Richard Biener <rguenther@suse.de>
17404
17405 PR tree-optimization/69345
17406 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17407 (VN_INFO_PTR_INFO): Likewise.
17408 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17409 info when it is equal between non-dominating SSA names.
17410 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17411 Make sure to look at original SSA infos.
17412
17413 2016-01-20 Jeff Law <law@redhat.com>
17414
17415 PR target/25114
17416 * config/m68k/predicates.md (pow2_m1_operand): New predicate
17417 extracted from ...
17418 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17419 (pc_or_label_operand): New predicate.
17420 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17421 tests for small integers that are 2^n - 1.
17422
17423 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
17424
17425 * doc/invoke.texi (Options Summary): Add '.' after @xref.
17426
17427 2016-01-19 Jeff Law <law@redhat.com>
17428
17429 PR middle-end/69347
17430 * tree-ssa-threadbackwards.c
17431 (fsm_find_control_statement_thread_paths): Do not try to lookup
17432 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17433
17434 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17435
17436 * doc/lto.texi: Remove text that says only Gold has linker plugin
17437 support.
17438
17439 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
17440
17441 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17442 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17443 the DIE accordingly.
17444 (modified_type_die): Add REVERSE parameter and pass it recursively,
17445 as well as to base_type_die. Adjust presence check accordingly.
17446 (base_type_for_mode): Adjust call to modified_type_die.
17447 (add_type_attribute): Add REVERSE parameter and pass it to
17448 modified_type_die.
17449 (generic_parameter_die): Adjust call to add_type_attribute.
17450 (add_scalar_info): Likewise.
17451 (add_subscript_info): Likewise.
17452 (gen_array_type_die): Likewise.
17453 (gen_descr_array_type_die): Likewise.
17454 (gen_entry_point_die): Likewise.
17455 (gen_enumeration_type_die): Likewise.
17456 (gen_formal_parameter_die): Likewise.
17457 (gen_subprogram_die): Likewise.
17458 (gen_variable_die ): Likewise.
17459 (gen_const_die): Likewise.
17460 (gen_field_die): Likewise.
17461 (gen_pointer_type_die): Likewise.
17462 (gen_reference_type_die): Likewise.
17463 (gen_ptr_to_mbr_type_die): Likewise.
17464 (gen_inheritance_die): Likewise.
17465 (gen_subroutine_type_die): Likewise.
17466 (gen_typedef_die): Likewise.
17467 (force_type_die): Adjust call to modified_type_die.
17468
17469 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
17470
17471 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17472 flow throughout the file. Fix broken link to Objective-C 2.0
17473 documentation.
17474 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17475 errors.
17476
17477 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17478
17479 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17480
17481 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17482
17483 PR ipa/66223
17484 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17485 (maybe_record_node): Record cxa_pure_virtual as the only possible
17486 target if there are not ohter candidates.
17487 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17488
17489 2016-01-19 Richard Biener <rguenther@suse.de>
17490
17491 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17492 (get_memory_order): Likewise.
17493
17494 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
17495
17496 * tree-vect-stmts.c (vectorizable_store): Check
17497 rhs vectype.
17498
17499 2016-01-19 David Malcolm <dmalcolm@redhat.com>
17500
17501 PR jit/68446
17502 * gcc.c (driver::decode_argv): Add call to
17503 init_opts_obstack before init_options_struct.
17504 * opts.c (init_opts_obstack): Remove idempotency.
17505 (init_options_struct): Replace call to init_opts_obstack
17506 with a gcc_assert to verify that it has already been called.
17507 * toplev.c (toplev::main): Add call to init_opts_obstack before
17508 calls to init_options_struct.
17509 (toplev::finalize): Move cleanup of opts_obstack next to
17510 cleanup of save_decoded_options, clearing the latter, and
17511 save_decoded_options_count.
17512
17513 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17514
17515 PR target/69135
17516 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17517 attribute to unconditional. Remove %? from output template.
17518
17519 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17520 Jiong Wang <jiong.wang@arm.com>
17521
17522 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17523 generated from different expand order.
17524
17525 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17526
17527 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17528 Add support for CCMP costing.
17529
17530 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17531
17532 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17533 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17534 (fccmpe<mode>): Likewise.
17535 (fcmp): Rename to fcmp and globalize pattern.
17536 (fcmpe): Likewise.
17537 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17538 (aarch64_gen_ccmp_next): Add FP support.
17539
17540 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17541
17542 * target.def (gen_ccmp_first): Update documentation.
17543 (gen_ccmp_next): Likewise.
17544 * doc/tm.texi (gen_ccmp_first): Update documentation.
17545 (gen_ccmp_next): Likewise.
17546 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17547 expand_ccmp_expr_1. Improve comments.
17548 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17549 (ccmp_ior<mode>): Remove pattern.
17550 (cmp<mode>): Remove expand.
17551 (cmp): Globalize pattern.
17552 (cstorecc4): Use cc_register.
17553 (mov<mode>cc): Remove ccmp_cc_register check.
17554 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17555 Simplify after removal of CC_DNE/* modes.
17556 (aarch64_ccmp_mode_to_code): Remove.
17557 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
17558 In 'k' case use integer as condition.
17559 (aarch64_nzcv_codes): Remove inverted cases.
17560 (aarch64_code_to_ccmode): Remove.
17561 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
17562 comparison with CC register to be used in folowing CCMP/branch/CSEL.
17563 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17564 pattern. Return the comparison with CC register. Invert conditions
17565 when bitcode is OR.
17566 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17567 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17568
17569 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17570
17571 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17572 instrumented_version.
17573
17574 2016-01-19 Richard Biener <rguenther@suse.de>
17575
17576 PR tree-optimization/69336
17577 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17578 handled components with get_ref_base_and_extent.
17579 (equal_mem_array_ref_p): Adjust.
17580
17581 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17582
17583 PR debug/65779
17584 * shrink-wrap.c: Include valtrack.h.
17585 (move_insn_for_shrink_wrap): Add DEBUG argument. If
17586 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17587 in between insn and where it will be moved to. Call
17588 dead_debug_insert_temp.
17589 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
17590 first and dead_debug_local_finish at the end.
17591 For uses and defs bitmap, handle all regs in between REGNO and
17592 END_REGNO, not just the first one.
17593
17594 2016-01-19 Richard Biener <rguenther@suse.de>
17595
17596 PR tree-optimization/69352
17597 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17598 (equal_mem_array_ref_p): Constrain size and max size properly.
17599 Compare the reverse flag.
17600
17601 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17602
17603 * ira.c (ira): Update regstat data if we deleted insns.
17604
17605 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17606
17607 PR rtl-optimization/68955
17608 PR rtl-optimization/64557
17609 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17610 here. Fix up formatting.
17611 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17612
17613 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17614
17615 PR lto/69133
17616 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17617 assume that the node has body.
17618 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17619 check.
17620
17621 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17622
17623 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17624 thunks.
17625
17626 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17627
17628 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17629 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17630
17631 2016-01-19 Martin Jambor <mjambor@suse.cz>
17632 Martin Liska <mliska@suse.cz>
17633 Michael Matz <matz@suse.de>
17634
17635 * Makefile.in (OBJS): Add new source files.
17636 (GTFILES): Add hsa.c.
17637 * common.opt (disable_hsa): New variable.
17638 (-Whsa): New warning.
17639 * config.in (ENABLE_HSA): New.
17640 * configure.ac: Treat hsa differently from other accelerators.
17641 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17642 $enable_offloading.
17643 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17644 * doc/install.texi (Configuration): Document --with-hsa-runtime,
17645 --with-hsa-runtime-include, --with-hsa-runtime-lib and
17646 --with-hsa-kmt-lib.
17647 * doc/invoke.texi (-Whsa): Document.
17648 (hsa-gen-debug-stores): Likewise.
17649 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17650 to invoke offload compiler for hsa acclerator.
17651 * opts.c (common_handle_option): Determine whether HSA offloading
17652 should be performed.
17653 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17654 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17655 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17656 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17657 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17658 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17659 GF_OMP_FOR_KIND_GRID_LOOP.
17660 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17661 (pp_gimple_stmt_1): Likewise.
17662 * gimple-walk.c (walk_gimple_stmt): Likewise.
17663 * gimple.c (gimple_build_omp_grid_body): New function.
17664 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17665 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17666 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17667 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17668 GF_OMP_TEAMS_GRID_PHONY.
17669 (gimple_statement_omp_single_layout): Updated comments.
17670 (gimple_build_omp_grid_body): New function.
17671 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17672 (gimple_omp_for_grid_phony): New function.
17673 (gimple_omp_for_set_grid_phony): Likewise.
17674 (gimple_omp_parallel_grid_phony): Likewise.
17675 (gimple_omp_parallel_set_grid_phony): Likewise.
17676 (gimple_omp_teams_grid_phony): Likewise.
17677 (gimple_omp_teams_set_grid_phony): Likewise.
17678 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17679 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17680 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17681 (BUILT_IN_GOMP_TARGET): Updated type.
17682 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17683 (adjust_for_condition): New function.
17684 (get_omp_for_step_from_incr): Likewise.
17685 (extract_omp_for_data): Moved parts to adjust_for_condition and
17686 get_omp_for_step_from_incr.
17687 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17688 (fixup_child_record_type): Bail out if receiver_decl is NULL.
17689 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17690 (scan_omp_parallel): Do not create child functions for phony
17691 constructs.
17692 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17693 (scan_omp_1_op): Checking assert we are not remapping to
17694 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
17695 (parallel_needs_hsa_kernel_p): New function.
17696 (expand_parallel_call): Register apprpriate parallel child
17697 functions as HSA kernels.
17698 (grid_launch_attributes_trees): New type.
17699 (grid_attr_trees): New variable.
17700 (grid_create_kernel_launch_attr_types): New function.
17701 (grid_insert_store_range_dim): Likewise.
17702 (grid_get_kernel_launch_attributes): Likewise.
17703 (get_target_argument_identifier_1): Likewise.
17704 (get_target_argument_identifier): Likewise.
17705 (get_target_argument_value): Likewise.
17706 (push_target_argument_according_to_value): Likewise.
17707 (get_target_arguments): Likewise.
17708 (expand_omp_target): Call get_target_arguments instead of looking
17709 up for teams and thread limit.
17710 (grid_expand_omp_for_loop): New function.
17711 (grid_arg_decl_map): New type.
17712 (grid_remap_kernel_arg_accesses): New function.
17713 (grid_expand_target_kernel_body): New function.
17714 (expand_omp): Call it.
17715 (lower_omp_for): Do not emit phony constructs.
17716 (lower_omp_taskreg): Do not emit phony constructs but create for them
17717 a temporary variable receiver_decl.
17718 (lower_omp_taskreg): Do not emit phony constructs.
17719 (lower_omp_teams): Likewise.
17720 (lower_omp_grid_body): New function.
17721 (lower_omp_1): Call it.
17722 (grid_reg_assignment_to_local_var_p): New function.
17723 (grid_seq_only_contains_local_assignments): Likewise.
17724 (grid_find_single_omp_among_assignments_1): Likewise.
17725 (grid_find_single_omp_among_assignments): Likewise.
17726 (grid_find_ungridifiable_statement): Likewise.
17727 (grid_target_follows_gridifiable_pattern): Likewise.
17728 (grid_remap_prebody_decls): Likewise.
17729 (grid_copy_leading_local_assignments): Likewise.
17730 (grid_process_kernel_body_copy): Likewise.
17731 (grid_attempt_target_gridification): Likewise.
17732 (grid_gridify_all_targets_stmt): Likewise.
17733 (grid_gridify_all_targets): Likewise.
17734 (execute_lower_omp): Call grid_gridify_all_targets.
17735 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17736 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17737 (tree_omp_clause): Added union field dimension.
17738 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17739 * tree.c (omp_clause_num_ops): Added number of arguments of
17740 OMP_CLAUSE__GRIDDIM_.
17741 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17742 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17743 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17744 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17745 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17746 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17747 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17748 * tree-pass.h (make_pass_gen_hsail): Declare.
17749 (make_pass_ipa_hsa): Likewise.
17750 * ipa-hsa.c: New file.
17751 * lto-section-in.c (lto_section_name): Add hsa section name.
17752 * lto-streamer.h (lto_section_type): Add hsa section.
17753 * timevar.def (TV_IPA_HSA): New.
17754 * hsa-brig-format.h: New file.
17755 * hsa-brig.c: New file.
17756 * hsa-dump.c: Likewise.
17757 * hsa-gen.c: Likewise.
17758 * hsa.c: Likewise.
17759 * hsa.h: Likewise.
17760 * toplev.c (compile_file): Call hsa_output_brig.
17761 * hsa-regalloc.c: New file.
17762
17763 2016-01-18 Jeff Law <law@redhat.com>
17764
17765 PR tree-optimization/69320
17766 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17767 ranged object, do nothing if the RHS constant is not [0..1].
17768 (optimize_stmt): Comparing a boolean ranged object against a
17769 constant outside [0..1] results in a compile-time constant.
17770
17771 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17772 test.
17773
17774 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
17775
17776 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17777 (Option Summary): Update to reflect new section and moved options.
17778 (C++ Dialect Options): Move -fstats to new section.
17779 (Debugging Options): Move all dump, statistics, and other GCC
17780 developer options to new section. Rewrite section introduction
17781 and re-order remaining options to put the more basic ones first.
17782 (Optimization Options): Move -fira-verbose and -flto-report* to
17783 new section.
17784 (Developer Options): New section incorporating moved options.
17785 * doc/cppopts.texi (-dM): Update cross-reference.
17786
17787 2016-01-18 Richard Henderson <rth@redhat.com>
17788
17789 PR target/69176
17790 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17791 operands to pseudo only if CSE is expected. Split long immediate
17792 operands only after reload, and for the stack pointer.
17793 (*add<GPI>3_pluslong): Remove.
17794 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17795 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
17796 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17797 (*add<GPI>3 peepholes): New.
17798 (*add<GPI>3 splitters): New.
17799 * config/aarch64/constraints.md (Upl): New.
17800 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17801
17802 2016-01-18 Richard Biener <rguenther@suse.de>
17803
17804 PR tree-optimization/69297
17805 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17806 stmt at most once.
17807 (vect_bb_vectorization_profitable_p): Clear visited flag again.
17808
17809 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17810
17811 PR middle-end/68542
17812 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17813 of mixind vector and scalar types.
17814 (fold_relational_const): Add handling of vector
17815 comparison with boolean result.
17816 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17817 comparison of vector operands with boolean result for EQ/NE only.
17818 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17819 (verify_gimple_cond): Likewise.
17820 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17821 valid type of VAL.
17822
17823 2016-01-18 Joseph Myers <joseph@codesourcery.com>
17824
17825 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17826 !TARGET_OCTEON.
17827
17828 2016-01-18 Richard Biener <rguenther@suse.de>
17829
17830 PR middle-end/69308
17831 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17832
17833 2016-01-18 Tom de Vries <tom@codesourcery.com>
17834
17835 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17836
17837 2016-01-18 Tom de Vries <tom@codesourcery.com>
17838
17839 * omp-low.c (set_oacc_fn_attrib): Make extern.
17840 * omp-low.h (set_oacc_fn_attrib): Declare.
17841 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17842 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17843 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17844 Add and handle function parameter oacc_kernels_p.
17845 (find_reduc_addr, get_omp_data_i_param): New function.
17846 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17847 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17848 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17849 Calculate dominance info. Skip loops that are not in a kernels region
17850 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
17851 (pass_parallelize_loops::execute): Call parallelize_loops with
17852 oacc_kernels_p argument.
17853 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17854 New member function.
17855 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17856 * passes.def: Add argument to pass_parallelize_loops instantation.
17857
17858 2016-01-18 Tom de Vries <tom@codesourcery.com>
17859
17860 * tree-parloops.c (pass_parallelize_loops::execute): Allow
17861 pass_parallelize_loops to be run outside the loop pipeline.
17862
17863 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17864
17865 * tree-scalar-evolution.c (follow_copies_to_constant): New.
17866 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17867
17868 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17869
17870 PR target/63679
17871 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17872 using get_ref_base_and_extent.
17873 (equal_mem_array_ref_p): New.
17874 (hashable_expr_equal_p): Add call to previous.
17875
17876 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17877
17878 PR target/63679
17879 * tree-sra.c (disqualified_constants, constant_decl_p): New.
17880 (sra_initialize): Allocate disqualified_constants.
17881 (sra_deinitialize): Free disqualified_constants.
17882 (disqualify_candidate): Update disqualified_constants when appropriate.
17883 (create_access): Scan for constant-pool entries as we go along.
17884 (scalarizable_type_p): Add check against type_contains_placeholder_p.
17885 (maybe_add_sra_candidate): Allow constant-pool entries.
17886 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17887 (initialize_constant_pool_replacements): New.
17888 (sra_modify_assign): Avoid mangling assignments created by previous,
17889 and don't generate writes into constant pool.
17890 (sra_modify_function_body): Call initialize_constant_pool_replacements.
17891
17892 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17893
17894 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17895 andnot instruction.
17896 (scalar_chain::convert_op): Likewise.
17897 * config/i386/i386.md (*andndi3_doubleword): New.
17898
17899 2016-01-18 Richard Biener <rguenther@suse.de>
17900
17901 PR tree-optimization/69170
17902 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17903 building a vector from scalar results of a pattern stmt.
17904
17905 2016-01-18 Jakub Jelinek <jakub@redhat.com>
17906
17907 * haifa-sched.c (autopref_multipass_init): Work around
17908 -Wmaybe-uninitialized warning.
17909
17910 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17911
17912 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17913 against the constant 0.
17914
17915 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17916
17917 PR tree-optimization/68799
17918 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17919 look up phi candidates in the statement-candidate map.
17920 (phi_add_costs): Likewise.
17921 (record_phi_increments): Likewise.
17922 (phi_incr_cost): Likewise.
17923 (ncd_with_phi): Likewise.
17924 (all_phi_incrs_profitable): Likewise.
17925
17926 2016-01-17 Jakub Jelinek <jakub@redhat.com>
17927
17928 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17929 -Wmaybe-uninitialized warning.
17930
17931 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
17932
17933 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17934 (Option Summary): Update to reflect new section and moved options.
17935 (C++ Dialect Options): Move -fvtable-verify and related options.
17936 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17937 and profiling-related options.
17938 (Optimization Options): Move profile generation options and
17939 -fstack-protector and related options.
17940 (Instrumentation Options): New section incorporating moved options.
17941 (Code Generation Options): Move -finstrument-functions and
17942 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17943
17944 2016-01-16 Tom de Vries <tom@codesourcery.com>
17945
17946 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17947
17948 2016-01-16 Tom de Vries <tom@codesourcery.com>
17949
17950 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
17951
17952 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
17953
17954 * hash-table.h (hash_table::empty): Turn into an inline wrapper
17955 that checks whether the table is already empty. Rename the
17956 original implementation to...
17957 (hash_table::empty_slot): ...this new private function.
17958
17959 2016-01-15 David Malcolm <dmalcolm@redhat.com>
17960
17961 PR diagnostic/68899
17962 * diagnostic-show-locus.c (layout::print_source_line): Move x
17963 offset of line until after call to
17964 get_line_width_without_trailing_whitespace.
17965
17966 2016-01-15 Jeff Law <law@redhat.com>
17967
17968 PR tree-optimization/69270
17969 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17970 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
17971 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17972 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17973 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17974 ssa_name_has_boolean_range and constant_boolean_node.
17975
17976 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
17977
17978 PR rtl-optimization/69030
17979 * lra-spills.c (remove_pseudos): Check nrefs and make the function
17980 returning bool.
17981 (spill_pseudos): Delete debug insn for dead pseudo.
17982 (lra_spill): Initiate spill_hard_reg and slots memory separately.
17983
17984 2016-01-15 Jiong Wang <jiong.wang@arm.com>
17985
17986 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17987 New.
17988 (TYPES_UNOPUS): Likewise.
17989 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17990 builtin type, from UNOP to UNOPUS.
17991 (lbtruncuv4sf): Likewise.
17992 (lbtruncuv2df): Likewise.
17993 (lrounduv2sf): Likewise.
17994 (lrounduv4sf): Likewise.
17995 (lrounduv2df): Likewise.
17996 (lroundusf): Likewise.
17997 (lroundusf): Likewise.
17998 (lceiluv2sf): Likewise.
17999 (lceiluv4sf): Likewise.
18000 (lceiluv2df): Likewise.
18001 (lceilusf): Likewise.
18002 (lceiludf): Likewise.
18003 (lflooruv2sf): Likewise.
18004 (lflooruv4sf): Likewise.
18005 (lflooruv2df): Likewise.
18006 (lfloorusf): Likewise.
18007 (lfloorudf): Likewise.
18008 (lfrintnuv2sf): Likewise.
18009 (lfrintnuv4sf): Likewise.
18010 (lfrintnuv2df): Likewise.
18011 (lfrintnusf): Likewise.
18012 (lfrintnudf): Likewise.
18013 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18014 conversion.
18015 (vcvtq_u32_f32): Likewise.
18016 (vcvtq_u64_f64): Likewise.
18017 (vcvta_u32_f32): Likewise.
18018 (vcvtaq_u32_f32): Likewise.
18019 (vcvtaq_u64_f64): Likewise.
18020 (vcvtm_u32_f32): Likewise.
18021 (vcvtmq_u32_f32): Likewise.
18022 (vcvtmq_u64_f64): Likewise.
18023 (vcvtn_u32_f32): Likwise.
18024 (vcvtnq_u32_f32): Likewise.
18025 (vcvtnq_u64_f64): Likewise.
18026 (vcvtp_u32_f32): Likewise.
18027 (vcvtpq_u32_f32): Likewise.
18028 (vcvtpq_u64_f64): Likewise.
18029 (vcvtmd_u64_f64): Likewise.
18030 (vcvtms_u32_f32): Likewise.
18031 (vcvtad_u64_f64): Likewise.
18032 (vcvtas_u32_f32): Likewise.
18033 (vcvtnd_u64_f64): Likewise.
18034 (vcvtns_u32_f32): Likewise.
18035 (vcvtpd_u64_f64): Likewise.
18036 (vcvtps_u32_f32): Likewise.
18037
18038 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18039
18040 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18041 CSEL of zero_extended registers.
18042
18043 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18044
18045 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18046 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18047
18048 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18049
18050 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18051 false when argument string is not found in the attributes table
18052 at all.
18053
18054 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18055
18056 PR target/68609
18057 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18058 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18059 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18060 precision estimate.
18061
18062 2016-01-15 Richard Biener <rguenther@suse.de>
18063
18064 PR tree-optimization/66856
18065 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18066 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18067 (vect_create_new_slp_node): Increment stmt reference count.
18068 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18069 an SLP tree before swapping operands.
18070 (vect_build_slp_tree): Likewise.
18071 (destroy_bb_vec_info): Free stmt info after SLP instances.
18072 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18073 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18074 (STMT_VINFO_NUM_SLP_USES): New macro.
18075
18076 2016-01-15 Richard Biener <rguenther@suse.de>
18077
18078 PR debug/69137
18079 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18080 (add_linkage_name): ... here.
18081 (gen_typedef_die): Use add_linkage_name_raw instead of
18082 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18083 if necessary.
18084
18085 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18086
18087 * gimplify.c (oacc_default_clause): Decode reference and pointer
18088 types for both kernels and parallel regions.
18089
18090 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18091
18092 PR middle-end/69246
18093 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18094
18095 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18096
18097 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18098 (convert_scalars_to_vector): Likewise.
18099
18100 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18101
18102 * doc/extend.texi (Type Traits): Fix grammar.
18103
18104 2016-01-15 Martin Jambor <mjambor@suse.cz>
18105
18106 * tree-inline.c (remap_decl): Use existing dclarations if
18107 remapping a type and prevent_decl_creation_for_types.
18108 (replace_locals_stmt): Do an initial remapping of non-VLA typed
18109 decls first. Do real remapping with
18110 prevent_decl_creation_for_types set.
18111 * tree-inline.h (copy_body_data): New field
18112 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18113 padding.
18114
18115 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18116
18117 * config/s390/s390.opt (mmvcle): More verbose help text.
18118
18119 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18120
18121 * config/s390/s390.opt: Add period to -mzvector option text.
18122
18123 2016-01-15 Richard Biener <rguenther@suse.de>
18124
18125 PR tree-optimization/68961
18126 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18127 of invariants in stores again.
18128
18129 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18130
18131 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18132
18133 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18134
18135 * config/i386/i386.c (ix86_expand_branch): Don't split
18136 DI mode xor instruction to SI mode.
18137
18138 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18139
18140 PR ipa/68148
18141 * ipa-icf.c (sem_function::merge): Virtual functions may become
18142 reachable even if they address is not taken and there are no
18143 idrect calls.
18144
18145 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18146
18147 * lto-streamer-out.c (subtract_estimated_size): New function.
18148 (get_symbol_initial_value): Use it.
18149
18150 2016-01-15 Christian Bruel <christian.bruel@st.com>
18151
18152 PR target/65837
18153 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18154 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18155 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18156 use add_builtin_function_ext_scope instead of add_builtin_function.
18157 (neon_set_p, neon_crypto_set_p): Remove.
18158 (arm_init_builtins): Always call arm_init_neon_builtins and
18159 arm_init_crypto_builtins.
18160 (arm_expand_builtin): Check that builtins are allowed for the arch.
18161 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18162 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18163 arm_init_neon_builtins call.
18164
18165 2016-01-15 Richard Biener <rguenther@suse.de>
18166
18167 PR tree-optimization/69117
18168 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18169 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18170 of the leader conservatively.
18171 (free_scc_vn): Restore original SSA name infos.
18172
18173 2016-01-14 Jeff Law <law@redhat.com>
18174
18175 PR tree-optimization/69270
18176 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18177 single bit of precision, verify it's also unsigned.
18178 (record_edge_info): Use constant_boolean_node rather than fold_convert
18179 to convert boolean_true/boolean_false to the right type.
18180
18181 2016-01-14 Richard Henderson <rth@redhat.com>
18182
18183 PR rtl-opt/69014
18184 * loop-doloop.c (record_reg_sets): New.
18185 (doloop_optimize): Reject the transform if the sequence
18186 clobbers registers live at the end of the loop block.
18187 (doloop_optimize_loops): Enable df_live if needed.
18188
18189 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18190
18191 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18192 * config/rs6000/rs6000.c: Likewise.
18193 * config/rs6000/rs6000.h: Likewise.
18194 * config/rs6000/rs6000.md: Likewise.
18195 * doc/extend.texi: Likewsie.
18196
18197 2016-01-14 Jeff Law <law@redhat.com>
18198
18199 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18200 typo.
18201
18202 2016-01-14 Richard Henderson <rth@redhat.com>
18203
18204 PR c/69272
18205 PR tree-opt/68964
18206 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18207 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18208 instead of builtin_decl_declared_p to test for declaration.
18209
18210 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18211
18212 * doc/loop.texi (Loop Analysis and Representation): Document
18213 loop_depth function.
18214
18215 2016-01-14 Tom de Vries <tom@codesourcery.com>
18216
18217 PR tree-optimization/68773
18218 * omp-low.c (expand_omp_target): Don't set force_output.
18219 * varpool.c (varpool_node::get_create): Same.
18220 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18221 offload_funcs with force_output.
18222
18223 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18224
18225 PR debug/69244
18226 * lra-eliminations.c (move_plus_up): Don't change anything if either
18227 the outer or inner subreg mode is not MODE_INT.
18228 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18229 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18230
18231 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18232
18233 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18234 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18235 reduc_uplus_@var{m}): Remove.
18236 * expr.c (expand_expr_real_2): Remove expansion path for
18237 reduc_[us](min|max|plus) optabs.
18238 * optabs-tree.c (scalar_reduc_to_vector): Remove.
18239 * optabs-tree.h (scalar_reduc_to_vector): Remove.
18240 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18241 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18242 * tree-vect-loop.c (vectorizable_reduction): Remove test for
18243 reduc_[us](min|max|plus) optabs.
18244
18245 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18246
18247 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18248 (reduc_plus_scal_v2sf): New.
18249 (reduc_smax_v2sf): Rename to...
18250 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18251 (reduc_smin_v2sf): Rename to...
18252 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18253
18254 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18255
18256 * alias.c (compare_base_symbol_refs): New function.
18257 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18258 it.
18259
18260 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18261
18262 PR middle-end/68146
18263 PR tree-optimization/69155
18264 * tree-complex.c: Include cfganal.h.
18265 (phis_to_revisit): New variable.
18266 (extract_component): Add phiarg_p argument. Assert that returned
18267 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18268 (update_phi_components): Partly rewrite to use loop over real/imag
18269 components instead of code duplication. If extract_component returns
18270 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18271 create_tmp_reg into the PHI node instead, and mention the phi triplet
18272 in phis_to_revisit.
18273 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
18274 in phis_to_revisit at the end.
18275
18276 2016-01-14 Richard Biener <rguenther@suse.de>
18277
18278 PR tree-optimization/68060
18279 * tree-vect-loop.c (vect_is_simple_reduction): Check the
18280 outer loop reduction is only used in the inner loop before
18281 detecting a double reduction.
18282
18283 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18284
18285 PR target/68269
18286 * combine.c (expand_field_assignment): Punt if compute_mode is
18287 unsupported scalar mode.
18288
18289 2016-01-14 Richard Biener <rguenther@suse.de>
18290
18291 PR tree-optimization/66856
18292 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18293 SLP node only if it built successfully.
18294 (vect_analyze_slp_instance): Adjust.
18295
18296 2016-01-14 Jeff Law <law@redhat.com>
18297
18298 PR tree-optimization/69270
18299 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18300 (record_edge_info): Use it. Convert boolean_{true,false}_node
18301 to the type of op0.
18302
18303 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18304
18305 PR ipa/66487
18306 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18307 use block_ultimate_origin
18308 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18309
18310 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18311
18312 * doc/invoke.texi (Submodel Options): Rename section to
18313 "Machine-Dependent Options" to better reflect its content.
18314 Rewrite introductory text to remove archaic CPU names.
18315 Update references.
18316
18317 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18318
18319 * doc/invoke.texi (Code Gen Options): Move section up in file,
18320 before target-specific options. Update menu and option summary
18321 to reflect the new section ordering.
18322
18323 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18324
18325 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18326 (C++ Dialect Options): Add cross-reference to -std option.
18327 * doc/standards.texi (C++ Language): Document C++14 support.
18328
18329 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18330
18331 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18332 for pack/unpack functions for __ibm128.
18333 (PACK_IF): Likewise.
18334 (UNPACK_IF): Likewise.
18335
18336 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18337 support for __ibm128 pack/unpack functions.
18338 (rs6000_invalid_builtin): Likewise.
18339 (rs6000_init_builtins): Likewise.
18340 (rs6000_opt_masks): Likewise.
18341
18342 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18343 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18344 functions
18345 (RS6000_BTM_COMMON): Likewise.
18346
18347 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18348 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18349 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18350 128-bit floating point. Add support for the double values to be
18351 in Altivec registers for TF/IF packing and unpacking, but restrict
18352 TD packing sub-fields to be FPR registers. Don't allow overlapped
18353 register support for packing. Allow pack inputs to be memory
18354 locations. Don't build generator functions for unpack<mode>_dm
18355 and unpack<mode>_nodm.
18356 (unpack<mode>_dm): Likewise.
18357 (unpack<mode>_nodm): Likewise.
18358 (pack<mode>): Likewise.
18359
18360 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18361 built-in functions to pack/unpack explicit __ibm128 values.
18362 (__builtin_unpack_ibm128): Likewise.
18363
18364 * doc/extend.texi (PowerPC Built-in Functions): Document
18365 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18366
18367 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
18368
18369 PR c/66208
18370 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18371 Add new arg loc and pass it down as context.
18372 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18373 to the location to use for the warning.
18374 (check_function_arguments): New arg loc. All callers changed. Pass
18375 it to check_function_nonnull.
18376 * c-common.h (check_function_arguments): Adjust declaration.
18377
18378 2016-01-13 Jakub Jelinek <jakub@redhat.com>
18379
18380 PR tree-optimization/69156
18381 * gimple.c (validate_type): Removed.
18382 (gimple_builtin_call_types_compatible_p): Use
18383 useless_type_conversion_p instead of validate_type.
18384 * value-prof.c (gimple_stringop_fixed_value): Fold
18385 icall_size to correct type.
18386
18387 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18388
18389 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18390 effects.
18391
18392 2016-01-13 Richard Henderson <rth@redhat.com>
18393
18394 PR tree-opt/68964
18395 * target.def (builtin_tm_load, builtin_tm_store): Remove.
18396 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18397 (ix86_builtin_tm_store): Remove.
18398 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18399 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18400 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18401 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18402 * doc/tm.texi: Rebuild.
18403
18404 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18405 (BUILT_IN_TM_MEMCPY_RTWN): New.
18406 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18407 fallback from vector to integer helpers.
18408 (build_tm_load): Handle vector types directly, instead of
18409 via target hook.
18410 (build_tm_store): Likewise.
18411 (expand_assign_tm): Prepare for register types not handled by
18412 the above. Copy them to memory and use memcpy.
18413 * tree.c (tm_define_builtin): New.
18414 (find_tm_vector_type): New.
18415 (build_tm_vector_builtins): New.
18416 (build_common_builtin_nodes): Call it.
18417
18418 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
18419
18420 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18421 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
18422
18423 2016-01-13 Tom de Vries <tom@codesourcery.com>
18424
18425 PR tree-optimization/69169
18426 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18427 handled_struct_type param.
18428 (create_variable_info_for, intra_create_variable_infos): Call
18429 create_variable_info_for_1 with extra arg.
18430
18431 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
18432
18433 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18434 and "armv8.1-a+crc" entries.
18435
18436 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
18437
18438 PR target/69228
18439 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18440 Change first operand predicate from register_or_constm1_operand
18441 to register_operand.
18442 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18443 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18444 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18445 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18446 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18447 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18448 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18449 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18450 comparison with constm1_rtx from vec_prefetch_gen part.
18451
18452 2016-01-13 Richard Biener <rguenther@suse.de>
18453
18454 PR tree-optimization/69013
18455 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18456 Exchange assert for a test.
18457
18458 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18459
18460 PR target/69247
18461 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18462
18463 2016-01-13 Richard Biener <rguenther@suse.de>
18464
18465 PR tree-optimization/69242
18466 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18467 assert with a check.
18468
18469 2016-01-13 Richard Biener <rguenther@suse.de>
18470
18471 PR tree-optimization/69186
18472 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18473 Properly guard vect_update_misalignment_for_peel call.
18474
18475 2016-01-12 Jeff Law <law@redhat.com>
18476
18477 PR tree-optimization/pr67755
18478 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18479 "need_profile_correction".
18480 (thread_block_1): Initialize new field to false by default. If we
18481 have multiple thread paths through a common joiner to different
18482 final targets, then set new field to true.
18483 (compute_path_counts): Only do count adjustment when it's really
18484 needed.
18485
18486 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18487
18488 * doc/invoke.texi (Spec Files): Move section down in file, past
18489 all command-line option descriptions.
18490
18491 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18492
18493 PR middle-end/54809
18494 * doc/gty.texi: Remove documentation of mark_hook.
18495 * gengtype.c (struct write_types_data): Remove code to support
18496 mark_hook attribute.
18497 (walk_type): Likewise.
18498 (write_func_for_structure): Likewise.
18499
18500 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18501
18502 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18503 Directory Options, and -specs= to Overall Options.
18504 (Overall Options): Adjust similarly. Reorder to group related
18505 options together. Make -specs= cross-reference the spec file details.
18506 (Directory Options): Adjust similarly.
18507
18508 2016-01-12 Jeff Law <law@redhat.com>
18509
18510 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18511
18512 2016-01-12 Olivier Hainque <hainque@adacore.com>
18513
18514 * gcc.c (spec_undefvar_allowed): New global.
18515 (process_command): Set to true when running for --version or --help,
18516 alone or together.
18517 (getenv_spec_function): When the variable is not defined, use the
18518 variable name as the variable value if we're allowed not to issue
18519 a fatal error.
18520
18521 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18522
18523 PR tree-optimization/68911
18524 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18525 information computed for expression "init + nit * step".
18526
18527 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18528
18529 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
18530 about name of GCC executable. Remove deleted node from menu.
18531 (Directory Options) <-B>: Remove cross-reference to deleted node.
18532 (Target Options): Delete section.
18533
18534 2016-01-12 Christian Bruel <christian.bruel@st.com>
18535
18536 PR target/69180
18537 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18538 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18539
18540 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18541
18542 PR target/69198
18543 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18544 aligned_mem is properly set for AVX512-VL floating point masked
18545 stores.
18546
18547 PR target/69175
18548 * ifcvt.c (cond_exec_process_if_block): When removing the last
18549 insn from then_bb, remove also any possible barriers that follow it.
18550
18551 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18552
18553 PR target/68456
18554 PR target/69226
18555 * config/i386/iamcu.h (SIZE_TYPE): New macro.
18556 (PTRDIFF_TYPE): Likewise.
18557 (WCHAR_TYPE): Likewise.
18558 (WCHAR_TYPE_SIZE): Likewise.
18559 (STDINT_LONG32): Likewise.
18560
18561 2016-01-12 Richard Biener <rguenther@suse.de>
18562
18563 PR tree-optimization/69053
18564 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18565 convert initial value for cond reductions.
18566
18567 2016-01-12 Richard Biener <rguenther@suse.de>
18568
18569 PR tree-optimization/69007
18570 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18571 widen_sum after dot_prod and sad.
18572
18573 2016-01-12 Richard Biener <rguenther@suse.de>
18574
18575 PR tree-optimization/69168
18576 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18577 pattern stmt SLP type.
18578 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18579 end up unused so cope with that case.
18580
18581 2016-01-12 Richard Biener <rguenther@suse.de>
18582
18583 PR tree-optimization/69157
18584 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18585 stmts def type only during analyze phase.
18586 (vectorizable_call): Likewise.
18587 (vectorizable_simd_clone_call): Likewise.
18588 (vectorizable_conversion): Likewise.
18589 (vectorizable_assignment): Likewise.
18590 (vectorizable_shift): Likewise.
18591 (vectorizable_operation): Likewise.
18592 (vectorizable_store): Likewise.
18593 (vectorizable_load): Likewise.
18594
18595 2016-01-12 Richard Biener <rguenther@suse.de>
18596
18597 PR tree-optimization/69174
18598 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18599 space.
18600 (vectorizable_load): Properly compute the number of loads needed
18601 for permuted strided SLP loads and do not spuriously assign
18602 to SLP_TREE_VEC_STMTS.
18603
18604 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18605
18606 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18607 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18608 (MD_EXEC_PREFIX): Remove.
18609 (MD_STARTFILE_PREFIX) Removee.
18610 (FILE_NAME_ABSOLUTE_P): Remove.
18611 (CPP_SPEC): Do not read macros from sys/version.h.
18612 (LINK_COMMAND_SPEC): Remove.
18613 (LOCAL_INCLUDE_DIR): Remove.
18614 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18615 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18616 (POST_LINK_SPEC): Define to invoke stubify after linker
18617 (LIBSTDCXX): Remove define
18618 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18619 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18620 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18621 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18622 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18623 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18624 (i386_djgpp_asm_named_section): Add propotype of new procedure
18625
18626 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18627 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18628 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18629 in config/i386/djgpp.h).
18630 (STANDARD_STARTFILE_PREFIX_2): Define identical to
18631 STANDARD_STARTFILE_PREFIX_1.
18632 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18633 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18634 installation errors.
18635 (MAX_OFILE_ALIGNMENT): Define to 128.
18636 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18637
18638 * config/i386/djgpp.c: New file. Add implementation of
18639 i386_djgpp_asm_named_section.
18640
18641 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18642
18643 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18644 Add rule for building djgpp.o.
18645
18646 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18647
18648 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18649 (rtx_is_swappable_p): Reductions are swappable.
18650 (insn_is_swappable_p): V2DF reductions are swappable.
18651
18652 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
18653
18654 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18655 reloads for other unsupported memory operands.
18656
18657 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18658 Jim Wilson <jim.wilson@linaro.org>
18659
18660 PR target/69194
18661 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18662 copy_to_mode_reg instead of force_reg.
18663
18664 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18665
18666 PR target/69225
18667 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18668 TARGET_80387 is true.
18669
18670 2016-01-11 Jakub Jelinek <jakub@redhat.com>
18671
18672 PR target/69071
18673 * lra-eliminations.c (move_plus_up): Only move plus up
18674 if subreg of the constant can be simplified into constant
18675 and use the simplified subreg of the constant instead of
18676 the original constant.
18677
18678 * fold-const.c (fold_convertible_p): Don't return true
18679 for conversion of VECTOR_TYPE to same sized integral type.
18680 (fold_convert_loc): Fix up formatting. Fold conversion of
18681 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18682 instead of NOP_EXPR.
18683
18684 PR tree-optimization/69214
18685 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18686 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18687 Formatting fix.
18688
18689 PR tree-optimization/69207
18690 * tree-vect-slp.c (vect_get_constant_vectors): For
18691 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18692 fold_convertible_p to vector_type's element type, and always
18693 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18694
18695 2016-01-11 Richard Biener <rguenther@suse.de>
18696
18697 PR tree-optimization/69173
18698 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18699 fixup the cycle if all stmts are in a pattern.
18700
18701 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
18702
18703 PR middle-end/68999
18704 * alias.c (base_alias_check): Move check for addresses with
18705 alignment ANDs before the call for compare_base_decls.
18706 (memrefs_conflict_p): Return -1 for different decls
18707 that went through alignment adjustments.
18708
18709 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18710
18711 PR rtl-optimization/68796
18712 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18713 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18714 and QImode comparisons against zero with CC_NZmode.
18715 * config/aarch64/iterators.md (short_mask): New mode_attr.
18716
18717 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18718
18719 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18720 (<avx512>_store<mode>_mask): Likewise.
18721
18722 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
18723 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18724
18725 PR rtl-optimization/68841
18726 * ifcvt.c (struct noce_if_info): Add orig_x field.
18727 (bbs_ok_for_cmove_arith): Add to_rename parameter.
18728 Don't record conflicts on to_rename if it's present.
18729 Allow memory destinations in sets.
18730 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18731 blocks, passing orig_x to the checks.
18732 (noce_process_if_block): Set if_info->orig_x appropriately.
18733
18734 2016-01-11 Tom de Vries <tom@codesourcery.com>
18735
18736 PR tree-optimization/69069
18737 * tree-parloops.c (create_parallel_loop): Add missing phi args.
18738
18739 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18740
18741 PR rtl-optimization/68920
18742 * config/i386/i386.c (ix86_option_override_internal): Restrict number
18743 of conditional moves for RTL if-conversion to 1 for
18744 TARGET_ONE_IF_CONV_INSN.
18745 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18746 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18747 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18748 parameter to restirct number of conditional moves for
18749 RTL if-conversion.
18750 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18751 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18752 conditionl moves.
18753
18754 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
18755
18756 PR bootstrap/69123
18757 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18758 onepart vars. Fix typo in comment. Fix reversed condition in
18759 unshare test.
18760 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18761
18762 PR bootstrap/69123
18763 * var-tracking.c (dump_onepart_variable_differences): New.
18764 (dataflow_set_different): If a detailed dump is requested,
18765 delay early returns and dump differences between onepart
18766 variables present before and after, and added variables.
18767
18768 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18769
18770 PR target/69010
18771 * expr.c (expand_expr_real_1): For boolean vector constants
18772 with a scalar mode use const_scalar_mask_from_tree.
18773 (const_scalar_mask_from_tree): New.
18774 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18775 assigned to a mask type to handle constants.
18776
18777 2016-01-11 Martin Jambor <mjambor@suse.cz>
18778
18779 PR ipa/69044
18780 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18781 useless parameters if we cannot change function signature.
18782
18783 2016-01-11 Martin Jambor <mjambor@suse.cz>
18784
18785 PR ipa/66616
18786 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18787 flag.
18788
18789 2016-01-11 Tom de Vries <tom@codesourcery.com>
18790
18791 PR tree-optimization/69109
18792 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18793 latch with phi.
18794
18795 2016-01-11 Tom de Vries <tom@codesourcery.com>
18796
18797 PR tree-optimization/69108
18798 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18799 res is not used in a phi.
18800
18801 2016-01-11 Yury Gribov <y.gribov@samsung.com>
18802
18803 PR 67425
18804 * common.opt (frandom-seed): Fix parameter name.
18805 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18806
18807 2016-01-11 Tom de Vries <tom@codesourcery.com>
18808
18809 PR tree-optimization/69058
18810 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18811 not supported.
18812
18813 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
18814
18815 * config/arc/arc.opt (mdiv-rem): Add period to the end.
18816 (mcode-density): Likewise.
18817
18818 2016-01-10 Tom de Vries <tom@codesourcery.com>
18819
18820 PR tree-optimization/69062
18821 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18822 (parallelize_loops): Don't paralelize loop that has phi with address
18823 arg.
18824
18825 2016-01-10 Tom de Vries <tom@codesourcery.com>
18826
18827 PR tree-optimization/69039
18828 * tree-parloops.c (try_create_reduction_list): Only allow single exit
18829 phi for reduction.
18830
18831 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
18832
18833 PR middle-end/68743
18834 * match.pd: Require target has function_c99_misc before doing
18835 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18836
18837 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
18838
18839 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18840 use GMPINC.
18841 * configure: Regenerate.
18842
18843 2016-01-09 Jakub Jelinek <jakub@redhat.com>
18844
18845 PR middle-end/50865
18846 PR tree-optimization/69097
18847 * fold-const.h (expr_not_equal_to): New prototype.
18848 * fold-const.c: Include stringpool.h and tree-ssanames.h.
18849 (expr_not_equal_to): New function.
18850 * match.pd (X % -Y is the same as X % Y): Don't optimize
18851 unless X is known not to be equal to minimum or Y is known
18852 not to be equal to -1.
18853 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18854 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18855 (simplify_stmt_using_ranges): Adjust caller.
18856 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18857 substitute_and_fold.
18858
18859 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
18860
18861 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18862 w/o DECL_NAME.
18863
18864 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18865
18866 PR tree-optimization/69167
18867 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18868 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18869 ops[0] comparison.
18870 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18871
18872 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18873 Richard Biener <rguenther@suse.de>
18874
18875 PR tree-optimization/68707
18876 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18877 instances that can be handled via vect_load_lanes.
18878
18879 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
18880
18881 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18882 if we can't determine address equivalence.
18883 * alias.c (compare_base_decl): Update for changed return value of
18884 symtab_node::equal_address_to.
18885
18886 2016-01-08 Jason Merrill <jason@redhat.com>
18887
18888 PR c++/68983
18889 PR c++/67557
18890 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18891 * expr.c (store_field): Not here.
18892 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18893 call with TREE_ADDRESSABLE type.
18894 * tree-cfg.c (verify_gimple_call): Adjust.
18895
18896 2016-01-08 Olivier Hainque <hainque@adacore.com>
18897
18898 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18899 libc_internal.
18900
18901 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18902
18903 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18904 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18905 (reduc_smin_v2sf): Rename to...
18906 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18907 (reduc_splus_v2sf): Rename to...
18908 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18909
18910 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18911
18912 PR tree-optimization/69162
18913 * gimplify.c (gimplify_va_arg_expr): Encode original type of
18914 valist argument in another argument.
18915 (gimplify_modify_expr): Adjust for the above change. Cleanup.
18916 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18917 to determine the va_list type, build a MEM_REF instead of
18918 build_fold_indirect_ref.
18919
18920 PR tree-optimization/69172
18921 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18922 gimple_build.
18923
18924 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
18925
18926 PR tree-optimization/67781
18927 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18928 and cmpnop in two steps: first the ones not accessed in original
18929 gimple expression in a endian independent way and then the ones not
18930 accessed in the final result in an endian-specific way.
18931
18932 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18933
18934 PR tree-optimization/69083
18935 * tree-vect-slp.c (vect_get_constant_vectors): For
18936 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18937 element type. If op is fold_convertible_p to vector_type's element
18938 type, use NOP_EXPR instead of VCE.
18939
18940 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
18941
18942 PR rtl-optimization/67778
18943 PR rtl-optimization/68634
18944 PR rtl-optimization/68909
18945 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
18946 block from the stack until done with it. Remove a superfluous
18947 bitmap set. Remove a superfluous bitmap test.
18948
18949 2016-01-07 Martin Sebor <msebor@redhat.com>
18950
18951 PR c/68966
18952 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18953 constraint on the type of arguments.
18954
18955 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
18956
18957 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18958 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18959 unaligned_access on the gcc_options set.
18960 * config/arm/arm.c (arm_option_override_internal): Use
18961 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18962
18963 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18964
18965 PR target/69140
18966 * config/i386/i386.c (ix86_frame_pointer_required): Enable
18967 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18968
18969 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18970
18971 Revert
18972 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
18973
18974 PR target/69140
18975 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18976 depending on frame_pointer_needed before remaining integer and SSE
18977 registers are saved.
18978
18979 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
18980
18981 PR 1078
18982 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18983
18984 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
18985
18986 PR target/69171
18987 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18988 Use the "xBm" constraint.
18989 (float<sseintvecmodelower><mode>2<mask_name><round_name):
18990 Likewise.
18991 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18992 (sse_cvtsi2ssq<round_name>): Likewise.
18993 (sse_cvtss2si<round_name>): Likewise.
18994 (sse_cvtss2siq<round_name>): Likewise.
18995 (sse2_cvtsi2sdq<round_name>): Likewise.
18996 (sse2_cvtsd2si<round_name>): Likewise.
18997 (sse2_cvtsd2siq<round_name>): Likewise.
18998 * config/i386/subst.md (round_nimm_scalar_predicate): New
18999 predicate.
19000
19001 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19002
19003 PR middle-end/67639
19004 * varasm.c (make_decl_rtl): Mark invalid register vars as
19005 DECL_EXTERNAL.
19006
19007 PR rtl-optimization/66206
19008 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19009 All callers changed.
19010
19011 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19012
19013 PR tree-optimization/69141
19014 * tree-ssa-pre.c: Include langhooks.h.
19015 (eliminate_dom_walker::before_dom_children): Use
19016 lang_hooks.decl_printable_name instead of
19017 cgraph_node::get ()->name ().
19018
19019 PR middle-end/68960
19020 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19021 it and DECL_ALIGN too.
19022
19023 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19024
19025 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19026
19027 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19028
19029 PR target/69140
19030 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19031 depending on frame_pointer_needed before remaining integer and SSE
19032 registers are saved.
19033
19034 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19035
19036 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19037 mode iterator with VSX_M2.
19038 (*p9_vecstore_<mode>): Likewise.
19039 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19040 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19041 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19042 (define_split for VSX_LE128 stores): Likewise.
19043 (define_peephole2 for TImode LE swaps): Likewise.
19044 (define_split for VSX_LE128 post-reload stores): Likewise.
19045
19046 2016-01-06 Marek Polacek <polacek@redhat.com>
19047
19048 PR sanitizer/69099
19049 * convert.c (convert_to_integer_1): Adjust call to
19050 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
19051 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
19052 EXPR instead of ARG.
19053 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19054
19055 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19056
19057 PR 1078
19058 * doc/extend.texi (RL78 Variable Attributes): New section.
19059
19060 2016-01-05 Marek Polacek <polacek@redhat.com>
19061
19062 PR c/69104
19063 * builtins.c (get_memmodel): Use expansion point location rather than
19064 the input location. Call warning_at rather than warning.
19065 (expand_builtin_atomic_compare_exchange): Likewise.
19066 (expand_builtin_atomic_load): Likewise.
19067 (expand_builtin_atomic_store): Likewise.
19068 (expand_builtin_atomic_clear): Likewise.
19069
19070 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19071
19072 PR target/68991
19073 * config/i386/i386.c (ix86_expand_vector_logical_operator):
19074 Replace nonimmediate_operand with vector_operand.
19075 * config/i386/predicates.md (vector_operand): New predicate.
19076 (general_vector_operand): Replace nonimmediate_operand with
19077 vector_operand.
19078 * config/i386/sse.md: Replace nonimmediate_operand with
19079 vector_operand and m constraint with Bm constraint on SSE
19080 patterns with 16-byte memory operand.
19081 * config/i386/subst.md (round_nimm_predicate): Replace
19082 nonimmediate_operand with vector_operand.
19083 (round_saeonly_nimm_predicate): Likewise.
19084 (round_saeonly_nimm_scalar_predicate): New.
19085
19086 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19087
19088 PR target/68991
19089 * config/i386/constraints.md (Bm): New constraint.
19090 * config/i386/predicates.md (vector_memory_operand): New
19091 predicate.
19092 * config/i386/sse.md: Replace xm with xBm in plusminus and
19093 any_logic patterns.
19094
19095 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19096
19097 PR 1078
19098 * doc/extend.texi (V850 Function Attributes): New section.
19099 (V850 Variable Attributes): New section.
19100
19101 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19102
19103 PR 1078
19104 * doc/extend.texi (MicroBlaze Function Attributes): Document
19105 interrupt_handler and fast_interrupt attributes.
19106
19107 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19108
19109 PR other/60465
19110 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19111 for local symbolic operands.
19112 * config/ia64/predicates.md (local_symbolic_operand64): New
19113 predicate.
19114
19115 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19116
19117 PR rtl-optimization/68651
19118 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19119 x << 1.
19120
19121 2016-01-05 Nathan Sidwell <nathan@acm.org>
19122
19123 * alias.c (compare_base_decls): Use symtab_node::get.
19124
19125 2016-01-05 Nick Clifton <nickc@redhat.com>
19126
19127 PR target/68770
19128 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19129 secondary_reload_info structure.
19130
19131 PR target/66655
19132 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19133 decls if weak support is available.
19134
19135 2016-01-04 Martin Sebor <msebor@redhat.com>
19136
19137 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19138
19139 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19140
19141 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19142 OPTION_MASK_P9_DFORM.
19143
19144 * config/rs6000/constraints.md (wo constraint): New constraint for
19145 ISA 3.0 (power9).
19146
19147 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19148 for wo constraint.
19149 (rs6000_init_hard_regno_mode_ok): Likewise.
19150
19151 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19152 wo constraint.
19153
19154 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19155 expanders not to have constraints. Add support for ISA 3.0 xxperm
19156 instruction. Add support for fusing xxlor with xxperm.
19157 (altivec_vperm_<mode>_internal): Likewise.
19158 (altivec_vperm_v8hiv16qi): Likewise.
19159 (altivec_vperm_<mode>v16q): Likewise.
19160 (altivec_vperm_<mode>_uns): Likewise.
19161 (vperm_v8hiv4si): Likewise.
19162 (vperm_v16qiv8hi): Likewise.
19163
19164 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19165
19166 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19167
19168 Update copyright years.
19169
19170 * gcc.c (process_command): Update copyright notice dates.
19171 * gcov-dump.c (print_version): Ditto.
19172 * gcov.c (print_version): Ditto.
19173 * gcov-tool.c (print_version): Ditto.
19174 * gengtype.c (create_file): Ditto.
19175 * doc/cpp.texi: Bump @copying's copyright year.
19176 * doc/cppinternals.texi: Ditto.
19177 * doc/gcc.texi: Ditto.
19178 * doc/gccint.texi: Ditto.
19179 * doc/gcov.texi: Ditto.
19180 * doc/install.texi: Ditto.
19181 * doc/invoke.texi: Ditto.
19182
19183 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19184
19185 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19186 modes larger than TImode as TImode if NEON is not enabled.
19187
19188 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19189
19190 PR target/69100
19191 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19192 mode for %f0-%f31 only if TARGET_FPU.
19193
19194 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19195
19196 PR target/69072
19197 * config/sparc/sparc.c (scan_record_type): Take into account subfields
19198 to compute the PACKED_P predicate.
19199 (function_arg_record_value): Minor tweaks.
19200
19201 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19202
19203 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19204 option for arm*-*-* targets.
19205
19206 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19207
19208 * doc/extend.texi (Common Function Attributes): Move docs for
19209 MSP430-specific attributes to....
19210 (MSP430 Function Attributes): ...here. Delete the redundant
19211 entries and copy-edit the remaining text.
19212 (MSP430 Variable Attributes): Use uniform format for index
19213 entries and add a cross-reference to the corresponding function
19214 attribute docs.
19215
19216 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19217
19218 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19219 -finite-math typo.
19220 (x86 Options): Likewise.
19221
19222 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19223
19224 PR 1078
19225
19226 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19227 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19228 to corresponding attribute.
19229
19230 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19231
19232 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19233 to correct alphabetization of table. Copy-edit and correct
19234 markup.
19235 <stack_protect>: Likewise.
19236 <target_clones>: Likewise.
19237 <simd>: Likewise.
19238 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19239 Correct punctuation.
19240 (Code Gen Options) <-fno-plt>: Copy-edit.
19241
19242 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19243
19244 PR target/68917
19245 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19246 SI values. Explicitly convert SI to DI and vice-versa.
19247
19248 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19249
19250 PR tree-optimization/69070
19251 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19252 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19253
19254 PR sanitizer/69055
19255 * ubsan.c (ubsan_instrument_float_cast): Call
19256 initialize_sanitizer_builtins.
19257
19258 PR target/69015
19259 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19260 \f
19261 Copyright (C) 2016 Free Software Foundation, Inc.
19262
19263 Copying and distribution of this file, with or without modification,
19264 are permitted in any medium without royalty provided the copyright
19265 notice and this notice are preserved.