This patchset improves zero extend costs and code generation.
[gcc.git] / gcc / ChangeLog
1 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
4
5 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
6
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.
12
13 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
14
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.
21
22 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
23
24 PR middle-end/72657
25 PR target/72683
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.
29
30 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31
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):
46 * Likewise.
47 * config/mips/mips.c (mips_adjust_cost): Likewise.
48 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
49 * Likewise.
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):
60 * Likewise.
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.
65
66 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
67
68 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
69
70 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
71
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.
80
81 2016-07-28 Martin Liska <mliska@suse.cz>
82
83 PR gcov-profile/68025
84 * tree-profile.c (tree_profiling): Respect
85 no_profile_instrument_function attribute.
86 * doc/extend.texi: Document no_profile_instrument_function
87 attribute.
88
89 2016-07-28 Martin Liska <mliska@suse.cz>
90
91 PR rtl-optimization/70944
92 * combine.c (make_compound_operation):
93 Do not allow make_compound_operation for vector mode
94
95 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
96
97 PR middle-end/71994
98 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
99 before calling get_ops.
100
101 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
102
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.
109
110 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
111
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):
116 Likewise.
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
121 MFVSRLD instruction.
122
123 2016-07-27 David Malcolm <dmalcolm@redhat.com>
124
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
129 get_range_from_loc.
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.
138
139 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
140
141 PR middle-end/71078
142 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
143
144 2016-07-27 David Malcolm <dmalcolm@redhat.com>
145
146 * system.h (STATIC_ASSERT): Use static_assert if building
147 with C++11 onwards.
148
149 2016-07-27 Richard Biener <rguenther@suse.de>
150
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.
154
155 2016-07-27 Richard Biener <rguenther@suse.de>
156
157 * predict.c (set_even_probabilities): Make nedges unsigned.
158
159 2016-07-27 Martin Liska <mliska@suse.cz>
160
161 * predict.c (set_even_probabilities): Handle unlikely edges.
162 (combine_predictions_for_bb): Likewise.
163
164 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
165
166 PR target/71869
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.
172
173 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
174
175 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
176 name.
177 (extract_code_and_val_from_cond_with_ops): Verify that name is
178 either cond_op0 or cond_op1.
179
180 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
181
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.
194
195 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
196
197 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
198 and unnecessary call to gimple_bb.
199
200 2016-07-26 Richard Biener <rguenther@suse.de>
201
202 PR rtl-optimization/71984
203 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
204 for VOIDmode.
205
206 2016-07-26 Richard Biener <rguenther@suse.de>
207
208 PR middle-end/72517
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.
212
213 2016-07-26 Richard Biener <rguenther@suse.de>
214 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
215
216 PR middle-end/70920
217 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
218 pattern.
219
220 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
221
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.
231
232 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
233
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.
239
240 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
241
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.
258
259 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
260
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):
312 * Likewise.
313 (try_peel_loop): Likewise.
314 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
315 * Likewise.
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.
321
322 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
323
324 * sbitmap.h (auto_sbitmap): New class.
325
326 2016-07-26 Alan Modra <amodra@gmail.com>
327
328 PR target/72103
329 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
330 sri->t_icode.
331
332 2016-07-25 David Malcolm <dmalcolm@redhat.com>
333
334 * input.c (selftest::temp_source_file::temp_source_file): Fix
335 missing "%s" in fprintf.
336
337 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
338
339 PR middle-end/71732
340 * cselib.c (cselib_process_insn): Invalidate argument slots for
341 const/pure calls.
342
343 2016-07-25 Jiong Wang <jiong.wang@arm.com>
344
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.
348
349 2016-07-25 Jiong Wang <jiong.wang@arm.com>
350
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.
354
355 2016-07-25 Jiong Wang <jiong.wang@arm.com>
356
357 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
358 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
359 New.
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,
386 vrsqrtsh_f16): New.
387
388 2016-07-25 Jiong Wang <jiong.wang@arm.com>
389
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
394 mode.
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):
408 Support HF mode.
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,
422 vsqrth_f16): New.
423
424 2016-07-25 Jiong Wang <jiong.wang@arm.com>
425
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>):
430 Use VHSDF.
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.
436
437 2016-07-25 Jiong Wang <jiong.wang@arm.com>
438
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.
453
454 2016-07-25 Jiong Wang <jiong.wang@arm.com>
455
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
458 modes.
459 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
460 vfmsq_f16): New.
461
462 2016-07-25 Jiong Wang <jiong.wang@arm.com>
463
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
484 HF, V4HF and V8HF.
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.
499
500 2016-07-25 Jiong Wang <jiong.wang@arm.com>
501
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
518 HF, V4HF and V8HF.
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.
521 (stype): New.
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.
538
539 2016-07-25 Jiong Wang <jiong.wang@arm.com>
540
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
547 and V8HFmode.
548 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
549 float16x8_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):
557 New.
558 (vmov_n_f16): Reimplement using vdup_n_f16.
559 (vmovq_n_f16): Reimplement using vdupq_n_f16..
560
561 2016-07-25 Jiong Wang <jiong.wang@arm.com>
562
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.
569
570 2016-07-25 Jiong Wang <jiong.wang@arm.com>
571
572 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
573 sequences.
574
575 2016-07-25 Jiong Wang <jiong.wang@arm.com>
576
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.
581
582 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
583
584 Revert
585 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
586
587 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
588 flag_toplevel_reorder.
589
590 2016-07-25 Richard Biener <rguenther@suse.de>
591
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
607 assert.
608 (streamer_write_builtin): Remove.
609
610 2016-07-25 Martin Liska <mliska@suse.cz>
611
612 * lto-cgraph.c (input_symtab): Don't call get_working_sets
613 if flag_auto_profile is set to true.
614
615 2016-07-25 Martin Liska <mliska@suse.cz>
616
617 PR gcov-profile/71868
618 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
619 have a function with multiple latches, count them all.
620
621 2016-07-25 Martin Liska <mliska@suse.cz>
622
623 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
624
625 2016-07-25 Martin Liska <mliska@suse.cz>
626
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.
630
631 2016-07-25 Martin Liska <mliska@suse.cz>
632
633 PR gcov-profile/64874
634 * gcov-io.h: Update command about file format.
635 * gcov-iov.c (main): Adapt the numbering scheme.
636
637 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
638
639 PR middle-end/66726
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.
644
645 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
646
647 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
648 Reformat two multi-line strings.
649
650 2016-07-22 Martin Sebor <msebor@redhat.com>
651
652 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
653
654 2016-07-22 Martin Sebor <msebor@redhat.com>
655
656 PR c/71560
657 * doc/extend.texi (Compound Literals): Correct and clarify.
658 (Cast to Union): Same.
659
660 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
661
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
677 undocumented flags.
678 (IBM RS/6000 and PowerPC Options): Likewise.
679 * doc/md.texi (Constraints for Particuliar Machines): Remove all
680 mention of newly undocumented flags.
681
682 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
683
684 * ipa-cp.c (determine_versionability): Do not create constprop clones,
685 when target_clones attribute is set.
686
687 2016-07-22 Bin Cheng <bin.cheng@arm.com>
688
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
692 related code.
693 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
694 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
695
696 2016-07-22 Bin Cheng <bin.cheng@arm.com>
697
698 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
699 Parameter.
700 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
701 Parameter.
702 (number_of_iterations_exit): Warn missed loop optimization for
703 possible infinite loops.
704
705 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
706
707 PR target/71216
708 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
709 when to emit a ".machine" pseudo-op.
710
711 2016-07-22 Martin Liska <mliska@suse.cz>
712
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.
718
719 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
720
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.
727
728 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
729
730 PR middle-end/71876
731 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
732 attribute.
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
735 "__builtin_" prefix.
736
737 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
738
739 PR middle-end/71876
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
743 builtin alloca call.
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.
747
748 2016-07-21 David Malcolm <dmalcolm@redhat.com>
749
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.
753
754 2016-07-21 Jakub Jelinek <jakub@redhat.com>
755
756 PR sanitizer/71953
757 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
758 before builtin_decl_implicit.
759
760 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
761
762 * optabs.c (emit_condiitonal_move): Short circuit for identical
763 sources.
764
765 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
766
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
776 overwriting it.
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.
781
782 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
783
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.
792
793 2016-07-21 Richard Biener <rguenther@suse.de>
794
795 PR tree-optimization/71947
796 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
797 ranges have useful limit_vr information.
798
799 2016-07-21 Richard Biener <rguenther@suse.de>
800
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.
809
810 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
811
812 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
813 in comment.
814
815 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
816
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.
826
827 2016-07-21 Bin Cheng <bin.cheng@arm.com>
828
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.
838
839 2016-07-21 Bin Cheng <bin.cheng@arm.com>
840
841 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
842 by removing computation of may_be_zero.
843
844 2016-07-21 Jakub Jelinek <jakub@redhat.com>
845
846 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
847
848 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
849
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.
855
856 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
857
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.
864
865 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
866
867 * config/s390/s390.c (s390_encode_section_info): Remove mode size
868 check.
869
870 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
871
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.
876 * dse.c: Ditto.
877 * dwarf2asm.c:Ditto.
878 * expmed.c: Ditto.
879 * genmodes.c: Ditto.
880 * match.pd: Ditto.
881 * read-rtl.c: 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.
886 * tree.c: Ditto.
887
888 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
889
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.
897
898 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
899
900 Implement attribute progmem on reduced Tiny cores by adding
901 flash offset 0x4000 to respective symbols.
902
903 PR target/71948
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__.
917
918 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
919
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.
926
927 2016-07-20 David Malcolm <dmalcolm@redhat.com>
928
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.
940
941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
942
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
945 define...
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
951 address spaces.
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.
955
956 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
957
958 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
959 flag_toplevel_reorder.
960
961 2016-07-20 David Malcolm <dmalcolm@redhat.com>
962
963 * gcc-rich-location.c
964 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
965 a const char *.
966 * gcc-rich-location.h
967 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
968
969 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
970
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.
980
981 2016-07-20 Martin Liska <mliska@suse.cz>
982
983 PR middle-end/71898
984 * graphite-isl-ast-to-gimple.c (later_of_the_two):
985 Properly handly PHI stmts.
986
987 2016-07-20 Bin Cheng <bin.cheng@arm.com>
988
989 PR tree-optimization/71503
990 PR tree-optimization/71683
991 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
992 and break.
993
994 2016-07-20 Martin Liska <mliska@suse.cz>
995
996 * doc/invoke.texi (-fipa-ra): Document when the option is
997 disabled. Fix a typo.
998
999 2016-07-20 Martin Liska <mliska@suse.cz>
1000
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.
1008
1009 2016-07-20 Martin Liska <mliska@suse.cz>
1010
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.
1019
1020 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1021
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.
1025
1026 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1027
1028 PR debug/71855
1029 * dwarf2out.c (gen_subprogram_die): Only call
1030 gen_unspecified_parameters_die while dumping early dwarf.
1031
1032 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1033
1034 PR middle-end/71874
1035 * gimple-fold.c (fold_builtin_memory_op): Use
1036 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1037
1038 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1039
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.
1044 * combine.c: Ditto.
1045 * cse.c: Ditto.
1046 * dojump.c: Ditto.
1047 * double-int.c: Ditto.
1048 * dse.c: Ditto.
1049 * dwarf2out.c: Ditto.
1050 * expmed.c: Ditto.
1051 * expr.c: Ditto.
1052 * fold-const.c: Ditto.
1053 * function.c: Ditto.
1054 * fwprop.c: Ditto.
1055 * genmodes.c: Ditto.
1056 * hwint.c: Ditto.
1057 * hwint.h: Ditto.
1058 * ifcvt.c: Ditto.
1059 * loop-doloop.c: Ditto.
1060 * loop-invariant.c: Ditto.
1061 * loop-iv.c: Ditto.
1062 * match.pd: Ditto.
1063 * optabs.c: Ditto.
1064 * real.c: Ditto.
1065 * reload.c: Ditto.
1066 * rtlanal.c: Ditto.
1067 * simplify-rtx.c: Ditto.
1068 * stor-layout.c: Ditto.
1069 * toplev.c: Ditto.
1070 * tree-ssa-loop-ivopts.c: Ditto.
1071 * tree-vect-generic.c: Ditto.
1072 * tree-vect-patterns.c: Ditto.
1073 * tree.c: Ditto.
1074 * tree.h: Ditto.
1075 * ubsan.c: Ditto.
1076 * varasm.c: Ditto.
1077 * wide-int-print.cc: Ditto.
1078 * wide-int.cc: Ditto.
1079 * wide-int.h: Ditto.
1080
1081 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1082
1083 * selftest.c (selftest::assert_streq): Handle NULL values of
1084 val_actual and val_expected.
1085
1086 2016-07-19 Martin Jambor <mjambor@suse.cz>
1087
1088 PR fortran/71688
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.
1091
1092 2016-07-19 Richard Biener <rguenther@suse.de>
1093
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
1097 tcc_constant bases.
1098
1099 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1100
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.
1103
1104 2016-07-19 Richard Biener <rguenther@suse.de>
1105
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.
1115
1116 2016-07-19 Richard Biener <rguenther@suse.de>
1117
1118 PR tree-optimization/71908
1119 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1120 symbolic constants in a more reliable way.
1121
1122 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1123
1124 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1125 comment.
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.
1129
1130 2016-07-19 Richard Biener <rguenther@suse.de>
1131
1132 PR lto/71907
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.
1137
1138 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1139
1140 PR target/71493
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.
1144
1145 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1146
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
1153 ref_indep_loop_p_2.
1154
1155 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1156
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.
1167
1168 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1169
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
1172 found.
1173
1174 2016-07-18 Richard Biener <rguenther@suse.de>
1175
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.
1180
1181 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1182
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.
1193
1194 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1195
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.
1206
1207 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1208
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.
1212
1213 2016-07-15 Richard Biener <rguenther@suse.de>
1214
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.
1218
1219 2016-07-15 Richard Biener <rguenther@suse.de>
1220
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.
1225
1226 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1227 Julian Brown <julian@codesourcery.com>
1228
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.
1238
1239 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1240
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.
1247
1248 2016-07-15 Richard Biener <rguenther@suse.de>
1249
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.
1256
1257 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1258
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
1264 function.
1265 (number_of_iterations_exit): Rewrite using above function.
1266 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1267 Decl.
1268
1269 2016-07-15 Richard Biener <rguenther@suse.de>
1270
1271 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1272 vec_construct cost.
1273
1274 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1275
1276 PR tree-optimization/71872
1277 * tree-data-ref.c (get_references_in_stmt): Ignore references
1278 with is_gimple_constant get_base_address.
1279
1280 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1281
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.
1288
1289 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1290
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.
1296
1297 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1298
1299 PR target/65951
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.
1309
1310 2016-07-14 Alan Modra <amodra@gmail.com>
1311
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.
1315
1316 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1317
1318 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1319 * expmed.h: ... Here.
1320
1321 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1322
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.
1328
1329 2016-07-14 Richard Biener <rguenther@suse.de>
1330
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.
1342
1343 2016-07-14 Alan Modra <amodra@gmail.com>
1344
1345 PR target/71733
1346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1347 with p9_vector override before power9-dform override.
1348
1349 2016-07-13 Andi Kleen <ak@linux.intel.com>
1350
1351 * value-prof.c (gimple_value_profile_transformations): Don't run
1352 when auto_profile is on.
1353
1354 2016-07-13 Andi Kleen <ak@linux.intel.com>
1355
1356 * auto-profile.c (update_inlined_ind_target,
1357 afdo_indirect_call): Print information to dump file.
1358
1359 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1360
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.
1365
1366 2016-07-13 Bin Cheng <bin.cheng@arm.com>
1367
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.
1375
1376 2016-07-13 Richard Biener <rguenther@suse.de>
1377
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
1381 for left zero.
1382 (value_replacement): Pass in argument position to absorbing_element_p.
1383
1384 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1385
1386 PR ipa/71633
1387 * ipa-inline-transform.c (inline_call): Support
1388 instrumented thunks.
1389
1390 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1391
1392 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1393 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1394 divide feature.
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
1400 target.
1401
1402 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1403
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
1410 UINTVAL.
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
1416 available.
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
1431 effective target.
1432
1433 2016-07-13 Richard Biener <rguenther@suse.de>
1434
1435 PR middle-end/71104
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.
1439
1440 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1441
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.
1447
1448 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1449
1450 * cfgexpand.c (expand_used_vars): Make the type of a local
1451 variable auto_vec.
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):
1460 Likewise.
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.
1466
1467 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1468
1469 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1470 (sccvn_dom_walker): make cond_stack an auto_vec.
1471
1472 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1473
1474 * ree.c (struct ext_state): Make type of members auto_vec.
1475 (find_and_remove_re): Adjust.
1476
1477 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1478
1479 * cfgexpand.c (struct stack_vars_data): Make type of fields
1480 auto_vec.
1481 (expand_used_vars): Adjust.
1482
1483 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1484
1485 * ipa.c (record_cdtor_fn): Adjust.
1486 (build_cdtor_fns): Likewise.
1487 (ipa_cdtor_merge): Make static_ctors and static_dtors local
1488 variables.
1489
1490 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1491
1492 * genextract.c (struct accum_extract): Add constructor and make
1493 members auto_vec.
1494 (gen_insn): Adjust.
1495
1496 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1497
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.
1505
1506 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
1507
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.
1511
1512 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1513
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.
1518
1519 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1520
1521 PR target/71805
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.
1530
1531 2016-07-12 Nathan Sidwell <nathan@acm.org>
1532
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.
1537
1538 2016-07-12 Martin Liska <mliska@suse.cz>
1539
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.
1544
1545 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1546
1547 PR middle-end/71700
1548 * expr.c (store_constructor): Mask sign-extended bits when widening
1549 sub-word constructor element at the start of a word.
1550
1551 2016-07-12 Martin Liska <mliska@suse.cz>
1552
1553 * Makefile.in: Append rule for params-options.h.
1554 * params-options.h: New file.
1555
1556 2016-07-12 Martin Liska <mliska@suse.cz>
1557
1558 * ira-build.c (mark_loops_for_removal): Properly iterate
1559 loops.
1560
1561 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1562 Richard Biener <rguenther@suse.de>
1563
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.
1578 (insert): Adjust.
1579 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1580 (pass_pre::execute): Register hoist_insert stats.
1581
1582 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1583
1584 PR middle-end/71716
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.
1588
1589 2016-07-12 Richard Biener <rguenther@suse.de>
1590
1591 PR rtl-optimization/68961
1592 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1593 to simplify to a non-constant.
1594
1595 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1596
1597 PR middle-end/71758
1598 * omp-low.c (expand_omp_target): Gimplify device.
1599
1600 PR tree-optimization/71823
1601 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1602 to get vec_oprnds2 from op2.
1603
1604 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1605
1606 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1607 Hoist common subexpressions.
1608 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1609
1610 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1611
1612 PR target/71800
1613 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1614 prevent generation of 'stxsiwx' on pre Power8 hardware.
1615
1616 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1617
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.
1645
1646 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 PR target/71801
1649 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1650 Don't convert TImode in debug insn.
1651
1652 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1653
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
1670 TYPE_ALIGN_OK.
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
1700 TYPE_ALIGN_OK.
1701
1702 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1703
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
1710 vectors.
1711 (selftest::test_diamond): Likewise.
1712
1713 2016-07-11 Richard Biener <rguenther@suse.de>
1714
1715 PR tree-optimization/71816
1716 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1717 than replacing all of its operands.
1718
1719 2016-07-11 Alan Modra <amodra@gmail.com>
1720
1721 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1722 (ctr<mode>): Add unspec.
1723 (ctr<mode>_internal*): Likewise.
1724
1725 2016-07-08 James Bowman <james.bowman@ftdichip.com>
1726
1727 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1728 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1729
1730 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
1731
1732 PR rtl-optimization/71621
1733 * lra-constraints.c (process_alt_operands): Check combination of
1734 reg class and mode.
1735
1736 2016-07-08 Jason Merrill <jason@redhat.com>
1737 Richard Biener <rguenther@suse.de>
1738
1739 P0145: Refining Expression Order for C++.
1740 * gimplify.c (initial_rhs_predicate_for): New.
1741 (gimplfy_modify_expr): Gimplify RHS before LHS.
1742
1743 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1744
1745 PR target/71297
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 ().
1750
1751 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1752
1753 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1754 variants.
1755 (smin): Likewise.
1756 (fmax): New entry.
1757 (fmin): Likewise.
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.
1765
1766 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1767
1768 PR target/71806
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.
1779
1780 2016-07-08 Alan Hayward <alan.hayward@arm.com>
1781
1782 PR tree-optimization/71667
1783 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1784
1785 2016-07-08 Martin Liska <mliska@suse.cz>
1786
1787 PR middle-end/71606
1788 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1789 folding produces SAVE_EXPRs, thus return false for the type.
1790
1791 2016-07-07 Martin Liska <mliska@suse.cz>
1792
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.
1797
1798 2016-07-07 Jan Hubicka <jh@suse.cz>
1799
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.
1803
1804 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1805
1806 PR ipa/71624
1807 * ipa-inline-analysis.c (compute_inline_parameters): Set
1808 local.can_change_signature to false for intrumentation
1809 thunk callees.
1810
1811 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1812
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
1819 availability.
1820 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1821 TARGET_THUMB2.
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.
1826
1827 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1828
1829 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1830
1831 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1832
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
1847 ARMv8-M Baseline.
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.
1853
1854 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1855
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.
1861
1862 2016-07-07 Richard Biener <rguenther@suse.de>
1863
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.
1871
1872 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1873
1874 PR target/70098
1875 PR target/71763
1876 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1877 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1878 constraint.
1879
1880 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1881
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.
1886
1887 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1888
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.
1895
1896 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1897
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.
1903
1904 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1905
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.
1915
1916 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1917
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.
1920
1921 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1922
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.
1926
1927 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
1928
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.
1936
1937 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1938
1939 PR target/50739
1940 * config/avr/avr.c (avr_asm_select_section): Strip off
1941 SECTION_DECLARED from flags when calling get_section.
1942
1943 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1944
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
1950 step is negative.
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.
1957
1958 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1959
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.
1977
1978 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1979
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.
1986
1987 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1988
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.
2000
2001 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2002
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.
2007
2008 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2009
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.
2014
2015 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2016
2017 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2018 peeling-for-gaps condition.
2019
2020 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2021
2022 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2023 element to register if it doesn't match general_operand.
2024
2025 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2026 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2027
2028 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2029 prototype.
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.
2039
2040 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2041
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
2045 move.
2046
2047 2016-07-05 Jan Hubicka <jh@suse.cz>
2048
2049 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2050 (simple_iv): Use it.
2051
2052 2016-07-05 Jan Hubicka <jh@suse.cz>
2053
2054 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2055
2056 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2057
2058 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2059 "offmemok".
2060
2061 2016-07-05 Jan Hubicka <jh@suse.cz>
2062
2063 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2064 IV can overflow.
2065
2066 2016-07-05 Richard Biener <rguenther@suse.de>
2067
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.
2072
2073 2016-07-05 Richard Biener <rguenther@suse.de>
2074
2075 * tree-loop-distribution.c (distribute_loop): Fix issue with
2076 the cost model loop.
2077
2078 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2079
2080 * config/arm/neon-testgen.ml: Delete.
2081 * config/arm/neon.ml: Delete.
2082
2083 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2084
2085 PR c++/71739
2086 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2087 directly using TREE_PURPOSE.
2088
2089 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2090
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.
2097
2098 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2099
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.
2104
2105 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2106 Jeff Law <law@redhat.com>
2107
2108 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2109 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2110
2111 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2112
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.
2119
2120 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2121
2122 PR target/63874
2123 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2124 typo in comment. Only force to memory if it is a weak
2125 external reference.
2126
2127 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2128 Jiong Wang <jiong.wang@arm.com>
2129
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".
2144
2145 2016-07-04 Jan Beulich <jbeulich@suse.com>
2146
2147 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2148
2149 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2150
2151 PR target/71720
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.
2155
2156 2016-07-01 Jan Beulich <jbeulich@suse.com>
2157
2158 * varasm.c (get_variable_section): Validate initializer in
2159 named .bss-like sections.
2160
2161 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2162
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.
2166
2167 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2168
2169 PR target/71698
2170 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2171 Disallow TDmode values.
2172
2173 2016-07-01 Alan Modra <amodra@gmail.com>
2174
2175 PR rtl-optimization/71709
2176 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2177 being set, not referenced.
2178
2179 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2180
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.
2184
2185 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2186
2187 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2188 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2189
2190 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2191
2192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2193 for NULL decl.
2194
2195 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2196
2197 PR target/71677
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
2202 instructions.
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.
2210
2211 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2212
2213 PR tree-optimization/71707
2214 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2215 strinfo even for ADDR_EXPR ptr.
2216
2217 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2218
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
2265 of this mask.
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
2268 non-zero.
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
2287 functions.
2288
2289 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2290
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.
2297
2298 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2299 James Greenhalgh <james.greenhalgh@arm.com>
2300
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):
2314 New intrinsics.
2315
2316 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2317 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2318
2319 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2320 New define_insn.
2321 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2322
2323 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2324
2325 PR driver/71651
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
2330 RejectNegative.
2331 * opts.h (add_misspelling_candidates): Add "option" param.
2332
2333 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2334
2335 PR middle-end/71693
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.
2340
2341 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2342
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 *>):
2350 ...here.
2351
2352 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2353
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
2358 under ISA 3.0.
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.
2372
2373 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
2374
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.
2381
2382 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
2383
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.
2390
2391 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
2392
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.
2397
2398 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
2399
2400 PR tree-optimization/71655
2401 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2402 types when swapping operands.
2403
2404 2016-06-29 Martin Liska <mliska@suse.cz>
2405
2406 PR middle-end/71585
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.
2410
2411 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2412
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.
2418
2419 2016-06-29 Jakub Jelinek <jakub@redhat.com>
2420
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
2432 get_addr_stridx.
2433
2434 2016-06-29 Richard Biener <rguenther@suse.de>
2435
2436 PR rtl-optimization/68961
2437 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2438
2439 2016-06-29 Richard Biener <rguenther@suse.de>
2440
2441 PR middle-end/71002
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.
2445
2446 2016-07-29 Richard Biener <rguenther@suse.de>
2447
2448 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2449 precision not matching mode precision.
2450
2451 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
2452
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.
2459
2460 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR middle-end/71626
2463 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2464 a constant, force its SUBREG_REG into memory or register instead
2465 of whole op1.
2466
2467 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2468
2469 PR target/58655
2470 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2471 * doc/invoke.texi (AVR Options): Document it.
2472
2473 2016-06-28 Walter Lee <walt@tilera.com>
2474
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.
2479
2480 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2481
2482 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2483 for big-endian BIT_FIELD_REF.
2484
2485 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2486
2487 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2488 ('size' attribute): Add '128'.
2489 Include power9.md.
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
2506 htmsimple.
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
2526 reordering.
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
2534 variables.
2535
2536 2016-06-28 Richard Biener <rguenther@suse.de>
2537
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.
2544
2545 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2546
2547 * Makefile.in: Don't cat ../stage_current if it does not exist.
2548
2549 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2550 last argument is a bit-field.
2551
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.
2556
2557 PR middle-end/66867
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
2563 last argument.
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.
2576
2577 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2578
2579 PR target/71670
2580 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2581 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2582
2583 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2584
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
2607 type to veclogical.
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,
2626 vecmove.
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,
2634 veccmpfx.
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
2650 fpsimple.
2651 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2652
2653 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2654
2655 PR target/71656
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
2662 support.
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.
2672
2673 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
2674
2675 PR target/70902
2676 PR target/71453
2677 PR target/71555
2678 PR target/71596
2679 PR target/71657
2680 * config/i386/i386.c (ix86_spill_class): Disable condition to
2681 always return NO_REGS.
2682
2683 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2684
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.
2693
2694 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
2695
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.
2701
2702 2016-06-25 Jakub Jelinek <jakub@redhat.com>
2703
2704 PR tree-optimization/71643
2705 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2706 EH preds.
2707
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.
2710
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.
2717
2718 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2719
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.
2724
2725 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2726
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
2730 predictor.
2731 * predict.def (PRED_RECURSIVE_CALL): New.
2732
2733 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2734
2735 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2736 (BU_FLOAT128_1): Likewise.
2737 (FABSQ): 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.
2763
2764 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2765
2766 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2767 PRIu64 instead of lu.
2768
2769 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
2770
2771 PR debug/71642
2772 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2773 copy the type name.
2774
2775 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2776
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.
2781
2782 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
2783
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
2798 is 1.
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.
2803
2804 2016-06-24 Martin Liska <mliska@suse.cz>
2805
2806 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2807 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2808 few functions.
2809 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2810 argument to true if the expected number of iterations is
2811 loop-based.
2812
2813 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
2814
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.
2821
2822 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2823
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.
2827
2828 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2829
2830 * internal-fn.c (expand_arith_set_overflow): New function.
2831 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2832 Use it.
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.
2841
2842 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2843 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2844
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.
2854
2855 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
2856
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.
2861
2862 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
2863
2864 PR target/66232
2865 PR target/67400
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,
2874 defined to 0.
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.
2889
2890 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
2891
2892 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2893
2894 2016-06-23 Andi Kleen <ak@linux.intel.com>
2895
2896 * Makefile.in: Regenerate.
2897 * doc/install.texi: Document autoprofiledbootstrap.
2898
2899 2016-06-23 Andi Kleen <ak@linux.intel.com>
2900
2901 * config/i386/gcc-auto-profile: New file.
2902
2903 2016-06-23 Martin Liska <mliska@suse.cz>
2904
2905 PR middle-end/71619
2906 * predict.c (predict_loops): Revert the hunk that was removed
2907 in r237103.
2908
2909 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
2910
2911 * config.gcc: Add support for arm*-*-phoenix* targets.
2912 * config/arm/t-phoenix: New.
2913 * config/phoenix.h: New.
2914
2915 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
2916 H.J. Lu <hongjiu.lu@intel.com>
2917
2918 PR target/67400
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.
2932
2933 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
2934
2935 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2936
2937 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2938
2939 PR c/70339
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.
2947
2948 2016-06-22 Nick Clifton <nickc@redhat.com>
2949
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.
2961
2962 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2963
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.
2987
2988 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
2989
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.
2995
2996 2016-06-22 Andreas Schwab <schwab@suse.de>
2997
2998 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
2999 Remove declaration.
3000
3001 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
3002
3003 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3004
3005 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3006
3007 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3008 print FLAGS_REG.
3009
3010 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3011
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.
3024
3025 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3026
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
3034 -mcpu and -mtune.
3035
3036 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3037
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.
3044
3045 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3046
3047 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3048
3049 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3050
3051 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3052 (do_rewrite): likewise.
3053
3054 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3055
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.
3080
3081 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3082
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.
3087
3088 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3089
3090 * config.gcc: Remove m32r-rtems support.
3091 * config/m32r/rtems.h: Remove.
3092
3093 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3094
3095 * config.gcc: Remove h8300-rtems support.
3096 * config/h8300/rtems.h: Remove.
3097 * config/h8300/t-rtems: Remove.
3098
3099 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3100
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.
3106
3107 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3108
3109 * config.gcc: Remove support for openbsd 2 and 3.
3110 * config/openbsd-oldgas.h: Remove.
3111
3112 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3113
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.
3121
3122 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3123
3124 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3125 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3126 not defined.
3127
3128 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3129
3130 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3131 they are both PLACEHOLDER_EXPRs.
3132
3133 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3134
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.
3138
3139 2016-06-21 Martin Liska <mliska@suse.cz>
3140
3141 * predict.c (force_edge_cold): Replace imposisble with
3142 impossible.
3143
3144 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3145
3146 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3147 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3148
3149 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3150
3151 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3152
3153 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3154 Ilya Enkovich <ilya.enkovich@intel.com>
3155
3156 PR target/71549
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.
3162
3163 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3164
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.
3168
3169 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3170
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.
3174
3175 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3176
3177 PR target/30417
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:...}.
3181
3182 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3183
3184 PR target/71103
3185 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3186 constant addresses if can_create_pseudo_p.
3187
3188 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3189
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
3193 it.
3194
3195 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3196
3197 PR middle-end/71581
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,
3202 punt.
3203
3204 PR rtl-optimization/71591
3205 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3206 don't run any tests.
3207
3208 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3209
3210 PR target/71571
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".
3214
3215 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3216
3217 PR target/71559
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.
3221
3222 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3223
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.
3235
3236 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3237
3238 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3239 costs relative to the cost of a register move.
3240
3241 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3242
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.
3251
3252 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3253
3254 * config/aarch64/aarch64.md
3255 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3256 iterators.
3257 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3258 attributes.
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
3267 rather than BINOP.
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.
3271
3272 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3273
3274 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3275 costs relative to the cost of a register move.
3276
3277 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3278
3279 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3280 Allow scalar/single vector modes to be tieable.
3281
3282 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3283
3284 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3285
3286 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3287
3288 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3289 "alignement".
3290 * tree.h (TYPE_ALIGN): Likewise.
3291
3292 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3293
3294 PR target/71103
3295 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3296
3297 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3298
3299 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3300 literal" build warnings.
3301 (avr_print_operand_address): Dito.
3302
3303 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3304
3305 PR target/71375
3306 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3307 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3308
3309 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3310
3311 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3312
3313 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3314
3315 PR bootstrap/71435
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.
3319
3320 2016-06-17 DJ Delorie <dj@redhat.com>
3321
3322 PR target/71338
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.
3328
3329 2016-06-17 Martin Liska <mliska@suse.cz>
3330
3331 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3332
3333 2016-06-17 Martin Liska <mliska@suse.cz>
3334
3335 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3336
3337 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3338
3339 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3340 __FAST_MATH__.
3341 (vaddq_f32): Likewise.
3342 (vmul_f32): Likewise.
3343 (vmulq_f32): Likewise.
3344 (vsub_f32): Likewise.
3345 (vsubq_f32): Likewise.
3346
3347 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3348
3349 PR tree-optimization/71347
3350 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3351 cost for all uses in group.
3352
3353 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3354
3355 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3356 insert gimple seq if it's not empty.
3357
3358 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3359
3360 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3361 member OFFSET.
3362 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3363 rather than OFFSET.
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
3368 DR_OFFSET directly.
3369
3370 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
3371
3372 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3373
3374 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
3375
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.
3382
3383 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3384
3385 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3386
3387 2016-06-16 Martin Liska <mliska@suse.cz>
3388
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.
3394
3395 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3396
3397 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3398 with base of reference to struct.
3399
3400 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3401
3402 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3403
3404 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3405
3406 PR target/71151
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.
3413
3414 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
3415
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.
3424
3425 2016-06-16 Martin Liska <mliska@suse.cz>
3426
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.
3430
3431 2016-06-16 Martin Liska <mliska@suse.cz>
3432
3433 * predict.def: Add 'Fortran' to display text of all
3434 PRED_FORTRAN_* predictors.
3435
3436 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3437
3438 PR target/71242
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.
3446
3447 2016-06-16 Nick Clifton <nickc@redhat.com>
3448
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.
3455
3456 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
3457
3458 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3459 of comparsions in the last iteration.
3460
3461 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3462 Joern Rennecke <joern.rennecke@embecosm.com>
3463
3464 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3465 addresses.
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
3470 GOTOFFPC.
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.
3476
3477 2016-06-16 Martin Liska <mliska@suse.cz>
3478
3479 * predict.def: Define a new predictor.
3480
3481 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3482
3483 * config/arc/arc.opt (mtp-regno): Update text.
3484
3485 2016-06-16 Renlin Li <renlin.li@arm.com>
3486
3487 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3488
3489 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3490
3491 PR target/71554
3492 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3493 (setcc + and peephole2): Likewise.
3494
3495 PR rtl-optimization/71532
3496 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3497 memory slots.
3498
3499 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3500
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
3507 value.
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
3515 comments.
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
3519 registers.
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.
3532 (lfiwzx): Likewise.
3533 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3534 alternative.
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
3543 read.
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
3552 wB constraint.
3553
3554 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3555
3556 PR target/67353
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.
3563
3564 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3565
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.
3569
3570 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3571
3572 PR middle-end/71529
3573 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3574 DECL_CONTEXT for copied arguments.
3575
3576 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3577
3578 PR tree-optimization/71483
3579 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3580 for slp
3581
3582 2016-06-15 Martin Liska <mliska@suse.cz>
3583
3584 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3585 instead of predict_edge w/o a probability.
3586
3587 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3588
3589 PR tree-optimization/71439
3590 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3591 live PHIs.
3592
3593 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3594
3595 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3596 register subregs in SET_SRC.
3597
3598 2016-06-15 Richard Biener <rguenther@suse.de>
3599
3600 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3601 store restrictions.
3602
3603 2016-06-15 Richard Biener <rguenther@suse.de>
3604
3605 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3606 not consider dependences between accesses that belong to the
3607 same group.
3608 (vect_analyze_data_ref_dependences): Do not analyze read-read
3609 or self-dependences.
3610
3611 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3612
3613 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3614 spellcheck.h.
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
3619 struct.
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.
3627
3628 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3629
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.
3642
3643 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3644
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.
3649
3650 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3651
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.
3656
3657 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
3658
3659 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3660 FreeBSD 11 and above.
3661
3662 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
3663
3664 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3665
3666 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3667
3668 * expmed.h: Close parenthesis in "at your option" in copyright
3669 boilerplate.
3670 * lower-subreg.h: Likewise.
3671
3672 2016-06-14 Richard Biener <rguenther@suse.de>
3673
3674 PR middle-end/71526
3675 * genmatch.c (expr::gen_transform): Use in_type for comparisons
3676 if available.
3677
3678 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3679
3680 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3681 New function.
3682 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
3683 mask+shift version.
3684 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3685 New prototype.
3686 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3687 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3688
3689 2016-06-14 Richard Biener <rguenther@suse.de>
3690
3691 PR tree-optimization/71522
3692 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3693 copying into float copying.
3694
3695 2016-06-14 Jakub Jelinek <jakub@redhat.com>
3696
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.
3700
3701 2016-06-14 Richard Biener <rguenther@suse.de>
3702
3703 PR middle-end/71310
3704 PR bootstrap/71510
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.
3709
3710 2016-06-14 Richard Biener <rguenther@suse.de>
3711
3712 PR tree-optimization/71521
3713 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3714 division int_const_binop against zero divisor.
3715
3716 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3717
3718 * config/i386/i386.md (signbittf2): New expander.
3719 * config/i386/sse.md (ptesttf2): New insn pattern.
3720
3721 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3722
3723 PR bootstrap/71481
3724 * input.c (selftest::test_reading_source_line): Avoid reading from
3725 __FILE__ by creating a tempfile with known content and reading
3726 from that instead.
3727
3728 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3729
3730 * pretty-print.c (assert_pp_format_colored): Skip the test if
3731 GCC_COLORS is set.
3732 (test_pp_format): Remove comment about GCC_COLORS.
3733
3734 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3735
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
3748 than file and line.
3749 (selftest::fail): Likewise. Print the function name.
3750 (selftest::fail_formatted): Likewise.
3751 (selftest::assert_streq): Use a selftest::location rather than
3752 file and line.
3753 * selftest.h (selftest::location): New struct.
3754 (SELFTEST_LOCATION): New macro.
3755 (selftest::pass): Accept a const location & rather than file
3756 and line.
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.
3767
3768 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3769
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.
3775
3776 2016-06-13 Jeff Law <law@redhat.com>
3777
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.
3785
3786 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3787 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
3788
3789 [AArch64] Emit division using the Newton series
3790
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.
3803
3804 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3805 Wilco Dijkstra <wilco.dijkstra@arm.com>
3806
3807 [AArch64] Emit square root using the Newton series
3808
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.
3827
3828 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3829
3830 [AArch64] Add more choices for the reciprocal square root approximation
3831
3832 Allow a target to prefer such operation depending on the operation mode.
3833
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
3854 "tune_params".
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.
3858
3859 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3860
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.
3864
3865 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3866
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
3870 byte.
3871 (vec_absdh): New macro for vector absolute difference unsigned
3872 half-word.
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
3878 definition.
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.
3889
3890 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
3891
3892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3893 update shared_lookup_references only once after changing operands.
3894
3895 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
3896
3897 PR middle-end/71373
3898 * tree-nested.c (convert_nonlocal_omp_clauses)
3899 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3900
3901 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3902 * tree.def (CASE_LABEL_EXPR): Likewise.
3903
3904 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3905
3906 PR bootstrap/71481
3907 * input.c (test_builtins): Fix an assertion.
3908
3909 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3910
3911 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3912 (paritysi2): Ditto.
3913 (isinfxf2): Ditto.
3914 (isinf<mode>2): Ditto.
3915
3916 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3917
3918 * ggc-tests.c (test_finalization): Only test need_finalization_p
3919 for GCC_VERSION >= 4003.
3920
3921 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3922
3923 * config/s390/vecintrin.h: Fix file description in comment.
3924
3925 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3926
3927 * config/s390/s390-builtin-types.def: Change builtin type naming
3928 scheme to match builtin-types.def.
3929
3930 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
3931
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.
3936
3937 2016-06-13 Alan Hayward <alan.hayward@arm.com>
3938
3939 PR tree-optimization/71416
3940 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3941 multiple entries
3942
3943 2016-06-13 Martin Liska <mliska@suse.cz>
3944
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.
3949
3950 2016-06-13 Richard Biener <rguenther@suse.de>
3951
3952 PR tree-optimization/71505
3953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3954 assert match comment.
3955
3956 2016-06-13 Marek Polacek <polacek@redhat.com>
3957
3958 PR middle-end/71476
3959 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3960 gimplify_switch_expr.
3961 (warn_switch_unreachable_r): New function.
3962
3963 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3964
3965 PR target/71379
3966 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3967 one.
3968
3969 2016-06-13 Richard Biener <rguenther@suse.de>
3970
3971 PR middle-end/64516
3972 * fold-const.c (fold_unary_loc): Preserve alignment when
3973 folding a VIEW_CONVERT_EXPR into a MEM_REF.
3974
3975 2016-06-13 Martin Liska <mliska@suse.cz>
3976
3977 PR sanitizer/71458
3978 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3979 w/ -fsanitize=bounds.
3980
3981 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3982
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.
3987
3988 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
3989
3990 PR target/71241
3991 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
3992 New primitive type.
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
3999 builtin functions.
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.
4003
4004 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4005
4006 PR target/71061
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"
4012 attribute.
4013 (*pop_multiple_with_writeback_and_return): Likewise.
4014 (*pop_multiple_with_return): Likewise.
4015
4016 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4017
4018 PR middle-end/71310
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.
4022
4023 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4024
4025 PR middle-end/71478
4026 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4027 vector integer type.
4028
4029 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4030
4031 PR middle-end/71494
4032 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4033 without LABEL_DECL, set *handled_ops_p to false instead of true.
4034
4035 2016-06-10 Martin Sebor <msebor@redhat.com>
4036
4037 PR c/71392
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
4041 them.
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.
4050
4051 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4052
4053 * config/arm/arm.h (pool_vector_label,
4054 return_used_this_function): Remove.
4055
4056 2016-06-10 Jeff Law <law@redhat.com>
4057
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.
4066
4067 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4068
4069 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4070 * predict.def (PRED_LOOP_BRANCH): Remove.
4071
4072 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4073
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.
4080
4081 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4082
4083 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4084
4085 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4086
4087 PR sanitizer/71480
4088 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4089 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4090
4091 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4092
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.
4097
4098 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4099
4100 PR inline-asm/68843
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.
4104
4105 2016-06-10 Richard Biener <rguenther@suse.de>
4106
4107 * targhooks.c (default_builtin_vectorization_cost): Adjust
4108 vec_construct cost.
4109
4110 2016-06-10 Richard Biener <rguenther@suse.de>
4111
4112 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4113 to fold the RHS to a constant if possible.
4114
4115 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4116
4117 PR middle-end/71373
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.
4122
4123 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4124 OMP_CLAUSE_TILE.
4125 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4126
4127 * omp-low.c (scan_sharing_clauses): Don't expect
4128 OMP_CLAUSE__CACHE_.
4129
4130 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4131
4132 PR tree-optimization/71407
4133 PR tree-optimization/71416
4134 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4135 BIT_FIELD_REF type.
4136
4137 2016-06-10 Richard Biener <rguenther@suse.de>
4138
4139 PR middle-end/71477
4140 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4141
4142 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4145
4146 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4147 Jiong Wang <jiong.wang@arm.com>
4148
4149 PR rtl-optimization/70751
4150 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4151 spilled into memory.
4152
4153 2016-06-09 Jonathan Yong <10walls@gmail.com>
4154
4155 Revert:
4156 2015-09-21 Jonathan Yong <10walls@gmail.com>
4157
4158 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4159 sysroot/usr/lib/32api for additional win32 libraries,
4160 fixes failing Cygwin bootstrapping.
4161
4162 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4163
4164 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4165 Delete.
4166
4167 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4168
4169 PR bootstrap/71471
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.
4173
4174 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4175
4176 * config/mips/mips.c (mips_output_jump): Fix formatting.
4177
4178 2016-06-09 Richard Biener <rguenther@suse.de>
4179
4180 PR tree-optimization/71462
4181 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4182 removed blocks.
4183
4184 2016-06-09 Martin Liska <mliska@suse.cz>
4185
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.
4194
4195 2016-06-09 Martin Liska <mliska@suse.cz>
4196
4197 * predict.c (filter_predictions): New function.
4198 (remove_predictions_associated_with_edge): Use the filter
4199 function.
4200 (equal_edge_p): New function.
4201
4202 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4203
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.
4208
4209 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4210
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.
4228
4229 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4230
4231 * config/arm/cortex-a57.md (cortex_a57_alu):
4232 Handle csel type.
4233
4234 2016-06-08 Martin Sebor <msebor@redhat.com>
4235 Jakub Jelinek <jakub@redhat.com>
4236
4237 PR c++/70507
4238 PR c/68120
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.
4247
4248 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4249
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).
4252
4253 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4254
4255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4256 Rewrite, looking one level down for records and arrays.
4257
4258 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4259
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.
4270
4271 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4272
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.
4277
4278 2016-06-08 Richard Biener <rguenther@suse.de>
4279
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.
4283
4284 2016-06-08 Richard Biener <rguenther@suse.de>
4285
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.
4290
4291 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4292 Richard Biener <rguenther@suse.de>
4293
4294 PR c++/71448
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.
4298
4299 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4300
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.
4306
4307 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4308
4309 PR debug/71432
4310 PR ada/71413
4311 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4312
4313 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4314
4315 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4316 VDQF.
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
4322 builtin.
4323 (vpadds_f32): Likewise.
4324 (vpaddq_f32): Likewise.
4325 (vpaddq_f64): Likewise.
4326
4327 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4328
4329 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4330 VALLF.
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.
4335 Use builtin.
4336 (vabdd_f64): Likewise.
4337 (vabd_f32): Likewise.
4338 (vabd_f64): Likewise.
4339 (vabdq_f32): Likewise.
4340 (vabdq_f64): Likewise.
4341
4342 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4343
4344 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4345 VALLF.
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
4350 builtin.
4351 (vrsqrtsd_f64): Likewise.
4352 (vrsqrts_f32): Likewise.
4353 (vrsqrts_f64): Likewise.
4354 (vrsqrtsq_f32): Likewise.
4355 (vrsqrtsq_f64): Likewise.
4356
4357 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4358
4359 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4360 VALLF.
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
4365 builtin.
4366 (vrsqrted_f64): Likewise.
4367 (vrsqrte_f32): Likewise.
4368 (vrsqrte_f64): Likewise.
4369 (vrsqrteq_f32): Likewise.
4370 (vrsqrteq_f64): Likewise.
4371
4372 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4373
4374 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4375 (ucvtf): Likewise.
4376 (fcvtzs): Likewise.
4377 (fcvtzu): Likewise.
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.
4382 Use builtin.
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.
4398
4399 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4400
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.
4407 (ucvtf): Likewise.
4408 (fcvtzs): Likewise.
4409 (fcvtzu): Likewise.
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.
4419 Use builtin.
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
4428 mapping.
4429 (FCVT_TARGET): Likewise.
4430 (FCVT_FIXED2F): New iterator.
4431 (FCVT_F2FIXED): Likewise.
4432 (fcvt_fixed_insn): New define_int_attr.
4433
4434 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4435
4436 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4437 some statements was removed.
4438
4439 2016-06-08 Alan Hayward <alan.hayward@arm.com>
4440
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.
4462
4463 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4464
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.
4485
4486 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
4487
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.
4497
4498 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
4499
4500 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4501 -mno-htm.
4502
4503 2016-06-07 David Malcolm <dmalcolm@redhat.com>
4504
4505 * spellcheck.c (selftest::test_find_closest_string): New function.
4506 (spellcheck_c_tests): Call the above.
4507
4508 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4509
4510 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4511
4512 2016-06-07 Jakub Jelinek <jakub@redhat.com>
4513
4514 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4515 Yv=Yv,C alternatives.
4516
4517 2016-06-07 Richard Biener <rguenther@suse.de>
4518
4519 PR c/61564
4520 * common.opt (ffast-math): Make Optimization.
4521
4522 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4523 Prachi Godbole <prachi.godbole@imgtec.com>
4524
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.
4528
4529 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4530
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;
4536 fix formatting.
4537
4538 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4539
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):
4545 Use the above.
4546
4547 2016-06-07 Richard Biener <rguenther@suse.de>
4548
4549 PR tree-optimization/71428
4550 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4551 BIT_FIELD_REF op vs. load.
4552
4553 2016-06-07 Richard Biener <rguenther@suse.de>
4554
4555 PR middle-end/71423
4556 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4557 for signed ops.
4558
4559 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4560
4561 * config/pa/pa.md (call): Generate indirect long calls to non-local
4562 functions on TARGET_64BIT.
4563 (call_value): Likewise.
4564
4565 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4566
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.
4570
4571 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4572
4573 PR middle-end/71408
4574 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4575 propagate_op_to_single_use.
4576
4577 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4578
4579 PR middle-end/71281
4580 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4581
4582 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4583
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.
4602 (rep_mov): Ditto.
4603 (strset_singleop): Ditto.
4604 (rep_stos): Ditto.
4605 (cmpstrnqi_nz_1): Ditto.
4606 (cmpstrnqi_1): Ditto.
4607 (strlenqi_1): Ditto.
4608
4609 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4610
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.
4615
4616 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4617
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
4722 template.
4723 (selftest::wide_int_cc_tests): New function.
4724
4725 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4726
4727 PR middle-end/37780
4728 * ifcvt.c (noce_try_ifelse_collapse): New function.
4729 Declare prototype.
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.
4734
4735 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4736
4737 PR middle-end/37780
4738 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4739 define_insn_and_split.
4740
4741 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4742
4743 PR middle-end/37780
4744 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4745
4746 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
4747
4748 PR c/24414
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.
4764
4765 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4766
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
4782 implemented ones.
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
4795 PROCESSOR_NIAGARA7.
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
4814 VIS4 4.0.
4815 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4816 UltraSparc M7.
4817 * config/sparc/sparc.opt (sparc_processor_type): New value
4818 niagara7.
4819 * config/sparc/visintrin.h (__attribute__): Prototypes for the
4820 VIS4 builtins.
4821 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4822 -mvis4.
4823 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4824 VIS4 builtins.
4825
4826 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
4827
4828 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4829
4830 2016-06-06 Richard Biener <rguenther@suse.de>
4831
4832 PR tree-optimization/71398
4833 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4834 remove edges.
4835
4836 2016-06-05 James Bowman <james.bowman@ftdichip.com>
4837
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.
4843
4844 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
4845
4846 PR target/71389
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.
4850
4851 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
4852
4853 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4854 ATTRIBUTE_UNUSED.
4855
4856 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4857
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.
4864
4865 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4866
4867 * cfg.c (check_bb_profile): Do not report mismatched profiles when
4868 only edges out of BB are EH edges.
4869
4870 2016-06-04 Martin Sebor <msebor@redhat.com>
4871 Marcin Baczyński <marbacz@gmail.com>
4872
4873 PR c/48116
4874 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4875 a void expression in a void function.
4876
4877 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4878
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.
4884
4885 2016-06-04 Jakub Jelinek <jakub@redhat.com>
4886
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.
4891
4892 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4893
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.
4897
4898 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4899
4900 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4901 for reg+reg addressing mode.
4902
4903 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4904
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.
4908
4909 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4910
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.
4915
4916 2016-06-03 Joseph Myers <joseph@codesourcery.com>
4917
4918 PR target/71276
4919 PR target/71277
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.
4946
4947 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
4948 Julia Koval <julia.koval@intel.com>
4949
4950 PR target/66960
4951 PR target/67630
4952 PR target/67634
4953 PR target/67841
4954 PR target/68037
4955 PR target/68618
4956 PR target/68661
4957 PR target/69575
4958 PR target/69596
4959 PR target/69734
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
4973 handler.
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
4979 interrupt handler.
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
5001 attributes.
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
5005 avoid DRAP.
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.
5013
5014 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5015
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
5020 and use it.
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
5034 functions for it.
5035 (class op_by_pieces_d): New.
5036 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5037 functions for it.
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
5046 functions.
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
5061 COMPARE_BY_PIECES.
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.
5070
5071 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5072
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
5077
5078 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5079
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.
5091
5092 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5093
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.
5097
5098 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5099
5100 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5101
5102 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5103
5104 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5105
5106 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5107
5108 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5109
5110 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5111
5112 PR middle-end/71387
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.
5117
5118 2016-06-02 Jeff Law <law@redhat.com>
5119
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.
5123
5124 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5125
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".
5130
5131 2016-06-02 Martin Liska <mliska@suse.cz>
5132
5133 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5134
5135 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5136 Julia Koval <julia.koval@intel.com>
5137
5138 * function.c (assign_parm_setup_stack): Force source into a
5139 register if needed.
5140 * target.def (function_incoming_arg): Update documentation to
5141 allow arbitrary address computation based on hard register.
5142 * doc/tm.texi: Regenerated.
5143
5144 2016-06-02 Martin Liska <mliska@suse.cz>
5145
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.
5149
5150 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5151
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.
5155
5156 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5157
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.
5160
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.
5164
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.
5169
5170 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5171
5172 PR target/70830
5173 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5174
5175 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5176
5177 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5178
5179 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5180
5181 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5182 from int to unsigned.
5183
5184 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5185
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.
5192
5193 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5194
5195 PR target/71186
5196 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5197 for loading up all 0's or all 1's.
5198
5199 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5200
5201 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5202
5203 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5204
5205 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5206 extension.
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.
5210
5211 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5212
5213 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5214 the factor for live Phi nodes.
5215
5216 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5217
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.
5222
5223 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5224
5225 PR middle-end/71371
5226 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5227 around creation of the temporary.
5228
5229 2016-06-01 Richard Biener <rguenther@suse.de>
5230
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.
5239
5240 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5241
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.
5246 (vslv): New insn.
5247 (vsrv): New insn.
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
5253 new builtin.
5254 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5255 functions.
5256
5257 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5258 Jocelyn Mayer <l_indien@magic.fr>
5259
5260 PR target/67310
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.
5267
5268 2016-06-01 Nathan Sidwell <nathan@acm.org>
5269
5270 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5271 undefined weak.
5272
5273 2016-06-01 Richard Biener <rguenther@suse.de>
5274
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.
5293
5294 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5295
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.
5300
5301 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5302
5303 * tree-core.h (enum omp_clause_code): Remove
5304 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5305
5306 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5307
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.
5312
5313 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5314
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.
5319
5320 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5321
5322 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5323 into account live statements for mask producers.
5324
5325 2016-06-01 Richard Biener <rguenther@suse.de>
5326
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.
5330
5331 2016-06-01 Richard Biener <rguenther@suse.de>
5332
5333 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5334 (relational patterns): Use :c to avoid pattern duplications.
5335
5336 2016-06-01 Richard Biener <rguenther@suse.de>
5337
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
5342 operands.
5343 (lower_commutative): Adjust.
5344 (dt_simplify::gen): Do not pass artificial operators to gen
5345 functions.
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.
5350
5351 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5352
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.
5357
5358 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5359
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
5363 PRED_LOOP_EXIT.
5364
5365 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5366
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
5370 loop peeling.
5371
5372 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5373
5374 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5375 default implementation.
5376
5377 2016-05-31 Nathan Sidwell <nathan@acm.org>
5378
5379 * dwarf2out.c (cur_line_info_table): Add GTY marker.
5380
5381 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5382
5383 * config/sh/constraints.md (b): Remove constraint.
5384 * config/sh/predicates.md (arith_reg_operand): Remove
5385 TARGET_REGISTER_P.
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.
5399
5400 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5401
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.
5408
5409 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5410
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.
5415
5416 2016-05-31 Marek Polacek <polacek@redhat.com>
5417
5418 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5419
5420 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5421
5422 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5423 aarch64_fusion_enabled_p to check for fusion capabilities.
5424
5425 2016-05-31 Richard Biener <rguenther@suse.de>
5426
5427 PR tree-optimization/71352
5428 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5429 minus one and a negate.
5430
5431 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5432
5433 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5434 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5435 Delete prototype.
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
5439 directly.
5440 (*aarch64_be_movoi): Likewise.
5441 (*aarch64_be_movci): Likewise.
5442 (*aarch64_be_movxi): Likewise.
5443
5444 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5445
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.
5449
5450 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
5451
5452 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5453 attribute __unused__.
5454
5455 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5456
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.
5463
5464 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
5465
5466 PR target/71346
5467 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5468 `Yv' for scalar operand.
5469
5470 2016-05-31 Tom de Vries <tom@codesourcery.com>
5471
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.
5475
5476 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5477
5478 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5479 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5480 target.
5481
5482 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5483
5484 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5485 tune_64.
5486 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5487 support on SPARC.
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.
5491
5492 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5493
5494 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5495
5496 2016-05-30 Andi Kleen <ak@linux.intel.com>
5497
5498 * auto-profile.c (read_profile): Replace asserts with errors
5499 when file does not exist.
5500 * gcov-io.c (gcov_read_words): Dito.
5501
5502 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5503
5504 * tree-cfg.c (print_loop): Print likely upper bounds.
5505
5506 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5507
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.
5514
5515 2016-05-30 Martin Liska <mliska@suse.cz>
5516
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.
5520
5521 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5522 Marc Glisse <marc.glisse@inria.fr>
5523
5524 PR tree-optimization/71289
5525 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5526
5527 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5528
5529 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5530
5531 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5532
5533 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5534 for peeled copies; avoid underflow when updating estimates; correctly
5535 scale loop profile.
5536
5537 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5538
5539 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5540 r236875. Corrected oe3 to oe2 as obvious.
5541
5542 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5543
5544 PR middle-end/71269
5545 PR middle-end/71252
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.
5550
5551 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5552
5553 PR middle-end/71252
5554 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5555 all fields including stmt_to_insert are swapped.
5556
5557 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5558
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
5562 updating.
5563 (canonicalize_loop_induction_variables): Fix formating.
5564
5565 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5566
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.
5570
5571 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5572
5573 * tree-vect-loop.c (vect_analyze_loop_2): Use
5574 likely_max_stmt_executions_int.
5575
5576 2016-05-30 Tom de Vries <tom@codesourcery.com>
5577
5578 PR tree-optimization/69067
5579 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5580
5581 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5582
5583 PR target/71245
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.
5587
5588 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5589
5590 * predict.c (maybe_hot_frequency_p): Avoid division.
5591
5592 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5593
5594 * doc/install.texi: Use https for shop.fsf.org.
5595
5596 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5597
5598 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5599 likely_max_stmt_executions_int.
5600
5601 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5602
5603 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5604 likely_max_stmt_executions_int.
5605
5606 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5607
5608 * profile.c (compute_branch_probabilities): Do not report hitrates
5609 here.
5610 (branch_prob): Report hitrates here.
5611 * predict.c (gimple_predict_edge): Do not assert profile status;
5612 fix formatting issues.
5613
5614 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5615
5616 * predict.c (edge_predicted_by_p): New function.
5617 (predict_paths_for_bb): Do not put multiple predictions of the same type
5618 on one edge.
5619
5620 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5621
5622 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5623 commit.
5624
5625 2016-05-28 Alan Modra <amodra@gmail.com>
5626
5627 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5628
5629 2016-05-28 Alan Modra <amodra@gmail.com>
5630
5631 PR rtl-optimization/71275
5632 * ira.c (ira): Free dominance info.
5633
5634 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5635
5636 * doc/sourcebuild.texi: New address for upstream Go repository.
5637
5638 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5639
5640 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5641 (TARGET_ARM_V7M): Likewise.
5642
5643 2016-05-26 Jeff Law <law@redhat.com>
5644
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
5650 handled elsewhere.
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.
5655
5656 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5657
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.
5675
5676 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
5677
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.
5681
5682 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5683
5684 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5685 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5686 prototype.
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.
5689
5690 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5691
5692 PR target/63596
5693 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5694 tree-stdarg analysis results.
5695 (aarch64_setup_incoming_varargs): Likewise.
5696
5697 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5698
5699 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5700 va_list_gpr_counter_field and va_list_fpr_counter_field.
5701
5702 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
5703
5704 PR67609
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.
5710
5711 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5712
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):
5719 Declare.
5720 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5721 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5722 upper bound.
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
5728 bounds.
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.
5737
5738 2016-05-27 Marek Polacek <polacek@redhat.com>
5739
5740 PR middle-end/71308
5741 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5742
5743 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5744
5745 * config/s390/s390.md (2x risbg splitters): Use
5746 reg_overlap_mentioned_p instead of rtx_equal_p.
5747
5748 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5749
5750 * combine.c (make_compound_operation): Take known zero bits into
5751 account when checking for possible zero_extend.
5752
5753 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5754
5755 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5756 Use const_int_operand for operand 2 predicate. Simplify expand code
5757 as a result.
5758
5759 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5760
5761 PR middle-end/71279
5762 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5763 into comparison.
5764
5765 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5766
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
5771 and CC_SESWPmode.
5772 (aarch64_rtx_costs): Likewise.
5773
5774 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5775
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
5782 available.
5783 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5784 conditional moves where the comparison type is different from move
5785 type.
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
5815 longer used.
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.
5822
5823 2016-05-27 Alan Modra <amodra@gmail.com>
5824
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.
5828
5829 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
5830
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.
5871
5872 2016-05-26 Martin Liska <mliska@suse.cz>
5873
5874 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5875 function.
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.
5885 (new_cost): Remove.
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.
5916
5917 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
5918
5919 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5920 that internal functions will clobber all caller-saved registers.
5921
5922 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5923
5924 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5925 Return a better case_values_threshold when optimizing.
5926
5927 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5928
5929 * config/aarch64/aarch64-simd.md (aarch64_combinez):
5930 Add ? to integer variant.
5931 (aarch64_combinez_be): Likewise.
5932
5933 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5934
5935 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5936 instead of x constraint.
5937 (vcvtps2ph256<mask_name>): Likewise.
5938
5939 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5940 alternative. Formatting fix.
5941
5942 * config/i386/sse.md
5943 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5944 to ...
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.
5950
5951 2016-05-25 Jeff Law <law@redhat.com>
5952
5953 PR tree-optimization/71272
5954 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5955 Update comments. Add test for empty path.
5956
5957 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
5958
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.
5966
5967 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
5968
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.
5972
5973 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5974
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.
5980
5981 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
5982 H.J. Lu <hongjiu.lu@intel.com>
5983
5984 PR target/70738
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.
5996
5997 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5998
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
6002 operations.
6003
6004 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6005
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>):
6028 Rename to ...
6029 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6030 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6031 to ...
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.
6038
6039 2016-05-25 Nick Clifton <nickc@redhat.com>
6040
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.
6047
6048 2016-05-25 Richard Biener <rguenther@suse.de>
6049
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.
6054
6055 2016-05-25 Martin Liska <mliska@suse.cz>
6056
6057 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6058
6059 2016-05-25 Richard Biener <rguenther@suse.de>
6060
6061 PR tree-optimization/71264
6062 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6063 vector type val.
6064
6065 2016-05-25 Martin Liska <mliska@suse.cz>
6066
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.
6070
6071 2016-05-25 Richard Biener <rguenther@suse.de>
6072
6073 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6074 * tree-if-conv.c (pass_data_if_conversion): Use it.
6075
6076 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6077
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.
6081
6082 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6083
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.
6089
6090 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6091
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.
6097
6098 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6099
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
6103 zeros.
6104 (p9v_parity<mode>2): Likewise.
6105 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6106 parity.
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
6110 power9 built-ins.
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.
6122 (VCTZH): Likewise.
6123 (VCTZW): Likewise.
6124 (VCTZD): Likewise.
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
6147 functions.
6148
6149 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6150
6151 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6152 when there is stmt_to_insert.
6153
6154 2016-05-24 Martin Sebor <msebor@redhat.com>
6155
6156 PR c++/71147
6157 * tree.h (complete_or_array_type_p): New inline function.
6158
6159 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6160
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.
6164
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.
6169
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
6185 alternatives.
6186
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.
6193
6194 2016-05-24 Jeff Law <law@redhat.com>
6195
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.
6200
6201 2016-05-24 Marek Polacek <polacek@redhat.com>
6202
6203 PR c/71249
6204 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6205 scope.
6206
6207 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6208
6209 PR c++/71257
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.
6215
6216 2016-05-24 Richard Biener <rguenther@suse.de>
6217
6218 PR tree-optimization/71240
6219 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6220 has integral type.
6221
6222 2016-05-24 Richard Biener <rguenther@suse.de>
6223
6224 PR tree-optimization/71230
6225 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6226
6227 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6228
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
6241 hybrid SLP.
6242 (vectorizable_comparison): Make static. Remove redundant
6243 PURE_SLP_STMT check.
6244 (vect_transform_stmt): Assert that we always have an slp_node
6245 if PURE_SLP_STMT.
6246
6247 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6248
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
6253 against CONST0_RTX.
6254
6255 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6256
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
6262 UINTVAL.
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.
6277
6278 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6279
6280 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6281 with HOST_WIDE_INT_1.
6282 (insv): Likewise.
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
6287 HOST_WIDE_INT_1.
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
6292 HOST_WIDE_INT_1.
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.
6297
6298 2016-05-24 Marek Polacek <polacek@redhat.com>
6299
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.
6307
6308 2016-05-24 Richard Biener <rguenther@suse.de>
6309
6310 PR tree-optimization/71253
6311 * cfganal.h (control_dependences): Make robust against edge
6312 and BB removal.
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
6325 get_edge_src.
6326 (perform_tree_ssa_dce): Adjust.
6327 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6328 get_edge_src.
6329 (pass_loop_distribution::execute): Adjust. Do loop destroying
6330 conditional on changed.
6331
6332 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6333
6334 PR target/69857
6335 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6336 return. Reindent transformation comment and mention the ARM state
6337 behavior.
6338
6339 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6340
6341 PR middle-end/71252
6342 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6343 after build_and_add_sum creates new use stmt.
6344
6345 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6346
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
6350 for load_lanes.
6351
6352 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6353
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
6357 variable.
6358
6359 2016-05-24 Richard Biener <rguenther@suse.de>
6360
6361 PR middle-end/70434
6362 PR c/69504
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.
6367
6368 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6369
6370 PR middle-end/71170
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
6376 to ops vector.
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.
6382
6383 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6384
6385 PR target/71201
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.
6392
6393 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6394 Kelvin Nilsen <kelvin@gcc.gnu.org>
6395
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
6401 ISA 3.0.
6402
6403 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
6404
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)
6415 with TARGET_SSE2.
6416 (*movdf_internal): Use IS_STACK_MODE macro.
6417 (*movsf_internal): Ditto.
6418
6419 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
6420
6421 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6422 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6423
6424 2016-05-23 Jeff Law <law@redhat.com>
6425
6426 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6427 extracted from ...
6428 (fsm_find_control_statement_thread_paths): Call it.
6429
6430 2016-05-23 Martin Jambor <mjambor@suse.cz>
6431
6432 PR ipa/71234
6433 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6434 from_global_constant if t is not NULL.
6435
6436 2016-05-23 Marek Polacek <polacek@redhat.com>
6437
6438 PR c/49859
6439 * common.opt (Wswitch-unreachable): New option.
6440 * doc/invoke.texi: Document -Wswitch-unreachable.
6441 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6442 warning.
6443
6444 2016-05-23 Bin Cheng <bin.cheng@arm.com>
6445
6446 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6447 TMR_INDEX is non-NULL.
6448
6449 2016-05-23 Richard Biener <rguenther@suse.de>
6450
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.
6454
6455 2016-05-23 Martin Jambor <mjambor@suse.cz>
6456
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.
6459
6460 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6461
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
6465 vector boundary.
6466
6467 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
6468
6469 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6470
6471 2016-05-22 Jakub Jelinek <jakub@redhat.com>
6472
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
6476 of 64x2.
6477
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.
6481
6482 * config/i386/sse.md (i128vldq): New mode iterator.
6483 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6484 avx512dq and avx512vl alternatives.
6485
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.
6493
6494 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6495
6496 PR middle-end/40921
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.
6500
6501 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6502
6503 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6504 to computed stack_usage.
6505
6506 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6507
6508 PR target/71103
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.
6511
6512 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
6513
6514 * tree.c (array_at_struct_end_p): Look through MEM_REF.
6515
6516 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6517
6518 PR middle-end/71179
6519 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6520 VECTOR type.
6521
6522 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6523
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.
6527
6528 2016-05-20 Jeff Law <law@redhat.com>
6529
6530 * bitmap.c (bitmap_find_bit): Remove useless test.
6531
6532 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6533
6534 * function.c (thread_prologue_and_epilogue_insns): Commit the
6535 insertion of the epilogue.
6536
6537 2016-05-20 Martin Jambor <mjambor@suse.cz>
6538
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.
6544
6545 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6546
6547 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6548 for naked functions.
6549 (thumb1_expand_prologue): Likewise.
6550
6551 2016-05-20 Nathan Sidwell <nathan@acm.org>
6552
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.
6556
6557 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6558
6559 * calls.c (can_implement_as_sibling_call_p): Mark param
6560 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6561
6562 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6563
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
6567 constants.
6568 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6569 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6570 and CASE_CONST_ANY.
6571
6572 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6573
6574 * config/nvptx/nvptx.md (sincossf3): New pattern.
6575
6576 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6577
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.
6601
6602 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6603
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.
6608
6609 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6610
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.
6616
6617 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6618
6619 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6620 and get_max_loop_iterations_int.
6621
6622 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6623
6624 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6625 realistic upper bounds here.
6626
6627 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6628
6629 PR c++/71210
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.
6634
6635 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6636
6637 PR tree-optimization/71079
6638 PR tree-optimization/71206
6639 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6640
6641 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6642
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.
6649
6650 2016-05-20 Richard Guenther <rguenther@suse.de>
6651
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.
6668
6669 2016-05-20 Richard Biener <rguenther@suse.de>
6670
6671 PR tree-optimization/71185
6672 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6673 register operations.
6674
6675 2016-05-20 Richard Biener <rguenther@suse.de>
6676
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
6684 loop versioning.
6685
6686 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6687
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.
6697
6698 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
6699
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.
6705
6706 2016-05-19 Ryan Burn <contact@rnburn.com>
6707
6708 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6709 * gengtype.c (open_base_files): Add cilk.h to ifiles.
6710
6711 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
6712
6713 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6714 force pending loads from memory.
6715
6716 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
6717
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
6737 configuration.
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
6741 functions.
6742 (builtin_function_type): Remove fatal_error assertion that is no
6743 longer valid.
6744 (rs6000_common_init_builtins): Add support for no-operand built-in
6745 functions.
6746 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6747 definition.
6748 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6749 definition.
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
6753 functions.
6754
6755 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
6756
6757 * tree-vect-loop.c (vect_analyze_loop_2): Use also
6758 max_loop_iterations_int.
6759
6760 2016-05-19 Marek Polacek <polacek@redhat.com>
6761
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.
6765
6766 2016-05-19 Martin Liska <mliska@suse.cz>
6767
6768 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6769 auto_vec instead of vec.
6770
6771 2016-05-19 Martin Liska <mliska@suse.cz>
6772
6773 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6774
6775 2016-05-19 Martin Liska <mliska@suse.cz>
6776
6777 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6778
6779 2016-05-19 Martin Liska <mliska@suse.cz>
6780
6781 * ipa-pure-const.c (set_function_state): Remove an existing
6782 funct_state.
6783 (remove_node_data): Do not free it as it's released
6784 in set_function_state.
6785
6786 2016-05-19 Martin Liska <mliska@suse.cz>
6787
6788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6789 bitmap.
6790
6791 2016-05-19 Martin Liska <mliska@suse.cz>
6792
6793 * omp-simd-clone.c (simd_clone_adjust): Release vector.
6794
6795 2016-05-19 Martin Liska <mliska@suse.cz>
6796
6797 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6798 an auto_vec instead of re-creating it.
6799
6800 2016-05-19 Martin Liska <mliska@suse.cz>
6801
6802 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6803 auto_vec instead of vec.
6804
6805 2016-05-19 Martin Liska <mliska@suse.cz>
6806
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.
6811
6812 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6813
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.
6816
6817 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
6818
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.
6824
6825 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6826
6827 PR target/71056
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.
6831
6832 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
6833
6834 PR sanitizer/64354
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.
6838
6839 2016-05-19 Bin Cheng <bin.cheng@arm.com>
6840
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.
6844
6845 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6846
6847 * function.c (thread_prologue_and_epilogue_insn): Move the
6848 "goto epilogue_done" one block later.
6849
6850 2016-05-19 Richard Biener <rguenther@suse.de>
6851
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.
6855
6856 2016-05-18 David Malcolm <dmalcolm@redhat.com>
6857
6858 PR driver/69265
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.
6864
6865 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6866
6867 PR c++/71100
6868 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6869 lhs if it has TREE_ADDRESSABLE type.
6870
6871 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
6872
6873 PR target/71145
6874 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6875 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6876
6877 2016-05-18 Martin Jambor <mjambor@suse.cz>
6878
6879 PR ipa/69708
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.
6884
6885 2016-05-18 Martin Jambor <mjambor@suse.cz>
6886
6887 PR ipa/69708
6888 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6889 from TREE_READONLY parameters.
6890
6891 2016-05-18 Martin Jambor <mjambor@suse.cz>
6892
6893 PR ipa/69708
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
6898 appropriate.
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
6903 if present.
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
6913 appropriate.
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.
6918
6919 2016-05-18 Jiong Wang <jiong.wang@arm.com>
6920
6921 PR rtl-optimization/71150
6922 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6923 check.
6924
6925 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6926
6927 PR target/70915
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
6939 1's set.
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
6948 operations.
6949 (rs6000_legitimize_reload_address): Likewise.
6950 (rs6000_output_move_128bit): Use output_vec_const_move to emit
6951 constants.
6952 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6953 combine VSX_M and VSX_M2 into one iterator.
6954 (VSX_M2): Likewise.
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
6984 splat instructions.
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
6993 declaration.
6994 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
6995 constraints. Add trailing period to wL documentation.
6996
6997 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
6998
6999 PR middle-end/71020
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
7006 and return void.
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.
7014
7015 2016-05-18 Martin Jambor <mjambor@suse.cz>
7016
7017 PR ipa/70646
7018 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7019 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7020
7021 2016-05-18 Martin Jambor <mjambor@suse.cz>
7022
7023 PR ipa/70646
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
7034 them to conditions.
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.
7040
7041 2016-05-18 Richard Biener <rguenther@suse.de>
7042
7043 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7044 condition cost to PHI cost instead of total_cost.
7045
7046 2016-05-18 Martin Liska <mliska@suse.cz>
7047
7048 PR fortran/70856
7049 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7050 merged variables.
7051
7052 2016-05-18 Richard Biener <rguenther@suse.de>
7053
7054 * lto-streamer.h (LTO_major_version): Bump to 6.
7055
7056 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7057
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.
7061
7062 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7063
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.
7067
7068 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7069
7070 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7071 expression pointer, not pointer to the pointer.
7072
7073 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7074
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.
7079
7080 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7081 constraint x instead of v in second alternative, add avx512bw
7082 alternative.
7083
7084 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7085 constraint x instead of v in second alternative, add avx512bw
7086 alternative.
7087
7088 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7089 constraint x instead of v in second alternative, add avx512bw
7090 alternative.
7091
7092 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7093 avx512bw alternative.
7094
7095 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7096
7097 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7098 array to 128 chars.
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.
7104
7105 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7106
7107 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7108 constraint fot SF mode.
7109
7110 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7111 Kirill Yukhin <kirill.yukhin@intel.com>
7112
7113 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7114 modifiers.
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>"):
7121 Ditto.
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.
7126
7127 2016-05-18 Richard Biener <rguenther@suse.de>
7128
7129 PR tree-optimization/71168
7130 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7131 initialization earlier.
7132
7133 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7134
7135 * config/aarch64/aarch64-simd.md
7136 (aarch64_reduc_plus_internal<mode>): Rename to...
7137 (reduc_plus_scal): ...This, and remove previous implementation.
7138
7139 2016-05-18 Richard Biener <rguenther@suse.de>
7140
7141 * passes.def: Put late dse and cd_dce in canonical order.
7142
7143 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7144
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
7149 up call stmt id.
7150 (lto_output_node): Inline thunks don't need body in every
7151 partition.
7152 * lto-streamer-in.c: Do not fixup thunk clones.
7153 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7154 thunks.
7155 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7156 folding suceeds.
7157
7158 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7159
7160 PR middle-end/63586
7161 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7162 (reassociate_bb): Call transform_add_to_multiply.
7163
7164 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7165
7166 * config/aarch64/aarch64.c (all_extensions): Removed unused
7167 static variable.
7168
7169 2016-05-17 Nathan Sidwell <nathan@acm.org>
7170
7171 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7172 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7173
7174 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7175
7176 PR tree-optimization/54579
7177 PR middle-end/55299
7178 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7179
7180 2016-05-17 Marek Polacek <polacek@redhat.com>
7181
7182 PR ipa/71146
7183 * tree-inline.c (expand_call_inline): Call
7184 maybe_remove_unused_call_args.
7185
7186 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7187
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.
7191
7192 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7193
7194 * match.pd (X & C): New transformation.
7195
7196 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7197
7198 * match.pd (~X & Y): New transformation.
7199
7200 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7201
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.
7206
7207 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7208
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.
7224
7225 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7226
7227 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7228 Use builtin.
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.
7239
7240 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7241
7242 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7243 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7244
7245 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7246
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.
7256
7257 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7258
7259 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7260
7261 2016-05-17 Richard Biener <rguenther@suse.de>
7262
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.
7272
7273 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7274
7275 PR target/70809
7276 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7277
7278 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7279
7280 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7281
7282 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7283
7284 PR target/71114
7285 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7286 insertion point for instructions generated by validize_mem.
7287
7288 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7289
7290 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7291 in brackets.
7292
7293 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7294
7295 * config/aarch64/aarch64.c
7296 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7297 rather than a macro.
7298
7299 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7300
7301 * doc/invoke.texi (AArch64 Options): Various updates.
7302
7303 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7304
7305 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7306 into instrumentation thunks.
7307 * cif-code.def (CIF_CHKP): New.
7308
7309 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7310
7311 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7312
7313 2016-05-16 Martin Jambor <mjambor@suse.cz>
7314
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.
7317
7318 2016-05-16 Marek Polacek <polacek@redhat.com>
7319
7320 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7321 commentary.
7322
7323 2016-05-16 Martin Jambor <mjambor@suse.cz>
7324
7325 PR hsa/70857
7326 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7327 the outlined kernel function.
7328
7329 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7330
7331 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7332 (ISA_HAS_DLSA): Ditto.
7333
7334 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7335
7336 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7337
7338 2016-05-16 Nathan Sidwell <nathan@acm.org>
7339
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.
7345
7346 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7347
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.
7356
7357 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7358
7359 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7360
7361 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7362
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.
7373
7374 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7375
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.
7383
7384 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7385
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
7388 calls from thunk.
7389 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7390 gimple body.
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.
7394
7395 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7396
7397 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7398
7399 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7400
7401 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7402 for thunks.
7403
7404 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7405
7406 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7407 (inline_small_functions): Do not look for function symbol when
7408 resetting caches.
7409
7410 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7411
7412 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7413 of inline thunks
7414
7415 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7417 Jiong Wang <jiong.wang@arm.com>
7418
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
7423 declaration.
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
7434 condition.
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.
7440
7441 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7442
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):
7447 Remove.
7448
7449 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
7450
7451 * configure.ac: Add ACX_NONCANONICAL_HOST.
7452 * configure: Regenerate.
7453 * Makefile.in: Set host_noncanonical.
7454
7455 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
7456
7457 PR target/71097
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.
7464
7465 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7466
7467 PR rtl-optimization/67483
7468 * combine.c (make_compound_operation): Don't call extract_left_shift
7469 with negative shift amounts.
7470
7471 2016-05-13 Jakub Jelinek <jakub@redhat.com>
7472
7473 PR bootstrap/71071
7474 * fold-const.c (fold_checksum_tree): Allow modification
7475 of TYPE_ALIAS_SET during folding.
7476
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.
7480
7481 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
7482
7483 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7484 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7485 printf format.
7486
7487 2016-05-13 Nathan Sidwell <nathan@acm.org>
7488
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.
7496
7497 * config/nvptx/nvptx.c (write_fn_proto): Handle
7498 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7499
7500 2016-05-13 Martin Liska <mliska@suse.cz>
7501
7502 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7503 and PRIu64 in printf format.
7504
7505 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7506
7507 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7508 comment.
7509
7510 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7511
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.
7515
7516 2016-05-13 Richard Biener <rguenther@suse.de>
7517
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.
7522
7523 2016-05-13 Martin Liska <mliska@suse.cz>
7524
7525 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7526 Initialize a variable with default value.
7527
7528 2016-05-13 Martin Liska <mliska@suse.cz>
7529
7530 * doc/invoke.texi: Enhance explanation of error recovery
7531 of sanitizers.
7532
7533 2016-05-13 Martin Liska <mliska@suse.cz>
7534
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
7560 inv_expr.
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
7568 inv_expr.
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
7574 invariants.
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.
7586
7587 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7588
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.
7593
7594 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7595
7596 PR target/53440
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.
7601
7602 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7603
7604 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7605 to true.
7606
7607 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7608
7609 PR target/71080
7610 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7611
7612 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7613
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
7667 obsolete builtins.
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.
7671
7672 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
7673
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.
7677
7678 2016-05-12 Jiong Wang <jiong.wang@arm.com>
7679
7680 PR rtl-optimization/70904
7681 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7682 reload for wide mode.
7683
7684 2016-05-12 Marek Polacek <polacek@redhat.com>
7685
7686 PR c/70756
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.
7694
7695 2016-05-12 Richard Biener <rguenther@suse.de>
7696
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
7700 hashes.
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
7703 phi-translation.
7704
7705 2016-05-12 Richard Biener <rguenther@suse.de>
7706
7707 PR tree-optimization/71062
7708 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7709 field.
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.
7717
7718 2016-05-12 Martin Liska <mliska@suse.cz>
7719
7720 * doc/invoke.texi: Explain connection between
7721 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7722
7723 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
7724
7725 PR tree-optimization/71006
7726 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7727 consider COND_EXPR as a mask producer.
7728
7729 2016-05-12 Marek Polacek <polacek@redhat.com>
7730
7731 PR driver/71063
7732 * opts.c (common_handle_option): Detect missing argument for --help^.
7733
7734 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7735
7736 PR target/70830
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.
7742
7743 2016-05-12 Jakub Jelinek <jakub@redhat.com>
7744
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.
7755
7756 * config/i386/sse.md (sse2_loadld): Use v instead of x
7757 constraint in alternatives 0,1,4.
7758
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.
7762
7763 PR target/71019
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.
7770
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
7773 of vex prefix.
7774
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.
7788
7789 2016-05-12 Richard Biener <rguenther@suse.de>
7790
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
7794 type.
7795
7796 2016-05-12 Richard Biener <rguenther@suse.de>
7797
7798 PR tree-optimization/70986
7799 * cfganal.c: Include cfgloop.h.
7800 (dfs_find_deadend): Prefer to take edges exiting loops.
7801
7802 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7803
7804 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7805 compile and run time.
7806
7807 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7808
7809 PR c/43651
7810 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7811
7812 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
7813
7814 * config/i386/i386.c (legitimize_pic_address): Use
7815 copy_to_suggested_reg instead of gen_movsi.
7816
7817 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7818
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
7823 d-form support.
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
7835 128-bit types.
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
7845 enabling LRA.
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
7858 -mdebug=addr.
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>
7877 was not selected.
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
7883 instructions.
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.
7897
7898 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
7899
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.
7912
7913 2016-05-11 Richard Biener <rguenther@suse.de>
7914
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
7918 off bits.
7919
7920 2016-05-11 Richard Biener <rguenther@suse.de>
7921
7922 PR debug/71057
7923 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7924 (dwarf2out_finish): Move retry_incomplete_types call ...
7925 (dwarf2out_early_finish): ... here.
7926
7927 2016-05-11 Richard Biener <rguenther@suse.de>
7928
7929 PR middle-end/71002
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.
7939
7940 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
7941
7942 PR middle-end/70807
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
7946 redundant code.
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.
7953
7954 2016-05-11 Alan Modra <amodra@gmail.com>
7955
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.
7962
7963 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
7964
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.
7969
7970 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
7971
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.
7976
7977 2016-05-10 David Malcolm <dmalcolm@redhat.com>
7978
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.
7989
7990 2016-05-10 James Norris <jnorris@codesourcery.com>
7991
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.
7997
7998 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
7999
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.
8003
8004 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8005
8006 PR target/70799
8007 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8008 integer constants.
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.
8013
8014 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8015
8016 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8017 unary operation, not a binary one.
8018
8019 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8020
8021 PR middle-end/70877
8022 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8023 calls with type casted fndecl.
8024
8025 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8026
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.
8031
8032 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8033
8034 PR target/70927
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
8038 accordingly.
8039
8040 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8041
8042 PR target/70963
8043 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8044 code for a zero scale factor.
8045 (vsx_xvcvdpuxds_scale): Likewise.
8046
8047 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8048
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
8053 "show_ruler_p".
8054
8055 2016-05-10 Richard Biener <rguenther@suse.de>
8056
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.
8062
8063 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8064
8065 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8066 Forward declare.
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
8070 non-inline.
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.
8082
8083 2016-05-10 Martin Liska <mliska@suse.cz>
8084
8085 * tree-inline.c (remap_dependence_clique): Do not remap
8086 debugging statements.
8087
8088 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8089
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.
8095
8096 2016-05-10 Richard Biener <rguenther@suse.de>
8097
8098 PR tree-optimization/70497
8099 PR tree-optimization/28367
8100 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8101 split out from ...
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
8107 correctly.
8108
8109 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8110
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.
8117
8118 2016-05-10 Alan Modra <amodra@gmail.com>
8119
8120 PR target/70947
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.
8125
8126 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8127
8128 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8129 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8130 expanders.
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.
8134
8135 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8136
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.
8140
8141 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8142
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
8150 for AND masking.
8151
8152 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8153
8154 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8155 bitpos.
8156
8157 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8158
8159 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8160 pointer dereference.
8161
8162 2016-05-09 Richard Biener <rguenther@suse.de>
8163
8164 PR tree-optimization/70985
8165 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8166 op0 isn't a gimple register.
8167
8168 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8169
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.
8195
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>
8201
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
8206 builtins.
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
8239 MSA.
8240 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8241 stores.
8242 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8243 MSA.
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
8268 FPRs.
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
8274 instruction.
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,
8431 move_v builtins.
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
8438 array.
8439 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8440 hook.
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
8504 specified.
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
8528 for "qword_mode".
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
8537 specified.
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
8566 section.
8567 * doc/invoke.texi (-mmsa): Document new option.
8568
8569 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8570
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
8575 on -fvtable-verify.
8576 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8577 (ENDFILE_VTV_SPEC): Define.
8578
8579 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8580
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.
8594
8595 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8596
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.
8603
8604 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8605
8606 * config/arm/arm.md (probe_stack): Add modes to set source
8607 and destination.
8608
8609 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8610
8611 * regrename.c (base_reg_class_for_rename): New static function.
8612 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8613
8614 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8615
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
8620 thunks.
8621 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8622 inlinable.
8623 * tree-inline.c (expand_call_inline): Expand thunks inline.
8624
8625 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8626
8627 PR target/70998
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.
8635
8636 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8637
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
8640 users.
8641
8642 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8643
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
8646 the file.
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.
8671
8672 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
8673
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.
8681
8682 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
8683
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.
8696
8697 2016-05-07 Tom de Vries <tom@codesourcery.com>
8698
8699 PR tree-optimization/70956
8700 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8701 def.
8702
8703 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
8704
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.
8709
8710 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8711
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.
8720
8721 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8722
8723 * genmddump.c (main): Convert argv from char ** to const char **.
8724
8725 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8726
8727 * coretypes.h (OVERRIDE): New macro.
8728 (FINAL): New macro.
8729
8730 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
8731
8732 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8733 allow coalescing if the types are compatible.
8734
8735 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8736
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.
8754
8755 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8756
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.
8761 (main): 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.
8783
8784 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8785
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.
8791
8792 2016-05-06 Martin Liska <mliska@suse.cz>
8793
8794 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8795 instead of vec as the vector is local to the function.
8796
8797 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8798
8799 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8800 avx512bw alternative.
8801
8802 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8803 before the ashr<mode>3 pattern.
8804
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.
8808
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
8813 in prefix.
8814
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.
8818
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.
8824
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.
8829
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.
8833
8834 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8835 v constraint instead of x.
8836
8837 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
8838
8839 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8840 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8841 equality first.
8842
8843 2016-05-06 Richard Biener <rguenther@suse.de>
8844
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.
8848
8849 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8850
8851 PR debug/70935
8852 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8853 loop latch destination.
8854
8855 2016-05-06 Martin Liska <mliska@suse.cz>
8856
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.
8861
8862 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8863
8864 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8865 mspace): Remove deprecated options.
8866 * doc/invoke.texi (SH options): Remove -mspace.
8867
8868 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8869
8870 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8871
8872 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8873
8874 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8875 corresponding combine split pattern.
8876
8877 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8878
8879 PR target/58219
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
8883 alternatives.
8884 (movsi_ie): Allow for any FPU. Adjust length attribute for
8885 alternatives.
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.
8891
8892 2016-05-06 Richard Biener <rguenther@suse.de>
8893
8894 PR tree-optimization/70960
8895 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8896
8897 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8898
8899 PR target/52933
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.
8902
8903 2016-05-06 Marek Polacek <polacek@redhat.com>
8904
8905 PR sanitizer/70875
8906 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8907
8908 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8909
8910 PR target/54089
8911 * config/sh/sh.md (*rotcr): Add another variant.
8912
8913 2016-05-06 Richard Biener <rguenther@suse.de>
8914
8915 PR middle-end/70931
8916 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8917
8918 2016-05-06 Richard Biener <rguenther@suse.de>
8919
8920 PR middle-end/70941
8921 * fold-const.c (split_tree): Always convert to the original type
8922 before negating.
8923
8924 2016-05-06 Richard Biener <rguenther@suse.de>
8925
8926 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8927 (fwprop_addr): Likewise.
8928
8929 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8930
8931 PR target/70873
8932 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8933 New prototype.
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.
8940
8941 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
8942
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.
8949
8950 2016-05-05 Jakub Jelinek <jakub@redhat.com>
8951
8952 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8953 v constraint instead of x.
8954
8955 2016-05-05 Alan Modra <amodra@gmail.com>
8956
8957 PR target/68662
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):
8973 Likewise.
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):
8981 Don't define.
8982
8983 2016-05-05 Alan Modra <amodra@gmail.com>
8984
8985 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
8986
8987 2016-05-05 Alan Modra <amodra@gmail.com>
8988
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
8991 a save of lr.
8992
8993 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
8994
8995 PR target/70873
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):
9001 Ditto.
9002 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9003 Ditto. Emit the pattern using RTX.
9004
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):
9009 Ditto.
9010 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9011 sse_reg_operand as operand 0 predicate.
9012
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):
9017 Ditto.
9018
9019 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9020
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.
9035
9036 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9037
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.
9041
9042 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9043
9044 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9045 branch to a return.
9046
9047 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9048
9049 PR c++/70906
9050 PR c++/70933
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.
9057
9058 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9059
9060 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9061 comment.
9062 (compute_samebase_partition_bases): Fix typo.
9063
9064 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9065
9066 * config/i386/sse.md (vec_interleave_highv8sf,
9067 vec_interleave_lowv8sf, vec_interleave_highv4df,
9068 vec_interleave_lowv4df): Remove constraints from expanders.
9069
9070 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9071
9072 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9073
9074 * tree-inline.c (expand_call_inline): Fix path dealing with
9075 making lhs of call statement undefined.
9076
9077 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9078
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
9087 with aliases.
9088 (pass_local_pure_const::execute): Update.
9089
9090 2016-05-04 Marek Polacek <polacek@redhat.com>
9091
9092 * doc/invoke.texi: Document -Wdangling-else.
9093
9094 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9095
9096 * config.gcc: Error out when conflicting multilib is detected. Do not
9097 loop over multilibs since no combination is legal.
9098
9099 2016-05-04 Alan Modra <amodra@gmail.com>
9100
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):
9104 Align .toc.
9105
9106 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9107
9108 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9109 Clean up p5600 comments.
9110
9111 2016-05-04 Richard Biener <rguenther@suse.de>
9112
9113 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9114 constructor simplifications.
9115 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9116
9117 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9118
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):
9123 Always enable.
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.
9127
9128 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9129
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.
9133
9134 2016-05-04 Alan Modra <amodra@gmail.com>
9135
9136 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9137
9138 2016-05-04 Alan Modra <amodra@gmail.com>
9139
9140 PR target/70866
9141 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9142 when cr2,3,4 are all fixed regs.
9143
9144 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9145
9146 PR rtl-optimization/57193
9147 * opts.c (default_options_table): Revert OPT_frename_registers change.
9148 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9149
9150 2016-05-03 Martin Sebor <msebor@redhat.com>
9151
9152 PR c++/66561
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.
9158
9159 PR c++/66561
9160 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9161 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9162 constants.
9163
9164 PR c++/66639
9165 * doc/extend.texi (Function Names as Strings): Update __func__,
9166 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9167 constants.
9168
9169 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9170 Richard Biener <rguenther@suse.de>
9171
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.
9176
9177 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9178
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.
9194
9195 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9196
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.
9206
9207 2016-05-03 Marek Polacek <polacek@redhat.com>
9208
9209 PR c/70859
9210 * input.c (expansion_point_location): New function.
9211 * input.h (expansion_point_location): Declare.
9212
9213 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9214
9215 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9216 occurence with frame_offset_ ones.
9217
9218 2016-05-03 Alan Modra <amodra@gmail.com>
9219
9220 PR rtl-optimization/70890
9221 * ira.c (combine_and_move_insns): When moving def_insn, remove
9222 equivs on use_insn.
9223
9224 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9225
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.
9230
9231 2016-05-03 Alan Modra <amodra@gmail.com>
9232
9233 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9234 for SAVE_MULTIPLE/STORE_MULTIPLE.
9235
9236 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9237
9238 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9239 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9240
9241 2016-05-03 Richard Biener <rguenther@suse.de>
9242
9243 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9244 default true.
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
9294 SSA form.
9295 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9296
9297 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9298 Uros Bizjak <ubizjak@gmail.com>
9299
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>.
9310
9311 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9312
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.
9317
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.
9321
9322 PR target/49244
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.
9345
9346 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9347
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.
9351
9352 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9353
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
9360 of fixed_reg_set.
9361 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9362
9363 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9364
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
9376 if needed.
9377 (tree_if_conversion): handle simd pragma marked loop using new
9378 local variable aggressive_if_conv. check any_complicated_phi.
9379
9380 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9381
9382 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9383 before using it.
9384
9385 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9386
9387 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9388 cbase.
9389
9390 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
9391
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):
9398 Remove constraints.
9399
9400 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9401
9402 * machmode.h (mode_complex): Add support to give the complex mode
9403 for a given 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
9410 the given type.
9411 (blank_mode): Likewise.
9412 (make_complex_modes): Remember the complex mode created in the
9413 base type.
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.
9431
9432 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9433
9434 PR target/49244
9435 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9436 char/short arguments promoted to int because of promote_prototypes.
9437
9438 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9439
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.
9452
9453 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9454
9455 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9456 marker.
9457 (oacc_loop_process): Check mask for loop termination.
9458
9459 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9460
9461 * cif-code.def (CIF_THUNK): Add.
9462 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9463 accidental change.
9464
9465 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9466
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.
9479
9480 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9481
9482 PR rtl-optimization/70467
9483 * cse.c (cse_insn): Handle no-op MEM moves after folding.
9484
9485 PR rtl-optimization/70467
9486 * ipa-pure-const.c (check_call): Handle internal calls even in
9487 ipa mode like in local mode.
9488
9489 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9490
9491 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9492
9493 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9494
9495 * match.pd (X u< X, X u> X): New transformations.
9496
9497 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9498
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.
9508
9509 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9510
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.
9516
9517 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9518
9519 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9520 register_operand.
9521 (umulsidi3): Likewise.
9522 (indirect_jump): Fix jump instruction assembly patterns.
9523
9524 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9525
9526 PR target/70860
9527 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9528 (nvptx_function_value): Assert non-NULL cfun.
9529
9530 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9531
9532 PR rtl-optimization/70886
9533 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9534
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.
9539
9540 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9541
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.
9552
9553 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9554
9555 * tree.c (cst_and_fits_in_hwi): Simplify.
9556
9557 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9558
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.
9563
9564 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9565
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::
9572 shifts.
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.
9585
9586 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9587
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.
9609
9610 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9611
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.
9616
9617 2016-05-02 Martin Liska <mliska@suse.cz>
9618
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.
9623
9624 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9625
9626 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9627 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9628 bmaskn instruction.
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
9639 constraints.
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.
9643
9644 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9645
9646 * config/sh/sh.md (*negnegt, *movtt): Remove.
9647
9648 2016-05-02 Marek Polacek <polacek@redhat.com>
9649 Tom de Vries <tom@codesourcery.com>
9650
9651 PR tree-optimization/70700
9652 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9653 bigger than FIRST_REF_NODE.
9654
9655 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9656
9657 PR target/52898
9658 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9659 TARGET_CMPEQDI_T.
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.
9667
9668 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
9669
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.
9676
9677 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9678
9679 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9680 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9681
9682 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
9683
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.
9687
9688 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9689
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.
9697
9698 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
9699
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.
9704
9705 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9706
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.
9718 (xorsi3): Delete.
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.
9722 (mov_nop): Delete.
9723
9724 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9725
9726 * config/sh/t-sh: Remove SH5 support.
9727 * config.gcc: Likewise.
9728 * configure: Likewise.
9729
9730 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9731
9732 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9733
9734 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9735
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,
9742 movdi): Likewise.
9743
9744 2016-04-30 Alan Modra <amodra@gmail.com>
9745
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
9752 saving.
9753 (fixed_regs_p): Delete.
9754
9755 2016-04-30 Alan Modra <amodra@gmail.com>
9756
9757 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9758 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
9759 Update all uses.
9760
9761 2016-04-30 Alan Modra <amodra@gmail.com>
9762
9763 PR target/69645
9764 * config/rs6000/rs6000.c (fixed_reg_p): New function.
9765 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
9766 Update all uses.
9767
9768 2016-04-30 Alan Modra <amodra@gmail.com>
9769
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.
9773
9774 2016-04-30 Alan Modra <amodra@gmail.com>
9775
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.
9785
9786 2016-04-30 Alan Modra <amodra@gmail.com>
9787
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.
9793 Formatting fixes.
9794 (regstat_compute_ri): Adjust for above. Don't set
9795 REG_LIVE_LENGTH.
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.
9800
9801 2016-04-30 Alan Modra <amodra@gmail.com>
9802
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.
9807
9808 2016-04-30 Alan Modra <amodra@gmail.com>
9809
9810 * ira.c (combine_and_move_insns): Rather than scanning insns,
9811 use DF infrastucture to find use and def insns.
9812
9813 2016-04-30 Alan Modra <amodra@gmail.com>
9814
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.
9821
9822 2016-04-30 Alan Modra <amodra@gmail.com>
9823
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.
9828
9829 2016-04-30 Alan Modra <amodra@gmail.com>
9830
9831 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9832 split out from..
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..
9836 (ira): ..here.
9837
9838 2016-04-30 Alan Modra <amodra@gmail.com>
9839
9840 * ira.c (pdx_subregs): Delete.
9841 (struct equivalence): Add pdx_subregs field.
9842 (set_paradoxical_subreg): Remove pdx_subregs param. Update
9843 pdx_subregs access.
9844 (update_equiv_regs): Don't create or free pdx_subregs. Update
9845 pdx_subregs access.
9846
9847 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9848
9849 * config/rs6000/altivec.h: Change definitions of vec_xl and
9850 vec_xst.
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.
9863 (XL): New.
9864 (XST): 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
9874 and vec_xst.
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
9892 grammar.
9893
9894 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
9895
9896 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9897 out into ...
9898 (simplify_control_stmt_condition_1): ... here. Recurse into
9899 BIT_AND_EXPRs and BIT_IOR_EXPRs.
9900
9901 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
9902
9903 PR target/69810
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.
9910
9911 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9912
9913 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9914 (probe_stack): New expander.
9915 (probe_stack_<mode>): New insn pattern.
9916
9917 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9918
9919 * config/i386/i386.md
9920 (operations with memory inputs setting flags peephole2):
9921 Remove uneeded REG_P checks. Cleanup pattern generation.
9922
9923 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
9924
9925 * tree-vect-loop.c (vect_transform_loop): Fix
9926 nb_iterations_upper_bound computation for vectorized loop.
9927
9928 2016-04-29 Marek Polacek <polacek@redhat.com>
9929 Jakub Jelinek <jakub@redhat.com>
9930
9931 PR sanitizer/70342
9932 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9933 TARGET_EXPR_SLOT as a base.
9934
9935 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9936
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.
9946
9947 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9948
9949 * config/i386/predicates.md (constm1_operand): Fix comparison.
9950
9951 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9952
9953 * testsuite/gcc.target/arc/ieee_eq.c: New test.
9954
9955 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
9956
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.
9968
9969 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9970
9971 * config/s390/s390.c (s390_rtx_costs): Update documentation.
9972
9973 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9974
9975 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9976 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9977 Change lder to ldr.
9978 * config/s390/vector.md ("mov<mode>"): Likewise.
9979
9980 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
9981
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.
9994
9995 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9996
9997 PR target/60040
9998 * reload1.c (reload): Call finish_spills before
9999 restarting reload loop. Skip select_reload_regs
10000 if update_eliminables_and_spill returns true.
10001
10002 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10003
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
10010 predicate.
10011 (arc_short_operand): Likewise.
10012 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10013
10014 2016-04-29 Richard Biener <rguenther@suse.de>
10015
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.
10023
10024 2016-04-29 Richard Biener <rguenther@suse.de>
10025
10026 * stor-layout.c (layout_type): Do not build a pointer-to-element
10027 type for arrays.
10028
10029 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10030
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
10035 predicates.
10036
10037 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10038
10039 PR middle-end/70843
10040 * fold-const.c (operand_equal_p): Don't verify hash value equality
10041 if arg0 == arg1.
10042 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10043 and OMP_CLAUSE.
10044
10045 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10046
10047 PR target/70858
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.
10053
10054 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10055
10056 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10057 to info. Don't initialize separate fields to 0. Clean up
10058 formatting a bit.
10059
10060 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10061
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.
10066
10067 (probe_stack): Remove expander.
10068
10069 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10070 Andrew Burgess <andrew.burgess@embecosm.com>
10071
10072 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10073 operands as 32-bits.
10074
10075 2016-04-28 Jason Merrill <jason@redhat.com>
10076
10077 * gdbinit.in: Skip line-map.h.
10078
10079 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10080 Andrew Burgess <andrew.burgess@embecosm.com>
10081
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
10086 as 0.
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
10090 alternatives.
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.
10120
10121 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10122
10123 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10124 dst->popcount.
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.
10154
10155 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10156 Andrew Burgess <andrew.burgess@embecosm.com>
10157
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
10167 r/Uex alternative.
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.
10182
10183 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10184
10185 * config/rs6000/rs6000.c (machine_function): Rename
10186 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10187 (rs6000_stack_info): Adjust.
10188
10189 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10190 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * config/arc/constraints.md (Usd): Convert to define_constraint.
10193 (Us<): Likewise.
10194 (Us>): Likewise.
10195
10196 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10197
10198 PR target/70821
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.
10202
10203 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10204
10205 * tracer.c (bb_seen): Make static.
10206
10207 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10208
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=.
10216
10217 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10218
10219 PR target/70668
10220 * config/nds32/nds32.md (casesi): Don't access the operands array
10221 out of bounds.
10222
10223 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10224
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.
10228
10229 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10230
10231 * doc/extend.texi (Common Function Attributes) [optimize]:
10232 Discourage use of the optimize attribute.
10233
10234 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10235
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.
10244
10245 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10246
10247 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10248 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10249
10250 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10251
10252 PR testsuite/70595
10253 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10254 attributes): Document cilkplus_runtime.
10255
10256 2016-04-28 Martin Jambor <mjambor@suse.cz>
10257
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.
10261
10262 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10263
10264 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10265 for WORD_REGISTER_OPERATIONS to runtime check.
10266
10267 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10268
10269 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10270
10271 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10272
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.
10278
10279 2016-04-28 Richard Biener <rguenther@suse.de>
10280
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).
10286
10287 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10288
10289 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10290 and explain why in a comment.
10291
10292 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10293
10294 * config/arc/arc.md (cpu_facility): Add fpx variant.
10295 (subdf3): Prohibit use reverse sub when assist operations option
10296 is enabled.
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.
10300
10301 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10302
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
10309 converted pattern.
10310
10311 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10312 Joern Rennecke <joern.rennecke@embecosm.com>
10313
10314 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10315 declaration.
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
10322 unspecs.
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):
10341 Define.
10342 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10343 Likewise.
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.
10348 (EH_USES): Define.
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.
10352 (R10_REG): Define.
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.
10361
10362 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10363
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.
10381
10382 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
10383 Matthias Klose <doko@debian.org>
10384
10385 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10386
10387 2016-04-28 Richard Biener <rguenther@suse.de>
10388
10389 PR middle-end/70777
10390 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10391 canonicalization.
10392
10393 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
10394
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.
10415
10416 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10417
10418 * config/i386/i386.md (sign_extend to memory peephole2s): Use
10419 general_reg_operand instead of register_operand predicate.
10420
10421 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10422
10423 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10424
10425 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
10426
10427 * match.pd (A - B > A, A + B < A): New transformations.
10428
10429 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
10430
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.
10435
10436 2016-04-27 Jeff Law <law@redhat.com>
10437
10438 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10439
10440 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10441
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
10457 changes.
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
10476 expansions.
10477 (vector_altivec_store_<mode>): Likewise.
10478
10479 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
10480
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.
10490
10491 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10492
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.
10496
10497 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10498
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
10511 const.
10512 (struct dataflow): Likewise for field "problem".
10513 (df_add_problem): Make param const.
10514
10515 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10516
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
10519 for TARGET_MMX.
10520
10521 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10522
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
10525 #define to...
10526 (enum df_problem_id): ...this new enum.
10527 (struct df_problem): Convert field "id" from "int" to
10528 enum df_problem_id.
10529
10530 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10531
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.
10535
10536 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10537
10538 * config/i386/i386.md
10539 (lea arith with mem operand + setcc peephole2): Set operator mode.
10540
10541 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 PR target/70155
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
10594 pass.
10595
10596 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10597
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.
10605
10606 2016-04-27 Martin Liska <mliska@suse.cz>
10607
10608 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10609 (free_loop_data): Release vuses of groups.
10610
10611 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10612
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
10617 to ...
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.
10633 Update all uses.
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,
10641 base and step.
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.
10679
10680 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10681
10682 * rtlanal.c (nonzero_bits1): Convert preprocessor check
10683 for WORD_REGISTER_OPERATIONS to runtime check.
10684
10685 2016-04-27 Richard Biener <rguenther@suse.de>
10686
10687 PR ipa/70760
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.
10693
10694 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10695
10696 PR sanitizer/70683
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
10701 args is the same.
10702
10703 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10704
10705 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10706
10707 2016-04-27 Nick Clifton <nickc@redhat.com>
10708
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.
10712
10713 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10714
10715 * params.def (MAX_PARTITION_SIZE): New param.
10716 * doc/invoke.texi: Document lto-max-partition.
10717
10718 2016-04-27 Richard Biener <rguenther@suse.de>
10719
10720 PR ipa/70785
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.
10727
10728 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10729
10730 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10731 (-Wmemset-elt-size): New item.
10732
10733 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
10734
10735 PR ada/70759
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.
10740
10741 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10742
10743 PR sanitizer/70683
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.
10757
10758 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
10759
10760 * config/rtems.h (LIB_SPEC): Add -latomic.
10761
10762 2016-04-27 Joel Sherrill <joel@rtems.org>
10763
10764 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10765 xilink.ld and flags not relevant to RTEMS.
10766
10767 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10768
10769 * toplev.c (backend_init_target): Avoid calling init_reload when using
10770 LRA.
10771
10772 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10773
10774 * reorg.c (try_merge_delay_insns): Declare i and j inside the
10775 for loops rather than one for the whole function.
10776
10777 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10778
10779 * match.pd (X + CST CMP X): New transformation.
10780
10781 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10782
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.
10787
10788 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
10789
10790 * config/i386/i386.md (operation on memory peephole): Duplicate an
10791 existing peephole and adapt it to match lea rather than an operation
10792 that clobbers CC.
10793
10794 PR rtl-optimization/57193
10795 * opts.c (default_options_table): Add OPT_frename_registers at -O2
10796 and above.
10797 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10798
10799 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10800
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.
10807
10808 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10809
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
10816 PHIs.
10817 (tree_if_conversion): Mark and update virtual SSA.
10818
10819 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10820
10821 PR target/61821
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
10828 renaming.
10829 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10830 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10831 Pass new decl arg.
10832 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10833 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10834
10835 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10836
10837 PR target/59407
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
10842 data/bss sections.
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
10846 SECTION_MACH_DEP.
10847 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10848 * doc/tm.texi: Regenerate.
10849
10850 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10851
10852 PR bootstrap/70704
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
10856 of 1.
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.
10862
10863 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10864
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.
10869
10870 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10871
10872 * config/i386/predicates.md (const0_operand): Do not match
10873 const_wide_int code.
10874 (const1_operand): Ditto.
10875
10876 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10877
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.
10887
10888 2016-04-25 Jason Merrill <jason@redhat.com>
10889
10890 * gdbinit.in: Skip is-a.h.
10891
10892 * attribs.c (register_scoped_attributes): Fix logic.
10893 * attribs.h: Declare register_scoped_attributes.
10894
10895 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10896
10897 * config/rs6000/rs6000-builtin.def: Correct pasto error for
10898 stxvd2x and stxvw4x built-in functions.
10899
10900 2016-04-25 DJ Delorie <dj@redhat.com>
10901
10902 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10903 (ashrhi3): Likewise.
10904 (lshrhi3): Likewise.
10905
10906 2016-04-25 Richard Biener <rguenther@suse.de>
10907
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.
10913
10914 2016-04-25 Michael Collison <michael.collison@linaro.org>
10915
10916 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10917
10918 2016-04-25 Michael Collison <michael.collison@linaro.org>
10919
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
10933 for new function.
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.
10939
10940 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10941
10942 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10943 predicate for operand 2.
10944
10945 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
10946 H.J. Lu <hongjiu.lu@intel.com>
10947
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.
10973 (C): Ditto.
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.
10978
10979 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10980
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.
10991
10992 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10993
10994 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
10995
10996 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10997
10998 * vec.h (vec_safe_contains): New function.
10999 (vec::contains): Likewise.
11000 (vec::begin): Likewise.
11001 (vec::end): Likewise.
11002
11003 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11004
11005 PR sanitizer/70712
11006 * cfgexpand.c (expand_stack_vars): Fix typo.
11007
11008 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11009
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.
11020
11021 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11022
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.
11032
11033 2016-04-22 Richard Biener <rguenther@suse.de>
11034
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.
11039
11040 2016-04-22 Richard Biener <rguenther@suse.de>
11041
11042 PR tree-optimization/70740
11043 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11044 VDEF.
11045
11046 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11047
11048 PR target/70750
11049 * config/i386/predicates.md (call_insn_operand): Replace
11050 sibcall_memory_operand with memory_operand.
11051
11052 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11053
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().
11059
11060 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11061
11062 PR target/70728
11063 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11064 Extract AVX-512BW constraint from AVX.
11065
11066 2016-04-21 Richard Biener <rguenther@suse.de>
11067
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.
11072
11073 2016-04-21 Richard Biener <rguenther@suse.de>
11074
11075 PR middle-end/70747
11076 * fold-const.c (fold_comparison): Return properly typed
11077 constant boolean.
11078
11079 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11080
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.
11084
11085 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11086
11087 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11088 New transformations.
11089
11090 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11091
11092 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11093
11094 2016-04-20 Jan Hubicka <jh@suse.cz>
11095
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.
11101
11102 2016-04-20 Jan Hubicka <jh@suse.cz>
11103
11104 PR ipa/70018
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
11111 def.
11112 (propagate_nothrow): Be safe WRT interposition.
11113 * cgraph.h (set_nothrow_flag): Update prototype.
11114
11115 2016-04-18 Jan Hubicka <jh@suse.cz>
11116
11117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11118 max_loop_iterations_int.
11119 (tree_unswitch_outer_loop): Likewise.
11120
11121 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11122
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
11128 predecessors.
11129
11130 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11131
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
11149 innermost_DR_map.
11150
11151 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11152
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.
11163
11164 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11165
11166 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11167 Short-cut unaligned load and store cases. Handle all integer
11168 vector modes.
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.
11172
11173 2016-04-20 Andrew Pinski <apinski@cavium.com>
11174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11175
11176 PR target/64971
11177 * config/aarch64/aarch64.md (sibcall): Force call
11178 address to be DImode for ILP32.
11179 (sibcall_value): Likewise.
11180
11181 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11182
11183 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11184
11185 2016-04-20 Richard Biener <rguenther@suse.de>
11186
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.
11192
11193 2016-04-20 Marek Polacek <polacek@redhat.com>
11194
11195 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11196 rather than true.
11197
11198 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11199
11200 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11201 use kmovw to support AVX512F target.
11202
11203 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11204
11205 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11206
11207 2016-04-20 Marek Polacek <polacek@redhat.com>
11208
11209 PR tree-optimization/70725
11210 * tree-if-conv.c (is_false_predicate): New function.
11211 (predicate_mem_writes): Use it.
11212
11213 2016-04-20 Richard Biener <rguenther@suse.de>
11214
11215 PR tree-optimization/70726
11216 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11217 shift amounts from a pattern stmt operand.
11218
11219 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11220
11221 PR target/70674
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.
11229
11230 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11231
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.
11235
11236 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11237
11238 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11239 alignment check.
11240 * config/i386/i386.md (ssememalign): Removed.
11241 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11242
11243 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11244
11245 PR target/69201
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
11392 use UNSPEC_STOREU.
11393 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11394 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11395 load nor store.
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.
11420
11421 2016-04-19 Richard Biener <rguenther@suse.de>
11422
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.
11427
11428 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
11429
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.
11444
11445 2016-04-19 Richard Biener <rguenther@suse.de>
11446
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
11453 tail merging.
11454 (pass_fre::execute): Restore SSA info.
11455
11456 2016-04-19 Richard Biener <rguenther@suse.de>
11457
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
11464 adjustment.
11465
11466 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
11467
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.
11473
11474 2016-04-18 Michael Matz <matz@suse.de>
11475
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.
11482
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
11503 SET_DECL_ALIGN.
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.
11523
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.
11529
11530 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11531
11532 PR target/70708
11533 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11534 replace %vmovsd with "%vmovq".
11535 (vec_concatv2df): Likewise.
11536
11537 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11538
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.
11551
11552 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11553
11554 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11555 gld requirements.
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
11561 systems and bugs.
11562 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11563 with cc.
11564
11565 2016-04-17 Jan Hubicka <jh@suse.cz>
11566
11567 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11568 max_loop_iterations_int.
11569
11570 2016-04-18 Richard Biener <rguenther@suse.de>
11571
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.
11577
11578 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11579
11580 PR target/70711
11581 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11582 armv8.1-a and armv8.1-a+crc.
11583
11584 2016-04-18 Richard Biener <rguenther@suse.de>
11585
11586 PR tree-optimization/70701
11587 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11588 references after translating through a memcpy.
11589
11590 2016-04-18 Richard Biener <rguenther@suse.de>
11591
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.
11598
11599 2016-04-18 Richard Biener <rguenther@suse.de>
11600
11601 PR middle-end/37870
11602 * expmed.c (extract_bit_field_1): Remove broken case
11603 using a wider MODE_INT mode.
11604
11605 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11606
11607 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11608 unless compiling with at least GCC-4.8.
11609
11610 2016-04-17 Jan Hubicka <jh@suse.cz>
11611
11612 PR bootstrap/70706
11613 * graphite.c (graphite_finalize): Update call to
11614 tree_estimate_probability.
11615 * predict.h (tree_estimate_probability): Update prototype.
11616
11617 2016-04-17 Jan Hubicka <jh@suse.cz>
11618
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.
11625
11626 2016-04-17 Jan Hubicka <jh@suse.cz>
11627
11628 PR ipa/70018
11629 * cgraph.h (cgraph_node::set_const_flag,
11630 cgraph_node::set_pure_flag): Update prototype to return bool;
11631 update comment.
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
11645 declared const.
11646 (cgraph_node::set_pure_flag): Update.
11647 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11648
11649 2016-04-17 Tom de Vries <tom@codesourcery.com>
11650
11651 PR other/70433
11652 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11653 backslash in label.
11654
11655 2016-04-17 Tom de Vries <tom@codesourcery.com>
11656
11657 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11658 '{}<> ' as escape-for-record.
11659
11660 2016-04-17 Tom de Vries <tom@codesourcery.com>
11661
11662 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11663 structure.
11664
11665 2016-04-17 Tom de Vries <tom@codesourcery.com>
11666
11667 PR other/70185
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.
11675
11676 2016-04-17 Tom de Vries <tom@codesourcery.com>
11677
11678 PR tree-optimization/70256
11679 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11680 (debug_varmap): New function.
11681
11682 2016-04-17 Tom de Vries <tom@codesourcery.com>
11683
11684 PR other/70183
11685 * passes.c (pass_manager::register_pass): Propagate pflags.
11686
11687 2016-04-17 Tom de Vries <tom@codesourcery.com>
11688
11689 PR other/68875
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.
11695
11696 2016-04-15 Jan Hubicka <jh@suse.cz>
11697
11698 PR ipa/70018
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
11703 to current def.
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.
11709
11710 2016-04-15 Jan Hubicka <jh@suse.cz>
11711
11712 PR ipa/70018
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.
11729
11730 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11731
11732 PR target/70662
11733 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11734 Fix mode size check.
11735
11736 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11737
11738 * BASE-VER: Set to 7.0.0.
11739
11740 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
11741
11742 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11743
11744 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11745
11746 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11747 architecture revisions.
11748
11749 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
11750
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 ().
11755
11756 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11757
11758 PR c++/70675
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.
11762
11763 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
11764
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.
11779
11780 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11781
11782 PR target/70662
11783 * config/i386/sse.md: Use proper memory operand modifiers.
11784
11785
11786 2016-04-15 Richard Biener <rguenther@suse.de>
11787 Alan Modra <amodra@gmail.com>
11788
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
11792 scheme then.
11793
11794 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11795
11796 PR target/70669
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.
11800
11801 2016-04-14 Jakub Jelinek <jakub@redhat.com>
11802
11803 PR c++/70594
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.
11814
11815 2016-04-14 Martin Sebor <msebor@redhat.com>
11816
11817 PR c++/69517
11818 PR c++/70019
11819 PR c++/70588
11820 * doc/extend.texi (Variable Length): Revert.
11821
11822 2016-04-14 Marek Polacek <polacek@redhat.com>
11823 Jan Hubicka <hubicka@ucw.cz>
11824
11825 PR c++/70029
11826 * tree.c (verify_type): Disable the canonical type of main variant
11827 check.
11828
11829 2016-04-14 Jason Merrill <jason@redhat.com>
11830
11831 * cfgexpand.c, expr.c: Revert previous change.
11832
11833 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11834
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.
11838
11839 2016-04-14 Richard Biener <rguenther@suse.de>
11840
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.
11845
11846 2016-04-14 Richard Biener <rguenther@suse.de>
11847
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.
11858
11859 2016-04-13 Martin Sebor <msebor@redhat.com>
11860
11861 PR c++/69517
11862 PR c++/70019
11863 PR c++/70588
11864 * doc/extend.texi (Variable Length): Document C++ specifics.
11865
11866 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11867
11868 PR c++/70641
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.
11872
11873 PR c++/70594
11874 * tree-sra.c (create_access_replacement,
11875 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11876 gets fancy name.
11877 * tree-pretty-print.c (dump_fancy_name): New function.
11878 (dump_decl_name, dump_generic_node): Use it.
11879
11880 2016-04-13 Jason Merrill <jason@redhat.com>
11881
11882 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11883 * expr.c (expand_expr_real_1): Likewise.
11884
11885 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
11886
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.
11892
11893 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11894
11895 PR debug/70628
11896 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11897
11898 PR middle-end/70633
11899 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11900 gimplification turns some element into non-constant.
11901
11902 PR debug/70628
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.
11911
11912 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
11913
11914 PR target/70630
11915 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11916
11917 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11918
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
11923 allowed.
11924
11925 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11926
11927 PR target/70640
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 ...).
11934
11935 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11936
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.
11940
11941 2016-04-12 Martin Liska <mliska@suse.cz>
11942
11943 Revert
11944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11945
11946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11947 estimates here.
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.
11953
11954 2016-04-12 Tom de Vries <tom@codesourcery.com>
11955
11956 PR tree-optimization/68756
11957 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11958 instead of new_name.
11959
11960 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11961
11962 PR tree-optimization/70602
11963 * tree-sra.c (generate_subtree_copies): Don't write anything into
11964 constant pool decls.
11965
11966 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11967 regardless whether there are depend clauses or not.
11968
11969 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11970
11971 PR target/70381
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.
11975
11976 * doc/extend.texi (Additional Floating Types): Document PowerPC
11977 __float128 restrictions.
11978
11979 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11980
11981 PR target/70133
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
11992 flags.
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.
11997
11998 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
11999
12000 PR target/70133
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,
12008 rework.
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
12014 to here.
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
12026 flags.
12027
12028 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12029
12030 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12031 AARCH64_FL_CRC.
12032
12033 2016-04-09 Tom de Vries <tom@codesourcery.com>
12034
12035 PR tree-optimization/68953
12036 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12037 first to last subscript.
12038
12039 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12040
12041 PR tree-optimization/70586
12042 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12043 for any calls.
12044
12045 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12046
12047 PR lto/70289
12048 PR ipa/70348
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
12055 that are private.
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
12062 reductions.
12063 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12064
12065 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12066
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.
12071
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.
12077
12078 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12079
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.
12087
12088 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12089
12090 PR sanitizer/70541
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.
12094
12095 2016-04-08 Tom de Vries <tom@codesourcery.com>
12096
12097 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12098 implicit firstprivate clause.
12099
12100 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12101
12102 PR target/70566
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.
12107
12108 2016-04-08 Alan Modra <amodra@gmail.com>
12109
12110 PR target/70117
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
12115 limit.
12116
12117 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12118
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.
12126
12127 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12128
12129 PR c/70436
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.
12138
12139 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12140
12141 PR c/70436
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.
12146
12147 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12148
12149 PR rtl-optimization/70398
12150 * lra-constraints.c (process_address_1): Check zero scale and code
12151 for reloading with zero scale.
12152
12153 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12154
12155 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12156 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12157
12158 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12159
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
12164 up to 128.
12165
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.
12175
12176 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12177
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.
12181
12182 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12183
12184 PR c++/70336
12185 * match.pd (nested int casts): Limit to GIMPLE.
12186
12187 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12188
12189 PR ipa/66223
12190 * ipa-devirt.c (maybe_record_node): Fix comment; use
12191 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12192
12193 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12194
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.
12198
12199 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12200 Jakub Jelinek <jakub@redhat.com>
12201
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.
12205
12206 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12207
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.
12211
12212 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12213
12214 PR target/70510
12215 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12216
12217 2016-04-05 Richard Biener <rguenther@suse.de>
12218
12219 PR tree-optimization/70526
12220 * tree-sra.c (build_ref_for_offset): Use prev_base to
12221 extract the alias pointer type.
12222
12223 2016-04-05 Richard Biener <rguenther@suse.de>
12224
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.
12248
12249 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12250
12251 PR target/70525
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.
12256
12257 2016-04-05 Richard Biener <rguenther@suse.de>
12258
12259 PR middle-end/70499
12260 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12261 non-register type temporaries into SSA.
12262
12263 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12264
12265 PR ipa/66223
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.
12269
12270 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12271 Jakub Jelinek <jakub@redhat.com>
12272
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
12276 prototype.
12277 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12278 Likewise.
12279
12280 2016-04-04 Richard Biener <rguenther@suse.de>
12281
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.
12287
12288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12289
12290 PR ipa/68881
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.
12295
12296 2016-04-04 Martin Liska <mliska@suse.cz>
12297
12298 PR hsa/70402
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.
12304
12305 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12306
12307 PR target/70416
12308 PR target/67391
12309 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12310 set, but not for SP_REG operands.
12311
12312 2016-04-02 Martin Sebor <msebor@redhat.com>
12313
12314 PR c++/67376
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.
12319
12320 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12321
12322 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12323 the "Y" constraint (scalar FP 0.0 immediate).
12324
12325 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12326 Add the "const_double" to the list of operand constraints.
12327
12328 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12329
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
12333 for the high word.
12334
12335 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12336
12337 PR target/70404
12338 * config/s390/s390.c (s390_expand_insv): Check for everything
12339 constant instead of just VOIDmode stuff.
12340
12341 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12342
12343 PR target/70496
12344 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12345
12346 2016-04-01 Nathan Sidwell <nathan@acm.org>
12347
12348 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12349
12350 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12351
12352 PR rtl-optimization/70461
12353 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12354 is necessary.
12355
12356 2016-03-31 Martin Liska <mliska@suse.cz>
12357
12358 PR hsa/70399
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.
12369
12370 2016-03-31 Martin Liska <mliska@suse.cz>
12371
12372 PR hsa/70391
12373 * hsa-gen.c (hsa_function_representation::update_dominance): New
12374 function.
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.
12393
12394 2016-03-31 Martin Liska <mliska@suse.cz>
12395
12396 PR hsa/70391
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.
12415
12416 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12417
12418 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12419 scratch field for goto case.
12420
12421 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
12422
12423 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12424
12425 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
12426
12427 PR target/70442
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.
12431
12432 2016-03-31 Nathan Sidwell <nathan@acm.org>
12433
12434 PR c++/70393
12435 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12436 Assert we don't want to move backwards.
12437
12438 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
12439
12440 PR target/70453
12441 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12442
12443 2016-03-31 Jakub Jelinek <jakub@redhat.com>
12444
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.
12450
12451 2016-03-31 Martin Liska <mliska@suse.cz>
12452
12453 * passes.c (execute_one_pass): Do not call
12454 todo_after for a discarded function.
12455
12456 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12457
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.
12463
12464 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12465
12466 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12467 estimates here.
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.
12473
12474 2016-03-30 Richard Biener <rguenther@suse.de>
12475
12476 PR middle-end/70450
12477 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12478
12479 2016-03-30 Jakub Jelinek <jakub@redhat.com>
12480
12481 PR target/70421
12482 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12483 in gen_blendm expander.
12484
12485 2016-03-30 Nick Clifton <nickc@redhat.com>
12486
12487 PR target/62254
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.
12490
12491 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
12492
12493 PR target/70439
12494 * config/i386/i386.c (ix86_expand_epilogue): Properly check
12495 conflict between DRAP register and __builtin_eh_return.
12496
12497 2016-03-30 Michael Matz <matz@suse.de>
12498 Richard Biener <rguenther@suse.de>
12499
12500 PR ipa/12392
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.
12509
12510 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
12511
12512 PR target/63890
12513 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12514 and TARGET_MACHO.
12515
12516 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
12517
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).
12521
12522 2016-03-29 Jeff Law <law@redhat.com>
12523
12524 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12525
12526 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12527
12528 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12529 to HOST_WIDE_INT.
12530
12531 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12532
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.
12536
12537 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12538
12539 PR ipa/70283
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.
12547
12548 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12549
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.
12554
12555 PR c++/70353
12556 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12557
12558 PR tree-optimization/70405
12559 * ssa-iterators.h (num_imm_uses): Add missing braces.
12560
12561 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12562
12563 PR rtl-optimization/68695
12564 * ira-color.c (allocno_copy_cost_saving): New.
12565 (improve_allocation): Use it.
12566
12567 2016-03-29 Richard Henderson <rth@redhat.com>
12568
12569 PR middle-end/70355
12570 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12571
12572 2016-03-29 Richard Biener <rguenther@suse.de>
12573
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.
12580
12581 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12582
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.
12586
12587 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12588
12589 PR target/70406
12590 * config/i386/i386.md (define_split, andn): Fix modes.
12591
12592 2016-03-26 Richard Biener <rguenther@suse.de>
12593 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12594
12595 PR ipa/70366
12596 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12597 instead of
12598 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12599 as 2nd argument to cl_optimization_restore().
12600
12601 2016-03-25 Richard Henderson <rth@redhat.com>
12602
12603 PR target/70120
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.
12607
12608 2016-03-25 Alan Modra <amodra@gmail.com>
12609
12610 PR target/70052
12611 * config/rs6000/constraints.md (j): Simplify.
12612 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12613 decimal float 0.D.
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.
12619
12620 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12621
12622 * tree-ssa-propagate.c: Enhance docs for
12623 SSA_PROP_NOT_INTERESTING.
12624
12625 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12626
12627 * doc/extend.texi: Fix typo in documentation to pure attribute.
12628
12629 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12630
12631 PR target/70319
12632 * config/pa/pa.md (bswapdi2): Use a scratch register.
12633
12634 2016-03-24 Richard Henderson <rth@redhat.com>
12635
12636 PR middle-end/69845
12637 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12638 overflow.
12639
12640 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12641
12642 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12643 using ix86_expand_binary_operator instead of gen_andsi3.
12644
12645 2016-03-24 Richard Biener <rguenther@suse.de>
12646
12647 PR tree-optimization/70396
12648 * tree-vect-stmts.c (vectorizable_comparison): Use
12649 get_vectype_for_scalar_type.
12650
12651 2016-03-24 Richard Biener <rguenther@suse.de>
12652
12653 PR middle-end/70370
12654 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12655 with register bases.
12656
12657 2016-03-24 Richard Biener <rguenther@suse.de>
12658
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.
12662
12663 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12664
12665 PR target/70381
12666 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12667 -mfloat128 here.
12668
12669 2016-03-23 Marek Polacek <polacek@redhat.com>
12670
12671 PR c++/69884
12672 * doc/invoke.texi: Document -Wignored-attributes.
12673
12674 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12675
12676 PR tree-optimization/69042
12677 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12678 parameter from 30 to 40.
12679
12680 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12681
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.
12685
12686 2016-03-23 Richard Biener <rguenther@suse.de>
12687
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.
12692
12693 2016-03-23 Jeff Law <law@redhat.com>
12694
12695 PR tree-optimization/64058
12696 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12697 CONFLICT_COUNT.
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
12709 bitmap_count_bits.
12710 (bitmap_count_bits): Use bitmap_count_bits_in_word.
12711 * bitmap.h (bitmap_count_unique_bits): Declare it.
12712
12713 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
12714
12715 PR target/69917
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.
12719
12720 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12721
12722 * config/arm/arm1020e.md (1020call_op): Reduce reservation
12723 duration.
12724 (v10_fdivs): Likewise.
12725 (v10_fdivd): Likewise.
12726
12727 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12728
12729 PR driver/70132
12730 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12731 to not call fclose twice on file.
12732
12733 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12734
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.
12739
12740 PR target/70321
12741 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12742 Optimize TARGET_STV splitters, if high or low word of last argument
12743 is 0 or -1.
12744
12745 2016-03-22 Jeff Law <law@redhat.com>
12746
12747 PR target/70232
12748 tree-ssa-threadbackward.c
12749 (fsm_find_control_statement_thread_paths): Correctly distinguish
12750 between old style jump threads vs FSM jump threads.
12751
12752 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12753
12754 PR target/70302
12755 * config/i386/i386.c (scalar_chain::convert_op): Support
12756 uninitialized register usage case.
12757
12758 2016-03-22 Richard Biener <rguenther@suse.de>
12759
12760 PR middle-end/70251
12761 * genmatch.c (gen_transform): Adjust last parameter to a three-state
12762 int...
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.
12771
12772 2016-03-22 Anthony Green <green@moxielogic.com>
12773
12774 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
12775 issue for moxiebox targets.
12776 (CC1PLUS_SPEC): Ditto.
12777
12778 2016-03-22 Richard Biener <rguenther@suse.de>
12779
12780 PR middle-end/70333
12781 * fold-const.c (extract_muldiv_1): Properly perform multiplication
12782 in the wide type.
12783
12784 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12785
12786 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12787
12788 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12789
12790 PR target/70325
12791 * config/i386/i386.c (def_builtin): Handle
12792 OPTION_MASK_ISA_AVX512VL to be and-ed with other
12793 bits.
12794 (const struct builtin_description bdesc_special_args[]):
12795 Remove duplicate ISA bits.
12796
12797 2016-03-22 Jakub Jelinek <jakub@redhat.com>
12798
12799 PR target/70329
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.
12803
12804 PR target/70300
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.
12809
12810 PR c++/70295
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).
12814
12815 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12816
12817 PR middle-end/70326
12818 * lra.c (restore_scratches): Ignore deleted insns.
12819
12820 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
12821 Jakub Jelinek <jakub@redhat.com>
12822
12823 PR tree-optimization/70317
12824 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12825 to HONOR_NANS.
12826
12827 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
12828
12829 PR target/70327
12830 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12831 of ix86_expand_move.
12832 (movoi): Ditto.
12833 (movti): Use general_operand for operand 1 predicate.
12834
12835 2016-03-21 Martin Liska <mliska@suse.cz>
12836
12837 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12838 insns.
12839 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12840
12841 2016-03-21 Martin Liska <mliska@suse.cz>
12842
12843 PR ipa/70306
12844 * ipa-icf.c (sem_function::parse): Skip static
12845 constructors and destructors.
12846
12847 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12848
12849 PR target/70296
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.
12854
12855 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
12856 Alexander Monakov <amonakov@ispras.ru>
12857
12858 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12859 for the stabs debug format.
12860
12861 2016-03-21 Richard Biener <rguenther@suse.de>
12862
12863 PR tree-optimization/70310
12864 * tree-vect-generic.c (expand_vector_condition): Fold the built
12865 condition.
12866
12867 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
12868
12869 PR target/70293
12870 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12871 Block third alternative for AVX-512VL target,
12872
12873 2016-03-21 Martin Liska <mliska@suse.cz>
12874
12875 PR hsa/70234
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.
12881
12882 2016-03-21 Richard Biener <rguenther@suse.de>
12883
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.
12888
12889 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
12890
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.
12894
12895 2016-03-18 Jeff Law <law@redhat.com>
12896
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.
12903
12904 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
12905 Bernd Schmidt <bschmidt@redhat.com>
12906
12907 * doc/extend.texi: Document more potential problems with basic asms.
12908
12909 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
12910
12911 PR rtl-optimization/70278
12912 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12913 VOIDmode.
12914
12915 2016-03-18 Jason Merrill <jason@redhat.com>
12916
12917 * calls.c (load_register_parameters): Fix zero size sibcall logic.
12918
12919 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12920
12921 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12922 values to 128b regs.
12923
12924 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12925
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.
12930
12931 2016-03-18 Tom de Vries <tom@codesourcery.com>
12932
12933 PR ipa/70269
12934 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12935
12936 2016-03-18 Jakub Jelinek <jakub@redhat.com>
12937
12938 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12939 instead of replace_rtx for DEBUG_INSNs.
12940
12941 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12942
12943 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12944 load type reservations.
12945
12946 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
12947
12948 PR target/70188
12949 * config/pa/constraints.md: Revert 2015-02-13 change. Use
12950 define_constraint for "Q" and "T" constraints.
12951
12952 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
12953
12954 Tweak the pipeline model for Exynos M1
12955
12956 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
12957 model.
12958
12959 2016-03-17 David Malcolm <dmalcolm@redhat.com>
12960
12961 PR c/70264
12962 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12963 where one or both locations aren't within a line_map.
12964
12965 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
12966
12967 PR driver/70192
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
12970 if it is -1.
12971
12972 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
12973
12974 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12975 true as ALL_REGS argument to replace_rtx.
12976
12977 2016-03-17 Richard Biener <rguenther@suse.de>
12978
12979 PR debug/70271
12980 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12981 last.
12982
12983 2016-03-17 Jakub Jelinek <jakub@redhat.com>
12984
12985 PR target/70245
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
12989 equality.
12990 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
12991 true as ALL_REGS argument to replace_rtx.
12992
12993 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
12994
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.
12998
12999 2016-03-17 Nick Clifton <nickc@redhat.com>
13000
13001 PR target/70162
13002 * config/rx/rx.c (rx_print_integer): Print negative constants in
13003 decimal.
13004
13005 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13006
13007 PR target/70261
13008 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13009
13010 2016-03-16 Richard Henderson <rth@redhat.com>
13011 Richard Biener <rguenth@suse.de>
13012
13013 PR middle-end/70240
13014 PR middle-end/68215
13015 PR tree-opt/68714
13016 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13017 first operand as is_gimple_condexpr.
13018
13019 PR middle-end/70240
13020 PR middle-end/68215
13021 Revert r231575
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.
13032
13033 2016-03-16 Richard Henderson <rth@redhat.com>
13034
13035 PR target/70048
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.
13040
13041 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13042 Richard Biener <rguenth@suse.de>
13043
13044 PR target/70245
13045 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13046 return to even if only REGNO is equal, and assert
13047 mode is the same.
13048
13049 2016-03-11 Jeff Law <law@redhat.com>
13050
13051 PR rtl-optimization/70224
13052 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13053
13054 2016-03-16 Richard Henderson <rth@redhat.com>
13055
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.
13069
13070 2016-03-16 Marek Polacek <polacek@redhat.com>
13071
13072 PR c/70093
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.
13077
13078 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13079
13080 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13081 reporting malformed loop nest.
13082
13083 2016-03-16 Tom de Vries <tom@codesourcery.com>
13084
13085 PR lto/70187
13086 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13087 nodes.length () == 1 test to before first nodes[0] access.
13088
13089 2016-03-16 Tom de Vries <tom@codesourcery.com>
13090
13091 PR tree-optimization/68715
13092 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13093 single_pred_p test.
13094
13095 2016-03-16 Tom de Vries <tom@codesourcery.com>
13096
13097 PR tree-optimization/68809
13098 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13099 are the same.
13100
13101 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13102 Sandra Loosemore <sandra@codesourcery.com>
13103
13104 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13105 on leaf attribute. Mention ELF interposition problems.
13106
13107 2016-03-16 Alan Modra <amodra@gmail.com>
13108
13109 PR rtl-optimization/69195
13110 PR rtl-optimization/47992
13111 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13112 Add comments.
13113
13114 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13115
13116 PR bootstrap/69513
13117 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13118
13119 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13120
13121 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13122
13123 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13124
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.
13129
13130 PR middle-end/70239
13131 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13132 of safe_grow.
13133
13134 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13135
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.
13139
13140 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13141
13142 PR target/66660
13143 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13144 to non-speculative when propagating trap bits.
13145
13146 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13147
13148 PR rtl-optimization/63384
13149 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13150 DEBUG_INSN_P insns.
13151
13152 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13153
13154 PR target/64411
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.
13163
13164 2016-03-15 Tom de Vries <tom@codesourcery.com>
13165
13166 PR ipa/70161
13167 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13168 dump_file_name.
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
13172 transform.
13173
13174 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13175
13176 * genrecog.c (match_pattern_2): If pred is NULL don't call
13177 safe_predicate_mode on it.
13178
13179 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13180
13181 PR middle-end/70219
13182 * lra-constraints.c (delete_move_and_clobber): Change assertion
13183 to also allow dregno == 0.
13184
13185 2016-03-14 Richard Henderson <rth@redhat.com>
13186
13187 PR tree-opt/68714
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
13192 on vectors.
13193
13194 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13195
13196 PR target/70083
13197 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13198 regs.
13199 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13200 VOIDmode.
13201 * lra-constraints.c (split_reg): For hard regs, try to find the
13202 biggest single-register mode used in the function.
13203
13204 2016-03-14 Richard Biener <rguenther@suse.de>
13205
13206 PR tree-optimization/56365
13207 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13208 constants to compare against.
13209
13210 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13211
13212 PR target/70098
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.
13217
13218 2016-03-14 Tom de Vries <tom@codesourcery.com>
13219
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.
13223
13224 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13225
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.
13235
13236 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13237
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.
13241
13242 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13243
13244 PR target/69614
13245 * lra-constraints.c (delete_move_and_clobber): New.
13246 (remove_inheritance_pseudos): Use it.
13247
13248 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13249
13250 PR ada/70017
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.
13255
13256 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13257
13258 PR target/70131
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.
13262
13263 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13264
13265 PR target/70123
13266 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13267 be rematerialized.
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.
13271
13272 2016-03-11 Jeff Law <law@redhat.com>
13273
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.
13278
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
13283 discovered.
13284 (compare_pairs): No longer sort on the elements in each pair.
13285 Instead break ties with the index of the coalesce pair.
13286
13287 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13288
13289 PR target/70002
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):
13295 New function.
13296 (aarch64_set_current_function): Rewrite using the above.
13297
13298 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13299
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):
13307 Adjust callers.
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.
13311
13312 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13313
13314 PR tree-optimization/70013
13315 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13316 for constant-pool entries.
13317
13318 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13319
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.
13323
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
13327 for unknown codes.
13328
13329 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13330 Jakub Jelinek <jakub@redhat.com>
13331
13332 PR target/70160
13333 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13334 of uninitialized values.
13335
13336 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13337
13338 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13339 define_expand.
13340 ("*trunctddd2"): New pattern definition.
13341 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13342 TD->DD truncation.
13343
13344 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13345
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
13352 numbers.
13353
13354 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13355
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
13370 file.
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
13376 nonmemory_operand.
13377
13378 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13379
13380 PR target/70168
13381 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13382 Handle overlapping retval and newval.
13383
13384 2016-03-10 Nick Clifton <nickc@redhat.com>
13385
13386 PR target/7044
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.
13392
13393 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13394
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.
13398
13399 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13400
13401 PR lto/69589
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.
13410
13411 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13412
13413 PR ipa/69630
13414 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13415 on cxa_pure_virtual.
13416
13417 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13418
13419 PR lto/69589
13420 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13421
13422 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13423
13424 PR lto/69589
13425 * tree.c (need_assembler_name_p): Only record main variant type names.
13426
13427 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13428
13429 PR target/70113.
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
13439 843419 is on.
13440 (aarch64_attributes): Handle fix-cortex-a53-843419.
13441 (aarch64_can_inline_p): Likewise.
13442 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13443
13444 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
13445 Jakub Jelinek <jakub@redhat.com>
13446
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.
13453
13454 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13455
13456 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13457 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13458
13459 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
13460
13461 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13462 has a proper number of elements.
13463
13464 2016-03-10 Alan Modra <amodra@gmail.com>
13465
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.
13474
13475 2016-03-10 Richard Biener <rguenther@suse.de>
13476
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.
13480
13481 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13482
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.
13486
13487 PR target/70086
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.
13492
13493 PR tree-optimization/70127
13494 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13495
13496 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13497
13498 PR c/68473
13499 PR c++/70105
13500 * diagnostic-show-locus.c (compatible_locations_p): New function.
13501 (layout::layout): Sanitize ranges using compatible_locations_p.
13502
13503 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13504
13505 PR c/68473
13506 PR c++/70105
13507 * diagnostic-show-locus.c (layout_range::layout_range): Replace
13508 location_range param with three const expanded_locations * and a
13509 bool.
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.
13521
13522 2016-03-09 Richard Biener <rguenther@suse.de>
13523 Jakub Jelinek <jakub@redhat.com>
13524
13525 PR tree-optimization/70138
13526 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13527 Also skip vect_double_reduction_def.
13528
13529 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13530
13531 PR target/70049
13532 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13533 if the operand is "m".
13534
13535 2016-03-09 Nathan Sidwell <nathan@acm.org>
13536
13537 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13538
13539 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13540
13541 * config/i386/i386.c (processor_target_table): Fix cost table
13542 intialization order for znver1.
13543
13544 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13545
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.
13554
13555 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13556
13557 * tree-ssa-math-opts.c: Fix typo in comment.
13558
13559 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13560
13561 PR target/70110
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
13565 calls.
13566
13567 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13568
13569 PR target/70064
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.
13578
13579 2016-03-07 Martin Jambor <mjambor@suse.cz>
13580
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.
13592
13593 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13594
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.
13599
13600 2016-03-07 Martin Sebor <msebor@redhat.com>
13601
13602 PR rtl-optimization/19705
13603 * doc/invoke.texi (Options That Control Optimization): Clarify
13604 -fno-branch-count-reg.
13605
13606 2016-02-26 Richard Biener <rguenther@suse.de>
13607 Jeff Law <law@redhat.com>
13608
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
13612 loop.
13613 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13614 Move after definition of loops_state_clear.
13615
13616 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13617
13618 PR rtl-optimization/69052
13619 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13620 to CONST_WIDE_INT.
13621
13622 2016-03-07 Tom de Vries <tom@codesourcery.com>
13623
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.
13628
13629 2016-03-07 Richard Biener <rguenther@suse.de>
13630
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.
13634
13635 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13636
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.
13644
13645 2016-03-07 Richard Henderson <rth@redhat.com>
13646
13647 PR rtl-opt/70061
13648 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13649 (insert_value_copy_on_edge): Likewise.
13650
13651 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13652
13653 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13654
13655 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13656
13657 PR target/62281
13658 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13659
13660 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13661
13662 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13663
13664 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13665
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.
13672
13673 2016-03-05 Jakub Jelinek <jakub@redhat.com>
13674
13675 PR c++/70084
13676 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13677 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13678 to the right type.
13679
13680 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13681
13682 PR c/69973
13683 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13684
13685 PR rtl-optimization/69941
13686 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13687 the reg share its mode.
13688
13689 2016-03-04 Jeff Law <law@redhat.com>
13690
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.
13695
13696 2016-03-05 Tom de Vries <tom@codesourcery.com>
13697
13698 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13699 construct in oacc routine. Check for oacc region in oacc routine.
13700
13701 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13702
13703 PR target/70062
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.
13709
13710 PR target/70059
13711 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13712 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13713 fixes.
13714 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
13715
13716 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13717
13718 PR rtl-optimization/57676
13719 * lra-assigns.c (lra_assign): Guard test for maximum iterations
13720 with flag_checking.
13721
13722 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
13723
13724 * tree-vect-patterns.c (search_type_for_mask): Handle
13725 comparison of booleans.
13726
13727 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13728
13729 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13730 Fix @xref usage.
13731
13732 PR debug/69947
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.
13736
13737 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13738
13739 PR rtl-optimization/69904
13740 * config/arm/arm.c (arm_cannot_copy_insn_p):
13741 Return true for load-exclusive instructions.
13742
13743 2016-03-03 Jakub Jelinek <jakub@redhat.com>
13744
13745 PR target/70021
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
13749 or mix thereof.
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.
13753
13754 2016-03-03 Marek Polacek <polacek@redhat.com>
13755
13756 PR middle-end/70050
13757 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13758
13759 2016-03-03 Martin Liska <mliska@suse.cz>
13760
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.
13764
13765 2016-03-03 Richard Biener <rguenther@suse.de>
13766
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
13772 helper.
13773
13774 2016-03-03 Michael Collison <michael.collison@linaro.org>
13775
13776 PR target/70014
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.
13780
13781 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
13782
13783 * doc/tm.texi: Regenerated.
13784
13785 2016-03-02 Richard Henderson <rth@redhat.com>
13786
13787 PR rtl-opt/67145
13788 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13789 simplification when all args are positive non-fixed registers.
13790
13791 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13792
13793 * target.def (lra_p): Specify that new ports should use LRA.
13794
13795 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13796
13797 PR libgomp/69555
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.
13803
13804 2016-03-02 Tom de Vries <tom@codesourcery.com>
13805
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.
13810
13811 2016-03-02 Bin Cheng <bin.cheng@arm.com>
13812
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.
13817
13818 2016-03-02 Alan Modra <amodra@gmail.com>
13819
13820 PR ipa/69990
13821 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13822 larger alignment.
13823
13824 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13825
13826 PR target/70028
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.
13830
13831 2016-03-02 Richard Biener <rguenther@suse.de>
13832
13833 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13834 GENERIC expressions in GIMPLE.
13835
13836 2016-03-02 Richard Biener <rguenther@suse.de>
13837
13838 * config/i386/i386.c (type_natural_mode): Fix typo.
13839
13840 2016-03-02 Nick Clifton <nickc@redhat.com>
13841
13842 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13843
13844 2016-03-02 Richard Biener <rguenther@suse.de>
13845 Uros Bizjak <ubizjak@gmail.com>
13846
13847 PR target/67278
13848 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13849
13850 2016-03-02 Richard Biener <rguenther@suse.de>
13851
13852 PR middle-end/67278
13853 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13854
13855 2016-03-02 Marek Polacek <polacek@redhat.com>
13856
13857 PR c/67854
13858 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13859 "is promoted to" warning.
13860
13861 2016-03-01 DJ Delorie <dj@redhat.com>
13862
13863 * config.gcc: Deprecate mep-*.
13864
13865 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
13866
13867 PR middle-end/70025
13868 * lra-constraints.c (regno_val_use_in): New.
13869 (match_reload): Use it instead of regno_use_in.
13870
13871 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13872
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.
13876
13877 2016-03-01 Jeff Law <law@redhat.com>
13878
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.
13883
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
13889 in the last block.
13890
13891 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
13892
13893 PR target/70027
13894 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13895 asm dialect alternatives to explicit GOTPCREL calls.
13896
13897 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13898
13899 PR ada/70017
13900 * ira.c (do_reload): Issue warning for generic stack checking here...
13901 * reload1.c (reload): ...instead of here and streamline it.
13902
13903 2016-03-01 Nick Clifton <nickc@redhat.com>
13904
13905 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13906
13907 2016-03-01 Richard Biener <rguenther@suse.de>
13908
13909 PR tree-optimization/69983
13910 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13911 types and fall back to operand_equal_p.
13912
13913 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13914
13915 Revert
13916 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13917
13918 * config/s390/constraints.md ("jm8"): New constraint.
13919 * config/s390/predicates.md ("const_int_8bitset_operand"): New
13920 predicate.
13921 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13922 into ...
13923 ("*setmem_long<setmem_and>"): New pattern.
13924 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13925 into ...
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.
13929
13930
13931 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13932
13933 Revert
13934 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13935
13936 * gensupport.c (process_substs_on_one_elem): Split loop to
13937 complete mark_operands_used_in_match_dup on all expressions in the
13938 vector first.
13939 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13940 and remove function.
13941
13942 2016-03-01 Richard Biener <rguenther@suse.de>
13943
13944 PR middle-end/70022
13945 * fold-const.c (fold_indirect_ref_1): Fix range checking for
13946 vector BIT_FIELD_REF extract.
13947
13948 2016-03-01 Richard Biener <rguenther@suse.de>
13949
13950 PR tree-optimization/69994
13951 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13952
13953 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13954
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.
13959
13960 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13961
13962 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13963 anymore.
13964
13965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13966
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
13973 selector.
13974 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13975 operands.
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.
13985
13986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13987
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.
13992
13993 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13994
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.
14010
14011 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14012
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
14022 iterator.
14023
14024 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14025
14026 * config/s390/predicates.md (const_int_6bitset_operand): New
14027 predicate.
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
14031 ...
14032 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14033 * config/s390/subst.md: New file.
14034
14035 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14036
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
14040 attributes.
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.
14048
14049 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14050
14051 * gensupport.c (process_substs_on_one_elem): Split loop to
14052 complete mark_operands_used_in_match_dup on all expressions in the
14053 vector first.
14054 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14055 and remove function.
14056
14057 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14058
14059 PR target/69706
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.
14066
14067 2016-02-29 Jeff Law <law@redhat.com>
14068
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
14072 outside [0..1].
14073
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
14077 loop cleanups.
14078
14079 2016-02-29 Richard Biener <rguenther@suse.de>
14080
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
14085 nop conversions.
14086 (eliminate_plus_minus_pair): Use ops_equal_values_p
14087 (repropagate_negates): Do not use get_unary_op here.
14088
14089 2016-02-29 Martin Liska <mliska@suse.cz>
14090
14091 * system.h: Poison ENABLE_CHECKING macro.
14092
14093 2016-02-29 Martin Liska <mliska@suse.cz>
14094
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.
14099
14100 2016-02-19 Richard Biener <rguenther@suse.de>
14101
14102 PR tree-optimization/69980
14103 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14104 permutation of those we need to keep.
14105
14106 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14107
14108 PR target/69706
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
14120 in the first word.
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.
14140
14141 2016-02-29 Richard Biener <rguenther@suse.de>
14142
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
14147 defs properly.
14148
14149 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14150
14151 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14152
14153 2016-02-27 Jeff Law <law@redhat.com>
14154
14155 Revert
14156 2016-02-26 Richard Biener <rguenther@suse.de>
14157 Jeff Law <law@redhat.com>
14158
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
14162 loop.
14163
14164 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14165
14166 PR rtl-optimization/69896
14167 * tree-vect-generic.c (get_compute_type): Avoid single element
14168 vector types.
14169
14170 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14171
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.
14175
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.
14188
14189 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14190
14191 PR target/69969
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.
14195
14196 2016-02-26 Joel Sherrill <joel@rtems.org>
14197
14198 * config.gcc: Add x86_64-*-rtems*.
14199 * config/i386/rtems-64.h: New file.
14200
14201 2016-02-26 Joel Sherrill <joel@rtems.org>
14202
14203 * config.gcc: Add aarch64-*-rtems*.
14204 * config/aarch64/rtems.h: New file.
14205
14206 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14207
14208 PR target/69946
14209 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14210 shift amount using %h. Add comment.
14211
14212 2016-02-26 Richard Biener <rguenther@suse.de>
14213 Jeff Law <law@redhat.com>
14214
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
14218 loop.
14219
14220 2016-02-26 Martin Jambor <mjambor@suse.cz>
14221
14222 PR middle-end/69920
14223 * tree-sra.c (sra_modify_assign): Do not remove loads of
14224 uninitialized aggregates to SSA_NAMEs.
14225
14226 2016-02-26 Richard Henderson <rth@redhat.com>
14227
14228 PR target/69709
14229 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14230 pseudo in case the target rtx matches the source of the left
14231 shift.
14232
14233 2016-02-26 Martin Jambor <mjambor@suse.cz>
14234
14235 PR hsa/69568
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
14239 loads.
14240 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14241 * hsa-brig.c (emit_basic_insn): Likewise.
14242
14243 2016-02-26 Martin Jambor <mjambor@suse.cz>
14244
14245 pr hsa/69674
14246 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14247 pointers.
14248 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14249
14250 2016-02-26 Martin Jambor <mjambor@suse.cz>
14251
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.
14259
14260 2016-02-26 Martin Jambor <mjambor@suse.cz>
14261
14262 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14263 atomic operations in private segment.
14264
14265 2016-02-26 Martin Jambor <mjambor@suse.cz>
14266
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.
14271
14272 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14273
14274 PR target/69245
14275 * config/aarch64/aarch64.c (aarch64_set_current_function):
14276 Save/restore target globals when switching to
14277 target_option_default_node.
14278
14279 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14280
14281 PR target/69613
14282 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14283 Return 0 if !SHIFT_COUNT_TRUNCATED.
14284
14285 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14286 Eric Botcazou <ebotcazou@adacore.com>
14287
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.
14291
14292 2016-02-26 Martin Liska <mliska@suse.cz>
14293
14294 * doc/extend.texi: Mention clog10, clog10f an clog10l
14295 in Builtins section.
14296
14297 2016-02-26 Martin Liska <mliska@suse.cz>
14298
14299 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14300 CHECKING_P.
14301 (resolve_args_picking_1): Likewise.
14302 * dwarf2out.h (struct GTY): Likewise.
14303
14304 2016-02-26 Martin Liska <mliska@suse.cz>
14305
14306 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14307 with flag_checking.
14308 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14309
14310 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14311 Martin Liska <mliska@suse.cz>
14312
14313 * doc/install.texi: Mention --enable-valgrind-annotations.
14314
14315 2016-02-26 Richard Biener <rguenther@suse.de>
14316
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.
14321
14322 2016-02-25 Martin Liska <mliska@suse.cz>
14323
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.
14329
14330 2016-02-25 Richard Biener <rguenther@suse.de>
14331
14332 PR tree-optimization/48795
14333 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14334
14335 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14336
14337 PR driver/68463
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.
14354
14355 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
14356
14357 PR ipa/69630
14358 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14359 on builtin_unreachable.
14360
14361 2016-02-25 Jakub Jelinek <jakub@redhat.com>
14362
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.
14368
14369 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14370
14371 PR debug/69705
14372 * dwarf2out.c (gen_variable_die): Work around buggy LTO
14373 - allow NULL decl for Fortran DW_TAG_common_block variables.
14374
14375 2016-02-24 Jason Merrill <jason@redhat.com>
14376
14377 * common.opt (flifetime-dse): Add -flifetime-dse=1.
14378
14379 2016-02-24 Richard Biener <rguenther@suse.de>
14380 Jakub Jelinek <jakub@redhat.com>
14381
14382 PR middle-end/69760
14383 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14384 conditionally executed ops to well-defined overflow behavior.
14385
14386 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14387
14388 PR middle-end/69915
14389 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14390 elements.
14391
14392 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14393
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
14399 callsite.
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.
14403
14404 2016-02-24 Richard Biener <rguenther@suse.de>
14405
14406 PR middle-end/68963
14407 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14408 bogus check.
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.
14411
14412 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14413
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.
14421
14422 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14423
14424 PR target/69875
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.
14430
14431 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14432
14433 PR c/69918
14434 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14435 2 to 3.
14436
14437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14438 Richard Biener <rguenth@suse.de>
14439
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
14443 as a MEM.
14444
14445 2016-02-24 Richard Biener <rguenther@suse.de>
14446
14447 PR tree-optimization/69907
14448 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14449 end of permutations for BB vectorization.
14450
14451 2016-02-24 Christian Bruel <christian.bruel@st.com>
14452
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.
14458 Fix comments.
14459
14460 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
14461
14462 PR target/69810
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.
14468
14469 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14470
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}
14474 and AESMC pairs.
14475
14476 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14477
14478 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14479 series for reciprocal square root in Exynos M1.
14480
14481 2016-02-23 Martin Sebor <msebor@redhat.com>
14482
14483 PR c/69759
14484 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14485 __builtin_alloca_with_align.
14486
14487 2016-02-23 Richard Henderson <rth@redhat.com>
14488
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.
14497
14498 2016-02-23 Richard Biener <rguenther@suse.de>
14499
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.
14504
14505 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
14506
14507 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14508 (parallelize_loops): In OpenACC kernels mode, set n_threads to
14509 zero.
14510 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14511 flag_openacc.
14512 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14513
14514 2016-02-23 Richard Biener <rguenther@suse.de>
14515
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.
14524
14525 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14526
14527 PR c++/69902
14528 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14529 when inverting comparison.
14530
14531 PR c/69900
14532 * common.opt (Wunreachable-code): Add Warning flag.
14533
14534 2016-02-23 Mark Wielaard <mjw@redhat.com>
14535 Jakub Jelinek <jakub@redhat.com>
14536
14537 PR c/69911
14538 * cgraphunit.c (check_global_declaration): Check main_input_filename
14539 and DECL_SOURCE_FILE are not NULL.
14540
14541 2016-02-23 Martin Jambor <mjambor@suse.cz>
14542
14543 PR tree-optimization/69666
14544 * tree-sra.c (sra_modify_assign): Do not attempt to create
14545 default_def replacements for unscalarizable regions.
14546
14547 2016-02-20 Mark Wielaard <mjw@redhat.com>
14548
14549 PR c/28901
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.
14555
14556 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14557
14558 PR target/69888
14559 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14560 identical arguments. Formatting and spelling fixes.
14561
14562 PR target/69885
14563 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14564 be specified.
14565
14566 PR target/69894
14567 PR target/69895
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.
14572
14573 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14574
14575 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14576 and HImode registers.
14577
14578 2016-02-22 Richard Biener <rguenther@suse.de>
14579
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.
14585
14586 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14587
14588 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14589 min_profitable_estimate, rather than min_profitable_iters.
14590
14591 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14592
14593 PR target/69885
14594 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14595 SImode for last match_operand.
14596
14597 2016-02-22 Martin Liska <mliska@suse.cz>
14598
14599 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14600 return bitsize - 1 as the return value.
14601
14602 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14603
14604 PR target/69806
14605 PR target/54089
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.
14612
14613 2016-02-22 Richard Biener <rguenther@suse.de>
14614 Tom de Vries <tom@codesourcery.com>
14615
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.
14619
14620 2016-02-22 Tom de Vries <tom@codesourcery.com>
14621
14622 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14623 dump-fn.
14624
14625 2016-02-22 Richard Biener <rguenther@suse.de>
14626
14627 PR ipa/37448
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
14635 summary.
14636
14637 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14638
14639 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14640 variable.
14641
14642 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14643
14644 PR driver/69805
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.
14649
14650 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14651
14652 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14653 -Wnarrowing with -std.
14654
14655 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14656
14657 PR c++/69851
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
14662 fix.
14663
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.
14668
14669 PR target/69820
14670 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14671 if TARGET_AVX512BW.
14672
14673 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14674
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.
14678
14679 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14680
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.
14685
14686 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14687
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.
14691
14692 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14693
14694 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14695
14696 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14697
14698 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14699 mode.
14700
14701 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14702
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.
14707
14708 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14709
14710 * config/s390/s390.md: Add missing output modifier for operand 1
14711 to print it as address properly.
14712
14713 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14714
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
14725 debug output.
14726 (s390_sched_init): Clear last_scheduled_unit_distance array.
14727 * config/s390/s390.md: Include 2964.md.
14728
14729 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14730
14731 PR target/69671
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.
14737
14738 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14739
14740 PR target/68404
14741 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14742 2016-02-09 change.
14743
14744 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14745 earlyclobber from target. Use wF constraint for fused memory
14746 address.
14747 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14748
14749 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14750 Martin Liska <mliska@suse.cz>
14751
14752 PR sanitizer/69863
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.
14758
14759 2016-02-18 Richard Biener <rguenther@suse.de>
14760
14761 PR middle-end/69553
14762 * fold-const.c (operand_equal_p): Properly compare offsets for
14763 IMAGPART_EXPR and ARRAY_REF.
14764
14765 2016-02-18 Nick Clifton <nickc@redhat.com>
14766
14767 PR target/62254
14768 PR target/69610
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
14773 it.
14774 (arm_reload_out_hi): Likewise.
14775
14776 2016-02-18 Richard Biener <rguenther@suse.de>
14777
14778 PR middle-end/69854
14779 * match.pd: Don't use fold_binary or fold_unary for folding
14780 constants.
14781
14782 2016-02-17 Jakub Jelinek <jakub@redhat.com>
14783
14784 PR c++/69850
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.
14789
14790 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
14791
14792 * doc/extend.texi (C++ Attributes): Correct description of
14793 warn_unused type attribute.
14794
14795 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14796
14797 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14798 correct instruction.
14799
14800 2016-02-17 Richard Biener <rguenther@suse.de>
14801
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
14805 of successors.
14806 (bb_to_key): Use cached priority when available.
14807 (copy_bb): Initialize cached priority.
14808 (reorder_basic_blocks_software_trace_cache): Likewise.
14809
14810 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14811
14812 PR target/69161
14813 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14814 New predicate.
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.
14825
14826 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14827
14828 PR target/69161
14829 * config/arm/predicates.md (arm_comparison_operator_mode):
14830 New predicate.
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.
14840
14841 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
14842
14843 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14844 Add missing return.
14845
14846 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
14847
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.
14860
14861 2016-02-17 Nick Clifton <nickc@redhat.com>
14862
14863 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14864 TI's devices.csv file as of March 2016.
14865
14866 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
14867
14868 PR Target/48344
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.
14875
14876 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14877
14878 PR c/69835
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.
14887
14888 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14889
14890 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14891 AARCH64_EXTRA_TUNE_RECIP_SQRT.
14892
14893 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14894
14895 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14896 reciprocal sqrt for -mlow-precision-recip-sqrt.
14897
14898 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14899 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14900
14901 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14902 always use lane loads to construct non-constant vectors.
14903
14904 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14905
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.
14910
14911 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14912 Richard Biener <rguenther@suse.de>
14913
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):
14918 Formatting fix.
14919
14920 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14921
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.
14926
14927 2016-02-16 Richard Biener <rguenther@suse.de>
14928
14929 PR tree-optimization/69776
14930 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14931 sets from caller.
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.
14938
14939 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
14940
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.
14944
14945 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
14946
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
14956 instructions.
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):
14981 Renamed.
14982 (adddf3, muldf3, subdf3): Removed.
14983 * config/arc/predicates.md (proper_comparison_operator): Recognize
14984 CC_FPU* modes.
14985 * config/arc/fpu.md: New file.
14986 * doc/invoke.texi (ARC Options): Document mfpu option.
14987
14988 2016-02-16 Richard Biener <rguenther@suse.de>
14989
14990 PR rtl-optimization/69291
14991 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
14992 noce_operand_ok check.
14993
14994 2016-02-16 Tom de Vries <tom@codesourcery.com>
14995
14996 PR lto/67709
14997 * omp-low.c (simd_clone_create): Remove call to
14998 symtab->call_cgraph_insertion_hooks.
14999
15000 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15001
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
15008 up formatting.
15009
15010 2016-02-16 Richard Biener <rguenther@suse.de>
15011
15012 PR tree-optimization/69586
15013 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15014 types for conversion sources.
15015
15016 2016-02-16 Richard Biener <rguenther@suse.de>
15017
15018 PR middle-end/69801
15019 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15020 mask OEP_ADDRESS_OF.
15021
15022 2016-02-16 Alan Modra <amodra@gmail.com>
15023
15024 PR target/68973
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.
15028 (p8_mtvsrwz): New.
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
15033 changes.
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.
15038
15039 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15040
15041 Add support for the FCCMP insn types
15042
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.
15052
15053 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15054
15055 * alias.c (get_alias_set): Fix a typo in comment.
15056
15057 2016-02-15 Richard Biener <rguenther@suse.de>
15058
15059 PR tree-optimization/69595
15060 * match.pd: Complete range test simplification to true.
15061
15062 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15063
15064 PR rtl-optimization/69648
15065 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15066 pic_offset_table_rtx.
15067
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.
15071
15072 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15073
15074 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15075 for z900+ CPUs in 31-bit mode.
15076
15077 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15078
15079 * common/config/s390/s390-common.c (s390_supports_split_stack):
15080 New function.
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
15088 vararg pointer.
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.
15106
15107 2016-02-15 Richard Biener <rguenther@suse.de>
15108
15109 PR tree-optimization/69783
15110 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15111 Add trivially correct cases.
15112
15113 2016-02-15 Tom de Vries <tom@codesourcery.com>
15114
15115 PR lto/69655
15116 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15117 do_force_output.
15118 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15119
15120 2016-02-15 Richard Biener <rguenther@suse.de>
15121
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
15128 redundant stores.
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.
15132
15133 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15134
15135 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15136
15137 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15138
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,
15148 znver1_avx256_fma,
15149 znver1_avx256_fma_load): Fix pipe usage.
15150
15151 2016-02-14 Alan Modra <amodra@gmail.com>
15152
15153 PR target/68973
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.
15157
15158 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15159
15160 PR target/67260
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.
15164
15165 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15166
15167 PR target/67636
15168 PR target/64345
15169 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15170
15171 2016-02-12 Walter Lee <walt@tilera.com>
15172
15173 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15174 * config/tilegx/t-tilegx: Likewise.
15175
15176 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15177
15178 PR other/69554
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"
15203 statements.
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.
15208
15209 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15210
15211 PR driver/69779
15212 * gcc.c (driver::finalize): Fix cleanup of "specs".
15213
15214 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15215
15216 PR driver/69265
15217 PR driver/69453
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.
15240
15241 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15242
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.
15247
15248 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15249
15250 PR target/69729
15251 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15252 to correctly determine instrumentation thunks.
15253
15254 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15255
15256 PR ipa/69241
15257 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15258 type by reference, force lhs on the call.
15259
15260 PR ipa/68672
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.
15267
15268 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15269
15270 revert:
15271 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15272
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.
15278
15279 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15280
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.
15286
15287 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15288
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.
15339
15340 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15341
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.
15347
15348 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15349
15350 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15351 New variable.
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.
15358
15359 2016-02-11 David Malcolm <dmalcolm@redhat.com>
15360
15361 PR plugins/69758
15362 * Makefile.in (PLUGIN_HEADERS): Add params.list.
15363
15364 2016-02-11 Jakub Jelinek <jakub@redhat.com>
15365
15366 PR target/65313
15367 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15368 -Wmaybe-uninitialized warning.
15369
15370 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
15371
15372 PR target/69713
15373 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15374
15375 2016-02-11 Richard Biener <rguenther@suse.de>
15376
15377 PR rtl-optimization/69291
15378 * ifcvt.c (noce_try_store_flag_constants): Do not allow
15379 subexpressions affected by changing the result.
15380
15381 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
15382
15383 PR target/69148
15384 * lra-constraints.c (curr_insn_transform): Find in/out operands
15385 for secondary memory moves. Update dups.
15386
15387 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15388
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
15393 statements.
15394
15395 2016-02-10 Jakub Jelinek <jakub@redhat.com>
15396 Patrick Palka <ppalka@gcc.gnu.org>
15397
15398 PR ipa/69241
15399 PR c++/69649
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.
15406
15407 2016-02-10 Bin Cheng <bin.cheng@arm.com>
15408
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.
15412
15413 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15414
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.
15427
15428 2016-02-10 Richard Biener <rguenther@suse.de>
15429
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.
15434
15435 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15436
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.
15441
15442 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
15443
15444 * timevar.def (TV_PHASE_DBGINFO): Delete.
15445 (TV_PHASE_CHECK_DBGINFO): Likewise.
15446 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15447
15448 2016-02-10 Richard Biener <rguenther@suse.de>
15449
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.
15453
15454 2016-02-09 Andrew Pinski <apinski@cavium.com>
15455
15456 PR tree-opt/69282
15457 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15458 get_vcond_mask_icode returns false.
15459
15460 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15461
15462 PR target/68404
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.
15466
15467 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15468
15469 PR target/68532
15470 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15471 order.
15472 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15473 endian.
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.
15482
15483 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15484
15485 PR target/68532
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
15490 endian.
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.
15499
15500 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
15501
15502 PR target/69634
15503 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15504 debug insns.
15505
15506 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
15507
15508 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15509 truncate const_int operand 1 to QImode.
15510
15511 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
15512
15513 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15514 corresponding to an abnormal edge.
15515
15516 2016-02-09 Tom de Vries <tom@codesourcery.com>
15517
15518 PR tree-optimization/69599
15519 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15520 function.
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
15523 partition.
15524
15525 2016-02-09 Richard Biener <rguenther@suse.de>
15526
15527 PR tree-optimization/69715
15528 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15529 LHS on calls as non-rewritable.
15530
15531 2016-02-09 Tom de Vries <tom@codesourcery.com>
15532
15533 PR lto/69707
15534 * lto-wrapper.c (append_diag_options): New function.
15535 (compile_offload_image): Call append_diag_options.
15536
15537 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15538
15539 PR other/69722
15540 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15541 Minor copy-edit to fix verb tenses.
15542
15543 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15544
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.
15549
15550 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15551
15552 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15553 outdated section.
15554
15555 2016-02-08 Jason Merrill <jason@redhat.com>
15556
15557 PR c++/69631
15558 * convert.c (convert_to_integer_1): Check dofold on truncation
15559 distribution.
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.
15565
15566 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15567
15568 PR target/60410
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.
15577
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
15586 bitmap.
15587
15588 2016-02-08 Richard Biener <rguenther@suse.de>
15589
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.
15594
15595 2016-02-08 Richard Biener <rguenther@suse.de>
15596 Jeff Law <law@redhat.com>
15597
15598 PR target/68273
15599 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15600 types for anonymous SSA names.
15601
15602 2016-02-08 Richard Biener <rguenther@suse.de>
15603
15604 PR rtl-optimization/69274
15605 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15606
15607 2016-02-08 Jeff Law <law@redhat.com>
15608
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.
15619
15620 2016-02-05 Jeff Law <law@redhat.com>
15621
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.
15630
15631 2016-02-05 Martin Sebor <msebor@redhat.com>
15632
15633 PR c++/69662
15634 * doc/invoke.texi: Update -Wplacement-new to take an optional
15635 argument.
15636
15637 2016-02-06 Richard Henderson <rth@redhat.com>
15638
15639 PR c/69643
15640 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15641 out of non-standard address spaces.
15642
15643 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15644
15645 PR rtl-optimization/69691
15646 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15647
15648 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15649
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.
15654
15655 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
15656
15657 PR target/69369
15658 Revert r232560:
15659 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
15660
15661 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15662 instrumented_version.
15663
15664 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
15665
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.
15676
15677 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15678
15679 * config/s390/s390.c (s390_register_info_set_ranges): Remove
15680 superfluous loops.
15681
15682 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15683
15684 * doc/extend.texi: S/390: Correct some typos.
15685
15686 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15687
15688 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15689
15690 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15691
15692 PR target/69625
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
15696 its name.
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.
15709
15710 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15711
15712 PR bootstrap/69677
15713 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15714 alignment fixes.
15715 (ix86_option_override_internal): Disable TARGET_STV even for
15716 -m{incoming,preferred}-stack-boundary=3.
15717
15718 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15719
15720 * config.gcc: Mark deprecated rtems targets as obsolete.
15721
15722 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
15723
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.
15728
15729 2016-02-04 DJ Delorie <dj@redhat.com>
15730
15731 * config/msp430/msp430.c (msp430_start_function): Add function type.
15732
15733 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15734
15735 PR fortran/69368
15736 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15737
15738 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
15739
15740 PR rtl-optimization/69577
15741 Revert:
15742 2015-10-29 Richard Henderson <rth@redhat.com>
15743
15744 PR target/68124
15745 PR rtl-opt/67609
15746 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15747 sse check to the exact conditions of PR 67609.
15748
15749 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15750
15751 PR target/69667
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.
15757
15758 2016-02-04 David Malcolm <dmalcolm@redhat.com>
15759
15760 * config/aarch64/cortex-a57-fma-steering.c
15761 (aarch64_register_fma_steering): Remove "static" from arguments
15762 to register_pass.
15763
15764 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
15765
15766 PR target/69619
15767 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15768 twice when complex.
15769
15770 2016-02-04 Mike Frysinger <vapier@gentoo.org>
15771
15772 * doc/invoke.texi: Delete -mno-fma4.
15773
15774 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
15775
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
15779 definitions.
15780
15781 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
15782
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.
15892
15893 2016-02-04 Martin Liska <mliska@suse.cz>
15894
15895 PR sanitizer/69276
15896 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15897 that are gimple_store_p.
15898 (maybe_instrument_call): Likewise.
15899
15900 2016-02-04 Bin Cheng <bin.cheng@arm.com>
15901
15902 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15903 register scaling out of memory reference and comment why.
15904
15905 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15906
15907 PR target/65932
15908 PR target/67714
15909 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15910 folding the source of a SET.
15911
15912 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15913
15914 PR target/65932
15915 PR target/67714
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.
15918
15919 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
15920
15921 PR target/65932
15922 PR target/67714
15923 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15924 HImode.
15925
15926 2016-02-04 Christian Bruel <christian.bruel@st.com>
15927
15928 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15929 * config/arm/arm.c (arm_set_current_function): Likewise.
15930
15931 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15932 Ilya Enkovich <enkovich.gnu@gmail.com>
15933 H.J. Lu <hongjiu.lu@intel.com>
15934
15935 PR target/69454
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.
15941
15942 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
15943
15944 * config/i386/x86-tune.def: Disable default prefetching
15945 for -march=znver1.
15946
15947 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15948 Vladimir Makarov <vmakarov@redhat.com>
15949
15950 PR target/69461
15951 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15952 in validating fused toc addresses.
15953
15954 2016-02-03 Jakub Jelinek <jakub@redhat.com>
15955
15956 PR c/69627
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.
15959
15960 PR target/69644
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.
15964
15965 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
15966 Alexandre Oliva <aoliva@redhat.com>
15967
15968 PR target/69461
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
15972 nothing.
15973
15974 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
15975
15976 PR target/69118
15977 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15978 Fix target.
15979
15980 2016-02-02 Jakub Jelinek <jakub@redhat.com>
15981
15982 * wide-int.cc (canonize_uhwi): New function.
15983 (wi::divmod_internal): Use it.
15984
15985 2016-02-02 James Norris <jnorris@codesourcery.com
15986
15987 * gimplify.c (omp_notice_variable): Add usage check.
15988
15989 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
15990
15991 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
15992 like LE, GE, LT, GT when emitting relational operator.
15993
15994 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
15995
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):
16003 Add parameter.
16004 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16005 Update target hook.
16006
16007 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16008
16009 * config/aarch64/aarch64.c
16010 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16011 (aarch64_ira_change_pseudo_allocno_class): New function.
16012
16013 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16014
16015 PR target/67032
16016 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16017
16018 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16019
16020 * config/avr/avr.c (avr_option_override): Set
16021 PARAM_ALLOW_STORE_DATA_RACES to 1.
16022
16023 2016-02-02 Richard Biener <rguenther@suse.de>
16024
16025 PR tree-optimization/69595
16026 * match.pd: Add range test simplifications to true/false.
16027
16028 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16029
16030 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16031 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16032 instead.
16033
16034 2016-02-02 Richard Biener <rguenther@suse.de>
16035
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.
16039
16040 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16041
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.
16056
16057 2016-02-02 Alan Modra <amodra@gmail.com>
16058
16059 PR target/69548
16060 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16061 allow subregs.
16062
16063 2016-02-02 Alan Modra <amodra@gmail.com>
16064
16065 PR target/68662
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.
16073
16074 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16075
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.
16081
16082 2016-02-01 Jeff Law <law@redhat.com>
16083
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.
16089
16090 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16091
16092 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16093 when count is incremented above limit, don't analyze further
16094 insns afterwards.
16095
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.
16099
16100 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16101
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.
16106
16107 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16108
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
16119 possible.
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.
16125
16126 2016-02-01 Richard Biener <rguenther@suse.de>
16127
16128 PR middle-end/69556
16129 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16130
16131 2016-02-01 Richard Biener <rguenther@suse.de>
16132
16133 PR tree-optimization/69574
16134 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16135 of asserting return chrec_dont_know.
16136
16137 2016-02-01 Martin Liska <mliska@suse.cz>
16138
16139 * mem-stats-traits.h: Add copyright header.
16140 * mem-stats.h: Likewise.
16141
16142 2016-02-01 Richard Biener <rguenther@suse.de>
16143
16144 PR tree-optimization/69579
16145 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16146 Do not propagate through abnormal PHI results.
16147
16148 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16149
16150 * postreload.c (reload_cse_simplify): Remove dead code.
16151
16152 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16153
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.
16157
16158 2016-02-01 Richard Henderson <rth@redhat.com>
16159
16160 PR rtl-opt/69535
16161 * combine.c (make_compound_operation): When looking through a
16162 subreg, make sure to re-extend to the width of the outer mode.
16163
16164 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16165
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.
16173
16174 2016-01-29 Martin Jambor <mjambor@suse.cz>
16175
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.
16187
16188 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16189
16190 * doc/install.texi: Document that isl-0.16 is supported.
16191
16192 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16193
16194 PR target/69299
16195 * config/i386/constraints.md (Bm): Describe as special memory
16196 constraint.
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
16201 static vars.
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
16220 CT_SPECIAL_MEMORY.
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.
16225
16226 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16227
16228 PR target/69530
16229 * lra-splill.c (lra_final_code_change): Revert r229087 by
16230 removing all sub-registers.
16231
16232 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16233
16234 PR target/65604
16235 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16236
16237 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16238
16239 PR target/69551
16240 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16241 SSE1, copy target into the temporary reg first before recursing
16242 on it.
16243
16244 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16245
16246 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16247 with vm.
16248
16249 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16250
16251 * ginclude/stdarg.h: Test __cplusplus instead of
16252 __GXX_EXPERIMENTAL_CXX0X__.
16253
16254 2016-01-29 Richard Biener <rguenther@suse.de>
16255
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.
16260
16261 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16262
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.
16266
16267 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16268
16269 PR other/69006
16270 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16271 trailing blank line from error message.
16272
16273 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16274
16275 PR c++/69462
16276 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16277 for C++-11.
16278
16279 2016-01-29 Richard Biener <rguenther@suse.de>
16280
16281 PR middle-end/69537
16282 * match.pd: Allow all integral types when simplifying a
16283 widening or sign-changing conversion.
16284
16285 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16286
16287 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16288 back to setting codegen_error to fail codegen.
16289
16290 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16291
16292 PR target/69459
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
16298 of C constraint.
16299
16300 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16301
16302 PR target/68400
16303 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16304
16305 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16306
16307 PR middle-end/69542
16308 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16309 non-debug insns.
16310
16311 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16312
16313 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16314 branches if using guessed profile.
16315
16316 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16317
16318 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16319
16320 2016-01-28 Richard Henderson <rth@redhat.com>
16321
16322 PR target/69305
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.
16349
16350 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16351
16352 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16353 message when isl does not return a valid schedule.
16354
16355 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16356
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
16359 close by the defs.
16360
16361 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16362
16363 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16364 codegen_error_p.
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.
16376
16377 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16378
16379 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16380 instead of setting codegen_error to fail codegen.
16381
16382 2016-01-28 Jason Merrill <jason@redhat.com>
16383
16384 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16385
16386 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16387
16388 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16389 Remove CONST_INT_P check in CCMP cost calculation.
16390
16391 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16392
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.
16401
16402 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16403
16404 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16405 immediate as %1.
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.
16411
16412 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
16413
16414 * tree-vect-stmts.c (vectorizable_comparison): Add
16415 NULL check for vectype.
16416
16417 2016-01-28 Richard Biener <rguenther@suse.de>
16418
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.
16422
16423 2016-01-28 Martin Liska <mliska@suse.cz>
16424
16425 PR pch/68758
16426 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16427 instead of ENABLE_VALGRIND_CHECKING.
16428
16429 2016-01-27 Richard Henderson <rth@redhat.com>
16430
16431 PR rtl-opt/69447
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.
16438
16439 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
16440
16441 PR target/68986
16442 * config/i386/i386.c (ix86_update_stack_boundary): Don't
16443 change stack_alignment_needed for __tls_get_addr call.
16444
16445 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
16446
16447 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16448
16449 2016-01-27 Jeff Law <law@redhat.com>
16450
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.
16459
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.
16463
16464 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16465
16466 PR lto/69254
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.
16473
16474 2016-01-27 Ian Lance Taylor <iant@google.com>
16475
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
16480 NULL.
16481
16482 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
16483
16484 PR target/69512
16485 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16486 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16487
16488 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
16489
16490 PR target/68380
16491 * configure.ac: NetBSD provides SSP in its C library.
16492 * configure: Updated.
16493
16494 2016-01-27 Richard Biener <rguenther@suse.de>
16495
16496 PR tree-optimization/69166
16497 * tree-vect-loop.c (vect_is_simple_reduction): Always check
16498 reduction code for commutativity / associativity.
16499
16500 2016-01-27 Martin Jambor <mjambor@suse.cz>
16501
16502 PR tree-optimization/69355
16503 * tree-sra.c (analyze_access_subtree): Correct hole detection when
16504 total_scalarization fails.
16505
16506 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
16507
16508 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16509 power9.
16510
16511 2016-01-27 Christian Bruel <christian.bruel@st.com>
16512
16513 PR target/69245
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.
16521
16522 2016-01-27 Martin Liska <mliska@suse.cz>
16523
16524 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16525 reference for an HSA kernel and its host function.
16526
16527 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16528
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.
16532
16533 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16534
16535 * config/arc/predicates.md (proper_comparison_operator): Reject
16536 constant-constant comparison.
16537
16538 2016-01-26 Tom de Vries <tom@codesourcery.com>
16539
16540 PR tree-optimization/69110
16541 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16542 DR_NUM_DIMENSIONS == 0.
16543
16544 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16545 Sebastian Pop <s.pop@samsung.com>
16546
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.
16550
16551 2016-01-26 Jason Merrill <jason@redhat.com>
16552
16553 PR c++/68782
16554 * tree.c (recompute_constructor_flags): Split out from
16555 build_constructor.
16556 (verify_constructor_flags): New.
16557 * tree.h: Declare them.
16558
16559 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16560
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.
16564
16565 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16566
16567 PR target/68662
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
16572 LCTOC1.
16573 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16574 constructing LCTOC1.
16575
16576 2016-01-26 Martin Sebor <msebor@redhat.com>
16577
16578 PR other/69477
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.
16582
16583 2016-01-26 Richard Henderson <rth@redhat.com>
16584
16585 PR middle-end/60908
16586 * trans-mem.c (tm_region_init): Mark entry block as visited.
16587
16588 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16589
16590 PR other/69006
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
16598 before a newline.
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.
16608
16609 2016-01-26 Michael Matz <matz@suse.de>
16610
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.
16615
16616 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16617
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.
16624
16625 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16626
16627 PR tree-optimization/69483
16628 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16629 if base has error_mark_node type.
16630
16631 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16632
16633 PR target/68620
16634 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16635 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16636 New helper macros.
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.
16650
16651 2016-01-26 Nathan Sidwell <nathan@acm.org>
16652
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.
16666
16667 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16668
16669 PR lto/69254
16670 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16671 (append_compiler_options): Handle -fcilkplus.
16672 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16673
16674 2016-01-26 Nick Clifton <nickc@redhat.com>
16675
16676 PR target/66655
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.
16680
16681 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16682
16683 PR lto/69254
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.
16688
16689 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
16690
16691 PR target/68986
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
16695 __tls_get_addr.
16696 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16697 if __tls_get_addr is called.
16698
16699 2016-01-26 Christian Bruel <christian.bruel@st.com>
16700
16701 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16702
16703 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
16704
16705 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16706
16707 2016-01-26 Richard Biener <rguenther@suse.de>
16708
16709 PR middle-end/69467
16710 * match.pd: Guard X * CST CMP 0 pattern with single_use.
16711
16712 2016-01-26 Richard Biener <rguenther@suse.de>
16713
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
16717 to ...
16718 (move_computations_worker): This.
16719 (move_computations): Perform an RPO rather than a DOM walk.
16720
16721 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16722
16723 PR target/69442
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.
16729
16730 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
16731
16732 PR target/67896
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.
16736
16737 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
16738
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.
16746
16747 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16748 Sebastian Pop <s.pop@samsung.com>
16749
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.
16794 (nested_in): New.
16795 (loop_at): New.
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.
16839
16840 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16841 Sebastian Pop <s.pop@samsung.com>
16842
16843 * Makefile.in: Set ISLVER in site.exp.
16844
16845 2016-01-25 Jakub Jelinek <jakub@redhat.com>
16846
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.
16850
16851 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16852
16853 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16854 the frame info after reload completed.
16855
16856 2016-01-25 Jeff Law <law@redhat.com>
16857
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.
16873
16874 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16875
16876 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
16877 decl with __attribute__ ((unused)) annotation.
16878
16879 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
16880
16881 PR target/69421
16882 * tree-vect-stmts.c (vectorizable_condition): Check vectype
16883 of operands is compatible with a statement vectype.
16884
16885 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
16886
16887 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16888 improve wording for mixed storage order support.
16889
16890 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
16891
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.
16902
16903 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
16904
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.
16921
16922 2016-01-25 Richard Biener <rguenther@suse.de>
16923
16924 PR lto/69393
16925 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16926 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16927 DECL_NAMELESS.
16928 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16929
16930 2016-01-25 Richard Biener <rguenther@suse.de>
16931
16932 PR tree-optimization/69376
16933 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16934 flag.
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.
16942
16943 2016-01-25 Nick Clifton <nickc@redhat.com>
16944
16945 PR target/66655
16946 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16947
16948 2016-01-23 Tom de Vries <tom@codesourcery.com>
16949
16950 PR tree-optimization/69426
16951 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16952 removed clobber.
16953
16954 2016-01-23 Jakub Jelinek <jakub@redhat.com>
16955
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.
16970
16971 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16972 directly instead of building a temporary tree.
16973
16974 PR bootstrap/69434
16975 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16976 remove <algorithm> include.
16977
16978 2016-01-22 Jakub Jelinek <jakub@redhat.com>
16979
16980 PR target/69432
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
16984 fixes.
16985 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16986 if dynamic_check != -1.
16987
16988 2016-01-21 Jeff Law <law@redhat.com>
16989
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.
16995
16996 2016-01-22 Richard Henderson <rth@redhat.com>
16997
16998 PR target/69416
16999 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17000 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17001
17002 2016-01-22 Michael Matz <matz@suse.de>
17003
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
17010 INCLUDE_STRING.
17011 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17012
17013 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17014 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17015
17016 2016-01-22 Christian Bruel <christian.bruel@st.com>
17017
17018 PR target/68674
17019 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17020
17021 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17022
17023 PR target/69403
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.
17027
17028 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17029
17030 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17031
17032 2016-01-22 Christian Bruel <christian.bruel@st.com>
17033
17034 * config/arm/arm-c.c (arm_pragma_target_parse):
17035 Remove warn_builtin_macro_redefined overwrite.
17036
17037 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17038
17039 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17040 flag_non_call_exceptions compatibility.
17041
17042 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17043
17044 PR debug/66668
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.
17053
17054 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17055
17056 * doc/extend.texi (scalar_storage_order type attribute): Document
17057 restriction on type punning and aliasing, and remove future tense.
17058
17059 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17060
17061 PR target/69252
17062 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17063 first stage.
17064
17065 2016-01-21 Jeff Law <law@redhat.com>
17066
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
17073 vector.
17074
17075 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17076
17077 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17078 Detangle.
17079 * configure: Regenerate.
17080
17081 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17082
17083 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17084 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17085
17086 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17087
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.
17095
17096 2016-01-21 Anton Blanchard <anton@samba.org>
17097 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17098
17099 PR target/63354
17100 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17101 #define.
17102 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17103 function.
17104
17105 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17106
17107 * config/microblaze/microblaze.c
17108 (get_branch_target): New.
17109 (insert_wic_for_ilb_runout): New.
17110 (insert_wic): 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.
17118
17119 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17120
17121 * config/microblaze/microblaze.h
17122 (FIXED_REGISTERS): Update in macro.
17123 (CALL_USED_REGISTERS): Update in macro.
17124
17125 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17126
17127 PR rtl-optimization/68920
17128 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17129 moves.
17130
17131 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17132
17133 PR rtl-optimization/68990
17134 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17135 pseudo instead of inheritance ones.
17136
17137 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17138 Nick Clifton <nickc@redhat.com>
17139
17140 PR target/69129
17141 PR target/69012
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.
17145
17146 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17147
17148 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17149 label reference.
17150 * configure: Regenerate.
17151
17152 2016-01-21 Richard Biener <rguenther@suse.de>
17153
17154 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17155
17156 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17157
17158 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17159 to actually emit the .size directive.
17160
17161 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17162 Jakub Jelinek <jakub@redhat.com>
17163
17164 PR target/69187
17165 PR target/65624
17166 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17167 args array size by one to avoid buffer overflow.
17168
17169 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17170
17171 * config/s390/s390.md (pool_section_start): Use switch_to_section
17172 to select proper read-only data section instead of hardcoding
17173 .rodata.
17174 (pool_section_end): Use switch_to_section to match the above.
17175
17176 2016-01-21 Richard Biener <rguenther@suse.de>
17177
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.
17182
17183 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17184
17185 PR c++/69355
17186 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17187 for bitsize instead of GET_MODE_PRECISION (mode).
17188
17189 2016-01-20 Martin Sebor <msebor@redhat.com>
17190
17191 PR c/52291
17192 * extend.texi (__sync Builtins): Clarify the semantics of
17193 __sync_fetch_and_OP built-ins on pointers.
17194 (__atomic Builtins): Same.
17195
17196 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17197 Sebastian Pop <s.pop@samsung.com>
17198
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.
17209
17210 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17211 Sebastian Pop <s.pop@samsung.com>
17212
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.
17226
17227 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17228 Sebastian Pop <s.pop@samsung.com>
17229
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.
17234
17235 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17236 Sebastian Pop <s.pop@samsung.com>
17237
17238 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17239 Discard unstructured if-then-else regions.
17240
17241 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17242 Sebastian Pop <s.pop@samsung.com>
17243
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.
17252
17253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17254 Sebastian Pop <s.pop@samsung.com>
17255
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.
17259
17260 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17261 Sebastian Pop <s.pop@samsung.com>
17262
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.
17273
17274 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17275 Sebastian Pop <s.pop@samsung.com>
17276
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.
17282
17283 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17284 Sebastian Pop <s.pop@samsung.com>
17285
17286 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17287 isl_ast_node_mark.
17288
17289 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17290 Sebastian Pop <s.pop@samsung.com>
17291
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.
17295
17296 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17297 Sebastian Pop <s.pop@samsung.com>
17298
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.
17322
17323 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17324
17325 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17326 requirements.
17327
17328 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17329
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.
17339
17340 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17341
17342 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17343 warning. Fix up formatting.
17344
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.
17350
17351 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17352
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.
17372
17373 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
17374
17375 PR target/68609
17376 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17377 domain check.
17378 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17379 for V4SFmode.
17380
17381 2016-01-20 Richard Henderson <rth@redhat.com>
17382
17383 PR bootstrap/69343
17384 PR bootstrap/69339
17385 PR tree-opt/68964
17386 Revert:
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.
17391
17392 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
17393
17394 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17395 (arm_fp_ok): Likewise.
17396 (arm_fp): Likewise.
17397 (arm_crypto): Likewise.
17398
17399 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17400 Richard Biener <rguenther@suse.de>
17401
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.
17406
17407 2016-01-20 Richard Biener <rguenther@suse.de>
17408
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.
17416
17417 2016-01-20 Jeff Law <law@redhat.com>
17418
17419 PR target/25114
17420 * config/m68k/predicates.md (pow2_m1_operand): New predicate
17421 extracted from ...
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.
17426
17427 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
17428
17429 * doc/invoke.texi (Options Summary): Add '.' after @xref.
17430
17431 2016-01-19 Jeff Law <law@redhat.com>
17432
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.
17437
17438 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17439
17440 * doc/lto.texi: Remove text that says only Gold has linker plugin
17441 support.
17442
17443 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
17444
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
17452 modified_type_die.
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.
17472
17473 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
17474
17475 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17476 flow throughout the file. Fix broken link to Objective-C 2.0
17477 documentation.
17478 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17479 errors.
17480
17481 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17482
17483 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17484
17485 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17486
17487 PR ipa/66223
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.
17492
17493 2016-01-19 Richard Biener <rguenther@suse.de>
17494
17495 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17496 (get_memory_order): Likewise.
17497
17498 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
17499
17500 * tree-vect-stmts.c (vectorizable_store): Check
17501 rhs vectype.
17502
17503 2016-01-19 David Malcolm <dmalcolm@redhat.com>
17504
17505 PR jit/68446
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.
17516
17517 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17518
17519 PR target/69135
17520 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17521 attribute to unconditional. Remove %? from output template.
17522
17523 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17524 Jiong Wang <jiong.wang@arm.com>
17525
17526 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17527 generated from different expand order.
17528
17529 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17530
17531 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17532 Add support for CCMP costing.
17533
17534 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17535
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.
17540 (fcmpe): Likewise.
17541 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17542 (aarch64_gen_ccmp_next): Add FP support.
17543
17544 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17545
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.
17572
17573 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17574
17575 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17576 instrumented_version.
17577
17578 2016-01-19 Richard Biener <rguenther@suse.de>
17579
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.
17584
17585 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17586
17587 PR debug/65779
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.
17597
17598 2016-01-19 Richard Biener <rguenther@suse.de>
17599
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.
17604
17605 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17606
17607 * ira.c (ira): Update regstat data if we deleted insns.
17608
17609 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17610
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.
17616
17617 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17618
17619 PR lto/69133
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
17623 check.
17624
17625 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17626
17627 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17628 thunks.
17629
17630 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17631
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.
17634
17635 2016-01-19 Martin Jambor <mjambor@suse.cz>
17636 Martin Liska <mliska@suse.cz>
17637 Michael Matz <matz@suse.de>
17638
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
17695 constructs.
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.
17762 * hsa.c: Likewise.
17763 * hsa.h: Likewise.
17764 * toplev.c (compile_file): Call hsa_output_brig.
17765 * hsa-regalloc.c: New file.
17766
17767 2016-01-18 Jeff Law <law@redhat.com>
17768
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.
17774
17775 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17776 test.
17777
17778 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
17779
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
17787 new section.
17788 (Developer Options): New section incorporating moved options.
17789 * doc/cppopts.texi (-dM): Update cross-reference.
17790
17791 2016-01-18 Richard Henderson <rth@redhat.com>
17792
17793 PR target/69176
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.
17805
17806 2016-01-18 Richard Biener <rguenther@suse.de>
17807
17808 PR tree-optimization/69297
17809 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17810 stmt at most once.
17811 (vect_bb_vectorization_profitable_p): Clear visited flag again.
17812
17813 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17814
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
17825 valid type of VAL.
17826
17827 2016-01-18 Joseph Myers <joseph@codesourcery.com>
17828
17829 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17830 !TARGET_OCTEON.
17831
17832 2016-01-18 Richard Biener <rguenther@suse.de>
17833
17834 PR middle-end/69308
17835 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17836
17837 2016-01-18 Tom de Vries <tom@codesourcery.com>
17838
17839 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17840
17841 2016-01-18 Tom de Vries <tom@codesourcery.com>
17842
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.
17861
17862 2016-01-18 Tom de Vries <tom@codesourcery.com>
17863
17864 * tree-parloops.c (pass_parallelize_loops::execute): Allow
17865 pass_parallelize_loops to be run outside the loop pipeline.
17866
17867 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17868
17869 * tree-scalar-evolution.c (follow_copies_to_constant): New.
17870 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17871
17872 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17873
17874 PR target/63679
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.
17879
17880 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17881
17882 PR target/63679
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.
17895
17896 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17897
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.
17902
17903 2016-01-18 Richard Biener <rguenther@suse.de>
17904
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.
17908
17909 2016-01-18 Jakub Jelinek <jakub@redhat.com>
17910
17911 * haifa-sched.c (autopref_multipass_init): Work around
17912 -Wmaybe-uninitialized warning.
17913
17914 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17915
17916 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17917 against the constant 0.
17918
17919 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17920
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.
17929
17930 2016-01-17 Jakub Jelinek <jakub@redhat.com>
17931
17932 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17933 -Wmaybe-uninitialized warning.
17934
17935 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
17936
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.
17947
17948 2016-01-16 Tom de Vries <tom@codesourcery.com>
17949
17950 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17951
17952 2016-01-16 Tom de Vries <tom@codesourcery.com>
17953
17954 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
17955
17956 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
17957
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.
17962
17963 2016-01-15 David Malcolm <dmalcolm@redhat.com>
17964
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.
17969
17970 2016-01-15 Jeff Law <law@redhat.com>
17971
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.
17979
17980 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
17981
17982 PR rtl-optimization/69030
17983 * lra-spills.c (remove_pseudos): Check nrefs and make the function
17984 returning bool.
17985 (spill_pseudos): Delete debug insn for dead pseudo.
17986 (lra_spill): Initiate spill_hard_reg and slots memory separately.
17987
17988 2016-01-15 Jiong Wang <jiong.wang@arm.com>
17989
17990 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
17991 New.
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
18018 conversion.
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.
18041
18042 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18043
18044 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18045 CSEL of zero_extended registers.
18046
18047 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18048
18049 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18050 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18051
18052 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18053
18054 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18055 false when argument string is not found in the attributes table
18056 at all.
18057
18058 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18059
18060 PR target/68609
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.
18065
18066 2016-01-15 Richard Biener <rguenther@suse.de>
18067
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.
18079
18080 2016-01-15 Richard Biener <rguenther@suse.de>
18081
18082 PR debug/69137
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
18087 if necessary.
18088
18089 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18090
18091 * gimplify.c (oacc_default_clause): Decode reference and pointer
18092 types for both kernels and parallel regions.
18093
18094 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18095
18096 PR middle-end/69246
18097 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18098
18099 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18100
18101 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18102 (convert_scalars_to_vector): Likewise.
18103
18104 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18105
18106 * doc/extend.texi (Type Traits): Fix grammar.
18107
18108 2016-01-15 Martin Jambor <mjambor@suse.cz>
18109
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
18117 padding.
18118
18119 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18120
18121 * config/s390/s390.opt (mmvcle): More verbose help text.
18122
18123 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18124
18125 * config/s390/s390.opt: Add period to -mzvector option text.
18126
18127 2016-01-15 Richard Biener <rguenther@suse.de>
18128
18129 PR tree-optimization/68961
18130 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18131 of invariants in stores again.
18132
18133 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18134
18135 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18136
18137 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18138
18139 * config/i386/i386.c (ix86_expand_branch): Don't split
18140 DI mode xor instruction to SI mode.
18141
18142 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18143
18144 PR ipa/68148
18145 * ipa-icf.c (sem_function::merge): Virtual functions may become
18146 reachable even if they address is not taken and there are no
18147 idrect calls.
18148
18149 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18150
18151 * lto-streamer-out.c (subtract_estimated_size): New function.
18152 (get_symbol_initial_value): Use it.
18153
18154 2016-01-15 Christian Bruel <christian.bruel@st.com>
18155
18156 PR target/65837
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.
18168
18169 2016-01-15 Richard Biener <rguenther@suse.de>
18170
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.
18176
18177 2016-01-14 Jeff Law <law@redhat.com>
18178
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.
18184
18185 2016-01-14 Richard Henderson <rth@redhat.com>
18186
18187 PR rtl-opt/69014
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.
18192
18193 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18194
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.
18200
18201 2016-01-14 Jeff Law <law@redhat.com>
18202
18203 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18204 typo.
18205
18206 2016-01-14 Richard Henderson <rth@redhat.com>
18207
18208 PR c/69272
18209 PR tree-opt/68964
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.
18213
18214 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18215
18216 * doc/loop.texi (Loop Analysis and Representation): Document
18217 loop_depth function.
18218
18219 2016-01-14 Tom de Vries <tom@codesourcery.com>
18220
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.
18226
18227 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18228
18229 PR debug/69244
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.
18234
18235 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18236
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.
18248
18249 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18250
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.
18257
18258 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18259
18260 * alias.c (compare_base_symbol_refs): New function.
18261 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18262 it.
18263
18264 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18265
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.
18279
18280 2016-01-14 Richard Biener <rguenther@suse.de>
18281
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.
18286
18287 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18288
18289 PR target/68269
18290 * combine.c (expand_field_assignment): Punt if compute_mode is
18291 unsupported scalar mode.
18292
18293 2016-01-14 Richard Biener <rguenther@suse.de>
18294
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.
18299
18300 2016-01-14 Jeff Law <law@redhat.com>
18301
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.
18306
18307 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18308
18309 PR ipa/66487
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.
18313
18314 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18315
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.
18319 Update references.
18320
18321 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18322
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.
18326
18327 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18328
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.
18332
18333 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18334
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.
18339
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.
18345
18346 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18347 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18348 functions
18349 (RS6000_BTM_COMMON): Likewise.
18350
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.
18363
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.
18367
18368 * doc/extend.texi (PowerPC Built-in Functions): Document
18369 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18370
18371 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
18372
18373 PR c/66208
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.
18381
18382 2016-01-13 Jakub Jelinek <jakub@redhat.com>
18383
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.
18390
18391 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18392
18393 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18394 effects.
18395
18396 2016-01-13 Richard Henderson <rth@redhat.com>
18397
18398 PR tree-opt/68964
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.
18407
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
18413 via target hook.
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.
18421
18422 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
18423
18424 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18425 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
18426
18427 2016-01-13 Tom de Vries <tom@codesourcery.com>
18428
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.
18434
18435 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
18436
18437 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18438 and "armv8.1-a+crc" entries.
18439
18440 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
18441
18442 PR target/69228
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.
18455
18456 2016-01-13 Richard Biener <rguenther@suse.de>
18457
18458 PR tree-optimization/69013
18459 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18460 Exchange assert for a test.
18461
18462 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18463
18464 PR target/69247
18465 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18466
18467 2016-01-13 Richard Biener <rguenther@suse.de>
18468
18469 PR tree-optimization/69242
18470 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18471 assert with a check.
18472
18473 2016-01-13 Richard Biener <rguenther@suse.de>
18474
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.
18478
18479 2016-01-12 Jeff Law <law@redhat.com>
18480
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
18488 needed.
18489
18490 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18491
18492 * doc/invoke.texi (Spec Files): Move section down in file, past
18493 all command-line option descriptions.
18494
18495 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18496
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.
18503
18504 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18505
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.
18511
18512 2016-01-12 Jeff Law <law@redhat.com>
18513
18514 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18515
18516 2016-01-12 Olivier Hainque <hainque@adacore.com>
18517
18518 * gcc.c (spec_undefvar_allowed): New global.
18519 (process_command): Set to true when running for --version or --help,
18520 alone or together.
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
18523 a fatal error.
18524
18525 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18526
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".
18530
18531 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18532
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.
18537
18538 2016-01-12 Christian Bruel <christian.bruel@st.com>
18539
18540 PR target/69180
18541 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18542 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18543
18544 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18545
18546 PR target/69198
18547 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18548 aligned_mem is properly set for AVX512-VL floating point masked
18549 stores.
18550
18551 PR target/69175
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.
18554
18555 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18556
18557 PR target/68456
18558 PR target/69226
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.
18564
18565 2016-01-12 Richard Biener <rguenther@suse.de>
18566
18567 PR tree-optimization/69053
18568 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18569 convert initial value for cond reductions.
18570
18571 2016-01-12 Richard Biener <rguenther@suse.de>
18572
18573 PR tree-optimization/69007
18574 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18575 widen_sum after dot_prod and sad.
18576
18577 2016-01-12 Richard Biener <rguenther@suse.de>
18578
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.
18584
18585 2016-01-12 Richard Biener <rguenther@suse.de>
18586
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.
18598
18599 2016-01-12 Richard Biener <rguenther@suse.de>
18600
18601 PR tree-optimization/69174
18602 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18603 space.
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.
18607
18608 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18609
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
18629
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.
18641
18642 * config/i386/djgpp.c: New file. Add implementation of
18643 i386_djgpp_asm_named_section.
18644
18645 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18646
18647 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18648 Add rule for building djgpp.o.
18649
18650 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18651
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.
18655
18656 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
18657
18658 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18659 reloads for other unsupported memory operands.
18660
18661 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18662 Jim Wilson <jim.wilson@linaro.org>
18663
18664 PR target/69194
18665 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18666 copy_to_mode_reg instead of force_reg.
18667
18668 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18669
18670 PR target/69225
18671 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18672 TARGET_80387 is true.
18673
18674 2016-01-11 Jakub Jelinek <jakub@redhat.com>
18675
18676 PR target/69071
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.
18681
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.
18687
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.
18691 Formatting fix.
18692
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.
18698
18699 2016-01-11 Richard Biener <rguenther@suse.de>
18700
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.
18704
18705 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
18706
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.
18712
18713 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18714
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.
18720
18721 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18722
18723 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18724 (<avx512>_store<mode>_mask): Likewise.
18725
18726 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
18727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18728
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.
18737
18738 2016-01-11 Tom de Vries <tom@codesourcery.com>
18739
18740 PR tree-optimization/69069
18741 * tree-parloops.c (create_parallel_loop): Add missing phi args.
18742
18743 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18744
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
18753 RTL if-conversion.
18754 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18755 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18756 conditionl moves.
18757
18758 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
18759
18760 PR bootstrap/69123
18761 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18762 onepart vars. Fix typo in comment. Fix reversed condition in
18763 unshare test.
18764 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18765
18766 PR bootstrap/69123
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.
18771
18772 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18773
18774 PR target/69010
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.
18780
18781 2016-01-11 Martin Jambor <mjambor@suse.cz>
18782
18783 PR ipa/69044
18784 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18785 useless parameters if we cannot change function signature.
18786
18787 2016-01-11 Martin Jambor <mjambor@suse.cz>
18788
18789 PR ipa/66616
18790 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18791 flag.
18792
18793 2016-01-11 Tom de Vries <tom@codesourcery.com>
18794
18795 PR tree-optimization/69109
18796 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18797 latch with phi.
18798
18799 2016-01-11 Tom de Vries <tom@codesourcery.com>
18800
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.
18804
18805 2016-01-11 Yury Gribov <y.gribov@samsung.com>
18806
18807 PR 67425
18808 * common.opt (frandom-seed): Fix parameter name.
18809 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18810
18811 2016-01-11 Tom de Vries <tom@codesourcery.com>
18812
18813 PR tree-optimization/69058
18814 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18815 not supported.
18816
18817 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
18818
18819 * config/arc/arc.opt (mdiv-rem): Add period to the end.
18820 (mcode-density): Likewise.
18821
18822 2016-01-10 Tom de Vries <tom@codesourcery.com>
18823
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
18827 arg.
18828
18829 2016-01-10 Tom de Vries <tom@codesourcery.com>
18830
18831 PR tree-optimization/69039
18832 * tree-parloops.c (try_create_reduction_list): Only allow single exit
18833 phi for reduction.
18834
18835 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
18836
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.
18840
18841 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
18842
18843 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18844 use GMPINC.
18845 * configure: Regenerate.
18846
18847 2016-01-09 Jakub Jelinek <jakub@redhat.com>
18848
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.
18862
18863 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
18864
18865 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18866 w/o DECL_NAME.
18867
18868 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18869
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
18873 ops[0] comparison.
18874 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18875
18876 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18877 Richard Biener <rguenther@suse.de>
18878
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.
18882
18883 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
18884
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.
18889
18890 2016-01-08 Jason Merrill <jason@redhat.com>
18891
18892 PR c++/68983
18893 PR c++/67557
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.
18899
18900 2016-01-08 Olivier Hainque <hainque@adacore.com>
18901
18902 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18903 libc_internal.
18904
18905 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18906
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.
18913
18914 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18915
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.
18923
18924 PR tree-optimization/69172
18925 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18926 gimple_build.
18927
18928 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
18929
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.
18935
18936 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18937
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.
18943
18944 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
18945
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.
18952
18953 2016-01-07 Martin Sebor <msebor@redhat.com>
18954
18955 PR c/68966
18956 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18957 constraint on the type of arguments.
18958
18959 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
18960
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.
18966
18967 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18968
18969 PR target/69140
18970 * config/i386/i386.c (ix86_frame_pointer_required): Enable
18971 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18972
18973 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
18974
18975 Revert
18976 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
18977
18978 PR target/69140
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.
18982
18983 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
18984
18985 PR 1078
18986 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
18987
18988 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
18989
18990 PR target/69171
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):
18994 Likewise.
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
19003 predicate.
19004
19005 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19006
19007 PR middle-end/67639
19008 * varasm.c (make_decl_rtl): Mark invalid register vars as
19009 DECL_EXTERNAL.
19010
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.
19014
19015 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19016
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 ().
19022
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.
19026
19027 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19028
19029 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19030
19031 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19032
19033 PR target/69140
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.
19037
19038 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19039
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.
19049
19050 2016-01-06 Marek Polacek <polacek@redhat.com>
19051
19052 PR sanitizer/69099
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.
19058
19059 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19060
19061 PR 1078
19062 * doc/extend.texi (RL78 Variable Attributes): New section.
19063
19064 2016-01-05 Marek Polacek <polacek@redhat.com>
19065
19066 PR c/69104
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.
19073
19074 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19075
19076 PR target/68991
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
19081 vector_operand.
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.
19089
19090 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19091
19092 PR target/68991
19093 * config/i386/constraints.md (Bm): New constraint.
19094 * config/i386/predicates.md (vector_memory_operand): New
19095 predicate.
19096 * config/i386/sse.md: Replace xm with xBm in plusminus and
19097 any_logic patterns.
19098
19099 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19100
19101 PR 1078
19102 * doc/extend.texi (V850 Function Attributes): New section.
19103 (V850 Variable Attributes): New section.
19104
19105 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19106
19107 PR 1078
19108 * doc/extend.texi (MicroBlaze Function Attributes): Document
19109 interrupt_handler and fast_interrupt attributes.
19110
19111 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19112
19113 PR other/60465
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
19117 predicate.
19118
19119 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19120
19121 PR rtl-optimization/68651
19122 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19123 x << 1.
19124
19125 2016-01-05 Nathan Sidwell <nathan@acm.org>
19126
19127 * alias.c (compare_base_decls): Use symtab_node::get.
19128
19129 2016-01-05 Nick Clifton <nickc@redhat.com>
19130
19131 PR target/68770
19132 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19133 secondary_reload_info structure.
19134
19135 PR target/66655
19136 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19137 decls if weak support is available.
19138
19139 2016-01-04 Martin Sebor <msebor@redhat.com>
19140
19141 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19142
19143 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19144
19145 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19146 OPTION_MASK_P9_DFORM.
19147
19148 * config/rs6000/constraints.md (wo constraint): New constraint for
19149 ISA 3.0 (power9).
19150
19151 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19152 for wo constraint.
19153 (rs6000_init_hard_regno_mode_ok): Likewise.
19154
19155 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19156 wo constraint.
19157
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.
19167
19168 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19169
19170 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19171
19172 Update copyright years.
19173
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.
19186
19187 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19188
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.
19191
19192 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19193
19194 PR target/69100
19195 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19196 mode for %f0-%f31 only if TARGET_FPU.
19197
19198 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19199
19200 PR target/69072
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.
19204
19205 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19206
19207 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19208 option for arm*-*-* targets.
19209
19210 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19211
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
19218 attribute docs.
19219
19220 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19221
19222 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19223 -finite-math typo.
19224 (x86 Options): Likewise.
19225
19226 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19227
19228 PR 1078
19229
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.
19233
19234 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19235
19236 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19237 to correct alphabetization of table. Copy-edit and correct
19238 markup.
19239 <stack_protect>: Likewise.
19240 <target_clones>: Likewise.
19241 <simd>: Likewise.
19242 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19243 Correct punctuation.
19244 (Code Gen Options) <-fno-plt>: Copy-edit.
19245
19246 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19247
19248 PR target/68917
19249 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19250 SI values. Explicitly convert SI to DI and vice-versa.
19251
19252 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19253
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.
19257
19258 PR sanitizer/69055
19259 * ubsan.c (ubsan_instrument_float_cast): Call
19260 initialize_sanitizer_builtins.
19261
19262 PR target/69015
19263 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19264 \f
19265 Copyright (C) 2016 Free Software Foundation, Inc.
19266
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.