1 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
3 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
8 (aarch64_push_reg): New function to push 1 or 2 registers.
9 (aarch64_pop_reg): New function to pop 1 or 2 registers.
10 (aarch64_expand_prologue): Use aarch64_push_regs.
11 (aarch64_expand_epilogue): Use aarch64_pop_regs.
13 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15 PR tree-optimization/71734
16 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
17 attribute instead of REF_LOOP and use it.
18 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
19 set it for Loops having non-zero safelen attribute.
20 (ref_indep_loop_p): Pass zero as initial value for safelen.
22 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
26 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
27 call using chkp_gimple_call_builtin_p.
28 (chkp_copy_bounds_for_assign): Likewise.
30 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
33 * config/arm/arm-protos.h (struct tune_params): Likewise.
34 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
35 (cortex_a9_sched_adjust_cost): Likewise.
36 (fa726te_sched_adjust_cost): Likewise.
37 (arm_adjust_cost): Likewise.
38 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
39 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
40 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
41 * config/i386/i386.c (ix86_adjust_cost): Likewise.
42 * config/ia64/ia64.c: Likewise.
43 * config/m68k/m68k.c: Likewise.
44 * config/mep/mep.c (mep_adjust_cost): Likewise.
45 * config/microblaze/microblaze.c (microblaze_adjust_cost):
47 * config/mips/mips.c (mips_adjust_cost): Likewise.
48 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
50 * config/pa/pa.c (pa_adjust_cost): Likewise.
51 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
52 (rs6000_debug_adjust_cost): Likewise.
53 * config/sh/sh.c (sh_adjust_cost): Likewise.
54 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
55 (hypersparc_adjust_cost): Likewise.
56 (sparc_adjust_cost): Likewise.
57 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
58 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
59 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
61 * config/visium/visium.c (visium_adjust_cost): Likewise.
62 * doc/tm.texi: Regenerate.
63 * haifa-sched.c (dep_cost_1): Adjust.
64 * target.def: Merge adjust_cost and adjust_cost_2.
66 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
68 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
70 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
72 * store-motion.c (struct st_expr): Make pattern_regs a vector.
73 (extract_mentioned_regs): Append to a vector instead of
74 returning a rtx_expr_list.
75 (st_expr_entry): Adjust.
76 (free_st_expr_entry): Likewise.
77 (store_ops_ok): Likewise.
78 (store_killed_in_insn): Likewise.
79 (find_moveable_store): Likewise.
81 2016-07-28 Martin Liska <mliska@suse.cz>
84 * tree-profile.c (tree_profiling): Respect
85 no_profile_instrument_function attribute.
86 * doc/extend.texi: Document no_profile_instrument_function
89 2016-07-28 Martin Liska <mliska@suse.cz>
91 PR rtl-optimization/70944
92 * combine.c (make_compound_operation):
93 Do not allow make_compound_operation for vector mode
95 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
98 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
99 before calling get_ops.
101 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
103 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
104 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
105 (BITS_PER_UNIT_LOG): Remove.
106 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
107 * expr.c (expand_assignment): Likewise.
108 * stor-layout.c (initialize_sizetypes): Likewise.
110 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
112 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
113 signature of rs6000_expand_vector_extract so that the element
114 number is a RTX instead of a constant integer.
115 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
117 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
118 (altivec_expand_vec_ext_builtin): Likewise.
119 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
120 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
123 2016-07-27 David Malcolm <dmalcolm@redhat.com>
125 * input.c (get_pure_location): Move here from tree.c.
126 (make_location): Likewise. Add header comment.
127 (selftest::test_accessing_ordinary_linemaps): Verify
128 pure_location_p, make_location, get_location_from_adhoc_loc and
130 * input.h (get_pure_location): Move declaration here from tree.h.
131 (get_finish): Likewise for inline function.
132 (make_location): Likewise for declaration.
133 * tree.c (get_pure_location): Move to input.c.
134 (make_location): Likewise.
135 * tree.h (get_pure_location): Move declaration to tree.h.
136 (get_finish): Likewise for inline function.
137 (make_location): Likewise for declaration.
139 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
142 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
144 2016-07-27 David Malcolm <dmalcolm@redhat.com>
146 * system.h (STATIC_ASSERT): Use static_assert if building
149 2016-07-27 Richard Biener <rguenther@suse.de>
151 PR tree-optimization/72517
152 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
153 Revert change to not compute read-read dependences.
155 2016-07-27 Richard Biener <rguenther@suse.de>
157 * predict.c (set_even_probabilities): Make nedges unsigned.
159 2016-07-27 Martin Liska <mliska@suse.cz>
161 * predict.c (set_even_probabilities): Handle unlikely edges.
162 (combine_predictions_for_bb): Likewise.
164 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
167 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
168 __float128 support when we don't have hardware support, so that
169 the IEEE built-in functions like isgreater, first call __unordkf3
170 to make sure neither operand is a NaN, and if both operands are
171 ordered, do the normal comparison.
173 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
175 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
177 (extract_code_and_val_from_cond_with_ops): Verify that name is
178 either cond_op0 or cond_op1.
180 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
182 PR tree-optimization/18046
183 * genmodes.c (emit_mode_size_inline): Emit an assert that
184 verifies that mode is a valid array index.
185 (emit_mode_nuinits_inline): Likewise.
186 (emit_mode_inner_inline): Likewise.
187 (emit_mode_unit_size_inline): Likewise.
188 (emit_mode_unit_precision_inline): Likewise.
189 * tree-vrp.c: Include params.h.
190 (find_switch_asserts): Register edge assertions for the default
191 label which correspond to the anti-ranges of each case label.
192 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
193 * doc/invoke.texi: Document it.
195 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
197 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
198 and unnecessary call to gimple_bb.
200 2016-07-26 Richard Biener <rguenther@suse.de>
202 PR rtl-optimization/71984
203 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
206 2016-07-26 Richard Biener <rguenther@suse.de>
209 * expmed.c (extract_bit_field_1): Constrain the vector mode
210 with element size matching the extraction mode size when
211 choosing a better vector mode to do the extraction from.
213 2016-07-26 Richard Biener <rguenther@suse.de>
214 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
217 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
220 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
222 * tree-ssa-structalias.c (struct scc_info): Change types of
223 members to auto_sbitmap and auto_vec.
224 (scc_info::scc_info): New constructor.
225 (scc_info::~scc_info): New destructor.
226 (init_scc_info): Remove.
227 (free_scc_info): Remove.
228 (find_indirect_cycles): Adjust.
229 (perform_var_substitution): Likewise.
230 (free_var_substitution_info): Likewise.
232 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
234 * tree-outof-ssa.c (struct elim_graph): Change type of members
235 to auto_vec and auto_sbitmap.
236 (elim_graph::elim_graph): New constructor.
237 (delete_elim_graph): Remove.
238 (expand_phi_nodes): Adjust.
240 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
242 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
243 (new_elim_graph): Adjust.
244 (clear_elim_graph): Likewise.
245 (delete_elim_graph): Likewise.
246 (elim_graph_size): Likewise.
247 (elim_graph_add_node): Likewise.
248 (elim_graph_add_edge): Likewise.
249 (elim_graph_remove_succ_edge): Likewise.
250 (eliminate_name): Likewise.
251 (eliminate_build): Likewise.
252 (elim_forward): Likewise.
253 (elim_unvisited_predecessor): Likewise.
254 (elim_backward): Likewise.
255 (elim_create): Likewise.
256 (eliminate_phi): Likewise.
257 (expand_phi_nodes): Likewise.
259 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
261 * bt-load.c (compute_out): Use auto_sbitmap class.
262 (link_btr_uses): Likewise.
263 * cfganal.c (mark_dfs_back_edges): Likewise.
264 (post_order_compute): Likewise.
265 (inverted_post_order_compute): Likewise.
266 (pre_and_rev_post_order_compute_fn): Likewise.
267 (single_pred_before_succ_order): Likewise.
268 * cfgexpand.c (pass_expand::execute): Likewise.
269 * cfgloop.c (verify_loop_structure): Likewise.
270 * cfgloopmanip.c (fix_bb_placements): Likewise.
271 (remove_path): Likewise.
272 (update_dominators_in_loop): Likewise.
273 * cfgrtl.c (break_superblocks): Likewise.
274 * ddg.c (check_sccs): Likewise.
275 (create_ddg_all_sccs): Likewise.
276 * df-core.c (df_worklist_dataflow): Likewise.
277 * dse.c (dse_step3): Likewise.
278 * except.c (eh_region_outermost): Likewise.
279 * function.c (thread_prologue_and_epilogue_insns): Likewise.
280 * gcse.c (prune_expressions): Likewise.
281 (prune_insertions_deletions): Likewise.
282 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
283 * graph.c (draw_cfg_nodes_no_loops): Likewise.
284 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
285 * lcm.c (compute_earliest): Likewise.
286 (compute_farthest): Likewise.
287 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
288 (unroll_loop_runtime_iterations): Likewise.
289 (unroll_loop_stupid): Likewise.
290 * lower-subreg.c (decompose_multiword_subregs): Likewise.
291 * lra-lives.c: Likewise.
292 * lra.c (lra): Likewise.
293 * modulo-sched.c (schedule_reg_moves): Likewise.
294 (optimize_sc): Likewise.
295 (get_sched_window): Likewise.
296 (sms_schedule_by_order): Likewise.
297 (check_nodes_order): Likewise.
298 (order_nodes_of_sccs): Likewise.
299 (order_nodes_in_scc): Likewise.
300 * recog.c (split_all_insns): Likewise.
301 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
302 * reload1.c (reload): Likewise.
303 * sched-rgn.c (haifa_find_rgns): Likewise.
304 (split_edges): Likewise.
305 (compute_trg_info): Likewise.
306 * sel-sched.c (init_seqno): Likewise.
307 * store-motion.c (remove_reachable_equiv_notes): Likewise.
308 * tree-into-ssa.c (update_ssa): Likewise.
309 * tree-ssa-live.c (live_worklist): Likewise.
310 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
311 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
313 (try_peel_loop): Likewise.
314 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
316 * tree-ssa-pre.c (compute_antic): Likewise.
317 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
318 * tree-stdarg.c (reachable_at_most_once): Likewise.
319 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
320 * var-tracking.c (vt_find_locations): Likewise.
322 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
324 * sbitmap.h (auto_sbitmap): New class.
326 2016-07-26 Alan Modra <amodra@gmail.com>
329 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
332 2016-07-25 David Malcolm <dmalcolm@redhat.com>
334 * input.c (selftest::temp_source_file::temp_source_file): Fix
335 missing "%s" in fprintf.
337 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
340 * cselib.c (cselib_process_insn): Invalidate argument slots for
343 2016-07-25 Jiong Wang <jiong.wang@arm.com>
345 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
346 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
347 vmulxh_lane_f16, vmulxh_laneq_f16): New.
349 2016-07-25 Jiong Wang <jiong.wang@arm.com>
351 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
352 * config/aarch64/aarch64.md (fma, fnma): Support HF.
353 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
355 2016-07-25 Jiong Wang <jiong.wang@arm.com>
357 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
358 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
360 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
361 (add<mode>3): Likewise.
362 (sub<mode>3): Likewise.
363 (mul<mode>3): Likewise.
364 (div<mode>3): Likewise.
365 (*div<mode>3): Likewise.
366 (<fmaxmin><mode>3): Extend to HF.
367 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
368 (fabd<mode>3): Likewise.
369 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
370 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
371 (aarch64_fmulx<mode>): Likewise.
372 (aarch64_fac<optab><mode>): Likewise.
373 (aarch64_frecps<mode>): Likewise.
374 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
375 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
376 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
377 (VSDQ_HSDI): Support HI.
378 (fcvt_target, FCVT_TARGET): Likewise.
379 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
380 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
381 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
382 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
383 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
384 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
385 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
388 2016-07-25 Jiong Wang <jiong.wang@arm.com>
390 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
391 * config/aarch64/aarch64-builtins.c (hi_UP): New.
392 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
393 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
395 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
396 (aarch64_cm<optab><mode>): Likewise.
397 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
398 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
399 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
400 (sqrt<mode>2): Likewise.
401 (*sqrt<mode>2): Likewise.
402 (abs<mode>2): Likewise.
403 (<optab><mode>hf2): New pattern for HF mode.
404 (<optab>hihf2): Likewise.
405 * config/aarch64/arm_neon.h: Include arm_fp16.h.
406 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
407 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
409 * config/aarch64/arm_fp16.h: New file.
410 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
411 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
412 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
413 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
414 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
415 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
416 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
417 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
418 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
419 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
420 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
421 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
424 2016-07-25 Jiong Wang <jiong.wang@arm.com>
426 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
427 reduc_smin_scal_): Use VDQIF_F16.
428 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
429 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
431 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
432 * config/aarch64/iterators.md (VDQIF_F16): New.
433 (vp): Support HF modes.
434 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
435 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
437 2016-07-25 Jiong Wang <jiong.wang@arm.com>
439 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
440 "*aarch64_mulx_elt_from_dup<mode>".
441 (*aarch64_mul3_elt<mode>): Update schedule type.
442 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
443 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
444 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
445 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
446 (f, fp): Support HF modes.
447 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
448 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
449 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
450 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
451 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
452 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
454 2016-07-25 Jiong Wang <jiong.wang@arm.com>
456 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
457 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
459 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
462 2016-07-25 Jiong Wang <jiong.wang@arm.com>
464 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
465 * config/aarch64/aarch64-simd.md
466 (aarch64_rsqrts<mode>): Extend to HF modes.
467 (fabd<mode>3): Likewise.
468 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
469 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
470 (aarch64_<maxmin_uns>p<mode>): Likewise.
471 (<su><maxmin><mode>3): Likewise.
472 (<maxmin_uns><mode>3): Likewise.
473 (<fmaxmin><mode>3): Likewise.
474 (aarch64_faddp<mode>): Likewise.
475 (aarch64_fmulx<mode>): Likewise.
476 (aarch64_frecps<mode>): Likewise.
477 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
478 (add<mode>3): Extend to HF modes.
479 (sub<mode>3): Likewise.
480 (mul<mode>3): Likewise.
481 (div<mode>3): Likewise.
482 (*div<mode>3): Likewise.
483 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
485 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
486 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
487 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
488 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
489 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
490 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
491 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
492 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
493 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
494 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
495 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
496 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
497 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
498 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
500 2016-07-25 Jiong Wang <jiong.wang@arm.com>
502 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
503 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
504 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
505 (neg<mode>2): Likewise.
506 (abs<mode>2): Likewise.
507 (<frint_pattern><mode>2): Likewise.
508 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
509 (<optab><VDQF:mode><fcvt_target>2): Likewise.
510 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
511 (ftrunc<VDQF:mode>2): Likewise.
512 (<optab><fcvt_target><VDQF:mode>2): Likewise.
513 (sqrt<mode>2): Likewise.
514 (*sqrt<mode>2): Likewise.
515 (aarch64_frecpe<mode>): Likewise.
516 (aarch64_cm<optab><mode>): Likewise.
517 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
519 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
520 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
522 * config/aarch64/arm_neon.h (vdup_n_f16): New.
523 (vdupq_n_f16): Likewise.
524 (vld1_dup_f16): Use vdup_n_f16.
525 (vld1q_dup_f16): Use vdupq_n_f16.
526 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
527 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
528 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
529 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
530 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
531 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
532 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
533 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
534 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
535 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
536 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
537 vsqrt_f16, vsqrtq_f16): New.
539 2016-07-25 Jiong Wang <jiong.wang@arm.com>
541 * config/aarch64/aarch64-simd.md
542 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
543 (aarch64_ext<mode>): Likewise.
544 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
545 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
546 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
548 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
550 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
551 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
552 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
553 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
554 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
555 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
556 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
558 (vmov_n_f16): Reimplement using vdup_n_f16.
559 (vmovq_n_f16): Reimplement using vdupq_n_f16..
561 2016-07-25 Jiong Wang <jiong.wang@arm.com>
563 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
564 "frame_related_p". Generate CFA annotation when it's necessary.
565 (aarch64_expand_prologue): Use aarch64_add_constant.
566 (aarch64_expand_epilogue): Likewise.
567 (aarch64_output_mi_thunk): Pass "false" when calling
568 aarch64_add_constant.
570 2016-07-25 Jiong Wang <jiong.wang@arm.com>
572 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
575 2016-07-25 Jiong Wang <jiong.wang@arm.com>
577 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
578 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
579 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
580 (aarch64_build_constant): Delete.
582 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
585 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
587 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
588 flag_toplevel_reorder.
590 2016-07-25 Richard Biener <rguenther@suse.de>
592 * cgraph.c (cgraph_node::verify_node): Compare against builtin
593 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
594 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
595 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
596 (streamer_get_builtin_tree): Likewise.
597 (streamer_write_builtin): Likewise.
598 * lto-streamer.h (LTO_builtin_decl): Remove.
599 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
600 (lto_input_scc): Remove LTO_builtin_decl handling.
601 (lto_input_tree_1): Liekwise.
602 * lto-streamer-out.c (lto_output_tree_1): Remove special
603 handling of builtins.
604 (DFS::DFS): Likewise.
605 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
606 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
608 (streamer_write_builtin): Remove.
610 2016-07-25 Martin Liska <mliska@suse.cz>
612 * lto-cgraph.c (input_symtab): Don't call get_working_sets
613 if flag_auto_profile is set to true.
615 2016-07-25 Martin Liska <mliska@suse.cz>
617 PR gcov-profile/71868
618 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
619 have a function with multiple latches, count them all.
621 2016-07-25 Martin Liska <mliska@suse.cz>
623 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
625 2016-07-25 Martin Liska <mliska@suse.cz>
627 PR tree-optimization/71987
628 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
629 just for SSA_NAMEs. Fix GNU coding style.
631 2016-07-25 Martin Liska <mliska@suse.cz>
633 PR gcov-profile/64874
634 * gcov-io.h: Update command about file format.
635 * gcov-iov.c (main): Adapt the numbering scheme.
637 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
640 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
641 whose result is used in PHI.
642 (final_range_test_p): Likewise.
643 (maybe_optimize_range_tests): Likewise.
645 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
647 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
648 Reformat two multi-line strings.
650 2016-07-22 Martin Sebor <msebor@redhat.com>
652 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
654 2016-07-22 Martin Sebor <msebor@redhat.com>
657 * doc/extend.texi (Compound Literals): Correct and clarify.
658 (Cast to Union): Same.
660 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
662 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
663 comments to explain why certain error messages make mention of
664 undocumented options.
665 (rs6000_invalid_builtin): Change error messages to replace mention
666 of undocumented options with mention of the -mcpu=power9 option
667 that enables those undocumented options.
668 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
669 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
670 definition of this macro to correct an existing error.
671 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
672 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
673 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
674 descriptions of built-in functions so that they depend on
675 -mcpu=power9 instead of on the corresponding undocumented flags.
676 * doc/invoke.texi (Option Summary): Remove all mention of newly
678 (IBM RS/6000 and PowerPC Options): Likewise.
679 * doc/md.texi (Constraints for Particuliar Machines): Remove all
680 mention of newly undocumented flags.
682 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
684 * ipa-cp.c (determine_versionability): Do not create constprop clones,
685 when target_clones attribute is set.
687 2016-07-22 Bin Cheng <bin.cheng@arm.com>
689 * common.opt (funsafe-loop-optimizations): Mark ignore.
690 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
691 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
693 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
694 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
696 2016-07-22 Bin Cheng <bin.cheng@arm.com>
698 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
700 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
702 (number_of_iterations_exit): Warn missed loop optimization for
703 possible infinite loops.
705 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
708 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
709 when to emit a ".machine" pseudo-op.
711 2016-07-22 Martin Liska <mliska@suse.cz>
713 PR gcov-profile/69028
714 PR gcov-profile/62047
715 * coverage.c (coverage_compute_lineno_checksum): Do not
716 calculate checksum for fns w/o xloc.file.
717 (coverage_compute_profile_id): Likewise.
719 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
721 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
722 (avr_secondary_reload): ...and implementation.
723 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
724 * config/avr/avr.md (reload_in<mode>): Remove insns.
725 (adjust_len) [lpm]: Remove insn attribute value.
726 * config/avr/predicates.md (flash_operand): Remove insn predicate.
728 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
731 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
733 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
734 * calls.c (special_function_p): Remove the special handling of the
737 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
740 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
741 if STMT may be an alloca call.
742 (gimple_alloca_call_p, alloca_call_p): Return only true for the
744 * calls.h (gimple_maybe_alloca_call_p): New function.
745 * tree-inline.c (inline_forbidden_p_stmt): Use
746 gimple_maybe_alloca_call_p here.
748 2016-07-21 David Malcolm <dmalcolm@redhat.com>
750 * spellcheck-tree.c (best_macro_match::best_macro_match):
751 Explictly specify the template arguments when invoking the base
752 class constructor, to help older C++ compilers.
754 2016-07-21 Jakub Jelinek <jakub@redhat.com>
757 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
758 before builtin_decl_implicit.
760 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
762 * optabs.c (emit_condiitonal_move): Short circuit for identical
765 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
767 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
768 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
769 (noce_conversion_profitable_p): New.
770 (noce_try_store_flag_constants): Use it.
771 (noce_try_addcc): Likewise.
772 (noce_try_store_flag_mask): Likewise.
773 (noce_try_cmove): Likewise.
774 (noce_try_cmove_arith): Likewise.
775 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
777 (noce_convert_multiple_sets): Move cost model to here, from...
778 (bb_ok_for_noce_convert_multiple_sets) ...here.
779 (noce_process_if_block): Update calls for above changes.
780 (noce_find_if_block): Record new noce_if_info parameters.
782 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
784 * target.def (max_noce_ifcvt_seq_cost): New.
785 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
786 * doc/tm.texi: Regenerate.
787 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
788 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
789 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
790 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
791 * doc/invoke.texi: Document new params.
793 2016-07-21 Richard Biener <rguenther@suse.de>
795 PR tree-optimization/71947
796 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
797 ranges have useful limit_vr information.
799 2016-07-21 Richard Biener <rguenther@suse.de>
801 * function-tests.c (build_trivial_generic_function): Set
802 BLOCK_SUPERCONTEXT of DECL_INITIAL.
803 * omp-low.c (create_omp_child_function): Likewise.
804 (grid_expand_target_grid_body): Likewise.
805 * cgraphunit.c (init_lowered_empty_function): Likewise.
806 (cgraph_node::expand_thunk): Likewise.
807 * tree-parloops.c (create_loop_fn): Likewise.
808 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
810 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
812 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
815 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
817 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
818 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
819 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
820 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
821 values for insn attribute.
822 * config/avr/avr.c (avr_out_insert_notbit): New function.
823 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
824 ADJUST_LEN_INSV_NOTBIT_0/_7.
825 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
827 2016-07-21 Bin Cheng <bin.cheng@arm.com>
829 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
830 (chrec_convert_1, chrec_convert): Ditto.
831 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
832 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
833 * tree-vrp.c (adjust_range_with_scev): Ditto.
834 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
835 (scev_var_range_cant_overflow): New function.
836 (scev_probably_wraps_p): New parameter. Call above function.
837 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
839 2016-07-21 Bin Cheng <bin.cheng@arm.com>
841 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
842 by removing computation of may_be_zero.
844 2016-07-21 Jakub Jelinek <jakub@redhat.com>
846 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
848 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
850 Improving concepts performance and diagnostics.
851 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
852 for constraint satisfaction and subsumption.
853 * timevar.h (auto_timevar): New constructor that matches the push/pop
854 pattern of usage in pt.c.
856 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
858 * hwint.h (HOST_WIDE_INT_0): New define.
859 (HOST_WIDE_INT_0U): Ditto.
860 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
861 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
862 * simplify-rtx.c: Ditto.
863 * tree-object-size.c: Ditto.
865 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
867 * config/s390/s390.c (s390_encode_section_info): Remove mode size
870 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
872 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
873 * combine.c: Use HOST_WIDE_INT_M1U instead of
874 ~(unsigned HOST_WIDE_INT) 0.
875 * double-int.h: Ditto.
882 * tree-ssa-loop-ivopts.c: Ditto.
883 * tree-ssa-loop-prefetch.c: Ditto.
884 * tree-vect-generic.c: Ditto.
885 * tree-vect-patterns.c: Ditto.
888 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
890 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
891 constant addresses outside [0,0xc0] into a register.
892 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
893 cases where the base address register is unused after.
894 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
895 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
896 (avr_out_store_psi_reg_disp_tiny): Same.
898 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
900 Implement attribute progmem on reduced Tiny cores by adding
901 flash offset 0x4000 to respective symbols.
904 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
905 documentation how it works on reduced Tiny cores.
906 (AVR Named Address Spaces): No support for reduced Tiny.
907 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
908 (avr_address_tiny_pm_p): New static function.
909 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
910 if the address is in progmem.
911 (avr_assemble_integer): Same.
912 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
913 for symbol_ref in progmem.
914 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
915 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
916 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
918 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
920 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
921 * configure: Regenerate.
922 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
923 (USE_THIN_ARCHIVES): New variable.
924 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
925 this archive as a thin archive.
927 2016-07-20 David Malcolm <dmalcolm@redhat.com>
929 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
930 same location as last time, don't skip if we have fix-it hints.
931 Clarify the skipping logic by converting it from one "if" clause
932 to repeated "if" clauses.
933 * spellcheck-tree.c: Include "cpplib.h".
934 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
935 (best_macro_match::best_macro_match): New constructor.
936 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
937 Move here from c/c-decl.c.
938 (class best_macro_match): Move here from c/c-decl.c, converting
939 from a typedef to a subclass, gaining a ctor.
941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
943 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
944 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
946 (avr_addr_space_diagnose_usage): ...and implementation.
947 (avr_addr_space_supported_p): New function.
948 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
949 report bad address space usage if that space is supported.
950 (avr_insert_attributes): Same. No more complain about unsupported
952 * config/avr/avr-c.c (tm_p.h): Include it.
953 (avr_cpu_cpp_builtins): Only define addr-space related built-in
954 macro if avr_addr_space_supported_p.
956 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
958 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
959 flag_toplevel_reorder.
961 2016-07-20 David Malcolm <dmalcolm@redhat.com>
963 * gcc-rich-location.c
964 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
966 * gcc-rich-location.h
967 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
969 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
971 * target.def (addr_space): Add new diagnose_usage to hook vector.
972 * targhooks.c (default_addr_space_diagnose_usage): Add default
973 implementation and...
974 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
975 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
976 is some address space, call targetm.addr_space.diagnose_usage.
977 * doc/tm.texi.in (Named Address Spaces): Add anchor for
978 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
979 * doc/tm.texi: Regenerate.
981 2016-07-20 Martin Liska <mliska@suse.cz>
984 * graphite-isl-ast-to-gimple.c (later_of_the_two):
985 Properly handly PHI stmts.
987 2016-07-20 Bin Cheng <bin.cheng@arm.com>
989 PR tree-optimization/71503
990 PR tree-optimization/71683
991 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
994 2016-07-20 Martin Liska <mliska@suse.cz>
996 * doc/invoke.texi (-fipa-ra): Document when the option is
997 disabled. Fix a typo.
999 2016-07-20 Martin Liska <mliska@suse.cz>
1001 * Makefile.in: Include fibonacci_heap.c
1002 * fibonacci_heap.c: New file.
1003 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1004 (fibonacci_heap::union_with): Fix deletion of the second heap.
1005 * selftest-run-tests.c (selftest::run_tests): Incorporate
1006 fibonacci heap tests.
1007 * selftest.h: Declare fibonacci_heap_c_tests.
1009 2016-07-20 Martin Liska <mliska@suse.cz>
1011 * selftest-run-tests.c (selftest::run_tests): New function.
1012 * selftest.h (sreal_c_tests): Declare.
1013 * sreal.c (sreal_verify_basics): New function.
1014 (verify_aritmetics): Likewise.
1015 (sreal_verify_arithmetics): Likewise.
1016 (verify_shifting): Likewise.
1017 (sreal_verify_shifting): Likewise.
1018 (void sreal_c_tests): Likewise.
1020 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1022 PR rtl-optimization/71916
1023 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1024 bb which have a single succ fake edge.
1026 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1029 * dwarf2out.c (gen_subprogram_die): Only call
1030 gen_unspecified_parameters_die while dumping early dwarf.
1032 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1035 * gimple-fold.c (fold_builtin_memory_op): Use
1036 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1038 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1040 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1041 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1042 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1043 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1047 * double-int.c: Ditto.
1049 * dwarf2out.c: Ditto.
1052 * fold-const.c: Ditto.
1053 * function.c: Ditto.
1055 * genmodes.c: Ditto.
1059 * loop-doloop.c: Ditto.
1060 * loop-invariant.c: Ditto.
1067 * simplify-rtx.c: Ditto.
1068 * stor-layout.c: Ditto.
1070 * tree-ssa-loop-ivopts.c: Ditto.
1071 * tree-vect-generic.c: Ditto.
1072 * tree-vect-patterns.c: Ditto.
1077 * wide-int-print.cc: Ditto.
1078 * wide-int.cc: Ditto.
1079 * wide-int.h: Ditto.
1081 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1083 * selftest.c (selftest::assert_streq): Handle NULL values of
1084 val_actual and val_expected.
1086 2016-07-19 Martin Jambor <mjambor@suse.cz>
1089 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1090 rather than cgraph_create_node to get a call graph node.
1092 2016-07-19 Richard Biener <rguenther@suse.de>
1094 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1095 handle all tcc_constant bases and valueize SSA names.
1096 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1099 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1101 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1102 the flags of the exit block and bb2, not just the entry block.
1104 2016-07-19 Richard Biener <rguenther@suse.de>
1106 PR tree-optimization/71901
1107 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1108 align member, group stuff with the bitfield.
1109 (vn_ref_op_align_unit): New inline.
1110 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1111 record element alignment and operand 3 unchanged.
1112 (ao_ref_init_from_vn_reference): Adjust.
1113 (valueize_refs_1): Likewise.
1114 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1116 2016-07-19 Richard Biener <rguenther@suse.de>
1118 PR tree-optimization/71908
1119 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1120 symbolic constants in a more reliable way.
1122 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1124 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1126 (vect_update_inits_of_drs): Likewise.
1127 (vect_create_cond_for_alias_checks): Likewise.
1128 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1130 2016-07-19 Richard Biener <rguenther@suse.de>
1133 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1134 with an abstract origin that is not an inlined function outer
1135 scope add a self-reference as abstract origin.
1136 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1138 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1141 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1142 unintentional System V.4 structure return breakage for structures
1143 with a single floating point element.
1145 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1147 PR tree-optimization/71734
1148 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1149 contains REF, use it to check safelen, assume that safelen value
1150 must be greater 1, fix style.
1151 (ref_indep_loop_p_2): Add REF_LOOP argument.
1152 (ref_indep_loop_p): Pass LOOP as additional argument to
1155 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1157 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1158 allocation in the prologue.
1159 * explow.c (get_dynamic_stack_base): New function to return an address
1160 expression for the dynamic stack base.
1161 (get_dynamic_stack_size): New function to do the required dynamic stack
1162 space size calculations.
1163 (allocate_dynamic_stack_space): Use new functions.
1164 (align_dynamic_address): Move some code from
1165 allocate_dynamic_stack_space to new function.
1166 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1168 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1170 * config/s390/s390.c (s390_encode_section_info): Always set
1171 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1174 2016-07-18 Richard Biener <rguenther@suse.de>
1176 PR tree-optimization/71893
1177 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1178 for sizetype cast added by array_ref_element_size.
1179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1181 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1183 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1184 register parameters. Remove code to initialize argument pointer
1185 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1186 using a pc-relative branch. Cleanup conditional code.
1187 * config/pa/pa.md (call_mcount): New expander.
1188 (call_mcount_nonpic): New insn.
1189 (call_mcount_pic): New insn and split.
1190 (call_mcount_pic_post_reload): New insn.
1191 (call_mcount_64bit): New insn and split.
1192 (call_mcount_64bit_post_reload): New insn.
1194 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1196 * config/avr/predicates.md (const_m255_to_m1_operand): New.
1197 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1198 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1199 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1200 (*usum_widenqihi3, *udiff_widenqihi3)
1201 (*addhi3_zero_extend.const): New combiner insns.
1202 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1203 just 1 bit is affected.
1204 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1205 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1207 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1209 * omp-low.c (lower_omp_target): Mark data clauses with
1210 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1211 zero-length subarrays.
1213 2016-07-15 Richard Biener <rguenther@suse.de>
1215 PR tree-optimization/71881
1216 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1217 reverse DOM order to make debug temp generation happy.
1219 2016-07-15 Richard Biener <rguenther@suse.de>
1221 PR tree-optimization/71887
1222 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1223 verify it is not zero for division / modulo handling.
1224 (value_replacement): Adjust.
1226 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1227 Julian Brown <julian@codesourcery.com>
1229 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1230 * config/aarch64/aarch64-cost-tables.h
1231 (vulcan_extra_costs): New variable.
1232 * config/aarch64/aarch64.c
1233 (vulcan_addrcost_table): Likewise.
1234 (vulcan_regmove_cost): Likewise.
1235 (vulcan_vector_cost): Likewise.
1236 (vulcan_branch_cost): Likewise.
1237 (vulcan_tunings): Likewise.
1239 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1241 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1242 (output_in_order): Loop over undefined variables too. Output them
1243 via assemble_undefined_decl. Skip variables that correspond to hard
1244 registers or have value-exprs.
1245 * varpool.c (symbol_table::output_variables): Handle undefined
1246 variables together with defined ones.
1248 2016-07-15 Richard Biener <rguenther@suse.de>
1250 * tree-ssa-pre.c (get_representative_for): Make sure to return
1251 the value number of SSA names.
1252 (phi_translate_1): get_representative_for cannot return NULL.
1253 (do_pre_regular_insertion): Remove redundant call to
1254 fully_constant_expression.
1255 (do_pre_partial_partial_insertion): Likewise.
1257 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1259 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1260 (derive_simple_iv_with_niters): New function.
1261 (simple_iv): Rewrite using simple_iv_with_niters.
1262 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1263 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1265 (number_of_iterations_exit): Rewrite using above function.
1266 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1269 2016-07-15 Richard Biener <rguenther@suse.de>
1271 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1274 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1276 PR tree-optimization/71872
1277 * tree-data-ref.c (get_references_in_stmt): Ignore references
1278 with is_gimple_constant get_base_address.
1280 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1282 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1283 (TARGET_HAVE_LDACQD): New macro.
1284 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1285 than TARGET_HAVE_LDACQ.
1286 (arm_load_acquire_exclusivedi): Likewise.
1287 (arm_store_release_exclusivedi): Likewise.
1289 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1291 PR rtl-optimization/71878
1292 * lra-constraints.c (match_reload): Pass information about other
1293 output operands. Create new unique register value if matching input
1294 operand shares same register value as output operand being considered.
1295 (curr_insn_transform): Record output operands already processed.
1297 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1300 PR tree-optimization/70923
1301 * tree-vect-patterns.c: Include mult-synthesis.h.
1302 (target_supports_mult_synth_alg): New function.
1303 (synth_lshift_by_additions): Likewise.
1304 (apply_binop_and_append_stmt): Likewise.
1305 (vect_synth_mult_by_constant): Likewise.
1306 (target_has_vecop_for_code): Likewise.
1307 (vect_recog_mult_pattern): Use above functions to synthesize vector
1308 multiplication by integer constants.
1310 2016-07-14 Alan Modra <amodra@gmail.com>
1312 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1313 gpr alternatives. Correct '*' placement on Y,r alternative.
1314 Add '*' on operand 1 of r,r alternative.
1316 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1318 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1319 * expmed.h: ... Here.
1321 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1323 * gimple.h (stmt_can_terminate_bb_p): New function.
1324 * tree-cfg.c (need_fake_edge_p): Rename to ...
1325 (stmt_can_terminate_bb_p): ... this; return true if stmt can
1326 throw external; handle const and pure calls.
1327 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1329 2016-07-14 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/71866
1332 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1333 (do_hoist_insertion): Avoid endless recursion when we
1334 didn't insert anything because we managed to simplify
1335 things down to a constant or SSA name.
1336 (fully_constant_expression): Re-write in terms of ...
1337 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
1338 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1339 vn_nary_build_or_lookup_1.
1340 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1341 (vn_nary_build_or_lookup): ... this which now wraps it.
1343 2016-07-14 Alan Modra <amodra@gmail.com>
1346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1347 with p9_vector override before power9-dform override.
1349 2016-07-13 Andi Kleen <ak@linux.intel.com>
1351 * value-prof.c (gimple_value_profile_transformations): Don't run
1352 when auto_profile is on.
1354 2016-07-13 Andi Kleen <ak@linux.intel.com>
1356 * auto-profile.c (update_inlined_ind_target,
1357 afdo_indirect_call): Print information to dump file.
1359 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1361 * genrecog.c (special_predicate_operand_p): New function.
1362 (predicate_name): Move function.
1363 (validate_pattern): Don't warn about missing mode for all
1364 define_special_predicate predicates.
1366 2016-07-13 Bin Cheng <bin.cheng@arm.com>
1368 * tree-vect-data-refs.c (vect_no_alias_p): New function.
1369 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1370 resolve alias checks which are known at compilation time.
1371 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1372 alias checks are resolved. Move dump info for too many runtime
1373 alias checks to here...
1374 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1376 2016-07-13 Richard Biener <rguenther@suse.de>
1378 PR tree-optimization/24574
1379 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1380 position and add shift, rotate, divison and modulo support
1382 (value_replacement): Pass in argument position to absorbing_element_p.
1384 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1387 * ipa-inline-transform.c (inline_call): Support
1388 instrumented thunks.
1390 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1392 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1393 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1395 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1396 Baseline. Make initial alternative TARGET_32BIT only.
1397 (udivsi3): Likewise.
1398 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1399 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1402 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1404 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1405 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1406 availability with TARGET_HAVE_MOVT.
1407 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1408 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1409 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1411 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1412 extra instruction if MOVW is available. Use a cost variable
1413 incremented by COSTS_N_INSNS (1) when the condition match rather than
1414 returning an arithmetic expression based on COSTS_N_INSNS. Make
1415 constant with bottom half word zero cost 2 instruction if MOVW is
1417 * config/arm/arm.md (define_attr "arch"): Add v8mb.
1418 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1419 target is ARMv8-M Baseline.
1420 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1421 (arm_movtas_ze): Likewise.
1422 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1423 alternative for constants satisfying j constraint.
1424 (thumb1_movsi_insn): Likewise.
1425 (movsi splitter for K alternative): Tighten condition to not trigger
1426 if movt is available and j constraint is satisfied.
1427 (Pe immediate splitter): Likewise.
1428 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1429 constant fitting in an halfword to use MOVW.
1430 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1433 2016-07-13 Richard Biener <rguenther@suse.de>
1436 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1437 gimplifying the LHS. Make sure to gimplify a returning twice
1438 call LHS without using SSA names.
1440 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1442 * tree-data-ref.c (find_data_references_in_stmt): Remove
1443 unnecessary call to vec::release.
1444 (graphite_find_data_references_in_stmt): Likewise.
1445 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1446 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1448 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1450 * cfgexpand.c (expand_used_vars): Make the type of a local
1452 * genmatch.c (lower_for): Likewise.
1453 * haifa-sched.c (haifa_sched_init): Likewise.
1454 (add_to_speculative_block): Likewise.
1455 (create_check_block_twin): Likewise.
1456 * predict.c (handle_missing_profiles): Likewise.
1457 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1458 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1459 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1461 (maybe_lower_iteration_bound): Likewise.
1462 * tree-ssa-sccvn.c (DFS): Likewise.
1463 * tree-stdarg.c (reachable_at_most_once): Likewise.
1464 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1465 (vectorizable_store): Likewise.
1467 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1469 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1470 (sccvn_dom_walker): make cond_stack an auto_vec.
1472 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1474 * ree.c (struct ext_state): Make type of members auto_vec.
1475 (find_and_remove_re): Adjust.
1477 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1479 * cfgexpand.c (struct stack_vars_data): Make type of fields
1481 (expand_used_vars): Adjust.
1483 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1485 * ipa.c (record_cdtor_fn): Adjust.
1486 (build_cdtor_fns): Likewise.
1487 (ipa_cdtor_merge): Make static_ctors and static_dtors local
1490 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1492 * genextract.c (struct accum_extract): Add constructor and make
1496 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1498 * tree.c (struct free_lang_data_d): Add constructor and change
1499 types of members to ones that automatically manage resources.
1500 (fld_worklist_push): Adjust.
1501 (find_decls_types): Likewise.
1502 (find_decls_types_in_eh_region): Likewise.
1503 (free_lang_data_in_cgraph): Stop manually creating and
1504 destroying members of free_lang_data_d.
1506 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
1508 PR rtl-optimization/68961
1509 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1510 peephole variant. Use sse_reg_operand predicates.
1512 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1514 * config/i386/predicates.md (x86_64_immediate_operand)
1515 <case CONST_INT>: Remove unneeded truncation to DImode.
1516 <case CONST>: Ditto.
1517 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1519 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1522 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1523 The xxperm and xxpermr instructions require that the 2nd input
1524 operand overlap with the output operand, and not the 1st.
1525 (altivec_vperm_v8hiv16qi): Likewise.
1526 (altivec_vperm_<mode>_uns_internal): Likewise.
1527 (altivec_vpermr_<mode>_internal): Likewise.
1528 (vperm_v8hiv4si): Likewise.
1529 (vperm_v16qiv8hi): Likewise.
1531 2016-07-12 Nathan Sidwell <nathan@acm.org>
1533 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1534 when -mno-pic-data-is-text-relative is in effect, by default.
1535 * doc/invoke.texi (mpic-data-is-text-relative): Document new
1536 behavior and clarify.
1538 2016-07-12 Martin Liska <mliska@suse.cz>
1540 * params.def: Add avg-loop niter.
1541 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1542 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1543 * doc/invoke.texi: Document the new parameter.
1545 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548 * expr.c (store_constructor): Mask sign-extended bits when widening
1549 sub-word constructor element at the start of a word.
1551 2016-07-12 Martin Liska <mliska@suse.cz>
1553 * Makefile.in: Append rule for params-options.h.
1554 * params-options.h: New file.
1556 2016-07-12 Martin Liska <mliska@suse.cz>
1558 * ira-build.c (mark_loops_for_removal): Properly iterate
1561 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1562 Richard Biener <rguenther@suse.de>
1564 PR tree-optimization/23286
1565 PR tree-optimization/70159
1566 * doc/invoke.texi: Document -fcode-hoisting.
1567 * common.opt (fcode-hoisting): New flag.
1568 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1569 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1570 (do_regular_insertion): Rename to ...
1571 (do_pre_regular_insertion): ... this and amend general comments
1572 on insertion strathegy.
1573 (do_partial_partial_insertion): Rename to ...
1574 (do_pre_partial_partial_insertion): ... this.
1575 (do_hoist_insertion): New function.
1576 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1577 and call do_hoist_insertion properly.
1579 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1580 (pass_pre::execute): Register hoist_insert stats.
1582 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1585 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1586 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1587 is different from mode's bitsize. Small cleanup.
1589 2016-07-12 Richard Biener <rguenther@suse.de>
1591 PR rtl-optimization/68961
1592 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1593 to simplify to a non-constant.
1595 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1598 * omp-low.c (expand_omp_target): Gimplify device.
1600 PR tree-optimization/71823
1601 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1602 to get vec_oprnds2 from op2.
1604 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1606 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1607 Hoist common subexpressions.
1608 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1610 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1613 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1614 prevent generation of 'stxsiwx' on pre Power8 hardware.
1616 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1618 * input.c: Include cpplib.h.
1619 (selftest::temp_source_file): New class.
1620 (selftest::temp_source_file::temp_source_file): New ctor.
1621 (selftest::temp_source_file::~temp_source_file): New dtor.
1622 (selftest::should_have_column_data_p): New function.
1623 (selftest::test_should_have_column_data_p): New function.
1624 (selftest::temp_line_table): New class.
1625 (selftest::temp_line_table::temp_line_table): New ctor.
1626 (selftest::temp_line_table::~temp_line_table): New dtor.
1627 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1628 it to create a temp_line_table.
1629 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1630 locations that are known to have column data.
1631 (selftest::line_table_case): New struct.
1632 (selftest::test_reading_source_line): Move tempfile handling
1633 to class temp_source_file.
1634 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1635 (selftest::assert_token_loc_eq): New function.
1636 (ASSERT_TOKEN_LOC_EQ): New macro.
1637 (selftest::test_lexer): New function.
1638 (selftest::boundary_locations): New array.
1639 (selftest::input_c_tests): Call test_should_have_column_data_p.
1640 Loop over a test matrix of interesting values of location and
1641 default_range_bits, calling test_lexer on each case in the matrix.
1642 Move call to test_accessing_ordinary_linemaps into the matrix.
1643 * selftest.h (ASSERT_EQ): Reimplement in terms of...
1644 (ASSERT_EQ_AT): New macro.
1646 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1649 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1650 Don't convert TImode in debug insn.
1652 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1654 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1655 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1656 (tree_type_common::lang_flag_7): New.
1657 (tree_type_common::spare): Reduce size.
1658 * tree.h (TYPE_ALIGN_OK): Remove.
1659 (TYPE_LANG_FLAG_7): New.
1660 (get_inner_reference): Adjust header.
1661 * print-tree.c (print_node): Adjust.
1662 * expr.c (get_inner_reference): Remove parameter keep_aligning.
1663 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1664 calls to get_inner_reference.
1665 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
1666 handling of TYPE_ALIGN_OK.
1667 * builtins.c (get_object_alignment_2): Adjust call to
1668 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
1669 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1671 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1672 * cfgexpand.c (expand_debug_expr): Likewise.
1673 * dbxout.c (dbxout_expand_expr): Likewise.
1674 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1675 loc_list_from_tree, fortran_common): Likewise.
1676 * fold-const.c (optimize_bit_field_compare,
1677 decode_field_reference, fold_unary_loc, fold_comparison,
1678 split_address_to_core_and_offset): Likewise.
1679 * gimple-laddress.c (execute): Likewise.
1680 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1681 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1682 * hsa-gen.c (gen_hsa_addr): Likewise.
1683 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1684 * tsan.c (instrument_expr): Likewise.
1685 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1686 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1687 * tree-affine.c (tree_to_aff_combination,
1688 get_inner_reference_aff): Adjust calls to get_inner_reference.
1689 * tree-data-ref.c (split_constant_offset_1,
1690 dr_analyze_innermost): Likewise.
1691 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1692 * tree-sra.c (ipa_sra_check_caller): Likewise.
1693 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1694 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1695 bswap_replace): Likewise.
1696 * tree-vect-data-refs.c (vect_check_gather,
1697 vect_analyze_data_refs): Likewise.
1698 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1699 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1702 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1704 * Makefile.in (selftest-valgrind): New phony target.
1705 * function-tests.c (selftest::build_cfg): Delete pass instances
1706 created by the test.
1707 (selftest::convert_to_ssa): Likewise.
1708 (selftest::test_expansion_to_rtl): Likewise.
1709 * tree-cfg.c (selftest::test_linear_chain): Release dominator
1711 (selftest::test_diamond): Likewise.
1713 2016-07-11 Richard Biener <rguenther@suse.de>
1715 PR tree-optimization/71816
1716 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1717 than replacing all of its operands.
1719 2016-07-11 Alan Modra <amodra@gmail.com>
1721 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1722 (ctr<mode>): Add unspec.
1723 (ctr<mode>_internal*): Likewise.
1725 2016-07-08 James Bowman <james.bowman@ftdichip.com>
1727 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1728 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1730 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
1732 PR rtl-optimization/71621
1733 * lra-constraints.c (process_alt_operands): Check combination of
1736 2016-07-08 Jason Merrill <jason@redhat.com>
1737 Richard Biener <rguenther@suse.de>
1739 P0145: Refining Expression Order for C++.
1740 * gimplify.c (initial_rhs_predicate_for): New.
1741 (gimplfy_modify_expr): Gimplify RHS before LHS.
1743 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1747 Allow standard error handling to take over when a wrong number
1748 of arguments is presented to __builtin_vec_ld () or
1749 __builtin_vec_st ().
1751 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1753 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1758 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1759 __builtin_aarch64_fmaxv2sf.
1760 (vmaxnmq_f32): Likewise.
1761 (vmaxnmq_f64): Likewise.
1762 (vminnm_f32): Likewise.
1763 (vminnmq_f32): Likewise.
1764 (vminnmq_f64): Likewise.
1766 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1770 enable -mfloat128-hardware by default.
1771 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1772 that IEEE 128-bit hardware support needs.
1773 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1774 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1775 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1776 floating point requires.
1777 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1778 -mfloat128 and -mfloat128-hardware changes.
1780 2016-07-08 Alan Hayward <alan.hayward@arm.com>
1782 PR tree-optimization/71667
1783 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1785 2016-07-08 Martin Liska <mliska@suse.cz>
1788 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1789 folding produces SAVE_EXPRs, thus return false for the type.
1791 2016-07-07 Martin Liska <mliska@suse.cz>
1793 * file-find.c (remove_prefix): New function.
1794 * file-find.h (remove_prefix): Declare the function.
1795 * gcc-ar.c (main): Skip a folder of the wrapper if
1796 a wrapped binary would point to the same file.
1798 2016-07-07 Jan Hubicka <jh@suse.cz>
1800 * tree-scalar-evolution.c (iv_can_overflow_p): export.
1801 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1802 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1804 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1807 * ipa-inline-analysis.c (compute_inline_parameters): Set
1808 local.can_change_signature to false for intrumentation
1811 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1813 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1814 with TARGET_HAVE_MOVT.
1815 (TARGET_HAVE_MOVT): Define.
1816 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1817 availability with TARGET_HAVE_MOVT.
1818 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1820 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1822 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1823 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1824 * config/arm/constraints.md (define_constraint "j"): Use
1825 TARGET_HAVE_MOVT to check MOVT availability.
1827 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1829 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1831 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1833 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1834 (armv8-m.main): Likewise.
1835 (armv8-m.main+dsp): Likewise.
1836 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1837 (FL_FOR_ARCH8M_MAIN): Likewise.
1838 * config/arm/arm-tables.opt: Regenerate.
1839 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1840 armv8-m.main+dsp to BE8_LINK_SPEC.
1841 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1842 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1843 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1844 Baseline and Mainline.
1845 (arm_option_override_internal): Also disable arm_restrict_it when
1846 !arm_arch_notm. Update comment for -munaligned-access to also cover
1848 (arm_file_start): Increase buffer size for printing architecture name.
1849 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1850 and armv8-m.main+dsp.
1851 (mno-unaligned-access): Clarify that this is disabled by default for
1852 ARMv8-M Baseline architectures as well.
1854 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1856 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1857 decide whether to prevent some libgcc routines being included for some
1858 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1859 link between this condition and the one in
1860 libgcc/config/arm/lib1func.S.
1862 2016-07-07 Richard Biener <rguenther@suse.de>
1864 * tree-ssa-pre.c: Include alias.h.
1865 (compute_avail): If we have multiple VN_REFERENCEs with the
1866 same hashtable entry adjust that to make it a valid replacement
1867 for all of them with respect to alignment and aliasing
1868 when doing insertion.
1869 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1870 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1872 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1876 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1877 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1880 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1882 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1883 (adjust_mems): Adjust.
1884 (adjust_insn): Likewise.
1885 (prepare_call_arguments): Likewise.
1887 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1889 * gcse.c (struct ls_expr): Make stores field a vector.
1890 (ldst_entry): Adjust.
1891 (free_ldst_entry): Likewise.
1892 (print_ldst_list): Likewise.
1893 (compute_ld_motion_mems): Likewise.
1894 (update_ld_motion_stores): Likewise.
1896 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1898 * gcse.c (struct ls_expr): Remove loads field.
1899 (ldst_entry): Adjust.
1900 (free_ldst_entry): Likewise.
1901 (print_ldst_list): Likewise.
1902 (compute_ld_motion_mems): Likewise.
1904 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1906 * store-motion.c (struct st_expr): Make antic_stores a vector.
1907 (st_expr_entry): Adjust.
1908 (free_st_expr_entry): Likewise.
1909 (print_store_motion_mems): Likewise.
1910 (find_moveable_store): Likewise.
1911 (compute_store_table): Likewise.
1912 (remove_reachable_equiv_notes): Likewise.
1913 (replace_store_insn): Likewise.
1914 (build_store_vectors): Likewise.
1916 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1918 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1919 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1921 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1923 PR tree-optimization/71518
1924 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1925 misalign also for outer loops with negative step.
1927 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
1929 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1930 (cortex_a53_shift): Add mov_shift.
1931 (cortex_a53_shift_reg): Add new reservation for register shifts.
1932 (cortex_a53_alu): Remove bfm.
1933 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1934 (cortex_a53_alu_extr): Add new reservation for EXTR.
1935 (bypasses): Improve bypass modelling.
1937 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1940 * config/avr/avr.c (avr_asm_select_section): Strip off
1941 SECTION_DECLARED from flags when calling get_section.
1943 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1945 * tree-vectorizer.h (vect_memory_access_type): Add
1946 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1947 * tree-vect-stmts.c (compare_step_with_zero): New function.
1948 (perm_mask_for_reverse): Move further up file.
1949 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1951 (get_negative_load_store_type): New function.
1952 (get_load_store_type): Call it. Add an ncopies argument.
1953 (vectorizable_mask_load_store): Update call accordingly and
1954 remove tests for negative steps.
1955 (vectorizable_store, vectorizable_load): Likewise. Handle new
1956 memory_access_types.
1958 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1960 * tree-vectorizer.h (vect_memory_access_type): New enum.
1961 (_stmt_vec_info): Add a memory_access_type field.
1962 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1963 (vect_model_store_cost): Take an access type instead of a boolean.
1964 (vect_model_load_cost): Likewise.
1965 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1966 vect_model_store_cost and vect_model_load_cost.
1967 * tree-vect-stmts.c (vec_load_store_type): New enum.
1968 (vect_model_store_cost): Take an access type instead of a
1969 store_lanes_p boolean. Simplify tests.
1970 (vect_model_load_cost): Likewise, but for load_lanes_p.
1971 (get_group_load_store_type, get_load_store_type): New functions.
1972 (vectorizable_store): Use get_load_store_type. Record the access
1973 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1974 (vectorizable_load): Likewise.
1975 (vectorizable_mask_load_store): Likewise. Replace is_store
1976 variable with vls_type.
1978 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1980 * tree-vectorizer.h (vect_grouped_load_supported): Add a
1981 single_element_p parameter.
1982 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1983 Check the PR65518 case here rather than in vectorizable_load.
1984 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1985 * tree-vect-stmts.c (vectorizable_load): Likewise.
1987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1989 * tree-vectorizer.h (gather_scatter_info): New structure.
1990 (vect_check_gather_scatter): Return a bool rather than a decl.
1991 Replace return-by-pointer arguments with a single
1992 gather_scatter_info *.
1993 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
1994 (vect_analyze_data_refs): Update call accordingly.
1995 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
1996 (vectorizable_mask_load_store): Likewise. Also record the
1997 offset dt and vectype in the gather_scatter_info.
1998 (vectorizable_store): Likewise.
1999 (vectorizable_load): Likewise.
2001 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2003 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2004 strided groups, use the cost of N scalar accesses instead
2005 of ncopies vector accesses.
2006 (vect_model_load_cost): Likewise.
2008 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2010 * tree-vect-stmts.c (vect_cost_group_size): Delete.
2011 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
2012 variable to indicate when once-per-group costs are being used.
2013 (vect_model_load_cost): Likewise. Fix comment and misindented code.
2015 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2017 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2018 peeling-for-gaps condition.
2020 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2022 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2023 element to register if it doesn't match general_operand.
2025 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2026 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2028 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2030 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2031 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2032 (SIGNBIT): New mode iterator.
2033 (Fsignbit): New mode attribute.
2034 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2035 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2036 when direct moves are available.
2037 (signbit<mode>2_dm): New define_insn_and_split).
2038 (signbit<mode>2_dm2): New define_insn.
2040 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2042 PR rtl-optimization/71594
2043 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2044 into subregs of appropriate mode before trying to emit a conditional
2047 2016-07-05 Jan Hubicka <jh@suse.cz>
2049 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2050 (simple_iv): Use it.
2052 2016-07-05 Jan Hubicka <jh@suse.cz>
2054 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2056 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2058 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2061 2016-07-05 Jan Hubicka <jh@suse.cz>
2063 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2066 2016-07-05 Richard Biener <rguenther@suse.de>
2068 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2069 Handle empty else block.
2070 (is_feasible_trace): Likewise.
2071 (split_paths): Likewise.
2073 2016-07-05 Richard Biener <rguenther@suse.de>
2075 * tree-loop-distribution.c (distribute_loop): Fix issue with
2076 the cost model loop.
2078 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2080 * config/arm/neon-testgen.ml: Delete.
2081 * config/arm/neon.ml: Delete.
2083 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2086 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2087 directly using TREE_PURPOSE.
2089 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2091 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2092 * config/aarch64/aarch64_neon.h: Likewise.
2093 * config/aarch64/arm_neon.h: Likewise.
2094 * config/aarch64/atomics.md: Likewise.
2095 * config/aarch64/aarch64-simd-builtins.def: Likewise.
2096 * doc/invoke.texi: Likewise.
2098 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2100 * config/s390/s390.md: Add "z13" cpu_facility.
2101 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2102 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2103 condition" type instructions.
2105 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2106 Jeff Law <law@redhat.com>
2108 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2109 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2111 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2113 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2114 permutation for TARGET_AVX512F.
2115 (ix86_expand_vec_one_operand_perm_avx512): New function.
2116 (expand_vec_perm_1): Invoke introduced function.
2117 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2118 it may be not valid after vectorization.
2120 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2123 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2124 typo in comment. Only force to memory if it is a weak
2127 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2128 Jiong Wang <jiong.wang@arm.com>
2130 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2131 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2132 (AARCH64_FL_F16): New.
2133 (AARCH64_FL_FOR_ARCH8_2): New.
2134 (AARCH64_ISA_8_2): New.
2135 (AARCH64_ISA_F16): New.
2136 (TARGET_FP_F16INST): New.
2137 (TARGET_SIMD_F16INST): New.
2138 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2139 ("fp"): Disabling "fp" also disables "fp16".
2140 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2141 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2142 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2143 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2145 2016-07-04 Jan Beulich <jbeulich@suse.com>
2147 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2149 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2152 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2153 the insns, use an insn form that does not adjust the offset on
2154 little endian systems.
2156 2016-07-01 Jan Beulich <jbeulich@suse.com>
2158 * varasm.c (get_variable_section): Validate initializer in
2159 named .bss-like sections.
2161 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2163 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2164 Exchange the order of the second and third operands in the vpermr
2165 instruction tmeplate.
2167 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2170 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2171 Disallow TDmode values.
2173 2016-07-01 Alan Modra <amodra@gmail.com>
2175 PR rtl-optimization/71709
2176 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2177 being set, not referenced.
2179 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2181 PR tree-optimization/70729
2182 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2183 of loop since it can be not valid after transformation.
2185 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2187 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2188 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2190 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2195 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2198 * config/rs6000/constraints.md (wY constraint): New constraint to
2199 match the requirements for the LXSD and STXSD instructions.
2200 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2201 predicate to match the requirements for the LXSD and STXSD
2203 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2204 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2205 to make sure that the bottom 2 bits of offset are 0, the address
2206 form is offsettable, and no updating is done in the address mode.
2207 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2208 (movdi_internal32): Likewise
2209 (movdi_internal64): Likewise.
2211 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2213 PR tree-optimization/71707
2214 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2215 strinfo even for ADDR_EXPR ptr.
2217 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2219 * config/rs6000/altivec.md (darn_32): Change the condition to
2220 TARGET_P9_MISC instead of TARGET_MODULO.
2221 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2222 condition expression.
2223 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2224 condition expression.
2225 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2226 (DFP_TEST): New code iterator.
2227 (dfptstsfi_<code>_mode>): New define_expand.
2228 (*dfp_sgnfcnc_<mode>): New define_insn.
2229 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2230 definition next to BU_P9_MISC_1 definition and change the MASK
2231 value to RS6000_BTM_P9_MISC.
2232 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2233 (BU_P9_64BIT_MISC_0): Likewise.
2234 (BU_P9_DFP_MISC_0): New macro definition.
2235 (BU_P9_DFP_MISC_1): New macro definition.
2236 (BU_P9_DFP_MISC_2): New macro definition.
2237 (BU_P9_DFP_OVERLOAD_1): New macro definition.
2238 (BU_P9_DFP_OVERLOAD_2): New macro definition.
2239 (BU_P9_DFP_OVERLOAD_3): New macro definition.
2240 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2241 (TSTSFI_LT_TD): Likewise.
2242 (TSTSFI_EQ_DD): Likewise.
2243 (TSTSFI_EQ_TD): Likewise.
2244 (TSTSFI_GT_DD): Likewise.
2245 (TSTSFI_GT_TD): Likewise.
2246 (TSTSFI_OV_DD): Likewise.
2247 (TSTSFI_OV_TD): Likewise.
2248 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2249 (TSTSFI_LT_DD): Likewise.
2250 (TSTSFI_LT_TD): Likewise.
2251 (TSTSFI_EQ): Likewise.
2252 (TSTSFI_EQ_DD): Likewise.
2253 (TSTSFI_EQ_TD): Likewise.
2254 (TSTSFI_GT): Likewise.
2255 (TSTSFI_GT_DD): Likewise.
2256 (TSTSFI_GT_TD): Likewise.
2257 (TSTSFI_OV): Likewise.
2258 (TSTSFI_OV_DD): Likewise.
2259 (TSTSFI_OV_TD): Likewise.
2260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2261 overloaded test significance functions.
2262 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2263 OPTION_MASK_P9_MISC into the representation of this mask.
2264 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2266 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2267 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2269 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2270 argument is a 6-bit unsigned literal value if the icode argument
2271 represents a DFP test significance built-in call.
2272 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2273 flag used independently and in combination with the
2274 RS6000_BTM_64BIT flag.
2275 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2276 (rs6000_builtin_mask_names): Add entry for power9-misc
2277 command-line option.
2278 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2279 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2280 RS6000_BTM_P9_MISC macros.
2281 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2282 option and change the description of the -mpower9-vector option to
2283 enable only vector instructions, removing its erroneously claimed
2284 support for scalar instructions.
2285 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2286 the ISA 3.0 digital floating point test significance built-in
2289 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2291 * config/aarch64/aarch64.c (cortexa35_tunings):
2292 Enable AES fusion. Use cortexa57_branch_cost.
2293 (cortexa53_tunings): Use cortexa57_branch_cost.
2294 (cortexa72_tunings): Use cortexa57_branch_cost.
2295 Use AUTOPREFETCHER_WEAK.
2296 (cortexa73_tunings): Use cortexa57_branch_cost.
2298 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2299 James Greenhalgh <james.greenhalgh@arm.com>
2301 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2302 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2303 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2304 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2305 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2306 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2307 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2308 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2309 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2310 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2311 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2312 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2313 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2316 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2317 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2319 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2321 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2323 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2326 * gcc.c (driver::build_option_suggestions): Pass "option" to
2327 add_misspelling_candidates.
2328 * opts-common.c (add_misspelling_candidates): Add "option" param;
2329 use it to avoid adding negated forms for options marked with
2331 * opts.h (add_misspelling_candidates): Add "option" param.
2333 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2336 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2337 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2338 first when permuting bitwise operation with rotate. Cast
2339 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2341 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2343 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2344 for misspelled param names.
2345 * params.c: Include spellcheck.h.
2346 (find_param_fuzzy): New function.
2347 * params.h (find_param_fuzzy): New prototype.
2348 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2349 * spellcheck.h (struct edit_distance_traits<const char *>):
2352 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2354 * config/rs6000/predicates.md (const_0_to_7_operand): New
2355 predicate, recognize 0..7.
2356 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2357 support for doing extracts from V16QImode, V8HImode, V4SImode
2359 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2360 vector extract support.
2361 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2362 for ISA 3.0 vector extract.
2363 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2364 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2365 extracts of a constant element number from small integer vectors
2366 on 64-bit ISA 3.0 systems.
2367 (vsx_extract_<mode>_di): Likewise.
2368 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2369 say when we can do ISA 3.0 vector extracts.
2370 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2371 registers, using the stxsiwx instruction.
2373 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
2375 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2376 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2377 qdf24xx_regmove_cost, qdf24xx_tunings): New.
2378 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2379 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2380 * config/arm/arm.c (arm_qdf24xx_tune): New.
2382 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
2384 * config/aarch64/aarch64.c (cortexa53_tunings):
2385 Increase loop alignment to 8. Set function alignment to 16.
2386 (cortexa35_tunings): Likewise.
2387 (cortexa57_tunings): Increase loop alignment to 8.
2388 (cortexa72_tunings): Likewise.
2389 (cortexa73_tunings): Likewise.
2391 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
2393 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2394 for arm_fp16_ok and arm_fp16_hw.
2395 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2396 arm_fp16_alternative.
2398 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
2400 PR tree-optimization/71655
2401 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2402 types when swapping operands.
2404 2016-06-29 Martin Liska <mliska@suse.cz>
2407 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2408 * ipa-inline-transform.c (inline_call): Remove unnecessary call
2409 of build_optimization_node.
2411 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2413 PR tree-optimization/70729
2414 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2415 independent in loops having positive safelen value.
2416 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2417 it may be not valid after vectorization.
2419 2016-06-29 Jakub Jelinek <jakub@redhat.com>
2421 PR tree-optimization/71625
2422 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
2423 is sorted by ascending list->offset. If PTR is non-NULL and there is
2424 previous strinfo, call get_stridx_plus_constant.
2425 (get_stridx): Pass exp as second argument to get_addr_stridx.
2426 (addr_stridxptr): Add missing list = list->next, so that there can be
2427 more than one entries in the list. Bump limit from 16 to 32. Ensure
2428 the list is sorted by ascending list->offset.
2429 (get_stridx_plus_constant): Adjust so that it can be also called with
2430 ADDR_EXPR instead of SSA_NAME as PTR.
2431 (handle_char_store): Pass NULL_TREE as second argument to
2434 2016-06-29 Richard Biener <rguenther@suse.de>
2436 PR rtl-optimization/68961
2437 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2439 2016-06-29 Richard Biener <rguenther@suse.de>
2442 * alias.c (component_uses_parent_alias_set_from): Handle
2443 type punning through union accesses by using the union alias set.
2444 * gimple.c (gimple_get_alias_set): Remove union type punning case.
2446 2016-07-29 Richard Biener <rguenther@suse.de>
2448 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2449 precision not matching mode precision.
2451 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
2453 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2454 pa_output_arg_descriptor.
2455 (call_val_symref_64bit_post_reload): Likewise.
2456 (call_val_powf_64bit_post_reload): Likewise.
2457 (sibcall_internal_symref_64bit): Likewise.
2458 (sibcall_value_internal_symref_64bit): Likewise.
2460 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2463 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2464 a constant, force its SUBREG_REG into memory or register instead
2467 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2470 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2471 * doc/invoke.texi (AVR Options): Document it.
2473 2016-06-28 Walter Lee <walt@tilera.com>
2475 * config/tilegx/linux.h: Do not include arch/icache.h
2476 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2477 * config/tilepro/linux.h: Do not include arch/icache.h
2478 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2480 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2482 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2483 for big-endian BIT_FIELD_REF.
2485 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2487 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2488 ('size' attribute): Add '128'.
2490 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2491 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2492 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2493 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2494 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2495 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2496 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2497 *trunc<mode>df2_odd): Set size attribute to '128'.
2498 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2499 * config/rs6000/power6.md (power6-fp): Include dfp type.
2500 * config/rs6000/power7.md (power7-fp): Likewise.
2501 * config/rs6000/power8.md (power8-fp): Likewise.
2502 * config/rs6000/power9.md: New file.
2503 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2504 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2505 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2507 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2508 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2509 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2510 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2511 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2512 dfp_dscri_<mode>): Change type attribute to dfp.
2513 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2514 attribute to vecsimple.
2515 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2516 and prefetch streams.
2517 (rs6000_option_override_internal): Remove temporary code setting
2518 tuning to power8. Don't set rs6000_sched_groups for power9.
2519 (last_scheduled_insn): Change to rtx_insn *.
2520 (divide_cnt, vec_load_pendulum): New variables.
2521 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2522 (rs6000_issue_rate): Set issue rate for Power9.
2523 (is_power9_pairable_vec_type): New.
2524 (power9_sched_reorder2): New.
2525 (rs6000_sched_reorder2): Call new function for Power9 specific
2527 (insn_must_be_first_in_group): Remove Power9.
2528 (insn_must_be_last_in_group): Likewise.
2529 (force_new_group): Likewise.
2530 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2531 Initialize divide_cnt/vec_load_pendulum.
2532 (_rs6000_sched_context, rs6000_init_sched_context,
2533 rs6000_set_sched_context): Handle context save/restore of new
2536 2016-06-28 Richard Biener <rguenther@suse.de>
2538 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2539 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2540 COMPONENT_REF operand.
2541 (nonoverlapping_component_refs_p): Likewise.
2542 * stor-layout.c (start_bitfield_representative): Mark
2543 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2545 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2547 * Makefile.in: Don't cat ../stage_current if it does not exist.
2549 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2550 last argument is a bit-field.
2552 PR rtl-optimization/71673
2553 * internal-fn.c (expand_arith_overflow_result_store): Use
2554 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2555 expand_simple_binop.
2558 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2559 expand_ifn_atomic_compare_exchange): New functions.
2560 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2561 * tree.h (build_call_expr_internal_loc): Rename to ...
2562 (build_call_expr_internal_loc_array): ... this. Fix up type of
2564 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2565 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2566 ATOMIC_COMPARE_EXCHANGE result.
2567 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2568 * gimple-fold.h (optimize_atomic_compare_exchange_p,
2569 fold_builtin_atomic_compare_exchange): New prototypes.
2570 * gimple-fold.c (optimize_atomic_compare_exchange_p,
2571 fold_builtin_atomic_compare_exchange): New functions..
2572 * tree-ssa.c (execute_update_addresses_taken): If
2573 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2574 of call when finding addressable vars, and if such var becomes
2575 non-addressable, call fold_builtin_atomic_compare_exchange.
2577 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2580 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2581 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2583 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2585 * config/rs6000/rs6000.md ('type' attribute): Add
2586 veclogical,veccmpfx,vecexts,vecmove insn types.
2587 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2588 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2589 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2590 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2591 *nabs<mode>2_hw): Change type to vecmove.
2592 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2593 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2594 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2595 *ieee_128bit_vsx_abs<mode>2_internal,
2596 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2597 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2598 *ieee128_mtvsrd_32bit): Change type to veclogical.
2599 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2600 *movdi_internal32, *movdi_internal64): Update insn types.
2601 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2602 vsx_extract_<mode>): Change type to veclogical.
2603 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2604 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2605 *vsx_sign_extend_si_v2di): Change type to vecexts.
2606 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2608 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2609 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2610 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2611 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2612 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2613 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2614 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2615 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2616 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2617 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2618 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2619 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2620 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2621 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2622 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2623 (ppc7450-vecsimple): Add veclogical, vecmove.
2624 (ppc7450-veccmp): Add veccmpfx.
2625 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2627 (ppc8540_vector_compare): Add veccmpfx.
2628 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2629 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2630 (cell-vecsimple): Add veclogical, vecmove.
2631 (cell-veccmp): Add veccmpfx.
2632 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2633 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2635 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2636 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2637 (power4-vecsimple): Add veclogical, vecmove.
2638 (power4-veccmp): Add veccmpfx.
2639 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2640 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2641 (power6-vecsimple): Add veclogical, vecmove.
2642 (power6-veccmp): Add veccmpfx.
2643 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2644 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2645 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2646 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2647 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2648 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2649 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2651 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2653 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2656 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2657 OPTION_MASK_P9_DFORM_VECTOR.
2658 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2659 disable -mpower9-dform-vector when using reload.
2660 (quad_address_p): Remove 'gpr_p' argument and all associated code.
2661 New 'strict' argument. Update all callers. Add strict addressing
2663 (rs6000_legitimate_offset_address_p): Remove call to
2664 virtual_stack_registers_memory_p.
2665 (rs6000_legitimize_reload_address): Add quad address support.
2666 (rs6000_legitimate_address_p): Move call to quad_address_p above
2667 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
2668 to account for new strict usage.
2669 (rs6000_output_move_128bit): Adjust quad_address_p args to account
2670 for new strict usage.
2671 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2673 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
2680 * config/i386/i386.c (ix86_spill_class): Disable condition to
2681 always return NO_REGS.
2683 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2685 * predict.c: Include gimple-pretty-print.h
2686 (predicted_by_loop_heuristics_p): Check also
2687 PRED_LOOP_EXIT_WITH_RECURSION
2688 (predict_loops): Find self recursive calls and use special purpose
2689 predictors for them; dump log about decisions.
2690 (pass_profile::execute): Dump info about #of iterations.
2691 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2692 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2694 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
2696 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2697 output_asm_insn calls and shorten long lines. Output .CALL
2698 argument descriptor using pa_output_arg_descriptor. Add various
2699 inline $$dyncall and other optimizations.
2700 (pa_attr_length_indirect_call): Adjust ordering and lengths.
2702 2016-06-25 Jakub Jelinek <jakub@redhat.com>
2704 PR tree-optimization/71643
2705 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2708 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2709 leak a bitmap if dep_bb is NULL.
2711 PR tree-optimization/71631
2712 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2713 to rewrite_expr_tree even if negate_result, move new_lhs var
2714 declaration and initialization earlier, for powi_result set afterwards
2715 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
2716 if new_lhs != lhs, and don't shadow gsi var.
2718 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2720 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2721 Add in_loop parameter.
2722 (predict_loops): Add loop guard heuristics.
2723 * predict.def (PRED_LOOP_GUARD): New heuristics.
2725 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2727 * predict.c: Include ipa-utils.h
2728 (tree_bb_level_prediction): Predict recursive calls.
2729 (tree_estimate_probability_bb): Skip inexpensive calls for call
2731 * predict.def (PRED_RECURSIVE_CALL): New.
2733 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2735 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2736 (BU_FLOAT128_1): Likewise.
2738 (COPYSIGNQ): Likewise.
2739 (RS6000_BUILTIN_NANQ): Likewise.
2740 (RS6000_BUILTIN_NANSQ): Likewise.
2741 (RS6000_BUILTIN_INFQ): Likewise.
2742 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2743 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2744 (TARGET_FOLD_BUILTIN): New #define.
2745 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2746 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2747 (rs6000_fold_builtin): New target hook implementation, handling
2748 folding of 128-bit NaNs and infinities.
2749 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2750 entries are filled in to avoid problems during bootstrap
2751 self-test; define builtins for 128-bit NaNs and infinities.
2752 (rs6000_opt_mask): Add entry for float128.
2753 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2754 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2755 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2756 (const_str_type_node): New #define.
2757 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2758 to a define_expand that dispatches to either copysign<mode>3_soft
2759 or copysign<mode>3_hard.
2760 (copysign<mode>3_hard): Rename from copysign<mode>3.
2761 (copysign<mode>3_soft): New define_insn.
2762 * doc/extend.texi: Document new builtins.
2764 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2766 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2767 PRIu64 instead of lu.
2769 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
2772 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2775 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2777 PR tree-optimization/71647
2778 * omp-low.c (lower_rec_input_clauses): Convert
2779 omp_clause_aligned_alignment (c) to size_type_node for the
2780 last argument of __builtin_assume_aligned.
2782 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
2784 * configure.ac (calling ___tls_get_addr via GOT): New
2785 assembler/linker check.
2786 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
2787 assembler and linker supports calling ___tls_get_addr via GOT.
2788 Otherise, defined to 0.
2789 * config.in: Regenerated.
2790 * configure: Likewise.
2791 * config/i386/constraints.md (Yb): New constraint.
2792 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2793 (REG_CLASS_NAMES): Likewise.
2794 (REG_CLASS_CONTENTS): Likewise.
2795 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2796 the b constraint with the Yb constraint. Call ___tls_get_addr
2797 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2799 (*tls_local_dynamic_base_32_gnu): Likewise.
2800 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2801 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2802 (*tls_local_dynamic_base_64_<mode>): Likewise.
2804 2016-06-24 Martin Liska <mliska@suse.cz>
2806 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2807 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2809 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2810 argument to true if the expected number of iterations is
2813 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
2815 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2816 assemble for 32bit target.
2817 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2818 and $ld_ix86_gld_32_opt to link for 32bit target.
2819 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2820 * configure: Regenerate.
2822 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2824 * config/arm/arm.c (int_log2): Delete definition and prototype.
2825 (shift_op): Use exact_log2 instead of int_log2.
2826 (vfp3_const_double_for_fract_bits): Likewise.
2828 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2830 * internal-fn.c (expand_arith_set_overflow): New function.
2831 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2833 (expand_arith_overflow_result_store): Likewise. Handle precision
2834 smaller than mode precision.
2835 * tree-vrp.c (extract_range_basic): For imag part, handle
2836 properly signed 1-bit precision result.
2837 * doc/extend.texi (__builtin_add_overflow): Document that last
2838 argument can't be pointer to enumerated or boolean type.
2839 (__builtin_add_overflow_p): Document that last argument can't
2840 have enumerated or boolean type.
2842 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2843 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2845 * config/rs6000/predicates.md (splat_input_operand): Rework.
2846 Don't allow constants, since the insns that use this predicate
2847 don't support constants. Constants are handled by other insns
2848 that are created via combine. During and after register
2849 allocation, only allow indexed or indirect addresses, and not
2850 general addresses. Only allow modes supported by the hardware.
2851 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2852 comment. Move check for using VSPLTIS<x> to a common location,
2853 instead of doing it in two different places.
2855 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
2857 * config/i386/driver-i386.c (host_detect_local_cpu): Set
2858 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2859 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2860 signature_CENTAUR_ebx.
2862 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
2866 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2867 (as_ix86_gas_32_opt): This.
2868 (ld_ix86_tls_ldm_opt): Renamed to ...
2869 (ld_ix86_gld_32_opt): This.
2870 (R_386_TLS_LDM reloc): Updated.
2871 (R_386_GOT32X reloc): New assembler/linker check.
2872 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
2873 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
2875 * config.in: Regenerated.
2876 * configure: Likewise.
2877 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2878 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2879 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2880 if ix86_force_load_from_GOT_p returns true.
2881 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2882 ix86_force_load_from_GOT_p returns true.
2883 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2884 the external function address via the GOT slot.
2885 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2886 HAVE_AS_IX86_GOT32X before returning false.
2887 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2888 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2890 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
2892 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2894 2016-06-23 Andi Kleen <ak@linux.intel.com>
2896 * Makefile.in: Regenerate.
2897 * doc/install.texi: Document autoprofiledbootstrap.
2899 2016-06-23 Andi Kleen <ak@linux.intel.com>
2901 * config/i386/gcc-auto-profile: New file.
2903 2016-06-23 Martin Liska <mliska@suse.cz>
2906 * predict.c (predict_loops): Revert the hunk that was removed
2909 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
2911 * config.gcc: Add support for arm*-*-phoenix* targets.
2912 * config/arm/t-phoenix: New.
2913 * config/phoenix.h: New.
2915 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
2916 H.J. Lu <hongjiu.lu@intel.com>
2919 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2920 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2921 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2922 ix86_force_load_from_GOT_p returns true.
2923 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2924 ix86_force_load_from_GOT_p returns true.
2925 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2926 ix86_force_load_from_GOT_p returns true.
2927 (ix86_expand_move): Load the external function address via the
2928 GOT slot if ix86_force_load_from_GOT_p returns true.
2929 * config/i386/predicates.md (x86_64_immediate_operand): Return
2930 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2931 (x86_64_zext_immediate_operand): Ditto.
2933 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
2935 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2937 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2940 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2941 * diagnostic.c (pedwarn_at_rich_loc): New function.
2942 * spellcheck.h (best_match::best_match): Add a
2943 "best_distance_so_far" optional parameter.
2944 (best_match::set_best_so_far): New method.
2945 (best_match::get_best_distance): New accessor.
2946 (best_match::get_best_candidate_length): New accessor.
2948 2016-06-22 Nick Clifton <nickc@redhat.com>
2950 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2951 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2952 modes are accepted as well.
2953 (ucompare_loc_descriptor): Likewise.
2954 (minmax_loc_descriptor): Likewise.
2955 (clz_loc_descriptor): Likewise.
2956 (popcount_loc_descriptor): Likewise.
2957 (bswap_loc_descriptor): Likewise.
2958 (rotate_loc_descriptor): Likewise.
2959 (mem_loc_descriptor): Likewise.
2960 (loc_descriptor): Likewise.
2962 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2964 * common.opt (fdiagnostics-parseable-fixits): New option.
2965 * diagnostic.c: Include "selftest.h".
2966 (print_escaped_string): New function.
2967 (print_parseable_fixits): New function.
2968 (diagnostic_report_diagnostic): Call print_parseable_fixits.
2969 (selftest::assert_print_escaped_string): New function.
2970 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2971 (selftest::test_print_escaped_string): New function.
2972 (selftest::test_print_parseable_fixits_none): New function.
2973 (selftest::test_print_parseable_fixits_insert): New function.
2974 (selftest::test_print_parseable_fixits_remove): New function.
2975 (selftest::test_print_parseable_fixits_replace): New function.
2976 (selftest::diagnostic_c_tests): New function.
2977 * diagnostic.h (struct diagnostic_context): Add field
2978 "parseable_fixits_p".
2979 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2980 -fdiagnostics-parseable-fixits.
2981 (-fdiagnostics-parseable-fixits): New option.
2982 * opts.c (common_handle_option): Handle
2983 -fdiagnostics-parseable-fixits.
2984 * selftest-run-tests.c (selftest::run_tests): Call
2985 selftest::diagnostic_c_tests.
2986 * selftest.h (selftest::diagnostic_c_tests): New prototype.
2988 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
2990 PR tree-optimization/71488
2991 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
2992 comparison of boolean vectors.
2993 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
2994 of boolean vectors using bitwise operations.
2996 2016-06-22 Andreas Schwab <schwab@suse.de>
2998 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3001 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
3003 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3005 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3007 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3010 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3012 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3013 * config/arm/arm-cores.def (cortex-a73): New entry.
3014 (cortex-a73.cortex-a35): Likewise.
3015 (cortex-a73.cortex-a53): Likewise.
3016 * config/arm/arm-tables.opt: Regenerate.
3017 * config/arm/arm-tune.md: Likewise.
3018 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3019 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3020 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3021 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3022 * doc/invoke.texi (ARM Options): Document cortex-a73,
3023 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3025 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3027 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3028 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3029 (cortex-a73.cortex-a35): Likewise.
3030 (cortex-a73.cortex-a53): Likewise.
3031 * config/aarch64/aarch64-tune.md: Regenerate.
3032 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3033 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3036 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038 * configure.ac (gcc_cv_as_compress_debug): Remove
3039 --compress-debug-sections as extra as switch.
3040 Handle gas --compress-debug-sections=type.
3041 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3042 Handle gld --compress-debug-sections=type.
3043 * configure: Regenerate.
3045 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3047 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3049 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3051 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3052 (do_rewrite): likewise.
3054 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3056 * common/config/mep/mep-common.c: Remove.
3057 * config.gcc: Remove mep-* support.
3058 * config/mep/constraints.md: Remove.
3059 * config/mep/default.h: Remove.
3060 * config/mep/intrinsics.h: Remove.
3061 * config/mep/intrinsics.md: Remove.
3062 * config/mep/ivc2-template.h: Remove.
3063 * config/mep/mep-c5.cpu: Remove.
3064 * config/mep/mep-core.cpu: Remove.
3065 * config/mep/mep-default.cpu: Remove.
3066 * config/mep/mep-ext-cop.cpu: Remove.
3067 * config/mep/mep-intrin.h: Remove.
3068 * config/mep/mep-ivc2.cpu: Remove.
3069 * config/mep/mep-pragma.c: Remove.
3070 * config/mep/mep-protos.h: Remove.
3071 * config/mep/mep.c: Remove.
3072 * config/mep/mep.cpu: Remove.
3073 * config/mep/mep.h: Remove.
3074 * config/mep/mep.md: Remove.
3075 * config/mep/mep.opt: Remove.
3076 * config/mep/predicates.md: Remove.
3077 * config/mep/t-mep: Remove.
3078 * doc/install.texi: Remove mep-* documentation.
3079 * doc/md.texi: Likewise.
3081 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3083 * config.gcc: Remove support for avr-rtems.
3084 * config/avr/gen-avr-mmcu-specs.c: Likewise.
3085 * config/avr/rtems.h: Remove.
3086 * config/avr/t-rtems: Remove.
3088 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3090 * config.gcc: Remove m32r-rtems support.
3091 * config/m32r/rtems.h: Remove.
3093 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3095 * config.gcc: Remove h8300-rtems support.
3096 * config/h8300/rtems.h: Remove.
3097 * config/h8300/t-rtems: Remove.
3099 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3101 * config.gcc: Remove support for knetbsd.
3102 * configure.ac: Likewise.
3103 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
3104 * config/knetbsd-gnu.h: Remove.
3105 * configure: Regenerate.
3107 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3109 * config.gcc: Remove support for openbsd 2 and 3.
3110 * config/openbsd-oldgas.h: Remove.
3112 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3114 * config.gcc: Remove interix support.
3115 * config/i386/i386-interix.h: Remove.
3116 * config/i386/interix.opt: Remove.
3117 * config/i386/t-interix: Remove.
3118 * configure: Regenerate.
3119 * configure.ac: Remove interix support.
3120 * doc/install.texi: Remove interix documentation.
3122 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3124 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3125 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3128 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3130 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3131 they are both PLACEHOLDER_EXPRs.
3133 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3135 * stor-layout.c (layout_type): Move setting complex MODE to
3136 layout_type, instead of setting it ahead of time by the caller.
3137 * tree.c (build_complex_type): Likewise.
3139 2016-06-21 Martin Liska <mliska@suse.cz>
3141 * predict.c (force_edge_cold): Replace imposisble with
3144 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3146 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3147 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3149 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3151 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3153 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3154 Ilya Enkovich <ilya.enkovich@intel.com>
3157 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3158 New member function to convert V1TImode register to SUBREG
3159 TImode in debug insn.
3160 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3161 after changing register mode to V1TImode.
3163 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3165 * config/aarch64/aarch64-cores.def (vulcan): New core.
3166 * config/aarch64/aarch64-tune.md: Regenerate.
3167 * doc/invoke.texi: Document vulcan as an available option.
3169 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3171 * cse.c (canon_asm_operands): New function extracted from...
3172 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
3173 either standalone or member of a PARALLEL.
3175 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3178 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3179 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3180 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3182 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3185 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3186 constant addresses if can_create_pseudo_p.
3188 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3190 PR tree-optimization/71588
3191 * tree-ssa-strlen.c (valid_builtin_call): New function.
3192 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3195 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3198 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3199 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3200 for conversion of scalar user var to complex type and use the
3201 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
3204 PR rtl-optimization/71591
3205 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3206 don't run any tests.
3208 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3211 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3212 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
3213 space for PIC with non-v32 and the common non-PIC "jump".
3215 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3218 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3219 returned values and add UN*/LTGT/*ORDERED cases with values matching
3220 D operand modifier on vcmp for AVX.
3222 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3224 * config/aarch64/aarch64.opt
3225 (mpc-relative-literal-loads): Rename internal option name.
3226 * config/aarch64/aarch64.c
3227 (aarch64_nopcrelative_literal_loads): Rename to
3228 aarch64_pcrelative_literal_loads.
3229 (aarch64_expand_mov_immediate): Likewise.
3230 (aarch64_secondary_reload): Likewise.
3231 (aarch64_can_use_per_function_literal_pools_p): Likewise.
3232 (aarch64_override_options_after_change_1): Rename and simplify logic.
3233 (aarch64_classify_symbol): Merge large model checks into switch,
3234 remove pc-relative load check.
3236 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3238 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3239 costs relative to the cost of a register move.
3241 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3243 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3244 (vcvt_n_f64_u64): Likewise.
3245 (vcvt_n_s64_f64): Likewise.
3246 (vcvt_n_u64_f64): Likewise.
3247 (vcvt_f64_s64): Likewise.
3248 (vrecpe_f64): Likewise.
3249 (vcvt_f64_u64): Likewise.
3250 (vrecps_f64): Likewise.
3252 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3254 * config/aarch64/aarch64.md
3255 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3257 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3259 * config/aarch64/aarch64-builtins.c
3260 (aarch64_types_binop_uss_qualifiers): Delete.
3261 (TYPES_BINOP_USS): Likewise.
3262 (aarch64_types_binop_sus_qualifiers): Likewise.
3263 (TYPES_BINOP_SUS): Likewise.
3264 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3265 (TYPES_FCVTIMM_SUS): Likewise.
3266 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3268 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3269 (fcvtzs): Use SHIFTIMM rather than BINOP.
3270 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3272 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3274 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3275 costs relative to the cost of a register move.
3277 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3279 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3280 Allow scalar/single vector modes to be tieable.
3282 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3284 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3286 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3288 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3290 * tree.h (TYPE_ALIGN): Likewise.
3292 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3295 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3297 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3299 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3300 literal" build warnings.
3301 (avr_print_operand_address): Dito.
3303 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3306 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3307 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3309 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3311 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3313 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3316 * reload1.c (reload): Pass 0 to finish_spills when called because
3317 update_eliminables_and_spill returns true and remove did_spill.
3318 (finish_spills): Adjust comment and document GLOBAL parameter.
3320 2016-06-17 DJ Delorie <dj@redhat.com>
3323 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3324 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3325 (umulqihi3_virt): Likewise.
3326 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3327 (umulqihi3_real): Likewise.
3329 2016-06-17 Martin Liska <mliska@suse.cz>
3331 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3333 2016-06-17 Martin Liska <mliska@suse.cz>
3335 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3337 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3339 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3341 (vaddq_f32): Likewise.
3342 (vmul_f32): Likewise.
3343 (vmulq_f32): Likewise.
3344 (vsub_f32): Likewise.
3345 (vsubq_f32): Likewise.
3347 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3349 PR tree-optimization/71347
3350 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3351 cost for all uses in group.
3353 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3355 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3356 insert gimple seq if it's not empty.
3358 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3360 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3362 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3364 (comp_dr_with_seg_len_pair): Ditto.
3365 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
3366 struct dr_with_seg_len_pair against DR_OFFSET.
3367 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3370 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
3372 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3374 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
3376 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3377 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3378 (pa_output_millicode_call): Likewise.
3379 (pa_output_call): Likewise.
3380 (pa_output_indirect_call): Likewise.
3381 (pa_asm_output_mi_thunk): Likewise.
3383 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3385 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3387 2016-06-16 Martin Liska <mliska@suse.cz>
3389 * predict.c (combine_predictions_for_insn): When we find a first
3390 match predictor, we should consider just predictors with
3391 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
3392 DS theory predictor.
3393 (combine_predictions_for_bb): Likewise.
3395 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3397 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3398 with base of reference to struct.
3400 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3402 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3404 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3407 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3408 progmem_swtable_section.
3409 (progmem_swtable_section): Remove.
3410 (avr_asm_function_rodata_section): Remove.
3411 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3412 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3414 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
3416 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3417 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3418 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3419 signature_CENTAUR_ebx.
3420 * config/i386/i386.c (ix86_option_override_internal): Add
3421 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3422 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3423 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3425 2016-06-16 Martin Liska <mliska@suse.cz>
3427 * predict.def: Add fortran loop preheader predictor.
3428 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3429 fold IFN_BUILTIN_EXPECT with a known constant argument.
3431 2016-06-16 Martin Liska <mliska@suse.cz>
3433 * predict.def: Add 'Fortran' to display text of all
3434 PRED_FORTRAN_* predictors.
3436 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3439 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3440 [IA64_BUILTIN_NANSQ]: Ditto.
3441 (ia64_fold_builtin): New function.
3442 (TARGET_FOLD_BUILTIN): New define.
3443 (ia64_init_builtins) Declare const_string_type node.
3444 Add __builtin_nanq and __builtin_nansq builtin functions.
3445 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3447 2016-06-16 Nick Clifton <nickc@redhat.com>
3449 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3450 MSP430_HWMULT_ prefix to enum values.
3451 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3452 * config/msp430/msp430.c: Update use of enum values.
3453 * config/msp430/msp430.md: Likewise.
3454 * config/msp430/msp430.opt: Likewise.
3456 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
3458 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3459 of comparsions in the last iteration.
3461 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3462 Joern Rennecke <joern.rennecke@embecosm.com>
3464 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3466 (arc_needs_pcl_p): Add GOTOFFPC.
3467 (arc_legitimate_pic_addr_p): Likewise.
3468 (arc_output_pic_addr_const): Likewise.
3469 (arc_legitimize_pic_address): Generate a pc-relative address using
3471 (arc_output_libcall): Use @pcl syntax.
3472 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3473 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3474 (*movsi_insn): Use @pcl syntax.
3475 (doloop_begin_i): Likewise.
3477 2016-06-16 Martin Liska <mliska@suse.cz>
3479 * predict.def: Define a new predictor.
3481 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3483 * config/arc/arc.opt (mtp-regno): Update text.
3485 2016-06-16 Renlin Li <renlin.li@arm.com>
3487 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3489 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3492 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3493 (setcc + and peephole2): Likewise.
3495 PR rtl-optimization/71532
3496 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3499 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3501 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3502 DImode constants with XXSPLTIB in vector registers.
3503 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3504 vsx_extract_<mode>_internal{1,2} into a single insn that handles
3505 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3506 extraction of the element at the top of the register as a scalar
3508 (vsx_extract_<mode>_internal1): Likewise.
3509 (vsx_extract_<mode>_internal2): Likewise.
3510 * config/rs6000/constraints.md (wi constraint): Remove a comment
3511 about DImode not being allowed in Altivec registers.
3512 (wB constraint): New constraint for constants that can be
3513 generated in Altivec registers with VSPLTISW/VUPKHSW.
3514 * config/rs6000/predicates.md (xxspltib_constant_split): Update
3516 (xxspltib_constant_nosplit): Likewise.
3517 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3518 support for -mupper-regs-di to enable DImode to go into Altivec
3520 (POWERPC_MASKS): Likewise.
3521 (power7 cpu): Likewise.
3522 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3523 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3524 for DImode being allowed in Altivec registers. Update wi/wj
3525 constraints. Set scalar_in_vmx_p flag.
3526 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3527 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
3528 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3529 (rs6000_opt_masks): Add -mupper-regs-di.
3530 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3531 direct move to use wi and not wj.
3533 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3535 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3536 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3537 any VSX register, instead of just Altivec registers, to allow
3538 either operand to be an Altivec register or both.
3539 (fixuns_trunc<mode>di2_fctiduz): Likewise.
3540 (movdi_internal32): Add support for -mupper-regs-di. Add support
3541 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
3542 the alternatives and attributes to be lined up to be easier to
3544 (movdi_internal64): Likewise.
3545 (64-bit DImode splitters): Change predicates to only split loading
3546 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
3547 load constants in ISA 3.0 or ISA 2.07 respectively.
3548 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3549 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
3550 mention -mcpu=power9 sets these options.
3551 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3554 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3557 * config/avr/avr.c (avr_set_current_function): Warn misspelled
3558 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3559 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3560 by default to warn misspelled interrupt/ signal handler.
3561 * doc/invoke.texi (AVR Options): Document it. Update description
3562 for -nodevicelib option.
3564 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3566 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3567 up parentheses. Use GET_MODE_UNIT_BITSIZE.
3568 (aarch64_<sur>shll2_n<mode>): Likewise.
3570 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3573 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3574 DECL_CONTEXT for copied arguments.
3576 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3578 PR tree-optimization/71483
3579 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3582 2016-06-15 Martin Liska <mliska@suse.cz>
3584 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3585 instead of predict_edge w/o a probability.
3587 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3589 PR tree-optimization/71439
3590 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3593 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3595 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3596 register subregs in SET_SRC.
3598 2016-06-15 Richard Biener <rguenther@suse.de>
3600 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3603 2016-06-15 Richard Biener <rguenther@suse.de>
3605 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3606 not consider dependences between accesses that belong to the
3608 (vect_analyze_data_ref_dependences): Do not analyze read-read
3609 or self-dependences.
3611 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3613 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3615 (find_closest_identifier): Reimplement in terms of
3616 best_match<tree,tree>.
3617 * spellcheck-tree.h: New file.
3618 * spellcheck.c (struct edit_distance_traits<const char *>): New
3620 (find_closest_string): Reimplement in terms of
3621 best_match<const char *, const char *>.
3622 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3623 overload to spellcheck-tree.h.
3624 (find_closest_identifier): Likewise.
3625 (struct edit_distance_traits<T>): New template.
3626 (class best_match): New class.
3628 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3630 * selftest-run-tests.c (selftest::run_tests): Call
3631 selftest::spellcheck_tree_c_tests.
3632 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3633 * spellcheck-tree.c: Include selftest.h and stringpool.h.
3634 (selftest::test_find_closest_identifier): New function.
3635 (selftest::spellcheck_tree_c_tests): New function.
3636 * spellcheck.c (selftest::test_find_closest_string): Verify that
3637 the order of the vec does not affect the results for this case.
3638 (selftest::test_data): New array.
3639 (selftest::test_metric_conditions): New function.
3640 (selftest::spellcheck_c_tests): Add a test of case-comparison.
3641 Call selftest::test_metric_conditions.
3643 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3645 * config/rs6000/rs6000-builtin.def (commentary): Typo.
3646 (BU_P9_MISC_1): Likewise.
3647 (BU_P9_64BIT_MISC_0): Likewise.
3648 (BU_P9_MISC_0): Likewise.
3650 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3652 * gcc-rich-location.c
3653 (gcc_rich_location::add_fixit_misspelled_id): New method.
3654 * gcc-rich-location.h
3655 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3657 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
3659 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3660 FreeBSD 11 and above.
3662 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
3664 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3666 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3668 * expmed.h: Close parenthesis in "at your option" in copyright
3670 * lower-subreg.h: Likewise.
3672 2016-06-14 Richard Biener <rguenther@suse.de>
3675 * genmatch.c (expr::gen_transform): Use in_type for comparisons
3678 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3680 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3682 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
3684 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3686 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3687 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3689 2016-06-14 Richard Biener <rguenther@suse.de>
3691 PR tree-optimization/71522
3692 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3693 copying into float copying.
3695 2016-06-14 Jakub Jelinek <jakub@redhat.com>
3697 PR tree-optimization/71520
3698 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3699 (replace_block_by): Move user labels from bb1 to bb2.
3701 2016-06-14 Richard Biener <rguenther@suse.de>
3705 * expr.h (get_bit_range): Declare.
3706 * expr.c (get_bit_range): Export.
3707 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3708 word_mode again to constrain the bitfield access.
3710 2016-06-14 Richard Biener <rguenther@suse.de>
3712 PR tree-optimization/71521
3713 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3714 division int_const_binop against zero divisor.
3716 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3718 * config/i386/i386.md (signbittf2): New expander.
3719 * config/i386/sse.md (ptesttf2): New insn pattern.
3721 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3724 * input.c (selftest::test_reading_source_line): Avoid reading from
3725 __FILE__ by creating a tempfile with known content and reading
3728 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3730 * pretty-print.c (assert_pp_format_colored): Skip the test if
3732 (test_pp_format): Remove comment about GCC_COLORS.
3734 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3736 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3737 * pretty-print.c (assert_pp_format_va): Add location param and use
3738 it with ASSERT_STREQ_AT.
3739 (assert_pp_format): Add location param and pass it to
3740 assert_pp_format_va.
3741 (assert_pp_format_colored): Likewise.
3742 (ASSERT_PP_FORMAT_1): New.
3743 (ASSERT_PP_FORMAT_2): New.
3744 (ASSERT_PP_FORMAT_3): New.
3745 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3746 explicitly, or implicitly via the above macros.
3747 * selftest.c (selftest::pass): Use a selftest::location rather
3749 (selftest::fail): Likewise. Print the function name.
3750 (selftest::fail_formatted): Likewise.
3751 (selftest::assert_streq): Use a selftest::location rather than
3753 * selftest.h (selftest::location): New struct.
3754 (SELFTEST_LOCATION): New macro.
3755 (selftest::pass): Accept a const location & rather than file
3757 (selftest::fail): Likewise.
3758 (selftest::fail_formatted): Likewise.
3759 (selftest::assert_streq): Likewise.
3760 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3761 (ASSERT_FALSE): Likewise.
3762 (ASSERT_EQ): Likewise.
3763 (ASSERT_NE): Likewise.
3764 (ASSERT_STREQ): Likewise.
3765 (ASSERT_PRED1): Likewise.
3766 (ASSERT_STREQ_AT): New macro.
3768 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3770 * selftest.c (selftest::fail_formatted): New function.
3771 (selftest::assert_streq): New function.
3772 * selftest.h (selftests::fail_formatted): New decl.
3773 (selftest::assert_streq): New decl.
3774 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3776 2016-06-13 Jeff Law <law@redhat.com>
3778 PR tree-optimization/71403
3779 * tree-ssa-threadbackward.c
3780 (convert_and_register_jump_thread_path): No longer accept reference
3781 to path. Do not pop items off the path anymore.
3782 (fsm_find_control_statement_thread_paths): Do not allow threading
3783 to a deeper loop nest. Pop the last item off the path here rather
3784 than in convert_and_register_jump_thread_path.
3786 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3787 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
3789 [AArch64] Emit division using the Newton series
3791 * config/aarch64/aarch64-protos.h
3792 (cpu_approx_modes): Add new member "division".
3793 (aarch64_emit_approx_div): Declare new function.
3794 * config/aarch64/aarch64.c
3795 (generic_approx_modes): New member "division".
3796 (exynosm1_approx_modes): Likewise.
3797 (xgene1_approx_modes): Likewise.
3798 (aarch64_emit_approx_div): Define new function.
3799 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3800 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3801 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3802 * doc/invoke.texi (-mlow-precision-div): Describe new option.
3804 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3805 Wilco Dijkstra <wilco.dijkstra@arm.com>
3807 [AArch64] Emit square root using the Newton series
3809 * config/aarch64/aarch64-protos.h
3810 (aarch64_emit_approx_rsqrt): Replace with new function
3811 "aarch64_emit_approx_sqrt".
3812 (cpu_approx_modes): New member "sqrt".
3813 * config/aarch64/aarch64.c
3814 (generic_approx_modes): New member "sqrt".
3815 (exynosm1_approx_modes): Likewise.
3816 (xgene1_approx_modes): Likewise.
3817 (aarch64_emit_approx_rsqrt): Replace with new function
3818 "aarch64_emit_approx_sqrt".
3819 (aarch64_override_options_after_change_1): Handle new option.
3820 * config/aarch64/aarch64-simd.md
3821 (rsqrt<mode>2): Use new function instead.
3822 (sqrt<mode>2): New expansion and insn definitions.
3823 * config/aarch64/aarch64.md: Likewise.
3824 * config/aarch64/aarch64.opt
3825 (mlow-precision-sqrt): Add new option description.
3826 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3828 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3830 [AArch64] Add more choices for the reciprocal square root approximation
3832 Allow a target to prefer such operation depending on the operation mode.
3834 * config/aarch64/aarch64-protos.h
3835 (AARCH64_APPROX_MODE): New macro.
3836 (AARCH64_APPROX_{NONE,ALL}): Likewise.
3837 (cpu_approx_modes): New structure.
3838 (tune_params): New member "approx_modes".
3839 * config/aarch64/aarch64-tuning-flags.def
3840 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3841 * config/aarch64/aarch64.c
3842 (generic_approx_modes): New core "cpu_approx_modes" structure.
3843 (exynosm1_approx_modes): Likewise.
3844 (xgene1_approx_modes): Likewise.
3845 (generic_tunings): New member "approx_modes".
3846 (cortexa35_tunings): Likewise.
3847 (cortexa53_tunings): Likewise.
3848 (cortexa57_tunings): Likewise.
3849 (cortexa72_tunings): Likewise.
3850 (exynosm1_tunings): Likewise.
3851 (thunderx_tunings): Likewise.
3852 (xgene1_tunings): Likewise.
3853 (use_rsqrt_p): New argument for the mode and use new member from
3855 (aarch64_builtin_reciprocal): Devise mode from builtin.
3856 (aarch64_optab_supported_p): New argument for the mode.
3857 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3859 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3861 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3862 RS6000_BTM_MODULO flag into the set of flags that are considered
3863 to be part of the common configuration.
3865 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3867 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3868 difference unsigned.
3869 (vec_absdb): New macro for vector absolute difference unsigned
3871 (vec_absdh): New macro for vector absolute difference unsigned
3873 (vec_absdw): New macro for vector absolute difference unsigned word.
3874 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3875 (vadu<mode>3): New insn.
3876 (*p9_vadu<mode>3): New insn.
3877 * config/rs6000/rs6000-builtin.def (vadub): New built-in
3879 (vaduh): New built-in definition.
3880 (vaduw): New built-in definition.
3881 (vadu): New overloaded built-in definition.
3882 (vadub): New overloaded built-in definition.
3883 (vaduh): New overloaded built-in definition.
3884 (vaduw): New overloaded built-in definition.
3885 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3886 overloaded vector absolute difference unsigned functions.
3887 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3888 the ISA 3.0 vector absolute difference unsigned built-in functions.
3890 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
3892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3893 update shared_lookup_references only once after changing operands.
3895 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
3898 * tree-nested.c (convert_nonlocal_omp_clauses)
3899 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3901 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3902 * tree.def (CASE_LABEL_EXPR): Likewise.
3904 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3907 * input.c (test_builtins): Fix an assertion.
3909 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3911 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3914 (isinf<mode>2): Ditto.
3916 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3918 * ggc-tests.c (test_finalization): Only test need_finalization_p
3919 for GCC_VERSION >= 4003.
3921 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3923 * config/s390/vecintrin.h: Fix file description in comment.
3925 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3927 * config/s390/s390-builtin-types.def: Change builtin type naming
3928 scheme to match builtin-types.def.
3930 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
3932 * fold-const.c (optimize_minmax_comparison): Remove.
3933 (fold_comparison): Remove call to the above.
3934 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3935 New transformations.
3937 2016-06-13 Alan Hayward <alan.hayward@arm.com>
3939 PR tree-optimization/71416
3940 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3943 2016-06-13 Martin Liska <mliska@suse.cz>
3945 * predict.c (enum predictor_reason): Prefix enum with REASON_.
3946 (combine_predictions_for_insn): Likewise.
3947 (prune_predictions_for_bb): Likewise.
3948 (combine_predictions_for_bb): Likewise.
3950 2016-06-13 Richard Biener <rguenther@suse.de>
3952 PR tree-optimization/71505
3953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3954 assert match comment.
3956 2016-06-13 Marek Polacek <polacek@redhat.com>
3959 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3960 gimplify_switch_expr.
3961 (warn_switch_unreachable_r): New function.
3963 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3966 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3969 2016-06-13 Richard Biener <rguenther@suse.de>
3972 * fold-const.c (fold_unary_loc): Preserve alignment when
3973 folding a VIEW_CONVERT_EXPR into a MEM_REF.
3975 2016-06-13 Martin Liska <mliska@suse.cz>
3978 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3979 w/ -fsanitize=bounds.
3981 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3983 * config/i386/i386.c (ix86_init_builtins): Calculate
3984 FLOAT128_FTYPE_CONST_STRING function type only once.
3985 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3986 built-in functions are available for x86-32 and x86-64 targets.
3988 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3991 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3993 (FLOAT128_FTYPE_CONST_STRING): New function type.
3994 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
3995 [IX86_BUILTIN_NANSQ]: Ditto.
3996 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
3997 (ix86_init_builtin_types): Declare const_string_type_node.
3998 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4000 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4001 * doc/extend.texi (x86 Built-in Functions): Document
4002 __builtin_nanq and __builtin_nansq.
4004 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4007 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4008 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4009 length for pop patterns.
4010 (arm_attr_length_push_multi): Update comments.
4011 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4013 (*pop_multiple_with_writeback_and_return): Likewise.
4014 (*pop_multiple_with_return): Likewise.
4016 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4019 * fold-const.c (optimize_bit_field_compare): Don't try to use
4020 word_mode unconditionally for reading the bit field, look at
4021 DECL_BIT_FIELD_REPRESENTATIVE instead.
4023 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4026 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4027 vector integer type.
4029 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4032 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4033 without LABEL_DECL, set *handled_ops_p to false instead of true.
4035 2016-06-10 Martin Sebor <msebor@redhat.com>
4038 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4039 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4040 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4042 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4043 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4044 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4045 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4046 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4047 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4048 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4049 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4051 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4053 * config/arm/arm.h (pool_vector_label,
4054 return_used_this_function): Remove.
4056 2016-06-10 Jeff Law <law@redhat.com>
4058 PR tree-optimization/71335
4059 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4060 zero length paths here.
4061 (convert_and_register_jump_thread_path): Remove hacks related to
4062 duplicated blocks in the jump thread path.
4063 (fsm_find_control_statement_thread_paths): Avoid putting the same
4064 block on the thread path twice, but ensure the thread path is
4065 unchanged from the caller's point of view.
4067 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4069 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4070 * predict.def (PRED_LOOP_BRANCH): Remove.
4072 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4074 * Makefile.in (OBJS): Add ggc-tests.o.
4075 (GTFILES): Add ggc-tests.c.
4076 * ggc-tests.c: New file.
4077 * selftest-run-tests.c (selftest::run_tests): Call
4078 selftest::ggc_tests_c_tests.
4079 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4081 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4083 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4085 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4088 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4089 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4091 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4093 * profile.c: Include cfgloop.h.
4094 (branch_prob): Compute estimated number of iterations.
4095 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4096 recompute estimate number of iterations from profile.
4098 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4101 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4102 must be grouped on top of stack. Don't force early clobber
4103 on ordinary reg outputs.
4105 2016-06-10 Richard Biener <rguenther@suse.de>
4107 * targhooks.c (default_builtin_vectorization_cost): Adjust
4110 2016-06-10 Richard Biener <rguenther@suse.de>
4112 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4113 to fold the RHS to a constant if possible.
4115 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4118 * tree-nested.c (convert_nonlocal_omp_clauses)
4119 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4120 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4121 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4123 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4125 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4127 * omp-low.c (scan_sharing_clauses): Don't expect
4130 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4132 PR tree-optimization/71407
4133 PR tree-optimization/71416
4134 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4137 2016-06-10 Richard Biener <rguenther@suse.de>
4140 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4142 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4144 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4146 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4147 Jiong Wang <jiong.wang@arm.com>
4149 PR rtl-optimization/70751
4150 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4151 spilled into memory.
4153 2016-06-09 Jonathan Yong <10walls@gmail.com>
4156 2015-09-21 Jonathan Yong <10walls@gmail.com>
4158 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4159 sysroot/usr/lib/32api for additional win32 libraries,
4160 fixes failing Cygwin bootstrapping.
4162 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4164 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4167 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4170 * pretty-print.c (pp_indent): Specify that %p is printed in a
4171 host-dependent manner.
4172 (test_pp_format): Remove the test for %p.
4174 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4176 * config/mips/mips.c (mips_output_jump): Fix formatting.
4178 2016-06-09 Richard Biener <rguenther@suse.de>
4180 PR tree-optimization/71462
4181 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4184 2016-06-09 Martin Liska <mliska@suse.cz>
4186 * predict.c (dump_prediction): Add new argument.
4187 (enum predictor_reason): New enum.
4188 (struct predictor_hash): New struct.
4189 (predictor_hash::hash): New function.
4190 (predictor_hash::equal): Likewise.
4191 (not_removed_prediction_p): New function.
4192 (prune_predictions_for_bb): Likewise.
4193 (combine_predictions_for_bb): Prune predictions.
4195 2016-06-09 Martin Liska <mliska@suse.cz>
4197 * predict.c (filter_predictions): New function.
4198 (remove_predictions_associated_with_edge): Use the filter
4200 (equal_edge_p): New function.
4202 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4204 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4205 Correct usage of @samp vs @option, add @samp where appropriate.
4206 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4207 Add armv6s-m and document it, as it is no official ARM name.
4209 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4211 * ifcvt.c (struct noce_if_info): Add transform_name field.
4212 (noce_try_move): Set if_info->transform_name to the function name.
4213 (noce_try_ifelse_collapse): Likewise.
4214 (noce_try_store_flag): Likewise.
4215 (noce_try_inverse_constants): Likewise.
4216 (noce_try_store_flag_constants): Likewise.
4217 (noce_try_addcc): Likewise.
4218 (noce_try_store_flag_mask): Likewise.
4219 (noce_try_cmove): Likewise.
4220 (noce_try_cmove_arith): Likewise.
4221 (noce_try_minmax): Likewise.
4222 (noce_try_abs): Likewise.
4223 (noce_try_sign_mask): Likewise.
4224 (noce_try_bitop): Likewise.
4225 (noce_convert_multiple_sets): Likewise.
4226 (noce_process_if_block): Print if_info->transform_name to
4227 dump_file if transformation succeeded.
4229 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4231 * config/arm/cortex-a57.md (cortex_a57_alu):
4234 2016-06-08 Martin Sebor <msebor@redhat.com>
4235 Jakub Jelinek <jakub@redhat.com>
4239 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4240 BUILT_IN_MUL_OVERFLOW_P): New builtins.
4241 * builtins.c: Include gimple-fold.h.
4242 (fold_builtin_arith_overflow): Handle
4243 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4244 (fold_builtin_3): Likewise.
4245 * doc/extend.texi (Integer Overflow Builtins): Document
4246 __builtin_{add,sub,mul}_overflow_p.
4248 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4250 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4251 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4253 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4256 Rewrite, looking one level down for records and arrays.
4258 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4260 * pretty-print.c: Include "selftest.h".
4261 (pp_format): Fix comment.
4262 (identifier_to_locale): Likewise.
4263 (selftest::test_basic_printing): New function.
4264 (selftest::assert_pp_format): New function.
4265 (selftest::test_pp_format): New function.
4266 (selftest::pretty_print_c_tests): New function.
4267 * selftest-run-tests.c (selftest::run_tests): Call
4268 selftest::pretty_print_c_tests.
4269 * selftest.h (pretty_print_c_tests): New declaration.
4271 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4273 * invoke.texi (max-loop-headers-insns): Document.
4274 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4275 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4276 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4278 2016-06-08 Richard Biener <rguenther@suse.de>
4280 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4281 on strided SLP loads and fall back to scalar loads in case
4282 we can't chunk them.
4284 2016-06-08 Richard Biener <rguenther@suse.de>
4286 PR tree-optimization/71452
4287 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4288 type used for the SSA rewrite has enough precision to cover
4289 the dynamic type of the location.
4291 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4292 Richard Biener <rguenther@suse.de>
4295 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4296 the same as DECL_P (base0) for indirect_base0. Use equality_code
4297 in one further place.
4299 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4301 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4302 to one word if the field is known to overlap other words.
4303 (extract_bit_field_1): Likewise.
4304 (store_split_bit_field): Remove compensating code.
4305 (extract_split_bit_field): Likewise.
4307 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4311 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4313 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4315 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4317 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4318 (arch64_addpv4sf): Delete.
4319 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4320 "gen_aarch64_addpv4sf".
4321 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
4323 (vpadds_f32): Likewise.
4324 (vpaddq_f32): Likewise.
4325 (vpaddq_f64): Likewise.
4327 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4329 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4331 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4332 to VALLF. Rename to "fabd<mode>3".
4333 "*fabd_scalar<mode>3): Delete.
4334 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4336 (vabdd_f64): Likewise.
4337 (vabd_f32): Likewise.
4338 (vabd_f64): Likewise.
4339 (vabdq_f32): Likewise.
4340 (vabdq_f64): Likewise.
4342 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4344 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4346 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4347 "aarch64_rsqrts<mode>".
4348 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4349 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
4351 (vrsqrtsd_f64): Likewise.
4352 (vrsqrts_f32): Likewise.
4353 (vrsqrts_f64): Likewise.
4354 (vrsqrtsq_f32): Likewise.
4355 (vrsqrtsq_f64): Likewise.
4357 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4359 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4361 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4362 "aarch64_rsqrte<mode>".
4363 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4364 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
4366 (vrsqrted_f64): Likewise.
4367 (vrsqrte_f32): Likewise.
4368 (vrsqrte_f64): Likewise.
4369 (vrsqrteq_f32): Likewise.
4370 (vrsqrteq_f64): Likewise.
4372 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4374 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4378 * config/aarch64/aarch64-simd.md
4379 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4380 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4381 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4383 (vcvt_n_f32_u32): Likewise.
4384 (vcvt_n_s32_f32): Likewise.
4385 (vcvt_n_u32_f32): Likewise.
4386 (vcvtq_n_f32_s32): Likewise.
4387 (vcvtq_n_f32_u32): Likewise.
4388 (vcvtq_n_f64_s64): Likewise.
4389 (vcvtq_n_f64_u64): Likewise.
4390 (vcvtq_n_s32_f32): Likewise.
4391 (vcvtq_n_s64_f64): Likewise.
4392 (vcvtq_n_u32_f32): Likewise.
4393 (vcvtq_n_u64_f64): Likewise.
4394 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4395 (VSDQ_SDI): Likewise.
4396 (fcvt_target): Support V4DI, V4SI and V2SI.
4397 (FCVT_TARGET): Likewise.
4399 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4401 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4402 (TYPES_BINOP_SUS): Likewise.
4403 (aarch64_simd_builtin_data): Update include file name.
4404 (aarch64_builtins): Likewise.
4405 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4406 for conversion between scalar float-point and fixed-point.
4410 * config/aarch64/aarch64.md
4411 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4412 pattern for conversion between scalar float to fixed-pointer.
4413 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4414 (UNSPEC_FCVTZS): New UNSPEC enumeration.
4415 (UNSPEC_FCVTZU): Likewise.
4416 (UNSPEC_SCVTF): Likewise.
4417 (UNSPEC_UCVTF): Likewise.
4418 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4420 (vcvtd_n_f64_u64): Likewise.
4421 (vcvtd_n_s64_f64): Likewise.
4422 (vcvtd_n_u64_f64): Likewise.
4423 (vcvtd_n_f32_s32): Likewise.
4424 (vcvts_n_f32_u32): Likewise.
4425 (vcvtd_n_s32_f32): Likewise.
4426 (vcvts_n_u32_f32): Likewise.
4427 * config/aarch64/iterators.md (fcvt_target): Support integer to float
4429 (FCVT_TARGET): Likewise.
4430 (FCVT_FIXED2F): New iterator.
4431 (FCVT_F2FIXED): Likewise.
4432 (fcvt_fixed_insn): New define_int_attr.
4434 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4436 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4437 some statements was removed.
4439 2016-06-08 Alan Hayward <alan.hayward@arm.com>
4441 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4442 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4443 (vect_can_advance_ivs_p): likewise.
4444 (vect_update_ivs_after_vectorizer): likewise.
4445 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4446 (vect_analyze_scalar_cycles_1): likewise.
4447 (vect_analyze_loop_operations): likewise.
4448 (report_vect_op): likewise.
4449 (vect_is_slp_reduction): likewise.
4450 (vect_is_simple_reduction): likewise.
4451 (get_initial_def_for_induction): likewise.
4452 (vect_transform_loop): likewise.
4453 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4454 (vect_recog_sad_pattern): likewise.
4455 (vect_recog_widen_sum_pattern): likewise.
4456 (vect_recog_widening_pattern): likewise.
4457 (vect_recog_divmod_pattern): likewise.
4458 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4459 (vect_analyze_slp_instance): likewise.
4460 (vect_transform_slp_perm_load): likewise.
4461 (vect_schedule_slp_instance): likewise.
4463 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4465 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4466 (return_prediction): PRED_CONST_RETURN predict return as not taken.
4467 * predict.def (PRED_CONTINUE): Change hitrate 50->67
4468 (PRED_LOOP_BRANCH): Document predictor as broken.
4469 (PRED_LOOP_EXIT): Change hitrate 91->92.
4470 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4471 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4472 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4473 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4474 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4475 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4476 (PRED_CALL): Chane hitrate 71->67.
4477 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4478 (PRED_GOTO): Document as unused right now.
4479 (PRED_CONST_RETURN): Change hitrate 67->69
4480 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4481 (PRED_NULL_RETURN): Change hitrate 91->90.
4482 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4483 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4484 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4486 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
4488 * config/rs6000/altivec.h: Add __builtin_vec_mul.
4489 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4490 special case Altivec builtin.
4491 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4492 VSX_BUILTIN_VEC_MUL (replaced with special case code).
4493 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4494 code for ALTIVEC_BUILTIN_VEC_MUL.
4495 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4496 for __builtin_vec_mul.
4498 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
4500 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4503 2016-06-07 David Malcolm <dmalcolm@redhat.com>
4505 * spellcheck.c (selftest::test_find_closest_string): New function.
4506 (spellcheck_c_tests): Call the above.
4508 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4510 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4512 2016-06-07 Jakub Jelinek <jakub@redhat.com>
4514 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4515 Yv=Yv,C alternatives.
4517 2016-06-07 Richard Biener <rguenther@suse.de>
4520 * common.opt (ffast-math): Make Optimization.
4522 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4523 Prachi Godbole <prachi.godbole@imgtec.com>
4525 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4526 `fabs' and `fneg' type attributes.
4527 (p5600_fpu_fabs): Add `fmove' to the comment.
4529 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4531 * gimple.c: Include builtins.h
4532 (gimple_inexpensive_call_p): New function.
4533 * gimple.h (gimple_inexpensive_call_p): Declare.
4534 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4535 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4538 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4540 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4541 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4542 warning_at_rich_loc, warning_n, pedwarn, permerror,
4543 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4544 sorry, fatal_error, internal_error, internal_error_no_backtrace):
4547 2016-06-07 Richard Biener <rguenther@suse.de>
4549 PR tree-optimization/71428
4550 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4551 BIT_FIELD_REF op vs. load.
4553 2016-06-07 Richard Biener <rguenther@suse.de>
4556 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4559 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4561 * config/pa/pa.md (call): Generate indirect long calls to non-local
4562 functions on TARGET_64BIT.
4563 (call_value): Likewise.
4565 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4567 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4568 pattern and subsequent splitters.
4569 (call_val_reg_64bit_post_reload): Likewise.
4571 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4574 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4575 propagate_op_to_single_use.
4577 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4580 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4582 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4584 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4585 (enum x86_dirflag_state): New enum.
4586 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4587 (machine_function): Remove needs_cld.
4588 (ix86_current_function_needs_cld): Remove.
4589 * config/i386/i386.c (ix86_set_func_type): Set
4590 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4591 (ix86_expand_prologue): Do not emit CLD here.
4592 (ix86_dirflag_mode_needed): New function.
4593 (ix86_dirflag_mode_entry): Ditto.
4594 (ix86_mode_needed): Handle X86_DIRFLAG entity.
4595 (ix86_mode_after): Ditto.
4596 (ix86_mode_entry): Ditto.
4597 (ix86_mode_exit): Ditto.
4598 (ix86_emit_mode_set): Ditto.
4599 * config/i386/i386.md (strmov_singleop): Set
4600 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4601 Do not set ix86_current_function_needs_cld.
4603 (strset_singleop): Ditto.
4605 (cmpstrnqi_nz_1): Ditto.
4606 (cmpstrnqi_1): Ditto.
4607 (strlenqi_1): Ditto.
4609 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4611 PR tree-optimization/71259
4612 * tree-vect-slp.c (vect_get_constant_vectors): For
4613 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4614 one for constant op, and use COND_EXPR for non-constant.
4616 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4618 * Makefile.in (OBJS): Add function-tests.o,
4619 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4620 selftest-run-tests.o.
4621 (OBJS-libcommon): Add selftest.o.
4622 (OBJS-libcommon-target): Add selftest.o.
4623 (all.internal): Add "selftest".
4624 (all.cross): Likewise.
4625 (selftest): New phony target.
4626 (s-selftest): New target.
4627 (selftest-gdb): New phony target.
4628 (COLLECT2_OBJS): Add selftest.o.
4629 * bitmap.c: Include "selftest.h".
4630 (selftest::test_gc_alloc): New function.
4631 (selftest::test_set_range): New function.
4632 (selftest::test_clear_bit_in_middle): New function.
4633 (selftest::test_copying): New function.
4634 (selftest::test_bitmap_single_bit_set_p): New function.
4635 (selftest::bitmap_c_tests): New function.
4636 * common.opt (fself-test): New.
4637 * diagnostic-show-locus.c: Include "selftest.h".
4638 (make_range): New function.
4639 (test_range_contains_point_for_single_point): New function.
4640 (test_range_contains_point_for_single_line): New function.
4641 (test_range_contains_point_for_multiple_lines): New function.
4642 (assert_eq): New function.
4643 (test_get_line_width_without_trailing_whitespace): New function.
4644 (selftest::diagnostic_show_locus_c_tests): New function.
4645 * et-forest.c: Include "selftest.h".
4646 (selftest::test_single_node): New function.
4647 (selftest::test_simple_tree): New function.
4648 (selftest::test_disconnected_nodes): New function.
4649 (selftest::et_forest_c_tests): New function.
4650 * fold-const.c: Include "selftest.h".
4651 (selftest::assert_binop_folds_to_const): New function.
4652 (selftest::assert_binop_folds_to_nonlvalue): New function.
4653 (selftest::test_arithmetic_folding): New function.
4654 (selftest::fold_const_c_tests): New function.
4655 * function-tests.c: New file.
4656 * gimple.c: Include "selftest.h".
4657 Include "gimple-pretty-print.h".
4658 (selftest::verify_gimple_pp): New function.
4659 (selftest::test_assign_single): New function.
4660 (selftest::test_assign_binop): New function.
4661 (selftest::test_nop_stmt): New function.
4662 (selftest::test_return_stmt): New function.
4663 (selftest::test_return_without_value): New function.
4664 (selftest::gimple_c_tests): New function.
4665 * hash-map-tests.c: New file.
4666 * hash-set-tests.c: New file.
4667 * input.c: Include "selftest.h".
4668 (selftest::assert_loceq): New function.
4669 (selftest::test_accessing_ordinary_linemaps): New function.
4670 (selftest::test_unknown_location): New function.
4671 (selftest::test_builtins): New function.
4672 (selftest::test_reading_source_line): New function.
4673 (selftest::input_c_tests): New function.
4674 * rtl-tests.c: New file.
4675 * selftest-run-tests.c: New file.
4676 * selftest.c: New file.
4677 * selftest.h: New file.
4678 * spellcheck.c: Include "selftest.h".
4679 (selftest::levenshtein_distance_unit_test_oneway): New function,
4680 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4681 (selftest::levenshtein_distance_unit_test): Likewise.
4682 (selftest::spellcheck_c_tests): Likewise.
4683 * toplev.c: Include selftest.h.
4684 (toplev::run_self_tests): New.
4685 (toplev::main): Handle -fself-test.
4686 * toplev.h (toplev::run_self_tests): New.
4687 * tree.c: Include "selftest.h".
4688 (selftest::test_integer_constants): New function.
4689 (selftest::test_identifiers): New function.
4690 (selftest::test_labels): New function.
4691 (selftest::tree_c_tests): New function.
4692 * tree-cfg.c: Include "selftest.h".
4693 (selftest::push_fndecl): New function.
4694 (selftest::test_linear_chain): New function.
4695 (selftest::test_diamond): New function.
4696 (selftest::test_fully_connected): New function.
4697 (selftest::tree_cfg_c_tests): New function.
4698 * vec.c: Include "selftest.h".
4699 (selftest::safe_push_range): New function.
4700 (selftest::test_quick_push): New function.
4701 (selftest::test_safe_push): New function.
4702 (selftest::test_truncate): New function.
4703 (selftest::test_safe_grow_cleared): New function.
4704 (selftest::test_pop): New function.
4705 (selftest::test_safe_insert): New function.
4706 (selftest::test_ordered_remove): New function.
4707 (selftest::test_unordered_remove): New function.
4708 (selftest::test_block_remove): New function.
4709 (selftest::reverse_cmp): New function.
4710 (selftest::test_qsort): New function.
4711 (selftest::vec_c_tests): New function.c.
4712 * wide-int.cc: Include selftest.h and wide-int-print.h.
4713 (selftest::from_int <wide_int>): New function.
4714 (selftest::from_int <offset_int>): New function.
4715 (selftest::from_int <widest_int>): New function.
4716 (selftest::assert_deceq): New function.
4717 (selftest::assert_hexeq): New function.
4718 (selftest::test_printing <VALUE_TYPE>): New function template.
4719 (selftest::test_ops <VALUE_TYPE>): New function template.
4720 (selftest::test_comparisons <VALUE_TYPE>): New function template.
4721 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4723 (selftest::wide_int_cc_tests): New function.
4725 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4728 * ifcvt.c (noce_try_ifelse_collapse): New function.
4730 (noce_process_if_block): Call noce_try_ifelse_collapse.
4731 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4732 (simplify_ternary_operation): Use the above to simplify
4733 conditional CLZ/CTZ expressions.
4735 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4738 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4739 define_insn_and_split.
4741 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4744 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4746 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
4749 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4750 Implicitly clobber memory for basic asm with non-empty assembler
4751 string. Use targetm.md_asm_adjust also here.
4752 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4753 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4754 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4755 non-empty assembler string.
4756 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4757 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4758 (decode_asm_operands): Handle basic asm in PARALLEL block.
4759 (extract_insn): Handle basic asm in PARALLEL block.
4760 * doc/extend.texi: Mention new behavior of basic asm.
4761 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4762 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4763 branch_needs_nop_p): Use asm_noperands.
4765 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4767 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4768 Include the M7 SPARC DFA scheduler.
4769 New attribute v3pipe.
4770 Annotate insns with v3pipe where appropriate.
4771 Define cpu_feature vis4.
4772 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4773 Add (V8QI "8") to vbits.
4774 Add insns {add,sub}v8qi3
4775 Add insns ss{add,sub}v8qi3
4776 Add insns us{add,sub}{v8qi,v4hi}3
4777 Add insns {min,max}{v8qi,v4hi,v2si}3
4778 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4779 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4780 * config/sparc/niagara4.md: Add a comment explaining the
4781 discrepancy between the documented latenty numbers and the
4783 * config/sparc/niagara7.md: New file.
4784 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4785 supports SPARC5 and VIS 4.0 instructions.
4786 * configure: Regenerate.
4787 * config.in: Likewise.
4788 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4789 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4790 TARGET_CPU_niagara7.
4791 (ASM_CPU64_DEFAULT_SPEC): Likewise.
4792 (CPP_CPU_SPEC): Handle niagara7.
4793 (ASM_CPU_SPEC): Likewise.
4794 * config/sparc/sparc-opts.h (processor_type): Add
4796 (mvis4): New option.
4797 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4798 (AS_NIAGARA7_FLAG): Define.
4799 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4800 (CPP_CPU64_DEFAULT_SPEC): Likewise.
4801 (CPP_CPU_SPEC): Handle niagara7.
4802 (ASM_CPU_SPEC): Likewise.
4803 * config/sparc/sparc.c (niagara7_costs): Define.
4804 (sparc_option_override): Handle niagara7 and adjust cache-related
4805 parameters with better values for niagara cpus. Also support VIS4.
4806 (sparc32_initialize_trampoline): Likewise.
4807 (sparc_use_sched_lookahead): Likewise.
4808 (sparc_issue_rate): Likewise.
4809 (sparc_register_move_cost): Likewise.
4810 (dump_target_flag_bits): Support VIS4.
4811 (sparc_vis_init_builtins): Likewise.
4812 (sparc_builtins): Likewise.
4813 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4815 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4817 * config/sparc/sparc.opt (sparc_processor_type): New value
4819 * config/sparc/visintrin.h (__attribute__): Prototypes for the
4821 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4823 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4826 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
4828 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4830 2016-06-06 Richard Biener <rguenther@suse.de>
4832 PR tree-optimization/71398
4833 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4836 2016-06-05 James Bowman <james.bowman@ftdichip.com>
4838 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4839 ft32_expand_prolog, ft32_expand_epilogue):
4840 Handle pretend_args.
4841 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4842 * config/ft32/ft32.md: Add pretend_returner.
4844 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
4847 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4848 Copy op1 RTX to avoid invalid sharing.
4849 (ix86_expand_vector_move_misalign): Ditto.
4851 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
4853 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4856 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4858 * predict.c (predicted_by_loop_heuristics_p): New function.
4859 (predict_iv_comparison): Use it.
4860 (predict_loops): Walk from innermost loops; do not predict edges
4861 leaving multiple loops multiple times; implement
4862 PRED_LOOP_ITERATIONS_MAX heuristics.
4863 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4865 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4867 * cfg.c (check_bb_profile): Do not report mismatched profiles when
4868 only edges out of BB are EH edges.
4870 2016-06-04 Martin Sebor <msebor@redhat.com>
4871 Marcin Baczyński <marbacz@gmail.com>
4874 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4875 a void expression in a void function.
4877 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4879 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4880 aux; dump reasons of decisions.
4881 (should_duplicate_loop_header_p): Likewise.
4882 (do_while_loop_p): Likewise.
4883 (ch_base::copy_headers): Dump asi num insns duplicated.
4885 2016-06-04 Jakub Jelinek <jakub@redhat.com>
4887 PR tree-optimization/71405
4888 * tree-ssa.c (execute_update_addresses_taken): For clobber with
4889 incompatible type, build a new clobber with the right type instead
4890 of building a VIEW_CONVERT_EXPR around it.
4892 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4894 PR tree-optimization/52171
4895 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4896 by_pieces_ninsns instead of move_by_pieces_ninsns.
4898 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4900 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4901 for reg+reg addressing mode.
4903 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4905 * rs6000-c.c (c/c-tree.h): Add #include.
4906 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4907 in C++ when found in the base position of vec_ld or vec_st.
4909 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4911 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4912 use of profile unless profile status is PROFILE_READ.
4913 * profile.c (compute_branch_probabilities): Set profile status
4914 only after reporting predictor hitrates.
4916 2016-06-03 Joseph Myers <joseph@codesourcery.com>
4920 * common.opt (ffp-int-builtin-inexact): New option.
4921 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4922 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4923 (ceil@var{m}2): Document dependence on this option.
4924 * ipa-inline-transform.c (inline_call): Handle
4925 flag_fp_int_builtin_inexact.
4926 * ipa-inline.c (can_inline_edge_p): Likewise.
4927 * config/i386/i386.md (rintxf2): Do not test
4928 flag_unsafe_math_optimizations.
4929 (rint<mode>2_frndint): New define_insn.
4930 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4931 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
4932 for 387 instead of extending and truncating.
4933 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4934 !flag_trapping_math instead of flag_unsafe_math_optimizations.
4935 Change to frndint<mode>2_<rounding>.
4936 (frndintxf2_<rounding>_i387): Likewise. Change to
4937 frndint<mode>2_<rounding>_i387.
4938 (<rounding_insn>xf2): Likewise.
4939 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4940 !flag_trapping_math instead of flag_unsafe_math_optimizations for
4941 x87. Test TARGET_ROUND || !flag_trapping_math ||
4942 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4943 SSE. Use ROUND_NO_EXC in constant operand of
4944 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
4945 for 387 instead of extending and truncating.
4947 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
4948 Julia Koval <julia.koval@intel.com>
4960 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4961 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4962 all registers, except for function return registers if there are
4963 no caller-saved registers.
4964 (ix86_set_func_type): New function.
4965 (ix86_set_current_function): Call ix86_set_func_type to set
4966 no_caller_saved_registers and func_type. Call reinit_regs if
4967 caller-saved registers are changed. Don't allow MPX, SSE, MMX
4968 nor x87 instructions in interrupt handler nor function with
4969 no_caller_saved_registers attribute.
4970 (ix86_function_ok_for_sibcall): Return false if there are no
4971 caller-saved registers.
4972 (type_natural_mode): Don't warn ABI change for MMX in interrupt
4974 (ix86_function_arg_advance): Skip for callee in interrupt handler.
4975 (ix86_function_arg): Return special arguments in interrupt handler.
4976 (ix86_promote_function_mode): Promote pointer to word_mode only
4977 for normal functions.
4978 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4980 (ix86_epilogue_uses): New function.
4981 (ix86_hard_regno_scratch_ok): Likewise.
4982 (ix86_save_reg): Preserve all registers in interrupt handler
4983 after reload. Preserve all registers, except for function return
4984 registers, if there are no caller-saved registers after reload.
4985 (find_drap_reg): Always use callee-saved register if there are
4986 no caller-saved registers.
4987 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
4988 for interrupt handler.
4989 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
4990 Emit cld instruction if stringops are used in interrupt handler
4991 or interrupt handler isn't a leaf function.
4992 (ix86_expand_epilogue): Generate interrupt return for interrupt
4993 handler and pop the 'ERROR_CODE' off the stack before interrupt
4994 return in exception handler.
4995 (ix86_expand_call): Disallow calling interrupt handler directly.
4996 If there are no caller-saved registers, mark all registers that
4997 are clobbered by the call which returns as clobbered.
4998 (ix86_handle_no_caller_saved_registers_attribute): New function.
4999 (ix86_handle_interrupt_attribute): Likewise.
5000 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5002 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5003 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5004 accumulation in interrupt function if stack may be realigned to
5006 (EPILOGUE_USES): New.
5007 (function_type): New enum.
5008 (machine_function): Add func_type and no_caller_saved_registers.
5009 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5010 (interrupt_return): New pattern.
5011 * doc/extend.texi: Document x86 interrupt and
5012 no_caller_saved_registers attributes.
5014 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5016 PR tree-optimization/52171
5017 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5018 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
5019 Look for constant strings. Move some code to emit_block_cmp_hints
5021 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5022 * defaults.h (COMPARE_MAX_PIECES): New macro.
5023 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5024 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5025 (clear_by_pieces_1): Don't declare. Move definition before use.
5026 (can_do_by_pieces): New static function.
5027 (can_move_by_pieces): Use it. Return bool.
5028 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
5029 OP. All callers changed. Handle COMPARE_BY_PIECES.
5030 (class pieces_addr); New.
5031 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5032 pieces_addr::adjust, pieces_addr::increment_address,
5033 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5035 (class op_by_pieces_d): New.
5036 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5038 (class move_by_pieces_d, class compare_by_pieces_d,
5039 class store_by_pieces_d): New subclasses of op_by_pieces_d.
5040 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5041 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5042 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5043 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5044 compare_by_pieces_d::finish_mode): New member functions.
5045 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5047 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5048 (emit_block_cmp_hints): New function.
5049 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5050 use the newly defined classes.
5051 * expr.h (by_pieces_constfn): New typedef.
5052 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5053 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5054 (move_by_pieces_ninsns): Don't declare.
5055 (can_move_by_pieces): Change return value to bool.
5056 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5057 (compare_by_pieces_branch_ratio): New hook.
5058 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5059 (by_pieces_ninsns): Declare.
5060 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5062 (default_compare_by_pieces_branch_ratio): New function.
5063 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5064 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5065 * doc/tm.texi: Regenerate.
5066 * tree-ssa-strlen.c: Include "builtins.h".
5067 (handle_builtin_memcmp): New static function.
5068 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5069 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5071 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5073 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5074 relevant stmts which are simple and invariant.
5075 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5076 instead of simple and invariant
5078 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5080 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5081 (vectorizable_reduction): Check for new relevant state.
5082 (vectorizable_live_operation): vectorize live stmts using
5083 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
5084 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5085 (vect_stmt_relevant_p): Check for stmts which are only used live.
5086 (process_use): Use of a stmt does not inherit it's live value.
5087 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5088 (vect_analyze_stmt): Check for new relevant state.
5089 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5090 outside the loop, but not inside it.
5092 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5094 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5095 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5096 (vect_get_vec_def_for_operand): Split out code.
5098 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5100 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5102 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5104 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5106 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5108 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5110 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5113 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5114 to noreturn e->callee->decl that has void return type and void
5115 arguments, adjust gimple_call_fntype and remove lhs even if it had
5116 previously addressable type.
5118 2016-06-02 Jeff Law <law@redhat.com>
5120 PR tree-optimization/71328
5121 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5122 error when checking for a jump back onto the copied path.
5124 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5126 * config/microblaze/microblaze.c (get_branch_target): Add return
5127 NULL_RTX for the non-CALL_P case.
5128 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5129 (insert_wic): Remove unused local "j".
5131 2016-06-02 Martin Liska <mliska@suse.cz>
5133 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5135 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5136 Julia Koval <julia.koval@intel.com>
5138 * function.c (assign_parm_setup_stack): Force source into a
5140 * target.def (function_incoming_arg): Update documentation to
5141 allow arbitrary address computation based on hard register.
5142 * doc/tm.texi: Regenerated.
5144 2016-06-02 Martin Liska <mliska@suse.cz>
5146 * predict.c (combine_predictions_for_bb): Fix first match in
5147 cases where a first predictor contains more than one occurence
5148 in list of predictors. Take the best value in such case.
5150 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5152 PR rtl-optimization/71295
5153 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5154 offset would go over the size of the inner mode reject it.
5156 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5158 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5159 x=x,x and v=v,m instead of x=x,m.
5161 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5162 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
5163 alternative to v=rm,C.
5165 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5166 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
5167 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
5168 instead of vex for the last two above mentioned alternatives.
5170 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5173 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5175 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5177 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5179 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5181 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5182 from int to unsigned.
5184 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5186 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5187 alternatives, eliminating preferred register class. Add support
5188 for the MTVSRDD instruction in ISA 3.0.
5189 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5190 reg_or_indexed_operand.
5191 (vsx_splat_v4sf_internal): Likewise.
5193 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5196 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5197 for loading up all 0's or all 1's.
5199 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5201 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5203 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5205 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5207 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5208 * gcc.c (set_source_date_epoch_envvar): New function, sets
5209 the SOURCE_DATE_EPOCH environment variable to the current time.
5211 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5213 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5214 the factor for live Phi nodes.
5216 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5218 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5219 * tree-parloops.c (parallelize_loops): likewise.
5220 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5221 tree_unswitch_outer_loop): likewise.
5223 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5226 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5227 around creation of the temporary.
5229 2016-06-01 Richard Biener <rguenther@suse.de>
5231 PR tree-optimization/71366
5232 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5233 (unloop_loops): Move removing edges here ...
5234 (try_unroll_loop_completely): ... from here.
5235 (try_peel_loop): ... and here.
5236 (tree_unroll_loops_completely_1): Track parent loops via
5237 bitmap of header BBs.
5238 (tree_unroll_loops_completely): Adjust for that.
5240 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5242 * config/rs6000/altivec.h (vec_slv): New macro.
5243 (vec_srv): New macro.
5244 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5245 (UNSPEC_VSRV): New value.
5248 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5249 (vsrv): New builtin definition.
5250 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5251 define argument types for new builtin.
5252 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5254 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5257 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5258 Jocelyn Mayer <l_indien@magic.fr>
5261 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5262 detect processor family for signature_CENTAUR_ebx.
5263 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5264 signature_CENTAUR_ebx.
5265 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5266 <default>: Pass x86-64 for has_longmode.
5268 2016-06-01 Nathan Sidwell <nathan@acm.org>
5270 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5273 2016-06-01 Richard Biener <rguenther@suse.de>
5275 PR tree-optimization/71261
5276 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5277 of stmts successfully put in the bool pattern. Remove
5278 single-use restriction.
5279 (adjust_bool_pattern_cast): Add cast at the use site via the
5280 pattern def sequence.
5281 (adjust_bool_pattern): Remove recursion, maintain a hash-map
5282 of patterned defs. Use the pattern def seqence instead of
5283 multiple independent patterns.
5284 (sort_after_uid): New qsort compare function.
5285 (adjust_bool_stmts): New function to process stmts in the bool
5286 pattern in IL order.
5287 (vect_recog_bool_pattern): Adjust.
5288 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5289 (ifcvt_walk_pattern_tree): Likewise.
5290 (stmt_is_root_of_bool_pattern): Likewise.
5291 (ifcvt_repair_bool_pattern): Likewise.
5292 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5294 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5296 * loop-unroll.c (decide_unroll_constant_iterations,
5297 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5298 likely upper bounds.
5299 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5301 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5303 * tree-core.h (enum omp_clause_code): Remove
5304 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5306 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5308 * config/arm/sync.md (arm_store_exclusive<mode>):
5309 Use 'H' output modifier on operands[2] rather than creating a new
5310 entry in out-of-bounds memory of the operands array.
5311 (arm_store_release_exclusivedi): Likewise.
5313 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5315 * config/arm/arm.c (arm_fusion_enabled_p): New function.
5316 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5317 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5318 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5320 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5322 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5323 into account live statements for mask producers.
5325 2016-06-01 Richard Biener <rguenther@suse.de>
5327 PR tree-optimization/71311
5328 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5329 restrict to non-INTEGER_CST @0.
5331 2016-06-01 Richard Biener <rguenther@suse.de>
5333 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5334 (relational patterns): Use :c to avoid pattern duplications.
5336 2016-06-01 Richard Biener <rguenther@suse.de>
5338 * genmatch.c (comparison_code_p): New predicate.
5339 (swap_tree_comparison): New function.
5340 (commutate): Add for_vec parameter to append new for entries.
5341 Support commutating relational operators by swapping it alongside
5343 (lower_commutative): Adjust.
5344 (dt_simplify::gen): Do not pass artificial operators to gen
5346 (decision_tree::gen): Do not add artificial operators as parameters.
5347 (parser::parse_expr): Verify operator commutativity when :c is
5348 applied. Allow :C to override this.
5349 * match.pd: Adjust patterns to use :C instead of :c where required.
5351 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5353 PR tree-optimization/71077
5354 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5355 the combining step, use boolean_false_node and boolean_true_node
5356 as the designated false/true return values.
5358 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5360 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5361 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5362 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5365 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5367 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5368 of flags impliying the register renaming.
5369 * toplev.c (process_options): Do not imply flag_rename_registers with
5372 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5374 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5375 default implementation.
5377 2016-05-31 Nathan Sidwell <nathan@acm.org>
5379 * dwarf2out.c (cur_line_info_table): Add GTY marker.
5381 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5383 * config/sh/constraints.md (b): Remove constraint.
5384 * config/sh/predicates.md (arith_reg_operand): Remove
5386 * config/sh/sh-modes.def (PDI): Remove.
5387 * config/sh/sh.c (sh_target_reg_class,
5388 sh_optimize_target_register_callee_saved): Remove functions.
5389 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5390 (sh_expand_epilogue): Update comment.
5391 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5392 sh_secondary_reload): Remove TARGET_REGS related code.
5393 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5394 TARGET_REGISTER_P): Remove macros.
5395 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5396 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5397 TR1_REG, TR2_REG): Remove constants.
5398 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5400 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5402 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5403 define_expand patterns.
5404 (adddi3_compact): Rename to adddi3.
5405 (subdi3_compact): Rename to subdi3.
5406 (*negdi2): Rename to negdi2.
5407 (*abs<mode>2): Rename to abs<mode>2.
5409 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5411 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5412 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5413 (atomic_sub_fetchsi): ... this new pattern.
5414 (mvtc): Add CC_REG clobber.
5416 2016-05-31 Marek Polacek <polacek@redhat.com>
5418 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5420 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5422 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5423 aarch64_fusion_enabled_p to check for fusion capabilities.
5425 2016-05-31 Richard Biener <rguenther@suse.de>
5427 PR tree-optimization/71352
5428 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5429 minus one and a negate.
5431 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5433 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5434 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5436 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5437 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5438 Remove use of aarch64_simd_attr_length_move, set length attribute
5440 (*aarch64_be_movoi): Likewise.
5441 (*aarch64_be_movci): Likewise.
5442 (*aarch64_be_movxi): Likewise.
5444 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5446 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5447 It no longer does that.
5448 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5450 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
5452 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5453 attribute __unused__.
5455 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5457 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5458 * config/arm/arm.c (arm_arch_thumb1): Define.
5459 (arm_option_override): Initialize arm_arch_thumb1.
5460 * config/arm/arm.h (arm_arch_thumb1): Declare.
5461 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5462 support Thumb-1 ISA.
5464 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
5467 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5468 `Yv' for scalar operand.
5470 2016-05-31 Tom de Vries <tom@codesourcery.com>
5472 PR tree-optimization/69068
5473 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5474 phis with more than two args.
5476 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5478 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5479 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5482 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5484 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5486 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5488 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5489 cpu_32, cpu_64, tune_32 and tune_64.
5490 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5492 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5494 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5496 2016-05-30 Andi Kleen <ak@linux.intel.com>
5498 * auto-profile.c (read_profile): Replace asserts with errors
5499 when file does not exist.
5500 * gcov-io.c (gcov_read_words): Dito.
5502 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5504 * tree-cfg.c (print_loop): Print likely upper bounds.
5506 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5508 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5509 * opts.c (default_options): Enable peel loops at -O3.
5510 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5511 (try_peel_loop): Do not re-peel already peeled loops;
5512 use likely upper bounds; fix profile updating.
5513 (pass_complete_unroll::execute): Initialize peeled_loops.
5515 2016-05-30 Martin Liska <mliska@suse.cz>
5517 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5518 computed costs by frequency of BB they belong to.
5519 (get_scaled_computation_cost_at): New function.
5521 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5522 Marc Glisse <marc.glisse@inria.fr>
5524 PR tree-optimization/71289
5525 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5527 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5529 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5531 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5533 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5534 for peeled copies; avoid underflow when updating estimates; correctly
5537 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5539 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5540 r236875. Corrected oe3 to oe2 as obvious.
5542 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5546 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5547 that inserted stmt will not dominate stmts that defines its operand.
5548 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5549 (rewrite_expr_tree_parallel): Likewise.
5551 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5554 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5555 all fields including stmt_to_insert are swapped.
5557 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5559 * predict.h (force_edge_cold): Declare.
5560 * predict.c (force_edge_cold): New function.
5561 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5563 (canonicalize_loop_induction_variables): Fix formating.
5565 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5567 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5568 (visium_expand_copysign): Use gen_int_mode directly.
5569 (visium_compute_frame_size): Minor tweaks.
5571 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5573 * tree-vect-loop.c (vect_analyze_loop_2): Use
5574 likely_max_stmt_executions_int.
5576 2016-05-30 Tom de Vries <tom@codesourcery.com>
5578 PR tree-optimization/69067
5579 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5581 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5584 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5585 New peepholes to remove unneeded fild/fistp pairs.
5586 (define_peephole2 atomic_loaddi_fpu): Ditto.
5588 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5590 * predict.c (maybe_hot_frequency_p): Avoid division.
5592 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5594 * doc/install.texi: Use https for shop.fsf.org.
5596 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5598 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5599 likely_max_stmt_executions_int.
5601 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5603 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5604 likely_max_stmt_executions_int.
5606 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5608 * profile.c (compute_branch_probabilities): Do not report hitrates
5610 (branch_prob): Report hitrates here.
5611 * predict.c (gimple_predict_edge): Do not assert profile status;
5612 fix formatting issues.
5614 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5616 * predict.c (edge_predicted_by_p): New function.
5617 (predict_paths_for_bb): Do not put multiple predictions of the same type
5620 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5622 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5625 2016-05-28 Alan Modra <amodra@gmail.com>
5627 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5629 2016-05-28 Alan Modra <amodra@gmail.com>
5631 PR rtl-optimization/71275
5632 * ira.c (ira): Free dominance info.
5634 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5636 * doc/sourcebuild.texi: New address for upstream Go repository.
5638 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5640 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5641 (TARGET_ARM_V7M): Likewise.
5643 2016-05-26 Jeff Law <law@redhat.com>
5645 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5646 (thread_across_edge): Remove calls to find_jump_threads_backwards.
5647 * passes.def: Add jump threading passes before DOM/VRP.
5648 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5649 argument to a basic block from an edge. Remove tests which are
5651 (pass_data_thread_jumps, class pass_thread_jumps): New.
5652 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5653 (make_pass_thread_jumps): Likewise.
5654 * tree-pass.h (make_pass_thread_jumps): Declare.
5656 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5658 * config/visium/visium-protos.h (split_double_move): Rename into...
5659 (visium_split_double_move): ...this.
5660 (visium_split_double_add): Declare.
5661 * config/visium/visium.c (split_double_move): Rename into...
5662 (visium_split_double_move): ...this.
5663 (visium_split_double_add): New function.
5664 (visium_expand_copysign): Renumber operands for consistency.
5665 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5666 (DFmode move splitter): Likewise.
5667 (*addi3_insn): Split by means of visium_split_double_add.
5668 (*adddi3_insn_flags): Delete.
5669 (*plus_plus_sltu<subst_arith>): New insn.
5670 (*subdi3_insn): Split by means of visium_split_double_add.
5671 (subdi3_insn_flags): Delete.
5672 (*minus_minus_sltu<subst_arith>): New insn.
5673 (*negdi2_insn): Split by means of visium_split_double_add.
5674 (*negdi2_insn_flags): Delete.
5676 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
5678 * configure.ac: Treat a --with-headers option without argument
5679 the same as the default (i.e. consult sys-include directory).
5680 * configure: Regenerate.
5682 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5684 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5685 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5687 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5688 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5690 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5693 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5694 tree-stdarg analysis results.
5695 (aarch64_setup_incoming_varargs): Likewise.
5697 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5699 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5700 va_list_gpr_counter_field and va_list_fpr_counter_field.
5702 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
5705 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5706 * config/aarch64/aarch64.c
5707 (aarch64_cannot_change_mode_class): Remove function.
5708 * config/aarch64/aarch64-protos.h
5709 (aarch64_cannot_change_mode_class): Remove.
5711 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5713 * cfgloop.c (record_niter_bound): Record likely upper bounds.
5714 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5715 get_likely_max_loop_iterations_int): New.
5716 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5717 any_likely_upper_bound.
5718 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5720 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5721 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5723 (unroll_loop_constant_iterations): Likewise.
5724 (unroll_loop_runtime_iterations): Likewise.
5725 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5726 * lto-streamer-out.c (output_cfg): Likewise.
5727 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5729 (canonicalize_loop_induction_variables): Dump likely upper bounds.
5730 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5731 (likely_max_loop_iterations): New.
5732 (likely_max_loop_iterations_int): New.
5733 (likely_max_stmt_executions): New.
5734 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5735 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5736 likely_max_stmt_executions): Declare.
5738 2016-05-27 Marek Polacek <polacek@redhat.com>
5741 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5743 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5745 * config/s390/s390.md (2x risbg splitters): Use
5746 reg_overlap_mentioned_p instead of rtx_equal_p.
5748 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5750 * combine.c (make_compound_operation): Take known zero bits into
5751 account when checking for possible zero_extend.
5753 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5755 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5756 Use const_int_operand for operand 2 predicate. Simplify expand code
5759 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5762 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5765 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5767 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5768 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5769 that returns CC_SESWPmode and CC_ZESWPmode.
5770 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5772 (aarch64_rtx_costs): Likewise.
5774 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5776 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5777 for ISA 3.0 min/max support.
5778 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5779 conditional move support.
5780 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5781 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5783 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5784 conditional moves where the comparison type is different from move
5786 (fp_minmax): New code iterator for smin/smax.
5787 (minmax): New code attributes for min/max.
5788 (SMINMAX): Likewise.
5789 (smax<mode>3): Combine min, max insns into one insn using the
5790 fp_minmax code iterator. Add support for ISA 3.0 min/max
5791 instructions that don't need -ffast-math.
5792 (s<minmax><mode>3): Likewise.
5793 (smax<mode>3_vsx): Likewise.
5794 (smin<mode>3): Likewise.
5795 (s<minmax><mode>3_vsx): Likewise.
5796 (smin<mode>3_vsx): Likewise.
5797 (pre-VSX min/max splitters): Likewise.
5798 (s<minmax><mode>3_fpr): Likewise.
5799 (movsfcc): Rewrite floating point conditional moves to combine
5800 SFmode/DFmode into a single insn.
5801 (mov<mode>cc): Likewise.
5802 (movdfcc): Likewise.
5803 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5804 SFDF2 iterators to handle all combinations.
5805 (fseldfsf4): Likewise.
5806 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5807 (fseldfdf4): Likewise.
5808 (fselsfdf4): Likewise.
5809 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5810 comparison instructions that set a 0/-1 mask, and use it for
5811 floating point conditional move via XXSEL.
5812 (fpmask<mode>): Likewise.
5813 (xxsel<mode>): Likewise.
5814 * config/rs6000/predicates.md (min_max_operator): Delete, no
5816 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5817 instructions that generate a 0/-1 mask for use with XXSEL.
5818 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5819 say whether floating point min/max is available, either through
5820 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5821 (TARGET_MINMAX_DF): Likewise.
5823 2016-05-27 Alan Modra <amodra@gmail.com>
5825 PR rtl-optimization/71275
5826 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5827 for update_equiv_regs and combine_and_move_insns.
5829 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
5831 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5832 if_then_else or cond RTXes to calculate attribute value.
5833 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5834 <attr "length_immediate>: Ditto.
5835 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5836 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5837 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5838 <attr "type">: Ditto.
5839 <attr "prefix_data16">: Ditto.
5840 <attr "prefix_extra">: Ditto.
5841 <attr "length_immediate">: Ditto.
5842 <attr "prefix">: Ditto.
5843 (vec_set<mode>_0) <attr "isa">: Ditto.
5844 <attr "prefix_extra">: Ditto.
5845 <attr "length_immediate">: Ditto.
5846 <attr "prefix">: Ditto.
5847 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5848 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5849 (sse2_storelpd) <attr "prefix_data16">: Ditto.
5850 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5851 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5852 <attr "length_immediate">: Ditto.
5853 <attr "prefix">: Ditto.
5854 (sse2_movsd) <attr "length_immediate">: Ditto.
5855 <attr "prefix">: Ditto.
5856 (vec_concatv2df) <attr "isa">: Ditto.
5857 <attr "prefix">: Ditto.
5858 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5859 (*vec_extractv2di_1) <attr "isa">: Ditto.
5860 <attr "type">: Ditto.
5861 <attr "length_immediate">: Ditto.
5862 <attr "prefix_rex">: Ditto.
5863 <attr "prefix_extra">: Ditto.
5864 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5865 <attr "prefix_extra">: Ditto.
5866 <attr "length_immediate">: Ditto.
5867 (vec_concatv2di) <attr "isa">: Ditto.
5868 <attr "prefix_extra">: Ditto.
5869 <attr "length_immediate">: Ditto.
5870 <attr "prefix">: Ditto.
5872 2016-05-26 Martin Liska <mliska@suse.cz>
5874 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5876 (operator+): Likewise.
5877 (operator-): Likewise.
5878 (comp_cost::operator+=): Likewise.
5879 (comp_cost::operator-=): Likewise.
5880 (comp_cost::operator/=): Likewise.
5881 (comp_cost::operator*=): Likewise.
5882 (operator<): Likewise.
5883 (operator==): Likewise.
5884 (operator<=): Likewise.
5886 (infinite_cost_p): Likewise.
5887 (add_costs): Likewise.
5888 (sub_costs): Likewise.
5889 (compare_costs): Likewise.
5890 (set_group_iv_cost): Use the newly introduced functions.
5891 (get_address_cost): Likewise.
5892 (get_shiftadd_cost): Likewise.
5893 (force_expr_to_var_cost): Likewise.
5894 (split_address_cost): Likewise.
5895 (ptr_difference_cost): Likewise.
5896 (difference_cost): Likewise.
5897 (get_computation_cost_at): Likewise.
5898 (determine_group_iv_cost_generic): Likewise.
5899 (determine_group_iv_cost_address): Likewise.
5900 (determine_group_iv_cost_cond): Likewise.
5901 (autoinc_possible_for_pair): Likewise.
5902 (determine_group_iv_costs): Likewise.
5903 (cheaper_cost_pair): Likewise.
5904 (iv_ca_recount_cost): Likewise.
5905 (iv_ca_set_no_cp): Likewise.
5906 (iv_ca_set_cp): Likewise.
5907 (iv_ca_cost): Likewise.
5908 (iv_ca_new): Likewise.
5909 (iv_ca_dump): Likewise.
5910 (iv_ca_narrow): Likewise.
5911 (iv_ca_prune): Likewise.
5912 (iv_ca_replace): Likewise.
5913 (try_add_cand_for): Likewise.
5914 (try_improve_iv_set): Likewise.
5915 (find_optimal_iv_set): Likewise.
5917 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
5919 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5920 that internal functions will clobber all caller-saved registers.
5922 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5924 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5925 Return a better case_values_threshold when optimizing.
5927 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5929 * config/aarch64/aarch64-simd.md (aarch64_combinez):
5930 Add ? to integer variant.
5931 (aarch64_combinez_be): Likewise.
5933 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5935 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5936 instead of x constraint.
5937 (vcvtps2ph256<mask_name>): Likewise.
5939 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5940 alternative. Formatting fix.
5942 * config/i386/sse.md
5943 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5945 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5946 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
5947 maybe_evex prefix instead of vex.
5948 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
5949 EXT_REX_SSE_REG_P (op0) case in the splitter.
5951 2016-05-25 Jeff Law <law@redhat.com>
5953 PR tree-optimization/71272
5954 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5955 Update comments. Add test for empty path.
5957 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5959 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5960 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5961 special case builtin.
5962 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5963 code for ALTIVEC_BUILTIN_VEC_CMPNE.
5964 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5965 for __builtin_vec_cmpne.
5967 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
5969 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5970 redundant test and bail out if the type of the new operand is not
5971 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5973 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5975 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5976 (x_ix86_target_flags_explicit): Remove.
5977 * config/i386/i386.c (ix86_function_specific_save): Do not copy
5978 x_ix86_target_flags_explicit.
5979 (ix86_function_specific_restore): Ditto.
5981 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5982 H.J. Lu <hongjiu.lu@intel.com>
5985 * common/config/i386/i386-common.c
5986 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
5987 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
5988 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
5989 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
5990 (-mgeneral-regs-only): Add new option.
5991 * config/i386/i386.c (ix86_option_override_internal): Don't enable
5992 x87 instructions if only general registers are allowed.
5993 (ix86_target_string): Add ix86_flags argument. Handle additional
5994 flags options through ix86_flags argument. Update all callers.
5995 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
5997 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5999 PR rtl-optimization/66940
6000 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6001 decrementing desired_val will not overflow before performing these
6004 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6006 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6007 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6008 * config/i386/i386.c (enum ix86_builtins): Add
6009 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6010 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6011 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6012 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6013 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6014 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6015 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6016 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6017 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6018 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6019 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6020 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6021 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6022 __builtin_ia32_cvtps2dq512_mask.
6023 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6024 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6025 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6026 * config/i386/sse.md
6027 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6029 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6030 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6032 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6033 (avx512f_vec_pack_sfix_v8df): New define_expand.
6034 (avx512f_roundpd512): Rename to ...
6035 (avx512f_round<castmode>512): ... this. Change iterator.
6036 (avx512f_roundps512_sfix): New define_expand.
6037 (round<mode>2_sfix): Change iterator.
6039 2016-05-25 Nick Clifton <nickc@redhat.com>
6041 * config/msp430/msp430.c (msp430_attr): Produce an error if a
6042 static interrupt handler is detected.
6043 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6044 default linker script.
6045 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6046 the low part of a symbolic pointer.
6048 2016-05-25 Richard Biener <rguenther@suse.de>
6050 PR tree-optimization/71261
6051 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6052 interesting stmt instead of immediate uses when looking
6053 for the use operand to replace.
6055 2016-05-25 Martin Liska <mliska@suse.cz>
6057 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6059 2016-05-25 Richard Biener <rguenther@suse.de>
6061 PR tree-optimization/71264
6062 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6065 2016-05-25 Martin Liska <mliska@suse.cz>
6067 PR tree-optimization/71239
6068 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6069 if DECL_SIZE is NULL.
6071 2016-05-25 Richard Biener <rguenther@suse.de>
6073 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6074 * tree-if-conv.c (pass_data_if_conversion): Use it.
6076 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6078 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6079 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6080 * varpool.c (varpool_node::get_availability): Likewise.
6082 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6084 * config/rs6000/altivec.md (VNEG iterator): New iterator for
6085 VNEGW/VNEGD instructions.
6086 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6087 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6088 support for ISA 3.0 VNEGW/VNEGD instructions.
6090 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6092 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6093 pointers inside OACC_DATA regions.
6094 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6095 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6096 (gimplify_adjust_omp_clauses): Fix typo in comment.
6098 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6100 * config/rs6000/altivec.md (VParity): New mode iterator for vector
6101 parity built-in functions.
6102 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6104 (p9v_parity<mode>2): Likewise.
6105 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6107 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6108 (parity<mode>2): ISA 3.0 expander for vector parity.
6109 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6111 (BU_P9_64BIT_MISC_0): Likewise.
6112 (BU_P9_MISC_0): Likewise.
6113 (BU_P9V_AV_1): Likewise.
6114 (BU_P9V_AV_2): Likewise.
6115 (BU_P9V_AV_3): Likewise.
6116 (BU_P9V_AV_P): Likewise.
6117 (BU_P9V_VSX_1): Likewise.
6118 (BU_P9V_OVERLOAD_1): Likewise.
6119 (BU_P9V_OVERLOAD_2): Likewise.
6120 (BU_P9V_OVERLOAD_3): Likewise.
6121 (VCTZB): Add vector count trailing zeros support.
6125 (VPRTYBD): Add vector parity support.
6126 (VPRTYBQ): Likewise.
6127 (VPRTYBW): Likewise.
6128 (VCTZ): Add overloaded vector count trailing zeros support.
6129 (VPRTYB): Add overloaded vector parity support.
6130 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6131 overloaded vector count trailing zeros and parity instructions.
6132 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6133 vector parity support.
6134 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6135 trailing zeros support.
6136 (vec_cntlz): Likewise.
6137 (vec_vctzb): Likewise.
6138 (vec_vctzd): Likewise.
6139 (vec_vctzh): Likewise.
6140 (vec_vctzw): Likewise.
6141 (vec_vprtyb): Add ISA 3.0 vector parity support.
6142 (vec_vprtybd): Likewise.
6143 (vec_vprtybw): Likewise.
6144 (vec_vprtybq): Likewise.
6145 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6146 the ISA 3.0 vector count trailing zeros and vector parity built-in
6149 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6151 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6152 when there is stmt_to_insert.
6154 2016-05-24 Martin Sebor <msebor@redhat.com>
6157 * tree.h (complete_or_array_type_p): New inline function.
6159 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6161 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6162 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6163 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6165 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6166 Limit 1st alternative to noavx isa, split 2nd alternative into one
6167 noavx and one avx alternative, use *x and Bm in the former and
6168 x and m in the latter.
6170 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6171 of sse4 for the first alternative, drop %v from the template
6172 and d operand modifier. Split second alternative into one sse4_noavx
6173 and one avx alternative, use *x instead of *v in the former and v
6174 instead of *v in the latter.
6175 (*sse4_1_extractps): Use noavx isa instead of * for the first
6176 alternative, drop %v from the template. Split second alternative into
6177 one noavx and one avx alternative, use *x instead of *v in the
6178 former and v instead of *v in the latter.
6179 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6180 with noavx and the last one with avx.
6181 (sse4_1_phminposuw): Guard first alternative with noavx isa,
6182 split the second one into one noavx and one avx alternative,
6183 use *x and Bm in the former and x and m in the latter one.
6184 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6187 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6188 first two alternatives to noavx, use *x instead of *v in the second
6189 one, add avx alternative without *.
6190 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6191 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6192 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6194 2016-05-24 Jeff Law <law@redhat.com>
6196 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6197 New function, extracted from...
6198 (fsm_find_control_statement_thread_paths): Here. Use the new function.
6199 Allow simple copies and constant initializations in the SSA chain.
6201 2016-05-24 Marek Polacek <polacek@redhat.com>
6204 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6207 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6210 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6211 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6212 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
6213 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6214 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6216 2016-05-24 Richard Biener <rguenther@suse.de>
6218 PR tree-optimization/71240
6219 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6222 2016-05-24 Richard Biener <rguenther@suse.de>
6224 PR tree-optimization/71230
6225 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6227 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6229 * tree-vectorizer.h (vectorizable_comparison): Delete.
6230 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6231 PURE_SLP_STMT check.
6232 * tree-vect-stmts.c (vectorizable_call): Likewise.
6233 (vectorizable_simd_clone_call): Likewise.
6234 (vectorizable_conversion): Likewise.
6235 (vectorizable_assignment): Likewise.
6236 (vectorizable_shift): Likewise.
6237 (vectorizable_operation): Likewise.
6238 (vectorizable_load): Likewise.
6239 (vectorizable_condition): Likewise.
6240 (vectorizable_store): Likewise. Assert that we don't have
6242 (vectorizable_comparison): Make static. Remove redundant
6243 PURE_SLP_STMT check.
6244 (vect_transform_stmt): Assert that we always have an slp_node
6247 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6249 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
6250 operands[2] against 1 with comparison against CONST1_RTX.
6251 (<shift>di3_neon): Likewise.
6252 * config/arm/predicates.md (const0_operand): Replace with comparison
6255 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6257 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6258 operands[2] against 1 with comparison against CONST1_RTX.
6259 (ashrdi3): Likewise.
6260 (lshrdi3): Likewise.
6261 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6263 (ashrsi3): Likewise.
6264 (lshrsi3): Likewise.
6265 (rotrsi3): Likewise.
6266 (define_split above *compareqi_eq0): Likewise.
6267 (define_split above "prologue"): Likewise.
6268 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6269 * config/arm/predicates.md (shift_operator): Likewise.
6270 (shift_nomul_operator): Likewise.
6271 (sat_shift_operator): Likewise.
6272 (thumb1_cmp_operand): Likewise.
6273 (const_neon_scalar_shift_amount_operand): Replace manual range
6274 check with IN_RANGE.
6275 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6276 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6278 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6280 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6281 with HOST_WIDE_INT_1.
6283 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6284 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6285 (arm_canonicalize_comparison): Likewise.
6286 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6288 (thumb1_size_rtx_costs): Likewise.
6289 (vfp_const_double_index): Replace cast of 1 to unsigned
6290 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6291 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6293 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6294 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6295 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6296 HOST_WIDE_INT with HOST_WIDE_INT_1.
6298 2016-05-24 Marek Polacek <polacek@redhat.com>
6300 * tree-cfg.h (should_remove_lhs_p): New predicate.
6301 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6302 * gimplify.c (gimplify_modify_expr): Likewise.
6303 * tree-cfg.c (verify_gimple_call): Likewise.
6304 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6305 * gimple-fold.c: Include "tree-cfg.h".
6306 (gimple_fold_call): Use should_remove_lhs_p.
6308 2016-05-24 Richard Biener <rguenther@suse.de>
6310 PR tree-optimization/71253
6311 * cfganal.h (control_dependences): Make robust against edge
6313 (control_dependences::control_dependences): Remove edge_list argument.
6314 (control_dependences::get_edge): Remove.
6315 (control_dependences::get_edge_src): Add.
6316 (control_dependences::get_edge_dest): Likewise.
6317 (control_dependences::m_el): Make a vector of edge src/dest index.
6318 * cfganal.c (control_dependences::find_control_dependence): Adjust.
6319 (control_dependences::control_dependences): Likewise.
6320 (control_dependences::~control_dependence): Likewise.
6321 (control_dependences::get_edge): Remove.
6322 (control_dependences::get_edge_src): Add.
6323 (control_dependences::get_edge_dest): Likewise.
6324 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6326 (perform_tree_ssa_dce): Adjust.
6327 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6329 (pass_loop_distribution::execute): Adjust. Do loop destroying
6330 conditional on changed.
6332 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6335 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6336 return. Reindent transformation comment and mention the ARM state
6339 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6342 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6343 after build_and_add_sum creates new use stmt.
6345 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6347 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6348 load_lanes/grouped_load classification comes first. Don't check
6349 whether the vectorization factor is a multiple of the group size
6352 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6354 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6355 GROUP_GAP for single-element interleaving.
6356 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6359 2016-05-24 Richard Biener <rguenther@suse.de>
6363 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6364 bases which are accessed with non-invariant indices.
6365 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6366 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6368 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6371 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6372 (add_to_ops_vec): Add stmt_to_insert.
6373 (add_repeat_to_ops_vec): Init stmt_to_insert.
6374 (insert_stmt_before_use): New.
6375 (transform_add_to_multiply): Remove mult_stmt insertion and add it
6377 (get_ops): Init stmt_to_insert.
6378 (maybe_optimize_range_tests): Likewise.
6379 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6380 (rewrite_expr_tree_parallel): Likewise.
6381 (reassociate_bb): Likewise.
6383 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6386 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6387 ISA 3.0 xxperm fusion alternative.
6388 (altivec_vperm_v8hiv16qi): Likewise.
6389 (altivec_vperm_<mode>_uns_internal): Likewise.
6390 (vperm_v8hiv4si): Likewise.
6391 (vperm_v16qiv8hi): Likewise.
6393 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6394 Kelvin Nilsen <kelvin@gcc.gnu.org>
6396 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6397 vpermr/xxpermr on ISA 3.0.
6398 (altivec_expand_vec_perm_le): Likewise.
6399 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6400 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6403 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
6405 * config/i386/i386.h (IS_STACK_MODE): Enable for
6406 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
6407 SSE_FLOAT_MODE_P macros.
6408 * config/i386/i386.c (ix86_preferred_reload_class): Use
6409 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6410 Cleanup regclass processing for CONST_DOUBLE_P.
6411 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6412 (ix86_rtx_costs): Remove redundant TARGET_80387 check
6413 with IS_STACK_MODE macro.
6414 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6416 (*movdf_internal): Use IS_STACK_MODE macro.
6417 (*movsf_internal): Ditto.
6419 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
6421 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6422 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6424 2016-05-23 Jeff Law <law@redhat.com>
6426 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6428 (fsm_find_control_statement_thread_paths): Call it.
6430 2016-05-23 Martin Jambor <mjambor@suse.cz>
6433 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6434 from_global_constant if t is not NULL.
6436 2016-05-23 Marek Polacek <polacek@redhat.com>
6439 * common.opt (Wswitch-unreachable): New option.
6440 * doc/invoke.texi: Document -Wswitch-unreachable.
6441 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6444 2016-05-23 Bin Cheng <bin.cheng@arm.com>
6446 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6447 TMR_INDEX is non-NULL.
6449 2016-05-23 Richard Biener <rguenther@suse.de>
6451 PR tree-optimization/71230
6452 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6453 (try_special_add_to_ops): ... here. Always test for single-use.
6455 2016-05-23 Martin Jambor <mjambor@suse.cz>
6457 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6458 default block if a PHI node in the original one would be resized.
6460 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6462 PR tree-optimization/58135
6463 * tree-vect-slp.c: When group size is not multiple
6464 of vector size, allow splitting of store group at
6467 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
6469 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6471 2016-05-22 Jakub Jelinek <jakub@redhat.com>
6473 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6474 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6475 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
6478 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6479 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6480 v constraint instead of x and vinserti32x4 insn.
6482 * config/i386/sse.md (i128vldq): New mode iterator.
6483 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6484 avx512dq and avx512vl alternatives.
6486 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6487 constraint, use maybe_evex prefix instead of vex.
6488 (vec_dupv4sf): Use v constraint instead of x for output
6489 operand except for noavx alternative, use Yv constraint
6490 instead of x for input. Use maybe_evex prefix instead of vex.
6491 (*vec_dupv4si): Likewise.
6492 (*vec_dupv2di): Likewise.
6494 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6497 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6498 (linearize_expr_tree): Call try_special_add_to_ops.
6499 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6501 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6503 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6504 to computed stack_usage.
6506 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6509 * config/avr/avr.md (define_expand "mov<mode>"): If the source
6510 operand is subreg (symbol_ref) then move the symbol ref to register.
6512 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
6514 * tree.c (array_at_struct_end_p): Look through MEM_REF.
6516 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6519 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6522 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6524 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6525 ranges by calling get_single_symbol and tidy up. Look more closely
6526 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6528 2016-05-20 Jeff Law <law@redhat.com>
6530 * bitmap.c (bitmap_find_bit): Remove useless test.
6532 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6534 * function.c (thread_prologue_and_epilogue_insns): Commit the
6535 insertion of the epilogue.
6537 2016-05-20 Martin Jambor <mjambor@suse.cz>
6539 PR tree-optimization/70884
6540 * tree-sra.c (initialize_constant_pool_replacements): Do not check
6541 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6542 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6543 of constant pool data as a reason for scalarization.
6545 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6547 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6548 for naked functions.
6549 (thumb1_expand_prologue): Likewise.
6551 2016-05-20 Nathan Sidwell <nathan@acm.org>
6553 * config/nvptx/nptx.c (nvptx_option_override): Only set
6554 flag_toplevel_reorder, if not explicitly specified. Set
6555 flag_no_common, unless explicitly specified.
6557 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6559 * calls.c (can_implement_as_sibling_call_p): Mark param
6560 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6562 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6564 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6565 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6566 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6568 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6569 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6572 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6574 * config/nvptx/nvptx.md (sincossf3): New pattern.
6576 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6578 * calls.c (maybe_complain_about_tail_call): New function.
6579 (initialize_argument_information): Call
6580 maybe_complain_about_tail_call when clearing *may_tailcall.
6581 (can_implement_as_sibling_call_p): Call
6582 maybe_complain_about_tail_call when returning false.
6583 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6584 ensure try_tail_call is set. Call maybe_complain_about_tail_call
6585 if tail-call optimization fails.
6586 * cfgexpand.c (expand_call_stmt): Initialize
6587 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6588 * gimple-pretty-print.c (dump_gimple_call): Dump
6589 gimple_call_must_tail_p.
6590 * gimple.c (gimple_build_call_from_tree): Call
6591 gimple_call_set_must_tail with the value of
6592 CALL_EXPR_MUST_TAIL_CALL.
6593 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6594 (gimple_call_set_must_tail): New function.
6595 (gimple_call_must_tail_p): New function.
6596 * print-tree.c (print_node): Update printing of TREE_STATIC
6597 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6598 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6599 trailing comment listing applicable flags.
6600 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6602 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6604 * calls.c (expand_call): Move "Rest of purposes for tail call
6605 optimizations to fail" to...
6606 (can_implement_as_sibling_call_p): ...this new function, and
6607 split into multiple "if" statements.
6609 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6611 * cfgloop.h (expected_loop_iterations_unbounded,
6612 expected_loop_iterations): Unconstify.
6613 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6614 profile with known upper bound; return 3 when profile is absent.
6615 (expected_loop_iterations): Update.
6617 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6619 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6620 and get_max_loop_iterations_int.
6622 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6624 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6625 realistic upper bounds here.
6627 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6630 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6631 calls if the LHS is variable length or has addressable type.
6632 If targets[0]->decl is a noreturn call with void return type and
6633 zero arguments, adjust fntype and remove lhs in that case.
6635 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6637 PR tree-optimization/71079
6638 PR tree-optimization/71206
6639 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6641 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6643 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6644 (get_vec_alignment_for_array_decl): Likewise.
6645 (get_vec_alignment_for_record_decl): Likewise.
6646 (increase_alignment::execute): Move code to find alignment to
6647 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6648 (type_align_map): New hash_map.
6650 2016-05-20 Richard Guenther <rguenther@suse.de>
6652 PR tree-optimization/29756
6653 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6654 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6655 * fold-const.c (operand_equal_p): Likewise.
6656 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6657 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6658 * tree-inline.c (estimate_operator_cost): Likewise.
6659 * tree-pretty-print.c (dump_generic_node): Likewise.
6660 * tree-ssa-operands.c (get_expr_operands): Likewise.
6661 * cfgexpand.c (expand_debug_expr): Likewise.
6662 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6663 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6664 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6665 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6666 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6667 (execute_update_addresses_taken): Do it.
6669 2016-05-20 Richard Biener <rguenther@suse.de>
6671 PR tree-optimization/71185
6672 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6673 register operations.
6675 2016-05-20 Richard Biener <rguenther@suse.de>
6677 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6678 gimple_seq_add_seq_without_update.
6679 (release_bb_predicate): Assert we have no operands to free.
6680 (if_convertible_loop_p_1): Calculate post dominators later.
6681 Do not free BB predicates here.
6682 (combine_blocks): Do not recompute BB predicates.
6683 (version_loop_for_if_conversion): Save BB predicates around
6686 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6688 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6689 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
6690 code. Ignore sibcalls on EDGE_IGNORE edges.
6691 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
6692 on edges for sibcalls that run without prologue. The rest of the
6693 function is combined from...
6694 (fix_fake_fallthrough_edge): ... this, and ...
6695 (try_shrink_wrapping): ... a part of this. Remove the bb_with
6696 function argument, make it a local variable.
6698 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
6700 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6701 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6702 for 32-bit mode and SEH for 64-bit.
6703 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6704 TARGET_64BIT_DEFAULT.
6706 2016-05-19 Ryan Burn <contact@rnburn.com>
6708 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6709 * gengtype.c (open_base_files): Add cilk.h to ifiles.
6711 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
6713 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6714 force pending loads from memory.
6716 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
6718 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6719 (UNSPEC_DARN_32): New unspec constant.
6720 (UNSPEC_DARN_RAW): New unspec constant.
6721 (darn_32): New instruction.
6722 (darn_raw): New instruction.
6723 (darn): New instruction.
6724 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6725 support and documentation for this macro.
6726 (BU_P9_MISC_1): New macro definition.
6727 (BU_P9_64BIT_MISC_0): New macro definition.
6728 (BU_P9_MISC_0): New macro definition.
6729 (darn_32): New builtin definition.
6730 (darn_raw): New builtin definition.
6731 (darn): New builtin definition.
6732 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6733 RS6000_BUILTIN_0 directives to surround each occurrence of
6734 #include "rs6000-builtin.def".
6735 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6736 RS6000_BTM_64BIT flags to the returned mask, depending on
6738 (def_builtin): Correct an error in the assignments made to the
6739 debugging variable attr_string.
6740 (rs6000_expand_builtin): Add support for no-operand built-in
6742 (builtin_function_type): Remove fatal_error assertion that is no
6744 (rs6000_common_init_builtins): Add support for no-operand built-in
6746 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6748 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6750 (RS6000_BTM_64BIT): New macro definition.
6751 * doc/extend.texi: Document __builtin_darn (void),
6752 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6755 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
6757 * tree-vect-loop.c (vect_analyze_loop_2): Use also
6758 max_loop_iterations_int.
6760 2016-05-19 Marek Polacek <polacek@redhat.com>
6762 PR tree-optimization/71031
6763 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6764 condition and adjust the code a bit.
6766 2016-05-19 Martin Liska <mliska@suse.cz>
6768 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6769 auto_vec instead of vec.
6771 2016-05-19 Martin Liska <mliska@suse.cz>
6773 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6775 2016-05-19 Martin Liska <mliska@suse.cz>
6777 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6779 2016-05-19 Martin Liska <mliska@suse.cz>
6781 * ipa-pure-const.c (set_function_state): Remove an existing
6783 (remove_node_data): Do not free it as it's released
6784 in set_function_state.
6786 2016-05-19 Martin Liska <mliska@suse.cz>
6788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6791 2016-05-19 Martin Liska <mliska@suse.cz>
6793 * omp-simd-clone.c (simd_clone_adjust): Release vector.
6795 2016-05-19 Martin Liska <mliska@suse.cz>
6797 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6798 an auto_vec instead of re-creating it.
6800 2016-05-19 Martin Liska <mliska@suse.cz>
6802 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6803 auto_vec instead of vec.
6805 2016-05-19 Martin Liska <mliska@suse.cz>
6807 * lto-section-in.c (lto_get_section_data): Call
6808 lto_check_version with additional argument.
6809 * lto-streamer.c (lto_check_version): Add new argument.
6810 * lto-streamer.h (lto_check_version): Likewise.
6812 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6814 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6815 Don't add cost of inner memory when handling sign-extended loads.
6817 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
6819 PR rtl-optimization/71148
6820 * cse.c (cse_main): Free dominance info.
6821 (rest_of_handle_cse): Don't free dominance info.
6822 (rest_of_handle_cse2): Likewise.
6823 (rest_of_handle_cse_after_global_opts): Likewise.
6825 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6828 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6829 NULL_TREE early if NEON is not available. Remove now redundant check
6830 in ARM_CHECK_BUILTIN_MODE.
6832 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
6835 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6836 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6837 * doc/cpp.texi: Document new macros.
6839 2016-05-19 Bin Cheng <bin.cheng@arm.com>
6841 PR tree-optimization/69848
6842 * tree-vect-loop.c (vectorizable_reduction): Don't factor
6843 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6845 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6847 * function.c (thread_prologue_and_epilogue_insn): Move the
6848 "goto epilogue_done" one block later.
6850 2016-05-19 Richard Biener <rguenther@suse.de>
6852 PR tree-optimization/70729
6853 * passes.def: Move LIM pass before PRE. Remove no longer
6854 required copyprop and move first DCE out of the loop pipeline.
6856 2016-05-18 David Malcolm <dmalcolm@redhat.com>
6859 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6860 (OBJS-libcommon-target): ...here.
6861 * opts-common.c: Include spellcheck.h.
6862 (cmdline_handle_error): Build a vec of valid options and use it
6863 to suggest provide hints for misspelled arguments.
6865 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6868 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6869 lhs if it has TREE_ADDRESSABLE type.
6871 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
6874 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6875 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6877 2016-05-18 Martin Jambor <mjambor@suse.cz>
6880 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6881 input for NOP_EXPR pass-through functions.
6882 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6883 aggregate global constant VAR_DECLs in constant jump functions.
6885 2016-05-18 Martin Jambor <mjambor@suse.cz>
6888 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6889 from TREE_READONLY parameters.
6891 2016-05-18 Martin Jambor <mjambor@suse.cz>
6894 * cgraph.h (cgraph_indirect_call_info): New field
6895 guaranteed_unmodified.
6896 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6897 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6899 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6900 pass the parameter value to ipa_find_agg_cst_for_param.
6901 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6902 guaranteed_unmodified, store AA results there instead of bailing out
6904 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6905 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6906 (find_constructor_constant_at_offset): New function.
6907 (ipa_find_agg_cst_from_init): Likewise.
6908 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6909 static initializers of contants, report back through a new paameter
6910 from_global_constant if that was the case.
6911 (try_make_edge_direct_simple_call): Also pass parameter value to
6912 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6914 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6915 (ipa_read_indirect_edge_info): Likewise.
6916 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6917 (ipa_load_from_parm_agg): Likewise.
6919 2016-05-18 Jiong Wang <jiong.wang@arm.com>
6921 PR rtl-optimization/71150
6922 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6925 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6928 * config/rs6000/constraints.md (wE constraint): New constraint
6929 for a vector constant that can be loaded with XXSPLTIB.
6930 (wM constraint): New constraint for a vector constant of a 1's.
6931 (wS constraint): New constraint for a vector constant that can be
6932 loaded with XXSPLTIB and a vector sign extend instruction.
6933 * config/rs6000/predicates.md (xxspltib_constant_split): New
6934 predicates for wE/wS constraints.
6935 (xxspltib_constant_nosplit): Likewise.
6936 (easy_vector_constant): Add support for constants that can be
6937 loaded via XXSPLTIB.
6938 (all_ones_constant): New predicate for vector constant with all
6940 (splat_input_operand): Add support for ISA 3.0 word splat operations.
6941 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6942 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6943 instruction and possibly with a sign extension.
6944 (output_vec_const_move): Add support for XXSPLTIB. If we are
6945 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6946 instead of XXLXOR/XXLORC.
6947 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6949 (rs6000_legitimize_reload_address): Likewise.
6950 (rs6000_output_move_128bit): Use output_vec_const_move to emit
6952 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6953 combine VSX_M and VSX_M2 into one iterator.
6955 (VSINT_84): New iterators for loading constants with XXSPLTIB.
6956 (VSINT_842): Likewise.
6957 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6958 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6959 XXSPLTIB instruction.
6960 (xxspltib_<mode>_nosplit): Likewise.
6961 (xxspltib_<mode>_split): New insn to load up constants with
6962 XXSPLTIB and a sign extend instruction.
6963 (vsx_mov<mode>): Replace single move that handled all vector types
6964 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
6965 moves (when -mvsx-timode is in effect) into the main vector
6966 moves. Eliminate separate moves for <VSr> <VSa>, where the
6967 preferred register class (<VSr>) is listed first, and the
6968 secondary register class (<VSa>) is listed second with a '?' to
6969 discourage use. Prefer loading 0/-1 in any VSX register for ISA
6970 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6971 that if the register was involved in a slow operation, the
6972 clear/set operation does not wait for the slow operation to
6973 finish. Adjust the length attributes for 32-bit mode. Use
6974 rs6000_output_move_128bit and drop the use of the string
6975 instructions for 32-bit movti when -mvsx-timode is in effect. Use
6976 spacing so that the alternatives and attributes don't generate
6977 long lines, and put things in columns, so that it is easier to
6978 match up the operands and attributes with the insn alternatives.
6979 (vsx_mov<mode>_64bit): Likewise.
6980 (vsx_mov<mode>_32bit): Likewise.
6981 (vsx_movti_64bit): Fold movti into normal vector moves.
6982 (vsx_movti_32bit): Likewise.
6983 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6985 (vsx_splat_v4si_internal): Likewise.
6986 (vsx_splat_v4sf_internal): Likewise.
6987 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
6988 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
6989 extend vector elements.
6990 (vsx_sign_extend_hi_<mode>): Likewise.
6991 (vsx_sign_extend_si_v2di): Likewise.
6992 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
6994 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6995 constraints. Add trailing period to wL documentation.
6997 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
7000 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7001 * tree-dfa.c (replace_abnormal_ssa_names): New function.
7002 * tree-call-cdce.c: Include tree-dfa.h.
7003 (can_guard_call_p): New function, extracted from...
7004 (can_use_internal_fn): ...here.
7005 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7007 (shrink_wrap_one_built_in_call): Likewise.
7008 (use_internal_fn): Likewise.
7009 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7010 and return void. Call replace_abnormal_ssa_names.
7011 (pass_call_cdce::execute): Check can_guard_call_p during the
7012 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
7013 will always change something.
7015 2016-05-18 Martin Jambor <mjambor@suse.cz>
7018 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7019 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7021 2016-05-18 Martin Jambor <mjambor@suse.cz>
7024 * ipa-inline.h (condition): New field size.
7025 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7026 for comaprison and store it into the new condition.
7027 (evaluate_conditions_for_known_args): Use condition size to check
7028 access sizes for all but CHANGED conditions.
7029 (unmodified_parm_1): New parameter size_p, store access size into it.
7030 (unmodified_parm): Likewise.
7031 (unmodified_parm_or_parm_agg_item): Likewise.
7032 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7033 (set_cond_stmt_execution_predicate): Extract access sizes and store
7035 (set_switch_stmt_execution_predicate): Likewise.
7036 (will_be_nonconstant_expr_predicate): Likewise.
7037 (will_be_nonconstant_predicate): Likewise.
7038 (inline_read_section): Stream condition size.
7039 (inline_write_summary): Likewise.
7041 2016-05-18 Richard Biener <rguenther@suse.de>
7043 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7044 condition cost to PHI cost instead of total_cost.
7046 2016-05-18 Martin Liska <mliska@suse.cz>
7049 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7052 2016-05-18 Richard Biener <rguenther@suse.de>
7054 * lto-streamer.h (LTO_major_version): Bump to 6.
7056 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7058 * function.c (make_split_prologue_seq, make_prologue_seq,
7059 make_epilogue_seq): New functions, factored out from...
7060 (thread_prologue_and_epilogue_insns): Here.
7062 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7064 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7065 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7066 of before. Add a comment.
7068 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7070 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7071 expression pointer, not pointer to the pointer.
7073 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7075 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7076 (avx2_pbroadcast<mode>): Add another alternative with v instead
7077 of x constraints in it, using <pbroadcast_evex_isa> isa.
7078 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7080 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7081 constraint x instead of v in second alternative, add avx512bw
7084 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7085 constraint x instead of v in second alternative, add avx512bw
7088 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7089 constraint x instead of v in second alternative, add avx512bw
7092 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7093 avx512bw alternative.
7095 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7097 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7099 (define_insn "*andnottf3"): Ditto.
7100 (define_insn "*<code><mode>3"/any_logic): Ditto.
7101 (define_insn "*<code>tf3"/any_logic): Ditto.
7102 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7103 operand to block AVX-512VL insn variant emit when it is not enabled.
7105 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7107 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7108 constraint fot SF mode.
7110 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7111 Kirill Yukhin <kirill.yukhin@intel.com>
7113 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7115 (define_insn "rsqrt14<mode>"): Ditto.
7116 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7117 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7118 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7119 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7120 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7122 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7123 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7124 * config/i386/i386.c (ix86_print_operand): Expand check for size
7125 override codes for Intel syntax.
7127 2016-05-18 Richard Biener <rguenther@suse.de>
7129 PR tree-optimization/71168
7130 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7131 initialization earlier.
7133 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7135 * config/aarch64/aarch64-simd.md
7136 (aarch64_reduc_plus_internal<mode>): Rename to...
7137 (reduc_plus_scal): ...This, and remove previous implementation.
7139 2016-05-18 Richard Biener <rguenther@suse.de>
7141 * passes.def: Put late dse and cd_dce in canonical order.
7143 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7145 * ipa-inline-transform.c (preserve_function_body_p): Look for
7146 first non-thunk clone.
7147 (save_function_body): Save into first non-thunk.
7148 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7150 (lto_output_node): Inline thunks don't need body in every
7152 * lto-streamer-in.c: Do not fixup thunk clones.
7153 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7155 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7158 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7161 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7162 (reassociate_bb): Call transform_add_to_multiply.
7164 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7166 * config/aarch64/aarch64.c (all_extensions): Removed unused
7169 2016-05-17 Nathan Sidwell <nathan@acm.org>
7171 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7172 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7174 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7176 PR tree-optimization/54579
7178 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7180 2016-05-17 Marek Polacek <polacek@redhat.com>
7183 * tree-inline.c (expand_call_inline): Call
7184 maybe_remove_unused_call_args.
7186 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7188 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7189 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7190 * doc/md.texi (fmin@var{m}3): Likewise.
7192 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7194 * match.pd (X & C): New transformation.
7196 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7198 * match.pd (~X & Y): New transformation.
7200 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7202 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7203 information for new SSA_NAME.
7204 (simplify_conversion_using_ranges): Get range through get_range_info
7205 instead of get_value_range.
7207 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7209 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7210 Remove inline assembly.
7211 (vmvn_s16): Likewise.
7212 (vmvn_s32): Likewise.
7213 (vmvn_u8): Likewise.
7214 (vmvn_u16): Likewise.
7215 (vmvn_u32): Likewise.
7216 (vmvnq_s8): Likewise.
7217 (vmvnq_s16): Likewise.
7218 (vmvnq_s32): Likewise.
7219 (vmvnq_u8): Likewise.
7220 (vmvnq_u16): Likewise.
7221 (vmvnq_u32): Likewise.
7222 (vmvn_p8): Likewise.
7223 (vmvnq_p16): Likewise.
7225 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7227 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7229 (vmul_n_s16): Likewise.
7230 (vmul_n_s32): Likewise.
7231 (vmul_n_u16): Likewise.
7232 (vmul_n_u32): Likewise.
7233 (vmulq_n_f32): Likewise.
7234 (vmulq_n_f64): Likewise.
7235 (vmulq_n_s16): Likewise.
7236 (vmulq_n_s32): Likewise.
7237 (vmulq_n_u16): Likewise.
7238 (vmulq_n_u32): Likewise.
7240 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7242 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7243 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7245 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7247 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7248 to *aarch64_fma4_elt_from_dup<mode>.
7249 (*aarch64_fnma4_elt_to_128df): Rename to
7250 *aarch64_fnma4_elt_from_dup<mode>.
7251 * config/aarch64/arm_neon.h (vfma_n_f64): New.
7252 (vfms_n_f32): Likewise.
7253 (vfms_n_f64): Likewise.
7254 (vfmsq_n_f32): Likewise.
7255 (vfmsq_n_f64): Likewise.
7257 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7259 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7261 2016-05-17 Richard Biener <rguenther@suse.de>
7263 PR tree-optimization/71132
7264 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7265 Only add control dependences for blocks in the loop.
7266 (build_rdg): Adjust.
7267 (generate_code_for_partition): Return whether loop should
7268 be destroyed and delay that.
7269 (distribute_loop): Likewise.
7270 (pass_loop_distribution::execute): Record loops to be destroyed
7271 and perform delayed destroying of loops.
7273 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7276 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7278 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7280 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7282 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7285 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7286 insertion point for instructions generated by validize_mem.
7288 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7290 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7293 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7295 * config/aarch64/aarch64.c
7296 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7297 rather than a macro.
7299 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7301 * doc/invoke.texi (AArch64 Options): Various updates.
7303 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7305 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7306 into instrumentation thunks.
7307 * cif-code.def (CIF_CHKP): New.
7309 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7311 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7313 2016-05-16 Martin Jambor <mjambor@suse.cz>
7315 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7316 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7318 2016-05-16 Marek Polacek <polacek@redhat.com>
7320 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7323 2016-05-16 Martin Jambor <mjambor@suse.cz>
7326 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7327 the outlined kernel function.
7329 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7331 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7332 (ISA_HAS_DLSA): Ditto.
7334 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7336 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7338 2016-05-16 Nathan Sidwell <nathan@acm.org>
7340 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7341 (nvptx_name_replacement): Restore. Add comment.
7342 (write_fn_proto, write_fn_proto_from_insn,
7343 nvptx_output_call_insn): Restore
7344 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7346 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7348 * config/aarch64/aarch64.md
7349 (add<mode>3_compareC_cconly_imm): Remove use of %w.
7350 (add<mode>3_compareC_imm): Likewise.
7351 (<optab>si3_uxtw): Split into register and immediate variants.
7352 (andsi3_compare0_uxtw): Likewise.
7353 (and<mode>3_compare0): Likewise.
7354 (and<mode>3nr_compare0): Likewise.
7355 (stack_protect_test_<mode>): Don't use %x for memory operands.
7357 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7359 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7361 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7363 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7364 Split integer shifts into shift_reg and bfm.
7365 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7366 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7367 (ror<mode>3_insn): Likewise.
7368 (<optab>si3_insn_uxtw): Likewise.
7369 (<optab><mode>3_insn): Change to rotate_imm.
7370 (extr<mode>5_insn_alt): Likewise.
7371 (extrsi5_insn_uxtw): Likewise.
7372 (extrsi5_insn_uxtw_alt): Likewise.
7374 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7376 * doc/tm.texi: Regenerate.
7377 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7378 (TARGET_INVALID_RETURN_TYPE): Remove.
7379 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7380 TARGET_INVALID_RETURN_TYPE.
7381 * target.def (invalid_parameter_type): Remove.
7382 (invalid_return_type): Remove.
7384 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7386 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7387 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7389 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7391 (preserve_function_body_p): No need to preserve function body
7392 * cif-codes.def (CIF_THUNK): Remove.
7393 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7395 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7397 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7399 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7401 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7404 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7406 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7407 (inline_small_functions): Do not look for function symbol when
7410 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7412 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7415 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7417 Jiong Wang <jiong.wang@arm.com>
7419 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7420 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7421 Define __ARM_FP16_ARGS when appropriate.
7422 * config/arm/arm.c (arm_invalid_parameter_type): Remove
7424 (arm_invalid_return_type): Likewise.
7425 (TARGET_INVALID_PARAMETER_TYPE): Remove.
7426 (TARGET_INVALID_RETURN_TYPE): Remove.
7427 (aapcs_vfp_sub_candidate): Allow HFmode.
7428 (aapcs_vfp_allocate): Add comment. Support HFmode.
7429 (aapcs_vfp_allocate_return_reg): Likewise.
7430 (struct aapcs_cp_arg_layout): Slightly reword comments for
7431 is_return_candidate and allocate_return_reg.
7432 (output_mov_vfp): Update assert.
7433 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7435 (arm_invalid_parameter_type): Remove.
7436 (amr_invalid_return_type): Remove.
7437 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7438 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7439 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7441 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7443 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7444 * config/aarch64/arch64-protos.h
7445 (aarch64_legitimize_reload_address): Remove.
7446 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7449 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
7451 * configure.ac: Add ACX_NONCANONICAL_HOST.
7452 * configure: Regenerate.
7453 * Makefile.in: Set host_noncanonical.
7455 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
7458 * config/i386/i386.md (*movtf_internal): Before register allocation,
7459 do not allow FP constants for CM_MEDIUM memory model, allow only
7460 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7461 (*movxf_internal): Ditto.
7462 (*movdf_internal): Ditto.
7463 (*movsf_internal): Ditto.
7465 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7467 PR rtl-optimization/67483
7468 * combine.c (make_compound_operation): Don't call extract_left_shift
7469 with negative shift amounts.
7471 2016-05-13 Jakub Jelinek <jakub@redhat.com>
7474 * fold-const.c (fold_checksum_tree): Allow modification
7475 of TYPE_ALIAS_SET during folding.
7477 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7478 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7479 (ix86_split_to_parts): Likewise. Fix up formatting.
7481 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
7483 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7484 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7487 2016-05-13 Nathan Sidwell <nathan@acm.org>
7489 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7490 (nvptx_name_replacement): Delete.
7491 (write_fn_proto, write_fn_proto_from_insn,
7492 nvptx_output_call_insn): Remove nvptx_name_replacement call.
7493 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7494 * langhooks.c (add_builtin_funcction_common): Call
7495 targetm.mangle_decl_assembler_name.
7497 * config/nvptx/nvptx.c (write_fn_proto): Handle
7498 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7500 2016-05-13 Martin Liska <mliska@suse.cz>
7502 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7503 and PRIu64 in printf format.
7505 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7507 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7510 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7512 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7513 Change --param max-completely-peeled-times to
7514 --param max-completely-peel-times in dump file printing.
7516 2016-05-13 Richard Biener <rguenther@suse.de>
7518 PR tree-optimization/42587
7519 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7520 (find_bswap_or_nop_1): Likewise.
7521 (bswap_replace): Likewise.
7523 2016-05-13 Martin Liska <mliska@suse.cz>
7525 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7526 Initialize a variable with default value.
7528 2016-05-13 Martin Liska <mliska@suse.cz>
7530 * doc/invoke.texi: Enhance explanation of error recovery
7533 2016-05-13 Martin Liska <mliska@suse.cz>
7535 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7536 (struct cost_pair): Change inv_expr_id (int) to inv_expr
7537 (iv_inv_expr_ent *).
7538 (struct iv_inv_expr_ent): Comment struct fields.
7539 (sort_iv_inv_expr_ent): New function.
7540 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7541 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7542 a hash_map between iv_inv_expr_ent and number of usages.
7543 (niter_for_exit): Fix coding style.
7544 (tree_ssa_iv_optimize_init): Use renamed variable.
7545 (determine_base_object): Fix coding style.
7546 (alloc_iv): Likewise.
7547 (find_interesting_uses_outside): Likewise.
7548 (add_candidate_1): Likewise.
7549 (add_standard_iv_candidates): Likewise.
7550 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7551 (prepare_decl_rtl): Fix coding style.
7552 (get_address_cost): Likewise.
7553 (get_shiftadd_cost): Likewise.
7554 (force_expr_to_var_cost): Likewise.
7555 (compare_aff_trees): Likewise.
7556 (get_expr_id): Restructure the function.
7557 (get_loop_invariant_expr_id): Renamed to
7558 get_loop_invariant_expr.
7559 (get_computation_cost_at): Replace usage of inv_expr_id with
7561 (get_computation_cost): Likewise.
7562 (determine_group_iv_cost_generic): Likewise.
7563 (determine_group_iv_cost_address): Likewise.
7564 (iv_period): Fix coding style.
7565 (iv_elimination_compare_lt): Likewise.
7566 (may_eliminate_iv): Likewise.
7567 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
7569 (determine_group_iv_costs): Dump invariant expressions.
7570 (iv_ca_recount_cost): Use the newly added hash_map.
7571 (iv_ca_set_remove_invariants): Fix coding style.
7572 (iv_ca_set_add_invariants): Fix coding style.
7573 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7575 (iv_ca_set_cp): Likewise.
7576 (iv_ca_new): Initialize the newly added hash_map and remove
7577 initialization of fields.
7578 (iv_ca_free): Delete the hash_map.
7579 (iv_ca_dump): Dump invariant expressions.
7580 (iv_ca_extend): Fix coding style.
7581 (try_add_cand_for): Likewise.
7582 (create_new_ivs): Dump information about # of avg iterations and
7583 # of used invariant expressions.
7584 (rewrite_use_compare): Fix coding style.
7585 (free_loop_data): Set default value for max_inv_expr_id.
7587 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7589 * cse.c (rest_of_handle_cse): Use cleanup_cfg
7590 returned value cse_cfg_altered computation.
7591 (rest_of_handle_cse2): Likewise.
7592 (rest_of_handle_cse_after_global_opts): Likewise.
7594 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7597 * config/arm/arm.c (arm32_output_mi_thunk): New.
7598 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7599 to split Thumb1 vs TARGET_32BIT functionality.
7600 (arm_thumb1_mi_thunk): New.
7602 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7604 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7607 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7610 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7612 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7614 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7615 (expand_builtin_trap): Emit a regular call.
7616 (set_builtin_user_assembler_name): Remove obsolete cases.
7617 * dse.c (scan_insn): Adjust.
7618 * except.c: Include calls.h.
7619 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7620 emit a regular call to setjmp.
7621 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7622 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7623 (emit_block_move_via_libcall): Delete.
7624 (block_move_fn): Delete.
7625 (init_block_move_fn): Likewise.
7626 (emit_block_move_libcall_fn): Likewise.
7627 (emit_block_op_via_libcall): New function.
7628 (set_storage_via_libcall): Tidy up and use memset builtin.
7629 (block_clear_fn): Delete.
7630 (init_block_clear_fn): Likewise.
7631 (clear_storage_libcall_fn): Likewise.
7632 (expand_assignment): Call emit_block_move_via_libcall.
7633 Do not include gt-expr.h.
7634 * expr.h (emit_block_op_via_libcall): Declare.
7635 (emit_block_copy_via_libcall): New inline function.
7636 (emit_block_move_via_libcall): Likewise.
7637 (emit_block_comp_via_libcall): Likewise.
7638 (block_clear_fn): Delete.
7639 (init_block_move_fn): Likewise.
7640 (init_block_clear_fn): Likewise.
7641 (emit_block_move_via_libcall): Likewise.
7642 (set_storage_via_libcall): Add default parameter value.
7643 * libfuncs.h (enum libfunc_index): Remove obsolete values.
7644 (abort_libfunc): Delete.
7645 (memcpy_libfunc): Likewise.
7646 (memmove_libfunc): Likewise.
7647 (memcmp_libfunc): Likewise.
7648 (memset_libfunc): Likewise.
7649 (setbits_libfunc): Likewise.
7650 (setjmp_libfunc): Likewise.
7651 (longjmp_libfunc): Likewise.
7652 (profile_function_entry_libfunc): Likewise.
7653 (profile_function_exit_libfunc): Likewise.
7654 (gcov_flush_libfunc): Likewise.
7655 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7656 and DECL_VISIBILITY on the declaration.
7657 (init_optabs): Do not initialize obsolete libfuncs.
7658 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7659 * tree-core.h (ECF_RET1): Define.
7660 (ECF_TM_PURE): Adjust.
7661 (ECF_TM_BUILTIN): Likewise.
7662 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7663 (build_common_builtin_nodes): Initialize abort builtin.
7664 Add ECF_RET1 on memcpy, memmove and memset builtins.
7665 Pass final flags for alloca and alloca_with_align builtins.
7666 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7668 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7669 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7670 set_storage_via_libcall and call emit_block_copy_via_libcall.
7672 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
7674 * config/i386/i386.md (*call_got_x32): Change operand 0 to
7675 DImode before it is passed to ix86_output_call_operand.
7676 (*call_value_got_x32): Ditto for operand 1.
7678 2016-05-12 Jiong Wang <jiong.wang@arm.com>
7680 PR rtl-optimization/70904
7681 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7682 reload for wide mode.
7684 2016-05-12 Marek Polacek <polacek@redhat.com>
7687 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7688 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7689 * langhooks.h (incomplete_type_error): Likewise.
7690 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
7691 parameter, pass it down to incomplete_type_error.
7692 * tree.h (size_in_bytes): New inline overload.
7693 (size_in_bytes_loc): Renamed from size_in_bytes.
7695 2016-05-12 Richard Biener <rguenther@suse.de>
7697 PR tree-optimization/71059
7698 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7699 nary before looking up or entering the expression into the VN
7701 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7702 Make sure to re-use NARYs without result as inserted by
7705 2016-05-12 Richard Biener <rguenther@suse.de>
7707 PR tree-optimization/71062
7708 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7710 * tree-ssa-structalias.c (set_uids_in_ptset): Set
7711 vars_contains_restrict if the var is a restrict tag.
7712 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7713 do not disambiguate pointers against it.
7714 (dump_points_to_solution): Re-structure and adjust for new
7715 vars_contains_restrict flag.
7716 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7718 2016-05-12 Martin Liska <mliska@suse.cz>
7720 * doc/invoke.texi: Explain connection between
7721 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7723 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
7725 PR tree-optimization/71006
7726 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7727 consider COND_EXPR as a mask producer.
7729 2016-05-12 Marek Polacek <polacek@redhat.com>
7732 * opts.c (common_handle_option): Detect missing argument for --help^.
7734 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7737 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7738 when popping the PC and within an interrupt handler routine.
7739 Add missing tab to output of "ldmfd".
7740 (output_return_instruction): Output LDMFD with SP update rather
7741 than POP when returning from interrupt handler.
7743 2016-05-12 Jakub Jelinek <jakub@redhat.com>
7745 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7746 TARGET_64BIT && TARGET_AVX512DQ.
7747 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7748 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7749 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7750 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7751 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7752 (*vec_extractv4si_zext): Add avx512dq alternative.
7753 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7754 use v instead of x constraint in other alternatives where possible.
7756 * config/i386/sse.md (sse2_loadld): Use v instead of x
7757 constraint in alternatives 0,1,4.
7759 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7760 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7761 v constraints instead of x and <pinsr_evex_isa> isa attribute.
7764 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7765 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7766 is not emitted unless TARGET_AVX512BW.
7767 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7768 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7769 for the result operand.
7771 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7772 constraint instead of x in avx alternatives. Use maybe_evex instead
7775 * config/i386/constraints.md (Yv): New constraint.
7776 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7777 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7778 * config/i386/i386.md (avx512fvecmode): New mode attr.
7779 (*pushtf): Use v constraint instead of x.
7780 (*movtf_internal): Likewise. For TARGET_AVX512VL and
7781 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7782 (*absneg<mode>2): Use Yv constraint instead of x constraint.
7783 (*absnegtf2_sse): Likewise.
7784 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7785 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7786 avx512f alternatives.
7787 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7789 2016-05-12 Richard Biener <rguenther@suse.de>
7791 PR tree-optimization/71060
7792 * tree-data-ref.c (initialize_data_dependence_relation): Do not
7793 require exact match of DR_BASE_OBJECT but only matching address and
7796 2016-05-12 Richard Biener <rguenther@suse.de>
7798 PR tree-optimization/70986
7799 * cfganal.c: Include cfgloop.h.
7800 (dfs_find_deadend): Prefer to take edges exiting loops.
7802 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7804 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7805 compile and run time.
7807 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7810 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7812 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
7814 * config/i386/i386.c (legitimize_pic_address): Use
7815 copy_to_suggested_reg instead of gen_movsi.
7817 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7819 * config/rs6000/predicates.md (quad_memory_operand): Move most of
7820 the code into quad_address_p and call it to share code with
7821 vsx_quad_dform_memory_operand.
7822 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7824 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7825 bit instead of being a separate word. Split -mpower9-dform into
7826 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7827 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7828 for the register class supporting 128-bit quad word memory offsets.
7829 (mode_supports_vsx_dform_quad): Helper function to return if the
7830 register class uses quad word memory offsets.
7831 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7832 (rs6000_debug_reg_global): Always print if we are using LRA or not.
7833 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7834 instructions are enabled, set up the appropriate addr_masks for
7836 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7837 -mpower9-dform-scalar, instead of -mpower9-dform.
7838 (rs6000_option_override_internal): Split -mpower9-dform into two
7839 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
7840 -mpower9-dform switch sets or clears both. If we are not using
7841 the LRA register allocator, do not enable -mpower9-dform-vector by
7842 default. If we are using LRA, enable -mpower9-dform-vector and
7843 -mvsx-timode if it is appropriate. Issue a warning if either
7844 -mpower9-dform-vector or -mvsx-timode are explicitly used without
7846 (quad_address_offset_p): New helper function to return if the
7847 offset is legal for quad word memory instructions.
7848 (quad_address_p): New function to determin if GPR or vector
7849 register quad word memory addresses are legal.
7850 (mem_operand_gpr): Validate quad word address offsets.
7851 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7852 d-form (register + offset) instructions.
7853 (offsettable_ok_by_alignment): Likewise.
7854 (rs6000_legitimate_offset_address_p): Likewise.
7855 (legitimate_lo_sum_address_p): Likewise.
7856 (rs6000_legitimize_address): Likewise.
7857 (rs6000_legitimize_reload_address): Add more debug statements for
7859 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7860 d-form instructions.
7861 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7862 d-form instructions. Distinguish different cases in debug
7863 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7864 d-form instructions.
7865 (rs6000_preferred_reload_class): Likewise.
7866 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7867 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
7868 of the ISA 2.06 indexed memory instructions.
7869 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7870 use them to save/restore the saved vector registers instead of
7871 using Altivec instructions.
7872 (rs6000_emit_epilogue): Likewise.
7873 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7874 (rs6000_opt_masks): Split -mpower9-dform into
7875 -mpower9-dform-scalar and -mpower9-dform-vector.
7876 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7878 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7879 ISA 3.0 vector indexed memory instructions, and fold the code into
7880 the normal mov<mode> patterns.
7881 (p9_vecstore_<mode>): Likewise.
7882 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7884 (vsx_movti_64bit): Likewise.
7885 (vsx_movti_32bit): Likewise.
7886 * config/rs6000/constraints.md (wO constraint): New constraint for
7887 ISA 3.0 vector d-form support.
7888 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7889 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
7890 include -mpower9-dform-vector until we switch over to LRA.
7891 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7892 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7893 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7894 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7895 for -mpower9-dform and -mlra.
7896 * doc/md.texi (wO constraint): Document wO constraint.
7898 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
7900 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7901 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7902 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7903 Move handling of non-insn arguments inline into the sole user:
7904 (output_trans_func): ...here.
7905 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7906 in emitted function prototype.
7907 (output_internal_insn_latency_func): Ditto. Simplify.
7908 (output_internal_maximal_insn_latency_func): Ditto. Delete
7909 always-unused argument.
7910 (output_insn_latency_func): Ditto.
7911 (output_maximal_insn_latency_func): Ditto.
7913 2016-05-11 Richard Biener <rguenther@suse.de>
7915 PR tree-optimization/71055
7916 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7917 sth with precision not equal to access size verify we don't chop
7920 2016-05-11 Richard Biener <rguenther@suse.de>
7923 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7924 (dwarf2out_finish): Move retry_incomplete_types call ...
7925 (dwarf2out_early_finish): ... here.
7927 2016-05-11 Richard Biener <rguenther@suse.de>
7930 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7931 if the langhook insists on it.
7932 * fold-const.c (make_bit_field_ref): Add arg for the original
7933 reference and preserve its alias-set.
7934 (decode_field_reference): Take exp by reference and adjust it
7935 to the original memory reference.
7936 (optimize_bit_field_compare): Adjust callers.
7937 (fold_truth_andor_1): Likewise.
7938 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7940 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
7943 * cfgrtl.h (delete_insn_and_edges): Now return bool.
7944 * cfgrtl.c (delete_insn_and_edges): Likewise.
7945 * config/i386/i386.c (convert_scalars_to_vector): Remove
7947 * cse.c (cse_insn): Compute cse_cfg_altered.
7948 (delete_trivially_dead_insns): Likewise.
7949 (cse_cc_succs): Likewise.
7950 (rest_of_handle_cse): Free dominance info if required.
7951 (rest_of_handle_cse2): Likewise.
7952 (rest_of_handle_cse_after_global_opts): Likewise.
7954 2016-05-11 Alan Modra <amodra@gmail.com>
7956 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7957 abi_v4_pass_in_fpr): New functions.
7958 (rs6000_function_arg_boundary): Exclude complex IBM long double
7959 from 64-bit alignment when ABI_V4.
7960 (rs6000_function_arg, rs6000_function_arg_advance_1,
7961 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7963 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
7965 PR rtl-optimization/71028
7966 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7967 jump with just a return in the fallthrough block if the branch
7968 block contains just a return as well.
7970 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
7972 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7973 * match.pd ((X & Y) ^ Y): ... this.
7974 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7975 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7977 2016-05-10 David Malcolm <dmalcolm@redhat.com>
7979 * read-md.c (require_char_ws): New function.
7980 (read_string): Simplify using require_char_ws.
7981 (handle_constants): Likewise.
7982 (handle_enum): Likewise.
7983 (handle_file): Likewise.
7984 * read-md.h (require_char_ws): New declaration.
7985 * read-rtl.c (read_conditions): Simplify using require_char_ws.
7986 (read_mapping): Likewise.
7987 (read_rtx_code): Likewise.
7988 (read_nested_rtx): Likewise.
7990 2016-05-10 James Norris <jnorris@codesourcery.com>
7992 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
7993 if offloading is enabled and -fopenacc or -fopenmp is specified.
7994 (CRTOFFLOADEND): Likewise.
7995 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
7996 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
7998 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
8000 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8001 gotoff_operand code paths. Use copy_to_suggested_regs and
8002 expand_simple_binop where appropriate. Cleanup.
8004 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8007 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8009 (dimode_scalar_chain::vector_const_cost): New.
8010 (dimode_scalar_chain::compute_convert_gain): Handle constants.
8011 (dimode_scalar_chain::convert_op): Likewise.
8012 (dimode_scalar_chain::convert_insn): Likewise.
8014 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8016 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8017 unary operation, not a binary one.
8019 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8022 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8023 calls with type casted fndecl.
8025 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8027 PR tree-optimization/70786
8028 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8029 * calls.c (initialize_argument_information): Bind bounds
8030 with corresponding args passed by reference.
8032 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8035 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8036 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8037 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8040 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8043 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8044 code for a zero scale factor.
8045 (vsx_xvcvdpuxds_scale): Likewise.
8047 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8049 * diagnostic-show-locus.c (layout::layout): Call show_ruler
8050 if show_ruler_p was set on the context.
8051 (layout::show_ruler): New method.
8052 * diagnostic.h (struct diagnostic_context): Add field
8055 2016-05-10 Richard Biener <rguenther@suse.de>
8057 PR tree-optimization/71039
8058 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8059 (chk_uses): New function.
8060 (propagate_with_phi): Verify we can safely replicate the lhs of an
8061 aggregate assignment on all incoming edges.
8063 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8065 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8067 (rx_atomic_sequence): New class.
8068 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8069 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8071 (rx_atomic_sequence::rx_atomic_sequence,
8072 rx_atomic_sequence::~rx_atomic_sequence): New functions.
8073 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8074 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8075 CTRLREG_INTB): New constants.
8076 (FETCHOP): New code iterator.
8077 (fethcop_name, fetchop_name2): New iterator code attributes.
8078 (QIHI): New mode iterator.
8079 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8080 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8081 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8083 2016-05-10 Martin Liska <mliska@suse.cz>
8085 * tree-inline.c (remap_dependence_clique): Do not remap
8086 debugging statements.
8088 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8090 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8091 ("*fixuns_truncdfdi2_z13")
8092 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8093 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8094 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8096 2016-05-10 Richard Biener <rguenther@suse.de>
8098 PR tree-optimization/70497
8099 PR tree-optimization/28367
8100 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8102 (visit_reference_op_load): ... here.
8103 (vn_reference_lookup_3): Use it to handle subreg-like accesses
8104 with simplified BIT_FIELD_REFs.
8105 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8106 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8109 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8111 * dwarf2out.c (add_abstract_origin_attribute): Adjust
8112 documentation comment. For BLOCK nodes, add a
8113 DW_AT_abstract_origin attribute that points to the DIE generated
8114 for the origin BLOCK.
8115 (gen_lexical_block_die): Call add_abstract_origin_attribute for
8116 blocks from inlined functions.
8118 2016-05-10 Alan Modra <amodra@gmail.com>
8121 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8122 regrename modifying insns saving lr before __morestack call.
8123 * config/rs6000/rs6000.md (split_stack_return): Similarly for
8124 insns restoring lr after __morestack call.
8126 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8128 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8129 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8131 * config/i386/sse.md (vec_interleave_high<mode>,
8132 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8133 <avx512>_vpermt2var<mode>3_maskz): Likewise.
8135 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8137 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8138 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8139 parallel reassociation for power8 and forward.
8141 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8143 * config/i386/i386.md (absneg splitters with general regs): Use
8144 general_reg_operand predicate.
8145 (btsq peephole2): Use x86_64_immediate_operand to check if new
8146 value is suitable for immediate operand. Generate emitted insn
8147 using RTL expressions.
8148 (btcq peephole2): Ditto.
8149 (btrq peephole2): Ditto. Generate correct immediate operand
8152 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8154 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8157 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8159 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8160 pointer dereference.
8162 2016-05-09 Richard Biener <rguenther@suse.de>
8164 PR tree-optimization/70985
8165 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8166 op0 isn't a gimple register.
8168 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8170 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8171 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8172 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8173 (i6400_fpu_mult): New cpu units.
8174 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8175 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8176 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8177 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8178 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8179 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8180 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8181 (i6400_msa_long_float4, i6400_msa_long_float5)
8182 (i6400_msa_long_float8, i6400_msa_fdiv_df)
8183 (i6400_msa_fdiv_sf): New reservations.
8184 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8185 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8186 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8187 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8188 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8189 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8190 (msa_short_cmp, msa_short_float2, msa_short_logic3)
8191 (msa_short_store4, msa_long_load, msa_short_store)
8192 (msa_long_logic, msa_long_float2, msa_long_float4)
8193 (msa_long_float5, msa_long_float8, msa_long_mult)
8194 (msa_long_fdiv, msa_long_div): New reservations.
8196 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
8197 Sameera Deshpande <sameera.deshpande@imgtec.com>
8198 Matthew Fortune <matthew.fortune@imgtec.com>
8199 Graham Stott <graham.stott@imgtec.com>
8200 Chao-ying Fu <chao-ying.fu@imgtec.com>
8202 * config.gcc: Add MSA header file for mips*-*-* target.
8203 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8204 (Ubv8i, Urv8): New constraints.
8205 * config/mips/mips-ftypes.def: Add function types for MSA
8207 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8208 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8209 * config/mips/mips-msa.md: New file.
8210 * config/mips/mips-protos.h
8211 (mips_split_128bit_const_insns): New prototype.
8212 (mips_msa_idiv_insns): Likewise.
8213 (mips_split_128bit_move): Likewise.
8214 (mips_split_128bit_move_p): Likewise.
8215 (mips_split_msa_copy_d): Likewise.
8216 (mips_split_msa_insert_d): Likewise.
8217 (mips_split_msa_fill_d): Likewise.
8218 (mips_expand_msa_branch): Likewise.
8219 (mips_const_vector_same_val_p): Likewise.
8220 (mips_const_vector_same_bytes_p): Likewise.
8221 (mips_const_vector_same_int_p): Likewise.
8222 (mips_const_vector_shuffle_set_p): Likewise.
8223 (mips_const_vector_bitimm_set_p): Likewise.
8224 (mips_const_vector_bitimm_clr_p): Likewise.
8225 (mips_msa_vec_parallel_const_half): Likewise.
8226 (mips_msa_output_division): Likewise.
8227 (mips_ldst_scaled_shift): Likewise.
8228 (mips_expand_vec_cond_expr): Likewise.
8229 * config/mips/mips.c (enum mips_builtin_type): Add
8230 MIPS_BUILTIN_MSA_TEST_BRANCH.
8231 (mips_gen_const_int_vector_shuffle): New prototype.
8232 (mips_const_vector_bitimm_set_p): New function.
8233 (mips_const_vector_bitimm_clr_p): Likewise.
8234 (mips_const_vector_same_val_p): Likewise.
8235 (mips_const_vector_same_bytes_p): Likewise.
8236 (mips_const_vector_same_int_p): Likewise.
8237 (mips_const_vector_shuffle_set_p): Likewise.
8238 (mips_symbol_insns): Forbid loading symbols via immediate for
8240 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8242 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8244 (mips_lx_address_p): Add support load indexed address for MSA.
8245 (mips_address_insns): Add calculation of instructions needed for
8246 stores and loads for MSA.
8247 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
8248 CONST_VECTOR for MSA and let it fall through.
8249 (mips_ldst_scaled_shift): New function.
8250 (mips_subword_at_byte): Likewise.
8251 (mips_msa_idiv_insns): Likewise.
8252 (mips_legitimize_move): Validate MSA moves.
8253 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
8254 calculation of costs for MSA division.
8255 (mips_split_move_p): Check if MSA moves need splitting.
8256 (mips_split_move): Split MSA moves if necessary.
8257 (mips_split_128bit_move_p): New function.
8258 (mips_split_128bit_move): Likewise.
8259 (mips_split_msa_copy_d): Likewise.
8260 (mips_split_msa_insert_d): Likewise.
8261 (mips_split_msa_fill_d): Likewise.
8262 (mips_output_move): Handle MSA moves.
8263 (mips_expand_msa_branch): New function.
8264 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8265 Reinstate 'y' modifier.
8266 (mips_file_start): Add MSA .gnu_attribute.
8267 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8269 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8270 (mips_class_max_nregs): Add register size for MSA supported mode.
8271 (mips_cannot_change_mode_class): Allow conversion between MSA
8272 vector modes and TImode.
8273 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8275 (mips_secondary_reload_class): Force MSA loads/stores via memory.
8276 (mips_preferred_simd_mode): Add preffered modes for MSA.
8277 (mips_vector_mode_supported_p): Add MSA supported modes.
8278 (mips_autovectorize_vector_sizes): New function.
8279 (mips_msa_output_division): Likewise.
8280 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8281 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8282 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8283 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8284 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8285 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8286 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8287 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8288 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8289 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8290 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8291 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8292 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8293 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8294 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8295 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8296 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8297 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8298 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8299 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8300 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8301 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8302 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8303 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8304 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8305 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8306 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8307 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8308 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8309 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8310 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8311 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8312 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8313 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8314 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8315 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8316 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8317 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8318 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8319 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8320 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8321 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8322 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8323 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_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_mod_s_b, CODE_FOR_msa_mod_s_h)
8329 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8330 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8331 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8332 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8333 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8334 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8335 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8336 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8337 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8338 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8339 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8340 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8341 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8342 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8343 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8344 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8345 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8346 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8347 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8348 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8349 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8350 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8351 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8352 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8353 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8354 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8355 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8356 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8357 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8358 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8359 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8360 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8361 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8362 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8363 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8364 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8365 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8366 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8367 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8368 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8369 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8370 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8371 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8372 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8373 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8374 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8375 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8376 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8377 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8378 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8379 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8380 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8381 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8382 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8383 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8384 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8385 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8386 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8387 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8388 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8389 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8390 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8391 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8392 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8393 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8394 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8395 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8396 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8397 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8398 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8399 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8400 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8401 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8402 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8403 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8404 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8405 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8406 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8407 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8408 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8409 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8410 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8411 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8412 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8413 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8414 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8415 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8416 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8417 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8418 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8419 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8420 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8421 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8422 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8423 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8424 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8425 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8426 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8427 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8428 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8429 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8430 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8432 (mips_get_builtin_decl_index): New array.
8433 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8434 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8435 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8436 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8437 (mips_init_builtins): Initialize mips_get_builtin_decl_index
8439 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8441 (mips_expand_builtin_insn): Prepare operands for
8442 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8443 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8444 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8445 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8446 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8447 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8448 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8449 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8450 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8451 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8452 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8453 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8454 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8455 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8456 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8457 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8458 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8459 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8460 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8461 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8462 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8463 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8464 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8465 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8466 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8467 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8468 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8469 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8470 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8471 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8472 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8473 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8474 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8475 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8476 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8477 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8478 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8479 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8480 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8481 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8482 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8483 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8484 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8485 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8486 These are set implicitly and an error is reported if overridden.
8487 (mips_expand_builtin_msa_test_branch): New function.
8488 (mips_expand_msa_shuffle): Likewise.
8489 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8490 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8491 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8492 (mips_expand_vec_unpack): Add support for MSA.
8493 (mips_expand_vector_init): Likewise.
8494 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8495 instead of const0_rtx.
8496 (mips_msa_vec_parallel_const_half): New function.
8497 (mips_gen_const_int_vector): Likewise.
8498 (mips_gen_const_int_vector_shuffle): Likewise.
8499 (mips_expand_msa_cmp): Likewise.
8500 (mips_expand_vec_cond_expr): Likewise.
8501 * config/mips/mips.h
8502 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8503 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8505 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8506 (ISA_HAS_MSA): New macro.
8507 (UNITS_PER_MSA_REG): Likewise.
8508 (BITS_PER_MSA_REG): Likewise.
8509 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8510 (MSA_REG_FIRST): New macro.
8511 (MSA_REG_LAST): Likewise.
8512 (MSA_REG_NUM): Likewise.
8513 (MSA_REG_P): Likewise.
8514 (MSA_REG_RTX_P): Likewise.
8515 (MSA_SUPPORTED_MODE_P): Likewise.
8516 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8517 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8518 * config/mips/mips.md: Include mips-msa.md.
8519 (alu_type): Add simd_add.
8520 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8521 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8522 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8523 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8524 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8525 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8526 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8527 simd_move, simd_load, simd_store. Choose "multi" for moves
8529 (qword_mode): New attribute.
8530 (insn_count): Add instruction count for quad moves.
8531 Increase the count for MIPS SIMD division.
8532 (UNITMODE): Add UNITMODEs for vector types.
8533 (addsub): New code iterator.
8534 * config/mips/mips.opt (mmsa): New option.
8535 * config/mips/msa.h: New file.
8536 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8538 * config/mips/mti-linux.h: Likewise.
8539 * config/mips/predicates.md
8540 (const_msa_branch_operand): New constraint.
8541 (const_uimm3_operand): Likewise.
8542 (const_uimm4_operand): Likewise.
8543 (const_uimm5_operand): Likewise.
8544 (const_uimm8_operand): Likewise.
8545 (const_imm5_operand): Likewise.
8546 (aq10b_operand): Likewise.
8547 (aq10h_operand): Likewise.
8548 (aq10w_operand): Likewise.
8549 (aq10d_operand): Likewise.
8550 (const_m1_operand): Likewise.
8551 (reg_or_m1_operand): Likewise.
8552 (const_exp_2_operand): Likewise.
8553 (const_exp_4_operand): Likewise.
8554 (const_exp_8_operand): Likewise.
8555 (const_exp_16_operand): Likewise.
8556 (const_vector_same_val_operand): Likewise.
8557 (const_vector_same_simm5_operand): Likewise.
8558 (const_vector_same_uimm5_operand): Likewise.
8559 (const_vector_same_uimm6_operand): Likewise.
8560 (const_vector_same_uimm8_operand): Likewise.
8561 (par_const_vector_shf_set_operand): Likewise.
8562 (reg_or_vector_same_val_operand): Likewise.
8563 (reg_or_vector_same_simm5_operand): Likewise.
8564 (reg_or_vector_same_uimm6_operand): Likewise.
8565 * doc/extend.texi (MIPS SIMD Architecture Functions): New
8567 * doc/invoke.texi (-mmsa): Document new option.
8569 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8572 * configure: Regenerate.
8573 * config.in: Regenerate.
8574 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8576 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8577 (ENDFILE_VTV_SPEC): Define.
8579 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8581 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8582 registers in all interrupt handlers if necessary.
8583 (rl78_option_override): Add warning.
8584 (MUST_SAVE_MDUC_REGISTERS): New macro.
8585 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8586 * config/rl78/rl78.c (check_mduc_usage): New function.
8587 (mduc_regs): New structure to hold MDUC register data.
8588 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8589 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8590 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8591 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8592 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8593 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8595 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8597 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8598 (tree-ssa-loop-niter.h): Ditto.
8599 (idx_within_array_bound, ref_within_array_bound): New functions.
8600 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8601 Factor out check on writable base object to ...
8602 (base_object_writable): ... here.
8604 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8606 * config/arm/arm.md (probe_stack): Add modes to set source
8609 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8611 * regrename.c (base_reg_class_for_rename): New static function.
8612 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8614 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8616 * cgraph.c (thunk_adjust): Export.
8617 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8618 * cgraphunit.c (thunk_adjust): Export.
8619 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8621 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8623 * tree-inline.c (expand_call_inline): Expand thunks inline.
8625 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8628 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8629 (*sse2_vd_cvtss2sd): Ditto.
8630 * config/i386/i386.md
8631 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8632 Generate *sse2_vd_cvtsd2ss pattern.
8633 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8634 Generate *sse2_vd_cvtss2sd pattern.
8636 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8638 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8639 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
8642 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8644 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8645 * config/sh/sh.c: Define and declare variables on first use throughout
8647 (current_function_interrupt): Change to bool type.
8648 (frame_insn): Rename to emit_frame_insn and update users.
8649 (push_regs): Use bool for 'interrupt_handler' argument.
8650 (save_schedule_s): Remove.
8651 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8652 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8653 targetm.asm_out.unaligned_op.di.
8654 (gen_far_branch): Remove redundant forward declaration.
8655 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8656 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8657 (sh_set_return_address, sh_function_ok_for_sibcall,
8658 scavenge_reg): Update comments.
8659 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8660 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8661 (sh_attr_renesas_p): Remove unnecessary parentheses.
8662 (branch_dest): Simplify.
8663 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8664 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8665 (CUMULATIVE_ARGS): Change macro to typedef.
8666 (current_function_interrupt): Change to bool type.
8667 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8668 Surround with __cplusplus ifdef.
8669 (sh_compare_op0, sh_compare_op1): Remove.
8670 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8672 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
8674 * config/arm/arm.md: (arch): Add neon.
8675 (arch_enabled): Return yes for arch neon when TARGET_NEON.
8676 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
8677 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
8678 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
8679 attributes for alt renumbering. Mark alt 3 as non-predicable.
8680 (thumb2_movdf_vfp): Likewise.
8682 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
8684 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8685 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8686 (*andqi_1): Add preferred_for_speed attribute to disparage
8687 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8688 (*<code>qi_1): Ditto.
8689 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8690 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8691 (*ashlqi3_1): Ditto.
8692 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8693 Add preferred_for_size attribute to disparage alternative 0 and
8694 preferred_for_speed attribute to disparage alternative 1 for
8695 TARGET_PARTIAL_REG_STALL targets.
8697 2016-05-07 Tom de Vries <tom@codesourcery.com>
8699 PR tree-optimization/70956
8700 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8703 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
8705 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8706 * config/sh/sh.c (sh_cbranch_distance): Implement it.
8707 * config/sh/sh.md (branch_zero): Remove define_attr.
8708 (define_delay): Disable delay slot if branch distance is one insn.
8710 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8712 * config/i386/i386.md (LEAMODE): New mode attribute.
8713 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8714 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8715 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
8716 operand 2 predicate.
8717 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8718 (*lea<mode>_general_3): Ditto.
8719 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8721 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8723 * genmddump.c (main): Convert argv from char ** to const char **.
8725 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8727 * coretypes.h (OVERRIDE): New macro.
8730 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
8732 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8733 allow coalescing if the types are compatible.
8735 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8737 * pass_manager.h (pass_manager::register_pass_name): New method.
8738 (pass_manager::get_pass_by_name): New method.
8739 (pass_manager::create_pass_tab): New method.
8740 (pass_manager::m_name_to_pass_map): New field.
8741 * passes.c (name_to_pass_map): Delete global in favor of field
8742 "m_name_to_pass_map" of pass_manager.
8743 (register_pass_name): Rename from a function to...
8744 (pass_manager::register_pass_name): ...this method, updating
8745 for renaming of global "name_to_pass_map" to field
8746 "m_name_to_pass_map".
8747 (create_pass_tab): Rename from a function to...
8748 (pass_manager::create_pass_tab): ...this method, updating
8749 for renaming of global "name_to_pass_map" to field.
8750 (get_pass_by_name): Rename from a function to...
8751 (pass_manager::get_pass_by_name): ...this method.
8752 (enable_disable_pass): Convert use of get_pass_by_name to
8753 a method call, locating the pass_manager singleton.
8755 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8757 * genattr-common.c (main): Convert argv from char ** to const char **.
8758 * genattr.c (main): Likewise.
8759 * genattrtab.c (main): Likewise.
8760 * genautomata.c (initiate_automaton_gen): Likewise.
8762 * gencodes.c (main): Likewise.
8763 * genconditions.c (main): Likewise.
8764 * genconfig.c (main): Likewise.
8765 * genconstants.c (main): Likewise.
8766 * genemit.c (main): Likewise.
8767 * genenums.c (main): Likewise.
8768 * genextract.c (main): Likewise.
8769 * genflags.c (main): Likewise.
8770 * genmddeps.c (main): Likewise.
8771 * genopinit.c (main): Likewise.
8772 * genoutput.c (main): Likewise.
8773 * genpeep.c (main): Likewise.
8774 * genpreds.c (main): Likewise.
8775 * genrecog.c (main): Likewise.
8776 * gensupport.c (init_rtx_reader_args_cb): Likewise.
8777 (init_rtx_reader_args): Likewise.
8778 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8779 (init_rtx_reader_args): Likewise.
8780 * gentarget-def.c (main): Likewise.
8781 * read-md.c (read_md_files): Likewise.
8782 * read-md.h (read_md_files): Likewise.
8784 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8787 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8788 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8789 Remove unused predicate.
8790 (register_and_not_fp_reg_operand): Ditto.
8792 2016-05-06 Martin Liska <mliska@suse.cz>
8794 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8795 instead of vec as the vector is local to the function.
8797 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8799 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8800 avx512bw alternative.
8802 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8803 before the ashr<mode>3 pattern.
8805 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8806 v instead of x in vex or maybe_vex alternatives, use
8807 maybe_evex instead of vex in prefix.
8809 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8810 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8811 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8812 in vex or maybe_vex alternatives, use maybe_evex instead of vex
8815 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8816 v instead of x in vex or maybe_vex alternatives, use
8817 maybe_evex instead of vex in prefix.
8819 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8820 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8821 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8822 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8823 alternatives, use maybe_evex instead of vex in prefix.
8825 * config/i386/sse.md (vec_interleave_lowv4sf,
8826 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8827 v instead of x in vex or maybe_vex alternatives, use
8828 maybe_evex instead of vex in prefix.
8830 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8831 v instead of x in vex or maybe_vex alternatives, use
8832 maybe_evex instead of vex in prefix.
8834 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8835 v constraint instead of x.
8837 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
8839 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8840 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8843 2016-05-06 Richard Biener <rguenther@suse.de>
8845 PR tree-optimization/70948
8846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8847 Properly clobber all fields of va_list for __builtin_va_start.
8849 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8852 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8853 loop latch destination.
8855 2016-05-06 Martin Liska <mliska@suse.cz>
8857 * tree-ssa-uninit.c: Apply manual changes
8858 to the GNU coding style.
8859 (prune_uninit_phi_opnds): Rename from
8860 prune_uninit_phi_opnds_in_unrealizable_paths.
8862 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8864 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8865 mspace): Remove deprecated options.
8866 * doc/invoke.texi (SH options): Remove -mspace.
8868 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8870 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8872 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8874 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8875 corresponding combine split pattern.
8877 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8880 * config/sh/predicates.md (long_displacement_mem_operand): New.
8881 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8882 Add movi20, movi20s alternatives. Adjust length attribute for
8884 (movsi_ie): Allow for any FPU. Adjust length attribute for
8886 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
8887 attribute for alternatives.
8888 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8889 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8890 length attribute for alternatives.
8892 2016-05-06 Richard Biener <rguenther@suse.de>
8894 PR tree-optimization/70960
8895 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8897 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8900 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8901 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8903 2016-05-06 Marek Polacek <polacek@redhat.com>
8906 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8908 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8911 * config/sh/sh.md (*rotcr): Add another variant.
8913 2016-05-06 Richard Biener <rguenther@suse.de>
8916 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8918 2016-05-06 Richard Biener <rguenther@suse.de>
8921 * fold-const.c (split_tree): Always convert to the original type
8924 2016-05-06 Richard Biener <rguenther@suse.de>
8926 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8927 (fwprop_addr): Likewise.
8929 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8932 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8934 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8935 * config/i386/i386.md (push mem splitter): Use find_constant_src in
8936 the splitter condition.
8937 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8938 the splitter condition.
8939 (FP float_extend load splitter): Ditto.
8941 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
8943 * config/i386/i386.md (peehole2 patterns): Change true_regnum
8944 to REGNO in all peephole2 patterns.
8945 (post-reload splitters): Change true_regnum to REGNO in
8946 post-reload splitters.
8947 (zero_extend splitters): Use general_reg_operand and
8948 nonimmediate_gr_operand predicates.
8950 2016-05-05 Jakub Jelinek <jakub@redhat.com>
8952 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8953 v constraint instead of x.
8955 2016-05-05 Alan Modra <amodra@gmail.com>
8958 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8959 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
8960 TARGET_NO_FP_IN_TOC for -mrelocatable.
8961 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8962 TARGET_RELOCATABLE test.
8963 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8964 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8965 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8966 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8967 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8968 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8969 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8970 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8971 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8972 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8974 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8975 (rs6000_stack_info): Likewise.
8976 (rs6000_elf_asm_out_constructor): Likewise.
8977 (rs6000_elf_asm_out_destructor): Likewise.
8978 (rs6000_elf_declare_function_name): Likewise.
8979 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8980 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8983 2016-05-05 Alan Modra <amodra@gmail.com>
8985 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8987 2016-05-05 Alan Modra <amodra@gmail.com>
8989 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
8990 out-of-line gpr restore for one or two regs if that would add
8993 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
8996 * config/i386/i386.md
8997 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
8998 Change to post-epilogue_completed late splitter. Use sse_reg_operand
8999 as operand 0 predicate.
9000 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9002 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9003 Ditto. Emit the pattern using RTX.
9005 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9006 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
9007 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
9008 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9010 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9011 sse_reg_operand as operand 0 predicate.
9013 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9014 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
9015 instead of gen_rtx_REG.
9016 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9019 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9021 * function.c (emit_use_return_register_into_block): Delete.
9022 (gen_return_pattern): Delete.
9023 (emit_return_into_block): Delete.
9024 (active_insn_between): Delete.
9025 (convert_jumps_to_returns): Delete.
9026 (emit_return_for_exit): Delete.
9027 (thread_prologue_and_epilogue_insns): Delete all code dealing with
9028 simple_return for shrink-wrapped blocks.
9029 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9030 end of blocks that need one.
9031 (get_unconverted_simple_return): Delete.
9032 (convert_to_simple_return): Delete.
9033 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9034 (convert_to_simple_return): Ditto.
9036 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9038 * cfgcleanup.c (bb_is_just_return): New function.
9039 (try_optimize_cfg): Simplify jumps to return, branches to return,
9040 and branches around return.
9042 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9044 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9047 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9051 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9052 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9053 assert flags & OEP_HASH_CHECK, instead of asserting it
9054 never happens. Handle TARGET_EXPR.
9055 * fold-const.c (operand_equal_p): For hash verification,
9056 or in OEP_HASH_CHECK into flags.
9058 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9060 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9062 (compute_samebase_partition_bases): Fix typo.
9064 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9066 * config/i386/sse.md (vec_interleave_highv8sf,
9067 vec_interleave_lowv8sf, vec_interleave_highv4df,
9068 vec_interleave_lowv4df): Remove constraints from expanders.
9070 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9072 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9074 * tree-inline.c (expand_call_inline): Fix path dealing with
9075 making lhs of call statement undefined.
9077 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9079 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9080 Check availability on NODE, too.
9081 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9082 (cgraph_node::call_for_symbol_and_aliases): Likewise.
9083 (varpool_node::call_for_symbol_and_aliase): Likewise.
9084 * ipa-pure-const.c (add_new_function): Analyze all bodies.
9085 (propagate_pure_const): Propagate across interposable functions, too.
9086 (skip_function_for_local_pure_const): Do not skip interposable bodies
9088 (pass_local_pure_const::execute): Update.
9090 2016-05-04 Marek Polacek <polacek@redhat.com>
9092 * doc/invoke.texi: Document -Wdangling-else.
9094 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9096 * config.gcc: Error out when conflicting multilib is detected. Do not
9097 loop over multilibs since no combination is legal.
9099 2016-05-04 Alan Modra <amodra@gmail.com>
9101 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9102 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9103 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9106 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9108 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9109 Clean up p5600 comments.
9111 2016-05-04 Richard Biener <rguenther@suse.de>
9113 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9114 constructor simplifications.
9115 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9117 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9119 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9120 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9121 result.set_rtx is null instead of aborting.
9122 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9124 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9125 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9126 *mov<mode>_store_postinc): New patterns.
9128 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9130 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
9131 as commutative. Check both conversions are NOP.
9132 ((A & B) OP (C & B)): Remove.
9134 2016-05-04 Alan Modra <amodra@gmail.com>
9136 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9138 2016-05-04 Alan Modra <amodra@gmail.com>
9141 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9142 when cr2,3,4 are all fixed regs.
9144 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9146 PR rtl-optimization/57193
9147 * opts.c (default_options_table): Revert OPT_frename_registers change.
9148 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9150 2016-05-03 Martin Sebor <msebor@redhat.com>
9153 * builtins.c (fold_builtin_FILE): New function.
9154 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9155 (fold_builtin_0): Call them.
9156 * gimplify.c (gimplify_call_expr): Remove the handling of
9157 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9160 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9161 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9165 * doc/extend.texi (Function Names as Strings): Update __func__,
9166 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9169 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9170 Richard Biener <rguenther@suse.de>
9172 PR tree-optimization/70916
9173 * tree-if-conv.c: Include cfganal.h.
9174 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9175 and remove_fake_exit_edges around the optimization pass.
9177 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9179 * cgraph.c (symbol_table::create_edge): Set inline_failed.
9180 (cgraph_edge::make_direct): Likewise.
9181 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9182 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9183 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9184 (CIF_THUNK): New code.
9185 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9186 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9187 (compute_inline_parameters): Set inline_failed for thunks.
9188 (inline_analyze_function): Cleanup.
9189 * ipa-inline.c (can_inline_edge_p): Do not deal with
9190 call_stmt_cannot_inline_p.
9191 (can_early_inline_edge_p): Likewise.
9192 (early_inliner): Initialize inline_failed.
9193 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9195 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9197 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9198 from nonimm_ssenomem_operand.
9199 (nonimm_ssenomem_operand): New predicate.
9200 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9201 as operand 0 predicate.
9202 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9203 Disable unsupported alternatives using "enabled" attribute.
9204 Use register_ssemem_operand as operand 0 predicate.
9205 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9207 2016-05-03 Marek Polacek <polacek@redhat.com>
9210 * input.c (expansion_point_location): New function.
9211 * input.h (expansion_point_location): Declare.
9213 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9215 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9216 occurence with frame_offset_ ones.
9218 2016-05-03 Alan Modra <amodra@gmail.com>
9220 PR rtl-optimization/70890
9221 * ira.c (combine_and_move_insns): When moving def_insn, remove
9224 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9226 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9227 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9228 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9229 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9231 2016-05-03 Alan Modra <amodra@gmail.com>
9233 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9234 for SAVE_MULTIPLE/STORE_MULTIPLE.
9236 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9238 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9239 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9241 2016-05-03 Richard Biener <rguenther@suse.de>
9243 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9245 (gimplify_arg): Likewise.
9246 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9247 re-writing the result to a decl if required.
9248 (internal_get_tmp_var): Add allow_ssa parameter
9249 and override into_ssa with it.
9250 (get_formal_tmp_var): Adjust.
9251 (get_initialized_tmp_var): Add allow_ssa parameter.
9252 (gimplify_arg): Add allow_ssa parameter and avoid generating
9253 SSA names for the result false.
9254 (gimplify_call_expr): If the call may return twice do not
9255 gimplify parameters into SSA.
9256 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9257 (gimplify_modify_expr): Adjust assert. For noreturn calls
9258 with a SSA name LHS adjust its def.
9259 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9260 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9261 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9262 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9263 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
9264 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
9265 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9266 (optimize_target_teams): Do not allow SSA names for clause operands.
9267 (gimplify_expr): Likewise for where we mark the result addressable.
9268 * passes.def (pass_init_datastructures): Remove.
9269 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9270 (rewrite_stmt): Likewise.
9271 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9272 (replace_locals_op): Replace SSA names.
9273 (copy_gimple_seq_and_replace_locals): Init src_cfun.
9274 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9275 * cgraph.c (release_function_body): Free CFG annotations only
9276 when we have a CFG. Simplify.
9277 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9278 force_gimple_operand instead of get_initialized_tmp_var.
9279 * tree-pass.h (make_pass_init_datastructures): Remove.
9280 * tree-ssa.c (execute_init_datastructures): Remove.
9281 (pass_data_init_datastructures): Likewise.
9282 (class pass_init_datastructures): Likewise.
9283 (make_pass_init_datastructures): Likewise.
9284 * omp-low.c (create_omp_child_function): Init SSA data structures.
9285 (grid_expand_target_grid_body): Likewise.
9286 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9287 name before adding it to names_to_release.
9288 (remove_bb): Always release SSA defs.
9289 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9290 before dereferencing it.
9291 * cgraphunit.c (init_lowered_empty_function): Always
9292 int SSA data structures.
9293 * tree-ssanames.c (release_defs): Remove assert that we are in
9295 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9297 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9298 Uros Bizjak <ubizjak@gmail.com>
9300 PR rtl-optimization/70467
9301 * config/i386/predicates.md (x86_64_hilo_int_operand,
9302 x86_64_hilo_general_operand): New predicates.
9303 * config/i386/constraints.md (Wd): New constraint.
9304 * config/i386/i386.md (mode attr di): Use Wd instead of e.
9305 (general_hilo_operand): New mode attr.
9306 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9307 instead of <general_operand>.
9308 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9309 x86_64_hilo_general_operand instead of <general_operand>.
9311 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9313 PR tree-optimization/70916
9314 * tree-if-conv.c (constant_or_ssa_name): Removed.
9315 (fold_build_cond_expr): Use is_gimple_val instead of
9316 constant_or_ssa_name.
9318 PR tree-optimization/70916
9319 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9320 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9323 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9324 (optimize_atomic_bit_test_and): New function.
9325 (pass_fold_builtins::execute): Use it.
9326 * optabs.def (atomic_bit_test_and_set_optab,
9327 atomic_bit_test_and_complement_optab,
9328 atomic_bit_test_and_reset_optab): New optabs.
9329 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9330 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9331 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9332 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9333 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9334 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9335 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9336 * doc/md.texi (atomic_bit_test_and_set@var{mode},
9337 atomic_bit_test_and_complement@var{mode},
9338 atomic_bit_test_and_reset@var{mode}): Document.
9339 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9340 atomic_bit_test_and_complement<mode>,
9341 atomic_bit_test_and_reset<mode>): New expanders.
9342 (atomic_bit_test_and_set<mode>_1,
9343 atomic_bit_test_and_complement<mode>_1,
9344 atomic_bit_test_and_reset<mode>_1): New insns.
9346 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9348 PR rtl-optimization/70687
9349 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
9350 instead of unsigned HOST_WIDE_INT.
9352 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9354 PR rtl-optimization/44281
9355 * hard-reg-set.h (struct target_hard_regs): New field
9356 x_fixed_nonglobal_reg_set.
9357 (fixed_nonglobal_reg_set): New macro.
9358 * reginfo.c (init_reg_sets_1): Initialize it.
9359 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9361 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9363 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9365 PR tree-optimization/56541
9366 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9367 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9368 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9369 (any_complicated_phi): new static variable.
9370 (aggressive_if_conv): delete.
9371 (if_convertible_phi_p): support phis with more than two arguments.
9372 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9373 critical pred edges.
9374 (ifcvt_split_critical_edges): support phis with more than two
9375 arguments by checking new parameter. only split critical edges
9377 (tree_if_conversion): handle simd pragma marked loop using new
9378 local variable aggressive_if_conv. check any_complicated_phi.
9380 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9382 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9385 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9387 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9390 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
9392 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9393 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9394 define_insn_and_split.
9395 (mulsi3_i): New define_insn_and_split.
9396 (mulsi3_call): Convert to define_insn.
9397 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9400 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9402 * machmode.h (mode_complex): Add support to give the complex mode
9404 (GET_MODE_COMPLEX_MODE): Likewise.
9405 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9406 stored by build_complex_type and gfc_build_complex_type instead of
9407 trying to figure out the appropriate mode based on the size. Raise
9408 an assertion error, if the type was not set.
9409 * genmodes.c (struct mode_data): Add field for the complex type of
9411 (blank_mode): Likewise.
9412 (make_complex_modes): Remember the complex mode created in the
9414 (emit_mode_complex): Write out the mode_complex array to map a
9415 type mode to the complex version.
9416 (emit_insn_modes_c): Likewise.
9417 * tree.c (build_complex_type): Set the complex type to use before
9418 calling layout_type.
9419 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9420 support for __float128 complex datatypes.
9421 (rs6000_hard_regno_mode_ok): Likewise.
9422 (rs6000_setup_reg_addr_masks): Likewise.
9423 (rs6000_complex_function_value): Likewise.
9424 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9425 __float128 and __ibm128 complex.
9426 (FLOAT128_IBM_P): Likewise.
9427 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9428 * doc/extend.texi (Additional Floating Types): Document that
9429 -mfloat128 must be used to enable __float128. Document complex
9430 __float128 and __ibm128 support.
9432 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9435 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9436 char/short arguments promoted to int because of promote_prototypes.
9438 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9440 * config/i386/predicates.md (register_ssemem_operand): New predicate.
9441 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9442 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9443 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
9444 alternatives using "enabled" attribute. Use register_ssemem_operand
9445 as operand 1 predicate.
9446 (*cmpi<unord>xf_i387): Split XFmode pattern from
9447 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9448 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9449 *absneg<mode>2_i387. Disable unsupported alternatives using
9450 "enabled" attribute.
9451 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9453 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9455 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9457 (oacc_loop_process): Check mask for loop termination.
9459 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9461 * cif-code.def (CIF_THUNK): Add.
9462 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9465 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9467 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9468 (dump_inline_summary): Dump it.
9469 (fp_expression_p): New predicate.
9470 (estimate_function_body_sizes): Use it.
9471 (inline_merge_summary): Merge fp_expressions.
9472 (inline_read_section): Read fp_expressions.
9473 (inline_write_summary): Write fp_expressions.
9474 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9475 codegen boundary if either caller or callee is !fp_expressions.
9476 * ipa-inline.h (inline_summary): Add fp_expressions.
9477 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9478 to fp_expressions be sure the fp generation flags are updated.
9480 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9482 PR rtl-optimization/70467
9483 * cse.c (cse_insn): Handle no-op MEM moves after folding.
9485 PR rtl-optimization/70467
9486 * ipa-pure-const.c (check_call): Handle internal calls even in
9487 ipa mode like in local mode.
9489 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9491 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9493 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9495 * match.pd (X u< X, X u> X): New transformations.
9497 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9499 * flag-types.h (enum warn_strict_overflow_code): Move ...
9500 * coretypes.h: ... here.
9501 * fold-const.h (fold_overflow_warning): Declare.
9502 * fold-const.c (fold_overflow_warning): Make non-static.
9503 (fold_comparison): Move the transformation of X +- C1 CMP C2
9504 into X CMP C2 -+ C1 ...
9505 * match.pd: ... here.
9506 * gimple-fold.c (fold_stmt_1): Protect with
9507 fold_defer_overflow_warnings.
9509 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9511 * omp-low.c (struct oacc_loop): Add 'inner' field.
9512 (new_oacc_loop_raw): Initialize it to zero.
9513 (oacc_loop_fixed_partitions): Initialize it.
9514 (oacc_loop_auto_partitions): Partition outermost loop to outermost
9515 available partitioning.
9517 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9519 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9521 (umulsidi3): Likewise.
9522 (indirect_jump): Fix jump instruction assembly patterns.
9524 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9527 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9528 (nvptx_function_value): Assert non-NULL cfun.
9530 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9532 PR rtl-optimization/70886
9533 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9535 * cselib.h (rtx_equal_for_cselib_1): Declare.
9536 (rtx_equal_for_cselib_p: New inline function.
9537 * cselib.c (rtx_equal_for_cselib_p): Delete.
9538 (rtx_equal_for_cselib_1): Make public.
9540 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9542 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9543 (register_mixssei387nonimm_operand): Remove predicate.
9544 * config/i386/i386.md (*fop_<mode>_comm): Merge from
9545 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
9546 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
9547 for TARGET_MIX_SSE_I387 alternatives.
9548 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9549 Disable unsupported alternatives using "enabled" attribute. Use
9550 nonimm_ssenomem_operand as operand 1 predicate. Also check
9551 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9553 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9555 * tree.c (cst_and_fits_in_hwi): Simplify.
9557 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9559 * tree.h (wi::to_wide): New function.
9560 * expr.c (expand_expr_real_1): Use wi::to_wide.
9561 * fold-const.c (int_const_binop_1): Likewise.
9562 (extract_muldiv_1): Likewise.
9564 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9566 * wide-int.h: Update offset_int and widest_int documentation.
9567 (WI_SIGNED_SHIFT_RESULT): New macro.
9568 (wi::binary_shift): Define signed_shift_result_type for
9569 shifts on offset_int- and widest_int-like types.
9570 (generic_wide_int): Support <<= and >>= if << and >> are supported.
9571 * tree.h (int_bit_position): Use shift operators instead of wi::
9573 * alias.c (adjust_offset_for_component_ref): Likewise.
9574 * expr.c (get_inner_reference): Likewise.
9575 * fold-const.c (fold_comparison): Likewise.
9576 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9577 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9578 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9579 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9580 (stmt_kills_ref_p): Likewise.
9581 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9582 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9583 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9584 (ao_ref_init_from_vn_reference): Likewise.
9586 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9588 * wide-int.h: Update offset_int and widest_int documentation.
9589 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9590 (wi::binary_traits): Allow ordered comparisons between offset_int and
9591 offset_int, between widest_int and widest_int, and between either
9592 of these types and basic C types.
9593 (operator <, <=, >, >=): Define for the same combinations.
9594 * tree.h (tree_int_cst_lt): Use comparison operators instead
9595 of wi:: comparisons.
9596 (tree_int_cst_le): Likewise.
9597 * gimple-fold.c (fold_array_ctor_reference): Likewise.
9598 (fold_nonarray_ctor_reference): Likewise.
9599 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9600 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9601 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9602 * tree-sra.c (completely_scalarize): Likewise.
9603 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9604 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9605 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9606 (check_for_binary_op_overflow): Likewise.
9607 (search_for_addr_array): Likewise.
9608 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9610 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9612 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9613 (arc_save_restore): Likewise.
9614 (arc_dwarf_register_span): Likewise.
9615 (arc_output_pic_addr_const): Initialize suffix variable.
9617 2016-05-02 Martin Liska <mliska@suse.cz>
9619 * symbol-summary.h (function_summary::function_summary):
9620 Remove checking assert for all cgraph nodes.
9621 (function_summary::get): Check summary_uid.
9622 (symtab_insertion): Check summary_uid.
9624 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9626 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9627 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9629 (arc_dwarf_register_span): Remove enum keyword.
9630 (compact_memory_operand_p): New function.
9631 * config/arc/arc.h (reg_class): Add code density register classes.
9632 (REG_CLASS_NAMES): Likewise.
9633 (REG_CLASS_CONTENTS): Likewise.
9634 * config/arc/arc.md (*movqi_insn): Add code density instructions.
9635 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9636 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9637 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9638 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9640 (h, Rcd, Rsd, Rzd): New register constraints.
9641 (T): Use compact_memory_operand_p function.
9642 * config/arc/predicates.md (compact_load_memory_operand): Remove.
9644 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9646 * config/sh/sh.md (*negnegt, *movtt): Remove.
9648 2016-05-02 Marek Polacek <polacek@redhat.com>
9649 Tom de Vries <tom@codesourcery.com>
9651 PR tree-optimization/70700
9652 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9653 bigger than FIRST_REF_NODE.
9655 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9658 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9660 (prepare_cbranch_operands): Don't use scratch register. Assume that
9661 function is used when pseudos can be created.
9662 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
9663 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9664 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9665 define_expand. Allow it only when pseudos can be created.
9666 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9668 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
9670 * config/i386/constraints.md (BC): Only allow -1 operands.
9671 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9672 Add "enabled" attribute. Update XI mode attribute calculation.
9673 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9674 (*movoi_internal_avx): Update XI mode attribute calculation.
9675 (*movti_internal): Ditto.
9677 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9679 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9680 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9682 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
9684 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9685 statement on instruction code. Remove trailing spaces.
9686 (altivec_expand_stv_builtin): Likewise.
9688 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9690 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9691 (TARGET_FPU_DOUBLE): Simplify.
9692 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9693 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9694 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9695 with 'TARGET_FPU_DOUBLE'.
9696 * config/sh/sh.md: Likewise.
9698 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
9700 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9701 SH_DIV_STR_FOR_SIZE): Remove.
9702 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9703 SH_DIV_STR_FOR_SIZE): Remove.
9705 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9707 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9708 logical_reg_operand): Delete.
9709 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9710 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9711 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9712 match_operand and match_test.
9713 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
9714 variables on their first use. Return bool values.
9715 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9716 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9717 arith_reg_operand for input operand. Remove empty constraints.
9719 (*xorsi3_compact): Rename to xorsi3.
9720 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9721 (*zero_extend<mode>si2_disp_mem): Update comment.
9724 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9726 * config/sh/t-sh: Remove SH5 support.
9727 * config.gcc: Likewise.
9728 * configure: Likewise.
9730 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9732 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9734 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9736 * config/sh/sh.c (register_sh_passes, sh_option_override,
9737 sh_print_operand, prepare_move_operands,
9738 sh_can_follow_jump): Remove TARGET_SH1 checks.
9739 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9740 PROMOTE_MODE): Likewise.
9741 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9744 2016-04-30 Alan Modra <amodra@gmail.com>
9746 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9747 restoring when fixed_reg_p, but allow out-of-line or stmw save.
9748 Check for user regs later to avoid unnecessary looping over regs.
9749 Merge user reg check with non-saved reg check. Don't force
9750 inline VR restore when static chain used.
9751 (rs6000_frame_related): Omit eh_frame info for user regs when
9753 (fixed_regs_p): Delete.
9755 2016-04-30 Alan Modra <amodra@gmail.com>
9757 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9758 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
9761 2016-04-30 Alan Modra <amodra@gmail.com>
9764 * config/rs6000/rs6000.c (fixed_reg_p): New function.
9765 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
9768 2016-04-30 Alan Modra <amodra@gmail.com>
9770 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9771 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
9772 flag_pic test for Darwin.
9774 2016-04-30 Alan Modra <amodra@gmail.com>
9776 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9777 throw_calls_crossed.
9778 (REG_FREQ_CALLS_CROSSED): Delete.
9779 (REG_N_THROWING_CALLS_CROSSED): Delete.
9780 * regstat.c (regstat_bb_compute_ri): Don't calculate
9781 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9782 (dump_reg_info): Don't print call cross frequency.
9783 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9784 and REG_N_THROWING_CALLS_CROSSED.
9786 2016-04-30 Alan Modra <amodra@gmail.com>
9788 * regs.h (struct reg_info_t): Delete live_length.
9789 (REG_LIVE_LENGTH): Delete macro.
9790 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9791 local_live, local_processed and local_live_last_luid params.
9792 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
9794 (regstat_compute_ri): Adjust for above. Don't set
9796 (dump_reg_info): Don't print live length.
9797 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9798 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
9799 Localize loop_depth var.
9801 2016-04-30 Alan Modra <amodra@gmail.com>
9803 * ira.c (enum valid_equiv): New.
9804 (validate_equiv_mem): Return enum.
9805 (update_equiv_mem): Create replacement in more cases.
9806 (add_store_equivs): Update validate_equiv_mem call.
9808 2016-04-30 Alan Modra <amodra@gmail.com>
9810 * ira.c (combine_and_move_insns): Rather than scanning insns,
9811 use DF infrastucture to find use and def insns.
9813 2016-04-30 Alan Modra <amodra@gmail.com>
9815 ira.c (combine_and_move_insns): Move invariant conditions..
9816 (ira.c): ..to here. Call combine_and_move_insns before
9817 add_store_equivs. Call grow_reg_equivs later. Allocate
9818 req_equiv later using max_reg_num() rather than global max_regno.
9819 (contains_replace_regs): Delete.
9820 (add_store_equivs): Remove contains_replace_regs test.
9822 2016-04-30 Alan Modra <amodra@gmail.com>
9824 * ira.c (struct equiv_mem_data): New.
9825 (equiv_mem, equiv_mem_modified): Delete static vars.
9826 (validate_equiv_mem_from_store): Use "data" param to communicate..
9827 (validate_equiv_mem): ..from here.
9829 2016-04-30 Alan Modra <amodra@gmail.com>
9831 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9833 (update_reg_equivs): ..here. Move allocation and freeing of
9834 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9835 end_alias_analysis to..
9838 2016-04-30 Alan Modra <amodra@gmail.com>
9840 * ira.c (pdx_subregs): Delete.
9841 (struct equivalence): Add pdx_subregs field.
9842 (set_paradoxical_subreg): Remove pdx_subregs param. Update
9844 (update_equiv_regs): Don't create or free pdx_subregs. Update
9847 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9849 * config/rs6000/altivec.h: Change definitions of vec_xl and
9851 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9852 (LD_ELEMREV_V2DI): New.
9853 (LD_ELEMREV_V4SF): New.
9854 (LD_ELEMREV_V4SI): New.
9855 (LD_ELEMREV_V8HI): New.
9856 (LD_ELEMREV_V16QI): New.
9857 (ST_ELEMREV_V2DF): New.
9858 (ST_ELEMREV_V2DI): New.
9859 (ST_ELEMREV_V4SF): New.
9860 (ST_ELEMREV_V4SI): New.
9861 (ST_ELEMREV_V8HI): New.
9862 (ST_ELEMREV_V16QI): New.
9865 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9866 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9867 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9868 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9869 (altivec_expand_builtin): Add handling for
9870 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9871 (rs6000_invalid_builtin): Add error-checking for
9872 RS6000_BTM_P9_VECTOR.
9873 (altivec_init_builtins): Define builtins used to implement vec_xl
9875 (rs6000_builtin_mask_names): Define power9-vector.
9876 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9877 (RS6000_BTM_P9_VECTOR): Define.
9878 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9879 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9880 (vsx_ld_elemrev_v2df): Likewise.
9881 (vsx_ld_elemrev_v4sf): Likewise.
9882 (vsx_ld_elemrev_v4si): Likewise.
9883 (vsx_ld_elemrev_v8hi): Likewise.
9884 (vsx_ld_elemrev_v16qi): Likewise.
9885 (vsx_st_elemrev_v2df): Likewise.
9886 (vsx_st_elemrev_v2di): Likewise.
9887 (vsx_st_elemrev_v4sf): Likewise.
9888 (vsx_st_elemrev_v4si): Likewise.
9889 (vsx_st_elemrev_v8hi): Likewise.
9890 (vsx_st_elemrev_v16qi): Likewise.
9891 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
9894 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
9896 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9898 (simplify_control_stmt_condition_1): ... here. Recurse into
9899 BIT_AND_EXPRs and BIT_IOR_EXPRs.
9901 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
9904 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9905 (zero_extendqi<mode>2_dot): Revert earlier conversion from
9906 define_insn_and_split to define_insn.
9907 (zero_extendqi<mode>2_dot2): Same.
9908 (extendqi<mode>2_dot): Same.
9909 (extendqi<mode>2_dot2): Same.
9911 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9913 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9914 (probe_stack): New expander.
9915 (probe_stack_<mode>): New insn pattern.
9917 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9919 * config/i386/i386.md
9920 (operations with memory inputs setting flags peephole2):
9921 Remove uneeded REG_P checks. Cleanup pattern generation.
9923 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
9925 * tree-vect-loop.c (vect_transform_loop): Fix
9926 nb_iterations_upper_bound computation for vectorized loop.
9928 2016-04-29 Marek Polacek <polacek@redhat.com>
9929 Jakub Jelinek <jakub@redhat.com>
9932 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9933 TARGET_EXPR_SLOT as a base.
9935 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9937 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9938 with 'rCm2' constraints to limit possible immediate size.
9939 (*load_zeroextendqisi_update): Likewise.
9940 (*load_signextendqisi_update): Likewise.
9941 (*loadhi_update): Likewise.
9942 (*load_zeroextendhisi_update): Likewise.
9943 (*load_signextendhisi_update): Likewise.
9944 (*loadsi_update): Likewise.
9945 (*loadsf_update): Likewise.
9947 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9949 * config/i386/predicates.md (constm1_operand): Fix comparison.
9951 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9953 * testsuite/gcc.target/arc/ieee_eq.c: New test.
9955 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
9957 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9958 remaining SH5 related settings.
9959 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9960 shmedia_prepare_call_address): Delete.
9961 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9962 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9963 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9964 UNSUPPORTED_SH2A): Remove m5 checks.
9965 (sh_divide_strategy_e): Remove SH5 division strategies.
9966 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9967 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9969 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9971 * config/s390/s390.c (s390_rtx_costs): Update documentation.
9973 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9975 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9976 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9978 * config/s390/vector.md ("mov<mode>"): Likewise.
9980 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
9982 * config/s390/constraints.md ("U", "W"): Invoke
9983 s390_mem_constraint with "ZR" and "ZT".
9984 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9985 addresses when using LRA. Accept also short displacements for S
9986 and T constraints. Do not check for long displacement target for
9987 S and T constraints.
9988 (s390_mem_constraint): Remove handling of U and W constraints.
9989 * config/s390/s390.md (various patterns): Remove the short
9990 displacement constraints (Q and R) if a long displacement
9991 constraint is present. Add longdisp as required CPU capability.
9992 * config/s390/vector.md: Likewise.
9993 * config/s390/vx-builtins.md: Likewise.
9995 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9998 * reload1.c (reload): Call finish_spills before
9999 restarting reload loop. Skip select_reload_regs
10000 if update_eliminables_and_spill returns true.
10002 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10004 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10005 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10006 (umulhisi3_imm): Update predicates and constraint letters.
10007 (umulhisi3_reg): Declare instruction as commutative.
10008 * config/arc/constraints.md (J12, J16): New constraints.
10009 * config/arc/predicates.md (short_unsigned_const_operand): New
10011 (arc_short_operand): Likewise.
10012 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10014 2016-04-29 Richard Biener <rguenther@suse.de>
10016 PR tree-optimization/13962
10017 PR tree-optimization/65686
10018 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10019 * tree-ssa-alias.c (ptrs_compare_unequal): New function
10020 using PTA to compare pointers.
10021 * match.pd: Add pattern for pointer equality compare simplification
10022 using ptrs_compare_unequal.
10024 2016-04-29 Richard Biener <rguenther@suse.de>
10026 * stor-layout.c (layout_type): Do not build a pointer-to-element
10029 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10031 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10032 Use SWI mode iterator. Use general_reg_operand predicate.
10033 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10034 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
10037 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10039 PR middle-end/70843
10040 * fold-const.c (operand_equal_p): Don't verify hash value equality
10042 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10045 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10048 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10049 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10050 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10051 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10052 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10054 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10056 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10057 to info. Don't initialize separate fields to 0. Clean up
10060 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10062 * config/i386/i386.md (peephole2s for operations with memory inputs):
10063 Use SWI mode iterator.
10064 (peephole2s for operations with memory outputs): Ditto.
10065 Do not check for stack checking probe.
10067 (probe_stack): Remove expander.
10069 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10070 Andrew Burgess <andrew.burgess@embecosm.com>
10072 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10073 operands as 32-bits.
10075 2016-04-28 Jason Merrill <jason@redhat.com>
10077 * gdbinit.in: Skip line-map.h.
10079 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10080 Andrew Burgess <andrew.burgess@embecosm.com>
10082 * config/arc/arc.c (arc_conditional_register_usage): Take
10083 TARGET_RRQ_CLASS into account.
10084 (arc_print_operand): Support printing 'p' and 's' operands.
10085 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10087 (TARGET_RRQ_CLASS): Define.
10088 (IS_POWEROF2_OR_0_P): Define.
10089 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10091 (*tst_movb): New define_insn.
10092 (*tst): Avoid recognition if it could prevent '*tst_movb'
10093 combination; replace c/CnL with c/Chs alternative.
10094 (*tst_bitfield_tst): New define_insn.
10095 (*tst_bitfield_asr): New define_insn.
10096 (*tst_bitfield): New define_insn.
10097 (andsi3_i): Add Rrq variant.
10098 (extzv): New define_expand.
10099 (insv): New define_expand.
10100 (*insv_i): New define_insn.
10101 (*movb): New define_insn.
10102 (*movb_signed): New define_insn.
10103 (*movb_high): New define_insn.
10104 (*movb_high_signed): New define_insn.
10105 (*movb_high_signed + 1): New define_split pattern.
10106 (*mrgb): New define_insn.
10107 (*mrgb + 1): New define_peephole2 pattern.
10108 (*mrgb + 2): New define_peephole2 pattern.
10109 * config/arc/arc.opt (mbitops): New option for nps400, uses
10110 TARGET_NPS_BITOPS_DEFAULT.
10111 * config/arc/constraints.md (q): Make register class conditional.
10112 (Rrq): New register constraint.
10113 (Chs): New constraint.
10114 (Clo): New constraint.
10115 (Chi): New constraint.
10116 (Cbf): New constraint.
10117 (Cbn): New constraint.
10118 (C18): New constraint.
10119 (Cbi): New constraint.
10121 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10123 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10125 (bitmap_intersection_of_preds): Ditto.
10126 (bitmap_union_of_succs): Ditto.
10127 (bitmap_union_of_preds): Ditto.
10128 * sbitmap.c (do_popcount): Delete.
10129 (BITMAP_DEBUGGING): Delete.
10130 (sbitmap_verify_popcount): Delete.
10131 (sbitmap_alloc): Don't initialize the popcount field.
10132 (sbitmap_alloc_with_popcount): Delete.
10133 (sbitmap_resize): Don't resize the popcount array.
10134 (sbitmap_vector_alloc): Don't initialize the popcount field.
10135 (bitmap_copy): Don't copy the popcount array.
10136 (bitmap_clear): Don't clear the popcount array.
10137 (bitmap_clear): Delete the popcount array handling.
10138 (bitmap_ior_and_compl): Delete the popcount assert.
10139 (bitmap_not): Ditto.
10140 (bitmap_and_compl): Ditto.
10141 (bitmap_and): Delete the popcount array handling.
10142 (bitmap_xor): Ditto.
10143 (bitmap_ior): Ditto.
10144 (bitmap_or_and): Delete the popcount assert.
10145 (bitmap_and_or): Ditto.
10146 (popcount_table): Delete.
10147 (sbitmap_elt_popcount): Delete.
10148 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10149 (bitmap_set_bit): Delete the popcount assert.
10150 (bitmap_clear_bit): Ditto.
10151 (sbitmap_free): Don't free the popcount array.
10152 (sbitmap_alloc_with_popcount): Delete declaration.
10153 (sbitmap_popcount): Ditto.
10155 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10156 Andrew Burgess <andrew.burgess@embecosm.com>
10158 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10159 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10160 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10161 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10162 * config/arc/arc.opt (mcmem): New option.
10163 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10164 supply length for r/m alternative.
10165 (*extendqisi2_ac): Likewise.
10166 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10168 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10169 (movhi_insn): Likewise.
10170 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10171 (*zero_extendqihi2_i): Add r/Ucm alternative.
10172 (*zero_extendqisi2_ac): Likewise.
10173 (*zero_extendhisi2_i): Likewise.
10174 * config/arc/constraints.md (Uex): New memory constraint.
10175 (Ucm): New define_constraint.
10176 * config/arc/predicates.md (long_immediate_loadstore_operand):
10177 Return 0 for MEM with cmem_address address.
10178 (cmem_address_0): New predicates.
10179 (cmem_address_1): Likewise.
10180 (cmem_address_2): Likewise.
10181 (cmem_address): Likewise.
10183 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10185 * config/rs6000/rs6000.c (machine_function): Rename
10186 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10187 (rs6000_stack_info): Adjust.
10189 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10190 Andrew Burgess <andrew.burgess@embecosm.com>
10192 * config/arc/constraints.md (Usd): Convert to define_constraint.
10196 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10199 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10200 Add new peephole2 where the first insn is *mov<mode>_or instead of
10201 *mov<mode>_internal.
10203 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10205 * tracer.c (bb_seen): Make static.
10207 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10209 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10210 support, setup defaults.
10211 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10212 * config/arc/arc.c (arc_init): Add NPS400 support.
10213 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10214 (TARGET_ARC700): NPS400 is also an ARC700.
10215 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10217 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10220 * config/nds32/nds32.md (casesi): Don't access the operands array
10223 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10225 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10226 (or $-1,reg peephole2): Ditto.
10227 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10229 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10231 * doc/extend.texi (Common Function Attributes) [optimize]:
10232 Discourage use of the optimize attribute.
10234 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10236 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10237 special case builtin.
10238 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10239 ALTIVEC_BUILTIN_VEC_ADDE.
10240 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10241 support for ALTIVEC_BUILTIN_VEC_ADDE.
10242 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10243 for __builtin_vec_adde.
10245 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10247 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10248 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10250 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10253 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10254 attributes): Document cilkplus_runtime.
10256 2016-04-28 Martin Jambor <mjambor@suse.cz>
10258 * tree-cfg.c (verify_expr): Verify that local declarations belong to
10259 this function. Call verify_expr on MEM_REFs and bases of other
10260 handled_components.
10262 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10264 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10265 for WORD_REGISTER_OPERATIONS to runtime check.
10267 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10269 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10271 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10273 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10274 big-endian compilation.
10275 * config/arc/arc.md (addf3): Likewise.
10276 (subdf3): Likewise.
10277 (muldf3): Likewise.
10279 2016-04-28 Richard Biener <rguenther@suse.de>
10281 PR tree-optimization/70840
10282 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10283 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10284 Mark x * pow(x,c) -> pow(x,c+1) commutative.
10285 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10287 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10289 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10290 and explain why in a comment.
10292 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10294 * config/arc/arc.md (cpu_facility): Add fpx variant.
10295 (subdf3): Prohibit use reverse sub when assist operations option
10297 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10298 instructions only when FPX is enabled.
10299 * testsuite/gcc.target/arc/trsub.c: New test.
10301 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10303 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10304 mult_operator when calculating "type" attribute.
10305 (*fop_<mode>_1_i387): Ditto.
10306 (*fop_xf_1_i387): Ditto.
10307 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10308 Use std::swap to swap operands. Use RTL expressions to generate
10311 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10312 Joern Rennecke <joern.rennecke@embecosm.com>
10314 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10316 (emit_pic_move): Remove.
10317 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10318 * config/arc/arc.c (emit_pic_move): Removed.
10319 (TARGET_HAVE_TLS): Define.
10320 (arc_conditional_register_usage): Test for arc_tp_regno.
10321 (arc_print_operand, arc_print_operand_address): Handle TLS
10323 (arc_needs_pcl_p): New function.
10324 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10325 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10326 (arc_raw_symbolic_reference_mentioned_p): Likewise.
10327 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10328 (arc_legitimize_tls_address): Likewise.
10329 (DTPOFF_ZERO_SYM): Define.
10330 (arc_legitimize_pic_address): Make it static, handle TLS cases.
10331 (arc_output_pic_addr_const): Print TLS unspecs.
10332 (prepare_pic_move): New function, replaces emit_pic_move.
10333 (arc_legitimate_constant_p): Handle TLS unspecs.
10334 (arc_legitimate_address_p): Likewise.
10335 (arc_rewrite_small_data_p): Use assert for TLS constants.
10336 (prepare_move_operands): Use prepare_pic_move.
10337 (arc_legitimize_address): Legitimize tls addresses.
10338 (arc_epilogue_uses): Check for arc_tp_regno.
10339 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10340 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10342 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10344 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10345 %(arc_tls_extra_start_spec).
10346 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10347 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10349 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10350 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10351 (UNSPEC_TLS_OFF): Add.
10353 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10354 (get_thread_pointersi): New patterns.
10355 * config/arc/arc.opt (mtp-regno): New option.
10356 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10357 (move_dest_operand): Likewise.
10358 * configure: Regenerate.
10359 * configure.ac: Add arc*-*-* case to test for tls.
10360 * doc/invoke.texi (ARC options): Document mtp-regno.
10362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10364 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10365 the new ARC HS SIMD instructions.
10366 (arc_preferred_simd_mode): New function.
10367 (arc_autovectorize_vector_sizes): Likewise.
10368 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10369 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10370 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10371 (arc_init_builtins): Add new SIMD builtin types.
10372 (arc_split_move): Handle 64 bit vector moves.
10373 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10374 (TARGET_PLUS_QMACW): Define.
10375 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10376 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10377 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10378 (VSUBADD4H): New builtins.
10379 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10380 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10382 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
10383 Matthias Klose <doko@debian.org>
10385 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10387 2016-04-28 Richard Biener <rguenther@suse.de>
10389 PR middle-end/70777
10390 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10393 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
10395 * common/config/sh/sh-common.c: Remove SH5 support.
10396 * config/sh/constraints.md: Likewise.
10397 * config/sh/config/sh/elf.h: Likewise.
10398 * config/sh/linux.h: Likewise.
10399 * config/sh/netbsd-elf.h: Likewise.
10400 * config/sh/predicates.md: Likewise.
10401 * config/sh/sh-c.c: Likewise.
10402 * config/sh/sh-protos.h: Likewise.
10403 * config/sh/sh.c: Likewise.
10404 * config/sh/sh.h: Likewise.
10405 * config/sh/sh.md: Likewise.
10406 * config/sh/sh.opt: Likewise.
10407 * config/sh/sync.md: Likewise.
10408 * config/sh/sh64.h: Delete.
10409 * config/sh/shmedia.h: Likewise.
10410 * config/sh/shmedia.md: Likewise.
10411 * config/sh/sshmedia.h: Likewise.
10412 * config/sh/t-netbsd-sh5-64: Likewise.
10413 * config/sh/t-sh64: Likewise.
10414 * config/sh/ushmedia.h: Likewise.
10416 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10418 * config/i386/i386.md (sign_extend to memory peephole2s): Use
10419 general_reg_operand instead of register_operand predicate.
10421 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10423 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10425 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
10427 * match.pd (A - B > A, A + B < A): New transformations.
10429 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
10431 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10432 which defaults to true. Emit an outer pair of parentheses only if
10433 EMIT_PARENS. When continuing a chain of && or || (or & or |),
10434 don't emit parentheses for the right-hand operand.
10436 2016-04-27 Jeff Law <law@redhat.com>
10438 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10440 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10442 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10443 (altivec_lvx_<mode>_internal): Document.
10444 (altivec_lvx_<mode>_2op): New define_insn.
10445 (altivec_lvx_<mode>_1op): Likewise.
10446 (altivec_lvx_<mode>_2op_si): Likewise.
10447 (altivec_lvx_<mode>_1op_si): Likewise.
10448 (altivec_stvx_<mode>): Remove.
10449 (altivec_stvx_<mode>_internal): Document.
10450 (altivec_stvx_<mode>_2op): New define_insn.
10451 (altivec_stvx_<mode>_1op): Likewise.
10452 (altivec_stvx_<mode>_2op_si): Likewise.
10453 (altivec_stvx_<mode>_1op_si): Likewise.
10454 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10455 Expand vec_ld and vec_st during parsing.
10456 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10458 (altivec_expand_stvx_be): Likewise.
10459 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10460 address-masking behavior in RTL.
10461 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10462 address-masking behavior in RTL.
10463 (altivec_expand_builtin): Change builtin code arguments for calls
10464 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10465 (insn_is_swappable_p): Avoid incorrect swap optimization in the
10466 presence of lvx/stvx patterns.
10467 (alignment_with_canonical_addr): New function.
10468 (alignment_mask): Likewise.
10469 (find_alignment_op): Likewise.
10470 (recombine_lvx_pattern): Likewise.
10471 (recombine_stvx_pattern): Likewise.
10472 (recombine_lvx_stvx_patterns): Likewise.
10473 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10474 stvx patterns from expand.
10475 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10477 (vector_altivec_store_<mode>): Likewise.
10479 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
10481 * config/aarch64/aarch64.md
10482 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10483 remove the "fp" attributes.
10484 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10485 add the "simd" attributes.
10486 (*movdf_aarch64): Likewise.
10487 (*movtf_aarch64): Remove the "fp" attributes.
10488 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10489 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10491 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10493 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10494 rtx to rtx_code_label *.
10495 * rtl.h (maybe_set_first_label_num): Likewise.
10497 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10499 * df-core.c (df_add_problem): Make the problem param be const.
10500 (df_remove_problem): Make local "problem" be const.
10501 * df-problems.c (problem_RD): Make const.
10502 (problem_LR): Likewise.
10503 (problem_LIVE): Likewise.
10504 (problem_MIR): Likewise.
10505 (problem_CHAIN): Likewise.
10506 (problem_WORD_LR): Likewise.
10507 (problem_NOTE): Likewise.
10508 (problem_MD): Likewise.
10509 * df-scan.c (problem_SCAN): Likewise.
10510 * df.h (struct df_problem): Make field "dependent_problem" be
10512 (struct dataflow): Likewise for field "problem".
10513 (df_add_problem): Make param const.
10515 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10517 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10518 inter-unit moves to/from vector registers are enabled. Do not disable
10521 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10523 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10524 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10526 (enum df_problem_id): ...this new enum.
10527 (struct df_problem): Convert field "id" from "int" to
10528 enum df_problem_id.
10530 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10532 * rtl.def: Update comment for "things in the instruction chain" to
10533 reflect the removal of the leading "i" field for INSN_UID in
10534 r210360. Fix bogus apostrophe.
10536 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10538 * config/i386/i386.md
10539 (lea arith with mem operand + setcc peephole2): Set operator mode.
10541 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10544 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10545 (dimode_scalar_to_vector_candidate_p): This.
10546 (timode_scalar_to_vector_candidate_p): New function.
10547 (scalar_to_vector_candidate_p): Likewise.
10548 (timode_check_non_convertible_regs): Likewise.
10549 (timode_remove_non_convertible_regs): Likewise.
10550 (remove_non_convertible_regs): Likewise.
10551 (remove_non_convertible_regs): Renamed to ...
10552 (dimode_remove_non_convertible_regs): This.
10553 (scalar_chain::~scalar_chain): Make it virtual.
10554 (scalar_chain::compute_convert_gain): Make it pure virtual.
10555 (scalar_chain::mark_dual_mode_def): Likewise.
10556 (scalar_chain::convert_insn): Likewise.
10557 (scalar_chain::convert_registers): Likewise.
10558 (scalar_chain::add_to_queue): Make it protected.
10559 (scalar_chain::emit_conversion_insns): Likewise.
10560 (scalar_chain::replace_with_subreg): Likewise.
10561 (scalar_chain::replace_with_subreg_in_insn): Likewise.
10562 (scalar_chain::convert_op): Likewise.
10563 (scalar_chain::convert_reg): Likewise.
10564 (scalar_chain::make_vector_copies): Likewise.
10565 (scalar_chain::convert_registers): New pure virtual function.
10566 (class dimode_scalar_chain): New class.
10567 (class timode_scalar_chain): Likewise.
10568 (scalar_chain::mark_dual_mode_def): Renamed to ...
10569 (dimode_scalar_chain::mark_dual_mode_def): This.
10570 (timode_scalar_chain::mark_dual_mode_def): New function.
10571 (timode_scalar_chain::convert_insn): Likewise.
10572 (dimode_scalar_chain::convert_registers): Likewise.
10573 (scalar_chain::compute_convert_gain): Renamed to ...
10574 (dimode_scalar_chain::compute_convert_gain): This.
10575 (scalar_chain::replace_with_subreg): Renamed to ...
10576 (dimode_scalar_chain::replace_with_subreg): This.
10577 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10578 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10579 (scalar_chain::make_vector_copies): Renamed to ...
10580 (dimode_scalar_chain::make_vector_copies): This.
10581 (scalar_chain::convert_reg): Renamed to ...
10582 (dimode_scalar_chain::convert_reg ): This.
10583 (scalar_chain::convert_op): Renamed to ...
10584 (dimode_scalar_chain::convert_op): This.
10585 (scalar_chain::convert_insn): Renamed to ...
10586 (dimode_scalar_chain::convert_insn): This.
10587 (scalar_chain::convert): Call convert_registers.
10588 (convert_scalars_to_vector): Change to scalar_chain pointer to
10589 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10590 in 32-bit mode. Delete scalar_chain pointer. Call
10591 free_dominance_info in 64-bit mode.
10592 (pass_stv::gate): Remove TARGET_64BIT check.
10593 (ix86_option_override): Put the 64-bit STV pass before the CSE
10596 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10598 * dwarf2out.h (struct dw_loc_descr_node): Remove the
10599 dw_loc_frame_offset field.
10600 * dwarf2out.c (new_loc_descr): Likewise.
10601 (resolve_args_picking_1): Turn the VISITED hash set into a
10602 FRAME_OFFSET hash map. Use it to associate a frame offset to
10603 visited nodes. Remove uses of the CHECKING_P macro.
10604 (resolve_args_picking): Update call to resolve_args_picking_1.
10606 2016-04-27 Martin Liska <mliska@suse.cz>
10608 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10609 (free_loop_data): Release vuses of groups.
10611 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10613 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10614 instead of redundant use_id and boolean have_use_for.
10615 (struct iv_use): Change sub_id into group_id. Remove field next.
10616 Move fields: related_cands, n_map_members, cost_map and selected
10618 (struct iv_group): ... here. New structure.
10619 (struct iv_common_cand): Use structure declaration directly.
10620 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10621 (MAX_CONSIDERED_USES): Rename macro to ...
10622 (MAX_CONSIDERED_GROUPS): ... here.
10623 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10624 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10625 (dump_uses): Rename to ...
10626 (dump_groups): ... here. Update all uses.
10627 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10628 (find_induction_variables): Refactor format of dump information.
10629 (record_sub_use): Delete.
10630 (record_use): Update all uses.
10631 (record_group): New function.
10632 (record_group_use, find_interesting_uses_op): Call above functions.
10634 (find_interesting_uses_cond): Ditto.
10635 (group_compare_offset): New function.
10636 (split_all_small_groups): Rename to ...
10637 (split_small_address_groups_p): ... here. Update all uses.
10638 (split_address_groups): Update all uses.
10639 (find_interesting_uses): Refactor format of dump information.
10640 (add_candidate_1): Update all uses. Remove redundant check on iv,
10642 (add_candidate, record_common_cand): Remove redundant assert.
10643 (add_iv_candidate_for_biv): Update use.
10644 (add_iv_candidate_derived_from_uses): Update all uses.
10645 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10646 (alloc_use_cost_map): Ditto.
10647 (set_use_iv_cost, get_use_iv_cost): Rename to ...
10648 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
10649 (determine_use_iv_cost_generic): Ditto.
10650 (determine_group_iv_cost_generic): Ditto.
10651 (determine_use_iv_cost_address): Ditto.
10652 (determine_group_iv_cost_address): Ditto.
10653 (determine_use_iv_cost_condition): Ditto.
10654 (determine_group_iv_cost_cond): Ditto.
10655 (determine_use_iv_cost): Ditto.
10656 (determine_group_iv_cost): Ditto.
10657 (set_autoinc_for_original_candidates): Update all uses.
10658 (find_iv_candidates): Update all uses. Refactor dump information.
10659 (determine_use_iv_costs): Ditto.
10660 (determine_iv_costs): Ditto.
10661 (iv_ca_cand_for_use): Rename to ...
10662 (iv_ca_cand_for_group): ... here. Update all uses.
10663 (iv_ca_add_use, iv_ca_add_group): Ditto.
10664 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10665 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10666 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10667 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10668 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10669 (create_new_iv, adjust_iv_update_pos): Ditto.
10670 (rewrite_use_address): Delete.
10671 (rewrite_use_address_1): Rename to ...
10672 (rewrite_use_address): ... here.
10673 (rewrite_use_compare): Update all uses.
10674 (rewrite_use): Delete.
10675 (rewrite_uses): Rename to ...
10676 (rewrite_groups): ... here. Update all uses.
10677 (remove_unused_ivs, free_loop_data): Update all uses.
10678 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10680 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10682 * rtlanal.c (nonzero_bits1): Convert preprocessor check
10683 for WORD_REGISTER_OPERATIONS to runtime check.
10685 2016-04-27 Richard Biener <rguenther@suse.de>
10688 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10689 aggregate_value_p to determine if a function result is
10690 returned by reference.
10691 (ipa_pta_execute): Functions having their address taken are
10692 not automatically nonlocal.
10694 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10697 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10698 * fold-const.c (operand_equal_p): If flag_checking and
10699 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10700 and if it returns non-zero, assert iterative_hash_expr on both
10703 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10705 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10707 2016-04-27 Nick Clifton <nickc@redhat.com>
10709 PR middle-end/49889
10710 * varasm.c (merge_weak): Generate an error if an attempt is made
10711 to convert a non-weak static function into a weak, public function.
10713 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10715 * params.def (MAX_PARTITION_SIZE): New param.
10716 * doc/invoke.texi: Document lto-max-partition.
10718 2016-04-27 Richard Biener <rguenther@suse.de>
10721 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10722 function cummulating used_from_other_partition, externally_visible
10723 and force_output from aliases.
10724 (refered_from_nonlocal_var): Likewise.
10725 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10726 node flags properly.
10728 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10730 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10731 (-Wmemset-elt-size): New item.
10733 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
10736 * stor-layout.h (internal_reference_types): Delete.
10737 * stor-layout.c (reference_types_internal): Likewise.
10738 (internal_reference_types): Likewise.
10739 (layout_type) <REFERENCE_TYPE>: Adjust.
10741 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10744 * tree.h (inchash::add_expr): Add FLAGS argument.
10745 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
10746 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
10747 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10748 Formatting fix. Adjust recursive calls. For tcc_comparison,
10749 if swap_tree_comparison (code) is smaller than code, hash that
10750 and arguments in the other order. Hash CONVERT_EXPR the same
10751 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10752 of ADDR_EXPR of decl as the decl itself. Add or remove
10753 OEP_ADDRESS_OF from recursive flags as needed. For
10754 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10755 operands commutatively and only the third one normally.
10756 For internal CALL_EXPR hash in CALL_EXPR_IFN.
10758 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
10760 * config/rtems.h (LIB_SPEC): Add -latomic.
10762 2016-04-27 Joel Sherrill <joel@rtems.org>
10764 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10765 xilink.ld and flags not relevant to RTEMS.
10767 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10769 * toplev.c (backend_init_target): Avoid calling init_reload when using
10772 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10774 * reorg.c (try_merge_delay_insns): Declare i and j inside the
10775 for loops rather than one for the whole function.
10777 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10779 * match.pd (X + CST CMP X): New transformation.
10781 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10783 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10784 * fold-const.c (fold_binary_loc): Remove 2 transformations
10785 superseded by match.pd.
10786 * match.pd (x+x -> x*2): Generalize to integers.
10788 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
10790 * config/i386/i386.md (operation on memory peephole): Duplicate an
10791 existing peephole and adapt it to match lea rather than an operation
10794 PR rtl-optimization/57193
10795 * opts.c (default_options_table): Add OPT_frename_registers at -O2
10797 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10799 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10801 * tree-if-conv.c (any_pred_load_store): New static variable.
10802 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
10803 any_pred_load_store instead of and_mask_load_store.
10804 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10805 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10806 (combine_blocks, tree_if_conversion): Ditto.
10808 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10810 PR tree-optimization/70771
10811 PR tree-optimization/70775
10812 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10813 virtual PHI nodes. Delete parameter.
10814 (if_convertible_loop_p_1): Delete argument to above function.
10815 (predicate_all_scalar_phis): Delete code handling single-argument
10817 (tree_if_conversion): Mark and update virtual SSA.
10819 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10822 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10823 (x86_elf_aligned_common): Rename to ...
10824 (x86_elf_aligned_decl_common): ... this.
10825 Add decl arg. Switch to .lbss for largecomm object. Use
10826 LARGECOMM_SECTION_ASM_OP.
10827 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10829 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10830 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10832 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10833 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10835 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10838 * config/i386/i386.c (SECTION_LARGE): Define.
10839 (x86_64_elf_select_section): Set it for large data/bss sections.
10840 Only clear SECTION_WRITE for .lrodata.
10841 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10843 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10844 * varasm.c (default_elf_asm_named_section): Grow flagchars.
10845 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10847 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10848 * doc/tm.texi: Regenerate.
10850 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10853 * configure.ac (--enable-checking): Document extra flag, for
10854 non-release builds default to --enable-checking=yes,extra.
10855 If misc checking and extra checking, define CHECKING_P to 2 instead
10857 * common.opt (fchecking=): Add.
10858 * doc/invoke.texi (-fchecking=): Document.
10859 * doc/install.texi: Document --enable-checking changes.
10860 * configure: Regenerated.
10861 * config.in: Regenerated.
10863 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10865 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10866 attribute instead of which_alternative.
10867 * config/i386/sse.md (*mov<mode>_internal): Ditto.
10868 Use EXT_REX_SSE_REG_P where appropriate.
10870 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10872 * config/i386/predicates.md (const0_operand): Do not match
10873 const_wide_int code.
10874 (const1_operand): Ditto.
10876 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10878 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10879 for SSE constm1 operands and TARGET_AVX512VL.
10880 (*movti_internal): Ditto.
10881 (*mov<mode>_or): Use constm1_operand predicate.
10882 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10883 for SSE vector_all_ones operands and TARGET_AVX512VL.
10884 * config/i386/predicates.md (constm1_operand): New predicate.
10885 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10886 emission of constant -1 load.
10888 2016-04-25 Jason Merrill <jason@redhat.com>
10890 * gdbinit.in: Skip is-a.h.
10892 * attribs.c (register_scoped_attributes): Fix logic.
10893 * attribs.h: Declare register_scoped_attributes.
10895 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10897 * config/rs6000/rs6000-builtin.def: Correct pasto error for
10898 stxvd2x and stxvw4x built-in functions.
10900 2016-04-25 DJ Delorie <dj@redhat.com>
10902 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10903 (ashrhi3): Likewise.
10904 (lshrhi3): Likewise.
10906 2016-04-25 Richard Biener <rguenther@suse.de>
10908 PR tree-optimization/70780
10909 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10910 wasn't visited yet.
10911 (compute_antic): Mark blocks with abnormal preds as visited as
10912 they have a final empty antic-in solution already.
10914 2016-04-25 Michael Collison <michael.collison@linaro.org>
10916 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10918 2016-04-25 Michael Collison <michael.collison@linaro.org>
10920 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10921 mode is VQI to improve mixed mode vectorization.
10922 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10923 define_insn to match low half of signed vaddw.
10924 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10925 define_insn to match high half of signed vaddw.
10926 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10927 define_insn to match low half of unsigned vaddw.
10928 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10929 define_insn to match high half of unsigned vaddw.
10930 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10931 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10932 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10934 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10935 * config/arm/predicates.md (vect_par_constant_high): Support
10936 big endian and simplify by calling
10937 arm_simd_check_vect_par_cnst_half
10938 (vect_par_constant_low): Likewise.
10940 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10942 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10943 predicate for operand 2.
10945 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
10946 H.J. Lu <hongjiu.lu@intel.com>
10948 * config/i386/i386-protos.h (standard_sse_constant_p): Add
10949 machine_mode argument.
10950 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10951 constm1_rtx operands. For VOIDmode constants, get mode from
10952 pred_mode. Check mode size if the mode is supported by ABI.
10953 (standard_sse_constant_opcode): Do not use standard_constant_p.
10954 Strictly check ABI support for all-ones operands.
10955 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10956 immediates. Update calls to standard_sse_constant_p.
10957 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10958 (ix86_rtx_costs): Ditto.
10959 * config/i386/i386.md (*movxi_internal_avx512f): Use
10960 nonimmediate_or_sse_const_operand instead of vector_move_operand.
10961 Use (v,BC) alternative instead of (v,C). Use register_operand
10962 checks instead of MEM_P.
10963 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10964 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
10965 isa attribute. Use register_operand checks instead of MEM_P.
10966 (*movti_internal): Use nonimmediate_or_sse_const_operand for
10967 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
10968 alternative and corresponding sse2 isa attribute.
10969 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10970 to standard_sse_constant_p.
10971 (FP constant splitters): Ditto.
10972 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10974 * config/i386/predicates.md (constm1_operand): Remove.
10975 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10976 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10977 vector_all_ones_operand instead of constm1_operand.
10979 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10981 * print-rtl.c (print_rtx_insn_vec): New function.
10982 * print-rtl.h: New prototype.
10983 * store-motion.c (struct st_expr): Make avail_stores a vector.
10984 (st_expr_entry): Adjust.
10985 (free_st_expr_entry): Likewise.
10986 (print_store_motion_mems): Likewise.
10987 (find_moveable_store): Likewise.
10988 (compute_store_table): Likewise.
10989 (delete_store): Likewise.
10990 (build_store_vectors): Likewise.
10992 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10994 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10996 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10998 * vec.h (vec_safe_contains): New function.
10999 (vec::contains): Likewise.
11000 (vec::begin): Likewise.
11001 (vec::end): Likewise.
11003 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11006 * cfgexpand.c (expand_stack_vars): Fix typo.
11008 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11010 * system.h (list, map, set, vector): Include conditionally.
11011 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11012 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11013 * ipa-icf.c (INCLUDE_LIST): Define.
11014 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11015 * config/sh/sh.c (INCLUDE_VECTOR): Define.
11016 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11017 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11018 * cp/logic.cc (INCLUDE_LIST): Define.
11019 * fortran/trans-common.c (INCLUDE_MAP): Define.
11021 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11023 * auto-profile.c: Remove <string.h> include.
11024 * ipa-icf-gimple.c: Remove <list> include.
11025 * diagnostic.c: Remove <new> include.
11026 * genmatch.c: Likewise.
11027 * pretty-print.c: Likewise.
11028 * toplev.c: Likewise
11029 * c/c-objc-common.c: Likewise.
11030 * cp/error.c: Likewise.
11031 * fortran/error.c: Likewise.
11033 2016-04-22 Richard Biener <rguenther@suse.de>
11035 * lto-streamer-in.c (input_ssa_names): Do not allocate
11036 GIMPLE_NOP for all SSA names.
11037 * lto-streamer-out.c (output_ssa_names): Do not output
11038 SSA names that should have been released.
11040 2016-04-22 Richard Biener <rguenther@suse.de>
11042 PR tree-optimization/70740
11043 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11046 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11049 * config/i386/predicates.md (call_insn_operand): Replace
11050 sibcall_memory_operand with memory_operand.
11052 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11054 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11055 has_single_use() tests.
11056 (register_edge_assert_for_1): Likewise.
11057 (find_assert_locations_1): Check the liveness bitmap instead of
11058 checking has_single_use().
11060 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11063 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11064 Extract AVX-512BW constraint from AVX.
11066 2016-04-21 Richard Biener <rguenther@suse.de>
11068 PR tree-optimization/70725
11069 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11070 for phi_convertible_by_degenerating_args.
11071 (predicate_all_scalar_phis): Handle single-argument PHIs.
11073 2016-04-21 Richard Biener <rguenther@suse.de>
11075 PR middle-end/70747
11076 * fold-const.c (fold_comparison): Return properly typed
11079 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11081 PR tree-optimization/70715
11082 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11083 after expanding BASE using expand_simple_operations.
11085 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11087 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11088 New transformations.
11090 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11092 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11094 2016-04-20 Jan Hubicka <jh@suse.cz>
11096 * ipa-inline.c (can_inline_edge_p): Pass caller info to
11097 ultiimate_alias_target.
11098 (update_callee_keys): Likewise.
11099 (lookup_recursive_calls): Likewise.
11100 (speculation_useful_p): Likewise.
11102 2016-04-20 Jan Hubicka <jh@suse.cz>
11105 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11106 (set_nothrow_flag_1): ... this; handle interposition correctly;
11107 recurse on aliases and thunks.
11108 (cgraph_node::set_nothrow_flag): New.
11109 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11110 functions compiled with non-call exceptions that binds to current
11112 (propagate_nothrow): Be safe WRT interposition.
11113 * cgraph.h (set_nothrow_flag): Update prototype.
11115 2016-04-18 Jan Hubicka <jh@suse.cz>
11117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11118 max_loop_iterations_int.
11119 (tree_unswitch_outer_loop): Likewise.
11121 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11123 PR tree-optimization/69489
11124 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11125 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11126 Revise dump message.
11127 (if_convertible_bb_p): Remove check on edge count of basic block's
11130 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11132 PR tree-optimization/56625
11133 PR tree-optimization/69489
11134 * tree-data-ref.h (DR_INNERMOST): New macro.
11135 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11136 hashing struct innermost_loop_behavior.
11137 (ref_DR_map): Remove.
11138 (innermost_DR_map): New map.
11139 (baseref_DR_map): Revise comment.
11140 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11141 to innermost_DR_map accroding to its innermost loop behavior.
11142 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11143 to its innermost loop behavior.
11144 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11145 Add initialization for innermost_DR_map. Record memory reference
11146 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11147 have innermost loop behavior.
11148 (if_convertible_loop_p): Remove release for ref_DR_map. Release
11151 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11153 * config/i386/i386.md (*lea<mode>_general_1): Rename from
11154 *lea_general_1. Use explicit SWI12 mode interator.
11155 (*lea<mode>_general_2): Rename from *lea_general_2.
11156 Use explicit SWI12 mode interator.
11157 (*lea<mode>_general_3): Rename from *lea_general_3.
11158 Use explicit SWI12 mode interator.
11159 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11160 Use explicit SWI12 mode interator.
11161 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11162 Use explicit SWI48 mode interator.
11164 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11166 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11167 Short-cut unaligned load and store cases. Handle all integer
11169 (ix86_expand_vector_move_misalign): Short-cut unaligned load
11170 and store cases. Call ix86_avx256_split_vector_move_misalign
11171 directly without checking mode class.
11173 2016-04-20 Andrew Pinski <apinski@cavium.com>
11174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11177 * config/aarch64/aarch64.md (sibcall): Force call
11178 address to be DImode for ILP32.
11179 (sibcall_value): Likewise.
11181 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11183 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11185 2016-04-20 Richard Biener <rguenther@suse.de>
11187 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11188 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11189 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11190 (maybe_push_res_to_seq): Adjust.
11191 * gimple-fold.c (maybe_build_generic_op): Likewise.
11193 2016-04-20 Marek Polacek <polacek@redhat.com>
11195 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11198 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11200 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11201 use kmovw to support AVX512F target.
11203 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11205 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11207 2016-04-20 Marek Polacek <polacek@redhat.com>
11209 PR tree-optimization/70725
11210 * tree-if-conv.c (is_false_predicate): New function.
11211 (predicate_mem_writes): Use it.
11213 2016-04-20 Richard Biener <rguenther@suse.de>
11215 PR tree-optimization/70726
11216 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11217 shift amounts from a pattern stmt operand.
11219 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11222 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11223 stack_restore_from_fpr pattern when restoring r15.
11224 (s390_optimize_prologue): Strip away the memory barrier in the
11225 parallel when trying to get rid of restore insns.
11226 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11227 definition for loading the stack pointer from an FPR. Compared to
11228 the normal move insn this pattern includes a full memory barrier.
11230 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11232 PR middle-end/70680
11233 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11234 implicitly linear or lastprivate iterator on the outer context.
11236 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11238 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11240 * config/i386/i386.md (ssememalign): Removed.
11241 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11243 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11246 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11247 const short * to __builtin_ia32_loaddquhi512_mask.
11248 (_mm512_maskz_loadu_epi16): Likewise.
11249 (_mm512_mask_storeu_epi16): Pass short * to
11250 __builtin_ia32_storedquhi512_mask.
11251 (_mm512_mask_loadu_epi8): Pass const char * to
11252 __builtin_ia32_loaddquqi512_mask.
11253 (_mm512_maskz_loadu_epi8): Likewise.
11254 (_mm512_mask_storeu_epi8): Pass char * to
11255 __builtin_ia32_storedquqi512_mask.
11256 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11257 const double * to __builtin_ia32_loadupd512_mask.
11258 (_mm512_mask_loadu_pd): Likewise.
11259 (_mm512_maskz_loadu_pd): Likewise.
11260 (_mm512_storeu_pd): Pass double * to
11261 __builtin_ia32_storeupd512_mask.
11262 (_mm512_mask_storeu_pd): Likewise.
11263 (_mm512_loadu_ps): Pass const float * to
11264 __builtin_ia32_loadups512_mask.
11265 (_mm512_mask_loadu_ps): Likewise.
11266 (_mm512_maskz_loadu_ps): Likewise.
11267 (_mm512_storeu_ps): Pass float * to
11268 __builtin_ia32_storeups512_mask.
11269 (_mm512_mask_storeu_ps): Likewise.
11270 (_mm512_mask_loadu_epi64): Pass const long long * to
11271 __builtin_ia32_loaddqudi512_mask.
11272 (_mm512_maskz_loadu_epi64): Likewise.
11273 (_mm512_mask_storeu_epi64): Pass long long *
11274 to __builtin_ia32_storedqudi512_mask.
11275 (_mm512_loadu_si512): Pass const int * to
11276 __builtin_ia32_loaddqusi512_mask.
11277 (_mm512_mask_loadu_epi32): Likewise.
11278 (_mm512_maskz_loadu_epi32): Likewise.
11279 (_mm512_storeu_si512): Pass int * to
11280 __builtin_ia32_storedqusi512_mask.
11281 (_mm512_mask_storeu_epi32): Likewise.
11282 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11283 char * to __builtin_ia32_storedquqi256_mask.
11284 (_mm_mask_storeu_epi8): Likewise.
11285 (_mm256_mask_loadu_epi16): Pass const short * to
11286 __builtin_ia32_loaddquhi256_mask.
11287 (_mm256_maskz_loadu_epi16): Likewise.
11288 (_mm_mask_loadu_epi16): Pass const short * to
11289 __builtin_ia32_loaddquhi128_mask.
11290 (_mm_maskz_loadu_epi16): Likewise.
11291 (_mm256_mask_loadu_epi8): Pass const char * to
11292 __builtin_ia32_loaddquqi256_mask.
11293 (_mm256_maskz_loadu_epi8): Likewise.
11294 (_mm_mask_loadu_epi8): Pass const char * to
11295 __builtin_ia32_loaddquqi128_mask.
11296 (_mm_maskz_loadu_epi8): Likewise.
11297 (_mm256_mask_storeu_epi16): Pass short * to.
11298 __builtin_ia32_storedquhi256_mask.
11299 (_mm_mask_storeu_epi16): Pass short * to.
11300 __builtin_ia32_storedquhi128_mask.
11301 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11302 const double * to __builtin_ia32_loadupd256_mask.
11303 (_mm256_maskz_loadu_pd): Likewise.
11304 (_mm_mask_loadu_pd): Pass onst double * to
11305 __builtin_ia32_loadupd128_mask.
11306 (_mm_maskz_loadu_pd): Likewise.
11307 (_mm256_mask_storeu_pd): Pass double * to
11308 __builtin_ia32_storeupd256_mask.
11309 (_mm_mask_storeu_pd): Pass double * to
11310 __builtin_ia32_storeupd128_mask.
11311 (_mm256_mask_loadu_ps): Pass const float * to
11312 __builtin_ia32_loadups256_mask.
11313 (_mm256_maskz_loadu_ps): Likewise.
11314 (_mm_mask_loadu_ps): Pass const float * to
11315 __builtin_ia32_loadups128_mask.
11316 (_mm_maskz_loadu_ps): Likewise.
11317 (_mm256_mask_storeu_ps): Pass float * to
11318 __builtin_ia32_storeups256_mask.
11319 (_mm_mask_storeu_ps): ass float * to
11320 __builtin_ia32_storeups128_mask.
11321 (_mm256_mask_loadu_epi64): Pass const long long * to
11322 __builtin_ia32_loaddqudi256_mask.
11323 (_mm256_maskz_loadu_epi64): Likewise.
11324 (_mm_mask_loadu_epi64): Pass const long long * to
11325 __builtin_ia32_loaddqudi128_mask.
11326 (_mm_maskz_loadu_epi64): Likewise.
11327 (_mm256_mask_storeu_epi64): Pass long long * to
11328 __builtin_ia32_storedqudi256_mask.
11329 (_mm_mask_storeu_epi64): Pass long long * to
11330 __builtin_ia32_storedqudi128_mask.
11331 (_mm256_mask_loadu_epi32): Pass const int * to
11332 __builtin_ia32_loaddqusi256_mask.
11333 (_mm256_maskz_loadu_epi32): Likewise.
11334 (_mm_mask_loadu_epi32): Pass const int * to
11335 __builtin_ia32_loaddqusi128_mask.
11336 (_mm_maskz_loadu_epi32): Likewise.
11337 (_mm256_mask_storeu_epi32): Pass int * to
11338 __builtin_ia32_storedqusi256_mask.
11339 (_mm_mask_storeu_epi32): Pass int * to
11340 __builtin_ia32_storedqusi128_mask.
11341 * config/i386/i386-builtin-types.def (PCSHORT): New.
11342 (PINT64): Likewise.
11343 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11344 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11345 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11346 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11347 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11348 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11349 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11350 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11351 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11352 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11353 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11354 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11355 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11356 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11357 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11358 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11359 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11360 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11361 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11362 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11363 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11364 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11365 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11366 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11367 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11368 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11369 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11370 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11371 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11372 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11373 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11374 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11375 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11376 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11377 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11378 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11379 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11380 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11381 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11382 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11383 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11384 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11385 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11386 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11387 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11388 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11389 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11390 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11391 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11393 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11394 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11396 (ix86_expand_vector_move_misalign): Likewise.
11397 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11398 to scalar function prototype for unaligned load/store builtins.
11399 (ix86_expand_special_args_builtin): Updated.
11400 * config/i386/sse.md (UNSPEC_LOADU): Removed.
11401 (UNSPEC_STOREU): Likewise.
11402 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11403 (VI_ULOADSTORE_F_AVX512VL): Likewise.
11404 (ssescalarsize): Handle V4TI, V2TI and V1TI.
11405 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11406 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11407 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11408 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11409 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11410 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11411 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11412 (<avx512>_storedqu<mode>_mask): Likewise.
11413 (*sse4_2_pcmpestr_unaligned): Likewise.
11414 (*sse4_2_pcmpistr_unaligned): Likewise.
11415 (*mov<mode>_internal): Renamed to ...
11416 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
11417 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11418 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11419 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11421 2016-04-19 Richard Biener <rguenther@suse.de>
11423 PR tree-optimization/70171
11424 * tree-ssa-phiprop.c: Include stor-layout.h.
11425 (phiprop_insert_phi): Handle the aggregate copy case.
11426 (propagate_with_phi): Likewise.
11428 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
11430 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11431 instead of simplify_gen_subreg (... , 0).
11432 (ix86_delegitimize_address): Ditto.
11433 (ix86_split_divmod): Ditto.
11434 (ix86_split_copysign_const): Ditto.
11435 (ix86_split_copysign_var): Ditto.
11436 (ix86_expand_args_builtin): Ditto.
11437 (ix86_expand_round_builtin): Ditto.
11438 (ix86_expand_special_args_builtin): Ditto.
11439 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11440 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11441 (udivmodqi4): Ditto.
11442 (absneg splitters): Ditto.
11443 (*jcc_bt<mode>_1): Ditto.
11445 2016-04-19 Richard Biener <rguenther@suse.de>
11447 PR tree-optimization/70724
11448 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11449 restoring out from ...
11450 (free_scc_vn): ... here.
11451 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11452 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11454 (pass_fre::execute): Restore SSA info.
11456 2016-04-19 Richard Biener <rguenther@suse.de>
11458 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11459 * gimple-walk.c (walk_gimple_op): Initialize it.
11460 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11461 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11462 remapping SSA names of defs.
11463 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11466 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
11468 PR middle-end/70689
11469 * lra-constraints.c (equiv_substition_p): New.
11470 (process_alt_operands): Use it.
11471 (swap_operands): Swap it.
11472 (curr_insn_transform): Update it.
11474 2016-04-18 Michael Matz <matz@suse.de>
11476 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11477 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11478 * tree-core.h (tree_type_common.align): Use bit-field.
11479 (tree_type_common.spare): New.
11480 (tree_decl_common.off_align): Make smaller.
11481 (tree_decl_common.align): Use bit-field.
11483 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11484 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11485 (scan_sharing_clauses): Ditto.
11486 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11487 (omp_finish_file): Ditto.
11488 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11489 (layout_decl): Ditto.
11490 (relayout_decl): Ditto.
11491 (finalize_record_size): Use SET_TYPE_ALIGN.
11492 (finalize_type_size): Ditto.
11493 (finish_builtin_struct): Ditto.
11494 (layout_type): Ditto.
11495 (initialize_sizetypes): Ditto.
11496 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11497 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11498 (lookup_field_for_decl): Use SET_DECL_ALIGN.
11499 (get_chain_field): Ditto.
11500 (get_trampoline_type): Ditto.
11501 (get_nl_goto_field): Ditto.
11502 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11504 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11505 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11506 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11507 (build_qualified_type): Use SET_TYPE_ALIGN.
11508 (build_aligned_type, build_range_type_1): Ditto.
11509 (build_atomic_base): Ditto.
11510 (build_common_tree_nodes): Ditto.
11511 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11512 (expand_one_stack_var_at): Ditto.
11513 * coverage.c (build_var): Use SET_DECL_ALIGN.
11514 * except.c (init_eh): Ditto.
11515 * function.c (assign_parm_setup_block): Ditto.
11516 * symtab.c (increase_alignment_1): Ditto.
11517 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11518 * tree-vect-stmts.c (ensure_base_align): Ditto.
11519 * varasm.c (align_variable): Ditto.
11520 (assemble_variable): Ditto.
11521 (build_constant_desc): Ditto.
11522 (output_constant_def_contents): Ditto.
11524 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11525 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11526 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11527 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11528 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11530 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11533 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11534 replace %vmovsd with "%vmovq".
11535 (vec_concatv2df): Likewise.
11537 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11539 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11540 (*vec_extractv2si_0): Ditto.
11541 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11542 (zero_extended_scalar_load_operand splitters): Ditto.
11543 (vec_extract splitters): Ditto.
11544 (*vec_extractv4si_0_zext): Ditto.
11545 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11546 and lowpart_subreg.
11547 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11548 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11549 (*sse4_1_extractps): Use lowpart_subreg.
11550 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11552 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11554 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11556 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11557 Mention Solaris 11 packaging changes.
11558 Update gas and gld requirements.
11559 Remove reference to pre-Solaris 10 bug.
11560 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11562 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11565 2016-04-17 Jan Hubicka <jh@suse.cz>
11567 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11568 max_loop_iterations_int.
11570 2016-04-18 Richard Biener <rguenther@suse.de>
11572 PR tree-optimization/43434
11573 * tree-ssa-structalias.c (struct vls_data): New.
11574 (visit_loadstore): Handle all pointer-based accesses.
11575 (compute_dependence_clique): Compute a bitmap of restrict tags
11576 assigned bases and pass it to visit_loadstore.
11578 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11581 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11582 armv8.1-a and armv8.1-a+crc.
11584 2016-04-18 Richard Biener <rguenther@suse.de>
11586 PR tree-optimization/70701
11587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11588 references after translating through a memcpy.
11590 2016-04-18 Richard Biener <rguenther@suse.de>
11592 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11593 (compute_antic): ... here. For partial antic use regular
11594 postorder and scrap iteration.
11595 (compute_partial_antic_aux): Remove unused return value.
11596 (init_pre): Do not allocate postorder.
11597 (fini_pre): Do not free postorder.
11599 2016-04-18 Richard Biener <rguenther@suse.de>
11601 PR middle-end/37870
11602 * expmed.c (extract_bit_field_1): Remove broken case
11603 using a wider MODE_INT mode.
11605 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11607 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11608 unless compiling with at least GCC-4.8.
11610 2016-04-17 Jan Hubicka <jh@suse.cz>
11613 * graphite.c (graphite_finalize): Update call to
11614 tree_estimate_probability.
11615 * predict.h (tree_estimate_probability): Update prototype.
11617 2016-04-17 Jan Hubicka <jh@suse.cz>
11619 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11620 (tree_estimate_probability): Likewise.
11621 (pass_profile::execute): Update.
11622 (report_predictor_hitrates): New function.
11623 * profile.c (compute_branch_probabilities): Use it.
11624 * predict.h (report_predictor_hitrates): Declare.
11626 2016-04-17 Jan Hubicka <jh@suse.cz>
11629 * cgraph.h (cgraph_node::set_const_flag,
11630 cgraph_node::set_pure_flag): Update prototype to return bool;
11632 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11633 of interposable symbol are interposable, too.
11634 (cgraph_set_const_flag_1): Rename to ...
11635 (set_const_flag_1): ... this one; change to self recursive function
11636 instead of call_for_symbol_thunks_and_aliases. Handle correctly
11637 clearnig the flag in all variants and also virtual thunks of const
11638 functions are pure; track if any change was done.
11639 (cgraph_node::set_const_flag): Update.
11640 (struct set_pure_flag_info): New struct.
11641 (cgraph_set_pure_flag_1): Rename to ...
11642 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11643 rather than pointer encoded flags; track if any changes was done;
11644 handle correctly clearning flag and setting flag of aliases already
11646 (cgraph_node::set_pure_flag): Update.
11647 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11649 2016-04-17 Tom de Vries <tom@codesourcery.com>
11652 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11653 backslash in label.
11655 2016-04-17 Tom de Vries <tom@codesourcery.com>
11657 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11658 '{}<> ' as escape-for-record.
11660 2016-04-17 Tom de Vries <tom@codesourcery.com>
11662 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11665 2016-04-17 Tom de Vries <tom@codesourcery.com>
11668 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11669 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11670 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11671 * passes.c (finish_optimization_passes): Only call
11672 finish_graph_dump_file if dfi->graph_dump_initialized.
11673 (execute_function_dump, pass_init_dump_file): Use
11674 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11676 2016-04-17 Tom de Vries <tom@codesourcery.com>
11678 PR tree-optimization/70256
11679 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11680 (debug_varmap): New function.
11682 2016-04-17 Tom de Vries <tom@codesourcery.com>
11685 * passes.c (pass_manager::register_pass): Propagate pflags.
11687 2016-04-17 Tom de Vries <tom@codesourcery.com>
11690 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11691 * passes.c (pass_manager::pass_manager): Declare and init p_start in
11692 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
11693 check if it's equal to p_start.
11694 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11696 2016-04-15 Jan Hubicka <jh@suse.cz>
11699 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11700 function does not bind to current def.
11701 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11702 handle conservatively calls to functions that does not need to bind
11704 (check_call): Update call of worse_state.
11705 (ignore_edge_for_nothrow): Update.
11706 (ignore_edge_for_pure_const): Likewise.
11707 (propagate_pure_const): Update calls to worse_state.
11708 (skip_function_for_local_pure_const): Reformat comments.
11710 2016-04-15 Jan Hubicka <jh@suse.cz>
11713 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11714 (cgraph_node::function_symbol): Likewise.
11715 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11716 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11717 (symtab_node::ultimate_alias_target): Add REF parameter.
11718 (symtab_node::binds_to_current_def_p): Declare.
11719 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11720 (cgraph_node::function_symbol): Likewise.
11721 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11722 (cgraph_node::get_availability): Likewise.
11723 (cgraph_edge::binds_to_current_def_p): New inline function.
11724 (varpool_node::get_availability): Add REF parameter.
11725 (varpool_node::ultimate_alias_target): Likewise.
11726 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11727 (symtab_node::binds_to_current_def_p): Likewise.
11728 * varpool.c (varpool_node::get_availability): Likewise.
11730 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11733 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11734 Fix mode size check.
11736 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11738 * BASE-VER: Set to 7.0.0.
11740 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
11742 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11744 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11746 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11747 architecture revisions.
11749 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
11751 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11752 * config/i386/i386.c (ix86_using_red_zone): No longer static.
11753 * config/i386/i386.md (stack decrement to push peepholes): Guard
11754 with !x86_using_red_zone ().
11756 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11759 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11760 to dump_generic_node.
11761 (NIY): Pass also flags to do_niy.
11763 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
11765 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11766 (simd_clone_vector_of_formal_parm_types)
11767 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11768 (simd_clone_mangle, simd_clone_create)
11769 (simd_clone_adjust_return_type, create_tmp_simd_array)
11770 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11771 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11772 (ipa_simd_modify_function_body, simd_clone_linear_addend)
11773 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11774 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11775 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11776 * omp-simd-clone.c: ... this new file.
11777 (simd_clone_vector_of_formal_parm_types): Make it static.
11778 * Makefile.in (OBJS): Add omp-simd-clone.o.
11780 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11783 * config/i386/sse.md: Use proper memory operand modifiers.
11786 2016-04-15 Richard Biener <rguenther@suse.de>
11787 Alan Modra <amodra@gmail.com>
11789 PR tree-optimization/70130
11790 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11791 when alignment stays not the same and no not use the realign
11794 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11797 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11798 direct move handlers for KFmode. Change TFmode handlers test from
11799 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11801 2016-04-14 Jakub Jelinek <jakub@redhat.com>
11804 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11805 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11806 (inlined_polymorphic_ctor_dtor_block_p): Use it.
11807 * tree-ssa-live.c (remove_unused_scope_block_p): When
11808 in_ctor_dtor_block, avoid discarding not just BLOCKs with
11809 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11810 block_ultimate_origin is FUNCTION_DECL.
11811 (remove_unused_locals): If current_function_decl is
11812 polymorphic_ctor_dtor_p, pass initial true to
11813 remove_unused_scope_block_p' is_ctor_dtor_block.
11815 2016-04-14 Martin Sebor <msebor@redhat.com>
11820 * doc/extend.texi (Variable Length): Revert.
11822 2016-04-14 Marek Polacek <polacek@redhat.com>
11823 Jan Hubicka <hubicka@ucw.cz>
11826 * tree.c (verify_type): Disable the canonical type of main variant
11829 2016-04-14 Jason Merrill <jason@redhat.com>
11831 * cfgexpand.c, expr.c: Revert previous change.
11833 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11835 PR middle-end/70643
11836 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11837 when building a mem ref for the incoming reduction variable.
11839 2016-04-14 Richard Biener <rguenther@suse.de>
11841 PR tree-optimization/70614
11842 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11843 loop if the evolution dropped to chrec_dont_know.
11844 (interpret_condition_phi): Likewise.
11846 2016-04-14 Richard Biener <rguenther@suse.de>
11848 PR tree-optimization/70623
11849 * tree-ssa-pre.c (changed_blocks): Make global ...
11850 (compute_antic): ... local here. Move and fix worklist
11851 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11852 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
11853 worklist handling, dump when ANTIC_IN changed.
11854 (compute_partial_antic_aux): Remove worklist handling.
11855 (init_pre): Do not compute post dominators. Add a comment about
11856 the CFG order chosen.
11857 (fini_pre): Do not free post dominators.
11859 2016-04-13 Martin Sebor <msebor@redhat.com>
11864 * doc/extend.texi (Variable Length): Document C++ specifics.
11866 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11869 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11870 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
11871 eh edges have been purged.
11874 * tree-sra.c (create_access_replacement,
11875 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11877 * tree-pretty-print.c (dump_fancy_name): New function.
11878 (dump_decl_name, dump_generic_node): Use it.
11880 2016-04-13 Jason Merrill <jason@redhat.com>
11882 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11883 * expr.c (expand_expr_real_1): Likewise.
11885 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
11887 * config/i386/i386.md (kunpckhi): Swap operands.
11888 (kunpcksi): Likewise.
11889 (kunpckdi): Likewise.
11890 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11891 (vec_pack_trunc_<mode>): Likewise.
11893 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11896 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11898 PR middle-end/70633
11899 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11900 gimplification turns some element into non-constant.
11903 * rtl.h (convert_memory_address_addr_space_1): New prototype.
11904 * explow.c (convert_memory_address_addr_space_1): No longer static,
11905 add NO_EMIT argument and don't call convert_modes if true, pass
11906 it down recursively, remove break after return.
11907 (convert_memory_address_addr_space): Adjust caller.
11908 * simplify-rtx.c (simplify_unary_operation_1): Call
11909 convert_memory_address_addr_space_1 instead of convert_memory_address,
11910 if it returns NULL, don't simplify.
11912 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
11915 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11917 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11919 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11920 Bump the upper SIMDLEN limits, so that if the return type or
11921 characteristic type if the return type is void can be passed in
11922 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11925 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11928 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11929 Do not use "=" constraint on an input constraint.
11930 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11931 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11932 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11933 generates (neg (abs ...)) instead of (abs ...).
11935 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11937 PR rtl-optimization/70596
11938 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11939 just invalidate LRA data and reset them. Adjust dump wording.
11941 2016-04-12 Martin Liska <mliska@suse.cz>
11944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11948 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11949 max_loop_iterations_int.
11950 (tree_unswitch_outer_loop): Likewise.
11951 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11952 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11954 2016-04-12 Tom de Vries <tom@codesourcery.com>
11956 PR tree-optimization/68756
11957 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11958 instead of new_name.
11960 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11962 PR tree-optimization/70602
11963 * tree-sra.c (generate_subtree_copies): Don't write anything into
11964 constant pool decls.
11966 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11967 regardless whether there are depend clauses or not.
11969 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11972 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11973 target attribute and pragma from changing the -mfloat128
11974 and -mfloat128-hardware options.
11976 * doc/extend.texi (Additional Floating Types): Document PowerPC
11977 __float128 restrictions.
11979 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11982 * config/aarch64/driver-aarch64.c
11983 (aarch64_get_extension_string_for_isa_flags): New.
11984 (arch_extension): Rename to...
11985 (aarch64_arch_extension): ...This.
11986 (ext_to_feat_string): Rename to...
11987 (aarch64_extensions): ...This.
11988 (aarch64_core_data): Keep track of architecture extension flags.
11989 (cpu_data): Rename to...
11990 (aarch64_cpu_data): ...This.
11991 (aarch64_arch_driver_info): Keep track of architecture extension
11993 (get_arch_name_from_id): Rename to...
11994 (get_arch_from_id): ...This, change return type.
11995 (host_detect_local_cpu): Update and reformat for renames, handle
11996 extensions through common infrastructure.
11998 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12001 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12002 track of a canonical flag name.
12003 (all_extensions): Likewise.
12004 (arch_to_arch_name): Also track extension flags enabled by the arch.
12005 (all_architectures): Likewise.
12006 (aarch64_parse_extension): Move to here.
12007 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12009 (aarch64_rewrite_selected_cpu): Update for above change.
12010 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12011 are handled, such that the single explicit value enabled by an
12012 extension is kept seperate from the implicit values it also enables.
12013 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12015 (aarch64_parse_extension): New.
12016 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12017 here to config/aarch64/aarch64-protos.h.
12018 (aarch64_parse_extension): Move from here to
12019 common/config/aarch64/aarch64-common.c.
12020 (aarch64_option_print): Update.
12021 (aarch64_declare_function_name): Likewise.
12022 (aarch64_start_file): Likewise.
12023 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12024 the canonical flag for extensions.
12025 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12028 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12030 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12033 2016-04-09 Tom de Vries <tom@codesourcery.com>
12035 PR tree-optimization/68953
12036 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12037 first to last subscript.
12039 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12041 PR tree-optimization/70586
12042 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12049 PR tree-optimization/70373
12050 PR middle-end/70533
12051 PR middle-end/70534
12052 PR middle-end/70535
12053 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12054 clauses for acc parallel reductions as necessary. Error on those
12056 * omp-low.c (scan_sharing_clauses): Don't install variables which
12057 are used in acc parallel reductions.
12058 (lower_rec_input_clauses): Remove dead code.
12059 (lower_oacc_reductions): Add support for reference reductions.
12060 (lower_reduction_clauses): Remove dead code.
12061 (lower_omp_target): Don't remap variables appearing in acc parallel
12063 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12065 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12067 PR middle-end/70593
12068 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12069 with multiple SSA_NAME defs, force the outputs other than first
12070 to be live before calling live_track_process_def on each output.
12072 PR rtl-optimization/70574
12073 * fwprop.c (forward_propagate_and_simplify): Don't add
12074 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12075 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12076 paradoxical subregs within *loc.
12078 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12080 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12081 -ftree-parallelize-loops={0,1}.
12082 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12083 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12084 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12085 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12086 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12088 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12091 * asan.c (instrument_derefs): If we get unknown location, extract it
12092 with EXPR_LOCATION.
12093 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12095 2016-04-08 Tom de Vries <tom@codesourcery.com>
12097 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12098 implicit firstprivate clause.
12100 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12103 * config/arm/thumb2.md (tst + branch-> lsls + branch
12104 peephole below *orsi_not_shiftsi_si): Require that condition
12105 register is dead after the peephole.
12106 (second peephole after the above): Likewise.
12108 2016-04-08 Alan Modra <amodra@gmail.com>
12111 * builtins.c (fold_builtin_classify): For IBM extended precision,
12112 look at just the high-order double to test for NaN.
12113 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
12114 test just the high double for Inf but both doubles for subnormal
12117 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12119 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12120 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12121 node->simdclone->mask_mode != VOIDmode masks.
12122 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
12123 earlier, use it instead of node->simdclone.
12124 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12125 Set clonei->mask_mode.
12127 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12130 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12131 Pass it through to cp_parser_already_scoped_statement.
12132 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
12133 it through to cp_parser_statement.
12134 (cp_parser_statement): Pass IF_P through to
12135 cp_parser_iteration_statement.
12136 (cp_parser_pragma): Adjust call to
12137 cp_parser_iteration_statement.
12139 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12142 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12143 resolve a future -Wparentheses warning.
12144 * omp-low.c (scan_sharing_clauses): Likewise.
12145 * tree-parloops.c (eliminate_local_variables): Likewise.
12147 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12149 PR rtl-optimization/70398
12150 * lra-constraints.c (process_address_1): Check zero scale and code
12151 for reloading with zero scale.
12153 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12155 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12156 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12158 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12160 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12161 Add support for AVX512F clones, include them by default for
12162 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
12163 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12166 PR middle-end/70550
12167 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12168 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12169 firstprivate clauses.
12170 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12171 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12172 (lower_omp_target): Set TREE_NO_WARNING for
12173 non-addressable possibly uninitialized vars which are copied into
12174 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12176 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12178 * config/pa/predicates.md (integer_store_memory_operand): Accept
12179 REG+D operands with a large offset when reload_in_progress is true.
12180 (floating_point_store_memory_operand): Likewise.
12182 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12185 * match.pd (nested int casts): Limit to GIMPLE.
12187 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12190 * ipa-devirt.c (maybe_record_node): Fix comment; use
12191 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12193 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12195 PR rtl-optimization/70542
12196 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12197 if there are any uses other than insn or debug insns.
12199 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12200 Jakub Jelinek <jakub@redhat.com>
12202 PR tree-optimization/70509
12203 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12204 Shift HOST_WIDE_INT_1U instead of 1.
12206 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12208 PR tree-optimization/70509
12209 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12210 of the vector base type for index.
12212 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12215 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12217 2016-04-05 Richard Biener <rguenther@suse.de>
12219 PR tree-optimization/70526
12220 * tree-sra.c (build_ref_for_offset): Use prev_base to
12221 extract the alias pointer type.
12223 2016-04-05 Richard Biener <rguenther@suse.de>
12225 * dse.c (struct store_info): Remove alias_set member.
12226 (struct read_info_type): Likewise.
12227 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12228 spill_deleted, clear_alias_set_lookup): Remove.
12229 (get_group_info): Remove dead base == NULL_RTX case.
12230 (dse_step0): Remove initialization of removed variables.
12231 (delete_dead_store_insn): Reomve alias set dumping.
12232 (free_read_records): Remove alias_set handling.
12233 (canon_address): Remove alias_set_out parameter.
12234 (record_store): Remove spill_alias_set, it's always zero.
12235 (check_mem_read_rtx): Likewise.
12236 (dse_step2): Rename from ...
12237 (dse_step2_nospill): ... this. Adjust.
12238 (scan_stores): Rename from ...
12239 (scan_stores_nospill): ... this.
12240 (scan_reads): Rename from ...
12241 (scan_reads_nospill): ... this.
12242 (scan_stores_spill, scan_reads_spill): Remove.
12243 (dse_step3_scan): Remove for_spills argument which is always false.
12244 (dse_step3): Likewise.
12245 (dse_step5): Rename from ...
12246 (dse_step5_nospill): ... this. Remove alias_set handling.
12247 (rest_of_handle_dse): Adjust.
12249 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12252 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12253 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12254 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12255 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12257 2016-04-05 Richard Biener <rguenther@suse.de>
12259 PR middle-end/70499
12260 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12261 non-register type temporaries into SSA.
12263 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12266 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12267 calls when sanitizing.
12268 (possible_polymorphic_call_target_p): Fix formatting.
12270 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12271 Jakub Jelinek <jakub@redhat.com>
12273 PR middle-end/70457
12274 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12275 to ensure a call statement is compatible with a built-in's
12277 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12280 2016-04-04 Richard Biener <rguenther@suse.de>
12282 PR rtl-optimization/70484
12283 * rtl.h (canon_output_dependence): Declare.
12284 * alias.c (canon_output_dependence): New function.
12285 * dse.c (record_store): Use canon_output_dependence rather
12286 than canon_true_dependence.
12288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12291 * cgraph.h (symtab_node::copy_visibility_from): New function.
12292 * symtab.c (symtab_node::copy_visibility_from): New function.
12293 * ipa-visibility.c (optimize_weakref): New function.
12294 (function_and_variable_visibility): Use it.
12296 2016-04-04 Martin Liska <mliska@suse.cz>
12299 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12300 value that is really in range handled by SBR instruction.
12301 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12302 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12303 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12305 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12309 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12310 set, but not for SP_REG operands.
12312 2016-04-02 Martin Sebor <msebor@redhat.com>
12315 * fold-const.c (maybe_nonzero_address): New function.
12316 (fold_comparison): Call it. Fold equality and relational
12317 expressions involving null pointers.
12318 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12320 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12322 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12323 the "Y" constraint (scalar FP 0.0 immediate).
12325 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12326 Add the "const_double" to the list of operand constraints.
12328 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12330 PR rtl-optimization/70467
12331 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12332 If low word of the last operand is 0, just emit addition/subtraction
12335 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12338 * config/s390/s390.c (s390_expand_insv): Check for everything
12339 constant instead of just VOIDmode stuff.
12341 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12344 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12346 2016-04-01 Nathan Sidwell <nathan@acm.org>
12348 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12350 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12352 PR rtl-optimization/70461
12353 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12356 2016-03-31 Martin Liska <mliska@suse.cz>
12359 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12360 a tree value or an immediate integer value to a buffer
12361 that is eventually copied to a BRIG section.
12362 (emit_immediate_operand): Call the function here.
12363 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12364 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12365 of class' fields that are removed.
12366 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12367 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12368 m_brig_repr_size fields.
12370 2016-03-31 Martin Liska <mliska@suse.cz>
12373 * hsa-gen.c (hsa_function_representation::update_dominance): New
12375 (convert_addr_to_flat_segment): Likewise.
12376 (gen_hsa_memory_set): New alignment argument.
12377 (gen_hsa_ctor_assignment): Likewise.
12378 (gen_hsa_insns_for_single_assignment): Provide alignment
12379 to gen_hsa_ctor_assignment.
12380 (gen_hsa_insns_for_direct_call): Add new argument.
12381 (expand_lhs_of_string_op): New function.
12382 (expand_string_operation_builtin): Likewise.
12383 (expand_memory_copy): New function.
12384 (expand_memory_set): New function.
12385 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12386 (convert_switch_statements): Change signature.
12387 (generate_hsa): Use a return value of the function.
12388 (pass_gen_hsail::execute): Do not call
12389 convert_switch_statements here.
12390 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12391 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12392 (hsa_function_representation::update_dominance): New function.
12394 2016-03-31 Martin Liska <mliska@suse.cz>
12397 * hsa-brig.c (emit_directive_variable): Emit alignment
12398 according to hsa_symbol::m_align.
12399 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12400 (dump_hsa_symbol): Dump alignment of HSA symbols.
12401 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12402 (gen_hsa_addr_with_align): New function.
12403 (hsa_bitmemref_alignment): Use newly added function.
12404 (gen_hsa_insns_for_load): Likewise.
12405 (gen_hsa_insns_for_store): Likewise.
12406 (gen_hsa_memory_copy): New argument added.
12407 (gen_hsa_insns_for_single_assignment): Respect
12408 alignment for assignments processed via gen_hsa_memory_copy.
12409 (gen_hsa_insns_for_direct_call): Likewise.
12410 (gen_hsa_insns_for_return): Likewise.
12411 (gen_function_def_parameters): Set default alignment.
12412 * hsa.c (hsa_object_alignment): New function.
12413 (hsa_byte_alignment): Pasted function.
12414 * hsa.h (hsa_symbol::m_align): New field.
12416 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12418 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12419 scratch field for goto case.
12421 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
12423 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12425 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
12428 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12429 (scalar_chain::convert_insn): Call convert_op for reg
12430 moves to handle undefined registers.
12432 2016-03-31 Nathan Sidwell <nathan@acm.org>
12435 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12436 Assert we don't want to move backwards.
12438 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
12441 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12443 2016-03-31 Jakub Jelinek <jakub@redhat.com>
12445 PR rtl-optimization/70460
12446 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12447 with operand from REG_LABEL_OPERAND, instead substitute
12448 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12449 Don't do anything for REG_NON_LOCAL_GOTO jumps.
12451 2016-03-31 Martin Liska <mliska@suse.cz>
12453 * passes.c (execute_one_pass): Do not call
12454 todo_after for a discarded function.
12456 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12458 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12459 (no_cost, infinite_cost): Initialize the new field.
12460 (get_computation_cost_at): Record setup cost.
12461 (determine_use_iv_cost_address): Skip cost computation for sub
12462 uses if we can estimate it without losing accuracy.
12464 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12466 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12468 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12469 max_loop_iterations_int.
12470 (tree_unswitch_outer_loop): Likewise.
12471 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12472 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12474 2016-03-30 Richard Biener <rguenther@suse.de>
12476 PR middle-end/70450
12477 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12479 2016-03-30 Jakub Jelinek <jakub@redhat.com>
12482 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12483 in gen_blendm expander.
12485 2016-03-30 Nick Clifton <nickc@redhat.com>
12488 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12489 case where we are already provided with an SImode SUBREG.
12491 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
12494 * config/i386/i386.c (ix86_expand_epilogue): Properly check
12495 conflict between DRAP register and __builtin_eh_return.
12497 2016-03-30 Michael Matz <matz@suse.de>
12498 Richard Biener <rguenther@suse.de>
12501 * ipa-polymorphic-call.c (struct type_change_info): Change
12502 speculative to an unsigned allowing to limit the work we do.
12503 (csftc_abort_walking_p): New inline function..
12504 (check_stmt_for_type_change): Limit the number of may-defs
12505 skipped for speculative devirtualization to
12506 max-speculative-devirt-maydefs.
12507 * params.def (max-speculative-devirt-maydefs): New param.
12508 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12510 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
12513 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12516 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
12518 PR tree-optimization/59124
12519 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12520 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12522 2016-03-29 Jeff Law <law@redhat.com>
12524 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12526 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12528 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12531 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12533 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12534 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12535 gcrt0.o if linking dynamically.
12537 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12540 * ipa-devirt.c (methods_equal_p): New function.
12541 (compare_virtual_tables): Use it.
12542 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12543 * cgraphclones.c (clone_function_name_1): Use
12544 symbol_table::symbol_suffix_separator.
12545 * coverage.c (build_var): Likewise.
12546 * symtab.c (symbol_table::symbol_suffix_separator): New.
12548 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12550 PR rtl-optimization/70429
12551 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12552 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12553 mode != result_mode.
12556 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12558 PR tree-optimization/70405
12559 * ssa-iterators.h (num_imm_uses): Add missing braces.
12561 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12563 PR rtl-optimization/68695
12564 * ira-color.c (allocno_copy_cost_saving): New.
12565 (improve_allocation): Use it.
12567 2016-03-29 Richard Henderson <rth@redhat.com>
12569 PR middle-end/70355
12570 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12572 2016-03-29 Richard Biener <rguenther@suse.de>
12574 PR middle-end/70424
12575 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12576 use alignment returned by get_pointer_alignment_1 if it is
12577 bigger than BITS_PER_UNIT.
12578 * builtins.c (get_pointer_alignment_1): Do not return true
12579 for alignment extracted from SSA info.
12581 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12583 * config/ft32/ft32.opt (mnodiv): New.
12584 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12585 * doc/invoke.texi (FT32 Options -mnodiv): New.
12587 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12590 * config/i386/i386.md (define_split, andn): Fix modes.
12592 2016-03-26 Richard Biener <rguenther@suse.de>
12593 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12596 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12598 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12599 as 2nd argument to cl_optimization_restore().
12601 2016-03-25 Richard Henderson <rth@redhat.com>
12604 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12605 * config/aarch64/aarch64-protos.h: Declare it.
12606 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12608 2016-03-25 Alan Modra <amodra@gmail.com>
12611 * config/rs6000/constraints.md (j): Simplify.
12612 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12614 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12615 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12616 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12617 in all constraint alternatives.
12618 (movtd_64bit_nodm): Delete "j" constraint alternative.
12620 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12622 * tree-ssa-propagate.c: Enhance docs for
12623 SSA_PROP_NOT_INTERESTING.
12625 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12627 * doc/extend.texi: Fix typo in documentation to pure attribute.
12629 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12632 * config/pa/pa.md (bswapdi2): Use a scratch register.
12634 2016-03-24 Richard Henderson <rth@redhat.com>
12636 PR middle-end/69845
12637 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12640 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12642 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12643 using ix86_expand_binary_operator instead of gen_andsi3.
12645 2016-03-24 Richard Biener <rguenther@suse.de>
12647 PR tree-optimization/70396
12648 * tree-vect-stmts.c (vectorizable_comparison): Use
12649 get_vectype_for_scalar_type.
12651 2016-03-24 Richard Biener <rguenther@suse.de>
12653 PR middle-end/70370
12654 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12655 with register bases.
12657 2016-03-24 Richard Biener <rguenther@suse.de>
12659 PR tree-optimization/70372
12660 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12661 build_all_ones_cst to also handle vector types correctly.
12663 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12666 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12669 2016-03-23 Marek Polacek <polacek@redhat.com>
12672 * doc/invoke.texi: Document -Wignored-attributes.
12674 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12676 PR tree-optimization/69042
12677 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12678 parameter from 30 to 40.
12680 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12682 PR tree-optimization/69042
12683 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12684 for use with constant offset stripped in base.
12686 2016-03-23 Richard Biener <rguenther@suse.de>
12688 PR middle-end/70251
12689 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12690 mode compatibility check.
12691 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12693 2016-03-23 Jeff Law <law@redhat.com>
12695 PR tree-optimization/64058
12696 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12698 (struct ssa_conflicts): Move up earlier in the file.
12699 (conflicts_, var_map_): New static variables.
12700 (initialize_conflict_count): New function to initialize the
12701 CONFLICT_COUNT field for each conflict pair.
12702 (compare_pairs): Lazily initialize the conflict count and use it
12703 as the first tie-breaker.
12704 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
12705 and wipe conflicts_ and map_ around the call to qsort. Remove
12706 special case for 2 coalesce pairs.
12707 * bitmap.c (bitmap_count_unique_bits): New function.
12708 (bitmap_count_bits_in_word): New function, extracted from
12710 (bitmap_count_bits): Use bitmap_count_bits_in_word.
12711 * bitmap.h (bitmap_count_unique_bits): Declare it.
12713 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
12716 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12717 transparent alias chain for decl assembler name.
12718 * config/sol2.c (solaris_assemble_visibility): Likewise.
12720 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12722 * config/arm/arm1020e.md (1020call_op): Reduce reservation
12724 (v10_fdivs): Likewise.
12725 (v10_fdivd): Likewise.
12727 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12730 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12731 to not call fclose twice on file.
12733 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12735 PR tree-optimization/70354
12736 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12737 oprnd0 is wider than oprnd1 and there is a cast from the wider
12738 type to oprnd1, mask it with the mask of the narrower type.
12741 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12742 Optimize TARGET_STV splitters, if high or low word of last argument
12745 2016-03-22 Jeff Law <law@redhat.com>
12748 tree-ssa-threadbackward.c
12749 (fsm_find_control_statement_thread_paths): Correctly distinguish
12750 between old style jump threads vs FSM jump threads.
12752 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12755 * config/i386/i386.c (scalar_chain::convert_op): Support
12756 uninitialized register usage case.
12758 2016-03-22 Richard Biener <rguenther@suse.de>
12760 PR middle-end/70251
12761 * genmatch.c (gen_transform): Adjust last parameter to a three-state
12763 (capture::gen_transform): ... to change behavior when substituting
12764 a condition into cond or not-cond expr context.
12765 (dt_simplify::gen_1): Adjust.
12766 * gimple-match-head.c: Include gimplify.h for unshare_expr.
12767 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12768 last change and instead change to
12769 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12770 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12772 2016-03-22 Anthony Green <green@moxielogic.com>
12774 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
12775 issue for moxiebox targets.
12776 (CC1PLUS_SPEC): Ditto.
12778 2016-03-22 Richard Biener <rguenther@suse.de>
12780 PR middle-end/70333
12781 * fold-const.c (extract_muldiv_1): Properly perform multiplication
12784 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12786 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12788 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12791 * config/i386/i386.c (def_builtin): Handle
12792 OPTION_MASK_ISA_AVX512VL to be and-ed with other
12794 (const struct builtin_description bdesc_special_args[]):
12795 Remove duplicate ISA bits.
12797 2016-03-22 Jakub Jelinek <jakub@redhat.com>
12800 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12801 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
12802 in a way that works also for AVX512BW.
12805 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12806 instead of source if operands[1] is xmm16 and above and
12807 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
12808 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12811 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12812 on assign if (*from_p) is a comparison, set it to
12813 TREE_NO_WARNING (*from_p).
12815 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12817 PR middle-end/70326
12818 * lra.c (restore_scratches): Ignore deleted insns.
12820 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
12821 Jakub Jelinek <jakub@redhat.com>
12823 PR tree-optimization/70317
12824 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12827 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
12830 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12831 of ix86_expand_move.
12833 (movti): Use general_operand for operand 1 predicate.
12835 2016-03-21 Martin Liska <mliska@suse.cz>
12837 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12839 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12841 2016-03-21 Martin Liska <mliska@suse.cz>
12844 * ipa-icf.c (sem_function::parse): Skip static
12845 constructors and destructors.
12847 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12850 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12851 function-like macro, peek following token(s) if it is followed
12852 by CPP_OPEN_PAREN token with optional padding in between, and
12853 if not, don't treat it like a macro.
12855 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
12856 Alexander Monakov <amonakov@ispras.ru>
12858 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12859 for the stabs debug format.
12861 2016-03-21 Richard Biener <rguenther@suse.de>
12863 PR tree-optimization/70310
12864 * tree-vect-generic.c (expand_vector_condition): Fold the built
12867 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
12870 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12871 Block third alternative for AVX-512VL target,
12873 2016-03-21 Martin Liska <mliska@suse.cz>
12876 * hsa-brig.c (emit_function_directives): Mark unemitted
12877 global variables for emission.
12878 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12879 (get_symbol_for_decl): Likewise.
12880 * hsa.h (struct hsa_symbol): New flag.
12882 2016-03-21 Richard Biener <rguenther@suse.de>
12884 PR tree-optimization/70288
12885 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12886 we do not estimate unsimplified all-constant conditionals or
12887 switches as optimized away.
12889 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
12891 PR rtl-optimization/69102
12892 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12893 when we have a readonly dependency context.
12895 2016-03-18 Jeff Law <law@redhat.com>
12897 PR rtl-optimization/70263
12898 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12899 (update_equiv_regs): When trying to move a store to after the insn
12900 that sets the source of the store, make sure the store occurs after
12901 the insn that sets the source of the store. When successful note
12902 the REG_EQUIV note created in the dump file.
12904 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
12905 Bernd Schmidt <bschmidt@redhat.com>
12907 * doc/extend.texi: Document more potential problems with basic asms.
12909 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
12911 PR rtl-optimization/70278
12912 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12915 2016-03-18 Jason Merrill <jason@redhat.com>
12917 * calls.c (load_register_parameters): Fix zero size sibcall logic.
12919 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12921 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12922 values to 128b regs.
12924 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12926 PR tree-optimization/70252
12927 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12928 boolean vector has a proper number of elements.
12929 (supportable_narrowing_operation): Likewise.
12931 2016-03-18 Tom de Vries <tom@codesourcery.com>
12934 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12936 2016-03-18 Jakub Jelinek <jakub@redhat.com>
12938 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12939 instead of replace_rtx for DEBUG_INSNs.
12941 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12943 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12944 load type reservations.
12946 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
12949 * config/pa/constraints.md: Revert 2015-02-13 change. Use
12950 define_constraint for "Q" and "T" constraints.
12952 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
12954 Tweak the pipeline model for Exynos M1
12956 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
12959 2016-03-17 David Malcolm <dmalcolm@redhat.com>
12962 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12963 where one or both locations aren't within a line_map.
12965 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
12968 * opts.c (finish_options): Don't set flag_pie to the default if
12969 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
12972 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
12974 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12975 true as ALL_REGS argument to replace_rtx.
12977 2016-03-17 Richard Biener <rguenther@suse.de>
12980 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12983 2016-03-17 Jakub Jelinek <jakub@redhat.com>
12986 * rtl.h (replace_rtx): Add ALL_REGS argument.
12987 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
12988 equality and assert mode is the same, instead of just rtx pointer
12990 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12991 true as ALL_REGS argument to replace_rtx.
12993 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
12995 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
12996 for boolean vector with vector mode only.
12997 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12999 2016-03-17 Nick Clifton <nickc@redhat.com>
13002 * config/rx/rx.c (rx_print_integer): Print negative constants in
13005 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13008 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13010 2016-03-16 Richard Henderson <rth@redhat.com>
13011 Richard Biener <rguenth@suse.de>
13013 PR middle-end/70240
13014 PR middle-end/68215
13016 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13017 first operand as is_gimple_condexpr.
13019 PR middle-end/70240
13020 PR middle-end/68215
13022 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
13023 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13024 Do not gimplify the result.
13025 (do_unop): Adjust call to tree_vec_extract.
13026 (do_binop): Likewise.
13027 (do_compare): Likewise.
13028 (do_plus_minus): Likewise.
13029 (do_negate): Likewise.
13030 (expand_vector_condition): Likewise.
13031 (do_cond): Likewise.
13033 2016-03-16 Richard Henderson <rth@redhat.com>
13036 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13037 (aarch64_classify_address): Use it.
13038 (aarch64_legitimize_address): Force all subexpressions of PLUS
13039 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
13041 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13042 Richard Biener <rguenth@suse.de>
13045 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13046 return to even if only REGNO is equal, and assert
13049 2016-03-11 Jeff Law <law@redhat.com>
13051 PR rtl-optimization/70224
13052 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13054 2016-03-16 Richard Henderson <rth@redhat.com>
13056 PR middle-end/70199
13057 * function.h (struct function): Add has_forced_label_in_static.
13058 * gimplify.c (force_labels_r): Set it.
13059 * lto-streamer-in.c (input_struct_function_base): Read it.
13060 * lto-streamer-out.c (output_struct_function_base): Write it.
13061 * tree-inline.c (has_label_address_in_static_1): Remove.
13062 (copy_forbidden): Remove fndecl parameter; test
13063 has_forced_label_in_static.
13064 (inline_forbidden_p): Update call to copy_forbidden.
13065 (tree_versionable_function_p): Likewise.
13066 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13067 (chkp_versioning): Likewise.
13068 * tree-inline.h (copy_forbidden): Update decl.
13070 2016-03-16 Marek Polacek <polacek@redhat.com>
13073 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13074 function being thunked if the result type doesn't have fixed size.
13075 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13076 doesn't have fixed size.
13078 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13080 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13081 reporting malformed loop nest.
13083 2016-03-16 Tom de Vries <tom@codesourcery.com>
13086 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13087 nodes.length () == 1 test to before first nodes[0] access.
13089 2016-03-16 Tom de Vries <tom@codesourcery.com>
13091 PR tree-optimization/68715
13092 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13093 single_pred_p test.
13095 2016-03-16 Tom de Vries <tom@codesourcery.com>
13097 PR tree-optimization/68809
13098 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13101 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13102 Sandra Loosemore <sandra@codesourcery.com>
13104 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13105 on leaf attribute. Mention ELF interposition problems.
13107 2016-03-16 Alan Modra <amodra@gmail.com>
13109 PR rtl-optimization/69195
13110 PR rtl-optimization/47992
13111 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13114 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13117 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13119 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13121 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13123 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13125 PR rtl-optimization/70222
13126 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13127 optimization if mode is different from result_mode, queue up masking
13128 of the result in outer_op. Formatting fix.
13130 PR middle-end/70239
13131 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13134 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13136 PR rtl-optimization/69032
13137 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13138 looping backwards over basic block insns.
13140 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13143 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13144 to non-speculative when propagating trap bits.
13146 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13148 PR rtl-optimization/63384
13149 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13150 DEBUG_INSN_P insns.
13152 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13155 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13156 factored out from ...
13157 (sched_analyze_insn): ... here.
13158 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13159 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13160 get_implicit_reg_pending_clobbers in it.
13161 (setup_id_reg_sets): Use setup_id_implicit_regs.
13162 (deps_init_id): Ditto.
13164 2016-03-15 Tom de Vries <tom@codesourcery.com>
13167 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13169 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13170 execute_function_dump.
13171 (execute_one_pass): Don't dump function if it will be dumped after ipa
13174 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13176 * genrecog.c (match_pattern_2): If pred is NULL don't call
13177 safe_predicate_mode on it.
13179 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13181 PR middle-end/70219
13182 * lra-constraints.c (delete_move_and_clobber): Change assertion
13183 to also allow dregno == 0.
13185 2016-03-14 Richard Henderson <rth@redhat.com>
13188 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13189 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13190 (reassociate_bb): Use optimize_vec_cond_expr; avoid
13191 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13194 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13197 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13199 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13201 * lra-constraints.c (split_reg): For hard regs, try to find the
13202 biggest single-register mode used in the function.
13204 2016-03-14 Richard Biener <rguenther@suse.de>
13206 PR tree-optimization/56365
13207 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13208 constants to compare against.
13210 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13213 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13214 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13215 (define_split for the GPR case): Use int_reg_operand instead of
13216 gpc_reg_operand for the output.
13218 2016-03-14 Tom de Vries <tom@codesourcery.com>
13220 PR tree-optimization/70045
13221 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13222 create_empty_if_region_on_edge argument.
13224 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13226 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13227 (STACK_CHECK_PROTECT): Likewise.
13228 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13229 (STACK_CHECK_PROTECT): Likewise.
13230 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13231 (STACK_CHECK_PROTECT): Likewise.
13232 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13233 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13234 (STACK_CHECK_PROTECT): Likewise.
13236 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13238 PR rtl-optimization/69307
13239 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13240 registers in modes that span more than one register.
13242 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13245 * lra-constraints.c (delete_move_and_clobber): New.
13246 (remove_inheritance_pseudos): Use it.
13248 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13251 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13252 the libcall is LCT_THROW.
13253 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13254 for the checking routine.
13256 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13259 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13260 optimization if we have direct move.
13261 (roundu32<mode>2_fprs): Likewise.
13263 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13266 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13268 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13269 Arguments swapped. All callers changed. Take reg_renumber into
13270 account, and Calculate and compare register ranges for hard regs.
13272 2016-03-11 Jeff Law <law@redhat.com>
13274 PR tree-optimization/70190
13275 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13276 Handle cases where we can not extract the taken edge, even though we
13277 found a constant value.
13279 PR tree-optimization/64058
13280 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13281 (num_coalesce_pairs): Move up earlier in file.
13282 (find_coalesce_pair): Initialize the INDEX field for each pair
13284 (compare_pairs): No longer sort on the elements in each pair.
13285 Instead break ties with the index of the coalesce pair.
13287 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13290 * config/aarch64/aarch64-protos.h
13291 (aarch64_save_restore_target_globals): New prototype.
13292 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13293 Call the above when popping pragma.
13294 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13296 (aarch64_set_current_function): Rewrite using the above.
13298 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13300 PR tree-optimization/70177
13301 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13302 (extract_ops_from_tree): ... this. In the 2 argument
13303 overload remove _1 suffix.
13304 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13305 (extract_ops_from_tree): ... this.
13306 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13308 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13309 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13310 extract_ops_from_tree instead of 2 operand one.
13312 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13314 PR tree-optimization/70013
13315 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13316 for constant-pool entries.
13318 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13320 PR rtl-optimization/70174
13321 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13322 followed by gen_lowpart on force_reg instead of just gen_lowpart.
13324 PR tree-optimization/70169
13325 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13326 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
13329 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13330 Jakub Jelinek <jakub@redhat.com>
13333 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13334 of uninitialized values.
13336 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13338 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13340 ("*trunctddd2"): New pattern definition.
13341 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13344 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13346 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13347 definitions for BFP and DFP rounding modes.
13348 ("fixuns_truncdddi2", "fixuns_trunctddi2")
13349 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13350 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13351 ("fix_trunctf<mode>2"): Use the new constants instead of magic
13354 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13356 * config/s390/constraints.md: Adjust comment.
13357 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
13358 s390_decompose_addrstyle_without_index.
13359 * config/s390/predicates.md (shift_count_or_setmem_operand):
13360 Rename to setmem_operand.
13361 * config/s390/s390-protos.h
13362 (s390_decompose_shift_count): Rename to
13363 s390_decompose_addrstyle_without_index.
13364 * config/s390/s390.c (s390_decompose_shift_count)
13365 (s390_mem_constraint, print_shift_count_operand)
13366 (print_operand_address, print_operand): Rename
13367 s390_decompose_shift_count to
13368 s390_decompose_addrstyle_without_index and rename
13369 print_shift_count_operand to print_addrstyle_operand troughout the
13371 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13372 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13373 Rename shift_count_or_setmem_operand to setmem_operand.
13374 * config/s390/vx-builtins.md ("vec_insert<mode>")
13375 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13378 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13381 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13382 Handle overlapping retval and newval.
13384 2016-03-10 Nick Clifton <nickc@redhat.com>
13387 * config/aarch64/aarch64.c
13388 (aarch64_override_options_after_change_1): When forcing
13389 flag_omit_frame_pointer to be true, use a special value that can
13390 be detected if this function is called again, thus preventing
13391 flag_omit_leaf_frame_pointer from being forced to be false.
13393 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13395 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13396 Set x_flag_omit_leaf_frame_pointer when handling
13397 -momit-leaf-frame-pointer.
13399 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13402 * cgraph.c (cgraph_node::dump): Dump split_part and
13403 indirect_call_target.
13404 * cgraph.h (cgraph_node): Add indirect_call_target flag.
13405 * ipa.c (has_addr_references_p): Cleanup.
13406 (is_indirect_call_target_p): New.
13407 (walk_polymorphic_call_targets): Do not mark virtuals that may be
13408 called indirectly as local.
13409 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13411 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13414 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13415 on cxa_pure_virtual.
13417 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13420 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13422 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13425 * tree.c (need_assembler_name_p): Only record main variant type names.
13427 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13430 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13431 Always define to 0 or 1.
13432 (TARGET_FIX_ERR_A53_843419): New macro.
13433 * config/aarch64/aarch64-elf-raw.h
13434 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13435 * config/aarch64/aarch64-linux.h: Likewise.
13436 * config/aarch64/aarch64.c
13437 (aarch64_override_options_after_change_1): Do not default
13438 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13440 (aarch64_attributes): Handle fix-cortex-a53-843419.
13441 (aarch64_can_inline_p): Likewise.
13442 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13444 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
13445 Jakub Jelinek <jakub@redhat.com>
13447 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13448 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13449 DECL_COMMONS if flag_unconstrained_commons is set.
13450 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13451 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13452 (funconstrained-commons): Document.
13454 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13456 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13457 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13459 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
13461 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13462 has a proper number of elements.
13464 2016-03-10 Alan Modra <amodra@gmail.com>
13466 PR rtl-optimization/69195
13467 PR rtl-optimization/47992
13468 * ira.c (recorded_label_ref): Delete.
13469 (update_equiv_regs): Return void.
13470 (indirect_jump_optimize): New function.
13471 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13472 before regstat_compute_ri. Don't rebuild_jump_labels here.
13473 Delete update_regstat.
13475 2016-03-10 Richard Biener <rguenther@suse.de>
13477 PR tree-optimization/70128
13478 * tree-ssa-structalias.c (set_uids_in_ptset): Set
13479 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13481 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13483 PR tree-optimization/70152
13484 * tree-sra.c (replace_removed_params_ssa_names): Copy over
13485 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13488 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13489 instead of gen_sse2_loadlpd.
13490 * config/i386/sse.md (*vec_concatv2df): Rename to...
13491 (vec_concatv2df): ... this.
13493 PR tree-optimization/70127
13494 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13496 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13500 * diagnostic-show-locus.c (compatible_locations_p): New function.
13501 (layout::layout): Sanitize ranges using compatible_locations_p.
13503 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13507 * diagnostic-show-locus.c (layout_range::layout_range): Replace
13508 location_range param with three const expanded_locations * and a
13510 (layout::layout): Replace call to
13511 rich_location::lazily_expand_location with get_expanded_location.
13512 Extract the range and perform location expansion here, passing
13513 the results to the layout_range ctor.
13514 * diagnostic.c (source_range::debug): Delete.
13515 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13516 of rich_location::get_expanded_location.
13517 * gcc-rich-location.c (get_range_for_expr): Delete.
13518 (gcc_rich_location::add_expr): Reimplement to avoid the
13519 rich_location::add_range overload that took a location_range,
13520 passing a location_t instead.
13522 2016-03-09 Richard Biener <rguenther@suse.de>
13523 Jakub Jelinek <jakub@redhat.com>
13525 PR tree-optimization/70138
13526 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13527 Also skip vect_double_reduction_def.
13529 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13532 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13533 if the operand is "m".
13535 2016-03-09 Nathan Sidwell <nathan@acm.org>
13537 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13539 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13541 * config/i386/i386.c (processor_target_table): Fix cost table
13542 intialization order for znver1.
13544 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13546 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13547 - becuase -> because.
13548 * ipa-reference.c (ignore_module_statics): Likewise.
13549 * cgraph.c (cgraph_node::get_body): Likewise.
13550 * ipa-inline.c (early_inliner): Likewise.
13551 * ipa-devirt.c (types_same_for_odr): Likewise.
13552 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13553 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13555 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13557 * tree-ssa-math-opts.c: Fix typo in comment.
13559 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13562 * config/i386/i386.c (scalar_chain::make_vector_copies,
13563 scalar_chain::convert_reg): Call end_sequence in between
13564 get_insns and emit_conversion_insns rather than after both
13567 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13570 * config/i386/i386.h (machine_function): Add
13571 pc_thunk_call_expanded flag.
13572 (ix86_pc_thunk_call_expanded): New define.
13573 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13574 (*set_got): Rename insn pattern from set_got.
13575 (*set_got_labelled): Rename inst pattern from set_got_labelled.
13576 * config/i386/i386.c (ix86_compute_frame_layout): Use
13577 ix86_pc_thunk_call_expanded to prevent red-zone.
13579 2016-03-07 Martin Jambor <mjambor@suse.cz>
13581 * hsa.h (hsa_get_ctor_statements): Declare.
13582 (hsa_get_dtor_statements): Likewise.
13583 (hsa_get_kernel_dispatch_type): Likewise.
13584 * hsa.c (hsa_get_ctor_statements): New function.
13585 (hsa_get_dtor_statements): Likewise.
13586 (hsa_get_kernel_dispatch_type): Likewise.
13587 * hsa-brig.c (hsa_cdtor_statements): Removed.
13588 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13589 hsa_get_dtor_statements.
13590 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13591 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13593 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13595 * config/arm/arm-cores.def (cortex-r8): New.
13596 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13597 * config/arm/arm-tune.md: Likewise.
13598 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13600 2016-03-07 Martin Sebor <msebor@redhat.com>
13602 PR rtl-optimization/19705
13603 * doc/invoke.texi (Options That Control Optimization): Clarify
13604 -fno-branch-count-reg.
13606 2016-02-26 Richard Biener <rguenther@suse.de>
13607 Jeff Law <law@redhat.com>
13609 PR tree-optimization/69740
13610 * cfghooks.c (remove_edge): Request loop fixups if we delete
13611 an edge that might turn an irreducible loop into a natural
13613 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13614 Move after definition of loops_state_clear.
13616 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13618 PR rtl-optimization/69052
13619 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13622 2016-03-07 Tom de Vries <tom@codesourcery.com>
13624 PR tree-optimization/70116
13625 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13626 is_tm_ending stmts and ubsan/asan internal functions.
13627 (find_duplicate): Use it. Don't test is_tm_ending here.
13629 2016-03-07 Richard Biener <rguenther@suse.de>
13631 PR tree-optimization/70115
13632 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13633 (propagate_constants_for_unrolling): Use replace_uses_by.
13635 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13637 PR middle-end/69916
13638 * omp-low.c (struct oacc_loop): Add ifns.
13639 (new_oacc_loop_raw): Initialize it.
13640 (finish_oacc_loop): Clear mask & flags if no ifns.
13641 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13642 (oacc_loop_xform_loop): Add ifns arg & adjust.
13643 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13645 2016-03-07 Richard Henderson <rth@redhat.com>
13648 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13649 (insert_value_copy_on_edge): Likewise.
13651 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13653 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13655 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13658 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13660 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13662 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13664 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13666 Fix sseimul type attribute.
13667 * config/i386/znver1.md
13668 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13669 znver1_sseimul_avx256_load) : Fix the type attribute.
13670 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13671 pipe usage and latency.
13673 2016-03-05 Jakub Jelinek <jakub@redhat.com>
13676 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13677 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13680 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13683 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13685 PR rtl-optimization/69941
13686 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13687 the reg share its mode.
13689 2016-03-04 Jeff Law <law@redhat.com>
13691 PR tree-optimization/69196
13692 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13693 If the both SSA_NAMEs are anonymous, then consider them unassociated
13694 and include the PHI in the statement count.
13696 2016-03-05 Tom de Vries <tom@codesourcery.com>
13698 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13699 construct in oacc routine. Check for oacc region in oacc routine.
13701 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13704 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
13705 2016-02-22 changes, instead don't recurse if RECUR is already true.
13706 Don't change *dynamic_check if RECUR. Adjust recursive caller
13707 to pass true to the new argument.
13708 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13711 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13712 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13714 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
13716 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13718 PR rtl-optimization/57676
13719 * lra-assigns.c (lra_assign): Guard test for maximum iterations
13720 with flag_checking.
13722 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
13724 * tree-vect-patterns.c (search_type_for_mask): Handle
13725 comparison of booleans.
13727 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13729 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13733 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13734 all other ops that have dw_val_class_die_ref operands,
13735 and DW_OP_GNU_entry_value.
13737 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13739 PR rtl-optimization/69904
13740 * config/arm/arm.c (arm_cannot_copy_insn_p):
13741 Return true for load-exclusive instructions.
13743 2016-03-03 Jakub Jelinek <jakub@redhat.com>
13746 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13747 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13748 the pattern no matter if it is used just by non-pattern, pattern
13750 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13751 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13752 oprnd1 def_stmt is in pattern, don't look through it.
13754 2016-03-03 Marek Polacek <polacek@redhat.com>
13756 PR middle-end/70050
13757 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13759 2016-03-03 Martin Liska <mliska@suse.cz>
13761 PR tree-optimization/70043
13762 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13763 previous statement if we see a debug statement.
13765 2016-03-03 Richard Biener <rguenther@suse.de>
13767 PR tree-optimization/55936
13768 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13769 parameter and guard unsafe equivalence use.
13770 (vrp_evaluate_conditional_warnv_with_ops): Always use
13771 safe equivalences but not via the quadratic compare_names
13774 2016-03-03 Michael Collison <michael.collison@linaro.org>
13777 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13778 for operand 1 to s_register_operand. Change predicate for operand
13779 2 to arm_not_immediate_operand.
13781 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
13783 * doc/tm.texi: Regenerated.
13785 2016-03-02 Richard Henderson <rth@redhat.com>
13788 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13789 simplification when all args are positive non-fixed registers.
13791 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13793 * target.def (lra_p): Specify that new ports should use LRA.
13795 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13798 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13799 gimplify_type_sizes the type they refer to.
13800 (omp_notice_variable): Handle reference vars to VLAs.
13801 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13802 reference to VLA decls in the second pass instead of first pass.
13804 2016-03-02 Tom de Vries <tom@codesourcery.com>
13806 PR tree-optimization/68659
13807 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13808 new_expr == NULL_TREE.
13809 (get_new_name): Handle ADDR_EXPR.
13811 2016-03-02 Bin Cheng <bin.cheng@arm.com>
13813 PR rtl-optimization/69052
13814 * loop-invariant.c (canonicalize_address): New function.
13815 (inv_can_prop_to_addr_use): Check validity of address expression
13816 which is canonicalized by above function.
13818 2016-03-02 Alan Modra <amodra@gmail.com>
13821 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13824 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13827 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13828 (*movhi_internal): Put mask moves from and to memory separately
13829 from moves from/to GPRs.
13831 2016-03-02 Richard Biener <rguenther@suse.de>
13833 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13834 GENERIC expressions in GIMPLE.
13836 2016-03-02 Richard Biener <rguenther@suse.de>
13838 * config/i386/i386.c (type_natural_mode): Fix typo.
13840 2016-03-02 Nick Clifton <nickc@redhat.com>
13842 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13844 2016-03-02 Richard Biener <rguenther@suse.de>
13845 Uros Bizjak <ubizjak@gmail.com>
13848 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13850 2016-03-02 Richard Biener <rguenther@suse.de>
13852 PR middle-end/67278
13853 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13855 2016-03-02 Marek Polacek <polacek@redhat.com>
13858 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13859 "is promoted to" warning.
13861 2016-03-01 DJ Delorie <dj@redhat.com>
13863 * config.gcc: Deprecate mep-*.
13865 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
13867 PR middle-end/70025
13868 * lra-constraints.c (regno_val_use_in): New.
13869 (match_reload): Use it instead of regno_use_in.
13871 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13873 PR rtl-optimization/70007
13874 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13875 references present in REG_EQUAL notes attached to non-SET patterns.
13877 2016-03-01 Jeff Law <law@redhat.com>
13879 PR tree-optimization/69196
13880 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13881 Appropriately clamp the number of statements to copy when the
13882 thread path does not traverse a loop backedge.
13884 PR tree-optimization/69196
13885 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13886 Do count some PHIs in the thread path against the insn count. Decrease
13887 final statement count by one as the control statement in the last
13888 block will get removed. Remove special cased code for handling PHIs
13891 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
13894 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13895 asm dialect alternatives to explicit GOTPCREL calls.
13897 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13900 * ira.c (do_reload): Issue warning for generic stack checking here...
13901 * reload1.c (reload): ...instead of here and streamline it.
13903 2016-03-01 Nick Clifton <nickc@redhat.com>
13905 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13907 2016-03-01 Richard Biener <rguenther@suse.de>
13909 PR tree-optimization/69983
13910 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13911 types and fall back to operand_equal_p.
13913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13916 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13918 * config/s390/constraints.md ("jm8"): New constraint.
13919 * config/s390/predicates.md ("const_int_8bitset_operand"): New
13921 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13923 ("*setmem_long<setmem_and>"): New pattern.
13924 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13926 ("*setmem_long_31z<setmem_and>"): New pattern.
13927 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13928 New substitution rules with the required attributes.
13931 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13934 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13936 * gensupport.c (process_substs_on_one_elem): Split loop to
13937 complete mark_operands_used_in_match_dup on all expressions in the
13939 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13940 and remove function.
13942 2016-03-01 Richard Biener <rguenther@suse.de>
13944 PR middle-end/70022
13945 * fold-const.c (fold_indirect_ref_1): Fix range checking for
13946 vector BIT_FIELD_REF extract.
13948 2016-03-01 Richard Biener <rguenther@suse.de>
13950 PR tree-optimization/69994
13951 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13953 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13955 PR tree-optimization/69956
13956 * tree-vect-stmts.c (supportable_widening_operation): Support
13957 multi-step conversion of boolean vectors.
13958 (supportable_narrowing_operation): Likewise.
13960 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13962 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13967 * config/s390/subst.md (DSI_VI): New mode iterator.
13968 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13969 * config/s390/vector.md ("vec_set<mode>"): Move expander before
13970 the insn definition.
13971 ("*vec_set<mode>"): Change predicate and add alternative to
13972 support only either register or const_int operands as element
13974 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13976 ("vec_extract<mode>"): New expander.
13977 ("*vec_extract<mode>"): New insn definition supporting reg and
13978 const_int element selectors.
13979 ("*vec_extract<mode>_plus"): New insn definition supporting
13980 reg+const_int element selectors.
13981 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13982 following expander+insn definition.
13983 ("<vec_shifts_name><mode>3"): New expander.
13984 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13988 * config/s390/s390.md ("*tabort_1"): Change predicate to
13989 nonmemory_operand. Add a second alternative to cover
13990 register as well as const int operands.
13991 ("*tabort_1_plus"): New pattern definition.
13993 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13995 * config/s390/s390.md ("*ashrdi3_cc_31")
13996 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
13997 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
13998 Merge insn definitions into ...
13999 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14000 New pattern definition.
14001 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14002 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14003 ("*ashr<mode>3_and"): Merge insn definitions into ...
14004 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14005 New pattern definition.
14006 * config/s390/subst.md ("addr_style_op_cc_subst")
14007 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14008 substitutions patterns plus attributes.
14009 Add ashiftrt to SUBST iterator.
14011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14013 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14014 op2 to nonmemory_operand.
14015 ("*<shift>di3_31", "*<shift>di3_31_and"):
14016 Merge into single pattern definition ...
14017 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14018 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14019 pattern definition ...
14020 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14021 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14024 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14026 * config/s390/predicates.md (const_int_6bitset_operand): New
14028 * config/s390/s390.md: Include subst.md.
14029 ("rotl<mode>3"): New expander.
14030 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14032 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14033 * config/s390/subst.md: New file.
14035 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14037 * config/s390/s390.md ("op_type", "atype", "length" attributes):
14038 Remove RRR type. It doesn't really exist.
14039 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14041 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14042 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14043 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14044 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14045 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14046 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14047 `enabled' attribute.
14049 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14051 * gensupport.c (process_substs_on_one_elem): Split loop to
14052 complete mark_operands_used_in_match_dup on all expressions in the
14054 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14055 and remove function.
14057 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14060 * config/sparc/sparc.c (NWORDS_UP): Rename to...
14061 (CEIL_NWORDS): ...this. Use CEIL macro.
14062 (compute_fp_layout): Adjust to above renaming.
14063 (function_arg_union_value): Likewise.
14064 (sparc_arg_partial_bytes): Likewise.
14065 (sparc_function_arg_advance): Likewise.
14067 2016-02-29 Jeff Law <law@redhat.com>
14069 PR tree-optimization/70005
14070 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14071 where an object with a boolean range is compared against a value
14074 PR tree-optimization/69999
14075 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14076 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14079 2016-02-29 Richard Biener <rguenther@suse.de>
14081 PR tree-optimization/69994
14082 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14083 (get_unary_op): Look through nop conversions.
14084 (ops_equal_values_p): New function, look for equality diregarding
14086 (eliminate_plus_minus_pair): Use ops_equal_values_p
14087 (repropagate_negates): Do not use get_unary_op here.
14089 2016-02-29 Martin Liska <mliska@suse.cz>
14091 * system.h: Poison ENABLE_CHECKING macro.
14093 2016-02-29 Martin Liska <mliska@suse.cz>
14095 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14096 is presented in dump flags.
14097 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14098 (hsa_regalloc): Likewise.
14100 2016-02-19 Richard Biener <rguenther@suse.de>
14102 PR tree-optimization/69980
14103 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14104 permutation of those we need to keep.
14106 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14109 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14110 (NWORDS_UP): ...this
14111 (init_cumulative_args): Minor tweaks.
14112 (sparc_promote_function_mode): Likewise.
14113 (scan_record_type): Delete.
14114 (traverse_record_type): New function template.
14115 (classify_data_t): New structure type.
14116 (classify_registers): New inline function.
14117 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14118 exhausted. Instantiate traverse_record_type on classify_registers and
14119 deal with the case of a structure passed in slot #15 with no FP field
14121 (assign_data_t): New structure type.
14122 (compute_int_layout): New static function.
14123 (compute_fp_layout): Likewise.
14124 (count_registers): New inline function.
14125 (assign_int_registers): New static function.
14126 (assign_fp_registers): Likewise.
14127 (assign_registers): New inline function.
14128 (function_arg_record_value_1): Delete.
14129 (function_arg_record_value_2): Likewise.
14130 (function_arg_record_value_3): Likewise.
14131 (function_arg_record_value): Adjust to above changes. Instantiate
14132 traverse_record_type on count_registers to first count the number of
14133 registers to be used and then on assign_registers to assign them.
14134 (function_arg_union_value): Adjust to above renaming.
14135 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
14136 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
14137 case of a structure passed in slot #15
14138 (sparc_function_arg_advance): Likewise.
14139 (function_arg_padding): Minor tweak.
14141 2016-02-29 Richard Biener <rguenther@suse.de>
14143 PR tree-optimization/69720
14144 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14145 the adjustment_def path for possibly vectorized defs.
14146 (vect_create_epilog_for_reduction): Handle vectorized initial
14149 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14151 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14153 2016-02-27 Jeff Law <law@redhat.com>
14156 2016-02-26 Richard Biener <rguenther@suse.de>
14157 Jeff Law <law@redhat.com>
14159 PR tree-optimization/69740
14160 * cfghooks.c (remove_edge): Request loop fixups if we delete
14161 an edge that might turn an irreducible loop into a natural
14164 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14166 PR rtl-optimization/69896
14167 * tree-vect-generic.c (get_compute_type): Avoid single element
14170 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14172 Rename the AArch64 tuning option and related functions to enable the
14173 Newton series for the reciprocal square root to reflect its
14174 approximative characteristic.
14176 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14177 function to "aarch64_emit_approx_rsqrt".
14178 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14179 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14180 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14181 (xgene1_tunings): Likewise.
14182 (use_rsqrt_p): Likewise.
14183 (aarch64_emit_swrsqrt): Use new function name.
14184 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14185 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14186 text explaining this option.
14187 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14189 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14193 complain about -mallow-movmisalign without -mvsx if
14194 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14196 2016-02-26 Joel Sherrill <joel@rtems.org>
14198 * config.gcc: Add x86_64-*-rtems*.
14199 * config/i386/rtems-64.h: New file.
14201 2016-02-26 Joel Sherrill <joel@rtems.org>
14203 * config.gcc: Add aarch64-*-rtems*.
14204 * config/aarch64/rtems.h: New file.
14206 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14209 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14210 shift amount using %h. Add comment.
14212 2016-02-26 Richard Biener <rguenther@suse.de>
14213 Jeff Law <law@redhat.com>
14215 PR tree-optimization/69740
14216 * cfghooks.c (remove_edge): Request loop fixups if we delete
14217 an edge that might turn an irreducible loop into a natural
14220 2016-02-26 Martin Jambor <mjambor@suse.cz>
14222 PR middle-end/69920
14223 * tree-sra.c (sra_modify_assign): Do not remove loads of
14224 uninitialized aggregates to SSA_NAMEs.
14226 2016-02-26 Richard Henderson <rth@redhat.com>
14229 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14230 pseudo in case the target rtx matches the source of the left
14233 2016-02-26 Martin Jambor <mjambor@suse.cz>
14236 * hsa.h (hsa_type_packed_p): Declare.
14237 * hsa.c (hsa_type_packed_p): New function.
14238 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14240 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14241 * hsa-brig.c (emit_basic_insn): Likewise.
14243 2016-02-26 Martin Jambor <mjambor@suse.cz>
14246 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14248 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14250 2016-02-26 Martin Jambor <mjambor@suse.cz>
14252 * hsa.h (is_a_helper): New overload for hsa_op_immed for
14253 hsa_op_with_type operands.
14254 (hsa_unsigned_type_for_type): Declare.
14255 * hsa.c (hsa_unsigned_type_for_type): New function.
14256 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14257 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14258 the finalizer. Do not emit extra move.
14260 2016-02-26 Martin Jambor <mjambor@suse.cz>
14262 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14263 atomic operations in private segment.
14265 2016-02-26 Martin Jambor <mjambor@suse.cz>
14267 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14268 statements to wi->info. Also disallow omp simd constructs.
14269 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14270 for not gridifying. Dump special string for omp_for.
14272 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14275 * config/aarch64/aarch64.c (aarch64_set_current_function):
14276 Save/restore target globals when switching to
14277 target_option_default_node.
14279 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14282 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14283 Return 0 if !SHIFT_COUNT_TRUNCATED.
14285 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14286 Eric Botcazou <ebotcazou@adacore.com>
14288 PR rtl-optimization/69891
14289 * dse.c (scan_insn): If we can't figure out memset arguments
14290 or they are non-constant, call clear_rhs_from_active_local_stores.
14292 2016-02-26 Martin Liska <mliska@suse.cz>
14294 * doc/extend.texi: Mention clog10, clog10f an clog10l
14295 in Builtins section.
14297 2016-02-26 Martin Liska <mliska@suse.cz>
14299 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14301 (resolve_args_picking_1): Likewise.
14302 * dwarf2out.h (struct GTY): Likewise.
14304 2016-02-26 Martin Liska <mliska@suse.cz>
14306 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14307 with flag_checking.
14308 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14310 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14311 Martin Liska <mliska@suse.cz>
14313 * doc/install.texi: Mention --enable-valgrind-annotations.
14315 2016-02-26 Richard Biener <rguenther@suse.de>
14317 PR tree-optimization/69551
14318 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14319 looking through aliases adjust DECL_PT_UID to refer to the
14320 ultimate alias target.
14322 2016-02-25 Martin Liska <mliska@suse.cz>
14324 PR middle-end/69919
14325 * alloc-pool.c (after_memory_report): New variable.
14326 * alloc-pool.h (base_pool_allocator ::release): Do not use
14327 the infrastructure if after_memory_report.
14328 * toplev.c (toplev::main): Mark after memory report.
14330 2016-02-25 Richard Biener <rguenther@suse.de>
14332 PR tree-optimization/48795
14333 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14335 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14338 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
14339 offloading is enabled and -fopenacc or -fopenmp is specified.
14340 (CRTOFFLOADEND): Likewise.
14341 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14342 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14343 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14344 (offload_objects_file_name): New static var.
14345 (tool_cleanup): Remove offload_objects_file_name file.
14346 (find_offloadbeginend): Replace with ...
14347 (find_crtoffloadtable): ... this.
14348 (run_gcc): Remove offload_argc and offload_argv.
14349 Get offload_objects_file_name from -foffload-objects=... option.
14350 Read names of object files with offload from this file, pass them to
14351 compile_images_for_offload_targets. Don't call find_offloadbeginend and
14352 don't pass offloadbegin and offloadend to the linker. Don't pass
14353 offload non-LTO files to the linker, because now they're not claimed.
14355 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
14358 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14359 on builtin_unreachable.
14361 2016-02-25 Jakub Jelinek <jakub@redhat.com>
14363 PR rtl-optimization/69896
14364 * regcprop.c: Include cfgrtl.h.
14365 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14366 than remembered mode, either delete it (if noop_move_p), or
14367 treat like copy_p but not noop_p instruction.
14369 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14372 * dwarf2out.c (gen_variable_die): Work around buggy LTO
14373 - allow NULL decl for Fortran DW_TAG_common_block variables.
14375 2016-02-24 Jason Merrill <jason@redhat.com>
14377 * common.opt (flifetime-dse): Add -flifetime-dse=1.
14379 2016-02-24 Richard Biener <rguenther@suse.de>
14380 Jakub Jelinek <jakub@redhat.com>
14382 PR middle-end/69760
14383 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14384 conditionally executed ops to well-defined overflow behavior.
14386 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14388 PR middle-end/69915
14389 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14392 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14394 PR rtl-optimization/69886
14395 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14396 argument. Use it when checking validity of set instructions.
14397 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14398 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14400 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14401 * store-motion.c (find_moveable_store): Update
14402 can_assign_to_reg_without_clobbers_p callsite.
14404 2016-02-24 Richard Biener <rguenther@suse.de>
14406 PR middle-end/68963
14407 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14409 (record_nonwrapping_iv): Do not fall back to the low/high bound
14410 for non-constant IV bases if the stmt is not always executed.
14412 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14414 * config/arm/arm-cores.def (cortex-a32): New entry.
14415 * config/arm/arm-tables.opt: Regenerate.
14416 * config/arm/arm-tune.md: Regenerate.
14417 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14418 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14419 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14420 for -mcpu and -mtune.
14422 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14425 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14426 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14427 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14428 (atomic_loaddi_1): Delete.
14429 (atomic_loaddi): Rewrite expander using the above changes.
14431 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14434 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14438 Richard Biener <rguenth@suse.de>
14440 PR middle-end/69909
14441 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14442 set_mem_attributes if tem is SSA_NAME which got expanded
14445 2016-02-24 Richard Biener <rguenther@suse.de>
14447 PR tree-optimization/69907
14448 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14449 end of permutations for BB vectorization.
14451 2016-02-24 Christian Bruel <christian.bruel@st.com>
14453 * config/arm/arm-c.c (arm_option_override): Initialize
14454 target_option_current_node.
14455 * config/arm/arm.c (arm_pragma_target_parse): Replace
14456 build_target_option_node call by target_option_current_node.
14457 Set target_option_current_node.
14460 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
14463 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14464 define_insn_and_split to define_insn.
14465 (zero_extendqi<mode>2_dot2): Same.
14466 (extendqi<mode>2_dot): Same.
14467 (extendqi<mode>2_dot2): Same.
14469 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14471 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14472 and add bypass for AES{D,E} and AESMC pairs.
14473 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14476 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14478 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14479 series for reciprocal square root in Exynos M1.
14481 2016-02-23 Martin Sebor <msebor@redhat.com>
14484 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14485 __builtin_alloca_with_align.
14487 2016-02-23 Richard Henderson <rth@redhat.com>
14489 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14490 (ix86_register_pragmas): Remove __seg_tls.
14491 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14492 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14493 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14494 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14495 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14496 * doc/extend.texi (__seg_tls): Remove item.
14498 2016-02-23 Richard Biener <rguenther@suse.de>
14500 * alloc-pool.h (struct allocation_object): Make id member
14501 conditional on CHECKING_P again.
14502 (get_instance): Adjust.
14503 (base_pool_allocator): Likewise.
14505 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
14507 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14508 (parallelize_loops): In OpenACC kernels mode, set n_threads to
14510 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14512 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14514 2016-02-23 Richard Biener <rguenther@suse.de>
14516 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14517 * bitmap.h (struct bitmap_usage): Likewise.
14518 (bitmap_move): Declare.
14519 * bitmap.c (register_overhead): Take size_t argument.
14520 (bitmap_move): New function.
14521 * df-problems.c (df_rd_transfer_function): Use bitmap_move
14522 to properly account overhead.
14523 * tree.c (free_node): Use tree_size.
14525 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14528 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14529 when inverting comparison.
14532 * common.opt (Wunreachable-code): Add Warning flag.
14534 2016-02-23 Mark Wielaard <mjw@redhat.com>
14535 Jakub Jelinek <jakub@redhat.com>
14538 * cgraphunit.c (check_global_declaration): Check main_input_filename
14539 and DECL_SOURCE_FILE are not NULL.
14541 2016-02-23 Martin Jambor <mjambor@suse.cz>
14543 PR tree-optimization/69666
14544 * tree-sra.c (sra_modify_assign): Do not attempt to create
14545 default_def replacements for unscalarizable regions.
14547 2016-02-20 Mark Wielaard <mjw@redhat.com>
14550 * cgraphunit.c (check_global_declaration): Check level of
14551 warn_unused_const_variable and main_input_filename.
14552 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14553 (-Wunused-variable): For C implies -Wunused-const-variable=1.
14554 (-Wunused-const-variable): Explain levels 1 and 2.
14556 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14559 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14560 identical arguments. Formatting and spelling fixes.
14563 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14568 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14569 and m68k-devices.def.
14570 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14571 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14573 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14575 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14576 and HImode registers.
14578 2016-02-22 Richard Biener <rguenther@suse.de>
14580 PR tree-optimization/69882
14581 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14582 preserve permutations present because of gaps.
14583 (vect_supported_load_permutation_p): Always continue checking
14584 permutations after vect_attempt_slp_rearrange_stmts.
14586 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14588 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14589 min_profitable_estimate, rather than min_profitable_iters.
14591 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14594 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14595 SImode for last match_operand.
14597 2016-02-22 Martin Liska <mliska@suse.cz>
14599 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14600 return bitsize - 1 as the return value.
14602 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14606 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14607 Handle negative shift counts.
14608 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14609 force_reg on the shift constant.
14610 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
14611 (lshrsi3_d): Handle negative shift counts.
14613 2016-02-22 Richard Biener <rguenther@suse.de>
14614 Tom de Vries <tom@codesourcery.com>
14616 * graph.c: Include dumpfile.h.
14617 (print_graph_cfg): Split into three overloads.
14618 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14620 2016-02-22 Tom de Vries <tom@codesourcery.com>
14622 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14625 2016-02-22 Richard Biener <rguenther@suse.de>
14628 * ipa-inline-transform.c (inline_call): When not updating
14629 overall summaries adjust self size by the growth estimate.
14630 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14631 hash-set, do not update overall summaries here. Renamed from ...
14632 (inline_to_all_callers): ... this which is now wrapping the
14633 above and performing delayed overall summary update.
14634 (early_inline_small_functions): Delay updating of the overall
14637 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14639 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14642 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14645 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14646 :%* in %:gt() argument.
14647 (greater_than_spec_func): Adjust for expecting only numbers,
14648 if there are more than two numbers, compare the last two.
14650 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14652 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14653 -Wnarrowing with -std.
14655 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14658 * expr.c (store_field): Don't use bit-field path if exp is
14659 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14660 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14661 and the assignment can be performed by bitwise copy. Formatting
14664 PR middle-end/69838
14665 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14666 call copy_reg_eh_region_note_forward on before and/or after sequences
14667 and remove note from insn if it no longer can throw.
14670 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14671 if TARGET_AVX512BW.
14673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14675 * config/s390/vector.md: Add missing commutative operand markers
14676 to the patterns which qualify for one.
14677 * config/s390/vx-builtins.md: Likewise.
14679 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14681 * config/s390/vector.md (VI, VI_QHS): Add single element vector
14682 types to mode iterators.
14683 (vec_double): ... and mode attribute.
14684 * config/s390/vx-builtins.md (non_vec_int): Likewise.
14686 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14688 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14689 Change the predicate of op2 from nonimmediate to general and let
14690 reload fix it if necessary.
14692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14694 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14696 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14698 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14701 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14703 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14704 * config/s390/s390.c (s390_expand_vec_movstr): New function.
14705 * config/s390/s390.md ("movstr<P:mode>"): Call
14706 s390_expand_vec_movstr.
14708 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14710 * config/s390/s390.md: Add missing output modifier for operand 1
14711 to print it as address properly.
14713 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14715 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14716 * config/s390/2964.md: New file.
14717 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14718 of insn grouping attributes depending on the CPU level.
14719 (s390_get_unit_mask): New function.
14720 (s390_sched_score): Remove the OOO from the scheduling macros.
14721 Add loop to calculate a score for the instruction mix.
14722 (s390_sched_reorder): Likewise plus improve debug output.
14723 (s390_sched_variable_issue): Rename macros as above. Calculate
14724 the unit distances after actually scheduling an insn. Improve
14726 (s390_sched_init): Clear last_scheduled_unit_distance array.
14727 * config/s390/s390.md: Include 2964.md.
14729 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14732 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14733 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14734 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14735 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14736 *avx512f_<code>v8div16qi2_mask_1): New insns.
14738 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14741 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14744 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14745 earlyclobber from target. Use wF constraint for fused memory
14747 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14749 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14750 Martin Liska <mliska@suse.cz>
14753 * cfgexpand.c (asan_sanitize_stack_p): New function.
14754 (partition_stack_vars): Use the function.
14755 (expand_stack_vars): Likewise.
14756 (defer_stack_allocation): Likewise.
14757 (expand_used_vars): Likewise.
14759 2016-02-18 Richard Biener <rguenther@suse.de>
14761 PR middle-end/69553
14762 * fold-const.c (operand_equal_p): Properly compare offsets for
14763 IMAGPART_EXPR and ARRAY_REF.
14765 2016-02-18 Nick Clifton <nickc@redhat.com>
14769 * config/arm/arm.c (arm_option_override_internal): Disable
14770 interworking if the target does not support thumb instructions.
14771 (arm_reload_in_hi): Handle the case where a register to register
14772 move needs reloading because there is no simple pattern to handle
14774 (arm_reload_out_hi): Likewise.
14776 2016-02-18 Richard Biener <rguenther@suse.de>
14778 PR middle-end/69854
14779 * match.pd: Don't use fold_binary or fold_unary for folding
14782 2016-02-17 Jakub Jelinek <jakub@redhat.com>
14785 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14786 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14787 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14788 warn on gimple_no_warning_p statements.
14790 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
14792 * doc/extend.texi (C++ Attributes): Correct description of
14793 warn_unused type attribute.
14795 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14797 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14798 correct instruction.
14800 2016-02-17 Richard Biener <rguenther@suse.de>
14802 PR rtl-optimization/69609
14803 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14804 (find_traces_1_round): When ending a trace update cached priority
14806 (bb_to_key): Use cached priority when available.
14807 (copy_bb): Initialize cached priority.
14808 (reorder_basic_blocks_software_trace_cache): Likewise.
14810 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14813 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14815 (aarch64_comparison_operator): Break overly long line into two.
14816 (aarch64_comparison_operation): Likewise.
14817 * config/aarch64/aarch64.md (cstorecc4): Use
14818 aarch64_comparison_operator_mode instead of
14819 aarch64_comparison_operator.
14820 (cstore<mode>4): Likewise.
14821 (aarch64_cstore<mode>): Likewise.
14822 (*cstoresi_insn_uxtw): Likewise.
14823 (cstore<mode>_neg): Likewise.
14824 (*cstoresi_neg_uxtw): Likewise.
14826 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14829 * config/arm/predicates.md (arm_comparison_operator_mode):
14831 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14832 instead of arm_comparison_operator.
14833 (*mov_negscc): Likewise.
14834 (*mov_notscc): Likewise.
14835 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14836 (*thumb2_mov_negscc): Likewise.
14837 (*thumb2_mov_negscc_strict_it): Likewise.
14838 (*thumb2_mov_notscc): Likewise.
14839 (*thumb2_mov_notscc_strict_it): Likewise.
14841 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
14843 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14844 Add missing return.
14846 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
14848 * config/visium/visium.c (machine_libfunc_index): New enum.
14849 (machine_libfuncs): New structure.
14850 (visium_libfuncs): New static variable.
14851 (TARGET_INIT_LIBFUNCS): Define to...
14852 (visium_init_libfuncs): ...this. New function.
14853 (expand_block_move_4): Use the appropriate libfunc.
14854 (expand_block_move_2): Likewise.
14855 (expand_block_move_1): Likewise.
14856 (expand_block_set_4): Likewise.
14857 (expand_block_set_2): Likewise.
14858 (expand_block_set_1): Likewise.
14859 (visium_trampoline_init): Likewise.
14861 2016-02-17 Nick Clifton <nickc@redhat.com>
14863 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14864 TI's devices.csv file as of March 2016.
14866 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
14869 * opts-global.c (handle_common_deferred_options): Introduce and
14870 initialize two global variables to remember command-line options
14871 specifying a stack-limiting register.
14872 * opts.h: Add extern declarations of the two new global variables.
14873 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14874 variable based on the values of the two new global variables.
14876 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14879 * common.opt (Wnonnull-compare): New warning.
14880 * doc/invoke.texi (-Wnonnull): Remove text about comparison
14881 of arguments against NULL.
14882 (-Wnonnull-compare): Document.
14883 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14884 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14885 * passes.def (pass_warn_nonnull_compare): Add.
14886 * gimple-ssa-nonnull-compare.c: New file.
14888 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14890 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14891 AARCH64_EXTRA_TUNE_RECIP_SQRT.
14893 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14895 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14896 reciprocal sqrt for -mlow-precision-recip-sqrt.
14898 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14901 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14902 always use lane loads to construct non-constant vectors.
14904 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14906 * config/aarch64/aarch64.md
14907 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14908 constraints for operand 3.
14909 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14911 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14912 Richard Biener <rguenther@suse.de>
14914 PR tree-optimization/69820
14915 * tree-vect-patterns.c (type_conversion_p): Return false if
14916 *orig_type is unsigned single precision or boolean.
14917 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14920 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14922 PR rtl-optimization/69764
14923 PR rtl-optimization/69771
14924 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14925 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14927 2016-02-16 Richard Biener <rguenther@suse.de>
14929 PR tree-optimization/69776
14930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14932 (indirect_refs_may_alias_p): Likewise.
14933 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14934 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14935 according to tbaa_p.
14936 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14937 (optimize_stmt): For redundant store discovery do not allow tbaa.
14939 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
14941 PR tree-optimization/69714
14942 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14943 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14945 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
14947 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14948 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14949 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14950 * config/arc/arc.c (arc_init): Check FPU options.
14951 (get_arc_condition_code): Handle new CC_FPU* modes.
14952 (arc_select_cc_mode): Likewise.
14953 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14954 register pair only. Allow access for ARCv2 accumulator.
14955 (gen_compare_reg): Whenever we have FPU support use FPU compare
14957 (arc_reorg): Don't generate brcc insns when FPU compare
14958 instructions are involved.
14959 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14960 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14961 floating point emulation.
14962 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14963 (REVERSE_CONDITION): Add new CC_FPU* modes.
14964 (TARGET_FP_SP_BASE): Define.
14965 (TARGET_FP_DP_BASE): Likewise.
14966 (TARGET_FP_SP_FUSED): Likewise.
14967 (TARGET_FP_DP_FUSED): Likewise.
14968 (TARGET_FP_SP_CONV): Likewise.
14969 (TARGET_FP_DP_CONV): Likewise.
14970 (TARGET_FP_SP_SQRT): Likewise.
14971 (TARGET_FP_DP_SQRT): Likewise.
14972 (TARGET_FP_DP_AX): Likewise.
14973 * config/arc/arc.md (ARCV2_ACC): New constant.
14974 (type): New fpu type attribute.
14975 (SDF): Conditional iterator.
14976 (cstore<mode>, cbranch<mode>): Change expand condition.
14977 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14978 handles FPU/FPX cases as well.
14979 * config/arc/arc.opt (mfpu): New option.
14980 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14982 (adddf3, muldf3, subdf3): Removed.
14983 * config/arc/predicates.md (proper_comparison_operator): Recognize
14985 * config/arc/fpu.md: New file.
14986 * doc/invoke.texi (ARC Options): Document mfpu option.
14988 2016-02-16 Richard Biener <rguenther@suse.de>
14990 PR rtl-optimization/69291
14991 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14992 noce_operand_ok check.
14994 2016-02-16 Tom de Vries <tom@codesourcery.com>
14997 * omp-low.c (simd_clone_create): Remove call to
14998 symtab->call_cgraph_insertion_hooks.
15000 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15002 PR tree-optimization/69802
15003 * tree-ssa-reassoc.c (update_range_test): If op is
15004 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15005 op == 1 test of precision 1 integral op, otherwise handle
15006 that case as op itself. Fix up formatting.
15007 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15010 2016-02-16 Richard Biener <rguenther@suse.de>
15012 PR tree-optimization/69586
15013 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15014 types for conversion sources.
15016 2016-02-16 Richard Biener <rguenther@suse.de>
15018 PR middle-end/69801
15019 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15020 mask OEP_ADDRESS_OF.
15022 2016-02-16 Alan Modra <amodra@gmail.com>
15025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15026 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15027 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15029 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15030 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15031 (p8_fmrgow_<mode>): Likewise.
15032 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
15034 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15035 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15036 to use movdi_internal64. Remove op0_di.
15037 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15039 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15041 Add support for the FCCMP insn types
15043 * config/aarch64/aarch64.md (fccmp): Change insn type.
15044 (fccmpe): Likewise.
15045 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15046 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15047 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15048 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15049 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15050 * config/arm/types.md (fccmps): Add new insn type.
15051 (fccmpd): Likewise.
15053 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15055 * alias.c (get_alias_set): Fix a typo in comment.
15057 2016-02-15 Richard Biener <rguenther@suse.de>
15059 PR tree-optimization/69595
15060 * match.pd: Complete range test simplification to true.
15062 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15064 PR rtl-optimization/69648
15065 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15066 pic_offset_table_rtx.
15068 PR rtl-optimization/69752
15069 * ira.c (update_equiv_regs): When looking for more than a single SET,
15070 also take other side effects into account.
15072 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15074 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15075 for z900+ CPUs in 31-bit mode.
15077 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15079 * common/config/s390/s390-common.c (s390_supports_split_stack):
15081 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15082 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15083 * config/s390/s390.c (struct machine_function): New field
15084 split_stack_varargs_pointer.
15085 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15086 in s390_emit_prologue.
15087 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15089 (morestack_ref): New global.
15090 (SPLIT_STACK_AVAILABLE): New macro.
15091 (s390_expand_split_stack_prologue): New function.
15092 (s390_live_on_entry): New function.
15093 (s390_va_start): Use split-stack vararg pointer if appropriate.
15094 (s390_asm_file_end): Emit the split-stack note sections.
15095 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15096 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15097 (UNSPECV_SPLIT_STACK_CALL): New unspec.
15098 (UNSPECV_SPLIT_STACK_DATA): New unspec.
15099 (split_stack_prologue): New expand.
15100 (split_stack_space_check): New expand.
15101 (split_stack_data): New insn.
15102 (split_stack_call): New expand.
15103 (split_stack_call_*): New insn.
15104 (split_stack_cond_call): New expand.
15105 (split_stack_cond_call_*): New insn.
15107 2016-02-15 Richard Biener <rguenther@suse.de>
15109 PR tree-optimization/69783
15110 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15111 Add trivially correct cases.
15113 2016-02-15 Tom de Vries <tom@codesourcery.com>
15116 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15118 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15120 2016-02-15 Richard Biener <rguenther@suse.de>
15122 PR tree-optimization/69776
15123 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15124 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15125 indicate whether we can use TBAA to disambiguate against stores.
15126 Use alias-set zero if not.
15127 (visit_reference_op_store): Do not use TBAA when looking up
15129 * tree-ssa-pre.c (compute_avail): Use TBAA here.
15130 (eliminate_dom_walker::before_dom_children): But not when looking
15131 up redundant stores.
15133 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15135 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15137 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15139 * config/i386/znver1.md
15140 (znver1_pop, znver1_pop_mem,
15141 znver1_load_imov_double_store,
15142 znver1_load_imov_direct_store,
15143 znver1_load_imov_direct_load,
15144 znver1_load_imov_double_load): Add new.
15145 (znver1_insn, znver1_insn_load): Add icmov type.
15146 (znver1_sseavx_fma,
15147 znver1_sseavx_fma_load,
15149 znver1_avx256_fma_load): Fix pipe usage.
15151 2016-02-14 Alan Modra <amodra@gmail.com>
15154 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15155 with an invalid hard reg, reload just the reg not the entire
15156 pre/post-inc/dec address expression.
15158 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15161 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15162 fixed R1_REG scratch reg.
15163 (sibcall_value_pcrel_fdpic): Likewise.
15165 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15169 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15171 2016-02-12 Walter Lee <walt@tilera.com>
15173 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15174 * config/tilegx/t-tilegx: Likewise.
15176 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15179 * diagnostic-show-locus.c (struct line_span): New struct.
15180 (layout::get_first_line): Delete.
15181 (layout::get_last_line): Delete.
15182 (layout::get_num_line_spans): New member function.
15183 (layout::get_line_span): Likewise.
15184 (layout::print_heading_for_line_span_index_p): Likewise.
15185 (layout::get_expanded_location): Likewise.
15186 (layout::calculate_line_spans): Likewise.
15187 (layout::m_first_line): Delete.
15188 (layout::m_last_line): Delete.
15189 (layout::m_line_spans): New field.
15190 (layout::layout): Update comment. Replace m_first_line and
15191 m_last_line with m_line_spans, replacing their initialization
15192 with a call to calculate_line_spans.
15193 (diagnostic_show_locus): When printing source lines and
15194 annotations, rather than looping over a single span
15195 of lines, instead loop over each line_span within
15196 the layout, with an inner loop over the lines within them.
15197 Call the context's start_span callback when changing line spans.
15198 * diagnostic.c (diagnostic_initialize): Initialize start_span.
15199 (diagnostic_build_prefix): Break out the building of the location
15200 part of the string into...
15201 (diagnostic_get_location_text): ...this new function, rewriting
15202 it from nested ternary expressions to a sequence of "if"
15204 (default_diagnostic_start_span_fn): New function.
15205 * diagnostic.h (diagnostic_start_span_fn): New typedef.
15206 (diagnostic_context::start_span): New field.
15207 (default_diagnostic_start_span_fn): New prototype.
15209 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15212 * gcc.c (driver::finalize): Fix cleanup of "specs".
15214 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15218 * gcc.c (driver::driver): Initialize m_option_suggestions.
15219 (driver::~driver): Clean up m_option_suggestions.
15220 (suggest_option): Convert to...
15221 (driver::suggest_option): ...this, and split out into
15222 driver::build_option_suggestions and find_closest_string.
15223 (driver::build_option_suggestions): New function, from
15224 first half of suggest_option. Special-case
15225 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15226 the sanitizer_opts array. For options of enum types, add the
15227 various enum values to the candidate strings.
15228 (driver::handle_unrecognized_options): Remove "const".
15229 * gcc.h (driver::handle_unrecognized_options): Likewise.
15230 (driver::build_option_suggestions): New decl.
15231 (driver::suggest_option): New decl.
15232 (driver::m_option_suggestions): New field.
15233 * opts-common.c (add_misspelling_candidates): New function.
15234 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15235 and make non-static.
15236 * opts.h (sanitizer_opts): New array decl.
15237 (add_misspelling_candidates): New function decl.
15238 * spellcheck.c (find_closest_string): New function.
15239 * spellcheck.h (find_closest_string): New function decl.
15241 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15243 PR rtl-optimization/69764
15244 PR rtl-optimization/69771
15245 * optabs.c (expand_binop_directly): For shift_optab_p, force
15246 convert_modes with VOIDmode if xop1 has VOIDmode.
15248 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15251 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15252 to correctly determine instrumentation thunks.
15254 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15257 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15258 type by reference, force lhs on the call.
15261 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15262 Compute retval and retbnd early in all cases if split_part_return_p
15263 and return_bb is not EXIT. Remove all clobber stmts and reset
15264 all debug stmts that refer to SSA_NAMEs defined in split part,
15265 except if it is retval, in that case replace the old retval with the
15266 lhs of the call to the split part.
15268 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15271 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15273 PR middle-end/66726
15274 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15275 whose result is used in PHI.
15276 (maybe_optimize_range_tests): Likewise.
15277 (final_range_test_p): Likweise.
15279 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15281 PR middle-end/66726
15282 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15283 whose result is used in PHI.
15284 (maybe_optimize_range_tests): Likewise.
15285 (final_range_test_p): Likweise.
15287 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15289 * cgraph.c: Spelling fixes - behaviour -> behavior and
15290 neighbour -> neighbor.
15291 * target.def: Likewise.
15292 * sel-sched.c: Likewise.
15293 * config/mips/mips.c: Likewise.
15294 * config/arc/arc.md: Likewise.
15295 * config/arm/cortex-a57.md: Likewise.
15296 * config/arm/arm.c: Likewise.
15297 * config/arm/neon.md: Likewise.
15298 * config/arm/arm-c.c: Likewise.
15299 * config/vms/vms-c.c: Likewise.
15300 * config/s390/s390.c: Likewise.
15301 * config/i386/znver1.md: Likewise.
15302 * config/i386/i386.c: Likewise.
15303 * config/ia64/hpux-unix2003.h: Likewise.
15304 * config/msp430/msp430.md: Likewise.
15305 * config/rx/rx.c: Likewise.
15306 * config/rx/rx.md: Likewise.
15307 * config/aarch64/aarch64-simd.md: Likewise.
15308 * config/aarch64/aarch64.c: Likewise.
15309 * config/nvptx/nvptx.c: Likewise.
15310 * config/bfin/bfin.c: Likewise.
15311 * config/cris/cris.opt: Likewise.
15312 * config/rs6000/rs6000.c: Likewise.
15313 * target.h: Likewise.
15314 * spellcheck.c: Likewise.
15315 * ira-build.c: Likewise.
15316 * tree-inline.c: Likewise.
15317 * builtins.c: Likewise.
15318 * lra-constraints.c: Likewise.
15319 * explow.c: Likewise.
15320 * hwint.h: Likewise.
15321 * targhooks.c: Likewise.
15322 * tree-vect-data-refs.c: Likewise.
15323 * expr.c: Likewise.
15324 * doc/tm.texi: Likewise.
15325 * doc/extend.texi: Likewise.
15326 * doc/install.texi: Likewise.
15327 * doc/md.texi: Likewise.
15328 * tree-ssa-tail-merge.c: Likewise.
15329 * sched-int.h: Likewise.
15330 * match.pd: Likewise.
15331 * sched-ebb.c: Likewise.
15332 * target.def (omit_struct_return_reg): Likewise.
15333 * gimple-ssa-isolate-paths.c: Likewise.
15334 (find_implicit_erroneous_behaviour): Renamed to...
15335 (find_implicit_erroneous_behavior): ... this.
15336 (find_explicit_erroneous_behaviour): Renamed to...
15337 (find_explicit_erroneous_behavior): ... this.
15338 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15340 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15342 PR rtl-optimization/64682
15343 PR rtl-optimization/69567
15344 PR rtl-optimization/69737
15345 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15346 in I2 as well, just lose it.
15348 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15350 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15352 (aarch64_last_printed_tune_string): Likewise.
15353 (aarch64_declare_function_name): Only output .arch assembler
15354 directive if it will be different from the previously output
15355 directive. Same for .tune comment but only if -dA is set.
15356 (aarch64_start_file): New function.
15357 (TARGET_ASM_FILE_START): Define.
15359 2016-02-11 David Malcolm <dmalcolm@redhat.com>
15362 * Makefile.in (PLUGIN_HEADERS): Add params.list.
15364 2016-02-11 Jakub Jelinek <jakub@redhat.com>
15367 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15368 -Wmaybe-uninitialized warning.
15370 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
15373 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15375 2016-02-11 Richard Biener <rguenther@suse.de>
15377 PR rtl-optimization/69291
15378 * ifcvt.c (noce_try_store_flag_constants): Do not allow
15379 subexpressions affected by changing the result.
15381 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
15384 * lra-constraints.c (curr_insn_transform): Find in/out operands
15385 for secondary memory moves. Update dups.
15387 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15389 PR tree-optimization/69652
15390 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15391 to nested loop, did source re-formatting, skip debug statements,
15392 add check on statement with volatile operand, remove dead scalar
15395 2016-02-10 Jakub Jelinek <jakub@redhat.com>
15396 Patrick Palka <ppalka@gcc.gnu.org>
15400 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15401 calls if the return type is TREE_ADDRESSABLE.
15402 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15403 * ipa-split.c (split_function): Fix doubled "we" in comment.
15404 Use void return type for the split part even if
15405 !split_point->split_part_set_retval.
15407 2016-02-10 Bin Cheng <bin.cheng@arm.com>
15409 PR tree-optimization/68021
15410 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15411 when computing the value of biv cand by itself.
15413 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15415 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15416 (cortexa57_tunings): Likewise.
15417 (cortexa72_tunings): Likewise.
15418 (arch_macro_fusion_pair_p): Add support for AES fusion.
15419 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15420 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15421 Allow virtual registers before reload so early scheduling works.
15422 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15423 correct latency and pipeline.
15424 (cortex_a57_crypto_complex): Likewise.
15425 (cortex_a57_crypto_xor): Likewise.
15426 (define_bypass): Add AES bypass.
15428 2016-02-10 Richard Biener <rguenther@suse.de>
15430 PR tree-optimization/69726
15431 * passes.def: Add DCE pass before late uninit.
15432 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15433 really fixup if-conversions job.
15435 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15437 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15438 (arm_cortex_a57_tune): Likewise.
15439 (aarch_macro_fusion_pair_p): Add support for AES fusion.
15440 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15442 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
15444 * timevar.def (TV_PHASE_DBGINFO): Delete.
15445 (TV_PHASE_CHECK_DBGINFO): Likewise.
15446 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15448 2016-02-10 Richard Biener <rguenther@suse.de>
15450 PR tree-optimization/69719
15451 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15452 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15454 2016-02-09 Andrew Pinski <apinski@cavium.com>
15457 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15458 get_vcond_mask_icode returns false.
15460 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15463 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15464 an ADDIS that adds a pointer to a large constant that sets the
15465 upper16 bits with a load operation.
15467 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15470 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15472 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15474 (vzipq_s16): Likewise.
15475 (vzipq_s32): Likewise.
15476 (vzipq_f32): Likewise.
15477 (vzipq_u8): Likewise.
15478 (vzipq_u16): Likewise.
15479 (vzipq_u32): Likewise.
15480 (vzipq_p8): Likewise.
15481 (vzipq_p16): Likewise.
15483 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15486 * config/arm/arm.c (neon_endian_lane_map): New function.
15487 (neon_vector_pair_endian_lane_map): New function.
15488 (arm_evpc_neon_vuzp): Allow for big endian lane order.
15489 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15491 (vuzpq_s16): Likewise.
15492 (vuzpq_s32): Likewise.
15493 (vuzpq_f32): Likewise.
15494 (vuzpq_u8): Likewise.
15495 (vuzpq_u16): Likewise.
15496 (vuzpq_u32): Likewise.
15497 (vuzpq_p8): Likewise.
15498 (vuzpq_p16): Likewise.
15500 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
15503 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15506 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
15508 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15509 truncate const_int operand 1 to QImode.
15511 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
15513 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15514 corresponding to an abnormal edge.
15516 2016-02-09 Tom de Vries <tom@codesourcery.com>
15518 PR tree-optimization/69599
15519 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15521 (find_func_aliases_for_builtin_call, find_func_clobbers)
15522 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
15525 2016-02-09 Richard Biener <rguenther@suse.de>
15527 PR tree-optimization/69715
15528 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15529 LHS on calls as non-rewritable.
15531 2016-02-09 Tom de Vries <tom@codesourcery.com>
15534 * lto-wrapper.c (append_diag_options): New function.
15535 (compile_offload_image): Call append_diag_options.
15537 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15540 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15541 Minor copy-edit to fix verb tenses.
15543 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15545 PR tree-optimization/69209
15546 * ipa-split.c (split_function): If split part is not
15547 returning retval, retval has gimple type but is not
15548 gimple value, force it into a SSA_NAME first.
15550 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15552 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15555 2016-02-08 Jason Merrill <jason@redhat.com>
15558 * convert.c (convert_to_integer_1): Check dofold on truncation
15560 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15561 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15562 Rename from *_nofold.
15563 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15564 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15566 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15569 * tree.c (build_common_tree_nodes): Remove short_double argument.
15570 All callers changed.
15571 * tree.h (build_common_tree_nodes): Adjust declaration.
15572 * doc/invoke.texi (-fshort-double): Remove documentation.
15573 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15574 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15575 * lto-wrapper.c (merge_and_complain, append_compiler_options)
15576 (append_linker_options): Don't handle OPT_fshort_double.
15578 PR rtl-optimization/68730
15579 * lra-remat.c (insn_to_cand_activation): New static variable.
15580 (lra_remat): Allocate and free it.
15581 (create_cand): New arg activation. Initialize a field in
15582 insn_to_cand_activation if it is nonnull.
15583 (create_cands): Pass the activation insn to create_cand when making
15584 a candidate involving an output reload. Reorganize code a little.
15585 (do_remat): Keep track of active status of candidates in a separate
15588 2016-02-08 Richard Biener <rguenther@suse.de>
15590 PR tree-optimization/69719
15591 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15592 Properly use absolute of the difference of the two offsets to
15593 compare or adjust the segment length.
15595 2016-02-08 Richard Biener <rguenther@suse.de>
15596 Jeff Law <law@redhat.com>
15599 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15600 types for anonymous SSA names.
15602 2016-02-08 Richard Biener <rguenther@suse.de>
15604 PR rtl-optimization/69274
15605 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15607 2016-02-08 Jeff Law <law@redhat.com>
15609 PR tree-optimization/65917
15610 * tree-ssa-dom.c (record_temporary_equivalences): Record both
15611 equivalences from if (x == y) style conditionals.
15612 (loop_depth_of_name): Remove.
15613 (record_equality): Remove loop depth check.
15614 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15615 (const_and_copies::record_const_or_copy_raw): New member function.
15616 * tree-ssa-scopedtables.c
15617 (const_and_copies::record_const_or_copy_raw): New, factored out of
15618 (const_and_copies::record_const_or_copy): Call new member function.
15620 2016-02-05 Jeff Law <law@redhat.com>
15622 PR tree-optimization/68541
15623 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15624 (count_stmts_in_block): New function.
15625 (poor_ifcvt_candidate_code): Likewise.
15626 (is_feasible_trace): Add some heuristics to determine when path
15627 splitting is profitable.
15628 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15629 is a diamond with a single exit.
15631 2016-02-05 Martin Sebor <msebor@redhat.com>
15634 * doc/invoke.texi: Update -Wplacement-new to take an optional
15637 2016-02-06 Richard Henderson <rth@redhat.com>
15640 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15641 out of non-standard address spaces.
15643 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15645 PR rtl-optimization/69691
15646 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15648 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15650 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15651 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15652 (*ieee128_mfvsrd_64bit): Likewise.
15653 (*ieee128_mfvsrd_32bit): Likewise.
15655 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
15659 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
15661 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15662 instrumented_version.
15664 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
15666 * doc/invoke.texi (Optimize Options): In table of --param options
15667 rename second occurrence of tracer-min-branch-ratio to
15668 tracer-min-branch-probability, rename
15669 tracer-min-branch-ratio-feedback to
15670 tracer-min-branch-probability-feedback and clarify description,
15671 rename sched-spec-state-edge-prob-cutoff to
15672 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15673 to selsched-insns-to-rename, rename lto-minpartition to
15674 lto-min-partition, delete reorder-blocks-duplicate and
15675 reorder-blocks-duplicate-feedback.
15677 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15679 * config/s390/s390.c (s390_register_info_set_ranges): Remove
15682 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15684 * doc/extend.texi: S/390: Correct some typos.
15686 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15688 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15690 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15693 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15694 (s390_register_info_gprtofpr): Use new macros above.
15695 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15697 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15698 its name. Adjust restore and save gpr ranges.
15699 (s390_register_info_set_ranges): New function.
15700 (s390_register_info): Use new macros above. Call
15701 s390_register_info_set_ranges.
15702 (s390_optimize_register_info): Likewise.
15703 (s390_hard_regno_rename_ok): Use new macros.
15704 (s390_hard_regno_scratch_ok): Likewise.
15705 (s390_emit_epilogue): Likewise.
15706 (s390_can_use_return_insn): Likewise.
15707 (s390_optimize_prologue): Likewise.
15708 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15710 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15713 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15715 (ix86_option_override_internal): Disable TARGET_STV even for
15716 -m{incoming,preferred}-stack-boundary=3.
15718 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15720 * config.gcc: Mark deprecated rtems targets as obsolete.
15722 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
15724 PR rtl-optimization/64682
15725 PR rtl-optimization/69567
15726 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15727 before I2 only if the register is both used and set in I2.
15729 2016-02-04 DJ Delorie <dj@redhat.com>
15731 * config/msp430/msp430.c (msp430_start_function): Add function type.
15733 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15736 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15738 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
15740 PR rtl-optimization/69577
15742 2015-10-29 Richard Henderson <rth@redhat.com>
15746 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15747 sse check to the exact conditions of PR 67609.
15749 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15752 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15753 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15754 not allowed into the traditional Altivec registers.
15755 (movtd_64bit_nodm): Likewise.
15756 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15758 2016-02-04 David Malcolm <dmalcolm@redhat.com>
15760 * config/aarch64/cortex-a57-fma-steering.c
15761 (aarch64_register_fma_steering): Remove "static" from arguments
15764 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
15767 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15768 twice when complex.
15770 2016-02-04 Mike Frysinger <vapier@gentoo.org>
15772 * doc/invoke.texi: Delete -mno-fma4.
15774 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
15776 PR rtl-optimization/69577
15777 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15778 (find_subregs_of_mode): Update accordingly. Iterate over partial
15781 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
15783 * config/arm/arm-protos.h (neon_reinterpret): Remove.
15784 * config/arm/arm.c (neon_reinterpret): Remove.
15785 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15786 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15787 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15788 vreinterpretti): Remove.
15789 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15790 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15791 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15792 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15793 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15794 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15795 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15796 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15797 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15798 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15799 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15800 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15801 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15802 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15803 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15804 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15805 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15806 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15807 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15808 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15809 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15810 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15811 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15812 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15813 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15814 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15815 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15816 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15817 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15818 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15819 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15820 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15821 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15822 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15823 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15824 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15825 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15826 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15827 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15828 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15829 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15830 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15831 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15832 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15833 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15834 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15835 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15836 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15837 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15838 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15839 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15840 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15841 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15842 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15843 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15844 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15845 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15846 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15847 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15848 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15849 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15850 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15851 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15852 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15853 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15854 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15855 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15856 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15857 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15858 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15859 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15860 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15861 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15862 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15863 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15864 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15865 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15866 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15867 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15868 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15869 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15870 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15871 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15872 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15873 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15874 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15875 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15876 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15877 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15878 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15879 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15880 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15881 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15882 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15883 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15884 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15885 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15886 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15887 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15888 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15889 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15890 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15891 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15893 2016-02-04 Martin Liska <mliska@suse.cz>
15896 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15897 that are gimple_store_p.
15898 (maybe_instrument_call): Likewise.
15900 2016-02-04 Bin Cheng <bin.cheng@arm.com>
15902 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15903 register scaling out of memory reference and comment why.
15905 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15909 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15910 folding the source of a SET.
15912 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15916 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15917 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15919 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
15923 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15926 2016-02-04 Christian Bruel <christian.bruel@st.com>
15928 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15929 * config/arm/arm.c (arm_set_current_function): Likewise.
15931 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15932 Ilya Enkovich <enkovich.gnu@gmail.com>
15933 H.J. Lu <hongjiu.lu@intel.com>
15936 * config/i386/i386.c (convert_scalars_to_vector): Remove
15937 stack alignment fixes.
15938 (ix86_option_override_internal): Disable TARGET_STV if stack
15939 might not be aligned enough.
15940 (ix86_minimum_alignment): Assert that TARGET_STV is false.
15942 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
15944 * config/i386/x86-tune.def: Disable default prefetching
15947 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15948 Vladimir Makarov <vmakarov@redhat.com>
15951 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15952 in validating fused toc addresses.
15954 2016-02-03 Jakub Jelinek <jakub@redhat.com>
15957 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15958 range->m_caret fields if range->m_show_caret_p is false.
15961 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15962 Force oldval into register if it does not satisfy reg_or_short_operand
15963 predicate. Fix up formatting.
15965 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
15966 Alexandre Oliva <aoliva@redhat.com>
15969 * lra-constraints.c (simplify_operand_subreg): Check additionally
15970 address validity after potential reloading.
15971 (process_address_1): Check insns validity. In case of failure do
15974 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
15977 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15980 2016-02-02 Jakub Jelinek <jakub@redhat.com>
15982 * wide-int.cc (canonize_uhwi): New function.
15983 (wi::divmod_internal): Use it.
15985 2016-02-02 James Norris <jnorris@codesourcery.com
15987 * gimplify.c (omp_notice_variable): Add usage check.
15989 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
15991 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15992 like LE, GE, LT, GT when emitting relational operator.
15994 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
15996 * ira-costs.c (find_costs_and_classes): Add extra argument.
15997 * target.def (ira_change_pseudo_allocno_class): Add parameter.
15998 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
15999 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16000 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16001 Add best_class parameter, and return it if not ALL_REGS.
16002 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16004 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16005 Update target hook.
16007 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16009 * config/aarch64/aarch64.c
16010 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16011 (aarch64_ira_change_pseudo_allocno_class): New function.
16013 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16016 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16018 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16020 * config/avr/avr.c (avr_option_override): Set
16021 PARAM_ALLOW_STORE_DATA_RACES to 1.
16023 2016-02-02 Richard Biener <rguenther@suse.de>
16025 PR tree-optimization/69595
16026 * match.pd: Add range test simplifications to true/false.
16028 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16030 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16031 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16034 2016-02-02 Richard Biener <rguenther@suse.de>
16036 PR tree-optimization/69606
16037 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16038 info on the result before moving a stmt.
16040 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16042 PR middle-end/68542
16043 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16044 branch with vector comparison.
16045 * config/i386/sse.md (VI48_AVX): New mode iterator.
16046 (define_expand "cbranch<mode>4): Add support for conditional branch
16047 with vector comparison.
16048 * tree-vect-loop.c (optimize_mask_stores): New function.
16049 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16050 has_mask_store field of vect_info.
16051 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16052 vectorized loops having masked stores after vec_info destroy.
16053 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16054 correspondent macros.
16055 (optimize_mask_stores): Add prototype.
16057 2016-02-02 Alan Modra <amodra@gmail.com>
16060 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16063 2016-02-02 Alan Modra <amodra@gmail.com>
16066 * config/rs6000/rs6000.c (need_toc_init): New var, set it
16067 whenever toc_label_name used.
16068 (rs6000_file_start): Don't set up toc section here,
16069 (rs6000_output_function_epilogue): do so here instead,
16070 (rs6000_xcoff_file_start): and here.
16071 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16072 (load_toc_aix_di): Likewise.
16074 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16076 PR rtl-optimization/69592
16077 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16078 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16079 (num_sign_bit_copies_binary_arith_p): New inline function.
16080 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16082 2016-02-01 Jeff Law <law@redhat.com>
16084 PR tree-optimization/69580
16085 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16086 * tree-ssa-threadbackward.c
16087 (fsm_find_control_statement_thread_paths): Do not try to walk
16088 through large PHI nodes.
16090 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16092 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16093 when count is incremented above limit, don't analyze further
16096 * omp-low.c (oacc_parse_default_dims): Avoid
16097 -Wsign-compare warning, make sure value fits into int
16098 rather than just unsigned int.
16100 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16102 PR tree-optimization/67921
16103 * fold-const.c (split_tree): New parameters. Convert pointer
16104 type variable part to proper type before negating.
16105 (fold_binary_loc): Pass new arguments to split_tree.
16107 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16109 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16110 (nvptx_goacc_validate_dims): Extend to handle global defaults.
16111 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16112 * doc/tm.texti: Rebuilt.
16113 * doc/invoke.texi (fopenacc-dim): Document.
16114 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16115 (append_compiler_options): Likewise.
16116 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16117 (oacc_parse_default_dims): New.
16118 (oacc_validate_dims): Add USED arg. Select non-unity default when
16120 (oacc_loop_fixed_partitions): Return mask of used partitions.
16121 (oacc_loop_auto_partitions): Emit dump info.
16122 (oacc_loop_partition): Return mask of used partitions.
16123 (execute_oacc_device_lower): Parse default dimension arg. Adjust
16124 loop partitioning and validation calls.
16126 2016-02-01 Richard Biener <rguenther@suse.de>
16128 PR middle-end/69556
16129 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16131 2016-02-01 Richard Biener <rguenther@suse.de>
16133 PR tree-optimization/69574
16134 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16135 of asserting return chrec_dont_know.
16137 2016-02-01 Martin Liska <mliska@suse.cz>
16139 * mem-stats-traits.h: Add copyright header.
16140 * mem-stats.h: Likewise.
16142 2016-02-01 Richard Biener <rguenther@suse.de>
16144 PR tree-optimization/69579
16145 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16146 Do not propagate through abnormal PHI results.
16148 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16150 * postreload.c (reload_cse_simplify): Remove dead code.
16152 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16154 PR rtl-optimization/69570
16155 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16156 if there is more than one set, not if there is a single set.
16158 2016-02-01 Richard Henderson <rth@redhat.com>
16161 * combine.c (make_compound_operation): When looking through a
16162 subreg, make sure to re-extend to the width of the outer mode.
16164 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16166 PR tree-optimization/69546
16167 * wide-int.cc (wi::divmod_internal): For unsigned division
16168 where both operands fit into uhwi, if o1 is 1 and o0 has
16169 msb set, if divident_prec is larger than bits per hwi,
16170 clear another quotient word and return 2 instead of 1.
16171 Similarly for remainder with msb in HWI set, if dividend_prec
16172 is larger than bits per hwi.
16174 2016-01-29 Martin Jambor <mjambor@suse.cz>
16176 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16177 Use short lowercase names.
16178 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
16179 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16180 acq_rel one. Protect warning agains segfaults if
16181 get_memory_order_name returns NULL.
16182 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16183 with release semantics. Do not warn if get_memory_order already did.
16184 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16185 semantics. Fix check for relaxed or acquire semantics. Do not warn
16186 if get_memory_order already did.
16188 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16190 * doc/install.texi: Document that isl-0.16 is supported.
16192 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16195 * config/i386/constraints.md (Bm): Describe as special memory
16197 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16198 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16199 * genpreds.c (struct constraint_data): Add is_special_memory.
16200 (have_special_memory_constraints, special_memory_start): New
16202 (special_memory_end): Ditto.
16203 (add_constraint): Add new arg is_special_memory. Add code to
16204 process its true value. Update have_special_memory_constraints.
16205 (process_define_constraint): Pass the new arg.
16206 (process_define_register_constraint): Ditto.
16207 (choose_enum_order): Process special memory.
16208 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16209 function insn_extra_special_memory_constraint.
16210 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16211 * gensupport.c (process_rtx): Process
16212 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16213 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16214 * ira-lives.c (single_reg_class): Use
16215 insn_extra_special_memory_constraint.
16216 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16217 * lra-constraints.c (process_alt_operands): Ditto.
16218 (curr_insn_transform): Use insn_extra_special_memory_constraint.
16219 * recog.c (asm_operand_ok, preprocess_constraints): Process
16221 * reload.c (find_reloads): Ditto.
16222 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16223 * stmt.c (parse_input_constraint): Use
16224 insn_extra_special_memory_constraint.
16226 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16229 * lra-splill.c (lra_final_code_change): Revert r229087 by
16230 removing all sub-registers.
16232 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16235 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16237 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16240 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16241 SSE1, copy target into the temporary reg first before recursing
16244 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16246 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16249 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16251 * ginclude/stdarg.h: Test __cplusplus instead of
16252 __GXX_EXPERIMENTAL_CXX0X__.
16254 2016-01-29 Richard Biener <rguenther@suse.de>
16256 PR tree-optimization/69547
16257 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16258 Do not mark clobbers necessary.
16259 (mark_all_reaching_defs_necessary_1): Likewise.
16261 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16263 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16264 declaration name with %qs and print it in both error messages.
16265 Also fix indentation.
16267 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16270 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16271 trailing blank line from error message.
16273 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16276 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16279 2016-01-29 Richard Biener <rguenther@suse.de>
16281 PR middle-end/69537
16282 * match.pd: Allow all integral types when simplifying a
16283 widening or sign-changing conversion.
16285 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16287 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16288 back to setting codegen_error to fail codegen.
16290 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16293 * config/i386/constraints.md (C): Only accept constant zero operand.
16294 (BC): New constraint.
16295 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16296 instead of C constraint.
16297 * doc/md.texi (Machine Constraints): Update description
16300 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16303 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16305 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16307 PR middle-end/69542
16308 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16311 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16313 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16314 branches if using guessed profile.
16316 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16318 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16320 2016-01-28 Richard Henderson <rth@redhat.com>
16323 * config/aarch64/aarch64-modes.def (CC_Cmode): New
16324 * config/aarch64/aarch64-protos.h: Update.
16325 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16326 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16327 (aarch64_get_condition_code_1): Handle CC_Cmode.
16328 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16329 (*add<mode>3_compareC_cconly_imm): New.
16330 (*add<mode>3_compareC_cconly): New.
16331 (*add<mode>3_compareC_imm): New.
16332 (add<mode>3_compareC): New.
16333 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16334 to be first. Use aarch64_carry_operation.
16335 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16336 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16337 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16338 (subti3): Use subdi3_compare1.
16339 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16340 (sub<mode>3_compare1): New.
16341 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16342 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16343 (*subsi3_carryin_uxtw): Likewise.
16344 (*ngc<mode>, *ngcsi_uxtw): Likewise.
16345 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16346 * config/aarch64/iterators.md (DWI): New.
16347 * config/aarch64/predicates.md (aarch64_carry_operation): New.
16348 (aarch64_borrow_operation): New.
16350 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16352 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16353 message when isl does not return a valid schedule.
16355 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16357 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16358 Remove comments from class declarations: they are already in the code
16361 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16363 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16365 (ternary_op_to_tree): Same.
16366 (unary_op_to_tree): Same.
16367 (nary_op_to_tree): Same.
16368 (gcc_expression_from_isl_expr_op): Same.
16369 (gcc_expression_from_isl_expression): Same.
16370 (graphite_create_new_loop): Same.
16371 (graphite_create_new_loop_guard): Same.
16372 (build_iv_mapping): Same.
16373 (graphite_create_new_guard): Same.
16374 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16375 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16377 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16379 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16380 instead of setting codegen_error to fail codegen.
16382 2016-01-28 Jason Merrill <jason@redhat.com>
16384 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16386 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16389 Remove CONST_INT_P check in CCMP cost calculation.
16391 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16393 * config/aarch64/aarch64.c (generic_vector_cost):
16394 Set vec_permute_cost.
16395 (cortexa57_vector_cost): Likewise.
16396 (exynosm1_vector_cost): Likewise.
16397 (xgene1_vector_cost): Likewise.
16398 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16399 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16400 Add vec_permute_cost entry.
16402 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16404 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16406 (add<mode>3_compare0): Likewise.
16407 (addsi3_compare0_uxtw): Likewise.
16408 (add<mode>3nr_compare0): Likewise.
16409 (compare_neg<mode>): Likewise.
16410 (<optab><mode>3): Likewise.
16412 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
16414 * tree-vect-stmts.c (vectorizable_comparison): Add
16415 NULL check for vectype.
16417 2016-01-28 Richard Biener <rguenther@suse.de>
16419 PR tree-optimization/69466
16420 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16421 Account for PHIs we couldn't duplicate.
16423 2016-01-28 Martin Liska <mliska@suse.cz>
16426 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16427 instead of ENABLE_VALGRIND_CHECKING.
16429 2016-01-27 Richard Henderson <rth@redhat.com>
16432 * lra-remat.c (subreg_regs): New.
16433 (dump_candidates_and_remat_bb_data): Dump it.
16434 (operand_to_remat): Reject if operand in subreg_regs.
16435 (set_bb_regs): Collect subreg_regs.
16436 (lra_remat): Init and free subreg_regs. Compute
16437 calculate_local_reg_remat_bb_data before create_cands.
16439 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
16442 * config/i386/i386.c (ix86_update_stack_boundary): Don't
16443 change stack_alignment_needed for __tls_get_addr call.
16445 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
16447 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16449 2016-01-27 Jeff Law <law@redhat.com>
16451 PR tree-optimization/68398
16452 PR tree-optimization/69196
16453 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16454 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16455 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16456 Only count PHIs in the last block in the path. The others will
16457 const/copy propagate away. Add heuristic to allow more irreducible
16458 subloops to be created when it is likely profitable to do so.
16460 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16461 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
16462 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
16464 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16467 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16468 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16469 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16470 * tree-streamer-in.c: Include asan.h.
16471 (streamer_get_builtin_tree): For builtins in sanitizer
16472 range call initialize_sanitizer_builtins and retry.
16474 2016-01-27 Ian Lance Taylor <iant@google.com>
16476 * common.opt (fkeep-gc-roots-live): New undocumented option.
16477 * tree-ssa-loop-ivopts.c (add_candidate_1): If
16478 -fkeep-gc-roots-live, skip pointers.
16479 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16482 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
16485 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16486 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16488 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
16491 * configure.ac: NetBSD provides SSP in its C library.
16492 * configure: Updated.
16494 2016-01-27 Richard Biener <rguenther@suse.de>
16496 PR tree-optimization/69166
16497 * tree-vect-loop.c (vect_is_simple_reduction): Always check
16498 reduction code for commutativity / associativity.
16500 2016-01-27 Martin Jambor <mjambor@suse.cz>
16502 PR tree-optimization/69355
16503 * tree-sra.c (analyze_access_subtree): Correct hole detection when
16504 total_scalarization fails.
16506 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
16508 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16511 2016-01-27 Christian Bruel <christian.bruel@st.com>
16514 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16515 Move arm_reset_previous_fndecl and set_target_option_current_node in
16516 the conditional part. Call save_restore_target_globals.
16517 * config/arm/arm.c (arm_set_current_function):
16518 Refactor to better support #pragma target and attribute mix.
16519 Call save_restore_target_globals.
16520 * config/arm/arm-protos.h (save_restore_target_globals): New function.
16522 2016-01-27 Martin Liska <mliska@suse.cz>
16524 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16525 reference for an HSA kernel and its host function.
16527 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16529 PR tree-optimization/69399
16530 * wide-int.h (wi::lrshift): For larger precisions, only
16531 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16533 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16535 * config/arc/predicates.md (proper_comparison_operator): Reject
16536 constant-constant comparison.
16538 2016-01-26 Tom de Vries <tom@codesourcery.com>
16540 PR tree-optimization/69110
16541 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16542 DR_NUM_DIMENSIONS == 0.
16544 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16545 Sebastian Pop <s.pop@samsung.com>
16547 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16548 isl_ast_op_cond and isl_ast_op_select.
16549 (gcc_expression_from_isl_expr_op): Same.
16551 2016-01-26 Jason Merrill <jason@redhat.com>
16554 * tree.c (recompute_constructor_flags): Split out from
16556 (verify_constructor_flags): New.
16557 * tree.h: Declare them.
16559 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16561 PR rtl-optimization/69217
16562 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16563 are no TYPE_FIELDS set for the record type.
16565 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16568 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16569 toc_label_name unconditionally.
16570 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16571 SYMBOL_REF string. Use toc_label_name instead of constructing
16573 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16574 constructing LCTOC1.
16576 2016-01-26 Martin Sebor <msebor@redhat.com>
16579 * doc/extend.texi (Common Type Attributes): Move text that talks about
16580 attribute packed from attribute aligned to the section discussing
16581 the former attribute for clarity.
16583 2016-01-26 Richard Henderson <rth@redhat.com>
16585 PR middle-end/60908
16586 * trans-mem.c (tm_region_init): Mark entry block as visited.
16588 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16591 * diagnostic-show-locus.c (layout::print_source_line): Replace
16592 call to pp_newline with call to layout::print_newline.
16593 (layout::print_annotation_line): Likewise.
16594 (layout::move_to_column): Likewise.
16595 (layout::print_any_fixits): After printing any fixits, print a
16596 trailing newline, if necessary.
16597 (layout::print_newline): New method, resetting any colorization
16599 (diagnostic_show_locus): Move the pp_newline to before the
16600 early bailout. Remove dummy block enclosing the layout instance.
16601 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16602 of pp_newline_and_flush with pp_flush.
16603 (diagnostic_append_note): Delete use of pp_newline.
16604 (diagnostic_append_note_at_rich_loc): Delete.
16605 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16606 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16607 when newline characters are added to the buffer.
16609 2016-01-26 Michael Matz <matz@suse.de>
16611 * configure.ac (ac_cv_std_swap_in_utility): New test.
16612 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16613 * configure: Regenerate.
16614 * config.in: Regenerate.
16616 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16618 * config/arc/arc.md (cstoresi4): Force operand into register.
16619 (arcset<code>): Fix predicate.
16620 (arcsetltu): Likewise.
16621 (arcsetgeu): Likewise.
16622 (arcsethi): Likewise.
16623 (arcsetls): Likewise.
16625 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16627 PR tree-optimization/69483
16628 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16629 if base has error_mark_node type.
16631 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16634 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16635 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16637 (vget_lane_f16): Handle big-endian.
16638 (vgetq_lane_f16): Likewise.
16639 (vset_lane_f16): Likewise.
16640 (vsetq_lane_f16): Likewise.
16641 * config/arm/iterators.md (VQXMOV): Add V8HF.
16642 (VDQ): Add V4HF and V8HF.
16643 (V_reg): Handle V4HF and V8HF.
16644 (Is_float_mode): Likewise.
16645 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16646 neon_vdup_nv8hf): New patterns.
16647 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16648 Use VD_LANE iterator.
16649 (neon_vld1_dup<mode>): Use VQ2 iterator.
16651 2016-01-26 Nathan Sidwell <nathan@acm.org>
16653 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16654 (set_oacc_fn_attrib): Add IS_KERNEL arg.
16655 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16656 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16657 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16658 (oacc_validate_dims): Add LEVEL arg, don't return level.
16659 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16660 oacc_validate_dims.
16661 (execute_oacc_device_lower): Adjust, add more dump output.
16662 * tree-ssa-loop.c (gate_oacc_kernels): Use
16663 oacc_fn_attrib_kernels_p.
16664 * tree-parloops.c (create_parallel_loop): Adjust
16665 set_oacc_fn_attrib call.
16667 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16670 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16671 (append_compiler_options): Handle -fcilkplus.
16672 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16674 2016-01-26 Nick Clifton <nickc@redhat.com>
16677 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16678 been marked as DECL_ONE_ONLY but we do not the means to make it
16679 so, then do not allow it to bind locally.
16681 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16684 * opts.h (parse_sanitizer_options): New prototype.
16685 * opts.c (sanitizer_opts): New array.
16686 (parse_sanitizer_options): New function.
16687 (common_handle_option): Use parse_sanitizer_options.
16689 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
16692 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16693 alignment adjustment to ...
16694 (ix86_update_stack_boundary): Here. Don't over-align stack for
16696 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16697 if __tls_get_addr is called.
16699 2016-01-26 Christian Bruel <christian.bruel@st.com>
16701 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16703 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
16705 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16707 2016-01-26 Richard Biener <rguenther@suse.de>
16709 PR middle-end/69467
16710 * match.pd: Guard X * CST CMP 0 pattern with single_use.
16712 2016-01-26 Richard Biener <rguenther@suse.de>
16714 PR tree-optimization/69452
16715 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16716 (move_computations_dom_walker::before_dom_children): Rename
16718 (move_computations_worker): This.
16719 (move_computations): Perform an RPO rather than a DOM walk.
16721 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16724 * combine.c (combine_instructions): For REG_EQUAL note with
16725 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16726 to the underlying register.
16727 * doc/rtl.texi (REG_EQUAL): Document the behavior of
16728 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16730 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
16733 * config/aarch64/aarch64-builtins.c
16734 (aarch64_init_simd_builtin_types): Do not set structural
16735 equality to __Poly{8,16,64,128}_t types.
16737 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
16739 PR tree-optimization/69400
16740 * wide-int.cc (wi_pack): Take the precision as argument and
16741 perform canonicalization here rather than in the callers.
16742 Use the main loop to handle all full-width HWIs. Add a
16743 zero HWI if in_len isn't a full result.
16744 (wi::divmod_internal): Update accordingly.
16745 (wi::mul_internal): Likewise. Simplify.
16747 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16748 Sebastian Pop <s.pop@samsung.com>
16750 * graphite-poly.c (apply_poly_transforms): Simplify.
16751 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16752 (print_isl_map): Same.
16753 (print_isl_union_map): Same.
16754 (print_isl_schedule): New.
16755 (debug_isl_schedule): New.
16756 * graphite-dependences.c (scop_get_reads): Do not call
16757 isl_union_map_add_map that is undocumented isl functionality.
16758 (scop_get_must_writes): Same.
16759 (scop_get_may_writes): Same.
16760 (scop_get_original_schedule): Remove.
16761 (scop_get_dependences): Do not call isl_union_map_compute_flow that
16762 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
16763 (compute_deps): Remove.
16764 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16765 (debug_schedule_ast): New.
16766 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16767 set_separate_option.
16768 (graphite_regenerate_ast_isl): Add dump.
16769 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16770 from scop->transformed_schedule.
16771 (graphite_regenerate_ast_isl): Add more dump.
16772 * graphite-optimize-isl.c (optimize_isl): Set
16773 scop->transformed_schedule. Check whether schedules are equal.
16774 (apply_poly_transforms): Move here.
16775 * graphite-poly.c (apply_poly_transforms): ... from here.
16776 (free_poly_bb): Static.
16777 (free_scop): Static.
16778 (pbb_number_of_iterations_at_time): Remove.
16779 (print_isl_ast): New.
16780 (debug_isl_ast): New.
16781 (debug_scop_pbb): New.
16782 * graphite-scop-detection.c (print_edge): Move.
16783 (print_sese): Move.
16784 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16785 (build_scop_scattering): Remove.
16786 (create_pw_aff_from_tree): Assert instead of bailing out.
16787 (add_condition_to_pbb): Remove unused code, do not fail.
16788 (add_conditions_to_domain): Same.
16789 (add_conditions_to_constraints): Remove.
16790 (build_scop_context): New.
16791 (add_iter_domain_dimension): New.
16792 (build_iteration_domains): Initialize pbb->iterators.
16793 Call add_conditions_to_domain.
16796 (index_outermost_in_loop): New.
16797 (index_pbb_in_loop): New.
16798 (outermost_pbb_in): New.
16799 (add_in_sequence): New.
16800 (add_outer_projection): New.
16801 (outer_projection_mupa): New.
16802 (add_loop_schedule): New.
16803 (build_schedule_pbb): New.
16804 (build_schedule_loop): New.
16805 (embed_in_surrounding_loops): New.
16806 (build_schedule_loop_nest): New.
16807 (build_original_schedule): New.
16808 (build_poly_scop): Call build_original_schedule.
16809 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16810 (free_poly_dr): Remove.
16811 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
16812 (free_poly_bb): Remove.
16813 (debug_loop_vec): Remove.
16814 (print_isl_ast): Declare.
16815 (debug_isl_ast): Declare.
16816 (scop_do_interchange): Remove.
16817 (scop_do_strip_mine): Remove.
16818 (scop_do_block): Remove.
16819 (flatten_all_loops): Remove.
16820 (optimize_isl): Remove.
16821 (pbb_number_of_iterations_at_time): Remove.
16822 (debug_scop_pbb): Declare.
16823 (print_schedule_ast): Declare.
16824 (debug_schedule_ast): Declare.
16825 (struct scop): Remove schedule. Add original_schedule,
16826 transformed_schedule.
16827 (free_gimple_poly_bb): Remove.
16828 (print_generated_program): Remove.
16829 (debug_generated_program): Remove.
16830 (unify_scattering_dimensions): Remove.
16831 * sese.c (print_edge): ... here.
16832 (print_sese): ... here.
16833 (debug_edge): ... here.
16834 (debug_sese): ... here.
16835 * sese.h (print_edge): Declare.
16836 (print_sese): Declare.
16837 (dump_edge): Declare.
16838 (dump_sese): Declare.
16840 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16841 Sebastian Pop <s.pop@samsung.com>
16843 * Makefile.in: Set ISLVER in site.exp.
16845 2016-01-25 Jakub Jelinek <jakub@redhat.com>
16847 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16848 DECL_VALUE_EXPR of new_var even for the non-array case. Look
16849 through DECL_VALUE_EXPR for expansion.
16851 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16853 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16854 the frame info after reload completed.
16856 2016-01-25 Jeff Law <law@redhat.com>
16858 PR tree-optimization/69196
16859 PR tree-optimization/68398
16860 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16861 tree-ssa-threadupdate.c.
16862 (determine_bb_domination_status): Prototype
16863 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16864 (determine_bb_domination_status): No longer static.
16865 (valid_jump_thread_path): Remove code to detect characteristics
16866 of the jump thread path not associated with correctness.
16867 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16868 Correct test for thread path length. Count PHIs for real operands as
16869 statements that need to be copied. Do not count ASSERT_EXPRs.
16870 Look at all the blocks in the thread path. Compute and selectively
16871 filter thread paths based on threading through the latch, threading
16872 a multiway branch or crossing a multiway branch.
16874 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16876 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
16877 decl with __attribute__ ((unused)) annotation.
16879 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
16882 * tree-vect-stmts.c (vectorizable_condition): Check vectype
16883 of operands is compatible with a statement vectype.
16885 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
16887 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16888 improve wording for mixed storage order support.
16890 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
16892 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16893 (vcvt_u64_f64): Likewise.
16894 (vcvta_s64_f64): Likewise.
16895 (vcvta_u64_f64): Likewise.
16896 (vcvtm_s64_f64): Likewise.
16897 (vcvtm_u64_f64): Likewise.
16898 (vcvtn_s64_f64): Likewise.
16899 (vcvtn_u64_f64): Likewise.
16900 (vcvtp_s64_f64): Likewise.
16901 (vcvtp_u64_f64): Likewise.
16903 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
16905 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16906 (arc_init): Check validity mll64 option.
16907 (arc_save_restore): Use double load/store instruction.
16908 (arc_expand_movmem): Likewise.
16909 (arc_split_move): Don't split if we have double load/store
16910 instructions. Returns a boolean.
16911 (arc_process_double_reg_moves): Change function to return boolean
16912 instead of a sequence of instructions.
16913 (arc_dwarf_register_span): New function.
16914 * config/arc/arc-protos.h (arc_split_move): Change prototype.
16915 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16916 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16917 (*movdf_insn): Likewise.
16918 * config/arc/arc.opt (mll64): New option.
16919 * config/arc/predicates.md (even_register_operand): New predicate.
16920 * doc/invoke.texi (ARC Options): Add mll64 documentation.
16922 2016-01-25 Richard Biener <rguenther@suse.de>
16925 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16926 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16928 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16930 2016-01-25 Richard Biener <rguenther@suse.de>
16932 PR tree-optimization/69376
16933 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16935 (VN_INFO_ANTI_RANGE_P): New inline.
16936 (VN_INFO_RANGE_TYPE): Likewise.
16937 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16938 SSA_NAME_ANTI_RANGE_P.
16939 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16940 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16941 Properly query VN_INFO_RANGE_TYPE.
16943 2016-01-25 Nick Clifton <nickc@redhat.com>
16946 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16948 2016-01-23 Tom de Vries <tom@codesourcery.com>
16950 PR tree-optimization/69426
16951 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16954 2016-01-23 Jakub Jelinek <jakub@redhat.com>
16956 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16957 "the the" with "the" in the comments.
16958 * ipa-devirt.c (build_type_inheritance_graph,
16959 update_type_inheritance_graph): Likewise.
16960 * tree.c (build_function_type_list_1): Likewise.
16961 * cfgloopmanip.c (scale_loop_profile): Likewise.
16962 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16963 * gimple-ssa-split-paths.c
16964 (find_block_to_duplicate_for_splitting_paths): Likewise.
16965 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16966 * expr.c (convert_move): Likewise.
16967 * var-tracking.c (vt_stack_adjustments): Likewise.
16968 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16969 * tree-vrp.c (test_for_singularity): Likewise.
16971 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16972 directly instead of building a temporary tree.
16975 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16976 remove <algorithm> include.
16978 2016-01-22 Jakub Jelinek <jakub@redhat.com>
16981 * config/i386/i386.c: Include dojump.h.
16982 (expand_small_movmem_or_setmem,
16983 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16985 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16986 if dynamic_check != -1.
16988 2016-01-21 Jeff Law <law@redhat.com>
16990 PR middle-end/69347
16991 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
16992 record_temporary_equivalences. Rewritten to avoid unnecessary calls
16993 into dominated_by_p.
16994 (cprop_into_successor_phis): Avoid unnecessary tests.
16996 2016-01-22 Richard Henderson <rth@redhat.com>
16999 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17000 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17002 2016-01-22 Michael Matz <matz@suse.de>
17004 * system.h (string, algorithm): Include only conditionally.
17005 (new): Include always under C++.
17006 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17007 * final.c (toplevel): Ditto.
17008 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17009 * genconditions.c (write_header): Make gencondmd.c define
17011 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17013 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17014 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17016 2016-01-22 Christian Bruel <christian.bruel@st.com>
17019 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17021 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17024 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17025 define_insn_and_split. Ensure operands[1] and operands[0] do not
17026 get assigned the same register.
17028 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17030 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17032 2016-01-22 Christian Bruel <christian.bruel@st.com>
17034 * config/arm/arm-c.c (arm_pragma_target_parse):
17035 Remove warn_builtin_macro_redefined overwrite.
17037 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17039 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17040 flag_non_call_exceptions compatibility.
17042 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17045 * dwarf2out.c (add_child_die_after): New function.
17046 (dwarf_qual_info_t): New type.
17047 (dwarf_qual_info): New variable.
17048 (qualified_die_p): New function.
17049 (modified_type_die): For -fdebug-types-section, ensure
17050 canonical order of qualifiers. Put qualified DIEs adjacent
17051 to the corresponding non-qualified type DIE and search there
17052 for existing qualified DIEs.
17054 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17056 * doc/extend.texi (scalar_storage_order type attribute): Document
17057 restriction on type punning and aliasing, and remove future tense.
17059 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17062 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17065 2016-01-21 Jeff Law <law@redhat.com>
17067 PR middle-end/69347
17068 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17069 useless call to record_temporary_equivalences.
17070 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17071 allocate 10 slots in the bb_path vector and let it grow as needed.
17072 (fsm_find_control_statement_thread_paths): Similarly for the next_path
17075 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17077 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17079 * configure: Regenerate.
17081 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17083 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17084 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17086 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17088 PR middle-end/66178
17089 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17090 drop EXPAND_INITIALIZER.
17091 * rtl.h (contains_symbolic_reference_p): Declare.
17092 * rtlanal.c (contains_symbolic_reference_p): New function.
17093 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17094 a subtraction into a NOT if symbolic constants are involved.
17096 2016-01-21 Anton Blanchard <anton@samba.org>
17097 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17100 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17102 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17105 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17107 * config/microblaze/microblaze.c
17108 (get_branch_target): New.
17109 (insert_wic_for_ilb_runout): New.
17111 (microblaze_machine_dependent_reorg): New.
17112 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17113 * config/microblaze/microblaze.md
17114 (UNSPEC_IPREFETCH): Define.
17115 (iprefetch): New pattern
17116 * config/microblaze/microblaze.opt
17117 (mxl-prefetch): New flag.
17119 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17121 * config/microblaze/microblaze.h
17122 (FIXED_REGISTERS): Update in macro.
17123 (CALL_USED_REGISTERS): Update in macro.
17125 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17127 PR rtl-optimization/68920
17128 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17131 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17133 PR rtl-optimization/68990
17134 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17135 pseudo instead of inheritance ones.
17137 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17138 Nick Clifton <nickc@redhat.com>
17142 * config/mips/mips.c (mips_compute_frame_info): Initialise
17143 args_size and hard_frame_pointer_offset fields of the frame
17144 structure before calling mips_global_pointer.
17146 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17148 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17150 * configure: Regenerate.
17152 2016-01-21 Richard Biener <rguenther@suse.de>
17154 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17156 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17158 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17159 to actually emit the .size directive.
17161 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17162 Jakub Jelinek <jakub@redhat.com>
17166 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17167 args array size by one to avoid buffer overflow.
17169 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17171 * config/s390/s390.md (pool_section_start): Use switch_to_section
17172 to select proper read-only data section instead of hardcoding
17174 (pool_section_end): Use switch_to_section to match the above.
17176 2016-01-21 Richard Biener <rguenther@suse.de>
17178 PR tree-optimization/69378
17179 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17180 (set_ssa_val_to): Use it for dominance checks taking into
17181 account not executable edges.
17183 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17186 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17187 for bitsize instead of GET_MODE_PRECISION (mode).
17189 2016-01-20 Martin Sebor <msebor@redhat.com>
17192 * extend.texi (__sync Builtins): Clarify the semantics of
17193 __sync_fetch_and_OP built-ins on pointers.
17194 (__atomic Builtins): Same.
17196 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17197 Sebastian Pop <s.pop@samsung.com>
17199 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17200 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17201 (is_valid_rename): Same.
17202 (translate_isl_ast_to_gimple::get_rename): Same.
17203 (translate_isl_ast_to_gimple::rename_all_uses): Same.
17204 (translate_isl_ast_to_gimple::rename_uses): Same.
17205 (get_new_name): Check for close_phi nodes.
17206 (copy_loop_phi_args): Use phi_node_kind.
17207 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17208 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17210 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17211 Sebastian Pop <s.pop@samsung.com>
17213 Revert commit r229783.
17214 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17215 Remove use of parameter_rename_map.
17216 (copy_def): Remove.
17217 (copy_internal_parameters): Remove.
17218 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17219 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17220 (free_sese_info): Do not free parameter_rename_map.
17221 (set_rename): Do not use parameter_rename_map.
17222 (rename_uses): Update call to set_rename.
17223 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17224 * sese.h (parameter_rename_map_t): Remove.
17225 (struct sese_info_t): Remove field parameter_rename_map.
17227 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17228 Sebastian Pop <s.pop@samsung.com>
17230 * graphite-isl-ast-to-gimple.c: Fix comment.
17231 * graphite-scop-detection.c (defined_in_loop_p): New.
17232 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17233 names defined in loop.
17235 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17236 Sebastian Pop <s.pop@samsung.com>
17238 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17239 Discard unstructured if-then-else regions.
17241 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17242 Sebastian Pop <s.pop@samsung.com>
17244 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17245 (cleanup_loop_iter_dom): Remove.
17246 (build_loop_iteration_domains): Remove.
17247 (build_scop_context): Remove.
17248 (build_scop_iteration_domain): Remove.
17249 (add_loop_constraints): New.
17250 (build_iteration_domains): New.
17251 (build_poly_scop): Call build_iteration_domains.
17253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17254 Sebastian Pop <s.pop@samsung.com>
17256 * graphite-scop-detection.c
17257 (scop_detection::harmful_loop_in_region): Free dom and loops.
17258 (scop_detection::loop_body_is_valid_scop): Free bbs.
17260 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17261 Sebastian Pop <s.pop@samsung.com>
17263 * graphite-scop-detection.c (record_loop_in_sese): New.
17264 (gather_bbs::before_dom_children): Call record_loop_in_sese.
17265 (build_scops): Remove call to build_sese_loop_nests.
17266 * sese.c (sese_record_loop): Remove.
17267 (build_sese_loop_nests): Remove.
17268 (new_sese_info): Remove region->loops.
17269 (free_sese_info): Same.
17270 * sese.h (sese_contains_loop): Same.
17271 (build_sese_loop_nests): Remove.
17272 (sese_contains_loop): Remove.
17274 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17275 Sebastian Pop <s.pop@samsung.com>
17277 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17278 loop_is_valid_in_scop.
17279 (scop_detection::harmful_stmt_in_region): Renamed
17280 harmful_loop_in_region.
17281 Call loop_is_valid_in_scop.
17283 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17284 Sebastian Pop <s.pop@samsung.com>
17286 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17289 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17290 Sebastian Pop <s.pop@samsung.com>
17292 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17293 * graphite.h (struct poly_bb): Remove field is_reduction.
17294 (PBB_IS_REDUCTION): Remove.
17296 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17297 Sebastian Pop <s.pop@samsung.com>
17299 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17300 (add_pdr_constraints): Same.
17301 (scop_get_reads): Same.
17302 (scop_get_must_writes): Same.
17303 (scop_get_may_writes): Same.
17304 (scop_get_original_schedule): Same.
17305 (extend_schedule): Same.
17306 (apply_schedule_on_deps): Same.
17307 (carries_deps): Same.
17308 (compute_deps): Same.
17309 (scop_get_dependences): Same.
17310 * graphite-isl-ast-to-gimple.c
17311 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17312 * graphite-optimize-isl.c (get_schedule_for_band): Same.
17313 (get_schedule_for_band_list): Same.
17314 (get_schedule_map): Same.
17315 (apply_schedule_map_to_scop): Same.
17316 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17317 (build_loop_iteration_domains): Same.
17318 (add_condition_to_pbb): Same.
17319 (add_param_constraints): Same.
17320 (pdr_add_memory_accesses): Same.
17321 (pdr_add_data_dimensions): Same.
17323 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17325 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17328 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17330 * common.opt (feliminate-dwarf2-dups): Replace references to
17331 "DWARF 2" with just "DWARF".
17332 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17333 * doc/extend.texi: Likewise.
17334 * doc/cpp.texi: Likewise.
17335 * doc/invoke.texi: Likewise.
17336 (Option Summary): Add -gdwarf to list of Debugging Options.
17337 (Debugging Options): Document -gdwarf.
17338 * doc/contrib.texi: Spell "DWARF" like that.
17340 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17342 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17343 warning. Fix up formatting.
17345 PR middle-end/67653
17346 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17347 attempt to mark memory input operand addressable and
17348 call prepare_gimple_addressable in that case. Don't adjust
17349 input_location for diagnostics, use error_at instead.
17351 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17353 * config/rs6000/ppc-auxv.h: New file.
17354 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17355 (cpu_is): Likewise.
17356 (cpu_supports): Likewise.
17357 * config/rs6000/rs6000.c: include "ppc-auxv.h".
17358 (cpu_is_info): New variable.
17359 (cpu_supports_info): Likewise.
17360 (tcb_verification_symbol): Likewise.
17361 (cpu_builtin_p): Likewise.
17362 (cpu_expand_builtin): New function.
17363 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17364 (rs6000_init_builtins): Likewise.
17365 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17366 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17367 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17368 * configure: Regenerate.
17369 * config.in: Likewise.
17370 * doc/extend.texi (PowerPC Built-in Functions): Document
17371 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17373 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
17376 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17378 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17381 2016-01-20 Richard Henderson <rth@redhat.com>
17387 * tree.c (tm_define_builtin): New.
17388 (find_tm_vector_type): New.
17389 (build_tm_vector_builtins): New.
17390 (build_common_builtin_nodes): Call it.
17392 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
17394 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17395 (arm_fp_ok): Likewise.
17396 (arm_fp): Likewise.
17397 (arm_crypto): Likewise.
17399 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17400 Richard Biener <rguenther@suse.de>
17402 PR tree-optimization/69328
17403 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17404 vectors have same number of elements.
17405 (vectorizable_condition): Fix masked version recognition.
17407 2016-01-20 Richard Biener <rguenther@suse.de>
17409 PR tree-optimization/69345
17410 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17411 (VN_INFO_PTR_INFO): Likewise.
17412 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17413 info when it is equal between non-dominating SSA names.
17414 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17415 Make sure to look at original SSA infos.
17417 2016-01-20 Jeff Law <law@redhat.com>
17420 * config/m68k/predicates.md (pow2_m1_operand): New predicate
17422 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17423 (pc_or_label_operand): New predicate.
17424 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17425 tests for small integers that are 2^n - 1.
17427 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
17429 * doc/invoke.texi (Options Summary): Add '.' after @xref.
17431 2016-01-19 Jeff Law <law@redhat.com>
17433 PR middle-end/69347
17434 * tree-ssa-threadbackwards.c
17435 (fsm_find_control_statement_thread_paths): Do not try to lookup
17436 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17438 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17440 * doc/lto.texi: Remove text that says only Gold has linker plugin
17443 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
17445 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17446 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17447 the DIE accordingly.
17448 (modified_type_die): Add REVERSE parameter and pass it recursively,
17449 as well as to base_type_die. Adjust presence check accordingly.
17450 (base_type_for_mode): Adjust call to modified_type_die.
17451 (add_type_attribute): Add REVERSE parameter and pass it to
17453 (generic_parameter_die): Adjust call to add_type_attribute.
17454 (add_scalar_info): Likewise.
17455 (add_subscript_info): Likewise.
17456 (gen_array_type_die): Likewise.
17457 (gen_descr_array_type_die): Likewise.
17458 (gen_entry_point_die): Likewise.
17459 (gen_enumeration_type_die): Likewise.
17460 (gen_formal_parameter_die): Likewise.
17461 (gen_subprogram_die): Likewise.
17462 (gen_variable_die ): Likewise.
17463 (gen_const_die): Likewise.
17464 (gen_field_die): Likewise.
17465 (gen_pointer_type_die): Likewise.
17466 (gen_reference_type_die): Likewise.
17467 (gen_ptr_to_mbr_type_die): Likewise.
17468 (gen_inheritance_die): Likewise.
17469 (gen_subroutine_type_die): Likewise.
17470 (gen_typedef_die): Likewise.
17471 (force_type_die): Adjust call to modified_type_die.
17473 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
17475 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17476 flow throughout the file. Fix broken link to Objective-C 2.0
17478 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17481 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17483 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17485 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17488 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17489 (maybe_record_node): Record cxa_pure_virtual as the only possible
17490 target if there are not ohter candidates.
17491 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17493 2016-01-19 Richard Biener <rguenther@suse.de>
17495 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17496 (get_memory_order): Likewise.
17498 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
17500 * tree-vect-stmts.c (vectorizable_store): Check
17503 2016-01-19 David Malcolm <dmalcolm@redhat.com>
17506 * gcc.c (driver::decode_argv): Add call to
17507 init_opts_obstack before init_options_struct.
17508 * opts.c (init_opts_obstack): Remove idempotency.
17509 (init_options_struct): Replace call to init_opts_obstack
17510 with a gcc_assert to verify that it has already been called.
17511 * toplev.c (toplev::main): Add call to init_opts_obstack before
17512 calls to init_options_struct.
17513 (toplev::finalize): Move cleanup of opts_obstack next to
17514 cleanup of save_decoded_options, clearing the latter, and
17515 save_decoded_options_count.
17517 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17521 attribute to unconditional. Remove %? from output template.
17523 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17524 Jiong Wang <jiong.wang@arm.com>
17526 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17527 generated from different expand order.
17529 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17531 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17532 Add support for CCMP costing.
17534 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17536 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17537 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17538 (fccmpe<mode>): Likewise.
17539 (fcmp): Rename to fcmp and globalize pattern.
17541 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17542 (aarch64_gen_ccmp_next): Add FP support.
17544 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17546 * target.def (gen_ccmp_first): Update documentation.
17547 (gen_ccmp_next): Likewise.
17548 * doc/tm.texi (gen_ccmp_first): Update documentation.
17549 (gen_ccmp_next): Likewise.
17550 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17551 expand_ccmp_expr_1. Improve comments.
17552 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17553 (ccmp_ior<mode>): Remove pattern.
17554 (cmp<mode>): Remove expand.
17555 (cmp): Globalize pattern.
17556 (cstorecc4): Use cc_register.
17557 (mov<mode>cc): Remove ccmp_cc_register check.
17558 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17559 Simplify after removal of CC_DNE/* modes.
17560 (aarch64_ccmp_mode_to_code): Remove.
17561 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
17562 In 'k' case use integer as condition.
17563 (aarch64_nzcv_codes): Remove inverted cases.
17564 (aarch64_code_to_ccmode): Remove.
17565 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
17566 comparison with CC register to be used in folowing CCMP/branch/CSEL.
17567 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17568 pattern. Return the comparison with CC register. Invert conditions
17569 when bitcode is OR.
17570 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17571 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17573 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17575 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17576 instrumented_version.
17578 2016-01-19 Richard Biener <rguenther@suse.de>
17580 PR tree-optimization/69336
17581 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17582 handled components with get_ref_base_and_extent.
17583 (equal_mem_array_ref_p): Adjust.
17585 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17588 * shrink-wrap.c: Include valtrack.h.
17589 (move_insn_for_shrink_wrap): Add DEBUG argument. If
17590 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17591 in between insn and where it will be moved to. Call
17592 dead_debug_insert_temp.
17593 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
17594 first and dead_debug_local_finish at the end.
17595 For uses and defs bitmap, handle all regs in between REGNO and
17596 END_REGNO, not just the first one.
17598 2016-01-19 Richard Biener <rguenther@suse.de>
17600 PR tree-optimization/69352
17601 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17602 (equal_mem_array_ref_p): Constrain size and max size properly.
17603 Compare the reverse flag.
17605 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17607 * ira.c (ira): Update regstat data if we deleted insns.
17609 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17611 PR rtl-optimization/68955
17612 PR rtl-optimization/64557
17613 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17614 here. Fix up formatting.
17615 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17617 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17620 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17621 assume that the node has body.
17622 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17625 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17627 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17630 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17632 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17633 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17635 2016-01-19 Martin Jambor <mjambor@suse.cz>
17636 Martin Liska <mliska@suse.cz>
17637 Michael Matz <matz@suse.de>
17639 * Makefile.in (OBJS): Add new source files.
17640 (GTFILES): Add hsa.c.
17641 * common.opt (disable_hsa): New variable.
17642 (-Whsa): New warning.
17643 * config.in (ENABLE_HSA): New.
17644 * configure.ac: Treat hsa differently from other accelerators.
17645 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17646 $enable_offloading.
17647 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17648 * doc/install.texi (Configuration): Document --with-hsa-runtime,
17649 --with-hsa-runtime-include, --with-hsa-runtime-lib and
17650 --with-hsa-kmt-lib.
17651 * doc/invoke.texi (-Whsa): Document.
17652 (hsa-gen-debug-stores): Likewise.
17653 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17654 to invoke offload compiler for hsa acclerator.
17655 * opts.c (common_handle_option): Determine whether HSA offloading
17656 should be performed.
17657 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17658 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17659 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17660 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17661 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17662 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17663 GF_OMP_FOR_KIND_GRID_LOOP.
17664 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17665 (pp_gimple_stmt_1): Likewise.
17666 * gimple-walk.c (walk_gimple_stmt): Likewise.
17667 * gimple.c (gimple_build_omp_grid_body): New function.
17668 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17669 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17670 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17671 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17672 GF_OMP_TEAMS_GRID_PHONY.
17673 (gimple_statement_omp_single_layout): Updated comments.
17674 (gimple_build_omp_grid_body): New function.
17675 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17676 (gimple_omp_for_grid_phony): New function.
17677 (gimple_omp_for_set_grid_phony): Likewise.
17678 (gimple_omp_parallel_grid_phony): Likewise.
17679 (gimple_omp_parallel_set_grid_phony): Likewise.
17680 (gimple_omp_teams_grid_phony): Likewise.
17681 (gimple_omp_teams_set_grid_phony): Likewise.
17682 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17683 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17684 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17685 (BUILT_IN_GOMP_TARGET): Updated type.
17686 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17687 (adjust_for_condition): New function.
17688 (get_omp_for_step_from_incr): Likewise.
17689 (extract_omp_for_data): Moved parts to adjust_for_condition and
17690 get_omp_for_step_from_incr.
17691 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17692 (fixup_child_record_type): Bail out if receiver_decl is NULL.
17693 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17694 (scan_omp_parallel): Do not create child functions for phony
17696 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17697 (scan_omp_1_op): Checking assert we are not remapping to
17698 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
17699 (parallel_needs_hsa_kernel_p): New function.
17700 (expand_parallel_call): Register apprpriate parallel child
17701 functions as HSA kernels.
17702 (grid_launch_attributes_trees): New type.
17703 (grid_attr_trees): New variable.
17704 (grid_create_kernel_launch_attr_types): New function.
17705 (grid_insert_store_range_dim): Likewise.
17706 (grid_get_kernel_launch_attributes): Likewise.
17707 (get_target_argument_identifier_1): Likewise.
17708 (get_target_argument_identifier): Likewise.
17709 (get_target_argument_value): Likewise.
17710 (push_target_argument_according_to_value): Likewise.
17711 (get_target_arguments): Likewise.
17712 (expand_omp_target): Call get_target_arguments instead of looking
17713 up for teams and thread limit.
17714 (grid_expand_omp_for_loop): New function.
17715 (grid_arg_decl_map): New type.
17716 (grid_remap_kernel_arg_accesses): New function.
17717 (grid_expand_target_kernel_body): New function.
17718 (expand_omp): Call it.
17719 (lower_omp_for): Do not emit phony constructs.
17720 (lower_omp_taskreg): Do not emit phony constructs but create for them
17721 a temporary variable receiver_decl.
17722 (lower_omp_taskreg): Do not emit phony constructs.
17723 (lower_omp_teams): Likewise.
17724 (lower_omp_grid_body): New function.
17725 (lower_omp_1): Call it.
17726 (grid_reg_assignment_to_local_var_p): New function.
17727 (grid_seq_only_contains_local_assignments): Likewise.
17728 (grid_find_single_omp_among_assignments_1): Likewise.
17729 (grid_find_single_omp_among_assignments): Likewise.
17730 (grid_find_ungridifiable_statement): Likewise.
17731 (grid_target_follows_gridifiable_pattern): Likewise.
17732 (grid_remap_prebody_decls): Likewise.
17733 (grid_copy_leading_local_assignments): Likewise.
17734 (grid_process_kernel_body_copy): Likewise.
17735 (grid_attempt_target_gridification): Likewise.
17736 (grid_gridify_all_targets_stmt): Likewise.
17737 (grid_gridify_all_targets): Likewise.
17738 (execute_lower_omp): Call grid_gridify_all_targets.
17739 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17740 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17741 (tree_omp_clause): Added union field dimension.
17742 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17743 * tree.c (omp_clause_num_ops): Added number of arguments of
17744 OMP_CLAUSE__GRIDDIM_.
17745 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17746 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17747 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17748 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17749 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17750 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17751 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17752 * tree-pass.h (make_pass_gen_hsail): Declare.
17753 (make_pass_ipa_hsa): Likewise.
17754 * ipa-hsa.c: New file.
17755 * lto-section-in.c (lto_section_name): Add hsa section name.
17756 * lto-streamer.h (lto_section_type): Add hsa section.
17757 * timevar.def (TV_IPA_HSA): New.
17758 * hsa-brig-format.h: New file.
17759 * hsa-brig.c: New file.
17760 * hsa-dump.c: Likewise.
17761 * hsa-gen.c: Likewise.
17764 * toplev.c (compile_file): Call hsa_output_brig.
17765 * hsa-regalloc.c: New file.
17767 2016-01-18 Jeff Law <law@redhat.com>
17769 PR tree-optimization/69320
17770 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17771 ranged object, do nothing if the RHS constant is not [0..1].
17772 (optimize_stmt): Comparing a boolean ranged object against a
17773 constant outside [0..1] results in a compile-time constant.
17775 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17778 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
17780 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17781 (Option Summary): Update to reflect new section and moved options.
17782 (C++ Dialect Options): Move -fstats to new section.
17783 (Debugging Options): Move all dump, statistics, and other GCC
17784 developer options to new section. Rewrite section introduction
17785 and re-order remaining options to put the more basic ones first.
17786 (Optimization Options): Move -fira-verbose and -flto-report* to
17788 (Developer Options): New section incorporating moved options.
17789 * doc/cppopts.texi (-dM): Update cross-reference.
17791 2016-01-18 Richard Henderson <rth@redhat.com>
17794 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17795 operands to pseudo only if CSE is expected. Split long immediate
17796 operands only after reload, and for the stack pointer.
17797 (*add<GPI>3_pluslong): Remove.
17798 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17799 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
17800 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17801 (*add<GPI>3 peepholes): New.
17802 (*add<GPI>3 splitters): New.
17803 * config/aarch64/constraints.md (Upl): New.
17804 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17806 2016-01-18 Richard Biener <rguenther@suse.de>
17808 PR tree-optimization/69297
17809 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17811 (vect_bb_vectorization_profitable_p): Clear visited flag again.
17813 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17815 PR middle-end/68542
17816 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17817 of mixind vector and scalar types.
17818 (fold_relational_const): Add handling of vector
17819 comparison with boolean result.
17820 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17821 comparison of vector operands with boolean result for EQ/NE only.
17822 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17823 (verify_gimple_cond): Likewise.
17824 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17827 2016-01-18 Joseph Myers <joseph@codesourcery.com>
17829 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17832 2016-01-18 Richard Biener <rguenther@suse.de>
17834 PR middle-end/69308
17835 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17837 2016-01-18 Tom de Vries <tom@codesourcery.com>
17839 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17841 2016-01-18 Tom de Vries <tom@codesourcery.com>
17843 * omp-low.c (set_oacc_fn_attrib): Make extern.
17844 * omp-low.h (set_oacc_fn_attrib): Declare.
17845 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17846 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17847 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17848 Add and handle function parameter oacc_kernels_p.
17849 (find_reduc_addr, get_omp_data_i_param): New function.
17850 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17851 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17852 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17853 Calculate dominance info. Skip loops that are not in a kernels region
17854 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
17855 (pass_parallelize_loops::execute): Call parallelize_loops with
17856 oacc_kernels_p argument.
17857 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17858 New member function.
17859 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17860 * passes.def: Add argument to pass_parallelize_loops instantation.
17862 2016-01-18 Tom de Vries <tom@codesourcery.com>
17864 * tree-parloops.c (pass_parallelize_loops::execute): Allow
17865 pass_parallelize_loops to be run outside the loop pipeline.
17867 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17869 * tree-scalar-evolution.c (follow_copies_to_constant): New.
17870 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17872 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17875 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17876 using get_ref_base_and_extent.
17877 (equal_mem_array_ref_p): New.
17878 (hashable_expr_equal_p): Add call to previous.
17880 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17883 * tree-sra.c (disqualified_constants, constant_decl_p): New.
17884 (sra_initialize): Allocate disqualified_constants.
17885 (sra_deinitialize): Free disqualified_constants.
17886 (disqualify_candidate): Update disqualified_constants when appropriate.
17887 (create_access): Scan for constant-pool entries as we go along.
17888 (scalarizable_type_p): Add check against type_contains_placeholder_p.
17889 (maybe_add_sra_candidate): Allow constant-pool entries.
17890 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17891 (initialize_constant_pool_replacements): New.
17892 (sra_modify_assign): Avoid mangling assignments created by previous,
17893 and don't generate writes into constant pool.
17894 (sra_modify_function_body): Call initialize_constant_pool_replacements.
17896 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17898 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17899 andnot instruction.
17900 (scalar_chain::convert_op): Likewise.
17901 * config/i386/i386.md (*andndi3_doubleword): New.
17903 2016-01-18 Richard Biener <rguenther@suse.de>
17905 PR tree-optimization/69170
17906 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17907 building a vector from scalar results of a pattern stmt.
17909 2016-01-18 Jakub Jelinek <jakub@redhat.com>
17911 * haifa-sched.c (autopref_multipass_init): Work around
17912 -Wmaybe-uninitialized warning.
17914 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17916 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17917 against the constant 0.
17919 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17921 PR tree-optimization/68799
17922 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17923 look up phi candidates in the statement-candidate map.
17924 (phi_add_costs): Likewise.
17925 (record_phi_increments): Likewise.
17926 (phi_incr_cost): Likewise.
17927 (ncd_with_phi): Likewise.
17928 (all_phi_incrs_profitable): Likewise.
17930 2016-01-17 Jakub Jelinek <jakub@redhat.com>
17932 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17933 -Wmaybe-uninitialized warning.
17935 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
17937 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17938 (Option Summary): Update to reflect new section and moved options.
17939 (C++ Dialect Options): Move -fvtable-verify and related options.
17940 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17941 and profiling-related options.
17942 (Optimization Options): Move profile generation options and
17943 -fstack-protector and related options.
17944 (Instrumentation Options): New section incorporating moved options.
17945 (Code Generation Options): Move -finstrument-functions and
17946 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17948 2016-01-16 Tom de Vries <tom@codesourcery.com>
17950 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17952 2016-01-16 Tom de Vries <tom@codesourcery.com>
17954 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
17956 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
17958 * hash-table.h (hash_table::empty): Turn into an inline wrapper
17959 that checks whether the table is already empty. Rename the
17960 original implementation to...
17961 (hash_table::empty_slot): ...this new private function.
17963 2016-01-15 David Malcolm <dmalcolm@redhat.com>
17965 PR diagnostic/68899
17966 * diagnostic-show-locus.c (layout::print_source_line): Move x
17967 offset of line until after call to
17968 get_line_width_without_trailing_whitespace.
17970 2016-01-15 Jeff Law <law@redhat.com>
17972 PR tree-optimization/69270
17973 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17974 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
17975 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17976 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17977 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17978 ssa_name_has_boolean_range and constant_boolean_node.
17980 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
17982 PR rtl-optimization/69030
17983 * lra-spills.c (remove_pseudos): Check nrefs and make the function
17985 (spill_pseudos): Delete debug insn for dead pseudo.
17986 (lra_spill): Initiate spill_hard_reg and slots memory separately.
17988 2016-01-15 Jiong Wang <jiong.wang@arm.com>
17990 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17992 (TYPES_UNOPUS): Likewise.
17993 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
17994 builtin type, from UNOP to UNOPUS.
17995 (lbtruncuv4sf): Likewise.
17996 (lbtruncuv2df): Likewise.
17997 (lrounduv2sf): Likewise.
17998 (lrounduv4sf): Likewise.
17999 (lrounduv2df): Likewise.
18000 (lroundusf): Likewise.
18001 (lroundusf): Likewise.
18002 (lceiluv2sf): Likewise.
18003 (lceiluv4sf): Likewise.
18004 (lceiluv2df): Likewise.
18005 (lceilusf): Likewise.
18006 (lceiludf): Likewise.
18007 (lflooruv2sf): Likewise.
18008 (lflooruv4sf): Likewise.
18009 (lflooruv2df): Likewise.
18010 (lfloorusf): Likewise.
18011 (lfloorudf): Likewise.
18012 (lfrintnuv2sf): Likewise.
18013 (lfrintnuv4sf): Likewise.
18014 (lfrintnuv2df): Likewise.
18015 (lfrintnusf): Likewise.
18016 (lfrintnudf): Likewise.
18017 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18019 (vcvtq_u32_f32): Likewise.
18020 (vcvtq_u64_f64): Likewise.
18021 (vcvta_u32_f32): Likewise.
18022 (vcvtaq_u32_f32): Likewise.
18023 (vcvtaq_u64_f64): Likewise.
18024 (vcvtm_u32_f32): Likewise.
18025 (vcvtmq_u32_f32): Likewise.
18026 (vcvtmq_u64_f64): Likewise.
18027 (vcvtn_u32_f32): Likwise.
18028 (vcvtnq_u32_f32): Likewise.
18029 (vcvtnq_u64_f64): Likewise.
18030 (vcvtp_u32_f32): Likewise.
18031 (vcvtpq_u32_f32): Likewise.
18032 (vcvtpq_u64_f64): Likewise.
18033 (vcvtmd_u64_f64): Likewise.
18034 (vcvtms_u32_f32): Likewise.
18035 (vcvtad_u64_f64): Likewise.
18036 (vcvtas_u32_f32): Likewise.
18037 (vcvtnd_u64_f64): Likewise.
18038 (vcvtns_u32_f32): Likewise.
18039 (vcvtpd_u64_f64): Likewise.
18040 (vcvtps_u32_f32): Likewise.
18042 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18044 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18045 CSEL of zero_extended registers.
18047 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18049 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18050 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18052 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18054 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18055 false when argument string is not found in the attributes table
18058 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18061 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18062 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18063 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18064 precision estimate.
18066 2016-01-15 Richard Biener <rguenther@suse.de>
18068 PR tree-optimization/66856
18069 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18070 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18071 (vect_create_new_slp_node): Increment stmt reference count.
18072 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18073 an SLP tree before swapping operands.
18074 (vect_build_slp_tree): Likewise.
18075 (destroy_bb_vec_info): Free stmt info after SLP instances.
18076 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18077 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18078 (STMT_VINFO_NUM_SLP_USES): New macro.
18080 2016-01-15 Richard Biener <rguenther@suse.de>
18083 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18084 (add_linkage_name): ... here.
18085 (gen_typedef_die): Use add_linkage_name_raw instead of
18086 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18089 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18091 * gimplify.c (oacc_default_clause): Decode reference and pointer
18092 types for both kernels and parallel regions.
18094 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18096 PR middle-end/69246
18097 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18099 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18101 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18102 (convert_scalars_to_vector): Likewise.
18104 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18106 * doc/extend.texi (Type Traits): Fix grammar.
18108 2016-01-15 Martin Jambor <mjambor@suse.cz>
18110 * tree-inline.c (remap_decl): Use existing dclarations if
18111 remapping a type and prevent_decl_creation_for_types.
18112 (replace_locals_stmt): Do an initial remapping of non-VLA typed
18113 decls first. Do real remapping with
18114 prevent_decl_creation_for_types set.
18115 * tree-inline.h (copy_body_data): New field
18116 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18119 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18121 * config/s390/s390.opt (mmvcle): More verbose help text.
18123 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18125 * config/s390/s390.opt: Add period to -mzvector option text.
18127 2016-01-15 Richard Biener <rguenther@suse.de>
18129 PR tree-optimization/68961
18130 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18131 of invariants in stores again.
18133 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18135 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18137 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18139 * config/i386/i386.c (ix86_expand_branch): Don't split
18140 DI mode xor instruction to SI mode.
18142 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18145 * ipa-icf.c (sem_function::merge): Virtual functions may become
18146 reachable even if they address is not taken and there are no
18149 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18151 * lto-streamer-out.c (subtract_estimated_size): New function.
18152 (get_symbol_initial_value): Use it.
18154 2016-01-15 Christian Bruel <christian.bruel@st.com>
18157 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18158 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18159 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18160 use add_builtin_function_ext_scope instead of add_builtin_function.
18161 (neon_set_p, neon_crypto_set_p): Remove.
18162 (arm_init_builtins): Always call arm_init_neon_builtins and
18163 arm_init_crypto_builtins.
18164 (arm_expand_builtin): Check that builtins are allowed for the arch.
18165 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18166 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18167 arm_init_neon_builtins call.
18169 2016-01-15 Richard Biener <rguenther@suse.de>
18171 PR tree-optimization/69117
18172 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18173 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18174 of the leader conservatively.
18175 (free_scc_vn): Restore original SSA name infos.
18177 2016-01-14 Jeff Law <law@redhat.com>
18179 PR tree-optimization/69270
18180 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18181 single bit of precision, verify it's also unsigned.
18182 (record_edge_info): Use constant_boolean_node rather than fold_convert
18183 to convert boolean_true/boolean_false to the right type.
18185 2016-01-14 Richard Henderson <rth@redhat.com>
18188 * loop-doloop.c (record_reg_sets): New.
18189 (doloop_optimize): Reject the transform if the sequence
18190 clobbers registers live at the end of the loop block.
18191 (doloop_optimize_loops): Enable df_live if needed.
18193 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18195 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18196 * config/rs6000/rs6000.c: Likewise.
18197 * config/rs6000/rs6000.h: Likewise.
18198 * config/rs6000/rs6000.md: Likewise.
18199 * doc/extend.texi: Likewsie.
18201 2016-01-14 Jeff Law <law@redhat.com>
18203 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18206 2016-01-14 Richard Henderson <rth@redhat.com>
18210 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18211 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18212 instead of builtin_decl_declared_p to test for declaration.
18214 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18216 * doc/loop.texi (Loop Analysis and Representation): Document
18217 loop_depth function.
18219 2016-01-14 Tom de Vries <tom@codesourcery.com>
18221 PR tree-optimization/68773
18222 * omp-low.c (expand_omp_target): Don't set force_output.
18223 * varpool.c (varpool_node::get_create): Same.
18224 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18225 offload_funcs with force_output.
18227 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18230 * lra-eliminations.c (move_plus_up): Don't change anything if either
18231 the outer or inner subreg mode is not MODE_INT.
18232 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18233 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18235 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18237 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18238 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18239 reduc_uplus_@var{m}): Remove.
18240 * expr.c (expand_expr_real_2): Remove expansion path for
18241 reduc_[us](min|max|plus) optabs.
18242 * optabs-tree.c (scalar_reduc_to_vector): Remove.
18243 * optabs-tree.h (scalar_reduc_to_vector): Remove.
18244 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18245 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18246 * tree-vect-loop.c (vectorizable_reduction): Remove test for
18247 reduc_[us](min|max|plus) optabs.
18249 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18251 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18252 (reduc_plus_scal_v2sf): New.
18253 (reduc_smax_v2sf): Rename to...
18254 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18255 (reduc_smin_v2sf): Rename to...
18256 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18258 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18260 * alias.c (compare_base_symbol_refs): New function.
18261 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18264 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18266 PR middle-end/68146
18267 PR tree-optimization/69155
18268 * tree-complex.c: Include cfganal.h.
18269 (phis_to_revisit): New variable.
18270 (extract_component): Add phiarg_p argument. Assert that returned
18271 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18272 (update_phi_components): Partly rewrite to use loop over real/imag
18273 components instead of code duplication. If extract_component returns
18274 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18275 create_tmp_reg into the PHI node instead, and mention the phi triplet
18276 in phis_to_revisit.
18277 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
18278 in phis_to_revisit at the end.
18280 2016-01-14 Richard Biener <rguenther@suse.de>
18282 PR tree-optimization/68060
18283 * tree-vect-loop.c (vect_is_simple_reduction): Check the
18284 outer loop reduction is only used in the inner loop before
18285 detecting a double reduction.
18287 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18290 * combine.c (expand_field_assignment): Punt if compute_mode is
18291 unsupported scalar mode.
18293 2016-01-14 Richard Biener <rguenther@suse.de>
18295 PR tree-optimization/66856
18296 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18297 SLP node only if it built successfully.
18298 (vect_analyze_slp_instance): Adjust.
18300 2016-01-14 Jeff Law <law@redhat.com>
18302 PR tree-optimization/69270
18303 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18304 (record_edge_info): Use it. Convert boolean_{true,false}_node
18305 to the type of op0.
18307 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18310 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18311 use block_ultimate_origin
18312 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18314 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18316 * doc/invoke.texi (Submodel Options): Rename section to
18317 "Machine-Dependent Options" to better reflect its content.
18318 Rewrite introductory text to remove archaic CPU names.
18321 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18323 * doc/invoke.texi (Code Gen Options): Move section up in file,
18324 before target-specific options. Update menu and option summary
18325 to reflect the new section ordering.
18327 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18329 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18330 (C++ Dialect Options): Add cross-reference to -std option.
18331 * doc/standards.texi (C++ Language): Document C++14 support.
18333 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18335 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18336 for pack/unpack functions for __ibm128.
18337 (PACK_IF): Likewise.
18338 (UNPACK_IF): Likewise.
18340 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18341 support for __ibm128 pack/unpack functions.
18342 (rs6000_invalid_builtin): Likewise.
18343 (rs6000_init_builtins): Likewise.
18344 (rs6000_opt_masks): Likewise.
18346 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18347 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18349 (RS6000_BTM_COMMON): Likewise.
18351 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18352 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18353 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18354 128-bit floating point. Add support for the double values to be
18355 in Altivec registers for TF/IF packing and unpacking, but restrict
18356 TD packing sub-fields to be FPR registers. Don't allow overlapped
18357 register support for packing. Allow pack inputs to be memory
18358 locations. Don't build generator functions for unpack<mode>_dm
18359 and unpack<mode>_nodm.
18360 (unpack<mode>_dm): Likewise.
18361 (unpack<mode>_nodm): Likewise.
18362 (pack<mode>): Likewise.
18364 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18365 built-in functions to pack/unpack explicit __ibm128 values.
18366 (__builtin_unpack_ibm128): Likewise.
18368 * doc/extend.texi (PowerPC Built-in Functions): Document
18369 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18371 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
18374 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18375 Add new arg loc and pass it down as context.
18376 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18377 to the location to use for the warning.
18378 (check_function_arguments): New arg loc. All callers changed. Pass
18379 it to check_function_nonnull.
18380 * c-common.h (check_function_arguments): Adjust declaration.
18382 2016-01-13 Jakub Jelinek <jakub@redhat.com>
18384 PR tree-optimization/69156
18385 * gimple.c (validate_type): Removed.
18386 (gimple_builtin_call_types_compatible_p): Use
18387 useless_type_conversion_p instead of validate_type.
18388 * value-prof.c (gimple_stringop_fixed_value): Fold
18389 icall_size to correct type.
18391 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18393 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18396 2016-01-13 Richard Henderson <rth@redhat.com>
18399 * target.def (builtin_tm_load, builtin_tm_store): Remove.
18400 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18401 (ix86_builtin_tm_store): Remove.
18402 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18403 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18404 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18405 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18406 * doc/tm.texi: Rebuild.
18408 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18409 (BUILT_IN_TM_MEMCPY_RTWN): New.
18410 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18411 fallback from vector to integer helpers.
18412 (build_tm_load): Handle vector types directly, instead of
18414 (build_tm_store): Likewise.
18415 (expand_assign_tm): Prepare for register types not handled by
18416 the above. Copy them to memory and use memcpy.
18417 * tree.c (tm_define_builtin): New.
18418 (find_tm_vector_type): New.
18419 (build_tm_vector_builtins): New.
18420 (build_common_builtin_nodes): Call it.
18422 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
18424 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18425 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
18427 2016-01-13 Tom de Vries <tom@codesourcery.com>
18429 PR tree-optimization/69169
18430 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18431 handled_struct_type param.
18432 (create_variable_info_for, intra_create_variable_infos): Call
18433 create_variable_info_for_1 with extra arg.
18435 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
18437 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18438 and "armv8.1-a+crc" entries.
18440 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
18443 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18444 Change first operand predicate from register_or_constm1_operand
18445 to register_operand.
18446 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18447 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18448 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18449 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18450 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18451 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18452 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18453 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18454 comparison with constm1_rtx from vec_prefetch_gen part.
18456 2016-01-13 Richard Biener <rguenther@suse.de>
18458 PR tree-optimization/69013
18459 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18460 Exchange assert for a test.
18462 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18465 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18467 2016-01-13 Richard Biener <rguenther@suse.de>
18469 PR tree-optimization/69242
18470 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18471 assert with a check.
18473 2016-01-13 Richard Biener <rguenther@suse.de>
18475 PR tree-optimization/69186
18476 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18477 Properly guard vect_update_misalignment_for_peel call.
18479 2016-01-12 Jeff Law <law@redhat.com>
18481 PR tree-optimization/pr67755
18482 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18483 "need_profile_correction".
18484 (thread_block_1): Initialize new field to false by default. If we
18485 have multiple thread paths through a common joiner to different
18486 final targets, then set new field to true.
18487 (compute_path_counts): Only do count adjustment when it's really
18490 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18492 * doc/invoke.texi (Spec Files): Move section down in file, past
18493 all command-line option descriptions.
18495 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18497 PR middle-end/54809
18498 * doc/gty.texi: Remove documentation of mark_hook.
18499 * gengtype.c (struct write_types_data): Remove code to support
18500 mark_hook attribute.
18501 (walk_type): Likewise.
18502 (write_func_for_structure): Likewise.
18504 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18506 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18507 Directory Options, and -specs= to Overall Options.
18508 (Overall Options): Adjust similarly. Reorder to group related
18509 options together. Make -specs= cross-reference the spec file details.
18510 (Directory Options): Adjust similarly.
18512 2016-01-12 Jeff Law <law@redhat.com>
18514 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18516 2016-01-12 Olivier Hainque <hainque@adacore.com>
18518 * gcc.c (spec_undefvar_allowed): New global.
18519 (process_command): Set to true when running for --version or --help,
18521 (getenv_spec_function): When the variable is not defined, use the
18522 variable name as the variable value if we're allowed not to issue
18525 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18527 PR tree-optimization/68911
18528 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18529 information computed for expression "init + nit * step".
18531 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18533 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
18534 about name of GCC executable. Remove deleted node from menu.
18535 (Directory Options) <-B>: Remove cross-reference to deleted node.
18536 (Target Options): Delete section.
18538 2016-01-12 Christian Bruel <christian.bruel@st.com>
18541 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18542 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18544 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18547 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18548 aligned_mem is properly set for AVX512-VL floating point masked
18552 * ifcvt.c (cond_exec_process_if_block): When removing the last
18553 insn from then_bb, remove also any possible barriers that follow it.
18555 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18559 * config/i386/iamcu.h (SIZE_TYPE): New macro.
18560 (PTRDIFF_TYPE): Likewise.
18561 (WCHAR_TYPE): Likewise.
18562 (WCHAR_TYPE_SIZE): Likewise.
18563 (STDINT_LONG32): Likewise.
18565 2016-01-12 Richard Biener <rguenther@suse.de>
18567 PR tree-optimization/69053
18568 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18569 convert initial value for cond reductions.
18571 2016-01-12 Richard Biener <rguenther@suse.de>
18573 PR tree-optimization/69007
18574 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18575 widen_sum after dot_prod and sad.
18577 2016-01-12 Richard Biener <rguenther@suse.de>
18579 PR tree-optimization/69168
18580 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18581 pattern stmt SLP type.
18582 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18583 end up unused so cope with that case.
18585 2016-01-12 Richard Biener <rguenther@suse.de>
18587 PR tree-optimization/69157
18588 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18589 stmts def type only during analyze phase.
18590 (vectorizable_call): Likewise.
18591 (vectorizable_simd_clone_call): Likewise.
18592 (vectorizable_conversion): Likewise.
18593 (vectorizable_assignment): Likewise.
18594 (vectorizable_shift): Likewise.
18595 (vectorizable_operation): Likewise.
18596 (vectorizable_store): Likewise.
18597 (vectorizable_load): Likewise.
18599 2016-01-12 Richard Biener <rguenther@suse.de>
18601 PR tree-optimization/69174
18602 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18604 (vectorizable_load): Properly compute the number of loads needed
18605 for permuted strided SLP loads and do not spuriously assign
18606 to SLP_TREE_VEC_STMTS.
18608 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18610 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18611 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18612 (MD_EXEC_PREFIX): Remove.
18613 (MD_STARTFILE_PREFIX) Removee.
18614 (FILE_NAME_ABSOLUTE_P): Remove.
18615 (CPP_SPEC): Do not read macros from sys/version.h.
18616 (LINK_COMMAND_SPEC): Remove.
18617 (LOCAL_INCLUDE_DIR): Remove.
18618 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18619 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18620 (POST_LINK_SPEC): Define to invoke stubify after linker
18621 (LIBSTDCXX): Remove define
18622 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18623 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18624 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18625 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18626 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18627 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18628 (i386_djgpp_asm_named_section): Add propotype of new procedure
18630 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18631 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18632 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18633 in config/i386/djgpp.h).
18634 (STANDARD_STARTFILE_PREFIX_2): Define identical to
18635 STANDARD_STARTFILE_PREFIX_1.
18636 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18637 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18638 installation errors.
18639 (MAX_OFILE_ALIGNMENT): Define to 128.
18640 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18642 * config/i386/djgpp.c: New file. Add implementation of
18643 i386_djgpp_asm_named_section.
18645 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18647 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18648 Add rule for building djgpp.o.
18650 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18652 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18653 (rtx_is_swappable_p): Reductions are swappable.
18654 (insn_is_swappable_p): V2DF reductions are swappable.
18656 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
18658 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18659 reloads for other unsupported memory operands.
18661 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18662 Jim Wilson <jim.wilson@linaro.org>
18665 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18666 copy_to_mode_reg instead of force_reg.
18668 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18671 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18672 TARGET_80387 is true.
18674 2016-01-11 Jakub Jelinek <jakub@redhat.com>
18677 * lra-eliminations.c (move_plus_up): Only move plus up
18678 if subreg of the constant can be simplified into constant
18679 and use the simplified subreg of the constant instead of
18680 the original constant.
18682 * fold-const.c (fold_convertible_p): Don't return true
18683 for conversion of VECTOR_TYPE to same sized integral type.
18684 (fold_convert_loc): Fix up formatting. Fold conversion of
18685 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18686 instead of NOP_EXPR.
18688 PR tree-optimization/69214
18689 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18690 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18693 PR tree-optimization/69207
18694 * tree-vect-slp.c (vect_get_constant_vectors): For
18695 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18696 fold_convertible_p to vector_type's element type, and always
18697 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18699 2016-01-11 Richard Biener <rguenther@suse.de>
18701 PR tree-optimization/69173
18702 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18703 fixup the cycle if all stmts are in a pattern.
18705 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
18707 PR middle-end/68999
18708 * alias.c (base_alias_check): Move check for addresses with
18709 alignment ANDs before the call for compare_base_decls.
18710 (memrefs_conflict_p): Return -1 for different decls
18711 that went through alignment adjustments.
18713 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18715 PR rtl-optimization/68796
18716 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18717 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18718 and QImode comparisons against zero with CC_NZmode.
18719 * config/aarch64/iterators.md (short_mask): New mode_attr.
18721 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18723 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18724 (<avx512>_store<mode>_mask): Likewise.
18726 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
18727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18729 PR rtl-optimization/68841
18730 * ifcvt.c (struct noce_if_info): Add orig_x field.
18731 (bbs_ok_for_cmove_arith): Add to_rename parameter.
18732 Don't record conflicts on to_rename if it's present.
18733 Allow memory destinations in sets.
18734 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18735 blocks, passing orig_x to the checks.
18736 (noce_process_if_block): Set if_info->orig_x appropriately.
18738 2016-01-11 Tom de Vries <tom@codesourcery.com>
18740 PR tree-optimization/69069
18741 * tree-parloops.c (create_parallel_loop): Add missing phi args.
18743 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18745 PR rtl-optimization/68920
18746 * config/i386/i386.c (ix86_option_override_internal): Restrict number
18747 of conditional moves for RTL if-conversion to 1 for
18748 TARGET_ONE_IF_CONV_INSN.
18749 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18750 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18751 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18752 parameter to restirct number of conditional moves for
18754 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18755 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18758 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
18761 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18762 onepart vars. Fix typo in comment. Fix reversed condition in
18764 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18767 * var-tracking.c (dump_onepart_variable_differences): New.
18768 (dataflow_set_different): If a detailed dump is requested,
18769 delay early returns and dump differences between onepart
18770 variables present before and after, and added variables.
18772 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18775 * expr.c (expand_expr_real_1): For boolean vector constants
18776 with a scalar mode use const_scalar_mask_from_tree.
18777 (const_scalar_mask_from_tree): New.
18778 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18779 assigned to a mask type to handle constants.
18781 2016-01-11 Martin Jambor <mjambor@suse.cz>
18784 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18785 useless parameters if we cannot change function signature.
18787 2016-01-11 Martin Jambor <mjambor@suse.cz>
18790 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18793 2016-01-11 Tom de Vries <tom@codesourcery.com>
18795 PR tree-optimization/69109
18796 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18799 2016-01-11 Tom de Vries <tom@codesourcery.com>
18801 PR tree-optimization/69108
18802 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18803 res is not used in a phi.
18805 2016-01-11 Yury Gribov <y.gribov@samsung.com>
18808 * common.opt (frandom-seed): Fix parameter name.
18809 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18811 2016-01-11 Tom de Vries <tom@codesourcery.com>
18813 PR tree-optimization/69058
18814 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18817 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
18819 * config/arc/arc.opt (mdiv-rem): Add period to the end.
18820 (mcode-density): Likewise.
18822 2016-01-10 Tom de Vries <tom@codesourcery.com>
18824 PR tree-optimization/69062
18825 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18826 (parallelize_loops): Don't paralelize loop that has phi with address
18829 2016-01-10 Tom de Vries <tom@codesourcery.com>
18831 PR tree-optimization/69039
18832 * tree-parloops.c (try_create_reduction_list): Only allow single exit
18835 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
18837 PR middle-end/68743
18838 * match.pd: Require target has function_c99_misc before doing
18839 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18841 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
18843 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18845 * configure: Regenerate.
18847 2016-01-09 Jakub Jelinek <jakub@redhat.com>
18849 PR middle-end/50865
18850 PR tree-optimization/69097
18851 * fold-const.h (expr_not_equal_to): New prototype.
18852 * fold-const.c: Include stringpool.h and tree-ssanames.h.
18853 (expr_not_equal_to): New function.
18854 * match.pd (X % -Y is the same as X % Y): Don't optimize
18855 unless X is known not to be equal to minimum or Y is known
18856 not to be equal to -1.
18857 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18858 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18859 (simplify_stmt_using_ranges): Adjust caller.
18860 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18861 substitute_and_fold.
18863 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
18865 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18868 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18870 PR tree-optimization/69167
18871 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18872 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18874 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18876 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18877 Richard Biener <rguenther@suse.de>
18879 PR tree-optimization/68707
18880 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18881 instances that can be handled via vect_load_lanes.
18883 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
18885 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18886 if we can't determine address equivalence.
18887 * alias.c (compare_base_decl): Update for changed return value of
18888 symtab_node::equal_address_to.
18890 2016-01-08 Jason Merrill <jason@redhat.com>
18894 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18895 * expr.c (store_field): Not here.
18896 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18897 call with TREE_ADDRESSABLE type.
18898 * tree-cfg.c (verify_gimple_call): Adjust.
18900 2016-01-08 Olivier Hainque <hainque@adacore.com>
18902 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18905 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18907 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18908 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18909 (reduc_smin_v2sf): Rename to...
18910 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18911 (reduc_splus_v2sf): Rename to...
18912 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18914 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18916 PR tree-optimization/69162
18917 * gimplify.c (gimplify_va_arg_expr): Encode original type of
18918 valist argument in another argument.
18919 (gimplify_modify_expr): Adjust for the above change. Cleanup.
18920 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18921 to determine the va_list type, build a MEM_REF instead of
18922 build_fold_indirect_ref.
18924 PR tree-optimization/69172
18925 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18928 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
18930 PR tree-optimization/67781
18931 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18932 and cmpnop in two steps: first the ones not accessed in original
18933 gimple expression in a endian independent way and then the ones not
18934 accessed in the final result in an endian-specific way.
18936 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18938 PR tree-optimization/69083
18939 * tree-vect-slp.c (vect_get_constant_vectors): For
18940 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18941 element type. If op is fold_convertible_p to vector_type's element
18942 type, use NOP_EXPR instead of VCE.
18944 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
18946 PR rtl-optimization/67778
18947 PR rtl-optimization/68634
18948 PR rtl-optimization/68909
18949 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
18950 block from the stack until done with it. Remove a superfluous
18951 bitmap set. Remove a superfluous bitmap test.
18953 2016-01-07 Martin Sebor <msebor@redhat.com>
18956 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18957 constraint on the type of arguments.
18959 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
18961 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18962 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18963 unaligned_access on the gcc_options set.
18964 * config/arm/arm.c (arm_option_override_internal): Use
18965 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18967 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18970 * config/i386/i386.c (ix86_frame_pointer_required): Enable
18971 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18973 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18976 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
18979 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18980 depending on frame_pointer_needed before remaining integer and SSE
18981 registers are saved.
18983 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
18986 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18988 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
18991 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
18992 Use the "xBm" constraint.
18993 (float<sseintvecmodelower><mode>2<mask_name><round_name):
18995 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
18996 (sse_cvtsi2ssq<round_name>): Likewise.
18997 (sse_cvtss2si<round_name>): Likewise.
18998 (sse_cvtss2siq<round_name>): Likewise.
18999 (sse2_cvtsi2sdq<round_name>): Likewise.
19000 (sse2_cvtsd2si<round_name>): Likewise.
19001 (sse2_cvtsd2siq<round_name>): Likewise.
19002 * config/i386/subst.md (round_nimm_scalar_predicate): New
19005 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19007 PR middle-end/67639
19008 * varasm.c (make_decl_rtl): Mark invalid register vars as
19011 PR rtl-optimization/66206
19012 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19013 All callers changed.
19015 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19017 PR tree-optimization/69141
19018 * tree-ssa-pre.c: Include langhooks.h.
19019 (eliminate_dom_walker::before_dom_children): Use
19020 lang_hooks.decl_printable_name instead of
19021 cgraph_node::get ()->name ().
19023 PR middle-end/68960
19024 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19025 it and DECL_ALIGN too.
19027 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19029 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19031 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19034 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19035 depending on frame_pointer_needed before remaining integer and SSE
19036 registers are saved.
19038 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19040 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19041 mode iterator with VSX_M2.
19042 (*p9_vecstore_<mode>): Likewise.
19043 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19044 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19045 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19046 (define_split for VSX_LE128 stores): Likewise.
19047 (define_peephole2 for TImode LE swaps): Likewise.
19048 (define_split for VSX_LE128 post-reload stores): Likewise.
19050 2016-01-06 Marek Polacek <polacek@redhat.com>
19053 * convert.c (convert_to_integer_1): Adjust call to
19054 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
19055 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
19056 EXPR instead of ARG.
19057 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19059 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19062 * doc/extend.texi (RL78 Variable Attributes): New section.
19064 2016-01-05 Marek Polacek <polacek@redhat.com>
19067 * builtins.c (get_memmodel): Use expansion point location rather than
19068 the input location. Call warning_at rather than warning.
19069 (expand_builtin_atomic_compare_exchange): Likewise.
19070 (expand_builtin_atomic_load): Likewise.
19071 (expand_builtin_atomic_store): Likewise.
19072 (expand_builtin_atomic_clear): Likewise.
19074 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19077 * config/i386/i386.c (ix86_expand_vector_logical_operator):
19078 Replace nonimmediate_operand with vector_operand.
19079 * config/i386/predicates.md (vector_operand): New predicate.
19080 (general_vector_operand): Replace nonimmediate_operand with
19082 * config/i386/sse.md: Replace nonimmediate_operand with
19083 vector_operand and m constraint with Bm constraint on SSE
19084 patterns with 16-byte memory operand.
19085 * config/i386/subst.md (round_nimm_predicate): Replace
19086 nonimmediate_operand with vector_operand.
19087 (round_saeonly_nimm_predicate): Likewise.
19088 (round_saeonly_nimm_scalar_predicate): New.
19090 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19093 * config/i386/constraints.md (Bm): New constraint.
19094 * config/i386/predicates.md (vector_memory_operand): New
19096 * config/i386/sse.md: Replace xm with xBm in plusminus and
19097 any_logic patterns.
19099 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19102 * doc/extend.texi (V850 Function Attributes): New section.
19103 (V850 Variable Attributes): New section.
19105 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19108 * doc/extend.texi (MicroBlaze Function Attributes): Document
19109 interrupt_handler and fast_interrupt attributes.
19111 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19114 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19115 for local symbolic operands.
19116 * config/ia64/predicates.md (local_symbolic_operand64): New
19119 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19121 PR rtl-optimization/68651
19122 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19125 2016-01-05 Nathan Sidwell <nathan@acm.org>
19127 * alias.c (compare_base_decls): Use symtab_node::get.
19129 2016-01-05 Nick Clifton <nickc@redhat.com>
19132 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19133 secondary_reload_info structure.
19136 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19137 decls if weak support is available.
19139 2016-01-04 Martin Sebor <msebor@redhat.com>
19141 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19143 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19145 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19146 OPTION_MASK_P9_DFORM.
19148 * config/rs6000/constraints.md (wo constraint): New constraint for
19151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19153 (rs6000_init_hard_regno_mode_ok): Likewise.
19155 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19158 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19159 expanders not to have constraints. Add support for ISA 3.0 xxperm
19160 instruction. Add support for fusing xxlor with xxperm.
19161 (altivec_vperm_<mode>_internal): Likewise.
19162 (altivec_vperm_v8hiv16qi): Likewise.
19163 (altivec_vperm_<mode>v16q): Likewise.
19164 (altivec_vperm_<mode>_uns): Likewise.
19165 (vperm_v8hiv4si): Likewise.
19166 (vperm_v16qiv8hi): Likewise.
19168 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19172 Update copyright years.
19174 * gcc.c (process_command): Update copyright notice dates.
19175 * gcov-dump.c (print_version): Ditto.
19176 * gcov.c (print_version): Ditto.
19177 * gcov-tool.c (print_version): Ditto.
19178 * gengtype.c (create_file): Ditto.
19179 * doc/cpp.texi: Bump @copying's copyright year.
19180 * doc/cppinternals.texi: Ditto.
19181 * doc/gcc.texi: Ditto.
19182 * doc/gccint.texi: Ditto.
19183 * doc/gcov.texi: Ditto.
19184 * doc/install.texi: Ditto.
19185 * doc/invoke.texi: Ditto.
19187 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19189 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19190 modes larger than TImode as TImode if NEON is not enabled.
19192 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19195 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19196 mode for %f0-%f31 only if TARGET_FPU.
19198 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19201 * config/sparc/sparc.c (scan_record_type): Take into account subfields
19202 to compute the PACKED_P predicate.
19203 (function_arg_record_value): Minor tweaks.
19205 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19207 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19208 option for arm*-*-* targets.
19210 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19212 * doc/extend.texi (Common Function Attributes): Move docs for
19213 MSP430-specific attributes to....
19214 (MSP430 Function Attributes): ...here. Delete the redundant
19215 entries and copy-edit the remaining text.
19216 (MSP430 Variable Attributes): Use uniform format for index
19217 entries and add a cross-reference to the corresponding function
19220 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19222 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19224 (x86 Options): Likewise.
19226 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19230 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19231 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19232 to corresponding attribute.
19234 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19236 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19237 to correct alphabetization of table. Copy-edit and correct
19239 <stack_protect>: Likewise.
19240 <target_clones>: Likewise.
19242 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19243 Correct punctuation.
19244 (Code Gen Options) <-fno-plt>: Copy-edit.
19246 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19249 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19250 SI values. Explicitly convert SI to DI and vice-versa.
19252 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19254 PR tree-optimization/69070
19255 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19256 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19259 * ubsan.c (ubsan_instrument_float_cast): Call
19260 initialize_sanitizer_builtins.
19263 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19265 Copyright (C) 2016 Free Software Foundation, Inc.
19267 Copying and distribution of this file, with or without modification,
19268 are permitted in any medium without royalty provided the copyright
19269 notice and this notice are preserved.