rs6000-protos.h (rs6000_split_vec_extract_var): New declaration.
[gcc.git] / gcc / ChangeLog
1 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2
3 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
4 New declaration.
5 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6 Add support for vec_extract of vector double or vector long having
7 a variable element number on 64-bit ISA 2.07 systems or newer.
8 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9 Likewise.
10 (rs6000_split_vec_extract_var): New function to split a
11 vec_extract built-in function with variable element number.
12 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
13 swappable.
14 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15 (UNSPEC_VSX_EXTRACT): Likewise.
16 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
17 direct move instructions to be generated on 64-bit ISA 2.07
18 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
19 instruction.
20 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
21 arguments for vec_extract variable element.
22 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
23 vec_extract with variable element on V2DFmode and V2DImode
24 vectors.
25 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
26 -mupper-regs-df requirement, since it isn't needed.
27 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
28 do direct moves on 64-bit systems, which allows optimization of
29 vec_extract on 64-bit ISA 2.07 systems and newer.
30
31 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
32 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
33
34 * config/aarch64/aarch64.md
35 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
36 statement and type.
37 (<optab>qihi2_aarch64): Likewise, and split into two.
38 (extendqihi2_aarch64): New.
39 (zero_extendqihi2_aarch64): New.
40 * config/aarch64/iterators.md (ldrxt): Remove.
41 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
42 uxtb/uxth.
43
44 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
45
46 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
47
48 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
49
50 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
51 (aarch64_push_reg): New function to push 1 or 2 registers.
52 (aarch64_pop_reg): New function to pop 1 or 2 registers.
53 (aarch64_expand_prologue): Use aarch64_push_regs.
54 (aarch64_expand_epilogue): Use aarch64_pop_regs.
55
56 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
57
58 PR tree-optimization/71734
59 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
60 attribute instead of REF_LOOP and use it.
61 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
62 set it for Loops having non-zero safelen attribute.
63 (ref_indep_loop_p): Pass zero as initial value for safelen.
64
65 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
66
67 PR middle-end/72657
68 PR target/72683
69 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
70 call using chkp_gimple_call_builtin_p.
71 (chkp_copy_bounds_for_assign): Likewise.
72
73 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
74
75 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
76 * config/arm/arm-protos.h (struct tune_params): Likewise.
77 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
78 (cortex_a9_sched_adjust_cost): Likewise.
79 (fa726te_sched_adjust_cost): Likewise.
80 (arm_adjust_cost): Likewise.
81 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
82 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
83 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
84 * config/i386/i386.c (ix86_adjust_cost): Likewise.
85 * config/ia64/ia64.c: Likewise.
86 * config/m68k/m68k.c: Likewise.
87 * config/mep/mep.c (mep_adjust_cost): Likewise.
88 * config/microblaze/microblaze.c (microblaze_adjust_cost):
89 * Likewise.
90 * config/mips/mips.c (mips_adjust_cost): Likewise.
91 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
92 * Likewise.
93 * config/pa/pa.c (pa_adjust_cost): Likewise.
94 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
95 (rs6000_debug_adjust_cost): Likewise.
96 * config/sh/sh.c (sh_adjust_cost): Likewise.
97 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
98 (hypersparc_adjust_cost): Likewise.
99 (sparc_adjust_cost): Likewise.
100 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
101 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
102 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
103 * Likewise.
104 * config/visium/visium.c (visium_adjust_cost): Likewise.
105 * doc/tm.texi: Regenerate.
106 * haifa-sched.c (dep_cost_1): Adjust.
107 * target.def: Merge adjust_cost and adjust_cost_2.
108
109 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
110
111 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
112
113 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
114
115 * store-motion.c (struct st_expr): Make pattern_regs a vector.
116 (extract_mentioned_regs): Append to a vector instead of
117 returning a rtx_expr_list.
118 (st_expr_entry): Adjust.
119 (free_st_expr_entry): Likewise.
120 (store_ops_ok): Likewise.
121 (store_killed_in_insn): Likewise.
122 (find_moveable_store): Likewise.
123
124 2016-07-28 Martin Liska <mliska@suse.cz>
125
126 PR gcov-profile/68025
127 * tree-profile.c (tree_profiling): Respect
128 no_profile_instrument_function attribute.
129 * doc/extend.texi: Document no_profile_instrument_function
130 attribute.
131
132 2016-07-28 Martin Liska <mliska@suse.cz>
133
134 PR rtl-optimization/70944
135 * combine.c (make_compound_operation):
136 Do not allow make_compound_operation for vector mode
137
138 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
139
140 PR middle-end/71994
141 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
142 before calling get_ops.
143
144 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
145
146 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
147 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
148 (BITS_PER_UNIT_LOG): Remove.
149 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
150 * expr.c (expand_assignment): Likewise.
151 * stor-layout.c (initialize_sizetypes): Likewise.
152
153 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
154
155 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
156 signature of rs6000_expand_vector_extract so that the element
157 number is a RTX instead of a constant integer.
158 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
159 Likewise.
160 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
161 (altivec_expand_vec_ext_builtin): Likewise.
162 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
163 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
164 MFVSRLD instruction.
165
166 2016-07-27 David Malcolm <dmalcolm@redhat.com>
167
168 * input.c (get_pure_location): Move here from tree.c.
169 (make_location): Likewise. Add header comment.
170 (selftest::test_accessing_ordinary_linemaps): Verify
171 pure_location_p, make_location, get_location_from_adhoc_loc and
172 get_range_from_loc.
173 * input.h (get_pure_location): Move declaration here from tree.h.
174 (get_finish): Likewise for inline function.
175 (make_location): Likewise for declaration.
176 * tree.c (get_pure_location): Move to input.c.
177 (make_location): Likewise.
178 * tree.h (get_pure_location): Move declaration to tree.h.
179 (get_finish): Likewise for inline function.
180 (make_location): Likewise for declaration.
181
182 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
183
184 PR middle-end/71078
185 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
186
187 2016-07-27 David Malcolm <dmalcolm@redhat.com>
188
189 * system.h (STATIC_ASSERT): Use static_assert if building
190 with C++11 onwards.
191
192 2016-07-27 Richard Biener <rguenther@suse.de>
193
194 PR tree-optimization/72517
195 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
196 Revert change to not compute read-read dependences.
197
198 2016-07-27 Richard Biener <rguenther@suse.de>
199
200 * predict.c (set_even_probabilities): Make nedges unsigned.
201
202 2016-07-27 Martin Liska <mliska@suse.cz>
203
204 * predict.c (set_even_probabilities): Handle unlikely edges.
205 (combine_predictions_for_bb): Likewise.
206
207 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
208
209 PR target/71869
210 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
211 __float128 support when we don't have hardware support, so that
212 the IEEE built-in functions like isgreater, first call __unordkf3
213 to make sure neither operand is a NaN, and if both operands are
214 ordered, do the normal comparison.
215
216 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
217
218 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
219 name.
220 (extract_code_and_val_from_cond_with_ops): Verify that name is
221 either cond_op0 or cond_op1.
222
223 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
224
225 PR tree-optimization/18046
226 * genmodes.c (emit_mode_size_inline): Emit an assert that
227 verifies that mode is a valid array index.
228 (emit_mode_nuinits_inline): Likewise.
229 (emit_mode_inner_inline): Likewise.
230 (emit_mode_unit_size_inline): Likewise.
231 (emit_mode_unit_precision_inline): Likewise.
232 * tree-vrp.c: Include params.h.
233 (find_switch_asserts): Register edge assertions for the default
234 label which correspond to the anti-ranges of each case label.
235 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
236 * doc/invoke.texi: Document it.
237
238 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
239
240 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
241 and unnecessary call to gimple_bb.
242
243 2016-07-26 Richard Biener <rguenther@suse.de>
244
245 PR rtl-optimization/71984
246 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
247 for VOIDmode.
248
249 2016-07-26 Richard Biener <rguenther@suse.de>
250
251 PR middle-end/72517
252 * expmed.c (extract_bit_field_1): Constrain the vector mode
253 with element size matching the extraction mode size when
254 choosing a better vector mode to do the extraction from.
255
256 2016-07-26 Richard Biener <rguenther@suse.de>
257 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
258
259 PR middle-end/70920
260 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
261 pattern.
262
263 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
264
265 * tree-ssa-structalias.c (struct scc_info): Change types of
266 members to auto_sbitmap and auto_vec.
267 (scc_info::scc_info): New constructor.
268 (scc_info::~scc_info): New destructor.
269 (init_scc_info): Remove.
270 (free_scc_info): Remove.
271 (find_indirect_cycles): Adjust.
272 (perform_var_substitution): Likewise.
273 (free_var_substitution_info): Likewise.
274
275 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
276
277 * tree-outof-ssa.c (struct elim_graph): Change type of members
278 to auto_vec and auto_sbitmap.
279 (elim_graph::elim_graph): New constructor.
280 (delete_elim_graph): Remove.
281 (expand_phi_nodes): Adjust.
282
283 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
284
285 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
286 (new_elim_graph): Adjust.
287 (clear_elim_graph): Likewise.
288 (delete_elim_graph): Likewise.
289 (elim_graph_size): Likewise.
290 (elim_graph_add_node): Likewise.
291 (elim_graph_add_edge): Likewise.
292 (elim_graph_remove_succ_edge): Likewise.
293 (eliminate_name): Likewise.
294 (eliminate_build): Likewise.
295 (elim_forward): Likewise.
296 (elim_unvisited_predecessor): Likewise.
297 (elim_backward): Likewise.
298 (elim_create): Likewise.
299 (eliminate_phi): Likewise.
300 (expand_phi_nodes): Likewise.
301
302 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
303
304 * bt-load.c (compute_out): Use auto_sbitmap class.
305 (link_btr_uses): Likewise.
306 * cfganal.c (mark_dfs_back_edges): Likewise.
307 (post_order_compute): Likewise.
308 (inverted_post_order_compute): Likewise.
309 (pre_and_rev_post_order_compute_fn): Likewise.
310 (single_pred_before_succ_order): Likewise.
311 * cfgexpand.c (pass_expand::execute): Likewise.
312 * cfgloop.c (verify_loop_structure): Likewise.
313 * cfgloopmanip.c (fix_bb_placements): Likewise.
314 (remove_path): Likewise.
315 (update_dominators_in_loop): Likewise.
316 * cfgrtl.c (break_superblocks): Likewise.
317 * ddg.c (check_sccs): Likewise.
318 (create_ddg_all_sccs): Likewise.
319 * df-core.c (df_worklist_dataflow): Likewise.
320 * dse.c (dse_step3): Likewise.
321 * except.c (eh_region_outermost): Likewise.
322 * function.c (thread_prologue_and_epilogue_insns): Likewise.
323 * gcse.c (prune_expressions): Likewise.
324 (prune_insertions_deletions): Likewise.
325 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
326 * graph.c (draw_cfg_nodes_no_loops): Likewise.
327 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
328 * lcm.c (compute_earliest): Likewise.
329 (compute_farthest): Likewise.
330 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
331 (unroll_loop_runtime_iterations): Likewise.
332 (unroll_loop_stupid): Likewise.
333 * lower-subreg.c (decompose_multiword_subregs): Likewise.
334 * lra-lives.c: Likewise.
335 * lra.c (lra): Likewise.
336 * modulo-sched.c (schedule_reg_moves): Likewise.
337 (optimize_sc): Likewise.
338 (get_sched_window): Likewise.
339 (sms_schedule_by_order): Likewise.
340 (check_nodes_order): Likewise.
341 (order_nodes_of_sccs): Likewise.
342 (order_nodes_in_scc): Likewise.
343 * recog.c (split_all_insns): Likewise.
344 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
345 * reload1.c (reload): Likewise.
346 * sched-rgn.c (haifa_find_rgns): Likewise.
347 (split_edges): Likewise.
348 (compute_trg_info): Likewise.
349 * sel-sched.c (init_seqno): Likewise.
350 * store-motion.c (remove_reachable_equiv_notes): Likewise.
351 * tree-into-ssa.c (update_ssa): Likewise.
352 * tree-ssa-live.c (live_worklist): Likewise.
353 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
354 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
355 * Likewise.
356 (try_peel_loop): Likewise.
357 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
358 * Likewise.
359 * tree-ssa-pre.c (compute_antic): Likewise.
360 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
361 * tree-stdarg.c (reachable_at_most_once): Likewise.
362 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
363 * var-tracking.c (vt_find_locations): Likewise.
364
365 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
366
367 * sbitmap.h (auto_sbitmap): New class.
368
369 2016-07-26 Alan Modra <amodra@gmail.com>
370
371 PR target/72103
372 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
373 sri->t_icode.
374
375 2016-07-25 David Malcolm <dmalcolm@redhat.com>
376
377 * input.c (selftest::temp_source_file::temp_source_file): Fix
378 missing "%s" in fprintf.
379
380 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
381
382 PR middle-end/71732
383 * cselib.c (cselib_process_insn): Invalidate argument slots for
384 const/pure calls.
385
386 2016-07-25 Jiong Wang <jiong.wang@arm.com>
387
388 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
389 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
390 vmulxh_lane_f16, vmulxh_laneq_f16): New.
391
392 2016-07-25 Jiong Wang <jiong.wang@arm.com>
393
394 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
395 * config/aarch64/aarch64.md (fma, fnma): Support HF.
396 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
397
398 2016-07-25 Jiong Wang <jiong.wang@arm.com>
399
400 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
401 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
402 New.
403 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
404 (add<mode>3): Likewise.
405 (sub<mode>3): Likewise.
406 (mul<mode>3): Likewise.
407 (div<mode>3): Likewise.
408 (*div<mode>3): Likewise.
409 (<fmaxmin><mode>3): Extend to HF.
410 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
411 (fabd<mode>3): Likewise.
412 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
413 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
414 (aarch64_fmulx<mode>): Likewise.
415 (aarch64_fac<optab><mode>): Likewise.
416 (aarch64_frecps<mode>): Likewise.
417 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
418 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
419 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
420 (VSDQ_HSDI): Support HI.
421 (fcvt_target, FCVT_TARGET): Likewise.
422 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
423 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
424 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
425 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
426 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
427 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
428 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
429 vrsqrtsh_f16): New.
430
431 2016-07-25 Jiong Wang <jiong.wang@arm.com>
432
433 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
434 * config/aarch64/aarch64-builtins.c (hi_UP): New.
435 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
436 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
437 mode.
438 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
439 (aarch64_cm<optab><mode>): Likewise.
440 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
441 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
442 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
443 (sqrt<mode>2): Likewise.
444 (*sqrt<mode>2): Likewise.
445 (abs<mode>2): Likewise.
446 (<optab><mode>hf2): New pattern for HF mode.
447 (<optab>hihf2): Likewise.
448 * config/aarch64/arm_neon.h: Include arm_fp16.h.
449 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
450 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
451 Support HF mode.
452 * config/aarch64/arm_fp16.h: New file.
453 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
454 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
455 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
456 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
457 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
458 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
459 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
460 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
461 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
462 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
463 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
464 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
465 vsqrth_f16): New.
466
467 2016-07-25 Jiong Wang <jiong.wang@arm.com>
468
469 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
470 reduc_smin_scal_): Use VDQIF_F16.
471 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
472 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
473 Use VHSDF.
474 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
475 * config/aarch64/iterators.md (VDQIF_F16): New.
476 (vp): Support HF modes.
477 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
478 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
479
480 2016-07-25 Jiong Wang <jiong.wang@arm.com>
481
482 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
483 "*aarch64_mulx_elt_from_dup<mode>".
484 (*aarch64_mul3_elt<mode>): Update schedule type.
485 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
486 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
487 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
488 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
489 (f, fp): Support HF modes.
490 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
491 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
492 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
493 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
494 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
495 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
496
497 2016-07-25 Jiong Wang <jiong.wang@arm.com>
498
499 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
500 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
501 modes.
502 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
503 vfmsq_f16): New.
504
505 2016-07-25 Jiong Wang <jiong.wang@arm.com>
506
507 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
508 * config/aarch64/aarch64-simd.md
509 (aarch64_rsqrts<mode>): Extend to HF modes.
510 (fabd<mode>3): Likewise.
511 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
512 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
513 (aarch64_<maxmin_uns>p<mode>): Likewise.
514 (<su><maxmin><mode>3): Likewise.
515 (<maxmin_uns><mode>3): Likewise.
516 (<fmaxmin><mode>3): Likewise.
517 (aarch64_faddp<mode>): Likewise.
518 (aarch64_fmulx<mode>): Likewise.
519 (aarch64_frecps<mode>): Likewise.
520 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
521 (add<mode>3): Extend to HF modes.
522 (sub<mode>3): Likewise.
523 (mul<mode>3): Likewise.
524 (div<mode>3): Likewise.
525 (*div<mode>3): Likewise.
526 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
527 HF, V4HF and V8HF.
528 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
529 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
530 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
531 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
532 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
533 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
534 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
535 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
536 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
537 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
538 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
539 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
540 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
541 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
542
543 2016-07-25 Jiong Wang <jiong.wang@arm.com>
544
545 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
546 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
547 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
548 (neg<mode>2): Likewise.
549 (abs<mode>2): Likewise.
550 (<frint_pattern><mode>2): Likewise.
551 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
552 (<optab><VDQF:mode><fcvt_target>2): Likewise.
553 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
554 (ftrunc<VDQF:mode>2): Likewise.
555 (<optab><fcvt_target><VDQF:mode>2): Likewise.
556 (sqrt<mode>2): Likewise.
557 (*sqrt<mode>2): Likewise.
558 (aarch64_frecpe<mode>): Likewise.
559 (aarch64_cm<optab><mode>): Likewise.
560 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
561 HF, V4HF and V8HF.
562 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
563 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
564 (stype): New.
565 * config/aarch64/arm_neon.h (vdup_n_f16): New.
566 (vdupq_n_f16): Likewise.
567 (vld1_dup_f16): Use vdup_n_f16.
568 (vld1q_dup_f16): Use vdupq_n_f16.
569 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
570 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
571 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
572 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
573 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
574 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
575 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
576 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
577 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
578 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
579 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
580 vsqrt_f16, vsqrtq_f16): New.
581
582 2016-07-25 Jiong Wang <jiong.wang@arm.com>
583
584 * config/aarch64/aarch64-simd.md
585 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
586 (aarch64_ext<mode>): Likewise.
587 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
588 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
589 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
590 and V8HFmode.
591 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
592 float16x8_t.
593 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
594 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
595 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
596 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
597 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
598 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
599 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
600 New.
601 (vmov_n_f16): Reimplement using vdup_n_f16.
602 (vmovq_n_f16): Reimplement using vdupq_n_f16..
603
604 2016-07-25 Jiong Wang <jiong.wang@arm.com>
605
606 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
607 "frame_related_p". Generate CFA annotation when it's necessary.
608 (aarch64_expand_prologue): Use aarch64_add_constant.
609 (aarch64_expand_epilogue): Likewise.
610 (aarch64_output_mi_thunk): Pass "false" when calling
611 aarch64_add_constant.
612
613 2016-07-25 Jiong Wang <jiong.wang@arm.com>
614
615 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
616 sequences.
617
618 2016-07-25 Jiong Wang <jiong.wang@arm.com>
619
620 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
621 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
622 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
623 (aarch64_build_constant): Delete.
624
625 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
626
627 Revert
628 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
629
630 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
631 flag_toplevel_reorder.
632
633 2016-07-25 Richard Biener <rguenther@suse.de>
634
635 * cgraph.c (cgraph_node::verify_node): Compare against builtin
636 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
637 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
638 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
639 (streamer_get_builtin_tree): Likewise.
640 (streamer_write_builtin): Likewise.
641 * lto-streamer.h (LTO_builtin_decl): Remove.
642 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
643 (lto_input_scc): Remove LTO_builtin_decl handling.
644 (lto_input_tree_1): Liekwise.
645 * lto-streamer-out.c (lto_output_tree_1): Remove special
646 handling of builtins.
647 (DFS::DFS): Likewise.
648 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
649 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
650 assert.
651 (streamer_write_builtin): Remove.
652
653 2016-07-25 Martin Liska <mliska@suse.cz>
654
655 * lto-cgraph.c (input_symtab): Don't call get_working_sets
656 if flag_auto_profile is set to true.
657
658 2016-07-25 Martin Liska <mliska@suse.cz>
659
660 PR gcov-profile/71868
661 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
662 have a function with multiple latches, count them all.
663
664 2016-07-25 Martin Liska <mliska@suse.cz>
665
666 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
667
668 2016-07-25 Martin Liska <mliska@suse.cz>
669
670 PR tree-optimization/71987
671 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
672 just for SSA_NAMEs. Fix GNU coding style.
673
674 2016-07-25 Martin Liska <mliska@suse.cz>
675
676 PR gcov-profile/64874
677 * gcov-io.h: Update command about file format.
678 * gcov-iov.c (main): Adapt the numbering scheme.
679
680 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
681
682 PR middle-end/66726
683 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
684 whose result is used in PHI.
685 (final_range_test_p): Likewise.
686 (maybe_optimize_range_tests): Likewise.
687
688 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
689
690 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
691 Reformat two multi-line strings.
692
693 2016-07-22 Martin Sebor <msebor@redhat.com>
694
695 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
696
697 2016-07-22 Martin Sebor <msebor@redhat.com>
698
699 PR c/71560
700 * doc/extend.texi (Compound Literals): Correct and clarify.
701 (Cast to Union): Same.
702
703 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
704
705 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
706 comments to explain why certain error messages make mention of
707 undocumented options.
708 (rs6000_invalid_builtin): Change error messages to replace mention
709 of undocumented options with mention of the -mcpu=power9 option
710 that enables those undocumented options.
711 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
712 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
713 definition of this macro to correct an existing error.
714 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
715 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
716 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
717 descriptions of built-in functions so that they depend on
718 -mcpu=power9 instead of on the corresponding undocumented flags.
719 * doc/invoke.texi (Option Summary): Remove all mention of newly
720 undocumented flags.
721 (IBM RS/6000 and PowerPC Options): Likewise.
722 * doc/md.texi (Constraints for Particuliar Machines): Remove all
723 mention of newly undocumented flags.
724
725 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
726
727 * ipa-cp.c (determine_versionability): Do not create constprop clones,
728 when target_clones attribute is set.
729
730 2016-07-22 Bin Cheng <bin.cheng@arm.com>
731
732 * common.opt (funsafe-loop-optimizations): Mark ignore.
733 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
734 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
735 related code.
736 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
737 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
738
739 2016-07-22 Bin Cheng <bin.cheng@arm.com>
740
741 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
742 Parameter.
743 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
744 Parameter.
745 (number_of_iterations_exit): Warn missed loop optimization for
746 possible infinite loops.
747
748 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
749
750 PR target/71216
751 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
752 when to emit a ".machine" pseudo-op.
753
754 2016-07-22 Martin Liska <mliska@suse.cz>
755
756 PR gcov-profile/69028
757 PR gcov-profile/62047
758 * coverage.c (coverage_compute_lineno_checksum): Do not
759 calculate checksum for fns w/o xloc.file.
760 (coverage_compute_profile_id): Likewise.
761
762 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
763
764 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
765 (avr_secondary_reload): ...and implementation.
766 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
767 * config/avr/avr.md (reload_in<mode>): Remove insns.
768 (adjust_len) [lpm]: Remove insn attribute value.
769 * config/avr/predicates.md (flash_operand): Remove insn predicate.
770
771 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
772
773 PR middle-end/71876
774 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
775 attribute.
776 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
777 * calls.c (special_function_p): Remove the special handling of the
778 "__builtin_" prefix.
779
780 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
781
782 PR middle-end/71876
783 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
784 if STMT may be an alloca call.
785 (gimple_alloca_call_p, alloca_call_p): Return only true for the
786 builtin alloca call.
787 * calls.h (gimple_maybe_alloca_call_p): New function.
788 * tree-inline.c (inline_forbidden_p_stmt): Use
789 gimple_maybe_alloca_call_p here.
790
791 2016-07-21 David Malcolm <dmalcolm@redhat.com>
792
793 * spellcheck-tree.c (best_macro_match::best_macro_match):
794 Explictly specify the template arguments when invoking the base
795 class constructor, to help older C++ compilers.
796
797 2016-07-21 Jakub Jelinek <jakub@redhat.com>
798
799 PR sanitizer/71953
800 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
801 before builtin_decl_implicit.
802
803 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
804
805 * optabs.c (emit_condiitonal_move): Short circuit for identical
806 sources.
807
808 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
809
810 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
811 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
812 (noce_conversion_profitable_p): New.
813 (noce_try_store_flag_constants): Use it.
814 (noce_try_addcc): Likewise.
815 (noce_try_store_flag_mask): Likewise.
816 (noce_try_cmove): Likewise.
817 (noce_try_cmove_arith): Likewise.
818 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
819 overwriting it.
820 (noce_convert_multiple_sets): Move cost model to here, from...
821 (bb_ok_for_noce_convert_multiple_sets) ...here.
822 (noce_process_if_block): Update calls for above changes.
823 (noce_find_if_block): Record new noce_if_info parameters.
824
825 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
826
827 * target.def (max_noce_ifcvt_seq_cost): New.
828 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
829 * doc/tm.texi: Regenerate.
830 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
831 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
832 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
833 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
834 * doc/invoke.texi: Document new params.
835
836 2016-07-21 Richard Biener <rguenther@suse.de>
837
838 PR tree-optimization/71947
839 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
840 ranges have useful limit_vr information.
841
842 2016-07-21 Richard Biener <rguenther@suse.de>
843
844 * function-tests.c (build_trivial_generic_function): Set
845 BLOCK_SUPERCONTEXT of DECL_INITIAL.
846 * omp-low.c (create_omp_child_function): Likewise.
847 (grid_expand_target_grid_body): Likewise.
848 * cgraphunit.c (init_lowered_empty_function): Likewise.
849 (cgraph_node::expand_thunk): Likewise.
850 * tree-parloops.c (create_loop_fn): Likewise.
851 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
852
853 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
854
855 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
856 in comment.
857
858 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
859
860 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
861 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
862 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
863 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
864 values for insn attribute.
865 * config/avr/avr.c (avr_out_insert_notbit): New function.
866 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
867 ADJUST_LEN_INSV_NOTBIT_0/_7.
868 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
869
870 2016-07-21 Bin Cheng <bin.cheng@arm.com>
871
872 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
873 (chrec_convert_1, chrec_convert): Ditto.
874 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
875 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
876 * tree-vrp.c (adjust_range_with_scev): Ditto.
877 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
878 (scev_var_range_cant_overflow): New function.
879 (scev_probably_wraps_p): New parameter. Call above function.
880 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
881
882 2016-07-21 Bin Cheng <bin.cheng@arm.com>
883
884 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
885 by removing computation of may_be_zero.
886
887 2016-07-21 Jakub Jelinek <jakub@redhat.com>
888
889 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
890
891 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
892
893 Improving concepts performance and diagnostics.
894 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
895 for constraint satisfaction and subsumption.
896 * timevar.h (auto_timevar): New constructor that matches the push/pop
897 pattern of usage in pt.c.
898
899 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
900
901 * hwint.h (HOST_WIDE_INT_0): New define.
902 (HOST_WIDE_INT_0U): Ditto.
903 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
904 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
905 * simplify-rtx.c: Ditto.
906 * tree-object-size.c: Ditto.
907
908 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
909
910 * config/s390/s390.c (s390_encode_section_info): Remove mode size
911 check.
912
913 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
914
915 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
916 * combine.c: Use HOST_WIDE_INT_M1U instead of
917 ~(unsigned HOST_WIDE_INT) 0.
918 * double-int.h: Ditto.
919 * dse.c: Ditto.
920 * dwarf2asm.c:Ditto.
921 * expmed.c: Ditto.
922 * genmodes.c: Ditto.
923 * match.pd: Ditto.
924 * read-rtl.c: Ditto.
925 * tree-ssa-loop-ivopts.c: Ditto.
926 * tree-ssa-loop-prefetch.c: Ditto.
927 * tree-vect-generic.c: Ditto.
928 * tree-vect-patterns.c: Ditto.
929 * tree.c: Ditto.
930
931 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
932
933 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
934 constant addresses outside [0,0xc0] into a register.
935 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
936 cases where the base address register is unused after.
937 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
938 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
939 (avr_out_store_psi_reg_disp_tiny): Same.
940
941 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
942
943 Implement attribute progmem on reduced Tiny cores by adding
944 flash offset 0x4000 to respective symbols.
945
946 PR target/71948
947 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
948 documentation how it works on reduced Tiny cores.
949 (AVR Named Address Spaces): No support for reduced Tiny.
950 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
951 (avr_address_tiny_pm_p): New static function.
952 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
953 if the address is in progmem.
954 (avr_assemble_integer): Same.
955 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
956 for symbol_ref in progmem.
957 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
958 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
959 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
960
961 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
962
963 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
964 * configure: Regenerate.
965 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
966 (USE_THIN_ARCHIVES): New variable.
967 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
968 this archive as a thin archive.
969
970 2016-07-20 David Malcolm <dmalcolm@redhat.com>
971
972 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
973 same location as last time, don't skip if we have fix-it hints.
974 Clarify the skipping logic by converting it from one "if" clause
975 to repeated "if" clauses.
976 * spellcheck-tree.c: Include "cpplib.h".
977 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
978 (best_macro_match::best_macro_match): New constructor.
979 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
980 Move here from c/c-decl.c.
981 (class best_macro_match): Move here from c/c-decl.c, converting
982 from a typedef to a subclass, gaining a ctor.
983
984 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
985
986 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
987 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
988 define...
989 (avr_addr_space_diagnose_usage): ...and implementation.
990 (avr_addr_space_supported_p): New function.
991 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
992 report bad address space usage if that space is supported.
993 (avr_insert_attributes): Same. No more complain about unsupported
994 address spaces.
995 * config/avr/avr-c.c (tm_p.h): Include it.
996 (avr_cpu_cpp_builtins): Only define addr-space related built-in
997 macro if avr_addr_space_supported_p.
998
999 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
1000
1001 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
1002 flag_toplevel_reorder.
1003
1004 2016-07-20 David Malcolm <dmalcolm@redhat.com>
1005
1006 * gcc-rich-location.c
1007 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
1008 a const char *.
1009 * gcc-rich-location.h
1010 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
1011
1012 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
1013
1014 * target.def (addr_space): Add new diagnose_usage to hook vector.
1015 * targhooks.c (default_addr_space_diagnose_usage): Add default
1016 implementation and...
1017 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
1018 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
1019 is some address space, call targetm.addr_space.diagnose_usage.
1020 * doc/tm.texi.in (Named Address Spaces): Add anchor for
1021 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
1022 * doc/tm.texi: Regenerate.
1023
1024 2016-07-20 Martin Liska <mliska@suse.cz>
1025
1026 PR middle-end/71898
1027 * graphite-isl-ast-to-gimple.c (later_of_the_two):
1028 Properly handly PHI stmts.
1029
1030 2016-07-20 Bin Cheng <bin.cheng@arm.com>
1031
1032 PR tree-optimization/71503
1033 PR tree-optimization/71683
1034 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1035 and break.
1036
1037 2016-07-20 Martin Liska <mliska@suse.cz>
1038
1039 * doc/invoke.texi (-fipa-ra): Document when the option is
1040 disabled. Fix a typo.
1041
1042 2016-07-20 Martin Liska <mliska@suse.cz>
1043
1044 * Makefile.in: Include fibonacci_heap.c
1045 * fibonacci_heap.c: New file.
1046 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1047 (fibonacci_heap::union_with): Fix deletion of the second heap.
1048 * selftest-run-tests.c (selftest::run_tests): Incorporate
1049 fibonacci heap tests.
1050 * selftest.h: Declare fibonacci_heap_c_tests.
1051
1052 2016-07-20 Martin Liska <mliska@suse.cz>
1053
1054 * selftest-run-tests.c (selftest::run_tests): New function.
1055 * selftest.h (sreal_c_tests): Declare.
1056 * sreal.c (sreal_verify_basics): New function.
1057 (verify_aritmetics): Likewise.
1058 (sreal_verify_arithmetics): Likewise.
1059 (verify_shifting): Likewise.
1060 (sreal_verify_shifting): Likewise.
1061 (void sreal_c_tests): Likewise.
1062
1063 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1064
1065 PR rtl-optimization/71916
1066 * cfgrtl.c (contains_no_active_insn_p): Return false also for
1067 bb which have a single succ fake edge.
1068
1069 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
1070
1071 PR debug/71855
1072 * dwarf2out.c (gen_subprogram_die): Only call
1073 gen_unspecified_parameters_die while dumping early dwarf.
1074
1075 2016-07-19 Jakub Jelinek <jakub@redhat.com>
1076
1077 PR middle-end/71874
1078 * gimple-fold.c (fold_builtin_memory_op): Use
1079 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1080
1081 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
1082
1083 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1084 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1085 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1086 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1087 * combine.c: Ditto.
1088 * cse.c: Ditto.
1089 * dojump.c: Ditto.
1090 * double-int.c: Ditto.
1091 * dse.c: Ditto.
1092 * dwarf2out.c: Ditto.
1093 * expmed.c: Ditto.
1094 * expr.c: Ditto.
1095 * fold-const.c: Ditto.
1096 * function.c: Ditto.
1097 * fwprop.c: Ditto.
1098 * genmodes.c: Ditto.
1099 * hwint.c: Ditto.
1100 * hwint.h: Ditto.
1101 * ifcvt.c: Ditto.
1102 * loop-doloop.c: Ditto.
1103 * loop-invariant.c: Ditto.
1104 * loop-iv.c: Ditto.
1105 * match.pd: Ditto.
1106 * optabs.c: Ditto.
1107 * real.c: Ditto.
1108 * reload.c: Ditto.
1109 * rtlanal.c: Ditto.
1110 * simplify-rtx.c: Ditto.
1111 * stor-layout.c: Ditto.
1112 * toplev.c: Ditto.
1113 * tree-ssa-loop-ivopts.c: Ditto.
1114 * tree-vect-generic.c: Ditto.
1115 * tree-vect-patterns.c: Ditto.
1116 * tree.c: Ditto.
1117 * tree.h: Ditto.
1118 * ubsan.c: Ditto.
1119 * varasm.c: Ditto.
1120 * wide-int-print.cc: Ditto.
1121 * wide-int.cc: Ditto.
1122 * wide-int.h: Ditto.
1123
1124 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1125
1126 * selftest.c (selftest::assert_streq): Handle NULL values of
1127 val_actual and val_expected.
1128
1129 2016-07-19 Martin Jambor <mjambor@suse.cz>
1130
1131 PR fortran/71688
1132 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1133 rather than cgraph_create_node to get a call graph node.
1134
1135 2016-07-19 Richard Biener <rguenther@suse.de>
1136
1137 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1138 handle all tcc_constant bases and valueize SSA names.
1139 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1140 tcc_constant bases.
1141
1142 2016-07-19 David Malcolm <dmalcolm@redhat.com>
1143
1144 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1145 the flags of the exit block and bb2, not just the entry block.
1146
1147 2016-07-19 Richard Biener <rguenther@suse.de>
1148
1149 PR tree-optimization/71901
1150 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1151 align member, group stuff with the bitfield.
1152 (vn_ref_op_align_unit): New inline.
1153 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1154 record element alignment and operand 3 unchanged.
1155 (ao_ref_init_from_vn_reference): Adjust.
1156 (valueize_refs_1): Likewise.
1157 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1158
1159 2016-07-19 Richard Biener <rguenther@suse.de>
1160
1161 PR tree-optimization/71908
1162 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1163 symbolic constants in a more reliable way.
1164
1165 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
1166
1167 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1168 comment.
1169 (vect_update_inits_of_drs): Likewise.
1170 (vect_create_cond_for_alias_checks): Likewise.
1171 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1172
1173 2016-07-19 Richard Biener <rguenther@suse.de>
1174
1175 PR lto/71907
1176 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1177 with an abstract origin that is not an inlined function outer
1178 scope add a self-reference as abstract origin.
1179 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1180
1181 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1182
1183 PR target/71493
1184 * config/rs6000/rs6000.c (rs6000_function_value): Fix
1185 unintentional System V.4 structure return breakage for structures
1186 with a single floating point element.
1187
1188 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1189
1190 PR tree-optimization/71734
1191 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1192 contains REF, use it to check safelen, assume that safelen value
1193 must be greater 1, fix style.
1194 (ref_indep_loop_p_2): Add REF_LOOP argument.
1195 (ref_indep_loop_p): Pass LOOP as additional argument to
1196 ref_indep_loop_p_2.
1197
1198 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
1199
1200 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1201 allocation in the prologue.
1202 * explow.c (get_dynamic_stack_base): New function to return an address
1203 expression for the dynamic stack base.
1204 (get_dynamic_stack_size): New function to do the required dynamic stack
1205 space size calculations.
1206 (allocate_dynamic_stack_space): Use new functions.
1207 (align_dynamic_address): Move some code from
1208 allocate_dynamic_stack_space to new function.
1209 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1210
1211 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1212
1213 * config/s390/s390.c (s390_encode_section_info): Always set
1214 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1215 found.
1216
1217 2016-07-18 Richard Biener <rguenther@suse.de>
1218
1219 PR tree-optimization/71893
1220 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1221 for sizetype cast added by array_ref_element_size.
1222 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1223
1224 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
1225
1226 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1227 register parameters. Remove code to initialize argument pointer
1228 on TARGET_64BIT. Optimize call to _mcount when it can be reached
1229 using a pc-relative branch. Cleanup conditional code.
1230 * config/pa/pa.md (call_mcount): New expander.
1231 (call_mcount_nonpic): New insn.
1232 (call_mcount_pic): New insn and split.
1233 (call_mcount_pic_post_reload): New insn.
1234 (call_mcount_64bit): New insn and split.
1235 (call_mcount_64bit_post_reload): New insn.
1236
1237 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
1238
1239 * config/avr/predicates.md (const_m255_to_m1_operand): New.
1240 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1241 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1242 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1243 (*usum_widenqihi3, *udiff_widenqihi3)
1244 (*addhi3_zero_extend.const): New combiner insns.
1245 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1246 just 1 bit is affected.
1247 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1248 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1249
1250 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1251
1252 * omp-low.c (lower_omp_target): Mark data clauses with
1253 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1254 zero-length subarrays.
1255
1256 2016-07-15 Richard Biener <rguenther@suse.de>
1257
1258 PR tree-optimization/71881
1259 * tree-loop-distribution.c (destroy_loop): Remove blocks in
1260 reverse DOM order to make debug temp generation happy.
1261
1262 2016-07-15 Richard Biener <rguenther@suse.de>
1263
1264 PR tree-optimization/71887
1265 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1266 verify it is not zero for division / modulo handling.
1267 (value_replacement): Adjust.
1268
1269 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
1270 Julian Brown <julian@codesourcery.com>
1271
1272 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1273 * config/aarch64/aarch64-cost-tables.h
1274 (vulcan_extra_costs): New variable.
1275 * config/aarch64/aarch64.c
1276 (vulcan_addrcost_table): Likewise.
1277 (vulcan_regmove_cost): Likewise.
1278 (vulcan_vector_cost): Likewise.
1279 (vulcan_branch_cost): Likewise.
1280 (vulcan_tunings): Likewise.
1281
1282 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
1283
1284 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1285 (output_in_order): Loop over undefined variables too. Output them
1286 via assemble_undefined_decl. Skip variables that correspond to hard
1287 registers or have value-exprs.
1288 * varpool.c (symbol_table::output_variables): Handle undefined
1289 variables together with defined ones.
1290
1291 2016-07-15 Richard Biener <rguenther@suse.de>
1292
1293 * tree-ssa-pre.c (get_representative_for): Make sure to return
1294 the value number of SSA names.
1295 (phi_translate_1): get_representative_for cannot return NULL.
1296 (do_pre_regular_insertion): Remove redundant call to
1297 fully_constant_expression.
1298 (do_pre_partial_partial_insertion): Likewise.
1299
1300 2016-07-15 Bin Cheng <bin.cheng@arm.com>
1301
1302 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1303 (derive_simple_iv_with_niters): New function.
1304 (simple_iv): Rewrite using simple_iv_with_niters.
1305 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1306 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1307 function.
1308 (number_of_iterations_exit): Rewrite using above function.
1309 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1310 Decl.
1311
1312 2016-07-15 Richard Biener <rguenther@suse.de>
1313
1314 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1315 vec_construct cost.
1316
1317 2016-07-14 Jakub Jelinek <jakub@redhat.com>
1318
1319 PR tree-optimization/71872
1320 * tree-data-ref.c (get_references_in_stmt): Ignore references
1321 with is_gimple_constant get_base_address.
1322
1323 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1324
1325 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1326 (TARGET_HAVE_LDACQD): New macro.
1327 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1328 than TARGET_HAVE_LDACQ.
1329 (arm_load_acquire_exclusivedi): Likewise.
1330 (arm_store_release_exclusivedi): Likewise.
1331
1332 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
1333
1334 PR rtl-optimization/71878
1335 * lra-constraints.c (match_reload): Pass information about other
1336 output operands. Create new unique register value if matching input
1337 operand shares same register value as output operand being considered.
1338 (curr_insn_transform): Record output operands already processed.
1339
1340 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1341
1342 PR target/65951
1343 PR tree-optimization/70923
1344 * tree-vect-patterns.c: Include mult-synthesis.h.
1345 (target_supports_mult_synth_alg): New function.
1346 (synth_lshift_by_additions): Likewise.
1347 (apply_binop_and_append_stmt): Likewise.
1348 (vect_synth_mult_by_constant): Likewise.
1349 (target_has_vecop_for_code): Likewise.
1350 (vect_recog_mult_pattern): Use above functions to synthesize vector
1351 multiplication by integer constants.
1352
1353 2016-07-14 Alan Modra <amodra@gmail.com>
1354
1355 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1356 gpr alternatives. Correct '*' placement on Y,r alternative.
1357 Add '*' on operand 1 of r,r alternative.
1358
1359 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1360
1361 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1362 * expmed.h: ... Here.
1363
1364 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
1365
1366 * gimple.h (stmt_can_terminate_bb_p): New function.
1367 * tree-cfg.c (need_fake_edge_p): Rename to ...
1368 (stmt_can_terminate_bb_p): ... this; return true if stmt can
1369 throw external; handle const and pure calls.
1370 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1371
1372 2016-07-14 Richard Biener <rguenther@suse.de>
1373
1374 PR tree-optimization/71866
1375 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1376 (do_hoist_insertion): Avoid endless recursion when we
1377 didn't insert anything because we managed to simplify
1378 things down to a constant or SSA name.
1379 (fully_constant_expression): Re-write in terms of ...
1380 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
1381 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1382 vn_nary_build_or_lookup_1.
1383 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1384 (vn_nary_build_or_lookup): ... this which now wraps it.
1385
1386 2016-07-14 Alan Modra <amodra@gmail.com>
1387
1388 PR target/71733
1389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1390 with p9_vector override before power9-dform override.
1391
1392 2016-07-13 Andi Kleen <ak@linux.intel.com>
1393
1394 * value-prof.c (gimple_value_profile_transformations): Don't run
1395 when auto_profile is on.
1396
1397 2016-07-13 Andi Kleen <ak@linux.intel.com>
1398
1399 * auto-profile.c (update_inlined_ind_target,
1400 afdo_indirect_call): Print information to dump file.
1401
1402 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * genrecog.c (special_predicate_operand_p): New function.
1405 (predicate_name): Move function.
1406 (validate_pattern): Don't warn about missing mode for all
1407 define_special_predicate predicates.
1408
1409 2016-07-13 Bin Cheng <bin.cheng@arm.com>
1410
1411 * tree-vect-data-refs.c (vect_no_alias_p): New function.
1412 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1413 resolve alias checks which are known at compilation time.
1414 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1415 alias checks are resolved. Move dump info for too many runtime
1416 alias checks to here...
1417 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1418
1419 2016-07-13 Richard Biener <rguenther@suse.de>
1420
1421 PR tree-optimization/24574
1422 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1423 position and add shift, rotate, divison and modulo support
1424 for left zero.
1425 (value_replacement): Pass in argument position to absorbing_element_p.
1426
1427 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
1428
1429 PR ipa/71633
1430 * ipa-inline-transform.c (inline_call): Support
1431 instrumented thunks.
1432
1433 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1434
1435 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1436 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1437 divide feature.
1438 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1439 Baseline. Make initial alternative TARGET_32BIT only.
1440 (udivsi3): Likewise.
1441 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1442 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1443 target.
1444
1445 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1446
1447 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1448 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1449 availability with TARGET_HAVE_MOVT.
1450 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1451 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1452 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1453 UINTVAL.
1454 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1455 extra instruction if MOVW is available. Use a cost variable
1456 incremented by COSTS_N_INSNS (1) when the condition match rather than
1457 returning an arithmetic expression based on COSTS_N_INSNS. Make
1458 constant with bottom half word zero cost 2 instruction if MOVW is
1459 available.
1460 * config/arm/arm.md (define_attr "arch"): Add v8mb.
1461 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1462 target is ARMv8-M Baseline.
1463 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1464 (arm_movtas_ze): Likewise.
1465 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1466 alternative for constants satisfying j constraint.
1467 (thumb1_movsi_insn): Likewise.
1468 (movsi splitter for K alternative): Tighten condition to not trigger
1469 if movt is available and j constraint is satisfied.
1470 (Pe immediate splitter): Likewise.
1471 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1472 constant fitting in an halfword to use MOVW.
1473 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1474 effective target.
1475
1476 2016-07-13 Richard Biener <rguenther@suse.de>
1477
1478 PR middle-end/71104
1479 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1480 gimplifying the LHS. Make sure to gimplify a returning twice
1481 call LHS without using SSA names.
1482
1483 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1484
1485 * tree-data-ref.c (find_data_references_in_stmt): Remove
1486 unnecessary call to vec::release.
1487 (graphite_find_data_references_in_stmt): Likewise.
1488 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1489 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1490
1491 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1492
1493 * cfgexpand.c (expand_used_vars): Make the type of a local
1494 variable auto_vec.
1495 * genmatch.c (lower_for): Likewise.
1496 * haifa-sched.c (haifa_sched_init): Likewise.
1497 (add_to_speculative_block): Likewise.
1498 (create_check_block_twin): Likewise.
1499 * predict.c (handle_missing_profiles): Likewise.
1500 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1501 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1502 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1503 Likewise.
1504 (maybe_lower_iteration_bound): Likewise.
1505 * tree-ssa-sccvn.c (DFS): Likewise.
1506 * tree-stdarg.c (reachable_at_most_once): Likewise.
1507 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1508 (vectorizable_store): Likewise.
1509
1510 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1511
1512 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1513 (sccvn_dom_walker): make cond_stack an auto_vec.
1514
1515 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1516
1517 * ree.c (struct ext_state): Make type of members auto_vec.
1518 (find_and_remove_re): Adjust.
1519
1520 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1521
1522 * cfgexpand.c (struct stack_vars_data): Make type of fields
1523 auto_vec.
1524 (expand_used_vars): Adjust.
1525
1526 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1527
1528 * ipa.c (record_cdtor_fn): Adjust.
1529 (build_cdtor_fns): Likewise.
1530 (ipa_cdtor_merge): Make static_ctors and static_dtors local
1531 variables.
1532
1533 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1534
1535 * genextract.c (struct accum_extract): Add constructor and make
1536 members auto_vec.
1537 (gen_insn): Adjust.
1538
1539 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1540
1541 * tree.c (struct free_lang_data_d): Add constructor and change
1542 types of members to ones that automatically manage resources.
1543 (fld_worklist_push): Adjust.
1544 (find_decls_types): Likewise.
1545 (find_decls_types_in_eh_region): Likewise.
1546 (free_lang_data_in_cgraph): Stop manually creating and
1547 destroying members of free_lang_data_d.
1548
1549 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
1550
1551 PR rtl-optimization/68961
1552 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1553 peephole variant. Use sse_reg_operand predicates.
1554
1555 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
1556
1557 * config/i386/predicates.md (x86_64_immediate_operand)
1558 <case CONST_INT>: Remove unneeded truncation to DImode.
1559 <case CONST>: Ditto.
1560 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1561
1562 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1563
1564 PR target/71805
1565 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1566 The xxperm and xxpermr instructions require that the 2nd input
1567 operand overlap with the output operand, and not the 1st.
1568 (altivec_vperm_v8hiv16qi): Likewise.
1569 (altivec_vperm_<mode>_uns_internal): Likewise.
1570 (altivec_vpermr_<mode>_internal): Likewise.
1571 (vperm_v8hiv4si): Likewise.
1572 (vperm_v16qiv8hi): Likewise.
1573
1574 2016-07-12 Nathan Sidwell <nathan@acm.org>
1575
1576 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1577 when -mno-pic-data-is-text-relative is in effect, by default.
1578 * doc/invoke.texi (mpic-data-is-text-relative): Document new
1579 behavior and clarify.
1580
1581 2016-07-12 Martin Liska <mliska@suse.cz>
1582
1583 * params.def: Add avg-loop niter.
1584 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1585 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1586 * doc/invoke.texi: Document the new parameter.
1587
1588 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1589
1590 PR middle-end/71700
1591 * expr.c (store_constructor): Mask sign-extended bits when widening
1592 sub-word constructor element at the start of a word.
1593
1594 2016-07-12 Martin Liska <mliska@suse.cz>
1595
1596 * Makefile.in: Append rule for params-options.h.
1597 * params-options.h: New file.
1598
1599 2016-07-12 Martin Liska <mliska@suse.cz>
1600
1601 * ira-build.c (mark_loops_for_removal): Properly iterate
1602 loops.
1603
1604 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
1605 Richard Biener <rguenther@suse.de>
1606
1607 PR tree-optimization/23286
1608 PR tree-optimization/70159
1609 * doc/invoke.texi: Document -fcode-hoisting.
1610 * common.opt (fcode-hoisting): New flag.
1611 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1612 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1613 (do_regular_insertion): Rename to ...
1614 (do_pre_regular_insertion): ... this and amend general comments
1615 on insertion strathegy.
1616 (do_partial_partial_insertion): Rename to ...
1617 (do_pre_partial_partial_insertion): ... this.
1618 (do_hoist_insertion): New function.
1619 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1620 and call do_hoist_insertion properly.
1621 (insert): Adjust.
1622 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1623 (pass_pre::execute): Register hoist_insert stats.
1624
1625 2016-07-12 Jakub Jelinek <jakub@redhat.com>
1626
1627 PR middle-end/71716
1628 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1629 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1630 is different from mode's bitsize. Small cleanup.
1631
1632 2016-07-12 Richard Biener <rguenther@suse.de>
1633
1634 PR rtl-optimization/68961
1635 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1636 to simplify to a non-constant.
1637
1638 2016-07-11 Jakub Jelinek <jakub@redhat.com>
1639
1640 PR middle-end/71758
1641 * omp-low.c (expand_omp_target): Gimplify device.
1642
1643 PR tree-optimization/71823
1644 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1645 to get vec_oprnds2 from op2.
1646
1647 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
1648
1649 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1650 Hoist common subexpressions.
1651 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1652
1653 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
1654
1655 PR target/71800
1656 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1657 prevent generation of 'stxsiwx' on pre Power8 hardware.
1658
1659 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1660
1661 * input.c: Include cpplib.h.
1662 (selftest::temp_source_file): New class.
1663 (selftest::temp_source_file::temp_source_file): New ctor.
1664 (selftest::temp_source_file::~temp_source_file): New dtor.
1665 (selftest::should_have_column_data_p): New function.
1666 (selftest::test_should_have_column_data_p): New function.
1667 (selftest::temp_line_table): New class.
1668 (selftest::temp_line_table::temp_line_table): New ctor.
1669 (selftest::temp_line_table::~temp_line_table): New dtor.
1670 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1671 it to create a temp_line_table.
1672 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1673 locations that are known to have column data.
1674 (selftest::line_table_case): New struct.
1675 (selftest::test_reading_source_line): Move tempfile handling
1676 to class temp_source_file.
1677 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1678 (selftest::assert_token_loc_eq): New function.
1679 (ASSERT_TOKEN_LOC_EQ): New macro.
1680 (selftest::test_lexer): New function.
1681 (selftest::boundary_locations): New array.
1682 (selftest::input_c_tests): Call test_should_have_column_data_p.
1683 Loop over a test matrix of interesting values of location and
1684 default_range_bits, calling test_lexer on each case in the matrix.
1685 Move call to test_accessing_ordinary_linemaps into the matrix.
1686 * selftest.h (ASSERT_EQ): Reimplement in terms of...
1687 (ASSERT_EQ_AT): New macro.
1688
1689 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
1690
1691 PR target/71801
1692 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1693 Don't convert TImode in debug insn.
1694
1695 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
1696
1697 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1698 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1699 (tree_type_common::lang_flag_7): New.
1700 (tree_type_common::spare): Reduce size.
1701 * tree.h (TYPE_ALIGN_OK): Remove.
1702 (TYPE_LANG_FLAG_7): New.
1703 (get_inner_reference): Adjust header.
1704 * print-tree.c (print_node): Adjust.
1705 * expr.c (get_inner_reference): Remove parameter keep_aligning.
1706 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1707 calls to get_inner_reference.
1708 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
1709 handling of TYPE_ALIGN_OK.
1710 * builtins.c (get_object_alignment_2): Adjust call to
1711 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
1712 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1713 TYPE_ALIGN_OK.
1714 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1715 * cfgexpand.c (expand_debug_expr): Likewise.
1716 * dbxout.c (dbxout_expand_expr): Likewise.
1717 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1718 loc_list_from_tree, fortran_common): Likewise.
1719 * fold-const.c (optimize_bit_field_compare,
1720 decode_field_reference, fold_unary_loc, fold_comparison,
1721 split_address_to_core_and_offset): Likewise.
1722 * gimple-laddress.c (execute): Likewise.
1723 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1724 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1725 * hsa-gen.c (gen_hsa_addr): Likewise.
1726 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1727 * tsan.c (instrument_expr): Likewise.
1728 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1729 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1730 * tree-affine.c (tree_to_aff_combination,
1731 get_inner_reference_aff): Adjust calls to get_inner_reference.
1732 * tree-data-ref.c (split_constant_offset_1,
1733 dr_analyze_innermost): Likewise.
1734 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1735 * tree-sra.c (ipa_sra_check_caller): Likewise.
1736 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1737 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1738 bswap_replace): Likewise.
1739 * tree-vect-data-refs.c (vect_check_gather,
1740 vect_analyze_data_refs): Likewise.
1741 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1742 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1743 TYPE_ALIGN_OK.
1744
1745 2016-07-11 David Malcolm <dmalcolm@redhat.com>
1746
1747 * Makefile.in (selftest-valgrind): New phony target.
1748 * function-tests.c (selftest::build_cfg): Delete pass instances
1749 created by the test.
1750 (selftest::convert_to_ssa): Likewise.
1751 (selftest::test_expansion_to_rtl): Likewise.
1752 * tree-cfg.c (selftest::test_linear_chain): Release dominator
1753 vectors.
1754 (selftest::test_diamond): Likewise.
1755
1756 2016-07-11 Richard Biener <rguenther@suse.de>
1757
1758 PR tree-optimization/71816
1759 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1760 than replacing all of its operands.
1761
1762 2016-07-11 Alan Modra <amodra@gmail.com>
1763
1764 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1765 (ctr<mode>): Add unspec.
1766 (ctr<mode>_internal*): Likewise.
1767
1768 2016-07-08 James Bowman <james.bowman@ftdichip.com>
1769
1770 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1771 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1772
1773 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
1774
1775 PR rtl-optimization/71621
1776 * lra-constraints.c (process_alt_operands): Check combination of
1777 reg class and mode.
1778
1779 2016-07-08 Jason Merrill <jason@redhat.com>
1780 Richard Biener <rguenther@suse.de>
1781
1782 P0145: Refining Expression Order for C++.
1783 * gimplify.c (initial_rhs_predicate_for): New.
1784 (gimplfy_modify_expr): Gimplify RHS before LHS.
1785
1786 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1787
1788 PR target/71297
1789 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1790 Allow standard error handling to take over when a wrong number
1791 of arguments is presented to __builtin_vec_ld () or
1792 __builtin_vec_st ().
1793
1794 2016-07-08 Jiong Wang <jiong.wang@arm.com>
1795
1796 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1797 variants.
1798 (smin): Likewise.
1799 (fmax): New entry.
1800 (fmin): Likewise.
1801 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1802 __builtin_aarch64_fmaxv2sf.
1803 (vmaxnmq_f32): Likewise.
1804 (vmaxnmq_f64): Likewise.
1805 (vminnm_f32): Likewise.
1806 (vminnmq_f32): Likewise.
1807 (vminnmq_f64): Likewise.
1808
1809 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
1810
1811 PR target/71806
1812 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1813 enable -mfloat128-hardware by default.
1814 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1815 that IEEE 128-bit hardware support needs.
1816 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1817 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1818 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1819 floating point requires.
1820 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1821 -mfloat128 and -mfloat128-hardware changes.
1822
1823 2016-07-08 Alan Hayward <alan.hayward@arm.com>
1824
1825 PR tree-optimization/71667
1826 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1827
1828 2016-07-08 Martin Liska <mliska@suse.cz>
1829
1830 PR middle-end/71606
1831 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1832 folding produces SAVE_EXPRs, thus return false for the type.
1833
1834 2016-07-07 Martin Liska <mliska@suse.cz>
1835
1836 * file-find.c (remove_prefix): New function.
1837 * file-find.h (remove_prefix): Declare the function.
1838 * gcc-ar.c (main): Skip a folder of the wrapper if
1839 a wrapped binary would point to the same file.
1840
1841 2016-07-07 Jan Hubicka <jh@suse.cz>
1842
1843 * tree-scalar-evolution.c (iv_can_overflow_p): export.
1844 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1845 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1846
1847 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
1848
1849 PR ipa/71624
1850 * ipa-inline-analysis.c (compute_inline_parameters): Set
1851 local.can_change_signature to false for intrumentation
1852 thunk callees.
1853
1854 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1855
1856 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1857 with TARGET_HAVE_MOVT.
1858 (TARGET_HAVE_MOVT): Define.
1859 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1860 availability with TARGET_HAVE_MOVT.
1861 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1862 availability.
1863 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1864 TARGET_THUMB2.
1865 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1866 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1867 * config/arm/constraints.md (define_constraint "j"): Use
1868 TARGET_HAVE_MOVT to check MOVT availability.
1869
1870 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1871
1872 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1873
1874 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1875
1876 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1877 (armv8-m.main): Likewise.
1878 (armv8-m.main+dsp): Likewise.
1879 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1880 (FL_FOR_ARCH8M_MAIN): Likewise.
1881 * config/arm/arm-tables.opt: Regenerate.
1882 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1883 armv8-m.main+dsp to BE8_LINK_SPEC.
1884 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1885 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1886 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1887 Baseline and Mainline.
1888 (arm_option_override_internal): Also disable arm_restrict_it when
1889 !arm_arch_notm. Update comment for -munaligned-access to also cover
1890 ARMv8-M Baseline.
1891 (arm_file_start): Increase buffer size for printing architecture name.
1892 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1893 and armv8-m.main+dsp.
1894 (mno-unaligned-access): Clarify that this is disabled by default for
1895 ARMv8-M Baseline architectures as well.
1896
1897 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1898
1899 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1900 decide whether to prevent some libgcc routines being included for some
1901 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1902 link between this condition and the one in
1903 libgcc/config/arm/lib1func.S.
1904
1905 2016-07-07 Richard Biener <rguenther@suse.de>
1906
1907 * tree-ssa-pre.c: Include alias.h.
1908 (compute_avail): If we have multiple VN_REFERENCEs with the
1909 same hashtable entry adjust that to make it a valid replacement
1910 for all of them with respect to alignment and aliasing
1911 when doing insertion.
1912 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1913 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1914
1915 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
1916
1917 PR target/70098
1918 PR target/71763
1919 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1920 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1921 constraint.
1922
1923 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1924
1925 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1926 (adjust_mems): Adjust.
1927 (adjust_insn): Likewise.
1928 (prepare_call_arguments): Likewise.
1929
1930 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1931
1932 * gcse.c (struct ls_expr): Make stores field a vector.
1933 (ldst_entry): Adjust.
1934 (free_ldst_entry): Likewise.
1935 (print_ldst_list): Likewise.
1936 (compute_ld_motion_mems): Likewise.
1937 (update_ld_motion_stores): Likewise.
1938
1939 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1940
1941 * gcse.c (struct ls_expr): Remove loads field.
1942 (ldst_entry): Adjust.
1943 (free_ldst_entry): Likewise.
1944 (print_ldst_list): Likewise.
1945 (compute_ld_motion_mems): Likewise.
1946
1947 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1948
1949 * store-motion.c (struct st_expr): Make antic_stores a vector.
1950 (st_expr_entry): Adjust.
1951 (free_st_expr_entry): Likewise.
1952 (print_store_motion_mems): Likewise.
1953 (find_moveable_store): Likewise.
1954 (compute_store_table): Likewise.
1955 (remove_reachable_equiv_notes): Likewise.
1956 (replace_store_insn): Likewise.
1957 (build_store_vectors): Likewise.
1958
1959 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1960
1961 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1962 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1963
1964 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
1965
1966 PR tree-optimization/71518
1967 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1968 misalign also for outer loops with negative step.
1969
1970 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
1971
1972 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1973 (cortex_a53_shift): Add mov_shift.
1974 (cortex_a53_shift_reg): Add new reservation for register shifts.
1975 (cortex_a53_alu): Remove bfm.
1976 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1977 (cortex_a53_alu_extr): Add new reservation for EXTR.
1978 (bypasses): Improve bypass modelling.
1979
1980 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1981
1982 PR target/50739
1983 * config/avr/avr.c (avr_asm_select_section): Strip off
1984 SECTION_DECLARED from flags when calling get_section.
1985
1986 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
1987
1988 * tree-vectorizer.h (vect_memory_access_type): Add
1989 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1990 * tree-vect-stmts.c (compare_step_with_zero): New function.
1991 (perm_mask_for_reverse): Move further up file.
1992 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1993 step is negative.
1994 (get_negative_load_store_type): New function.
1995 (get_load_store_type): Call it. Add an ncopies argument.
1996 (vectorizable_mask_load_store): Update call accordingly and
1997 remove tests for negative steps.
1998 (vectorizable_store, vectorizable_load): Likewise. Handle new
1999 memory_access_types.
2000
2001 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2002
2003 * tree-vectorizer.h (vect_memory_access_type): New enum.
2004 (_stmt_vec_info): Add a memory_access_type field.
2005 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
2006 (vect_model_store_cost): Take an access type instead of a boolean.
2007 (vect_model_load_cost): Likewise.
2008 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
2009 vect_model_store_cost and vect_model_load_cost.
2010 * tree-vect-stmts.c (vec_load_store_type): New enum.
2011 (vect_model_store_cost): Take an access type instead of a
2012 store_lanes_p boolean. Simplify tests.
2013 (vect_model_load_cost): Likewise, but for load_lanes_p.
2014 (get_group_load_store_type, get_load_store_type): New functions.
2015 (vectorizable_store): Use get_load_store_type. Record the access
2016 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
2017 (vectorizable_load): Likewise.
2018 (vectorizable_mask_load_store): Likewise. Replace is_store
2019 variable with vls_type.
2020
2021 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2022
2023 * tree-vectorizer.h (vect_grouped_load_supported): Add a
2024 single_element_p parameter.
2025 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2026 Check the PR65518 case here rather than in vectorizable_load.
2027 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
2028 * tree-vect-stmts.c (vectorizable_load): Likewise.
2029
2030 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2031
2032 * tree-vectorizer.h (gather_scatter_info): New structure.
2033 (vect_check_gather_scatter): Return a bool rather than a decl.
2034 Replace return-by-pointer arguments with a single
2035 gather_scatter_info *.
2036 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2037 (vect_analyze_data_refs): Update call accordingly.
2038 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2039 (vectorizable_mask_load_store): Likewise. Also record the
2040 offset dt and vectype in the gather_scatter_info.
2041 (vectorizable_store): Likewise.
2042 (vectorizable_load): Likewise.
2043
2044 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2045
2046 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2047 strided groups, use the cost of N scalar accesses instead
2048 of ncopies vector accesses.
2049 (vect_model_load_cost): Likewise.
2050
2051 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2052
2053 * tree-vect-stmts.c (vect_cost_group_size): Delete.
2054 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
2055 variable to indicate when once-per-group costs are being used.
2056 (vect_model_load_cost): Likewise. Fix comment and misindented code.
2057
2058 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
2059
2060 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2061 peeling-for-gaps condition.
2062
2063 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2064
2065 * config/s390/s390.c (s390_expand_vec_init): Force initializer
2066 element to register if it doesn't match general_operand.
2067
2068 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2069 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2070
2071 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2072 prototype.
2073 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2074 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2075 (SIGNBIT): New mode iterator.
2076 (Fsignbit): New mode attribute.
2077 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2078 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2079 when direct moves are available.
2080 (signbit<mode>2_dm): New define_insn_and_split).
2081 (signbit<mode>2_dm2): New define_insn.
2082
2083 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2084
2085 PR rtl-optimization/71594
2086 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2087 into subregs of appropriate mode before trying to emit a conditional
2088 move.
2089
2090 2016-07-05 Jan Hubicka <jh@suse.cz>
2091
2092 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2093 (simple_iv): Use it.
2094
2095 2016-07-05 Jan Hubicka <jh@suse.cz>
2096
2097 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2098
2099 2016-07-05 Jiong Wang <jiong.wang@arm.com>
2100
2101 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2102 "offmemok".
2103
2104 2016-07-05 Jan Hubicka <jh@suse.cz>
2105
2106 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2107 IV can overflow.
2108
2109 2016-07-05 Richard Biener <rguenther@suse.de>
2110
2111 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2112 Handle empty else block.
2113 (is_feasible_trace): Likewise.
2114 (split_paths): Likewise.
2115
2116 2016-07-05 Richard Biener <rguenther@suse.de>
2117
2118 * tree-loop-distribution.c (distribute_loop): Fix issue with
2119 the cost model loop.
2120
2121 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
2122
2123 * config/arm/neon-testgen.ml: Delete.
2124 * config/arm/neon.ml: Delete.
2125
2126 2016-07-04 Jakub Jelinek <jakub@redhat.com>
2127
2128 PR c++/71739
2129 * tree.c (attribute_value_equal): Use get_attribute_name instead of
2130 directly using TREE_PURPOSE.
2131
2132 2016-07-04 Jiong Wang <jiong.wang@arm.com>
2133
2134 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2135 * config/aarch64/aarch64_neon.h: Likewise.
2136 * config/aarch64/arm_neon.h: Likewise.
2137 * config/aarch64/atomics.md: Likewise.
2138 * config/aarch64/aarch64-simd-builtins.def: Likewise.
2139 * doc/invoke.texi: Likewise.
2140
2141 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2142
2143 * config/s390/s390.md: Add "z13" cpu_facility.
2144 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2145 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2146 condition" type instructions.
2147
2148 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2149 Jeff Law <law@redhat.com>
2150
2151 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2152 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2153
2154 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
2155
2156 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2157 permutation for TARGET_AVX512F.
2158 (ix86_expand_vec_one_operand_perm_avx512): New function.
2159 (expand_vec_perm_1): Invoke introduced function.
2160 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2161 it may be not valid after vectorization.
2162
2163 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2164
2165 PR target/63874
2166 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2167 typo in comment. Only force to memory if it is a weak
2168 external reference.
2169
2170 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
2171 Jiong Wang <jiong.wang@arm.com>
2172
2173 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2174 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2175 (AARCH64_FL_F16): New.
2176 (AARCH64_FL_FOR_ARCH8_2): New.
2177 (AARCH64_ISA_8_2): New.
2178 (AARCH64_ISA_F16): New.
2179 (TARGET_FP_F16INST): New.
2180 (TARGET_SIMD_F16INST): New.
2181 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2182 ("fp"): Disabling "fp" also disables "fp16".
2183 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2184 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2185 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2186 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2187
2188 2016-07-04 Jan Beulich <jbeulich@suse.com>
2189
2190 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2191
2192 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2193
2194 PR target/71720
2195 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2196 the insns, use an insn form that does not adjust the offset on
2197 little endian systems.
2198
2199 2016-07-01 Jan Beulich <jbeulich@suse.com>
2200
2201 * varasm.c (get_variable_section): Validate initializer in
2202 named .bss-like sections.
2203
2204 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2205
2206 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2207 Exchange the order of the second and third operands in the vpermr
2208 instruction tmeplate.
2209
2210 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
2211
2212 PR target/71698
2213 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2214 Disallow TDmode values.
2215
2216 2016-07-01 Alan Modra <amodra@gmail.com>
2217
2218 PR rtl-optimization/71709
2219 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2220 being set, not referenced.
2221
2222 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
2223
2224 PR tree-optimization/70729
2225 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2226 of loop since it can be not valid after transformation.
2227
2228 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2229
2230 * config/arm/arm.c (thumb_reload_in_hi): Delete.
2231 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2232
2233 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
2234
2235 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2236 for NULL decl.
2237
2238 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2239
2240 PR target/71677
2241 * config/rs6000/constraints.md (wY constraint): New constraint to
2242 match the requirements for the LXSD and STXSD instructions.
2243 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2244 predicate to match the requirements for the LXSD and STXSD
2245 instructions.
2246 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2247 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2248 to make sure that the bottom 2 bits of offset are 0, the address
2249 form is offsettable, and no updating is done in the address mode.
2250 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2251 (movdi_internal32): Likewise
2252 (movdi_internal64): Likewise.
2253
2254 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2255
2256 PR tree-optimization/71707
2257 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2258 strinfo even for ADDR_EXPR ptr.
2259
2260 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
2261
2262 * config/rs6000/altivec.md (darn_32): Change the condition to
2263 TARGET_P9_MISC instead of TARGET_MODULO.
2264 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2265 condition expression.
2266 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2267 condition expression.
2268 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2269 (DFP_TEST): New code iterator.
2270 (dfptstsfi_<code>_mode>): New define_expand.
2271 (*dfp_sgnfcnc_<mode>): New define_insn.
2272 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2273 definition next to BU_P9_MISC_1 definition and change the MASK
2274 value to RS6000_BTM_P9_MISC.
2275 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2276 (BU_P9_64BIT_MISC_0): Likewise.
2277 (BU_P9_DFP_MISC_0): New macro definition.
2278 (BU_P9_DFP_MISC_1): New macro definition.
2279 (BU_P9_DFP_MISC_2): New macro definition.
2280 (BU_P9_DFP_OVERLOAD_1): New macro definition.
2281 (BU_P9_DFP_OVERLOAD_2): New macro definition.
2282 (BU_P9_DFP_OVERLOAD_3): New macro definition.
2283 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2284 (TSTSFI_LT_TD): Likewise.
2285 (TSTSFI_EQ_DD): Likewise.
2286 (TSTSFI_EQ_TD): Likewise.
2287 (TSTSFI_GT_DD): Likewise.
2288 (TSTSFI_GT_TD): Likewise.
2289 (TSTSFI_OV_DD): Likewise.
2290 (TSTSFI_OV_TD): Likewise.
2291 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2292 (TSTSFI_LT_DD): Likewise.
2293 (TSTSFI_LT_TD): Likewise.
2294 (TSTSFI_EQ): Likewise.
2295 (TSTSFI_EQ_DD): Likewise.
2296 (TSTSFI_EQ_TD): Likewise.
2297 (TSTSFI_GT): Likewise.
2298 (TSTSFI_GT_DD): Likewise.
2299 (TSTSFI_GT_TD): Likewise.
2300 (TSTSFI_OV): Likewise.
2301 (TSTSFI_OV_DD): Likewise.
2302 (TSTSFI_OV_TD): Likewise.
2303 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2304 overloaded test significance functions.
2305 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2306 OPTION_MASK_P9_MISC into the representation of this mask.
2307 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2308 of this mask.
2309 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2310 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2311 non-zero.
2312 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2313 argument is a 6-bit unsigned literal value if the icode argument
2314 represents a DFP test significance built-in call.
2315 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2316 flag used independently and in combination with the
2317 RS6000_BTM_64BIT flag.
2318 (rs6000_opt_masks): Add entry for power9-misc command-line option.
2319 (rs6000_builtin_mask_names): Add entry for power9-misc
2320 command-line option.
2321 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2322 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
2323 RS6000_BTM_P9_MISC macros.
2324 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2325 option and change the description of the -mpower9-vector option to
2326 enable only vector instructions, removing its erroneously claimed
2327 support for scalar instructions.
2328 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2329 the ISA 3.0 digital floating point test significance built-in
2330 functions.
2331
2332 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
2333
2334 * config/aarch64/aarch64.c (cortexa35_tunings):
2335 Enable AES fusion. Use cortexa57_branch_cost.
2336 (cortexa53_tunings): Use cortexa57_branch_cost.
2337 (cortexa72_tunings): Use cortexa57_branch_cost.
2338 Use AUTOPREFETCHER_WEAK.
2339 (cortexa73_tunings): Use cortexa57_branch_cost.
2340
2341 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2342 James Greenhalgh <james.greenhalgh@arm.com>
2343
2344 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2345 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2346 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2347 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2348 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2349 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2350 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2351 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2352 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2353 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2354 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2355 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2356 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2357 New intrinsics.
2358
2359 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
2360 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2361
2362 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2363 New define_insn.
2364 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2365
2366 2016-06-30 David Malcolm <dmalcolm@redhat.com>
2367
2368 PR driver/71651
2369 * gcc.c (driver::build_option_suggestions): Pass "option" to
2370 add_misspelling_candidates.
2371 * opts-common.c (add_misspelling_candidates): Add "option" param;
2372 use it to avoid adding negated forms for options marked with
2373 RejectNegative.
2374 * opts.h (add_misspelling_candidates): Add "option" param.
2375
2376 2016-06-30 Jakub Jelinek <jakub@redhat.com>
2377
2378 PR middle-end/71693
2379 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2380 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2381 first when permuting bitwise operation with rotate. Cast
2382 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2383
2384 2016-06-29 David Malcolm <dmalcolm@redhat.com>
2385
2386 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2387 for misspelled param names.
2388 * params.c: Include spellcheck.h.
2389 (find_param_fuzzy): New function.
2390 * params.h (find_param_fuzzy): New prototype.
2391 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2392 * spellcheck.h (struct edit_distance_traits<const char *>):
2393 ...here.
2394
2395 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2396
2397 * config/rs6000/predicates.md (const_0_to_7_operand): New
2398 predicate, recognize 0..7.
2399 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2400 support for doing extracts from V16QImode, V8HImode, V4SImode
2401 under ISA 3.0.
2402 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2403 vector extract support.
2404 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2405 for ISA 3.0 vector extract.
2406 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2407 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2408 extracts of a constant element number from small integer vectors
2409 on 64-bit ISA 3.0 systems.
2410 (vsx_extract_<mode>_di): Likewise.
2411 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2412 say when we can do ISA 3.0 vector extracts.
2413 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2414 registers, using the stxsiwx instruction.
2415
2416 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
2417
2418 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2419 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2420 qdf24xx_regmove_cost, qdf24xx_tunings): New.
2421 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2422 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2423 * config/arm/arm.c (arm_qdf24xx_tune): New.
2424
2425 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
2426
2427 * config/aarch64/aarch64.c (cortexa53_tunings):
2428 Increase loop alignment to 8. Set function alignment to 16.
2429 (cortexa35_tunings): Likewise.
2430 (cortexa57_tunings): Increase loop alignment to 8.
2431 (cortexa72_tunings): Likewise.
2432 (cortexa73_tunings): Likewise.
2433
2434 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
2435
2436 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2437 for arm_fp16_ok and arm_fp16_hw.
2438 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2439 arm_fp16_alternative.
2440
2441 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
2442
2443 PR tree-optimization/71655
2444 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2445 types when swapping operands.
2446
2447 2016-06-29 Martin Liska <mliska@suse.cz>
2448
2449 PR middle-end/71585
2450 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2451 * ipa-inline-transform.c (inline_call): Remove unnecessary call
2452 of build_optimization_node.
2453
2454 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
2455
2456 PR tree-optimization/70729
2457 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2458 independent in loops having positive safelen value.
2459 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2460 it may be not valid after vectorization.
2461
2462 2016-06-29 Jakub Jelinek <jakub@redhat.com>
2463
2464 PR tree-optimization/71625
2465 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
2466 is sorted by ascending list->offset. If PTR is non-NULL and there is
2467 previous strinfo, call get_stridx_plus_constant.
2468 (get_stridx): Pass exp as second argument to get_addr_stridx.
2469 (addr_stridxptr): Add missing list = list->next, so that there can be
2470 more than one entries in the list. Bump limit from 16 to 32. Ensure
2471 the list is sorted by ascending list->offset.
2472 (get_stridx_plus_constant): Adjust so that it can be also called with
2473 ADDR_EXPR instead of SSA_NAME as PTR.
2474 (handle_char_store): Pass NULL_TREE as second argument to
2475 get_addr_stridx.
2476
2477 2016-06-29 Richard Biener <rguenther@suse.de>
2478
2479 PR rtl-optimization/68961
2480 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2481
2482 2016-06-29 Richard Biener <rguenther@suse.de>
2483
2484 PR middle-end/71002
2485 * alias.c (component_uses_parent_alias_set_from): Handle
2486 type punning through union accesses by using the union alias set.
2487 * gimple.c (gimple_get_alias_set): Remove union type punning case.
2488
2489 2016-07-29 Richard Biener <rguenther@suse.de>
2490
2491 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2492 precision not matching mode precision.
2493
2494 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
2495
2496 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2497 pa_output_arg_descriptor.
2498 (call_val_symref_64bit_post_reload): Likewise.
2499 (call_val_powf_64bit_post_reload): Likewise.
2500 (sibcall_internal_symref_64bit): Likewise.
2501 (sibcall_value_internal_symref_64bit): Likewise.
2502
2503 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2504
2505 PR middle-end/71626
2506 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2507 a constant, force its SUBREG_REG into memory or register instead
2508 of whole op1.
2509
2510 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2511
2512 PR target/58655
2513 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2514 * doc/invoke.texi (AVR Options): Document it.
2515
2516 2016-06-28 Walter Lee <walt@tilera.com>
2517
2518 * config/tilegx/linux.h: Do not include arch/icache.h
2519 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2520 * config/tilepro/linux.h: Do not include arch/icache.h
2521 (CLEAR_INSN_CACHE): Provide inlined definition directly.
2522
2523 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
2524
2525 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2526 for big-endian BIT_FIELD_REF.
2527
2528 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
2529
2530 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2531 ('size' attribute): Add '128'.
2532 Include power9.md.
2533 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2534 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2535 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2536 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2537 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2538 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2539 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2540 *trunc<mode>df2_odd): Set size attribute to '128'.
2541 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2542 * config/rs6000/power6.md (power6-fp): Include dfp type.
2543 * config/rs6000/power7.md (power7-fp): Likewise.
2544 * config/rs6000/power8.md (power8-fp): Likewise.
2545 * config/rs6000/power9.md: New file.
2546 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2547 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2548 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2549 htmsimple.
2550 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2551 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2552 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2553 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2554 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2555 dfp_dscri_<mode>): Change type attribute to dfp.
2556 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2557 attribute to vecsimple.
2558 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2559 and prefetch streams.
2560 (rs6000_option_override_internal): Remove temporary code setting
2561 tuning to power8. Don't set rs6000_sched_groups for power9.
2562 (last_scheduled_insn): Change to rtx_insn *.
2563 (divide_cnt, vec_load_pendulum): New variables.
2564 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2565 (rs6000_issue_rate): Set issue rate for Power9.
2566 (is_power9_pairable_vec_type): New.
2567 (power9_sched_reorder2): New.
2568 (rs6000_sched_reorder2): Call new function for Power9 specific
2569 reordering.
2570 (insn_must_be_first_in_group): Remove Power9.
2571 (insn_must_be_last_in_group): Likewise.
2572 (force_new_group): Likewise.
2573 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2574 Initialize divide_cnt/vec_load_pendulum.
2575 (_rs6000_sched_context, rs6000_init_sched_context,
2576 rs6000_set_sched_context): Handle context save/restore of new
2577 variables.
2578
2579 2016-06-28 Richard Biener <rguenther@suse.de>
2580
2581 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2582 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2583 COMPONENT_REF operand.
2584 (nonoverlapping_component_refs_p): Likewise.
2585 * stor-layout.c (start_bitfield_representative): Mark
2586 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2587
2588 2016-06-28 Jakub Jelinek <jakub@redhat.com>
2589
2590 * Makefile.in: Don't cat ../stage_current if it does not exist.
2591
2592 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2593 last argument is a bit-field.
2594
2595 PR rtl-optimization/71673
2596 * internal-fn.c (expand_arith_overflow_result_store): Use
2597 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2598 expand_simple_binop.
2599
2600 PR middle-end/66867
2601 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2602 expand_ifn_atomic_compare_exchange): New functions.
2603 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2604 * tree.h (build_call_expr_internal_loc): Rename to ...
2605 (build_call_expr_internal_loc_array): ... this. Fix up type of
2606 last argument.
2607 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2608 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2609 ATOMIC_COMPARE_EXCHANGE result.
2610 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2611 * gimple-fold.h (optimize_atomic_compare_exchange_p,
2612 fold_builtin_atomic_compare_exchange): New prototypes.
2613 * gimple-fold.c (optimize_atomic_compare_exchange_p,
2614 fold_builtin_atomic_compare_exchange): New functions..
2615 * tree-ssa.c (execute_update_addresses_taken): If
2616 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2617 of call when finding addressable vars, and if such var becomes
2618 non-addressable, call fold_builtin_atomic_compare_exchange.
2619
2620 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
2621
2622 PR target/71670
2623 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2624 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2625
2626 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
2627
2628 * config/rs6000/rs6000.md ('type' attribute): Add
2629 veclogical,veccmpfx,vecexts,vecmove insn types.
2630 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2631 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2632 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2633 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2634 *nabs<mode>2_hw): Change type to vecmove.
2635 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2636 *boolcc<mode>3_internal, *eqv<mode>3_internal,
2637 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2638 *ieee_128bit_vsx_abs<mode>2_internal,
2639 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2640 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2641 *ieee128_mtvsrd_32bit): Change type to veclogical.
2642 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2643 *movdi_internal32, *movdi_internal64): Update insn types.
2644 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2645 vsx_extract_<mode>): Change type to veclogical.
2646 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2647 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2648 *vsx_sign_extend_si_v2di): Change type to vecexts.
2649 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2650 type to veclogical.
2651 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2652 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2653 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2654 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2655 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2656 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2657 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2658 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2659 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2660 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2661 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2662 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2663 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2664 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2665 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2666 (ppc7450-vecsimple): Add veclogical, vecmove.
2667 (ppc7450-veccmp): Add veccmpfx.
2668 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2669 vecmove.
2670 (ppc8540_vector_compare): Add veccmpfx.
2671 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2672 * config/rs6000/cell.md (cell-fp): Add fpsimple.
2673 (cell-vecsimple): Add veclogical, vecmove.
2674 (cell-veccmp): Add veccmpfx.
2675 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2676 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2677 veccmpfx.
2678 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2679 * config/rs6000/power4.md (power4-fp): Add fpsimple.
2680 (power4-vecsimple): Add veclogical, vecmove.
2681 (power4-veccmp): Add veccmpfx.
2682 * config/rs6000/power5.md (power5-fp): Add fpsimple.
2683 * config/rs6000/power6.md (power6-fp): Add fpsimple.
2684 (power6-vecsimple): Add veclogical, vecmove.
2685 (power6-veccmp): Add veccmpfx.
2686 * config/rs6000/power7.md (power7-fp): Add fpsimple.
2687 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2688 * config/rs6000/power8.md (power8-fp): Add fpsimple.
2689 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2690 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2691 * config/rs6000/titan.md (titan_fp): Add fpsimple.
2692 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2693 fpsimple.
2694 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2695
2696 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
2697
2698 PR target/71656
2699 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2700 OPTION_MASK_P9_DFORM_VECTOR.
2701 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2702 disable -mpower9-dform-vector when using reload.
2703 (quad_address_p): Remove 'gpr_p' argument and all associated code.
2704 New 'strict' argument. Update all callers. Add strict addressing
2705 support.
2706 (rs6000_legitimate_offset_address_p): Remove call to
2707 virtual_stack_registers_memory_p.
2708 (rs6000_legitimize_reload_address): Add quad address support.
2709 (rs6000_legitimate_address_p): Move call to quad_address_p above
2710 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
2711 to account for new strict usage.
2712 (rs6000_output_move_128bit): Adjust quad_address_p args to account
2713 for new strict usage.
2714 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2715
2716 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
2717
2718 PR target/70902
2719 PR target/71453
2720 PR target/71555
2721 PR target/71596
2722 PR target/71657
2723 * config/i386/i386.c (ix86_spill_class): Disable condition to
2724 always return NO_REGS.
2725
2726 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
2727
2728 * predict.c: Include gimple-pretty-print.h
2729 (predicted_by_loop_heuristics_p): Check also
2730 PRED_LOOP_EXIT_WITH_RECURSION
2731 (predict_loops): Find self recursive calls and use special purpose
2732 predictors for them; dump log about decisions.
2733 (pass_profile::execute): Dump info about #of iterations.
2734 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2735 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2736
2737 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
2738
2739 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2740 output_asm_insn calls and shorten long lines. Output .CALL
2741 argument descriptor using pa_output_arg_descriptor. Add various
2742 inline $$dyncall and other optimizations.
2743 (pa_attr_length_indirect_call): Adjust ordering and lengths.
2744
2745 2016-06-25 Jakub Jelinek <jakub@redhat.com>
2746
2747 PR tree-optimization/71643
2748 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2749 EH preds.
2750
2751 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2752 leak a bitmap if dep_bb is NULL.
2753
2754 PR tree-optimization/71631
2755 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2756 to rewrite_expr_tree even if negate_result, move new_lhs var
2757 declaration and initialization earlier, for powi_result set afterwards
2758 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
2759 if new_lhs != lhs, and don't shadow gsi var.
2760
2761 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2762
2763 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2764 Add in_loop parameter.
2765 (predict_loops): Add loop guard heuristics.
2766 * predict.def (PRED_LOOP_GUARD): New heuristics.
2767
2768 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
2769
2770 * predict.c: Include ipa-utils.h
2771 (tree_bb_level_prediction): Predict recursive calls.
2772 (tree_estimate_probability_bb): Skip inexpensive calls for call
2773 predictor.
2774 * predict.def (PRED_RECURSIVE_CALL): New.
2775
2776 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2777
2778 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2779 (BU_FLOAT128_1): Likewise.
2780 (FABSQ): Likewise.
2781 (COPYSIGNQ): Likewise.
2782 (RS6000_BUILTIN_NANQ): Likewise.
2783 (RS6000_BUILTIN_NANSQ): Likewise.
2784 (RS6000_BUILTIN_INFQ): Likewise.
2785 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2786 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2787 (TARGET_FOLD_BUILTIN): New #define.
2788 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2789 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2790 (rs6000_fold_builtin): New target hook implementation, handling
2791 folding of 128-bit NaNs and infinities.
2792 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2793 entries are filled in to avoid problems during bootstrap
2794 self-test; define builtins for 128-bit NaNs and infinities.
2795 (rs6000_opt_mask): Add entry for float128.
2796 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2797 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2798 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2799 (const_str_type_node): New #define.
2800 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2801 to a define_expand that dispatches to either copysign<mode>3_soft
2802 or copysign<mode>3_hard.
2803 (copysign<mode>3_hard): Rename from copysign<mode>3.
2804 (copysign<mode>3_soft): New define_insn.
2805 * doc/extend.texi: Document new builtins.
2806
2807 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2808
2809 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2810 PRIu64 instead of lu.
2811
2812 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
2813
2814 PR debug/71642
2815 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2816 copy the type name.
2817
2818 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2819
2820 PR tree-optimization/71647
2821 * omp-low.c (lower_rec_input_clauses): Convert
2822 omp_clause_aligned_alignment (c) to size_type_node for the
2823 last argument of __builtin_assume_aligned.
2824
2825 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
2826
2827 * configure.ac (calling ___tls_get_addr via GOT): New
2828 assembler/linker check.
2829 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
2830 assembler and linker supports calling ___tls_get_addr via GOT.
2831 Otherise, defined to 0.
2832 * config.in: Regenerated.
2833 * configure: Likewise.
2834 * config/i386/constraints.md (Yb): New constraint.
2835 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2836 (REG_CLASS_NAMES): Likewise.
2837 (REG_CLASS_CONTENTS): Likewise.
2838 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2839 the b constraint with the Yb constraint. Call ___tls_get_addr
2840 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2841 is 1.
2842 (*tls_local_dynamic_base_32_gnu): Likewise.
2843 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2844 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2845 (*tls_local_dynamic_base_64_<mode>): Likewise.
2846
2847 2016-06-24 Martin Liska <mliska@suse.cz>
2848
2849 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2850 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2851 few functions.
2852 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2853 argument to true if the expected number of iterations is
2854 loop-based.
2855
2856 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
2857
2858 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2859 assemble for 32bit target.
2860 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2861 and $ld_ix86_gld_32_opt to link for 32bit target.
2862 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2863 * configure: Regenerate.
2864
2865 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2866
2867 * config/arm/arm.c (int_log2): Delete definition and prototype.
2868 (shift_op): Use exact_log2 instead of int_log2.
2869 (vfp3_const_double_for_fract_bits): Likewise.
2870
2871 2016-06-24 Jakub Jelinek <jakub@redhat.com>
2872
2873 * internal-fn.c (expand_arith_set_overflow): New function.
2874 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2875 Use it.
2876 (expand_arith_overflow_result_store): Likewise. Handle precision
2877 smaller than mode precision.
2878 * tree-vrp.c (extract_range_basic): For imag part, handle
2879 properly signed 1-bit precision result.
2880 * doc/extend.texi (__builtin_add_overflow): Document that last
2881 argument can't be pointer to enumerated or boolean type.
2882 (__builtin_add_overflow_p): Document that last argument can't
2883 have enumerated or boolean type.
2884
2885 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2886 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2887
2888 * config/rs6000/predicates.md (splat_input_operand): Rework.
2889 Don't allow constants, since the insns that use this predicate
2890 don't support constants. Constants are handled by other insns
2891 that are created via combine. During and after register
2892 allocation, only allow indexed or indirect addresses, and not
2893 general addresses. Only allow modes supported by the hardware.
2894 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2895 comment. Move check for using VSPLTIS<x> to a common location,
2896 instead of doing it in two different places.
2897
2898 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
2899
2900 * config/i386/driver-i386.c (host_detect_local_cpu): Set
2901 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2902 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2903 signature_CENTAUR_ebx.
2904
2905 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
2906
2907 PR target/66232
2908 PR target/67400
2909 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2910 (as_ix86_gas_32_opt): This.
2911 (ld_ix86_tls_ldm_opt): Renamed to ...
2912 (ld_ix86_gld_32_opt): This.
2913 (R_386_TLS_LDM reloc): Updated.
2914 (R_386_GOT32X reloc): New assembler/linker check.
2915 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
2916 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
2917 defined to 0.
2918 * config.in: Regenerated.
2919 * configure: Likewise.
2920 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2921 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2922 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2923 if ix86_force_load_from_GOT_p returns true.
2924 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2925 ix86_force_load_from_GOT_p returns true.
2926 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2927 the external function address via the GOT slot.
2928 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2929 HAVE_AS_IX86_GOT32X before returning false.
2930 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2931 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2932
2933 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
2934
2935 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2936
2937 2016-06-23 Andi Kleen <ak@linux.intel.com>
2938
2939 * Makefile.in: Regenerate.
2940 * doc/install.texi: Document autoprofiledbootstrap.
2941
2942 2016-06-23 Andi Kleen <ak@linux.intel.com>
2943
2944 * config/i386/gcc-auto-profile: New file.
2945
2946 2016-06-23 Martin Liska <mliska@suse.cz>
2947
2948 PR middle-end/71619
2949 * predict.c (predict_loops): Revert the hunk that was removed
2950 in r237103.
2951
2952 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
2953
2954 * config.gcc: Add support for arm*-*-phoenix* targets.
2955 * config/arm/t-phoenix: New.
2956 * config/phoenix.h: New.
2957
2958 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
2959 H.J. Lu <hongjiu.lu@intel.com>
2960
2961 PR target/67400
2962 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2963 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2964 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2965 ix86_force_load_from_GOT_p returns true.
2966 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2967 ix86_force_load_from_GOT_p returns true.
2968 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2969 ix86_force_load_from_GOT_p returns true.
2970 (ix86_expand_move): Load the external function address via the
2971 GOT slot if ix86_force_load_from_GOT_p returns true.
2972 * config/i386/predicates.md (x86_64_immediate_operand): Return
2973 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2974 (x86_64_zext_immediate_operand): Ditto.
2975
2976 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
2977
2978 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2979
2980 2016-06-22 David Malcolm <dmalcolm@redhat.com>
2981
2982 PR c/70339
2983 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2984 * diagnostic.c (pedwarn_at_rich_loc): New function.
2985 * spellcheck.h (best_match::best_match): Add a
2986 "best_distance_so_far" optional parameter.
2987 (best_match::set_best_so_far): New method.
2988 (best_match::get_best_distance): New accessor.
2989 (best_match::get_best_candidate_length): New accessor.
2990
2991 2016-06-22 Nick Clifton <nickc@redhat.com>
2992
2993 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2994 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2995 modes are accepted as well.
2996 (ucompare_loc_descriptor): Likewise.
2997 (minmax_loc_descriptor): Likewise.
2998 (clz_loc_descriptor): Likewise.
2999 (popcount_loc_descriptor): Likewise.
3000 (bswap_loc_descriptor): Likewise.
3001 (rotate_loc_descriptor): Likewise.
3002 (mem_loc_descriptor): Likewise.
3003 (loc_descriptor): Likewise.
3004
3005 2016-06-22 David Malcolm <dmalcolm@redhat.com>
3006
3007 * common.opt (fdiagnostics-parseable-fixits): New option.
3008 * diagnostic.c: Include "selftest.h".
3009 (print_escaped_string): New function.
3010 (print_parseable_fixits): New function.
3011 (diagnostic_report_diagnostic): Call print_parseable_fixits.
3012 (selftest::assert_print_escaped_string): New function.
3013 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
3014 (selftest::test_print_escaped_string): New function.
3015 (selftest::test_print_parseable_fixits_none): New function.
3016 (selftest::test_print_parseable_fixits_insert): New function.
3017 (selftest::test_print_parseable_fixits_remove): New function.
3018 (selftest::test_print_parseable_fixits_replace): New function.
3019 (selftest::diagnostic_c_tests): New function.
3020 * diagnostic.h (struct diagnostic_context): Add field
3021 "parseable_fixits_p".
3022 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3023 -fdiagnostics-parseable-fixits.
3024 (-fdiagnostics-parseable-fixits): New option.
3025 * opts.c (common_handle_option): Handle
3026 -fdiagnostics-parseable-fixits.
3027 * selftest-run-tests.c (selftest::run_tests): Call
3028 selftest::diagnostic_c_tests.
3029 * selftest.h (selftest::diagnostic_c_tests): New prototype.
3030
3031 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
3032
3033 PR tree-optimization/71488
3034 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3035 comparison of boolean vectors.
3036 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3037 of boolean vectors using bitwise operations.
3038
3039 2016-06-22 Andreas Schwab <schwab@suse.de>
3040
3041 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3042 Remove declaration.
3043
3044 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
3045
3046 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3047
3048 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
3049
3050 * config/i386/i386.c (print_reg): Emit an error message on attempt to
3051 print FLAGS_REG.
3052
3053 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3054
3055 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3056 * config/arm/arm-cores.def (cortex-a73): New entry.
3057 (cortex-a73.cortex-a35): Likewise.
3058 (cortex-a73.cortex-a53): Likewise.
3059 * config/arm/arm-tables.opt: Regenerate.
3060 * config/arm/arm-tune.md: Likewise.
3061 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3062 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3063 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3064 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3065 * doc/invoke.texi (ARM Options): Document cortex-a73,
3066 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3067
3068 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3069
3070 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3071 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3072 (cortex-a73.cortex-a35): Likewise.
3073 (cortex-a73.cortex-a53): Likewise.
3074 * config/aarch64/aarch64-tune.md: Regenerate.
3075 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3076 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3077 -mcpu and -mtune.
3078
3079 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3080
3081 * configure.ac (gcc_cv_as_compress_debug): Remove
3082 --compress-debug-sections as extra as switch.
3083 Handle gas --compress-debug-sections=type.
3084 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3085 Handle gld --compress-debug-sections=type.
3086 * configure: Regenerate.
3087
3088 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
3089
3090 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3091
3092 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
3093
3094 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3095 (do_rewrite): likewise.
3096
3097 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3098
3099 * common/config/mep/mep-common.c: Remove.
3100 * config.gcc: Remove mep-* support.
3101 * config/mep/constraints.md: Remove.
3102 * config/mep/default.h: Remove.
3103 * config/mep/intrinsics.h: Remove.
3104 * config/mep/intrinsics.md: Remove.
3105 * config/mep/ivc2-template.h: Remove.
3106 * config/mep/mep-c5.cpu: Remove.
3107 * config/mep/mep-core.cpu: Remove.
3108 * config/mep/mep-default.cpu: Remove.
3109 * config/mep/mep-ext-cop.cpu: Remove.
3110 * config/mep/mep-intrin.h: Remove.
3111 * config/mep/mep-ivc2.cpu: Remove.
3112 * config/mep/mep-pragma.c: Remove.
3113 * config/mep/mep-protos.h: Remove.
3114 * config/mep/mep.c: Remove.
3115 * config/mep/mep.cpu: Remove.
3116 * config/mep/mep.h: Remove.
3117 * config/mep/mep.md: Remove.
3118 * config/mep/mep.opt: Remove.
3119 * config/mep/predicates.md: Remove.
3120 * config/mep/t-mep: Remove.
3121 * doc/install.texi: Remove mep-* documentation.
3122 * doc/md.texi: Likewise.
3123
3124 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3125
3126 * config.gcc: Remove support for avr-rtems.
3127 * config/avr/gen-avr-mmcu-specs.c: Likewise.
3128 * config/avr/rtems.h: Remove.
3129 * config/avr/t-rtems: Remove.
3130
3131 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3132
3133 * config.gcc: Remove m32r-rtems support.
3134 * config/m32r/rtems.h: Remove.
3135
3136 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3137
3138 * config.gcc: Remove h8300-rtems support.
3139 * config/h8300/rtems.h: Remove.
3140 * config/h8300/t-rtems: Remove.
3141
3142 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3143
3144 * config.gcc: Remove support for knetbsd.
3145 * configure.ac: Likewise.
3146 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
3147 * config/knetbsd-gnu.h: Remove.
3148 * configure: Regenerate.
3149
3150 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3151
3152 * config.gcc: Remove support for openbsd 2 and 3.
3153 * config/openbsd-oldgas.h: Remove.
3154
3155 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3156
3157 * config.gcc: Remove interix support.
3158 * config/i386/i386-interix.h: Remove.
3159 * config/i386/interix.opt: Remove.
3160 * config/i386/t-interix: Remove.
3161 * configure: Regenerate.
3162 * configure.ac: Remove interix support.
3163 * doc/install.texi: Remove interix documentation.
3164
3165 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
3166
3167 * config/rs6000/rs6000.h: Add conditional preprocessing directives
3168 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3169 not defined.
3170
3171 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3172
3173 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3174 they are both PLACEHOLDER_EXPRs.
3175
3176 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3177
3178 * stor-layout.c (layout_type): Move setting complex MODE to
3179 layout_type, instead of setting it ahead of time by the caller.
3180 * tree.c (build_complex_type): Likewise.
3181
3182 2016-06-21 Martin Liska <mliska@suse.cz>
3183
3184 * predict.c (force_edge_cold): Replace imposisble with
3185 impossible.
3186
3187 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3188
3189 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3190 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3191
3192 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
3193
3194 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3195
3196 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
3197 Ilya Enkovich <ilya.enkovich@intel.com>
3198
3199 PR target/71549
3200 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3201 New member function to convert V1TImode register to SUBREG
3202 TImode in debug insn.
3203 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3204 after changing register mode to V1TImode.
3205
3206 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
3207
3208 * config/aarch64/aarch64-cores.def (vulcan): New core.
3209 * config/aarch64/aarch64-tune.md: Regenerate.
3210 * doc/invoke.texi: Document vulcan as an available option.
3211
3212 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
3213
3214 * cse.c (canon_asm_operands): New function extracted from...
3215 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
3216 either standalone or member of a PARALLEL.
3217
3218 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3219
3220 PR target/30417
3221 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3222 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3223 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3224
3225 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
3226
3227 PR target/71103
3228 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3229 constant addresses if can_create_pseudo_p.
3230
3231 2016-06-21 Jakub Jelinek <jakub@redhat.com>
3232
3233 PR tree-optimization/71588
3234 * tree-ssa-strlen.c (valid_builtin_call): New function.
3235 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3236 it.
3237
3238 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3239
3240 PR middle-end/71581
3241 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3242 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3243 for conversion of scalar user var to complex type and use the
3244 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
3245 punt.
3246
3247 PR rtl-optimization/71591
3248 * toplev.c (toplev::run_self_tests): If no_backend, complain and
3249 don't run any tests.
3250
3251 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
3252
3253 PR target/71571
3254 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3255 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
3256 space for PIC with non-v32 and the common non-PIC "jump".
3257
3258 2016-06-20 Jakub Jelinek <jakub@redhat.com>
3259
3260 PR target/71559
3261 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3262 returned values and add UN*/LTGT/*ORDERED cases with values matching
3263 D operand modifier on vcmp for AVX.
3264
3265 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3266
3267 * config/aarch64/aarch64.opt
3268 (mpc-relative-literal-loads): Rename internal option name.
3269 * config/aarch64/aarch64.c
3270 (aarch64_nopcrelative_literal_loads): Rename to
3271 aarch64_pcrelative_literal_loads.
3272 (aarch64_expand_mov_immediate): Likewise.
3273 (aarch64_secondary_reload): Likewise.
3274 (aarch64_can_use_per_function_literal_pools_p): Likewise.
3275 (aarch64_override_options_after_change_1): Rename and simplify logic.
3276 (aarch64_classify_symbol): Merge large model checks into switch,
3277 remove pc-relative load check.
3278
3279 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3280
3281 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3282 costs relative to the cost of a register move.
3283
3284 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3285
3286 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3287 (vcvt_n_f64_u64): Likewise.
3288 (vcvt_n_s64_f64): Likewise.
3289 (vcvt_n_u64_f64): Likewise.
3290 (vcvt_f64_s64): Likewise.
3291 (vrecpe_f64): Likewise.
3292 (vcvt_f64_u64): Likewise.
3293 (vrecps_f64): Likewise.
3294
3295 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3296
3297 * config/aarch64/aarch64.md
3298 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3299 iterators.
3300 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
3301 attributes.
3302 * config/aarch64/aarch64-builtins.c
3303 (aarch64_types_binop_uss_qualifiers): Delete.
3304 (TYPES_BINOP_USS): Likewise.
3305 (aarch64_types_binop_sus_qualifiers): Likewise.
3306 (TYPES_BINOP_SUS): Likewise.
3307 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3308 (TYPES_FCVTIMM_SUS): Likewise.
3309 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3310 rather than BINOP.
3311 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3312 (fcvtzs): Use SHIFTIMM rather than BINOP.
3313 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3314
3315 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
3316
3317 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3318 costs relative to the cost of a register move.
3319
3320 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3321
3322 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3323 Allow scalar/single vector modes to be tieable.
3324
3325 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
3326
3327 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3328
3329 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3330
3331 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3332 "alignement".
3333 * tree.h (TYPE_ALIGN): Likewise.
3334
3335 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3336
3337 PR target/71103
3338 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3339
3340 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
3341
3342 * config/avr/avr.c (avr_print_operand): Fix "format not a string
3343 literal" build warnings.
3344 (avr_print_operand_address): Dito.
3345
3346 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
3347
3348 PR target/71375
3349 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3350 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3351
3352 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
3353
3354 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3355
3356 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
3357
3358 PR bootstrap/71435
3359 * reload1.c (reload): Pass 0 to finish_spills when called because
3360 update_eliminables_and_spill returns true and remove did_spill.
3361 (finish_spills): Adjust comment and document GLOBAL parameter.
3362
3363 2016-06-17 DJ Delorie <dj@redhat.com>
3364
3365 PR target/71338
3366 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3367 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3368 (umulqihi3_virt): Likewise.
3369 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3370 (umulqihi3_real): Likewise.
3371
3372 2016-06-17 Martin Liska <mliska@suse.cz>
3373
3374 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3375
3376 2016-06-17 Martin Liska <mliska@suse.cz>
3377
3378 * predict.def: PRED_LOOP_EXIT from 92 to 85.
3379
3380 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
3381
3382 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3383 __FAST_MATH__.
3384 (vaddq_f32): Likewise.
3385 (vmul_f32): Likewise.
3386 (vmulq_f32): Likewise.
3387 (vsub_f32): Likewise.
3388 (vsubq_f32): Likewise.
3389
3390 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3391
3392 PR tree-optimization/71347
3393 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3394 cost for all uses in group.
3395
3396 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3397
3398 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3399 insert gimple seq if it's not empty.
3400
3401 2016-06-17 Bin Cheng <bin.cheng@arm.com>
3402
3403 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3404 member OFFSET.
3405 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3406 rather than OFFSET.
3407 (comp_dr_with_seg_len_pair): Ditto.
3408 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
3409 struct dr_with_seg_len_pair against DR_OFFSET.
3410 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3411 DR_OFFSET directly.
3412
3413 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
3414
3415 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3416
3417 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
3418
3419 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3420 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3421 (pa_output_millicode_call): Likewise.
3422 (pa_output_call): Likewise.
3423 (pa_output_indirect_call): Likewise.
3424 (pa_asm_output_mi_thunk): Likewise.
3425
3426 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3427
3428 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3429
3430 2016-06-16 Martin Liska <mliska@suse.cz>
3431
3432 * predict.c (combine_predictions_for_insn): When we find a first
3433 match predictor, we should consider just predictors with
3434 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
3435 DS theory predictor.
3436 (combine_predictions_for_bb): Likewise.
3437
3438 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3439
3440 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3441 with base of reference to struct.
3442
3443 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3444
3445 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3446
3447 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3448
3449 PR target/71151
3450 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3451 progmem_swtable_section.
3452 (progmem_swtable_section): Remove.
3453 (avr_asm_function_rodata_section): Remove.
3454 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3455 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3456
3457 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
3458
3459 * config/i386/driver-i386.c (host_detect_local_cpu): Set
3460 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3461 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3462 signature_CENTAUR_ebx.
3463 * config/i386/i386.c (ix86_option_override_internal): Add
3464 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3465 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3466 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3467
3468 2016-06-16 Martin Liska <mliska@suse.cz>
3469
3470 * predict.def: Add fortran loop preheader predictor.
3471 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3472 fold IFN_BUILTIN_EXPECT with a known constant argument.
3473
3474 2016-06-16 Martin Liska <mliska@suse.cz>
3475
3476 * predict.def: Add 'Fortran' to display text of all
3477 PRED_FORTRAN_* predictors.
3478
3479 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
3480
3481 PR target/71242
3482 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3483 [IA64_BUILTIN_NANSQ]: Ditto.
3484 (ia64_fold_builtin): New function.
3485 (TARGET_FOLD_BUILTIN): New define.
3486 (ia64_init_builtins) Declare const_string_type node.
3487 Add __builtin_nanq and __builtin_nansq builtin functions.
3488 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3489
3490 2016-06-16 Nick Clifton <nickc@redhat.com>
3491
3492 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3493 MSP430_HWMULT_ prefix to enum values.
3494 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3495 * config/msp430/msp430.c: Update use of enum values.
3496 * config/msp430/msp430.md: Likewise.
3497 * config/msp430/msp430.opt: Likewise.
3498
3499 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
3500
3501 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3502 of comparsions in the last iteration.
3503
3504 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3505 Joern Rennecke <joern.rennecke@embecosm.com>
3506
3507 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3508 addresses.
3509 (arc_needs_pcl_p): Add GOTOFFPC.
3510 (arc_legitimate_pic_addr_p): Likewise.
3511 (arc_output_pic_addr_const): Likewise.
3512 (arc_legitimize_pic_address): Generate a pc-relative address using
3513 GOTOFFPC.
3514 (arc_output_libcall): Use @pcl syntax.
3515 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3516 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3517 (*movsi_insn): Use @pcl syntax.
3518 (doloop_begin_i): Likewise.
3519
3520 2016-06-16 Martin Liska <mliska@suse.cz>
3521
3522 * predict.def: Define a new predictor.
3523
3524 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
3525
3526 * config/arc/arc.opt (mtp-regno): Update text.
3527
3528 2016-06-16 Renlin Li <renlin.li@arm.com>
3529
3530 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3531
3532 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3533
3534 PR target/71554
3535 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3536 (setcc + and peephole2): Likewise.
3537
3538 PR rtl-optimization/71532
3539 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3540 memory slots.
3541
3542 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
3543
3544 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3545 DImode constants with XXSPLTIB in vector registers.
3546 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3547 vsx_extract_<mode>_internal{1,2} into a single insn that handles
3548 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3549 extraction of the element at the top of the register as a scalar
3550 value.
3551 (vsx_extract_<mode>_internal1): Likewise.
3552 (vsx_extract_<mode>_internal2): Likewise.
3553 * config/rs6000/constraints.md (wi constraint): Remove a comment
3554 about DImode not being allowed in Altivec registers.
3555 (wB constraint): New constraint for constants that can be
3556 generated in Altivec registers with VSPLTISW/VUPKHSW.
3557 * config/rs6000/predicates.md (xxspltib_constant_split): Update
3558 comments.
3559 (xxspltib_constant_nosplit): Likewise.
3560 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3561 support for -mupper-regs-di to enable DImode to go into Altivec
3562 registers.
3563 (POWERPC_MASKS): Likewise.
3564 (power7 cpu): Likewise.
3565 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3566 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3567 for DImode being allowed in Altivec registers. Update wi/wj
3568 constraints. Set scalar_in_vmx_p flag.
3569 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3570 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
3571 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3572 (rs6000_opt_masks): Add -mupper-regs-di.
3573 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3574 direct move to use wi and not wj.
3575 (lfiwzx): Likewise.
3576 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3577 alternative.
3578 (floatunssi<mode>2_lfiwzx_mem): Likewise.
3579 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3580 any VSX register, instead of just Altivec registers, to allow
3581 either operand to be an Altivec register or both.
3582 (fixuns_trunc<mode>di2_fctiduz): Likewise.
3583 (movdi_internal32): Add support for -mupper-regs-di. Add support
3584 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
3585 the alternatives and attributes to be lined up to be easier to
3586 read.
3587 (movdi_internal64): Likewise.
3588 (64-bit DImode splitters): Change predicates to only split loading
3589 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
3590 load constants in ISA 3.0 or ISA 2.07 respectively.
3591 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3592 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
3593 mention -mcpu=power9 sets these options.
3594 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3595 wB constraint.
3596
3597 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3598
3599 PR target/67353
3600 * config/avr/avr.c (avr_set_current_function): Warn misspelled
3601 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3602 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3603 by default to warn misspelled interrupt/ signal handler.
3604 * doc/invoke.texi (AVR Options): Document it. Update description
3605 for -nodevicelib option.
3606
3607 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3608
3609 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3610 up parentheses. Use GET_MODE_UNIT_BITSIZE.
3611 (aarch64_<sur>shll2_n<mode>): Likewise.
3612
3613 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
3614
3615 PR middle-end/71529
3616 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3617 DECL_CONTEXT for copied arguments.
3618
3619 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3620
3621 PR tree-optimization/71483
3622 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3623 for slp
3624
3625 2016-06-15 Martin Liska <mliska@suse.cz>
3626
3627 * predict.c (tree_predict_by_opcode): Call predict_edge_def
3628 instead of predict_edge w/o a probability.
3629
3630 2016-06-15 Alan Hayward <alan.hayward@arm.com>
3631
3632 PR tree-optimization/71439
3633 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3634 live PHIs.
3635
3636 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3637
3638 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3639 register subregs in SET_SRC.
3640
3641 2016-06-15 Richard Biener <rguenther@suse.de>
3642
3643 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3644 store restrictions.
3645
3646 2016-06-15 Richard Biener <rguenther@suse.de>
3647
3648 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3649 not consider dependences between accesses that belong to the
3650 same group.
3651 (vect_analyze_data_ref_dependences): Do not analyze read-read
3652 or self-dependences.
3653
3654 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3655
3656 * spellcheck-tree.c: Include spellcheck-tree.h rather than
3657 spellcheck.h.
3658 (find_closest_identifier): Reimplement in terms of
3659 best_match<tree,tree>.
3660 * spellcheck-tree.h: New file.
3661 * spellcheck.c (struct edit_distance_traits<const char *>): New
3662 struct.
3663 (find_closest_string): Reimplement in terms of
3664 best_match<const char *, const char *>.
3665 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3666 overload to spellcheck-tree.h.
3667 (find_closest_identifier): Likewise.
3668 (struct edit_distance_traits<T>): New template.
3669 (class best_match): New class.
3670
3671 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3672
3673 * selftest-run-tests.c (selftest::run_tests): Call
3674 selftest::spellcheck_tree_c_tests.
3675 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3676 * spellcheck-tree.c: Include selftest.h and stringpool.h.
3677 (selftest::test_find_closest_identifier): New function.
3678 (selftest::spellcheck_tree_c_tests): New function.
3679 * spellcheck.c (selftest::test_find_closest_string): Verify that
3680 the order of the vec does not affect the results for this case.
3681 (selftest::test_data): New array.
3682 (selftest::test_metric_conditions): New function.
3683 (selftest::spellcheck_c_tests): Add a test of case-comparison.
3684 Call selftest::test_metric_conditions.
3685
3686 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3687
3688 * config/rs6000/rs6000-builtin.def (commentary): Typo.
3689 (BU_P9_MISC_1): Likewise.
3690 (BU_P9_64BIT_MISC_0): Likewise.
3691 (BU_P9_MISC_0): Likewise.
3692
3693 2016-06-14 David Malcolm <dmalcolm@redhat.com>
3694
3695 * gcc-rich-location.c
3696 (gcc_rich_location::add_fixit_misspelled_id): New method.
3697 * gcc-rich-location.h
3698 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3699
3700 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
3701
3702 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3703 FreeBSD 11 and above.
3704
3705 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
3706
3707 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3708
3709 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3710
3711 * expmed.h: Close parenthesis in "at your option" in copyright
3712 boilerplate.
3713 * lower-subreg.h: Likewise.
3714
3715 2016-06-14 Richard Biener <rguenther@suse.de>
3716
3717 PR middle-end/71526
3718 * genmatch.c (expr::gen_transform): Use in_type for comparisons
3719 if available.
3720
3721 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3722
3723 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3724 New function.
3725 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
3726 mask+shift version.
3727 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3728 New prototype.
3729 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3730 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3731
3732 2016-06-14 Richard Biener <rguenther@suse.de>
3733
3734 PR tree-optimization/71522
3735 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3736 copying into float copying.
3737
3738 2016-06-14 Jakub Jelinek <jakub@redhat.com>
3739
3740 PR tree-optimization/71520
3741 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3742 (replace_block_by): Move user labels from bb1 to bb2.
3743
3744 2016-06-14 Richard Biener <rguenther@suse.de>
3745
3746 PR middle-end/71310
3747 PR bootstrap/71510
3748 * expr.h (get_bit_range): Declare.
3749 * expr.c (get_bit_range): Export.
3750 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3751 word_mode again to constrain the bitfield access.
3752
3753 2016-06-14 Richard Biener <rguenther@suse.de>
3754
3755 PR tree-optimization/71521
3756 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3757 division int_const_binop against zero divisor.
3758
3759 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3760
3761 * config/i386/i386.md (signbittf2): New expander.
3762 * config/i386/sse.md (ptesttf2): New insn pattern.
3763
3764 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3765
3766 PR bootstrap/71481
3767 * input.c (selftest::test_reading_source_line): Avoid reading from
3768 __FILE__ by creating a tempfile with known content and reading
3769 from that instead.
3770
3771 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3772
3773 * pretty-print.c (assert_pp_format_colored): Skip the test if
3774 GCC_COLORS is set.
3775 (test_pp_format): Remove comment about GCC_COLORS.
3776
3777 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3778
3779 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3780 * pretty-print.c (assert_pp_format_va): Add location param and use
3781 it with ASSERT_STREQ_AT.
3782 (assert_pp_format): Add location param and pass it to
3783 assert_pp_format_va.
3784 (assert_pp_format_colored): Likewise.
3785 (ASSERT_PP_FORMAT_1): New.
3786 (ASSERT_PP_FORMAT_2): New.
3787 (ASSERT_PP_FORMAT_3): New.
3788 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3789 explicitly, or implicitly via the above macros.
3790 * selftest.c (selftest::pass): Use a selftest::location rather
3791 than file and line.
3792 (selftest::fail): Likewise. Print the function name.
3793 (selftest::fail_formatted): Likewise.
3794 (selftest::assert_streq): Use a selftest::location rather than
3795 file and line.
3796 * selftest.h (selftest::location): New struct.
3797 (SELFTEST_LOCATION): New macro.
3798 (selftest::pass): Accept a const location & rather than file
3799 and line.
3800 (selftest::fail): Likewise.
3801 (selftest::fail_formatted): Likewise.
3802 (selftest::assert_streq): Likewise.
3803 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3804 (ASSERT_FALSE): Likewise.
3805 (ASSERT_EQ): Likewise.
3806 (ASSERT_NE): Likewise.
3807 (ASSERT_STREQ): Likewise.
3808 (ASSERT_PRED1): Likewise.
3809 (ASSERT_STREQ_AT): New macro.
3810
3811 2016-06-13 David Malcolm <dmalcolm@redhat.com>
3812
3813 * selftest.c (selftest::fail_formatted): New function.
3814 (selftest::assert_streq): New function.
3815 * selftest.h (selftests::fail_formatted): New decl.
3816 (selftest::assert_streq): New decl.
3817 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3818
3819 2016-06-13 Jeff Law <law@redhat.com>
3820
3821 PR tree-optimization/71403
3822 * tree-ssa-threadbackward.c
3823 (convert_and_register_jump_thread_path): No longer accept reference
3824 to path. Do not pop items off the path anymore.
3825 (fsm_find_control_statement_thread_paths): Do not allow threading
3826 to a deeper loop nest. Pop the last item off the path here rather
3827 than in convert_and_register_jump_thread_path.
3828
3829 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3830 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
3831
3832 [AArch64] Emit division using the Newton series
3833
3834 * config/aarch64/aarch64-protos.h
3835 (cpu_approx_modes): Add new member "division".
3836 (aarch64_emit_approx_div): Declare new function.
3837 * config/aarch64/aarch64.c
3838 (generic_approx_modes): New member "division".
3839 (exynosm1_approx_modes): Likewise.
3840 (xgene1_approx_modes): Likewise.
3841 (aarch64_emit_approx_div): Define new function.
3842 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3843 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3844 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3845 * doc/invoke.texi (-mlow-precision-div): Describe new option.
3846
3847 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3848 Wilco Dijkstra <wilco.dijkstra@arm.com>
3849
3850 [AArch64] Emit square root using the Newton series
3851
3852 * config/aarch64/aarch64-protos.h
3853 (aarch64_emit_approx_rsqrt): Replace with new function
3854 "aarch64_emit_approx_sqrt".
3855 (cpu_approx_modes): New member "sqrt".
3856 * config/aarch64/aarch64.c
3857 (generic_approx_modes): New member "sqrt".
3858 (exynosm1_approx_modes): Likewise.
3859 (xgene1_approx_modes): Likewise.
3860 (aarch64_emit_approx_rsqrt): Replace with new function
3861 "aarch64_emit_approx_sqrt".
3862 (aarch64_override_options_after_change_1): Handle new option.
3863 * config/aarch64/aarch64-simd.md
3864 (rsqrt<mode>2): Use new function instead.
3865 (sqrt<mode>2): New expansion and insn definitions.
3866 * config/aarch64/aarch64.md: Likewise.
3867 * config/aarch64/aarch64.opt
3868 (mlow-precision-sqrt): Add new option description.
3869 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3870
3871 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
3872
3873 [AArch64] Add more choices for the reciprocal square root approximation
3874
3875 Allow a target to prefer such operation depending on the operation mode.
3876
3877 * config/aarch64/aarch64-protos.h
3878 (AARCH64_APPROX_MODE): New macro.
3879 (AARCH64_APPROX_{NONE,ALL}): Likewise.
3880 (cpu_approx_modes): New structure.
3881 (tune_params): New member "approx_modes".
3882 * config/aarch64/aarch64-tuning-flags.def
3883 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3884 * config/aarch64/aarch64.c
3885 (generic_approx_modes): New core "cpu_approx_modes" structure.
3886 (exynosm1_approx_modes): Likewise.
3887 (xgene1_approx_modes): Likewise.
3888 (generic_tunings): New member "approx_modes".
3889 (cortexa35_tunings): Likewise.
3890 (cortexa53_tunings): Likewise.
3891 (cortexa57_tunings): Likewise.
3892 (cortexa72_tunings): Likewise.
3893 (exynosm1_tunings): Likewise.
3894 (thunderx_tunings): Likewise.
3895 (xgene1_tunings): Likewise.
3896 (use_rsqrt_p): New argument for the mode and use new member from
3897 "tune_params".
3898 (aarch64_builtin_reciprocal): Devise mode from builtin.
3899 (aarch64_optab_supported_p): New argument for the mode.
3900 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3901
3902 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3903
3904 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3905 RS6000_BTM_MODULO flag into the set of flags that are considered
3906 to be part of the common configuration.
3907
3908 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
3909
3910 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3911 difference unsigned.
3912 (vec_absdb): New macro for vector absolute difference unsigned
3913 byte.
3914 (vec_absdh): New macro for vector absolute difference unsigned
3915 half-word.
3916 (vec_absdw): New macro for vector absolute difference unsigned word.
3917 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3918 (vadu<mode>3): New insn.
3919 (*p9_vadu<mode>3): New insn.
3920 * config/rs6000/rs6000-builtin.def (vadub): New built-in
3921 definition.
3922 (vaduh): New built-in definition.
3923 (vaduw): New built-in definition.
3924 (vadu): New overloaded built-in definition.
3925 (vadub): New overloaded built-in definition.
3926 (vaduh): New overloaded built-in definition.
3927 (vaduw): New overloaded built-in definition.
3928 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3929 overloaded vector absolute difference unsigned functions.
3930 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3931 the ISA 3.0 vector absolute difference unsigned built-in functions.
3932
3933 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
3934
3935 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3936 update shared_lookup_references only once after changing operands.
3937
3938 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
3939
3940 PR middle-end/71373
3941 * tree-nested.c (convert_nonlocal_omp_clauses)
3942 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3943
3944 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3945 * tree.def (CASE_LABEL_EXPR): Likewise.
3946
3947 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
3948
3949 PR bootstrap/71481
3950 * input.c (test_builtins): Fix an assertion.
3951
3952 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3953
3954 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3955 (paritysi2): Ditto.
3956 (isinfxf2): Ditto.
3957 (isinf<mode>2): Ditto.
3958
3959 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
3960
3961 * ggc-tests.c (test_finalization): Only test need_finalization_p
3962 for GCC_VERSION >= 4003.
3963
3964 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3965
3966 * config/s390/vecintrin.h: Fix file description in comment.
3967
3968 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3969
3970 * config/s390/s390-builtin-types.def: Change builtin type naming
3971 scheme to match builtin-types.def.
3972
3973 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
3974
3975 * fold-const.c (optimize_minmax_comparison): Remove.
3976 (fold_comparison): Remove call to the above.
3977 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3978 New transformations.
3979
3980 2016-06-13 Alan Hayward <alan.hayward@arm.com>
3981
3982 PR tree-optimization/71416
3983 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3984 multiple entries
3985
3986 2016-06-13 Martin Liska <mliska@suse.cz>
3987
3988 * predict.c (enum predictor_reason): Prefix enum with REASON_.
3989 (combine_predictions_for_insn): Likewise.
3990 (prune_predictions_for_bb): Likewise.
3991 (combine_predictions_for_bb): Likewise.
3992
3993 2016-06-13 Richard Biener <rguenther@suse.de>
3994
3995 PR tree-optimization/71505
3996 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3997 assert match comment.
3998
3999 2016-06-13 Marek Polacek <polacek@redhat.com>
4000
4001 PR middle-end/71476
4002 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
4003 gimplify_switch_expr.
4004 (warn_switch_unreachable_r): New function.
4005
4006 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4007
4008 PR target/71379
4009 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
4010 one.
4011
4012 2016-06-13 Richard Biener <rguenther@suse.de>
4013
4014 PR middle-end/64516
4015 * fold-const.c (fold_unary_loc): Preserve alignment when
4016 folding a VIEW_CONVERT_EXPR into a MEM_REF.
4017
4018 2016-06-13 Martin Liska <mliska@suse.cz>
4019
4020 PR sanitizer/71458
4021 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
4022 w/ -fsanitize=bounds.
4023
4024 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4025
4026 * config/i386/i386.c (ix86_init_builtins): Calculate
4027 FLOAT128_FTYPE_CONST_STRING function type only once.
4028 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
4029 built-in functions are available for x86-32 and x86-64 targets.
4030
4031 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
4032
4033 PR target/71241
4034 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4035 New primitive type.
4036 (FLOAT128_FTYPE_CONST_STRING): New function type.
4037 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4038 [IX86_BUILTIN_NANSQ]: Ditto.
4039 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4040 (ix86_init_builtin_types): Declare const_string_type_node.
4041 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4042 builtin functions.
4043 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4044 * doc/extend.texi (x86 Built-in Functions): Document
4045 __builtin_nanq and __builtin_nansq.
4046
4047 2016-06-11 Jiong Wang <jiong.wang@arm.com>
4048
4049 PR target/71061
4050 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4051 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4052 length for pop patterns.
4053 (arm_attr_length_push_multi): Update comments.
4054 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4055 attribute.
4056 (*pop_multiple_with_writeback_and_return): Likewise.
4057 (*pop_multiple_with_return): Likewise.
4058
4059 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
4060
4061 PR middle-end/71310
4062 * fold-const.c (optimize_bit_field_compare): Don't try to use
4063 word_mode unconditionally for reading the bit field, look at
4064 DECL_BIT_FIELD_REPRESENTATIVE instead.
4065
4066 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4067
4068 PR middle-end/71478
4069 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4070 vector integer type.
4071
4072 2016-06-10 Jakub Jelinek <jakub@redhat.com>
4073
4074 PR middle-end/71494
4075 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4076 without LABEL_DECL, set *handled_ops_p to false instead of true.
4077
4078 2016-06-10 Martin Sebor <msebor@redhat.com>
4079
4080 PR c/71392
4081 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4082 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4083 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4084 them.
4085 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4086 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4087 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4088 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4089 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4090 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4091 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4092 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4093
4094 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4095
4096 * config/arm/arm.h (pool_vector_label,
4097 return_used_this_function): Remove.
4098
4099 2016-06-10 Jeff Law <law@redhat.com>
4100
4101 PR tree-optimization/71335
4102 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4103 zero length paths here.
4104 (convert_and_register_jump_thread_path): Remove hacks related to
4105 duplicated blocks in the jump thread path.
4106 (fsm_find_control_statement_thread_paths): Avoid putting the same
4107 block on the thread path twice, but ensure the thread path is
4108 unchanged from the caller's point of view.
4109
4110 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4111
4112 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4113 * predict.def (PRED_LOOP_BRANCH): Remove.
4114
4115 2016-06-10 David Malcolm <dmalcolm@redhat.com>
4116
4117 * Makefile.in (OBJS): Add ggc-tests.o.
4118 (GTFILES): Add ggc-tests.c.
4119 * ggc-tests.c: New file.
4120 * selftest-run-tests.c (selftest::run_tests): Call
4121 selftest::ggc_tests_c_tests.
4122 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4123
4124 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
4125
4126 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4127
4128 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
4129
4130 PR sanitizer/71480
4131 * varasm.c (place_block_symbol): Adjust alignment for asan protected
4132 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4133
4134 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
4135
4136 * profile.c: Include cfgloop.h.
4137 (branch_prob): Compute estimated number of iterations.
4138 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4139 recompute estimate number of iterations from profile.
4140
4141 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4142
4143 PR inline-asm/68843
4144 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4145 must be grouped on top of stack. Don't force early clobber
4146 on ordinary reg outputs.
4147
4148 2016-06-10 Richard Biener <rguenther@suse.de>
4149
4150 * targhooks.c (default_builtin_vectorization_cost): Adjust
4151 vec_construct cost.
4152
4153 2016-06-10 Richard Biener <rguenther@suse.de>
4154
4155 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4156 to fold the RHS to a constant if possible.
4157
4158 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4159
4160 PR middle-end/71373
4161 * tree-nested.c (convert_nonlocal_omp_clauses)
4162 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4163 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4164 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4165
4166 * gimplify.c (gimplify_adjust_omp_clauses): Discard
4167 OMP_CLAUSE_TILE.
4168 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4169
4170 * omp-low.c (scan_sharing_clauses): Don't expect
4171 OMP_CLAUSE__CACHE_.
4172
4173 2016-06-10 Alan Hayward <alan.hayward@arm.com>
4174
4175 PR tree-optimization/71407
4176 PR tree-optimization/71416
4177 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4178 BIT_FIELD_REF type.
4179
4180 2016-06-10 Richard Biener <rguenther@suse.de>
4181
4182 PR middle-end/71477
4183 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4184
4185 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4186
4187 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4188
4189 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
4190 Jiong Wang <jiong.wang@arm.com>
4191
4192 PR rtl-optimization/70751
4193 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4194 spilled into memory.
4195
4196 2016-06-09 Jonathan Yong <10walls@gmail.com>
4197
4198 Revert:
4199 2015-09-21 Jonathan Yong <10walls@gmail.com>
4200
4201 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4202 sysroot/usr/lib/32api for additional win32 libraries,
4203 fixes failing Cygwin bootstrapping.
4204
4205 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
4206
4207 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4208 Delete.
4209
4210 2016-06-09 David Malcolm <dmalcolm@redhat.com>
4211
4212 PR bootstrap/71471
4213 * pretty-print.c (pp_indent): Specify that %p is printed in a
4214 host-dependent manner.
4215 (test_pp_format): Remove the test for %p.
4216
4217 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
4218
4219 * config/mips/mips.c (mips_output_jump): Fix formatting.
4220
4221 2016-06-09 Richard Biener <rguenther@suse.de>
4222
4223 PR tree-optimization/71462
4224 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4225 removed blocks.
4226
4227 2016-06-09 Martin Liska <mliska@suse.cz>
4228
4229 * predict.c (dump_prediction): Add new argument.
4230 (enum predictor_reason): New enum.
4231 (struct predictor_hash): New struct.
4232 (predictor_hash::hash): New function.
4233 (predictor_hash::equal): Likewise.
4234 (not_removed_prediction_p): New function.
4235 (prune_predictions_for_bb): Likewise.
4236 (combine_predictions_for_bb): Prune predictions.
4237
4238 2016-06-09 Martin Liska <mliska@suse.cz>
4239
4240 * predict.c (filter_predictions): New function.
4241 (remove_predictions_associated_with_edge): Use the filter
4242 function.
4243 (equal_edge_p): New function.
4244
4245 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
4246
4247 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4248 Correct usage of @samp vs @option, add @samp where appropriate.
4249 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4250 Add armv6s-m and document it, as it is no official ARM name.
4251
4252 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4253
4254 * ifcvt.c (struct noce_if_info): Add transform_name field.
4255 (noce_try_move): Set if_info->transform_name to the function name.
4256 (noce_try_ifelse_collapse): Likewise.
4257 (noce_try_store_flag): Likewise.
4258 (noce_try_inverse_constants): Likewise.
4259 (noce_try_store_flag_constants): Likewise.
4260 (noce_try_addcc): Likewise.
4261 (noce_try_store_flag_mask): Likewise.
4262 (noce_try_cmove): Likewise.
4263 (noce_try_cmove_arith): Likewise.
4264 (noce_try_minmax): Likewise.
4265 (noce_try_abs): Likewise.
4266 (noce_try_sign_mask): Likewise.
4267 (noce_try_bitop): Likewise.
4268 (noce_convert_multiple_sets): Likewise.
4269 (noce_process_if_block): Print if_info->transform_name to
4270 dump_file if transformation succeeded.
4271
4272 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4273
4274 * config/arm/cortex-a57.md (cortex_a57_alu):
4275 Handle csel type.
4276
4277 2016-06-08 Martin Sebor <msebor@redhat.com>
4278 Jakub Jelinek <jakub@redhat.com>
4279
4280 PR c++/70507
4281 PR c/68120
4282 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4283 BUILT_IN_MUL_OVERFLOW_P): New builtins.
4284 * builtins.c: Include gimple-fold.h.
4285 (fold_builtin_arith_overflow): Handle
4286 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4287 (fold_builtin_3): Likewise.
4288 * doc/extend.texi (Integer Overflow Builtins): Document
4289 __builtin_{add,sub,mul}_overflow_p.
4290
4291 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
4292
4293 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4294 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4295
4296 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
4297
4298 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4299 Rewrite, looking one level down for records and arrays.
4300
4301 2016-06-08 David Malcolm <dmalcolm@redhat.com>
4302
4303 * pretty-print.c: Include "selftest.h".
4304 (pp_format): Fix comment.
4305 (identifier_to_locale): Likewise.
4306 (selftest::test_basic_printing): New function.
4307 (selftest::assert_pp_format): New function.
4308 (selftest::test_pp_format): New function.
4309 (selftest::pretty_print_c_tests): New function.
4310 * selftest-run-tests.c (selftest::run_tests): Call
4311 selftest::pretty_print_c_tests.
4312 * selftest.h (pretty_print_c_tests): New declaration.
4313
4314 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4315
4316 * invoke.texi (max-loop-headers-insns): Document.
4317 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4318 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4319 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4320
4321 2016-06-08 Richard Biener <rguenther@suse.de>
4322
4323 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4324 on strided SLP loads and fall back to scalar loads in case
4325 we can't chunk them.
4326
4327 2016-06-08 Richard Biener <rguenther@suse.de>
4328
4329 PR tree-optimization/71452
4330 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4331 type used for the SSA rewrite has enough precision to cover
4332 the dynamic type of the location.
4333
4334 2016-06-08 Jakub Jelinek <jakub@redhat.com>
4335 Richard Biener <rguenther@suse.de>
4336
4337 PR c++/71448
4338 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4339 the same as DECL_P (base0) for indirect_base0. Use equality_code
4340 in one further place.
4341
4342 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
4343
4344 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4345 to one word if the field is known to overlap other words.
4346 (extract_bit_field_1): Likewise.
4347 (store_split_bit_field): Remove compensating code.
4348 (extract_split_bit_field): Likewise.
4349
4350 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
4351
4352 PR debug/71432
4353 PR ada/71413
4354 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4355
4356 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4357
4358 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4359 VDQF.
4360 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4361 (arch64_addpv4sf): Delete.
4362 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4363 "gen_aarch64_addpv4sf".
4364 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
4365 builtin.
4366 (vpadds_f32): Likewise.
4367 (vpaddq_f32): Likewise.
4368 (vpaddq_f64): Likewise.
4369
4370 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4371
4372 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4373 VALLF.
4374 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4375 to VALLF. Rename to "fabd<mode>3".
4376 "*fabd_scalar<mode>3): Delete.
4377 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4378 Use builtin.
4379 (vabdd_f64): Likewise.
4380 (vabd_f32): Likewise.
4381 (vabd_f64): Likewise.
4382 (vabdq_f32): Likewise.
4383 (vabdq_f64): Likewise.
4384
4385 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4386
4387 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4388 VALLF.
4389 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4390 "aarch64_rsqrts<mode>".
4391 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4392 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
4393 builtin.
4394 (vrsqrtsd_f64): Likewise.
4395 (vrsqrts_f32): Likewise.
4396 (vrsqrts_f64): Likewise.
4397 (vrsqrtsq_f32): Likewise.
4398 (vrsqrtsq_f64): Likewise.
4399
4400 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4401
4402 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4403 VALLF.
4404 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4405 "aarch64_rsqrte<mode>".
4406 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4407 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
4408 builtin.
4409 (vrsqrted_f64): Likewise.
4410 (vrsqrte_f32): Likewise.
4411 (vrsqrte_f64): Likewise.
4412 (vrsqrteq_f32): Likewise.
4413 (vrsqrteq_f64): Likewise.
4414
4415 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4416
4417 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4418 (ucvtf): Likewise.
4419 (fcvtzs): Likewise.
4420 (fcvtzu): Likewise.
4421 * config/aarch64/aarch64-simd.md
4422 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4423 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4424 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4425 Use builtin.
4426 (vcvt_n_f32_u32): Likewise.
4427 (vcvt_n_s32_f32): Likewise.
4428 (vcvt_n_u32_f32): Likewise.
4429 (vcvtq_n_f32_s32): Likewise.
4430 (vcvtq_n_f32_u32): Likewise.
4431 (vcvtq_n_f64_s64): Likewise.
4432 (vcvtq_n_f64_u64): Likewise.
4433 (vcvtq_n_s32_f32): Likewise.
4434 (vcvtq_n_s64_f64): Likewise.
4435 (vcvtq_n_u32_f32): Likewise.
4436 (vcvtq_n_u64_f64): Likewise.
4437 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4438 (VSDQ_SDI): Likewise.
4439 (fcvt_target): Support V4DI, V4SI and V2SI.
4440 (FCVT_TARGET): Likewise.
4441
4442 2016-06-08 Jiong Wang <jiong.wang@arm.com>
4443
4444 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4445 (TYPES_BINOP_SUS): Likewise.
4446 (aarch64_simd_builtin_data): Update include file name.
4447 (aarch64_builtins): Likewise.
4448 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4449 for conversion between scalar float-point and fixed-point.
4450 (ucvtf): Likewise.
4451 (fcvtzs): Likewise.
4452 (fcvtzu): Likewise.
4453 * config/aarch64/aarch64.md
4454 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4455 pattern for conversion between scalar float to fixed-pointer.
4456 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4457 (UNSPEC_FCVTZS): New UNSPEC enumeration.
4458 (UNSPEC_FCVTZU): Likewise.
4459 (UNSPEC_SCVTF): Likewise.
4460 (UNSPEC_UCVTF): Likewise.
4461 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4462 Use builtin.
4463 (vcvtd_n_f64_u64): Likewise.
4464 (vcvtd_n_s64_f64): Likewise.
4465 (vcvtd_n_u64_f64): Likewise.
4466 (vcvtd_n_f32_s32): Likewise.
4467 (vcvts_n_f32_u32): Likewise.
4468 (vcvtd_n_s32_f32): Likewise.
4469 (vcvts_n_u32_f32): Likewise.
4470 * config/aarch64/iterators.md (fcvt_target): Support integer to float
4471 mapping.
4472 (FCVT_TARGET): Likewise.
4473 (FCVT_FIXED2F): New iterator.
4474 (FCVT_F2FIXED): Likewise.
4475 (fcvt_fixed_insn): New define_int_attr.
4476
4477 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4478
4479 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4480 some statements was removed.
4481
4482 2016-06-08 Alan Hayward <alan.hayward@arm.com>
4483
4484 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4485 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4486 (vect_can_advance_ivs_p): likewise.
4487 (vect_update_ivs_after_vectorizer): likewise.
4488 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4489 (vect_analyze_scalar_cycles_1): likewise.
4490 (vect_analyze_loop_operations): likewise.
4491 (report_vect_op): likewise.
4492 (vect_is_slp_reduction): likewise.
4493 (vect_is_simple_reduction): likewise.
4494 (get_initial_def_for_induction): likewise.
4495 (vect_transform_loop): likewise.
4496 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4497 (vect_recog_sad_pattern): likewise.
4498 (vect_recog_widen_sum_pattern): likewise.
4499 (vect_recog_widening_pattern): likewise.
4500 (vect_recog_divmod_pattern): likewise.
4501 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4502 (vect_analyze_slp_instance): likewise.
4503 (vect_transform_slp_perm_load): likewise.
4504 (vect_schedule_slp_instance): likewise.
4505
4506 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4507
4508 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4509 (return_prediction): PRED_CONST_RETURN predict return as not taken.
4510 * predict.def (PRED_CONTINUE): Change hitrate 50->67
4511 (PRED_LOOP_BRANCH): Document predictor as broken.
4512 (PRED_LOOP_EXIT): Change hitrate 91->92.
4513 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4514 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4515 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4516 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4517 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4518 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4519 (PRED_CALL): Chane hitrate 71->67.
4520 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4521 (PRED_GOTO): Document as unused right now.
4522 (PRED_CONST_RETURN): Change hitrate 67->69
4523 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4524 (PRED_NULL_RETURN): Change hitrate 91->90.
4525 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4526 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4527 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4528
4529 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
4530
4531 * config/rs6000/altivec.h: Add __builtin_vec_mul.
4532 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4533 special case Altivec builtin.
4534 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4535 VSX_BUILTIN_VEC_MUL (replaced with special case code).
4536 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4537 code for ALTIVEC_BUILTIN_VEC_MUL.
4538 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4539 for __builtin_vec_mul.
4540
4541 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
4542
4543 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4544 -mno-htm.
4545
4546 2016-06-07 David Malcolm <dmalcolm@redhat.com>
4547
4548 * spellcheck.c (selftest::test_find_closest_string): New function.
4549 (spellcheck_c_tests): Call the above.
4550
4551 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4552
4553 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4554
4555 2016-06-07 Jakub Jelinek <jakub@redhat.com>
4556
4557 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4558 Yv=Yv,C alternatives.
4559
4560 2016-06-07 Richard Biener <rguenther@suse.de>
4561
4562 PR c/61564
4563 * common.opt (ffast-math): Make Optimization.
4564
4565 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
4566 Prachi Godbole <prachi.godbole@imgtec.com>
4567
4568 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4569 `fabs' and `fneg' type attributes.
4570 (p5600_fpu_fabs): Add `fmove' to the comment.
4571
4572 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
4573
4574 * gimple.c: Include builtins.h
4575 (gimple_inexpensive_call_p): New function.
4576 * gimple.h (gimple_inexpensive_call_p): Declare.
4577 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4578 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4579 fix formatting.
4580
4581 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
4582
4583 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4584 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4585 warning_at_rich_loc, warning_n, pedwarn, permerror,
4586 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4587 sorry, fatal_error, internal_error, internal_error_no_backtrace):
4588 Use the above.
4589
4590 2016-06-07 Richard Biener <rguenther@suse.de>
4591
4592 PR tree-optimization/71428
4593 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4594 BIT_FIELD_REF op vs. load.
4595
4596 2016-06-07 Richard Biener <rguenther@suse.de>
4597
4598 PR middle-end/71423
4599 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4600 for signed ops.
4601
4602 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4603
4604 * config/pa/pa.md (call): Generate indirect long calls to non-local
4605 functions on TARGET_64BIT.
4606 (call_value): Likewise.
4607
4608 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
4609
4610 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4611 pattern and subsequent splitters.
4612 (call_val_reg_64bit_post_reload): Likewise.
4613
4614 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4615
4616 PR middle-end/71408
4617 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4618 propagate_op_to_single_use.
4619
4620 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4621
4622 PR middle-end/71281
4623 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4624
4625 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
4626
4627 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4628 (enum x86_dirflag_state): New enum.
4629 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4630 (machine_function): Remove needs_cld.
4631 (ix86_current_function_needs_cld): Remove.
4632 * config/i386/i386.c (ix86_set_func_type): Set
4633 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4634 (ix86_expand_prologue): Do not emit CLD here.
4635 (ix86_dirflag_mode_needed): New function.
4636 (ix86_dirflag_mode_entry): Ditto.
4637 (ix86_mode_needed): Handle X86_DIRFLAG entity.
4638 (ix86_mode_after): Ditto.
4639 (ix86_mode_entry): Ditto.
4640 (ix86_mode_exit): Ditto.
4641 (ix86_emit_mode_set): Ditto.
4642 * config/i386/i386.md (strmov_singleop): Set
4643 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4644 Do not set ix86_current_function_needs_cld.
4645 (rep_mov): Ditto.
4646 (strset_singleop): Ditto.
4647 (rep_stos): Ditto.
4648 (cmpstrnqi_nz_1): Ditto.
4649 (cmpstrnqi_1): Ditto.
4650 (strlenqi_1): Ditto.
4651
4652 2016-06-06 Jakub Jelinek <jakub@redhat.com>
4653
4654 PR tree-optimization/71259
4655 * tree-vect-slp.c (vect_get_constant_vectors): For
4656 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4657 one for constant op, and use COND_EXPR for non-constant.
4658
4659 2016-06-06 David Malcolm <dmalcolm@redhat.com>
4660
4661 * Makefile.in (OBJS): Add function-tests.o,
4662 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4663 selftest-run-tests.o.
4664 (OBJS-libcommon): Add selftest.o.
4665 (OBJS-libcommon-target): Add selftest.o.
4666 (all.internal): Add "selftest".
4667 (all.cross): Likewise.
4668 (selftest): New phony target.
4669 (s-selftest): New target.
4670 (selftest-gdb): New phony target.
4671 (COLLECT2_OBJS): Add selftest.o.
4672 * bitmap.c: Include "selftest.h".
4673 (selftest::test_gc_alloc): New function.
4674 (selftest::test_set_range): New function.
4675 (selftest::test_clear_bit_in_middle): New function.
4676 (selftest::test_copying): New function.
4677 (selftest::test_bitmap_single_bit_set_p): New function.
4678 (selftest::bitmap_c_tests): New function.
4679 * common.opt (fself-test): New.
4680 * diagnostic-show-locus.c: Include "selftest.h".
4681 (make_range): New function.
4682 (test_range_contains_point_for_single_point): New function.
4683 (test_range_contains_point_for_single_line): New function.
4684 (test_range_contains_point_for_multiple_lines): New function.
4685 (assert_eq): New function.
4686 (test_get_line_width_without_trailing_whitespace): New function.
4687 (selftest::diagnostic_show_locus_c_tests): New function.
4688 * et-forest.c: Include "selftest.h".
4689 (selftest::test_single_node): New function.
4690 (selftest::test_simple_tree): New function.
4691 (selftest::test_disconnected_nodes): New function.
4692 (selftest::et_forest_c_tests): New function.
4693 * fold-const.c: Include "selftest.h".
4694 (selftest::assert_binop_folds_to_const): New function.
4695 (selftest::assert_binop_folds_to_nonlvalue): New function.
4696 (selftest::test_arithmetic_folding): New function.
4697 (selftest::fold_const_c_tests): New function.
4698 * function-tests.c: New file.
4699 * gimple.c: Include "selftest.h".
4700 Include "gimple-pretty-print.h".
4701 (selftest::verify_gimple_pp): New function.
4702 (selftest::test_assign_single): New function.
4703 (selftest::test_assign_binop): New function.
4704 (selftest::test_nop_stmt): New function.
4705 (selftest::test_return_stmt): New function.
4706 (selftest::test_return_without_value): New function.
4707 (selftest::gimple_c_tests): New function.
4708 * hash-map-tests.c: New file.
4709 * hash-set-tests.c: New file.
4710 * input.c: Include "selftest.h".
4711 (selftest::assert_loceq): New function.
4712 (selftest::test_accessing_ordinary_linemaps): New function.
4713 (selftest::test_unknown_location): New function.
4714 (selftest::test_builtins): New function.
4715 (selftest::test_reading_source_line): New function.
4716 (selftest::input_c_tests): New function.
4717 * rtl-tests.c: New file.
4718 * selftest-run-tests.c: New file.
4719 * selftest.c: New file.
4720 * selftest.h: New file.
4721 * spellcheck.c: Include "selftest.h".
4722 (selftest::levenshtein_distance_unit_test_oneway): New function,
4723 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4724 (selftest::levenshtein_distance_unit_test): Likewise.
4725 (selftest::spellcheck_c_tests): Likewise.
4726 * toplev.c: Include selftest.h.
4727 (toplev::run_self_tests): New.
4728 (toplev::main): Handle -fself-test.
4729 * toplev.h (toplev::run_self_tests): New.
4730 * tree.c: Include "selftest.h".
4731 (selftest::test_integer_constants): New function.
4732 (selftest::test_identifiers): New function.
4733 (selftest::test_labels): New function.
4734 (selftest::tree_c_tests): New function.
4735 * tree-cfg.c: Include "selftest.h".
4736 (selftest::push_fndecl): New function.
4737 (selftest::test_linear_chain): New function.
4738 (selftest::test_diamond): New function.
4739 (selftest::test_fully_connected): New function.
4740 (selftest::tree_cfg_c_tests): New function.
4741 * vec.c: Include "selftest.h".
4742 (selftest::safe_push_range): New function.
4743 (selftest::test_quick_push): New function.
4744 (selftest::test_safe_push): New function.
4745 (selftest::test_truncate): New function.
4746 (selftest::test_safe_grow_cleared): New function.
4747 (selftest::test_pop): New function.
4748 (selftest::test_safe_insert): New function.
4749 (selftest::test_ordered_remove): New function.
4750 (selftest::test_unordered_remove): New function.
4751 (selftest::test_block_remove): New function.
4752 (selftest::reverse_cmp): New function.
4753 (selftest::test_qsort): New function.
4754 (selftest::vec_c_tests): New function.c.
4755 * wide-int.cc: Include selftest.h and wide-int-print.h.
4756 (selftest::from_int <wide_int>): New function.
4757 (selftest::from_int <offset_int>): New function.
4758 (selftest::from_int <widest_int>): New function.
4759 (selftest::assert_deceq): New function.
4760 (selftest::assert_hexeq): New function.
4761 (selftest::test_printing <VALUE_TYPE>): New function template.
4762 (selftest::test_ops <VALUE_TYPE>): New function template.
4763 (selftest::test_comparisons <VALUE_TYPE>): New function template.
4764 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4765 template.
4766 (selftest::wide_int_cc_tests): New function.
4767
4768 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4769
4770 PR middle-end/37780
4771 * ifcvt.c (noce_try_ifelse_collapse): New function.
4772 Declare prototype.
4773 (noce_process_if_block): Call noce_try_ifelse_collapse.
4774 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4775 (simplify_ternary_operation): Use the above to simplify
4776 conditional CLZ/CTZ expressions.
4777
4778 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4779
4780 PR middle-end/37780
4781 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4782 define_insn_and_split.
4783
4784 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4785
4786 PR middle-end/37780
4787 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4788
4789 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
4790
4791 PR c/24414
4792 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4793 Implicitly clobber memory for basic asm with non-empty assembler
4794 string. Use targetm.md_asm_adjust also here.
4795 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4796 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4797 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4798 non-empty assembler string.
4799 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4800 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4801 (decode_asm_operands): Handle basic asm in PARALLEL block.
4802 (extract_insn): Handle basic asm in PARALLEL block.
4803 * doc/extend.texi: Mention new behavior of basic asm.
4804 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4805 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4806 branch_needs_nop_p): Use asm_noperands.
4807
4808 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4809
4810 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4811 Include the M7 SPARC DFA scheduler.
4812 New attribute v3pipe.
4813 Annotate insns with v3pipe where appropriate.
4814 Define cpu_feature vis4.
4815 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4816 Add (V8QI "8") to vbits.
4817 Add insns {add,sub}v8qi3
4818 Add insns ss{add,sub}v8qi3
4819 Add insns us{add,sub}{v8qi,v4hi}3
4820 Add insns {min,max}{v8qi,v4hi,v2si}3
4821 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4822 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4823 * config/sparc/niagara4.md: Add a comment explaining the
4824 discrepancy between the documented latenty numbers and the
4825 implemented ones.
4826 * config/sparc/niagara7.md: New file.
4827 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4828 supports SPARC5 and VIS 4.0 instructions.
4829 * configure: Regenerate.
4830 * config.in: Likewise.
4831 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4832 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4833 TARGET_CPU_niagara7.
4834 (ASM_CPU64_DEFAULT_SPEC): Likewise.
4835 (CPP_CPU_SPEC): Handle niagara7.
4836 (ASM_CPU_SPEC): Likewise.
4837 * config/sparc/sparc-opts.h (processor_type): Add
4838 PROCESSOR_NIAGARA7.
4839 (mvis4): New option.
4840 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4841 (AS_NIAGARA7_FLAG): Define.
4842 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4843 (CPP_CPU64_DEFAULT_SPEC): Likewise.
4844 (CPP_CPU_SPEC): Handle niagara7.
4845 (ASM_CPU_SPEC): Likewise.
4846 * config/sparc/sparc.c (niagara7_costs): Define.
4847 (sparc_option_override): Handle niagara7 and adjust cache-related
4848 parameters with better values for niagara cpus. Also support VIS4.
4849 (sparc32_initialize_trampoline): Likewise.
4850 (sparc_use_sched_lookahead): Likewise.
4851 (sparc_issue_rate): Likewise.
4852 (sparc_register_move_cost): Likewise.
4853 (dump_target_flag_bits): Support VIS4.
4854 (sparc_vis_init_builtins): Likewise.
4855 (sparc_builtins): Likewise.
4856 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4857 VIS4 4.0.
4858 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4859 UltraSparc M7.
4860 * config/sparc/sparc.opt (sparc_processor_type): New value
4861 niagara7.
4862 * config/sparc/visintrin.h (__attribute__): Prototypes for the
4863 VIS4 builtins.
4864 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4865 -mvis4.
4866 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4867 VIS4 builtins.
4868
4869 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
4870
4871 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4872
4873 2016-06-06 Richard Biener <rguenther@suse.de>
4874
4875 PR tree-optimization/71398
4876 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4877 remove edges.
4878
4879 2016-06-05 James Bowman <james.bowman@ftdichip.com>
4880
4881 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4882 ft32_expand_prolog, ft32_expand_epilogue):
4883 Handle pretend_args.
4884 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4885 * config/ft32/ft32.md: Add pretend_returner.
4886
4887 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
4888
4889 PR target/71389
4890 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4891 Copy op1 RTX to avoid invalid sharing.
4892 (ix86_expand_vector_move_misalign): Ditto.
4893
4894 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
4895
4896 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4897 ATTRIBUTE_UNUSED.
4898
4899 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4900
4901 * predict.c (predicted_by_loop_heuristics_p): New function.
4902 (predict_iv_comparison): Use it.
4903 (predict_loops): Walk from innermost loops; do not predict edges
4904 leaving multiple loops multiple times; implement
4905 PRED_LOOP_ITERATIONS_MAX heuristics.
4906 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4907
4908 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
4909
4910 * cfg.c (check_bb_profile): Do not report mismatched profiles when
4911 only edges out of BB are EH edges.
4912
4913 2016-06-04 Martin Sebor <msebor@redhat.com>
4914 Marcin Baczyński <marbacz@gmail.com>
4915
4916 PR c/48116
4917 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4918 a void expression in a void function.
4919
4920 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4921
4922 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4923 aux; dump reasons of decisions.
4924 (should_duplicate_loop_header_p): Likewise.
4925 (do_while_loop_p): Likewise.
4926 (ch_base::copy_headers): Dump asi num insns duplicated.
4927
4928 2016-06-04 Jakub Jelinek <jakub@redhat.com>
4929
4930 PR tree-optimization/71405
4931 * tree-ssa.c (execute_update_addresses_taken): For clobber with
4932 incompatible type, build a new clobber with the right type instead
4933 of building a VIEW_CONVERT_EXPR around it.
4934
4935 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4936
4937 PR tree-optimization/52171
4938 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4939 by_pieces_ninsns instead of move_by_pieces_ninsns.
4940
4941 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
4942
4943 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4944 for reg+reg addressing mode.
4945
4946 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4947
4948 * rs6000-c.c (c/c-tree.h): Add #include.
4949 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4950 in C++ when found in the base position of vec_ld or vec_st.
4951
4952 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
4953
4954 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4955 use of profile unless profile status is PROFILE_READ.
4956 * profile.c (compute_branch_probabilities): Set profile status
4957 only after reporting predictor hitrates.
4958
4959 2016-06-03 Joseph Myers <joseph@codesourcery.com>
4960
4961 PR target/71276
4962 PR target/71277
4963 * common.opt (ffp-int-builtin-inexact): New option.
4964 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4965 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4966 (ceil@var{m}2): Document dependence on this option.
4967 * ipa-inline-transform.c (inline_call): Handle
4968 flag_fp_int_builtin_inexact.
4969 * ipa-inline.c (can_inline_edge_p): Likewise.
4970 * config/i386/i386.md (rintxf2): Do not test
4971 flag_unsafe_math_optimizations.
4972 (rint<mode>2_frndint): New define_insn.
4973 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4974 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
4975 for 387 instead of extending and truncating.
4976 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4977 !flag_trapping_math instead of flag_unsafe_math_optimizations.
4978 Change to frndint<mode>2_<rounding>.
4979 (frndintxf2_<rounding>_i387): Likewise. Change to
4980 frndint<mode>2_<rounding>_i387.
4981 (<rounding_insn>xf2): Likewise.
4982 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4983 !flag_trapping_math instead of flag_unsafe_math_optimizations for
4984 x87. Test TARGET_ROUND || !flag_trapping_math ||
4985 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4986 SSE. Use ROUND_NO_EXC in constant operand of
4987 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
4988 for 387 instead of extending and truncating.
4989
4990 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
4991 Julia Koval <julia.koval@intel.com>
4992
4993 PR target/66960
4994 PR target/67630
4995 PR target/67634
4996 PR target/67841
4997 PR target/68037
4998 PR target/68618
4999 PR target/68661
5000 PR target/69575
5001 PR target/69596
5002 PR target/69734
5003 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
5004 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
5005 all registers, except for function return registers if there are
5006 no caller-saved registers.
5007 (ix86_set_func_type): New function.
5008 (ix86_set_current_function): Call ix86_set_func_type to set
5009 no_caller_saved_registers and func_type. Call reinit_regs if
5010 caller-saved registers are changed. Don't allow MPX, SSE, MMX
5011 nor x87 instructions in interrupt handler nor function with
5012 no_caller_saved_registers attribute.
5013 (ix86_function_ok_for_sibcall): Return false if there are no
5014 caller-saved registers.
5015 (type_natural_mode): Don't warn ABI change for MMX in interrupt
5016 handler.
5017 (ix86_function_arg_advance): Skip for callee in interrupt handler.
5018 (ix86_function_arg): Return special arguments in interrupt handler.
5019 (ix86_promote_function_mode): Promote pointer to word_mode only
5020 for normal functions.
5021 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
5022 interrupt handler.
5023 (ix86_epilogue_uses): New function.
5024 (ix86_hard_regno_scratch_ok): Likewise.
5025 (ix86_save_reg): Preserve all registers in interrupt handler
5026 after reload. Preserve all registers, except for function return
5027 registers, if there are no caller-saved registers after reload.
5028 (find_drap_reg): Always use callee-saved register if there are
5029 no caller-saved registers.
5030 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5031 for interrupt handler.
5032 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5033 Emit cld instruction if stringops are used in interrupt handler
5034 or interrupt handler isn't a leaf function.
5035 (ix86_expand_epilogue): Generate interrupt return for interrupt
5036 handler and pop the 'ERROR_CODE' off the stack before interrupt
5037 return in exception handler.
5038 (ix86_expand_call): Disallow calling interrupt handler directly.
5039 If there are no caller-saved registers, mark all registers that
5040 are clobbered by the call which returns as clobbered.
5041 (ix86_handle_no_caller_saved_registers_attribute): New function.
5042 (ix86_handle_interrupt_attribute): Likewise.
5043 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5044 attributes.
5045 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5046 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5047 accumulation in interrupt function if stack may be realigned to
5048 avoid DRAP.
5049 (EPILOGUE_USES): New.
5050 (function_type): New enum.
5051 (machine_function): Add func_type and no_caller_saved_registers.
5052 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5053 (interrupt_return): New pattern.
5054 * doc/extend.texi: Document x86 interrupt and
5055 no_caller_saved_registers attributes.
5056
5057 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
5058
5059 PR tree-optimization/52171
5060 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5061 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
5062 Look for constant strings. Move some code to emit_block_cmp_hints
5063 and use it.
5064 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5065 * defaults.h (COMPARE_MAX_PIECES): New macro.
5066 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5067 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5068 (clear_by_pieces_1): Don't declare. Move definition before use.
5069 (can_do_by_pieces): New static function.
5070 (can_move_by_pieces): Use it. Return bool.
5071 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
5072 OP. All callers changed. Handle COMPARE_BY_PIECES.
5073 (class pieces_addr); New.
5074 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5075 pieces_addr::adjust, pieces_addr::increment_address,
5076 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5077 functions for it.
5078 (class op_by_pieces_d): New.
5079 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5080 functions for it.
5081 (class move_by_pieces_d, class compare_by_pieces_d,
5082 class store_by_pieces_d): New subclasses of op_by_pieces_d.
5083 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5084 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5085 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5086 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5087 compare_by_pieces_d::finish_mode): New member functions.
5088 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5089 functions.
5090 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5091 (emit_block_cmp_hints): New function.
5092 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5093 use the newly defined classes.
5094 * expr.h (by_pieces_constfn): New typedef.
5095 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5096 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5097 (move_by_pieces_ninsns): Don't declare.
5098 (can_move_by_pieces): Change return value to bool.
5099 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5100 (compare_by_pieces_branch_ratio): New hook.
5101 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5102 (by_pieces_ninsns): Declare.
5103 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5104 COMPARE_BY_PIECES.
5105 (default_compare_by_pieces_branch_ratio): New function.
5106 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5107 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5108 * doc/tm.texi: Regenerate.
5109 * tree-ssa-strlen.c: Include "builtins.h".
5110 (handle_builtin_memcmp): New static function.
5111 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5112 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5113
5114 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5115
5116 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5117 relevant stmts which are simple and invariant.
5118 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5119 instead of simple and invariant
5120
5121 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5122
5123 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5124 (vectorizable_reduction): Check for new relevant state.
5125 (vectorizable_live_operation): vectorize live stmts using
5126 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
5127 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5128 (vect_stmt_relevant_p): Check for stmts which are only used live.
5129 (process_use): Use of a stmt does not inherit it's live value.
5130 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5131 (vect_analyze_stmt): Check for new relevant state.
5132 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5133 outside the loop, but not inside it.
5134
5135 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5136
5137 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5138 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5139 (vect_get_vec_def_for_operand): Split out code.
5140
5141 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
5142
5143 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5144
5145 2016-06-03 Alan Hayward <alan.hayward@arm.com>
5146
5147 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5148
5149 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5150
5151 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5152
5153 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5154
5155 PR middle-end/71387
5156 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5157 to noreturn e->callee->decl that has void return type and void
5158 arguments, adjust gimple_call_fntype and remove lhs even if it had
5159 previously addressable type.
5160
5161 2016-06-02 Jeff Law <law@redhat.com>
5162
5163 PR tree-optimization/71328
5164 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5165 error when checking for a jump back onto the copied path.
5166
5167 2016-06-02 David Malcolm <dmalcolm@redhat.com>
5168
5169 * config/microblaze/microblaze.c (get_branch_target): Add return
5170 NULL_RTX for the non-CALL_P case.
5171 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5172 (insert_wic): Remove unused local "j".
5173
5174 2016-06-02 Martin Liska <mliska@suse.cz>
5175
5176 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5177
5178 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
5179 Julia Koval <julia.koval@intel.com>
5180
5181 * function.c (assign_parm_setup_stack): Force source into a
5182 register if needed.
5183 * target.def (function_incoming_arg): Update documentation to
5184 allow arbitrary address computation based on hard register.
5185 * doc/tm.texi: Regenerated.
5186
5187 2016-06-02 Martin Liska <mliska@suse.cz>
5188
5189 * predict.c (combine_predictions_for_bb): Fix first match in
5190 cases where a first predictor contains more than one occurence
5191 in list of predictors. Take the best value in such case.
5192
5193 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5194
5195 PR rtl-optimization/71295
5196 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5197 offset would go over the size of the inner mode reject it.
5198
5199 2016-06-02 Jakub Jelinek <jakub@redhat.com>
5200
5201 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5202 x=x,x and v=v,m instead of x=x,m.
5203
5204 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5205 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
5206 alternative to v=rm,C.
5207
5208 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5209 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
5210 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
5211 instead of vex for the last two above mentioned alternatives.
5212
5213 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5214
5215 PR target/70830
5216 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5217
5218 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
5219
5220 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5221
5222 2016-06-01 David Malcolm <dmalcolm@redhat.com>
5223
5224 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5225 from int to unsigned.
5226
5227 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5228
5229 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5230 alternatives, eliminating preferred register class. Add support
5231 for the MTVSRDD instruction in ISA 3.0.
5232 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5233 reg_or_indexed_operand.
5234 (vsx_splat_v4sf_internal): Likewise.
5235
5236 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5237
5238 PR target/71186
5239 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5240 for loading up all 0's or all 1's.
5241
5242 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
5243
5244 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5245
5246 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
5247
5248 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5249 extension.
5250 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5251 * gcc.c (set_source_date_epoch_envvar): New function, sets
5252 the SOURCE_DATE_EPOCH environment variable to the current time.
5253
5254 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5255
5256 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5257 the factor for live Phi nodes.
5258
5259 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5260
5261 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5262 * tree-parloops.c (parallelize_loops): likewise.
5263 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5264 tree_unswitch_outer_loop): likewise.
5265
5266 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5267
5268 PR middle-end/71371
5269 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5270 around creation of the temporary.
5271
5272 2016-06-01 Richard Biener <rguenther@suse.de>
5273
5274 PR tree-optimization/71366
5275 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5276 (unloop_loops): Move removing edges here ...
5277 (try_unroll_loop_completely): ... from here.
5278 (try_peel_loop): ... and here.
5279 (tree_unroll_loops_completely_1): Track parent loops via
5280 bitmap of header BBs.
5281 (tree_unroll_loops_completely): Adjust for that.
5282
5283 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
5284
5285 * config/rs6000/altivec.h (vec_slv): New macro.
5286 (vec_srv): New macro.
5287 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5288 (UNSPEC_VSRV): New value.
5289 (vslv): New insn.
5290 (vsrv): New insn.
5291 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5292 (vsrv): New builtin definition.
5293 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5294 define argument types for new builtin.
5295 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5296 new builtin.
5297 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5298 functions.
5299
5300 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5301 Jocelyn Mayer <l_indien@magic.fr>
5302
5303 PR target/67310
5304 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5305 detect processor family for signature_CENTAUR_ebx.
5306 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5307 signature_CENTAUR_ebx.
5308 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5309 <default>: Pass x86-64 for has_longmode.
5310
5311 2016-06-01 Nathan Sidwell <nathan@acm.org>
5312
5313 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5314 undefined weak.
5315
5316 2016-06-01 Richard Biener <rguenther@suse.de>
5317
5318 PR tree-optimization/71261
5319 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5320 of stmts successfully put in the bool pattern. Remove
5321 single-use restriction.
5322 (adjust_bool_pattern_cast): Add cast at the use site via the
5323 pattern def sequence.
5324 (adjust_bool_pattern): Remove recursion, maintain a hash-map
5325 of patterned defs. Use the pattern def seqence instead of
5326 multiple independent patterns.
5327 (sort_after_uid): New qsort compare function.
5328 (adjust_bool_stmts): New function to process stmts in the bool
5329 pattern in IL order.
5330 (vect_recog_bool_pattern): Adjust.
5331 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5332 (ifcvt_walk_pattern_tree): Likewise.
5333 (stmt_is_root_of_bool_pattern): Likewise.
5334 (ifcvt_repair_bool_pattern): Likewise.
5335 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5336
5337 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
5338
5339 * loop-unroll.c (decide_unroll_constant_iterations,
5340 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5341 likely upper bounds.
5342 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5343
5344 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
5345
5346 * tree-core.h (enum omp_clause_code): Remove
5347 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
5348
5349 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5350
5351 * config/arm/sync.md (arm_store_exclusive<mode>):
5352 Use 'H' output modifier on operands[2] rather than creating a new
5353 entry in out-of-bounds memory of the operands array.
5354 (arm_store_release_exclusivedi): Likewise.
5355
5356 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5357
5358 * config/arm/arm.c (arm_fusion_enabled_p): New function.
5359 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5360 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5361 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5362
5363 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5364
5365 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5366 into account live statements for mask producers.
5367
5368 2016-06-01 Richard Biener <rguenther@suse.de>
5369
5370 PR tree-optimization/71311
5371 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5372 restrict to non-INTEGER_CST @0.
5373
5374 2016-06-01 Richard Biener <rguenther@suse.de>
5375
5376 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5377 (relational patterns): Use :c to avoid pattern duplications.
5378
5379 2016-06-01 Richard Biener <rguenther@suse.de>
5380
5381 * genmatch.c (comparison_code_p): New predicate.
5382 (swap_tree_comparison): New function.
5383 (commutate): Add for_vec parameter to append new for entries.
5384 Support commutating relational operators by swapping it alongside
5385 operands.
5386 (lower_commutative): Adjust.
5387 (dt_simplify::gen): Do not pass artificial operators to gen
5388 functions.
5389 (decision_tree::gen): Do not add artificial operators as parameters.
5390 (parser::parse_expr): Verify operator commutativity when :c is
5391 applied. Allow :C to override this.
5392 * match.pd: Adjust patterns to use :C instead of :c where required.
5393
5394 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
5395
5396 PR tree-optimization/71077
5397 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5398 the combining step, use boolean_false_node and boolean_true_node
5399 as the designated false/true return values.
5400
5401 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5402
5403 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5404 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5405 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5406 PRED_LOOP_EXIT.
5407
5408 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5409
5410 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5411 of flags impliying the register renaming.
5412 * toplev.c (process_options): Do not imply flag_rename_registers with
5413 loop peeling.
5414
5415 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5416
5417 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5418 default implementation.
5419
5420 2016-05-31 Nathan Sidwell <nathan@acm.org>
5421
5422 * dwarf2out.c (cur_line_info_table): Add GTY marker.
5423
5424 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5425
5426 * config/sh/constraints.md (b): Remove constraint.
5427 * config/sh/predicates.md (arith_reg_operand): Remove
5428 TARGET_REGISTER_P.
5429 * config/sh/sh-modes.def (PDI): Remove.
5430 * config/sh/sh.c (sh_target_reg_class,
5431 sh_optimize_target_register_callee_saved): Remove functions.
5432 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5433 (sh_expand_epilogue): Update comment.
5434 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5435 sh_secondary_reload): Remove TARGET_REGS related code.
5436 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5437 TARGET_REGISTER_P): Remove macros.
5438 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5439 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5440 TR1_REG, TR2_REG): Remove constants.
5441 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5442
5443 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5444
5445 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5446 define_expand patterns.
5447 (adddi3_compact): Rename to adddi3.
5448 (subdi3_compact): Rename to subdi3.
5449 (*negdi2): Rename to negdi2.
5450 (*abs<mode>2): Rename to abs<mode>2.
5451
5452 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
5453
5454 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5455 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5456 (atomic_sub_fetchsi): ... this new pattern.
5457 (mvtc): Add CC_REG clobber.
5458
5459 2016-05-31 Marek Polacek <polacek@redhat.com>
5460
5461 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5462
5463 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5464
5465 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5466 aarch64_fusion_enabled_p to check for fusion capabilities.
5467
5468 2016-05-31 Richard Biener <rguenther@suse.de>
5469
5470 PR tree-optimization/71352
5471 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5472 minus one and a negate.
5473
5474 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5475
5476 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5477 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5478 Delete prototype.
5479 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5480 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5481 Remove use of aarch64_simd_attr_length_move, set length attribute
5482 directly.
5483 (*aarch64_be_movoi): Likewise.
5484 (*aarch64_be_movci): Likewise.
5485 (*aarch64_be_movxi): Likewise.
5486
5487 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
5488
5489 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5490 It no longer does that.
5491 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5492
5493 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
5494
5495 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5496 attribute __unused__.
5497
5498 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
5499
5500 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5501 * config/arm/arm.c (arm_arch_thumb1): Define.
5502 (arm_option_override): Initialize arm_arch_thumb1.
5503 * config/arm/arm.h (arm_arch_thumb1): Declare.
5504 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5505 support Thumb-1 ISA.
5506
5507 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
5508
5509 PR target/71346
5510 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5511 `Yv' for scalar operand.
5512
5513 2016-05-31 Tom de Vries <tom@codesourcery.com>
5514
5515 PR tree-optimization/69068
5516 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5517 phis with more than two args.
5518
5519 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5520
5521 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5522 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5523 target.
5524
5525 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5526
5527 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5528 tune_64.
5529 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5530 support on SPARC.
5531 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5532 cpu_32, cpu_64, tune_32 and tune_64.
5533 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5534
5535 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
5536
5537 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5538
5539 2016-05-30 Andi Kleen <ak@linux.intel.com>
5540
5541 * auto-profile.c (read_profile): Replace asserts with errors
5542 when file does not exist.
5543 * gcov-io.c (gcov_read_words): Dito.
5544
5545 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5546
5547 * tree-cfg.c (print_loop): Print likely upper bounds.
5548
5549 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5550
5551 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5552 * opts.c (default_options): Enable peel loops at -O3.
5553 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5554 (try_peel_loop): Do not re-peel already peeled loops;
5555 use likely upper bounds; fix profile updating.
5556 (pass_complete_unroll::execute): Initialize peeled_loops.
5557
5558 2016-05-30 Martin Liska <mliska@suse.cz>
5559
5560 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5561 computed costs by frequency of BB they belong to.
5562 (get_scaled_computation_cost_at): New function.
5563
5564 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
5565 Marc Glisse <marc.glisse@inria.fr>
5566
5567 PR tree-optimization/71289
5568 * match.pd (-1 / B < A, A > -1 / B): New transformations.
5569
5570 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5571
5572 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5573
5574 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5575
5576 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5577 for peeled copies; avoid underflow when updating estimates; correctly
5578 scale loop profile.
5579
5580 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5581
5582 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5583 r236875. Corrected oe3 to oe2 as obvious.
5584
5585 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5586
5587 PR middle-end/71269
5588 PR middle-end/71252
5589 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5590 that inserted stmt will not dominate stmts that defines its operand.
5591 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5592 (rewrite_expr_tree_parallel): Likewise.
5593
5594 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
5595
5596 PR middle-end/71252
5597 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5598 all fields including stmt_to_insert are swapped.
5599
5600 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5601
5602 * predict.h (force_edge_cold): Declare.
5603 * predict.c (force_edge_cold): New function.
5604 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5605 updating.
5606 (canonicalize_loop_induction_variables): Fix formating.
5607
5608 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5609
5610 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5611 (visium_expand_copysign): Use gen_int_mode directly.
5612 (visium_compute_frame_size): Minor tweaks.
5613
5614 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
5615
5616 * tree-vect-loop.c (vect_analyze_loop_2): Use
5617 likely_max_stmt_executions_int.
5618
5619 2016-05-30 Tom de Vries <tom@codesourcery.com>
5620
5621 PR tree-optimization/69067
5622 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5623
5624 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
5625
5626 PR target/71245
5627 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5628 New peepholes to remove unneeded fild/fistp pairs.
5629 (define_peephole2 atomic_loaddi_fpu): Ditto.
5630
5631 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5632
5633 * predict.c (maybe_hot_frequency_p): Avoid division.
5634
5635 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
5636
5637 * doc/install.texi: Use https for shop.fsf.org.
5638
5639 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5640
5641 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5642 likely_max_stmt_executions_int.
5643
5644 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5645
5646 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5647 likely_max_stmt_executions_int.
5648
5649 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5650
5651 * profile.c (compute_branch_probabilities): Do not report hitrates
5652 here.
5653 (branch_prob): Report hitrates here.
5654 * predict.c (gimple_predict_edge): Do not assert profile status;
5655 fix formatting issues.
5656
5657 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5658
5659 * predict.c (edge_predicted_by_p): New function.
5660 (predict_paths_for_bb): Do not put multiple predictions of the same type
5661 on one edge.
5662
5663 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5664
5665 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5666 commit.
5667
5668 2016-05-28 Alan Modra <amodra@gmail.com>
5669
5670 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5671
5672 2016-05-28 Alan Modra <amodra@gmail.com>
5673
5674 PR rtl-optimization/71275
5675 * ira.c (ira): Free dominance info.
5676
5677 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
5678
5679 * doc/sourcebuild.texi: New address for upstream Go repository.
5680
5681 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
5682
5683 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5684 (TARGET_ARM_V7M): Likewise.
5685
5686 2016-05-26 Jeff Law <law@redhat.com>
5687
5688 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5689 (thread_across_edge): Remove calls to find_jump_threads_backwards.
5690 * passes.def: Add jump threading passes before DOM/VRP.
5691 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5692 argument to a basic block from an edge. Remove tests which are
5693 handled elsewhere.
5694 (pass_data_thread_jumps, class pass_thread_jumps): New.
5695 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5696 (make_pass_thread_jumps): Likewise.
5697 * tree-pass.h (make_pass_thread_jumps): Declare.
5698
5699 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5700
5701 * config/visium/visium-protos.h (split_double_move): Rename into...
5702 (visium_split_double_move): ...this.
5703 (visium_split_double_add): Declare.
5704 * config/visium/visium.c (split_double_move): Rename into...
5705 (visium_split_double_move): ...this.
5706 (visium_split_double_add): New function.
5707 (visium_expand_copysign): Renumber operands for consistency.
5708 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5709 (DFmode move splitter): Likewise.
5710 (*addi3_insn): Split by means of visium_split_double_add.
5711 (*adddi3_insn_flags): Delete.
5712 (*plus_plus_sltu<subst_arith>): New insn.
5713 (*subdi3_insn): Split by means of visium_split_double_add.
5714 (subdi3_insn_flags): Delete.
5715 (*minus_minus_sltu<subst_arith>): New insn.
5716 (*negdi2_insn): Split by means of visium_split_double_add.
5717 (*negdi2_insn_flags): Delete.
5718
5719 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
5720
5721 * configure.ac: Treat a --with-headers option without argument
5722 the same as the default (i.e. consult sys-include directory).
5723 * configure: Regenerate.
5724
5725 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5726
5727 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5728 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5729 prototype.
5730 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5731 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
5732
5733 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5734
5735 PR target/63596
5736 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5737 tree-stdarg analysis results.
5738 (aarch64_setup_incoming_varargs): Likewise.
5739
5740 2016-05-27 Jiong Wang <jiong.wang@arm.com>
5741
5742 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5743 va_list_gpr_counter_field and va_list_fpr_counter_field.
5744
5745 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
5746
5747 PR67609
5748 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5749 * config/aarch64/aarch64.c
5750 (aarch64_cannot_change_mode_class): Remove function.
5751 * config/aarch64/aarch64-protos.h
5752 (aarch64_cannot_change_mode_class): Remove.
5753
5754 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
5755
5756 * cfgloop.c (record_niter_bound): Record likely upper bounds.
5757 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5758 get_likely_max_loop_iterations_int): New.
5759 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5760 any_likely_upper_bound.
5761 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5762 Declare.
5763 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5764 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5765 upper bound.
5766 (unroll_loop_constant_iterations): Likewise.
5767 (unroll_loop_runtime_iterations): Likewise.
5768 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5769 * lto-streamer-out.c (output_cfg): Likewise.
5770 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5771 bounds.
5772 (canonicalize_loop_induction_variables): Dump likely upper bounds.
5773 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5774 (likely_max_loop_iterations): New.
5775 (likely_max_loop_iterations_int): New.
5776 (likely_max_stmt_executions): New.
5777 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5778 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5779 likely_max_stmt_executions): Declare.
5780
5781 2016-05-27 Marek Polacek <polacek@redhat.com>
5782
5783 PR middle-end/71308
5784 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5785
5786 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5787
5788 * config/s390/s390.md (2x risbg splitters): Use
5789 reg_overlap_mentioned_p instead of rtx_equal_p.
5790
5791 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
5792
5793 * combine.c (make_compound_operation): Take known zero bits into
5794 account when checking for possible zero_extend.
5795
5796 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5797
5798 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5799 Use const_int_operand for operand 2 predicate. Simplify expand code
5800 as a result.
5801
5802 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5803
5804 PR middle-end/71279
5805 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5806 into comparison.
5807
5808 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5809
5810 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5811 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5812 that returns CC_SESWPmode and CC_ZESWPmode.
5813 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5814 and CC_SESWPmode.
5815 (aarch64_rtx_costs): Likewise.
5816
5817 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5818
5819 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5820 for ISA 3.0 min/max support.
5821 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5822 conditional move support.
5823 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5824 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5825 available.
5826 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5827 conditional moves where the comparison type is different from move
5828 type.
5829 (fp_minmax): New code iterator for smin/smax.
5830 (minmax): New code attributes for min/max.
5831 (SMINMAX): Likewise.
5832 (smax<mode>3): Combine min, max insns into one insn using the
5833 fp_minmax code iterator. Add support for ISA 3.0 min/max
5834 instructions that don't need -ffast-math.
5835 (s<minmax><mode>3): Likewise.
5836 (smax<mode>3_vsx): Likewise.
5837 (smin<mode>3): Likewise.
5838 (s<minmax><mode>3_vsx): Likewise.
5839 (smin<mode>3_vsx): Likewise.
5840 (pre-VSX min/max splitters): Likewise.
5841 (s<minmax><mode>3_fpr): Likewise.
5842 (movsfcc): Rewrite floating point conditional moves to combine
5843 SFmode/DFmode into a single insn.
5844 (mov<mode>cc): Likewise.
5845 (movdfcc): Likewise.
5846 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5847 SFDF2 iterators to handle all combinations.
5848 (fseldfsf4): Likewise.
5849 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5850 (fseldfdf4): Likewise.
5851 (fselsfdf4): Likewise.
5852 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5853 comparison instructions that set a 0/-1 mask, and use it for
5854 floating point conditional move via XXSEL.
5855 (fpmask<mode>): Likewise.
5856 (xxsel<mode>): Likewise.
5857 * config/rs6000/predicates.md (min_max_operator): Delete, no
5858 longer used.
5859 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5860 instructions that generate a 0/-1 mask for use with XXSEL.
5861 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5862 say whether floating point min/max is available, either through
5863 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5864 (TARGET_MINMAX_DF): Likewise.
5865
5866 2016-05-27 Alan Modra <amodra@gmail.com>
5867
5868 PR rtl-optimization/71275
5869 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5870 for update_equiv_regs and combine_and_move_insns.
5871
5872 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
5873
5874 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5875 if_then_else or cond RTXes to calculate attribute value.
5876 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5877 <attr "length_immediate>: Ditto.
5878 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5879 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5880 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5881 <attr "type">: Ditto.
5882 <attr "prefix_data16">: Ditto.
5883 <attr "prefix_extra">: Ditto.
5884 <attr "length_immediate">: Ditto.
5885 <attr "prefix">: Ditto.
5886 (vec_set<mode>_0) <attr "isa">: Ditto.
5887 <attr "prefix_extra">: Ditto.
5888 <attr "length_immediate">: Ditto.
5889 <attr "prefix">: Ditto.
5890 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5891 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5892 (sse2_storelpd) <attr "prefix_data16">: Ditto.
5893 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5894 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5895 <attr "length_immediate">: Ditto.
5896 <attr "prefix">: Ditto.
5897 (sse2_movsd) <attr "length_immediate">: Ditto.
5898 <attr "prefix">: Ditto.
5899 (vec_concatv2df) <attr "isa">: Ditto.
5900 <attr "prefix">: Ditto.
5901 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5902 (*vec_extractv2di_1) <attr "isa">: Ditto.
5903 <attr "type">: Ditto.
5904 <attr "length_immediate">: Ditto.
5905 <attr "prefix_rex">: Ditto.
5906 <attr "prefix_extra">: Ditto.
5907 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5908 <attr "prefix_extra">: Ditto.
5909 <attr "length_immediate">: Ditto.
5910 (vec_concatv2di) <attr "isa">: Ditto.
5911 <attr "prefix_extra">: Ditto.
5912 <attr "length_immediate">: Ditto.
5913 <attr "prefix">: Ditto.
5914
5915 2016-05-26 Martin Liska <mliska@suse.cz>
5916
5917 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5918 function.
5919 (operator+): Likewise.
5920 (operator-): Likewise.
5921 (comp_cost::operator+=): Likewise.
5922 (comp_cost::operator-=): Likewise.
5923 (comp_cost::operator/=): Likewise.
5924 (comp_cost::operator*=): Likewise.
5925 (operator<): Likewise.
5926 (operator==): Likewise.
5927 (operator<=): Likewise.
5928 (new_cost): Remove.
5929 (infinite_cost_p): Likewise.
5930 (add_costs): Likewise.
5931 (sub_costs): Likewise.
5932 (compare_costs): Likewise.
5933 (set_group_iv_cost): Use the newly introduced functions.
5934 (get_address_cost): Likewise.
5935 (get_shiftadd_cost): Likewise.
5936 (force_expr_to_var_cost): Likewise.
5937 (split_address_cost): Likewise.
5938 (ptr_difference_cost): Likewise.
5939 (difference_cost): Likewise.
5940 (get_computation_cost_at): Likewise.
5941 (determine_group_iv_cost_generic): Likewise.
5942 (determine_group_iv_cost_address): Likewise.
5943 (determine_group_iv_cost_cond): Likewise.
5944 (autoinc_possible_for_pair): Likewise.
5945 (determine_group_iv_costs): Likewise.
5946 (cheaper_cost_pair): Likewise.
5947 (iv_ca_recount_cost): Likewise.
5948 (iv_ca_set_no_cp): Likewise.
5949 (iv_ca_set_cp): Likewise.
5950 (iv_ca_cost): Likewise.
5951 (iv_ca_new): Likewise.
5952 (iv_ca_dump): Likewise.
5953 (iv_ca_narrow): Likewise.
5954 (iv_ca_prune): Likewise.
5955 (iv_ca_replace): Likewise.
5956 (try_add_cand_for): Likewise.
5957 (try_improve_iv_set): Likewise.
5958 (find_optimal_iv_set): Likewise.
5959
5960 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
5961
5962 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5963 that internal functions will clobber all caller-saved registers.
5964
5965 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5966
5967 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5968 Return a better case_values_threshold when optimizing.
5969
5970 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
5971
5972 * config/aarch64/aarch64-simd.md (aarch64_combinez):
5973 Add ? to integer variant.
5974 (aarch64_combinez_be): Likewise.
5975
5976 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5977
5978 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5979 instead of x constraint.
5980 (vcvtps2ph256<mask_name>): Likewise.
5981
5982 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5983 alternative. Formatting fix.
5984
5985 * config/i386/sse.md
5986 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5987 to ...
5988 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5989 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
5990 maybe_evex prefix instead of vex.
5991 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
5992 EXT_REX_SSE_REG_P (op0) case in the splitter.
5993
5994 2016-05-25 Jeff Law <law@redhat.com>
5995
5996 PR tree-optimization/71272
5997 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5998 Update comments. Add test for empty path.
5999
6000 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6001
6002 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
6003 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
6004 special case builtin.
6005 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6006 code for ALTIVEC_BUILTIN_VEC_CMPNE.
6007 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6008 for __builtin_vec_cmpne.
6009
6010 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
6011
6012 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
6013 redundant test and bail out if the type of the new operand is not
6014 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
6015
6016 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6017
6018 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
6019 (x_ix86_target_flags_explicit): Remove.
6020 * config/i386/i386.c (ix86_function_specific_save): Do not copy
6021 x_ix86_target_flags_explicit.
6022 (ix86_function_specific_restore): Ditto.
6023
6024 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
6025 H.J. Lu <hongjiu.lu@intel.com>
6026
6027 PR target/70738
6028 * common/config/i386/i386-common.c
6029 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6030 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6031 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6032 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6033 (-mgeneral-regs-only): Add new option.
6034 * config/i386/i386.c (ix86_option_override_internal): Don't enable
6035 x87 instructions if only general registers are allowed.
6036 (ix86_target_string): Add ix86_flags argument. Handle additional
6037 flags options through ix86_flags argument. Update all callers.
6038 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6039
6040 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6041
6042 PR rtl-optimization/66940
6043 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6044 decrementing desired_val will not overflow before performing these
6045 operations.
6046
6047 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
6048
6049 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6050 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6051 * config/i386/i386.c (enum ix86_builtins): Add
6052 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6053 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6054 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6055 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6056 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6057 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6058 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6059 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6060 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6061 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6062 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6063 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6064 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6065 __builtin_ia32_cvtps2dq512_mask.
6066 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6067 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6068 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6069 * config/i386/sse.md
6070 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6071 Rename to ...
6072 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6073 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6074 to ...
6075 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6076 (avx512f_vec_pack_sfix_v8df): New define_expand.
6077 (avx512f_roundpd512): Rename to ...
6078 (avx512f_round<castmode>512): ... this. Change iterator.
6079 (avx512f_roundps512_sfix): New define_expand.
6080 (round<mode>2_sfix): Change iterator.
6081
6082 2016-05-25 Nick Clifton <nickc@redhat.com>
6083
6084 * config/msp430/msp430.c (msp430_attr): Produce an error if a
6085 static interrupt handler is detected.
6086 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6087 default linker script.
6088 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6089 the low part of a symbolic pointer.
6090
6091 2016-05-25 Richard Biener <rguenther@suse.de>
6092
6093 PR tree-optimization/71261
6094 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6095 interesting stmt instead of immediate uses when looking
6096 for the use operand to replace.
6097
6098 2016-05-25 Martin Liska <mliska@suse.cz>
6099
6100 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6101
6102 2016-05-25 Richard Biener <rguenther@suse.de>
6103
6104 PR tree-optimization/71264
6105 * tree-vect-stmts.c (vect_init_vector): Properly deal with
6106 vector type val.
6107
6108 2016-05-25 Martin Liska <mliska@suse.cz>
6109
6110 PR tree-optimization/71239
6111 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6112 if DECL_SIZE is NULL.
6113
6114 2016-05-25 Richard Biener <rguenther@suse.de>
6115
6116 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6117 * tree-if-conv.c (pass_data_if_conversion): Use it.
6118
6119 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6120
6121 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6122 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6123 * varpool.c (varpool_node::get_availability): Likewise.
6124
6125 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6126
6127 * config/rs6000/altivec.md (VNEG iterator): New iterator for
6128 VNEGW/VNEGD instructions.
6129 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6130 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6131 support for ISA 3.0 VNEGW/VNEGD instructions.
6132
6133 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
6134
6135 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6136 pointers inside OACC_DATA regions.
6137 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6138 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6139 (gimplify_adjust_omp_clauses): Fix typo in comment.
6140
6141 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6142
6143 * config/rs6000/altivec.md (VParity): New mode iterator for vector
6144 parity built-in functions.
6145 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6146 zeros.
6147 (p9v_parity<mode>2): Likewise.
6148 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6149 parity.
6150 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6151 (parity<mode>2): ISA 3.0 expander for vector parity.
6152 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6153 power9 built-ins.
6154 (BU_P9_64BIT_MISC_0): Likewise.
6155 (BU_P9_MISC_0): Likewise.
6156 (BU_P9V_AV_1): Likewise.
6157 (BU_P9V_AV_2): Likewise.
6158 (BU_P9V_AV_3): Likewise.
6159 (BU_P9V_AV_P): Likewise.
6160 (BU_P9V_VSX_1): Likewise.
6161 (BU_P9V_OVERLOAD_1): Likewise.
6162 (BU_P9V_OVERLOAD_2): Likewise.
6163 (BU_P9V_OVERLOAD_3): Likewise.
6164 (VCTZB): Add vector count trailing zeros support.
6165 (VCTZH): Likewise.
6166 (VCTZW): Likewise.
6167 (VCTZD): Likewise.
6168 (VPRTYBD): Add vector parity support.
6169 (VPRTYBQ): Likewise.
6170 (VPRTYBW): Likewise.
6171 (VCTZ): Add overloaded vector count trailing zeros support.
6172 (VPRTYB): Add overloaded vector parity support.
6173 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6174 overloaded vector count trailing zeros and parity instructions.
6175 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6176 vector parity support.
6177 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6178 trailing zeros support.
6179 (vec_cntlz): Likewise.
6180 (vec_vctzb): Likewise.
6181 (vec_vctzd): Likewise.
6182 (vec_vctzh): Likewise.
6183 (vec_vctzw): Likewise.
6184 (vec_vprtyb): Add ISA 3.0 vector parity support.
6185 (vec_vprtybd): Likewise.
6186 (vec_vprtybw): Likewise.
6187 (vec_vprtybq): Likewise.
6188 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6189 the ISA 3.0 vector count trailing zeros and vector parity built-in
6190 functions.
6191
6192 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6193
6194 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6195 when there is stmt_to_insert.
6196
6197 2016-05-24 Martin Sebor <msebor@redhat.com>
6198
6199 PR c++/71147
6200 * tree.h (complete_or_array_type_p): New inline function.
6201
6202 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6203
6204 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6205 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6206 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6207
6208 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6209 Limit 1st alternative to noavx isa, split 2nd alternative into one
6210 noavx and one avx alternative, use *x and Bm in the former and
6211 x and m in the latter.
6212
6213 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6214 of sse4 for the first alternative, drop %v from the template
6215 and d operand modifier. Split second alternative into one sse4_noavx
6216 and one avx alternative, use *x instead of *v in the former and v
6217 instead of *v in the latter.
6218 (*sse4_1_extractps): Use noavx isa instead of * for the first
6219 alternative, drop %v from the template. Split second alternative into
6220 one noavx and one avx alternative, use *x instead of *v in the
6221 former and v instead of *v in the latter.
6222 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6223 with noavx and the last one with avx.
6224 (sse4_1_phminposuw): Guard first alternative with noavx isa,
6225 split the second one into one noavx and one avx alternative,
6226 use *x and Bm in the former and x and m in the latter one.
6227 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6228 alternatives.
6229
6230 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6231 first two alternatives to noavx, use *x instead of *v in the second
6232 one, add avx alternative without *.
6233 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6234 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6235 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6236
6237 2016-05-24 Jeff Law <law@redhat.com>
6238
6239 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6240 New function, extracted from...
6241 (fsm_find_control_statement_thread_paths): Here. Use the new function.
6242 Allow simple copies and constant initializations in the SSA chain.
6243
6244 2016-05-24 Marek Polacek <polacek@redhat.com>
6245
6246 PR c/71249
6247 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6248 scope.
6249
6250 2016-05-24 Jakub Jelinek <jakub@redhat.com>
6251
6252 PR c++/71257
6253 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6254 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6255 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
6256 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6257 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6258
6259 2016-05-24 Richard Biener <rguenther@suse.de>
6260
6261 PR tree-optimization/71240
6262 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6263 has integral type.
6264
6265 2016-05-24 Richard Biener <rguenther@suse.de>
6266
6267 PR tree-optimization/71230
6268 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6269
6270 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6271
6272 * tree-vectorizer.h (vectorizable_comparison): Delete.
6273 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6274 PURE_SLP_STMT check.
6275 * tree-vect-stmts.c (vectorizable_call): Likewise.
6276 (vectorizable_simd_clone_call): Likewise.
6277 (vectorizable_conversion): Likewise.
6278 (vectorizable_assignment): Likewise.
6279 (vectorizable_shift): Likewise.
6280 (vectorizable_operation): Likewise.
6281 (vectorizable_load): Likewise.
6282 (vectorizable_condition): Likewise.
6283 (vectorizable_store): Likewise. Assert that we don't have
6284 hybrid SLP.
6285 (vectorizable_comparison): Make static. Remove redundant
6286 PURE_SLP_STMT check.
6287 (vect_transform_stmt): Assert that we always have an slp_node
6288 if PURE_SLP_STMT.
6289
6290 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6291
6292 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
6293 operands[2] against 1 with comparison against CONST1_RTX.
6294 (<shift>di3_neon): Likewise.
6295 * config/arm/predicates.md (const0_operand): Replace with comparison
6296 against CONST0_RTX.
6297
6298 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6299
6300 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6301 operands[2] against 1 with comparison against CONST1_RTX.
6302 (ashrdi3): Likewise.
6303 (lshrdi3): Likewise.
6304 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6305 UINTVAL.
6306 (ashrsi3): Likewise.
6307 (lshrsi3): Likewise.
6308 (rotrsi3): Likewise.
6309 (define_split above *compareqi_eq0): Likewise.
6310 (define_split above "prologue"): Likewise.
6311 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6312 * config/arm/predicates.md (shift_operator): Likewise.
6313 (shift_nomul_operator): Likewise.
6314 (sat_shift_operator): Likewise.
6315 (thumb1_cmp_operand): Likewise.
6316 (const_neon_scalar_shift_amount_operand): Replace manual range
6317 check with IN_RANGE.
6318 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6319 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6320
6321 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6322
6323 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6324 with HOST_WIDE_INT_1.
6325 (insv): Likewise.
6326 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6327 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6328 (arm_canonicalize_comparison): Likewise.
6329 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6330 HOST_WIDE_INT_1.
6331 (thumb1_size_rtx_costs): Likewise.
6332 (vfp_const_double_index): Replace cast of 1 to unsigned
6333 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6334 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6335 HOST_WIDE_INT_1.
6336 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6337 HOST_WIDE_INT with HOST_WIDE_INT_1U.
6338 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6339 HOST_WIDE_INT with HOST_WIDE_INT_1.
6340
6341 2016-05-24 Marek Polacek <polacek@redhat.com>
6342
6343 * tree-cfg.h (should_remove_lhs_p): New predicate.
6344 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6345 * gimplify.c (gimplify_modify_expr): Likewise.
6346 * tree-cfg.c (verify_gimple_call): Likewise.
6347 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6348 * gimple-fold.c: Include "tree-cfg.h".
6349 (gimple_fold_call): Use should_remove_lhs_p.
6350
6351 2016-05-24 Richard Biener <rguenther@suse.de>
6352
6353 PR tree-optimization/71253
6354 * cfganal.h (control_dependences): Make robust against edge
6355 and BB removal.
6356 (control_dependences::control_dependences): Remove edge_list argument.
6357 (control_dependences::get_edge): Remove.
6358 (control_dependences::get_edge_src): Add.
6359 (control_dependences::get_edge_dest): Likewise.
6360 (control_dependences::m_el): Make a vector of edge src/dest index.
6361 * cfganal.c (control_dependences::find_control_dependence): Adjust.
6362 (control_dependences::control_dependences): Likewise.
6363 (control_dependences::~control_dependence): Likewise.
6364 (control_dependences::get_edge): Remove.
6365 (control_dependences::get_edge_src): Add.
6366 (control_dependences::get_edge_dest): Likewise.
6367 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6368 get_edge_src.
6369 (perform_tree_ssa_dce): Adjust.
6370 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6371 get_edge_src.
6372 (pass_loop_distribution::execute): Adjust. Do loop destroying
6373 conditional on changed.
6374
6375 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6376
6377 PR target/69857
6378 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6379 return. Reindent transformation comment and mention the ARM state
6380 behavior.
6381
6382 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6383
6384 PR middle-end/71252
6385 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6386 after build_and_add_sum creates new use stmt.
6387
6388 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6389
6390 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6391 load_lanes/grouped_load classification comes first. Don't check
6392 whether the vectorization factor is a multiple of the group size
6393 for load_lanes.
6394
6395 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
6396
6397 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6398 GROUP_GAP for single-element interleaving.
6399 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6400 variable.
6401
6402 2016-05-24 Richard Biener <rguenther@suse.de>
6403
6404 PR middle-end/70434
6405 PR c/69504
6406 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6407 bases which are accessed with non-invariant indices.
6408 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6409 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6410
6411 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
6412
6413 PR middle-end/71170
6414 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6415 (add_to_ops_vec): Add stmt_to_insert.
6416 (add_repeat_to_ops_vec): Init stmt_to_insert.
6417 (insert_stmt_before_use): New.
6418 (transform_add_to_multiply): Remove mult_stmt insertion and add it
6419 to ops vector.
6420 (get_ops): Init stmt_to_insert.
6421 (maybe_optimize_range_tests): Likewise.
6422 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6423 (rewrite_expr_tree_parallel): Likewise.
6424 (reassociate_bb): Likewise.
6425
6426 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6427
6428 PR target/71201
6429 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6430 ISA 3.0 xxperm fusion alternative.
6431 (altivec_vperm_v8hiv16qi): Likewise.
6432 (altivec_vperm_<mode>_uns_internal): Likewise.
6433 (vperm_v8hiv4si): Likewise.
6434 (vperm_v16qiv8hi): Likewise.
6435
6436 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
6437 Kelvin Nilsen <kelvin@gcc.gnu.org>
6438
6439 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6440 vpermr/xxpermr on ISA 3.0.
6441 (altivec_expand_vec_perm_le): Likewise.
6442 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6443 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6444 ISA 3.0.
6445
6446 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
6447
6448 * config/i386/i386.h (IS_STACK_MODE): Enable for
6449 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
6450 SSE_FLOAT_MODE_P macros.
6451 * config/i386/i386.c (ix86_preferred_reload_class): Use
6452 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6453 Cleanup regclass processing for CONST_DOUBLE_P.
6454 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6455 (ix86_rtx_costs): Remove redundant TARGET_80387 check
6456 with IS_STACK_MODE macro.
6457 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6458 with TARGET_SSE2.
6459 (*movdf_internal): Use IS_STACK_MODE macro.
6460 (*movsf_internal): Ditto.
6461
6462 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
6463
6464 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6465 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6466
6467 2016-05-23 Jeff Law <law@redhat.com>
6468
6469 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6470 extracted from ...
6471 (fsm_find_control_statement_thread_paths): Call it.
6472
6473 2016-05-23 Martin Jambor <mjambor@suse.cz>
6474
6475 PR ipa/71234
6476 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6477 from_global_constant if t is not NULL.
6478
6479 2016-05-23 Marek Polacek <polacek@redhat.com>
6480
6481 PR c/49859
6482 * common.opt (Wswitch-unreachable): New option.
6483 * doc/invoke.texi: Document -Wswitch-unreachable.
6484 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6485 warning.
6486
6487 2016-05-23 Bin Cheng <bin.cheng@arm.com>
6488
6489 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6490 TMR_INDEX is non-NULL.
6491
6492 2016-05-23 Richard Biener <rguenther@suse.de>
6493
6494 PR tree-optimization/71230
6495 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6496 (try_special_add_to_ops): ... here. Always test for single-use.
6497
6498 2016-05-23 Martin Jambor <mjambor@suse.cz>
6499
6500 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6501 default block if a PHI node in the original one would be resized.
6502
6503 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6504
6505 PR tree-optimization/58135
6506 * tree-vect-slp.c: When group size is not multiple
6507 of vector size, allow splitting of store group at
6508 vector boundary.
6509
6510 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
6511
6512 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6513
6514 2016-05-22 Jakub Jelinek <jakub@redhat.com>
6515
6516 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6517 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6518 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
6519 of 64x2.
6520
6521 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6522 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6523 v constraint instead of x and vinserti32x4 insn.
6524
6525 * config/i386/sse.md (i128vldq): New mode iterator.
6526 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6527 avx512dq and avx512vl alternatives.
6528
6529 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6530 constraint, use maybe_evex prefix instead of vex.
6531 (vec_dupv4sf): Use v constraint instead of x for output
6532 operand except for noavx alternative, use Yv constraint
6533 instead of x for input. Use maybe_evex prefix instead of vex.
6534 (*vec_dupv4si): Likewise.
6535 (*vec_dupv2di): Likewise.
6536
6537 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
6538
6539 PR middle-end/40921
6540 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6541 (linearize_expr_tree): Call try_special_add_to_ops.
6542 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6543
6544 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6545
6546 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6547 to computed stack_usage.
6548
6549 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6550
6551 PR target/71103
6552 * config/avr/avr.md (define_expand "mov<mode>"): If the source
6553 operand is subreg (symbol_ref) then move the symbol ref to register.
6554
6555 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
6556
6557 * tree.c (array_at_struct_end_p): Look through MEM_REF.
6558
6559 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
6560
6561 PR middle-end/71179
6562 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6563 VECTOR type.
6564
6565 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6566
6567 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6568 ranges by calling get_single_symbol and tidy up. Look more closely
6569 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6570
6571 2016-05-20 Jeff Law <law@redhat.com>
6572
6573 * bitmap.c (bitmap_find_bit): Remove useless test.
6574
6575 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6576
6577 * function.c (thread_prologue_and_epilogue_insns): Commit the
6578 insertion of the epilogue.
6579
6580 2016-05-20 Martin Jambor <mjambor@suse.cz>
6581
6582 PR tree-optimization/70884
6583 * tree-sra.c (initialize_constant_pool_replacements): Do not check
6584 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6585 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6586 of constant pool data as a reason for scalarization.
6587
6588 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
6589
6590 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6591 for naked functions.
6592 (thumb1_expand_prologue): Likewise.
6593
6594 2016-05-20 Nathan Sidwell <nathan@acm.org>
6595
6596 * config/nvptx/nptx.c (nvptx_option_override): Only set
6597 flag_toplevel_reorder, if not explicitly specified. Set
6598 flag_no_common, unless explicitly specified.
6599
6600 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6601
6602 * calls.c (can_implement_as_sibling_call_p): Mark param
6603 reg_parm_stack_space with ATTRIBUTE_UNUSED.
6604
6605 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
6606
6607 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6608 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6609 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6610 constants.
6611 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6612 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6613 and CASE_CONST_ANY.
6614
6615 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
6616
6617 * config/nvptx/nvptx.md (sincossf3): New pattern.
6618
6619 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6620
6621 * calls.c (maybe_complain_about_tail_call): New function.
6622 (initialize_argument_information): Call
6623 maybe_complain_about_tail_call when clearing *may_tailcall.
6624 (can_implement_as_sibling_call_p): Call
6625 maybe_complain_about_tail_call when returning false.
6626 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6627 ensure try_tail_call is set. Call maybe_complain_about_tail_call
6628 if tail-call optimization fails.
6629 * cfgexpand.c (expand_call_stmt): Initialize
6630 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6631 * gimple-pretty-print.c (dump_gimple_call): Dump
6632 gimple_call_must_tail_p.
6633 * gimple.c (gimple_build_call_from_tree): Call
6634 gimple_call_set_must_tail with the value of
6635 CALL_EXPR_MUST_TAIL_CALL.
6636 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6637 (gimple_call_set_must_tail): New function.
6638 (gimple_call_must_tail_p): New function.
6639 * print-tree.c (print_node): Update printing of TREE_STATIC
6640 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6641 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6642 trailing comment listing applicable flags.
6643 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6644
6645 2016-05-20 David Malcolm <dmalcolm@redhat.com>
6646
6647 * calls.c (expand_call): Move "Rest of purposes for tail call
6648 optimizations to fail" to...
6649 (can_implement_as_sibling_call_p): ...this new function, and
6650 split into multiple "if" statements.
6651
6652 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6653
6654 * cfgloop.h (expected_loop_iterations_unbounded,
6655 expected_loop_iterations): Unconstify.
6656 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6657 profile with known upper bound; return 3 when profile is absent.
6658 (expected_loop_iterations): Update.
6659
6660 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6661
6662 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6663 and get_max_loop_iterations_int.
6664
6665 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
6666
6667 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6668 realistic upper bounds here.
6669
6670 2016-05-20 Jakub Jelinek <jakub@redhat.com>
6671
6672 PR c++/71210
6673 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6674 calls if the LHS is variable length or has addressable type.
6675 If targets[0]->decl is a noreturn call with void return type and
6676 zero arguments, adjust fntype and remove lhs in that case.
6677
6678 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
6679
6680 PR tree-optimization/71079
6681 PR tree-optimization/71206
6682 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6683
6684 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6685
6686 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6687 (get_vec_alignment_for_array_decl): Likewise.
6688 (get_vec_alignment_for_record_decl): Likewise.
6689 (increase_alignment::execute): Move code to find alignment to
6690 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6691 (type_align_map): New hash_map.
6692
6693 2016-05-20 Richard Guenther <rguenther@suse.de>
6694
6695 PR tree-optimization/29756
6696 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6697 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6698 * fold-const.c (operand_equal_p): Likewise.
6699 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6700 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6701 * tree-inline.c (estimate_operator_cost): Likewise.
6702 * tree-pretty-print.c (dump_generic_node): Likewise.
6703 * tree-ssa-operands.c (get_expr_operands): Likewise.
6704 * cfgexpand.c (expand_debug_expr): Likewise.
6705 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6706 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6707 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6708 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6709 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6710 (execute_update_addresses_taken): Do it.
6711
6712 2016-05-20 Richard Biener <rguenther@suse.de>
6713
6714 PR tree-optimization/71185
6715 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6716 register operations.
6717
6718 2016-05-20 Richard Biener <rguenther@suse.de>
6719
6720 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6721 gimple_seq_add_seq_without_update.
6722 (release_bb_predicate): Assert we have no operands to free.
6723 (if_convertible_loop_p_1): Calculate post dominators later.
6724 Do not free BB predicates here.
6725 (combine_blocks): Do not recompute BB predicates.
6726 (version_loop_for_if_conversion): Save BB predicates around
6727 loop versioning.
6728
6729 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6730
6731 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6732 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
6733 code. Ignore sibcalls on EDGE_IGNORE edges.
6734 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
6735 on edges for sibcalls that run without prologue. The rest of the
6736 function is combined from...
6737 (fix_fake_fallthrough_edge): ... this, and ...
6738 (try_shrink_wrapping): ... a part of this. Remove the bb_with
6739 function argument, make it a local variable.
6740
6741 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
6742
6743 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6744 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6745 for 32-bit mode and SEH for 64-bit.
6746 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6747 TARGET_64BIT_DEFAULT.
6748
6749 2016-05-19 Ryan Burn <contact@rnburn.com>
6750
6751 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6752 * gengtype.c (open_base_files): Add cilk.h to ifiles.
6753
6754 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
6755
6756 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6757 force pending loads from memory.
6758
6759 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
6760
6761 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6762 (UNSPEC_DARN_32): New unspec constant.
6763 (UNSPEC_DARN_RAW): New unspec constant.
6764 (darn_32): New instruction.
6765 (darn_raw): New instruction.
6766 (darn): New instruction.
6767 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6768 support and documentation for this macro.
6769 (BU_P9_MISC_1): New macro definition.
6770 (BU_P9_64BIT_MISC_0): New macro definition.
6771 (BU_P9_MISC_0): New macro definition.
6772 (darn_32): New builtin definition.
6773 (darn_raw): New builtin definition.
6774 (darn): New builtin definition.
6775 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6776 RS6000_BUILTIN_0 directives to surround each occurrence of
6777 #include "rs6000-builtin.def".
6778 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6779 RS6000_BTM_64BIT flags to the returned mask, depending on
6780 configuration.
6781 (def_builtin): Correct an error in the assignments made to the
6782 debugging variable attr_string.
6783 (rs6000_expand_builtin): Add support for no-operand built-in
6784 functions.
6785 (builtin_function_type): Remove fatal_error assertion that is no
6786 longer valid.
6787 (rs6000_common_init_builtins): Add support for no-operand built-in
6788 functions.
6789 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6790 definition.
6791 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6792 definition.
6793 (RS6000_BTM_64BIT): New macro definition.
6794 * doc/extend.texi: Document __builtin_darn (void),
6795 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6796 functions.
6797
6798 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
6799
6800 * tree-vect-loop.c (vect_analyze_loop_2): Use also
6801 max_loop_iterations_int.
6802
6803 2016-05-19 Marek Polacek <polacek@redhat.com>
6804
6805 PR tree-optimization/71031
6806 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6807 condition and adjust the code a bit.
6808
6809 2016-05-19 Martin Liska <mliska@suse.cz>
6810
6811 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6812 auto_vec instead of vec.
6813
6814 2016-05-19 Martin Liska <mliska@suse.cz>
6815
6816 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6817
6818 2016-05-19 Martin Liska <mliska@suse.cz>
6819
6820 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6821
6822 2016-05-19 Martin Liska <mliska@suse.cz>
6823
6824 * ipa-pure-const.c (set_function_state): Remove an existing
6825 funct_state.
6826 (remove_node_data): Do not free it as it's released
6827 in set_function_state.
6828
6829 2016-05-19 Martin Liska <mliska@suse.cz>
6830
6831 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6832 bitmap.
6833
6834 2016-05-19 Martin Liska <mliska@suse.cz>
6835
6836 * omp-simd-clone.c (simd_clone_adjust): Release vector.
6837
6838 2016-05-19 Martin Liska <mliska@suse.cz>
6839
6840 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6841 an auto_vec instead of re-creating it.
6842
6843 2016-05-19 Martin Liska <mliska@suse.cz>
6844
6845 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6846 auto_vec instead of vec.
6847
6848 2016-05-19 Martin Liska <mliska@suse.cz>
6849
6850 * lto-section-in.c (lto_get_section_data): Call
6851 lto_check_version with additional argument.
6852 * lto-streamer.c (lto_check_version): Add new argument.
6853 * lto-streamer.h (lto_check_version): Likewise.
6854
6855 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6856
6857 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6858 Don't add cost of inner memory when handling sign-extended loads.
6859
6860 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
6861
6862 PR rtl-optimization/71148
6863 * cse.c (cse_main): Free dominance info.
6864 (rest_of_handle_cse): Don't free dominance info.
6865 (rest_of_handle_cse2): Likewise.
6866 (rest_of_handle_cse_after_global_opts): Likewise.
6867
6868 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6869
6870 PR target/71056
6871 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6872 NULL_TREE early if NEON is not available. Remove now redundant check
6873 in ARM_CHECK_BUILTIN_MODE.
6874
6875 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
6876
6877 PR sanitizer/64354
6878 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6879 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6880 * doc/cpp.texi: Document new macros.
6881
6882 2016-05-19 Bin Cheng <bin.cheng@arm.com>
6883
6884 PR tree-optimization/69848
6885 * tree-vect-loop.c (vectorizable_reduction): Don't factor
6886 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6887
6888 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
6889
6890 * function.c (thread_prologue_and_epilogue_insn): Move the
6891 "goto epilogue_done" one block later.
6892
6893 2016-05-19 Richard Biener <rguenther@suse.de>
6894
6895 PR tree-optimization/70729
6896 * passes.def: Move LIM pass before PRE. Remove no longer
6897 required copyprop and move first DCE out of the loop pipeline.
6898
6899 2016-05-18 David Malcolm <dmalcolm@redhat.com>
6900
6901 PR driver/69265
6902 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6903 (OBJS-libcommon-target): ...here.
6904 * opts-common.c: Include spellcheck.h.
6905 (cmdline_handle_error): Build a vec of valid options and use it
6906 to suggest provide hints for misspelled arguments.
6907
6908 2016-05-18 Jakub Jelinek <jakub@redhat.com>
6909
6910 PR c++/71100
6911 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6912 lhs if it has TREE_ADDRESSABLE type.
6913
6914 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
6915
6916 PR target/71145
6917 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6918 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6919
6920 2016-05-18 Martin Jambor <mjambor@suse.cz>
6921
6922 PR ipa/69708
6923 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6924 input for NOP_EXPR pass-through functions.
6925 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6926 aggregate global constant VAR_DECLs in constant jump functions.
6927
6928 2016-05-18 Martin Jambor <mjambor@suse.cz>
6929
6930 PR ipa/69708
6931 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6932 from TREE_READONLY parameters.
6933
6934 2016-05-18 Martin Jambor <mjambor@suse.cz>
6935
6936 PR ipa/69708
6937 * cgraph.h (cgraph_indirect_call_info): New field
6938 guaranteed_unmodified.
6939 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6940 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6941 appropriate.
6942 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6943 pass the parameter value to ipa_find_agg_cst_for_param.
6944 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6945 guaranteed_unmodified, store AA results there instead of bailing out
6946 if present.
6947 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6948 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6949 (find_constructor_constant_at_offset): New function.
6950 (ipa_find_agg_cst_from_init): Likewise.
6951 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6952 static initializers of contants, report back through a new paameter
6953 from_global_constant if that was the case.
6954 (try_make_edge_direct_simple_call): Also pass parameter value to
6955 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6956 appropriate.
6957 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6958 (ipa_read_indirect_edge_info): Likewise.
6959 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6960 (ipa_load_from_parm_agg): Likewise.
6961
6962 2016-05-18 Jiong Wang <jiong.wang@arm.com>
6963
6964 PR rtl-optimization/71150
6965 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6966 check.
6967
6968 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6969
6970 PR target/70915
6971 * config/rs6000/constraints.md (wE constraint): New constraint
6972 for a vector constant that can be loaded with XXSPLTIB.
6973 (wM constraint): New constraint for a vector constant of a 1's.
6974 (wS constraint): New constraint for a vector constant that can be
6975 loaded with XXSPLTIB and a vector sign extend instruction.
6976 * config/rs6000/predicates.md (xxspltib_constant_split): New
6977 predicates for wE/wS constraints.
6978 (xxspltib_constant_nosplit): Likewise.
6979 (easy_vector_constant): Add support for constants that can be
6980 loaded via XXSPLTIB.
6981 (all_ones_constant): New predicate for vector constant with all
6982 1's set.
6983 (splat_input_operand): Add support for ISA 3.0 word splat operations.
6984 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6985 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6986 instruction and possibly with a sign extension.
6987 (output_vec_const_move): Add support for XXSPLTIB. If we are
6988 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6989 instead of XXLXOR/XXLORC.
6990 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6991 operations.
6992 (rs6000_legitimize_reload_address): Likewise.
6993 (rs6000_output_move_128bit): Use output_vec_const_move to emit
6994 constants.
6995 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6996 combine VSX_M and VSX_M2 into one iterator.
6997 (VSX_M2): Likewise.
6998 (VSINT_84): New iterators for loading constants with XXSPLTIB.
6999 (VSINT_842): Likewise.
7000 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
7001 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
7002 XXSPLTIB instruction.
7003 (xxspltib_<mode>_nosplit): Likewise.
7004 (xxspltib_<mode>_split): New insn to load up constants with
7005 XXSPLTIB and a sign extend instruction.
7006 (vsx_mov<mode>): Replace single move that handled all vector types
7007 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
7008 moves (when -mvsx-timode is in effect) into the main vector
7009 moves. Eliminate separate moves for <VSr> <VSa>, where the
7010 preferred register class (<VSr>) is listed first, and the
7011 secondary register class (<VSa>) is listed second with a '?' to
7012 discourage use. Prefer loading 0/-1 in any VSX register for ISA
7013 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
7014 that if the register was involved in a slow operation, the
7015 clear/set operation does not wait for the slow operation to
7016 finish. Adjust the length attributes for 32-bit mode. Use
7017 rs6000_output_move_128bit and drop the use of the string
7018 instructions for 32-bit movti when -mvsx-timode is in effect. Use
7019 spacing so that the alternatives and attributes don't generate
7020 long lines, and put things in columns, so that it is easier to
7021 match up the operands and attributes with the insn alternatives.
7022 (vsx_mov<mode>_64bit): Likewise.
7023 (vsx_mov<mode>_32bit): Likewise.
7024 (vsx_movti_64bit): Fold movti into normal vector moves.
7025 (vsx_movti_32bit): Likewise.
7026 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
7027 splat instructions.
7028 (vsx_splat_v4si_internal): Likewise.
7029 (vsx_splat_v4sf_internal): Likewise.
7030 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7031 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7032 extend vector elements.
7033 (vsx_sign_extend_hi_<mode>): Likewise.
7034 (vsx_sign_extend_si_v2di): Likewise.
7035 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7036 declaration.
7037 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7038 constraints. Add trailing period to wL documentation.
7039
7040 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
7041
7042 PR middle-end/71020
7043 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7044 * tree-dfa.c (replace_abnormal_ssa_names): New function.
7045 * tree-call-cdce.c: Include tree-dfa.h.
7046 (can_guard_call_p): New function, extracted from...
7047 (can_use_internal_fn): ...here.
7048 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7049 and return void.
7050 (shrink_wrap_one_built_in_call): Likewise.
7051 (use_internal_fn): Likewise.
7052 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7053 and return void. Call replace_abnormal_ssa_names.
7054 (pass_call_cdce::execute): Check can_guard_call_p during the
7055 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
7056 will always change something.
7057
7058 2016-05-18 Martin Jambor <mjambor@suse.cz>
7059
7060 PR ipa/70646
7061 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7062 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7063
7064 2016-05-18 Martin Jambor <mjambor@suse.cz>
7065
7066 PR ipa/70646
7067 * ipa-inline.h (condition): New field size.
7068 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7069 for comaprison and store it into the new condition.
7070 (evaluate_conditions_for_known_args): Use condition size to check
7071 access sizes for all but CHANGED conditions.
7072 (unmodified_parm_1): New parameter size_p, store access size into it.
7073 (unmodified_parm): Likewise.
7074 (unmodified_parm_or_parm_agg_item): Likewise.
7075 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7076 (set_cond_stmt_execution_predicate): Extract access sizes and store
7077 them to conditions.
7078 (set_switch_stmt_execution_predicate): Likewise.
7079 (will_be_nonconstant_expr_predicate): Likewise.
7080 (will_be_nonconstant_predicate): Likewise.
7081 (inline_read_section): Stream condition size.
7082 (inline_write_summary): Likewise.
7083
7084 2016-05-18 Richard Biener <rguenther@suse.de>
7085
7086 * tree-ssa-loop-im.c (determine_max_movement): Properly add
7087 condition cost to PHI cost instead of total_cost.
7088
7089 2016-05-18 Martin Liska <mliska@suse.cz>
7090
7091 PR fortran/70856
7092 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7093 merged variables.
7094
7095 2016-05-18 Richard Biener <rguenther@suse.de>
7096
7097 * lto-streamer.h (LTO_major_version): Bump to 6.
7098
7099 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7100
7101 * function.c (make_split_prologue_seq, make_prologue_seq,
7102 make_epilogue_seq): New functions, factored out from...
7103 (thread_prologue_and_epilogue_insns): Here.
7104
7105 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
7106
7107 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7108 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7109 of before. Add a comment.
7110
7111 2016-05-18 Bin Cheng <bin.cheng@arm.com>
7112
7113 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7114 expression pointer, not pointer to the pointer.
7115
7116 2016-05-18 Jakub Jelinek <jakub@redhat.com>
7117
7118 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7119 (avx2_pbroadcast<mode>): Add another alternative with v instead
7120 of x constraints in it, using <pbroadcast_evex_isa> isa.
7121 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7122
7123 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7124 constraint x instead of v in second alternative, add avx512bw
7125 alternative.
7126
7127 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7128 constraint x instead of v in second alternative, add avx512bw
7129 alternative.
7130
7131 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7132 constraint x instead of v in second alternative, add avx512bw
7133 alternative.
7134
7135 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7136 avx512bw alternative.
7137
7138 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7139
7140 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7141 array to 128 chars.
7142 (define_insn "*andnottf3"): Ditto.
7143 (define_insn "*<code><mode>3"/any_logic): Ditto.
7144 (define_insn "*<code>tf3"/any_logic): Ditto.
7145 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7146 operand to block AVX-512VL insn variant emit when it is not enabled.
7147
7148 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
7149
7150 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7151 constraint fot SF mode.
7152
7153 2016-05-18 Petr Murzin <petr.murzin@intel.com>
7154 Kirill Yukhin <kirill.yukhin@intel.com>
7155
7156 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7157 modifiers.
7158 (define_insn "rsqrt14<mode>"): Ditto.
7159 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7160 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7161 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7162 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7163 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7164 Ditto.
7165 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7166 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7167 * config/i386/i386.c (ix86_print_operand): Expand check for size
7168 override codes for Intel syntax.
7169
7170 2016-05-18 Richard Biener <rguenther@suse.de>
7171
7172 PR tree-optimization/71168
7173 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7174 initialization earlier.
7175
7176 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
7177
7178 * config/aarch64/aarch64-simd.md
7179 (aarch64_reduc_plus_internal<mode>): Rename to...
7180 (reduc_plus_scal): ...This, and remove previous implementation.
7181
7182 2016-05-18 Richard Biener <rguenther@suse.de>
7183
7184 * passes.def: Put late dse and cd_dce in canonical order.
7185
7186 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
7187
7188 * ipa-inline-transform.c (preserve_function_body_p): Look for
7189 first non-thunk clone.
7190 (save_function_body): Save into first non-thunk.
7191 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7192 up call stmt id.
7193 (lto_output_node): Inline thunks don't need body in every
7194 partition.
7195 * lto-streamer-in.c: Do not fixup thunk clones.
7196 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7197 thunks.
7198 * tree-inline.c (copy_bb): Be prepared for target node to be new after
7199 folding suceeds.
7200
7201 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7202
7203 PR middle-end/63586
7204 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7205 (reassociate_bb): Call transform_add_to_multiply.
7206
7207 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
7208
7209 * config/aarch64/aarch64.c (all_extensions): Removed unused
7210 static variable.
7211
7212 2016-05-17 Nathan Sidwell <nathan@acm.org>
7213
7214 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7215 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7216
7217 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
7218
7219 PR tree-optimization/54579
7220 PR middle-end/55299
7221 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7222
7223 2016-05-17 Marek Polacek <polacek@redhat.com>
7224
7225 PR ipa/71146
7226 * tree-inline.c (expand_call_inline): Call
7227 maybe_remove_unused_call_args.
7228
7229 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
7230
7231 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7232 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7233 * doc/md.texi (fmin@var{m}3): Likewise.
7234
7235 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7236
7237 * match.pd (X & C): New transformation.
7238
7239 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7240
7241 * match.pd (~X & Y): New transformation.
7242
7243 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
7244
7245 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7246 information for new SSA_NAME.
7247 (simplify_conversion_using_ranges): Get range through get_range_info
7248 instead of get_value_range.
7249
7250 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7251
7252 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7253 Remove inline assembly.
7254 (vmvn_s16): Likewise.
7255 (vmvn_s32): Likewise.
7256 (vmvn_u8): Likewise.
7257 (vmvn_u16): Likewise.
7258 (vmvn_u32): Likewise.
7259 (vmvnq_s8): Likewise.
7260 (vmvnq_s16): Likewise.
7261 (vmvnq_s32): Likewise.
7262 (vmvnq_u8): Likewise.
7263 (vmvnq_u16): Likewise.
7264 (vmvnq_u32): Likewise.
7265 (vmvn_p8): Likewise.
7266 (vmvnq_p16): Likewise.
7267
7268 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7269
7270 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7271 Use builtin.
7272 (vmul_n_s16): Likewise.
7273 (vmul_n_s32): Likewise.
7274 (vmul_n_u16): Likewise.
7275 (vmul_n_u32): Likewise.
7276 (vmulq_n_f32): Likewise.
7277 (vmulq_n_f64): Likewise.
7278 (vmulq_n_s16): Likewise.
7279 (vmulq_n_s32): Likewise.
7280 (vmulq_n_u16): Likewise.
7281 (vmulq_n_u32): Likewise.
7282
7283 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7284
7285 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7286 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
7287
7288 2016-05-17 Jiong Wang <jiong.wang@arm.com>
7289
7290 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7291 to *aarch64_fma4_elt_from_dup<mode>.
7292 (*aarch64_fnma4_elt_to_128df): Rename to
7293 *aarch64_fnma4_elt_from_dup<mode>.
7294 * config/aarch64/arm_neon.h (vfma_n_f64): New.
7295 (vfms_n_f32): Likewise.
7296 (vfms_n_f64): Likewise.
7297 (vfmsq_n_f32): Likewise.
7298 (vfmsq_n_f64): Likewise.
7299
7300 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
7301
7302 * wide-int.h: Change fixed_wide_int_storage from class to struct.
7303
7304 2016-05-17 Richard Biener <rguenther@suse.de>
7305
7306 PR tree-optimization/71132
7307 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7308 Only add control dependences for blocks in the loop.
7309 (build_rdg): Adjust.
7310 (generate_code_for_partition): Return whether loop should
7311 be destroyed and delay that.
7312 (distribute_loop): Likewise.
7313 (pass_loop_distribution::execute): Record loops to be destroyed
7314 and perform delayed destroying of loops.
7315
7316 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7317
7318 PR target/70809
7319 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7320
7321 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7322
7323 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7324
7325 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
7326
7327 PR target/71114
7328 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7329 insertion point for instructions generated by validize_mem.
7330
7331 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7332
7333 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7334 in brackets.
7335
7336 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
7337
7338 * config/aarch64/aarch64.c
7339 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7340 rather than a macro.
7341
7342 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7343
7344 * doc/invoke.texi (AArch64 Options): Various updates.
7345
7346 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7347
7348 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7349 into instrumentation thunks.
7350 * cif-code.def (CIF_CHKP): New.
7351
7352 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
7353
7354 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7355
7356 2016-05-16 Martin Jambor <mjambor@suse.cz>
7357
7358 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7359 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7360
7361 2016-05-16 Marek Polacek <polacek@redhat.com>
7362
7363 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7364 commentary.
7365
7366 2016-05-16 Martin Jambor <mjambor@suse.cz>
7367
7368 PR hsa/70857
7369 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7370 the outlined kernel function.
7371
7372 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
7373
7374 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7375 (ISA_HAS_DLSA): Ditto.
7376
7377 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7378
7379 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7380
7381 2016-05-16 Nathan Sidwell <nathan@acm.org>
7382
7383 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7384 (nvptx_name_replacement): Restore. Add comment.
7385 (write_fn_proto, write_fn_proto_from_insn,
7386 nvptx_output_call_insn): Restore
7387 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7388
7389 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7390
7391 * config/aarch64/aarch64.md
7392 (add<mode>3_compareC_cconly_imm): Remove use of %w.
7393 (add<mode>3_compareC_imm): Likewise.
7394 (<optab>si3_uxtw): Split into register and immediate variants.
7395 (andsi3_compare0_uxtw): Likewise.
7396 (and<mode>3_compare0): Likewise.
7397 (and<mode>3nr_compare0): Likewise.
7398 (stack_protect_test_<mode>): Don't use %x for memory operands.
7399
7400 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
7401
7402 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7403
7404 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
7405
7406 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7407 Split integer shifts into shift_reg and bfm.
7408 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7409 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7410 (ror<mode>3_insn): Likewise.
7411 (<optab>si3_insn_uxtw): Likewise.
7412 (<optab><mode>3_insn): Change to rotate_imm.
7413 (extr<mode>5_insn_alt): Likewise.
7414 (extrsi5_insn_uxtw): Likewise.
7415 (extrsi5_insn_uxtw_alt): Likewise.
7416
7417 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7418
7419 * doc/tm.texi: Regenerate.
7420 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7421 (TARGET_INVALID_RETURN_TYPE): Remove.
7422 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7423 TARGET_INVALID_RETURN_TYPE.
7424 * target.def (invalid_parameter_type): Remove.
7425 (invalid_return_type): Remove.
7426
7427 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7428
7429 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7430 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7431 calls from thunk.
7432 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7433 gimple body.
7434 (preserve_function_body_p): No need to preserve function body
7435 * cif-codes.def (CIF_THUNK): Remove.
7436 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7437
7438 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7439
7440 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7441
7442 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7443
7444 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7445 for thunks.
7446
7447 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7448
7449 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7450 (inline_small_functions): Do not look for function symbol when
7451 resetting caches.
7452
7453 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
7454
7455 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7456 of inline thunks
7457
7458 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7459 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7460 Jiong Wang <jiong.wang@arm.com>
7461
7462 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7463 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7464 Define __ARM_FP16_ARGS when appropriate.
7465 * config/arm/arm.c (arm_invalid_parameter_type): Remove
7466 declaration.
7467 (arm_invalid_return_type): Likewise.
7468 (TARGET_INVALID_PARAMETER_TYPE): Remove.
7469 (TARGET_INVALID_RETURN_TYPE): Remove.
7470 (aapcs_vfp_sub_candidate): Allow HFmode.
7471 (aapcs_vfp_allocate): Add comment. Support HFmode.
7472 (aapcs_vfp_allocate_return_reg): Likewise.
7473 (struct aapcs_cp_arg_layout): Slightly reword comments for
7474 is_return_candidate and allocate_return_reg.
7475 (output_mov_vfp): Update assert.
7476 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7477 condition.
7478 (arm_invalid_parameter_type): Remove.
7479 (amr_invalid_return_type): Remove.
7480 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7481 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7482 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7483
7484 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
7485
7486 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7487 * config/aarch64/arch64-protos.h
7488 (aarch64_legitimize_reload_address): Remove.
7489 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7490 Remove.
7491
7492 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
7493
7494 * configure.ac: Add ACX_NONCANONICAL_HOST.
7495 * configure: Regenerate.
7496 * Makefile.in: Set host_noncanonical.
7497
7498 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
7499
7500 PR target/71097
7501 * config/i386/i386.md (*movtf_internal): Before register allocation,
7502 do not allow FP constants for CM_MEDIUM memory model, allow only
7503 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7504 (*movxf_internal): Ditto.
7505 (*movdf_internal): Ditto.
7506 (*movsf_internal): Ditto.
7507
7508 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
7509
7510 PR rtl-optimization/67483
7511 * combine.c (make_compound_operation): Don't call extract_left_shift
7512 with negative shift amounts.
7513
7514 2016-05-13 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR bootstrap/71071
7517 * fold-const.c (fold_checksum_tree): Allow modification
7518 of TYPE_ALIAS_SET during folding.
7519
7520 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7521 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7522 (ix86_split_to_parts): Likewise. Fix up formatting.
7523
7524 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
7525
7526 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7527 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7528 printf format.
7529
7530 2016-05-13 Nathan Sidwell <nathan@acm.org>
7531
7532 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7533 (nvptx_name_replacement): Delete.
7534 (write_fn_proto, write_fn_proto_from_insn,
7535 nvptx_output_call_insn): Remove nvptx_name_replacement call.
7536 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7537 * langhooks.c (add_builtin_funcction_common): Call
7538 targetm.mangle_decl_assembler_name.
7539
7540 * config/nvptx/nvptx.c (write_fn_proto): Handle
7541 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7542
7543 2016-05-13 Martin Liska <mliska@suse.cz>
7544
7545 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7546 and PRIu64 in printf format.
7547
7548 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7549
7550 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7551 comment.
7552
7553 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7554
7555 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7556 Change --param max-completely-peeled-times to
7557 --param max-completely-peel-times in dump file printing.
7558
7559 2016-05-13 Richard Biener <rguenther@suse.de>
7560
7561 PR tree-optimization/42587
7562 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7563 (find_bswap_or_nop_1): Likewise.
7564 (bswap_replace): Likewise.
7565
7566 2016-05-13 Martin Liska <mliska@suse.cz>
7567
7568 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7569 Initialize a variable with default value.
7570
7571 2016-05-13 Martin Liska <mliska@suse.cz>
7572
7573 * doc/invoke.texi: Enhance explanation of error recovery
7574 of sanitizers.
7575
7576 2016-05-13 Martin Liska <mliska@suse.cz>
7577
7578 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7579 (struct cost_pair): Change inv_expr_id (int) to inv_expr
7580 (iv_inv_expr_ent *).
7581 (struct iv_inv_expr_ent): Comment struct fields.
7582 (sort_iv_inv_expr_ent): New function.
7583 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7584 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7585 a hash_map between iv_inv_expr_ent and number of usages.
7586 (niter_for_exit): Fix coding style.
7587 (tree_ssa_iv_optimize_init): Use renamed variable.
7588 (determine_base_object): Fix coding style.
7589 (alloc_iv): Likewise.
7590 (find_interesting_uses_outside): Likewise.
7591 (add_candidate_1): Likewise.
7592 (add_standard_iv_candidates): Likewise.
7593 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7594 (prepare_decl_rtl): Fix coding style.
7595 (get_address_cost): Likewise.
7596 (get_shiftadd_cost): Likewise.
7597 (force_expr_to_var_cost): Likewise.
7598 (compare_aff_trees): Likewise.
7599 (get_expr_id): Restructure the function.
7600 (get_loop_invariant_expr_id): Renamed to
7601 get_loop_invariant_expr.
7602 (get_computation_cost_at): Replace usage of inv_expr_id with
7603 inv_expr.
7604 (get_computation_cost): Likewise.
7605 (determine_group_iv_cost_generic): Likewise.
7606 (determine_group_iv_cost_address): Likewise.
7607 (iv_period): Fix coding style.
7608 (iv_elimination_compare_lt): Likewise.
7609 (may_eliminate_iv): Likewise.
7610 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
7611 inv_expr.
7612 (determine_group_iv_costs): Dump invariant expressions.
7613 (iv_ca_recount_cost): Use the newly added hash_map.
7614 (iv_ca_set_remove_invariants): Fix coding style.
7615 (iv_ca_set_add_invariants): Fix coding style.
7616 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7617 invariants.
7618 (iv_ca_set_cp): Likewise.
7619 (iv_ca_new): Initialize the newly added hash_map and remove
7620 initialization of fields.
7621 (iv_ca_free): Delete the hash_map.
7622 (iv_ca_dump): Dump invariant expressions.
7623 (iv_ca_extend): Fix coding style.
7624 (try_add_cand_for): Likewise.
7625 (create_new_ivs): Dump information about # of avg iterations and
7626 # of used invariant expressions.
7627 (rewrite_use_compare): Fix coding style.
7628 (free_loop_data): Set default value for max_inv_expr_id.
7629
7630 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
7631
7632 * cse.c (rest_of_handle_cse): Use cleanup_cfg
7633 returned value cse_cfg_altered computation.
7634 (rest_of_handle_cse2): Likewise.
7635 (rest_of_handle_cse_after_global_opts): Likewise.
7636
7637 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7638
7639 PR target/53440
7640 * config/arm/arm.c (arm32_output_mi_thunk): New.
7641 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7642 to split Thumb1 vs TARGET_32BIT functionality.
7643 (arm_thumb1_mi_thunk): New.
7644
7645 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7646
7647 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7648 to true.
7649
7650 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7651
7652 PR target/71080
7653 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7654
7655 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
7656
7657 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7658 (expand_builtin_trap): Emit a regular call.
7659 (set_builtin_user_assembler_name): Remove obsolete cases.
7660 * dse.c (scan_insn): Adjust.
7661 * except.c: Include calls.h.
7662 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7663 emit a regular call to setjmp.
7664 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7665 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7666 (emit_block_move_via_libcall): Delete.
7667 (block_move_fn): Delete.
7668 (init_block_move_fn): Likewise.
7669 (emit_block_move_libcall_fn): Likewise.
7670 (emit_block_op_via_libcall): New function.
7671 (set_storage_via_libcall): Tidy up and use memset builtin.
7672 (block_clear_fn): Delete.
7673 (init_block_clear_fn): Likewise.
7674 (clear_storage_libcall_fn): Likewise.
7675 (expand_assignment): Call emit_block_move_via_libcall.
7676 Do not include gt-expr.h.
7677 * expr.h (emit_block_op_via_libcall): Declare.
7678 (emit_block_copy_via_libcall): New inline function.
7679 (emit_block_move_via_libcall): Likewise.
7680 (emit_block_comp_via_libcall): Likewise.
7681 (block_clear_fn): Delete.
7682 (init_block_move_fn): Likewise.
7683 (init_block_clear_fn): Likewise.
7684 (emit_block_move_via_libcall): Likewise.
7685 (set_storage_via_libcall): Add default parameter value.
7686 * libfuncs.h (enum libfunc_index): Remove obsolete values.
7687 (abort_libfunc): Delete.
7688 (memcpy_libfunc): Likewise.
7689 (memmove_libfunc): Likewise.
7690 (memcmp_libfunc): Likewise.
7691 (memset_libfunc): Likewise.
7692 (setbits_libfunc): Likewise.
7693 (setjmp_libfunc): Likewise.
7694 (longjmp_libfunc): Likewise.
7695 (profile_function_entry_libfunc): Likewise.
7696 (profile_function_exit_libfunc): Likewise.
7697 (gcov_flush_libfunc): Likewise.
7698 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7699 and DECL_VISIBILITY on the declaration.
7700 (init_optabs): Do not initialize obsolete libfuncs.
7701 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7702 * tree-core.h (ECF_RET1): Define.
7703 (ECF_TM_PURE): Adjust.
7704 (ECF_TM_BUILTIN): Likewise.
7705 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7706 (build_common_builtin_nodes): Initialize abort builtin.
7707 Add ECF_RET1 on memcpy, memmove and memset builtins.
7708 Pass final flags for alloca and alloca_with_align builtins.
7709 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7710 obsolete builtins.
7711 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7712 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7713 set_storage_via_libcall and call emit_block_copy_via_libcall.
7714
7715 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
7716
7717 * config/i386/i386.md (*call_got_x32): Change operand 0 to
7718 DImode before it is passed to ix86_output_call_operand.
7719 (*call_value_got_x32): Ditto for operand 1.
7720
7721 2016-05-12 Jiong Wang <jiong.wang@arm.com>
7722
7723 PR rtl-optimization/70904
7724 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7725 reload for wide mode.
7726
7727 2016-05-12 Marek Polacek <polacek@redhat.com>
7728
7729 PR c/70756
7730 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7731 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7732 * langhooks.h (incomplete_type_error): Likewise.
7733 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
7734 parameter, pass it down to incomplete_type_error.
7735 * tree.h (size_in_bytes): New inline overload.
7736 (size_in_bytes_loc): Renamed from size_in_bytes.
7737
7738 2016-05-12 Richard Biener <rguenther@suse.de>
7739
7740 PR tree-optimization/71059
7741 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7742 nary before looking up or entering the expression into the VN
7743 hashes.
7744 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7745 Make sure to re-use NARYs without result as inserted by
7746 phi-translation.
7747
7748 2016-05-12 Richard Biener <rguenther@suse.de>
7749
7750 PR tree-optimization/71062
7751 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7752 field.
7753 * tree-ssa-structalias.c (set_uids_in_ptset): Set
7754 vars_contains_restrict if the var is a restrict tag.
7755 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7756 do not disambiguate pointers against it.
7757 (dump_points_to_solution): Re-structure and adjust for new
7758 vars_contains_restrict flag.
7759 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7760
7761 2016-05-12 Martin Liska <mliska@suse.cz>
7762
7763 * doc/invoke.texi: Explain connection between
7764 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7765
7766 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
7767
7768 PR tree-optimization/71006
7769 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7770 consider COND_EXPR as a mask producer.
7771
7772 2016-05-12 Marek Polacek <polacek@redhat.com>
7773
7774 PR driver/71063
7775 * opts.c (common_handle_option): Detect missing argument for --help^.
7776
7777 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7778
7779 PR target/70830
7780 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7781 when popping the PC and within an interrupt handler routine.
7782 Add missing tab to output of "ldmfd".
7783 (output_return_instruction): Output LDMFD with SP update rather
7784 than POP when returning from interrupt handler.
7785
7786 2016-05-12 Jakub Jelinek <jakub@redhat.com>
7787
7788 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7789 TARGET_64BIT && TARGET_AVX512DQ.
7790 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7791 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7792 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7793 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7794 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7795 (*vec_extractv4si_zext): Add avx512dq alternative.
7796 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7797 use v instead of x constraint in other alternatives where possible.
7798
7799 * config/i386/sse.md (sse2_loadld): Use v instead of x
7800 constraint in alternatives 0,1,4.
7801
7802 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7803 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7804 v constraints instead of x and <pinsr_evex_isa> isa attribute.
7805
7806 PR target/71019
7807 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7808 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7809 is not emitted unless TARGET_AVX512BW.
7810 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7811 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7812 for the result operand.
7813
7814 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7815 constraint instead of x in avx alternatives. Use maybe_evex instead
7816 of vex prefix.
7817
7818 * config/i386/constraints.md (Yv): New constraint.
7819 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7820 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7821 * config/i386/i386.md (avx512fvecmode): New mode attr.
7822 (*pushtf): Use v constraint instead of x.
7823 (*movtf_internal): Likewise. For TARGET_AVX512VL and
7824 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7825 (*absneg<mode>2): Use Yv constraint instead of x constraint.
7826 (*absnegtf2_sse): Likewise.
7827 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7828 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7829 avx512f alternatives.
7830 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7831
7832 2016-05-12 Richard Biener <rguenther@suse.de>
7833
7834 PR tree-optimization/71060
7835 * tree-data-ref.c (initialize_data_dependence_relation): Do not
7836 require exact match of DR_BASE_OBJECT but only matching address and
7837 type.
7838
7839 2016-05-12 Richard Biener <rguenther@suse.de>
7840
7841 PR tree-optimization/70986
7842 * cfganal.c: Include cfgloop.h.
7843 (dfs_find_deadend): Prefer to take edges exiting loops.
7844
7845 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7846
7847 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7848 compile and run time.
7849
7850 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7851
7852 PR c/43651
7853 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7854
7855 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
7856
7857 * config/i386/i386.c (legitimize_pic_address): Use
7858 copy_to_suggested_reg instead of gen_movsi.
7859
7860 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7861
7862 * config/rs6000/predicates.md (quad_memory_operand): Move most of
7863 the code into quad_address_p and call it to share code with
7864 vsx_quad_dform_memory_operand.
7865 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7866 d-form support.
7867 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7868 bit instead of being a separate word. Split -mpower9-dform into
7869 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7870 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7871 for the register class supporting 128-bit quad word memory offsets.
7872 (mode_supports_vsx_dform_quad): Helper function to return if the
7873 register class uses quad word memory offsets.
7874 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7875 (rs6000_debug_reg_global): Always print if we are using LRA or not.
7876 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7877 instructions are enabled, set up the appropriate addr_masks for
7878 128-bit types.
7879 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7880 -mpower9-dform-scalar, instead of -mpower9-dform.
7881 (rs6000_option_override_internal): Split -mpower9-dform into two
7882 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
7883 -mpower9-dform switch sets or clears both. If we are not using
7884 the LRA register allocator, do not enable -mpower9-dform-vector by
7885 default. If we are using LRA, enable -mpower9-dform-vector and
7886 -mvsx-timode if it is appropriate. Issue a warning if either
7887 -mpower9-dform-vector or -mvsx-timode are explicitly used without
7888 enabling LRA.
7889 (quad_address_offset_p): New helper function to return if the
7890 offset is legal for quad word memory instructions.
7891 (quad_address_p): New function to determin if GPR or vector
7892 register quad word memory addresses are legal.
7893 (mem_operand_gpr): Validate quad word address offsets.
7894 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7895 d-form (register + offset) instructions.
7896 (offsettable_ok_by_alignment): Likewise.
7897 (rs6000_legitimate_offset_address_p): Likewise.
7898 (legitimate_lo_sum_address_p): Likewise.
7899 (rs6000_legitimize_address): Likewise.
7900 (rs6000_legitimize_reload_address): Add more debug statements for
7901 -mdebug=addr.
7902 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7903 d-form instructions.
7904 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7905 d-form instructions. Distinguish different cases in debug
7906 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7907 d-form instructions.
7908 (rs6000_preferred_reload_class): Likewise.
7909 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7910 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
7911 of the ISA 2.06 indexed memory instructions.
7912 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7913 use them to save/restore the saved vector registers instead of
7914 using Altivec instructions.
7915 (rs6000_emit_epilogue): Likewise.
7916 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7917 (rs6000_opt_masks): Split -mpower9-dform into
7918 -mpower9-dform-scalar and -mpower9-dform-vector.
7919 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7920 was not selected.
7921 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7922 ISA 3.0 vector indexed memory instructions, and fold the code into
7923 the normal mov<mode> patterns.
7924 (p9_vecstore_<mode>): Likewise.
7925 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7926 instructions.
7927 (vsx_movti_64bit): Likewise.
7928 (vsx_movti_32bit): Likewise.
7929 * config/rs6000/constraints.md (wO constraint): New constraint for
7930 ISA 3.0 vector d-form support.
7931 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7932 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
7933 include -mpower9-dform-vector until we switch over to LRA.
7934 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7935 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7936 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7937 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7938 for -mpower9-dform and -mlra.
7939 * doc/md.texi (wO constraint): Document wO constraint.
7940
7941 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
7942
7943 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7944 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7945 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7946 Move handling of non-insn arguments inline into the sole user:
7947 (output_trans_func): ...here.
7948 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7949 in emitted function prototype.
7950 (output_internal_insn_latency_func): Ditto. Simplify.
7951 (output_internal_maximal_insn_latency_func): Ditto. Delete
7952 always-unused argument.
7953 (output_insn_latency_func): Ditto.
7954 (output_maximal_insn_latency_func): Ditto.
7955
7956 2016-05-11 Richard Biener <rguenther@suse.de>
7957
7958 PR tree-optimization/71055
7959 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7960 sth with precision not equal to access size verify we don't chop
7961 off bits.
7962
7963 2016-05-11 Richard Biener <rguenther@suse.de>
7964
7965 PR debug/71057
7966 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7967 (dwarf2out_finish): Move retry_incomplete_types call ...
7968 (dwarf2out_early_finish): ... here.
7969
7970 2016-05-11 Richard Biener <rguenther@suse.de>
7971
7972 PR middle-end/71002
7973 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7974 if the langhook insists on it.
7975 * fold-const.c (make_bit_field_ref): Add arg for the original
7976 reference and preserve its alias-set.
7977 (decode_field_reference): Take exp by reference and adjust it
7978 to the original memory reference.
7979 (optimize_bit_field_compare): Adjust callers.
7980 (fold_truth_andor_1): Likewise.
7981 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7982
7983 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
7984
7985 PR middle-end/70807
7986 * cfgrtl.h (delete_insn_and_edges): Now return bool.
7987 * cfgrtl.c (delete_insn_and_edges): Likewise.
7988 * config/i386/i386.c (convert_scalars_to_vector): Remove
7989 redundant code.
7990 * cse.c (cse_insn): Compute cse_cfg_altered.
7991 (delete_trivially_dead_insns): Likewise.
7992 (cse_cc_succs): Likewise.
7993 (rest_of_handle_cse): Free dominance info if required.
7994 (rest_of_handle_cse2): Likewise.
7995 (rest_of_handle_cse_after_global_opts): Likewise.
7996
7997 2016-05-11 Alan Modra <amodra@gmail.com>
7998
7999 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
8000 abi_v4_pass_in_fpr): New functions.
8001 (rs6000_function_arg_boundary): Exclude complex IBM long double
8002 from 64-bit alignment when ABI_V4.
8003 (rs6000_function_arg, rs6000_function_arg_advance_1,
8004 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
8005
8006 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
8007
8008 PR rtl-optimization/71028
8009 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
8010 jump with just a return in the fallthrough block if the branch
8011 block contains just a return as well.
8012
8013 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
8014
8015 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
8016 * match.pd ((X & Y) ^ Y): ... this.
8017 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
8018 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
8019
8020 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8021
8022 * read-md.c (require_char_ws): New function.
8023 (read_string): Simplify using require_char_ws.
8024 (handle_constants): Likewise.
8025 (handle_enum): Likewise.
8026 (handle_file): Likewise.
8027 * read-md.h (require_char_ws): New declaration.
8028 * read-rtl.c (read_conditions): Simplify using require_char_ws.
8029 (read_mapping): Likewise.
8030 (read_rtx_code): Likewise.
8031 (read_nested_rtx): Likewise.
8032
8033 2016-05-10 James Norris <jnorris@codesourcery.com>
8034
8035 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8036 if offloading is enabled and -fopenacc or -fopenmp is specified.
8037 (CRTOFFLOADEND): Likewise.
8038 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8039 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8040
8041 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
8042
8043 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8044 gotoff_operand code paths. Use copy_to_suggested_regs and
8045 expand_simple_binop where appropriate. Cleanup.
8046
8047 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8048
8049 PR target/70799
8050 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8051 integer constants.
8052 (dimode_scalar_chain::vector_const_cost): New.
8053 (dimode_scalar_chain::compute_convert_gain): Handle constants.
8054 (dimode_scalar_chain::convert_op): Likewise.
8055 (dimode_scalar_chain::convert_insn): Likewise.
8056
8057 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8058
8059 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8060 unary operation, not a binary one.
8061
8062 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8063
8064 PR middle-end/70877
8065 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8066 calls with type casted fndecl.
8067
8068 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
8069
8070 PR tree-optimization/70786
8071 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8072 * calls.c (initialize_argument_information): Bind bounds
8073 with corresponding args passed by reference.
8074
8075 2016-05-10 Jakub Jelinek <jakub@redhat.com>
8076
8077 PR target/70927
8078 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8079 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8080 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8081 accordingly.
8082
8083 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8084
8085 PR target/70963
8086 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8087 code for a zero scale factor.
8088 (vsx_xvcvdpuxds_scale): Likewise.
8089
8090 2016-05-10 David Malcolm <dmalcolm@redhat.com>
8091
8092 * diagnostic-show-locus.c (layout::layout): Call show_ruler
8093 if show_ruler_p was set on the context.
8094 (layout::show_ruler): New method.
8095 * diagnostic.h (struct diagnostic_context): Add field
8096 "show_ruler_p".
8097
8098 2016-05-10 Richard Biener <rguenther@suse.de>
8099
8100 PR tree-optimization/71039
8101 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8102 (chk_uses): New function.
8103 (propagate_with_phi): Verify we can safely replicate the lhs of an
8104 aggregate assignment on all incoming edges.
8105
8106 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
8107
8108 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8109 Forward declare.
8110 (rx_atomic_sequence): New class.
8111 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8112 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8113 non-inline.
8114 (rx_atomic_sequence::rx_atomic_sequence,
8115 rx_atomic_sequence::~rx_atomic_sequence): New functions.
8116 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8117 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8118 CTRLREG_INTB): New constants.
8119 (FETCHOP): New code iterator.
8120 (fethcop_name, fetchop_name2): New iterator code attributes.
8121 (QIHI): New mode iterator.
8122 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8123 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8124 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8125
8126 2016-05-10 Martin Liska <mliska@suse.cz>
8127
8128 * tree-inline.c (remap_dependence_clique): Do not remap
8129 debugging statements.
8130
8131 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8132
8133 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8134 ("*fixuns_truncdfdi2_z13")
8135 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8136 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8137 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8138
8139 2016-05-10 Richard Biener <rguenther@suse.de>
8140
8141 PR tree-optimization/70497
8142 PR tree-optimization/28367
8143 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8144 split out from ...
8145 (visit_reference_op_load): ... here.
8146 (vn_reference_lookup_3): Use it to handle subreg-like accesses
8147 with simplified BIT_FIELD_REFs.
8148 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8149 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8150 correctly.
8151
8152 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
8153
8154 * dwarf2out.c (add_abstract_origin_attribute): Adjust
8155 documentation comment. For BLOCK nodes, add a
8156 DW_AT_abstract_origin attribute that points to the DIE generated
8157 for the origin BLOCK.
8158 (gen_lexical_block_die): Call add_abstract_origin_attribute for
8159 blocks from inlined functions.
8160
8161 2016-05-10 Alan Modra <amodra@gmail.com>
8162
8163 PR target/70947
8164 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8165 regrename modifying insns saving lr before __morestack call.
8166 * config/rs6000/rs6000.md (split_stack_return): Similarly for
8167 insns restoring lr after __morestack call.
8168
8169 2016-05-09 Jakub Jelinek <jakub@redhat.com>
8170
8171 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8172 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8173 expanders.
8174 * config/i386/sse.md (vec_interleave_high<mode>,
8175 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8176 <avx512>_vpermt2var<mode>3_maskz): Likewise.
8177
8178 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8179
8180 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8181 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8182 parallel reassociation for power8 and forward.
8183
8184 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
8185
8186 * config/i386/i386.md (absneg splitters with general regs): Use
8187 general_reg_operand predicate.
8188 (btsq peephole2): Use x86_64_immediate_operand to check if new
8189 value is suitable for immediate operand. Generate emitted insn
8190 using RTL expressions.
8191 (btcq peephole2): Ditto.
8192 (btrq peephole2): Ditto. Generate correct immediate operand
8193 for AND masking.
8194
8195 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8196
8197 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8198 bitpos.
8199
8200 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
8201
8202 * tree-affine.c (wide_int_constant_multiple_p): Add missing
8203 pointer dereference.
8204
8205 2016-05-09 Richard Biener <rguenther@suse.de>
8206
8207 PR tree-optimization/70985
8208 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8209 op0 isn't a gimple register.
8210
8211 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
8212
8213 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8214 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8215 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8216 (i6400_fpu_mult): New cpu units.
8217 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8218 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8219 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8220 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8221 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8222 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8223 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8224 (i6400_msa_long_float4, i6400_msa_long_float5)
8225 (i6400_msa_long_float8, i6400_msa_fdiv_df)
8226 (i6400_msa_fdiv_sf): New reservations.
8227 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8228 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8229 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8230 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8231 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8232 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8233 (msa_short_cmp, msa_short_float2, msa_short_logic3)
8234 (msa_short_store4, msa_long_load, msa_short_store)
8235 (msa_long_logic, msa_long_float2, msa_long_float4)
8236 (msa_long_float5, msa_long_float8, msa_long_mult)
8237 (msa_long_fdiv, msa_long_div): New reservations.
8238
8239 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
8240 Sameera Deshpande <sameera.deshpande@imgtec.com>
8241 Matthew Fortune <matthew.fortune@imgtec.com>
8242 Graham Stott <graham.stott@imgtec.com>
8243 Chao-ying Fu <chao-ying.fu@imgtec.com>
8244
8245 * config.gcc: Add MSA header file for mips*-*-* target.
8246 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8247 (Ubv8i, Urv8): New constraints.
8248 * config/mips/mips-ftypes.def: Add function types for MSA
8249 builtins.
8250 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8251 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8252 * config/mips/mips-msa.md: New file.
8253 * config/mips/mips-protos.h
8254 (mips_split_128bit_const_insns): New prototype.
8255 (mips_msa_idiv_insns): Likewise.
8256 (mips_split_128bit_move): Likewise.
8257 (mips_split_128bit_move_p): Likewise.
8258 (mips_split_msa_copy_d): Likewise.
8259 (mips_split_msa_insert_d): Likewise.
8260 (mips_split_msa_fill_d): Likewise.
8261 (mips_expand_msa_branch): Likewise.
8262 (mips_const_vector_same_val_p): Likewise.
8263 (mips_const_vector_same_bytes_p): Likewise.
8264 (mips_const_vector_same_int_p): Likewise.
8265 (mips_const_vector_shuffle_set_p): Likewise.
8266 (mips_const_vector_bitimm_set_p): Likewise.
8267 (mips_const_vector_bitimm_clr_p): Likewise.
8268 (mips_msa_vec_parallel_const_half): Likewise.
8269 (mips_msa_output_division): Likewise.
8270 (mips_ldst_scaled_shift): Likewise.
8271 (mips_expand_vec_cond_expr): Likewise.
8272 * config/mips/mips.c (enum mips_builtin_type): Add
8273 MIPS_BUILTIN_MSA_TEST_BRANCH.
8274 (mips_gen_const_int_vector_shuffle): New prototype.
8275 (mips_const_vector_bitimm_set_p): New function.
8276 (mips_const_vector_bitimm_clr_p): Likewise.
8277 (mips_const_vector_same_val_p): Likewise.
8278 (mips_const_vector_same_bytes_p): Likewise.
8279 (mips_const_vector_same_int_p): Likewise.
8280 (mips_const_vector_shuffle_set_p): Likewise.
8281 (mips_symbol_insns): Forbid loading symbols via immediate for
8282 MSA.
8283 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8284 stores.
8285 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8286 MSA.
8287 (mips_lx_address_p): Add support load indexed address for MSA.
8288 (mips_address_insns): Add calculation of instructions needed for
8289 stores and loads for MSA.
8290 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
8291 CONST_VECTOR for MSA and let it fall through.
8292 (mips_ldst_scaled_shift): New function.
8293 (mips_subword_at_byte): Likewise.
8294 (mips_msa_idiv_insns): Likewise.
8295 (mips_legitimize_move): Validate MSA moves.
8296 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
8297 calculation of costs for MSA division.
8298 (mips_split_move_p): Check if MSA moves need splitting.
8299 (mips_split_move): Split MSA moves if necessary.
8300 (mips_split_128bit_move_p): New function.
8301 (mips_split_128bit_move): Likewise.
8302 (mips_split_msa_copy_d): Likewise.
8303 (mips_split_msa_insert_d): Likewise.
8304 (mips_split_msa_fill_d): Likewise.
8305 (mips_output_move): Handle MSA moves.
8306 (mips_expand_msa_branch): New function.
8307 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8308 Reinstate 'y' modifier.
8309 (mips_file_start): Add MSA .gnu_attribute.
8310 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8311 FPRs.
8312 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8313 (mips_class_max_nregs): Add register size for MSA supported mode.
8314 (mips_cannot_change_mode_class): Allow conversion between MSA
8315 vector modes and TImode.
8316 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8317 instruction.
8318 (mips_secondary_reload_class): Force MSA loads/stores via memory.
8319 (mips_preferred_simd_mode): Add preffered modes for MSA.
8320 (mips_vector_mode_supported_p): Add MSA supported modes.
8321 (mips_autovectorize_vector_sizes): New function.
8322 (mips_msa_output_division): Likewise.
8323 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8324 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8325 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8326 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8327 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8328 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8329 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8330 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8331 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8332 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8333 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8334 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8335 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8336 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8337 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8338 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8339 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8340 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8341 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8342 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8343 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8344 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8345 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8346 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8347 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8348 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8349 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8350 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8351 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8352 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8353 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8354 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8355 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8356 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8357 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8358 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8359 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8360 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8361 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8362 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8363 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8364 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8365 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8366 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8367 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8368 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8369 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8370 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8371 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8372 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8373 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8374 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8375 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8376 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8377 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8378 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8379 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8380 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8381 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8382 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8383 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8384 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8385 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8386 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8387 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8388 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8389 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8390 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8391 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8392 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8393 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8394 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8395 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8396 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8397 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8398 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8399 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8400 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8401 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8402 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8403 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8404 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8405 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8406 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8407 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8408 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8409 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8410 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8411 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8412 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8413 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8414 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8415 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8416 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8417 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8418 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8419 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8420 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8421 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8422 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8423 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8424 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8425 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8426 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8427 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8428 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8429 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8430 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8431 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8432 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8433 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8434 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8435 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8436 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8437 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8438 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8439 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8440 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8441 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8442 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8443 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8444 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8445 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8446 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8447 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8448 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8449 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8450 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8451 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8452 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8453 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8454 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8455 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8456 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8457 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8458 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8459 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8460 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8461 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8462 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8463 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8464 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8465 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8466 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8467 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8468 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8469 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8470 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8471 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8472 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8473 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8474 move_v builtins.
8475 (mips_get_builtin_decl_index): New array.
8476 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8477 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8478 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8479 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8480 (mips_init_builtins): Initialize mips_get_builtin_decl_index
8481 array.
8482 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8483 hook.
8484 (mips_expand_builtin_insn): Prepare operands for
8485 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8486 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8487 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8488 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8489 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8490 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8491 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8492 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8493 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8494 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8495 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8496 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8497 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8498 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8499 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8500 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8501 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8502 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8503 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8504 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8505 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8506 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8507 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8508 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8509 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8510 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8511 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8512 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8513 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8514 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8515 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8516 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8517 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8518 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8519 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8520 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8521 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8522 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8523 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8524 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8525 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8526 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8527 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8528 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8529 These are set implicitly and an error is reported if overridden.
8530 (mips_expand_builtin_msa_test_branch): New function.
8531 (mips_expand_msa_shuffle): Likewise.
8532 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8533 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8534 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8535 (mips_expand_vec_unpack): Add support for MSA.
8536 (mips_expand_vector_init): Likewise.
8537 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8538 instead of const0_rtx.
8539 (mips_msa_vec_parallel_const_half): New function.
8540 (mips_gen_const_int_vector): Likewise.
8541 (mips_gen_const_int_vector_shuffle): Likewise.
8542 (mips_expand_msa_cmp): Likewise.
8543 (mips_expand_vec_cond_expr): Likewise.
8544 * config/mips/mips.h
8545 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8546 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8547 specified.
8548 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8549 (ISA_HAS_MSA): New macro.
8550 (UNITS_PER_MSA_REG): Likewise.
8551 (BITS_PER_MSA_REG): Likewise.
8552 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8553 (MSA_REG_FIRST): New macro.
8554 (MSA_REG_LAST): Likewise.
8555 (MSA_REG_NUM): Likewise.
8556 (MSA_REG_P): Likewise.
8557 (MSA_REG_RTX_P): Likewise.
8558 (MSA_SUPPORTED_MODE_P): Likewise.
8559 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8560 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8561 * config/mips/mips.md: Include mips-msa.md.
8562 (alu_type): Add simd_add.
8563 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8564 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8565 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8566 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8567 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8568 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8569 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8570 simd_move, simd_load, simd_store. Choose "multi" for moves
8571 for "qword_mode".
8572 (qword_mode): New attribute.
8573 (insn_count): Add instruction count for quad moves.
8574 Increase the count for MIPS SIMD division.
8575 (UNITMODE): Add UNITMODEs for vector types.
8576 (addsub): New code iterator.
8577 * config/mips/mips.opt (mmsa): New option.
8578 * config/mips/msa.h: New file.
8579 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8580 specified.
8581 * config/mips/mti-linux.h: Likewise.
8582 * config/mips/predicates.md
8583 (const_msa_branch_operand): New constraint.
8584 (const_uimm3_operand): Likewise.
8585 (const_uimm4_operand): Likewise.
8586 (const_uimm5_operand): Likewise.
8587 (const_uimm8_operand): Likewise.
8588 (const_imm5_operand): Likewise.
8589 (aq10b_operand): Likewise.
8590 (aq10h_operand): Likewise.
8591 (aq10w_operand): Likewise.
8592 (aq10d_operand): Likewise.
8593 (const_m1_operand): Likewise.
8594 (reg_or_m1_operand): Likewise.
8595 (const_exp_2_operand): Likewise.
8596 (const_exp_4_operand): Likewise.
8597 (const_exp_8_operand): Likewise.
8598 (const_exp_16_operand): Likewise.
8599 (const_vector_same_val_operand): Likewise.
8600 (const_vector_same_simm5_operand): Likewise.
8601 (const_vector_same_uimm5_operand): Likewise.
8602 (const_vector_same_uimm6_operand): Likewise.
8603 (const_vector_same_uimm8_operand): Likewise.
8604 (par_const_vector_shf_set_operand): Likewise.
8605 (reg_or_vector_same_val_operand): Likewise.
8606 (reg_or_vector_same_simm5_operand): Likewise.
8607 (reg_or_vector_same_uimm6_operand): Likewise.
8608 * doc/extend.texi (MIPS SIMD Architecture Functions): New
8609 section.
8610 * doc/invoke.texi (-mmsa): Document new option.
8611
8612 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8613
8614 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8615 * configure: Regenerate.
8616 * config.in: Regenerate.
8617 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8618 on -fvtable-verify.
8619 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8620 (ENDFILE_VTV_SPEC): Define.
8621
8622 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
8623
8624 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8625 registers in all interrupt handlers if necessary.
8626 (rl78_option_override): Add warning.
8627 (MUST_SAVE_MDUC_REGISTERS): New macro.
8628 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8629 * config/rl78/rl78.c (check_mduc_usage): New function.
8630 (mduc_regs): New structure to hold MDUC register data.
8631 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8632 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8633 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8634 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8635 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8636 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8637
8638 2016-05-09 Bin Cheng <bin.cheng@arm.com>
8639
8640 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8641 (tree-ssa-loop-niter.h): Ditto.
8642 (idx_within_array_bound, ref_within_array_bound): New functions.
8643 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8644 Factor out check on writable base object to ...
8645 (base_object_writable): ... here.
8646
8647 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8648
8649 * config/arm/arm.md (probe_stack): Add modes to set source
8650 and destination.
8651
8652 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
8653
8654 * regrename.c (base_reg_class_for_rename): New static function.
8655 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8656
8657 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
8658
8659 * cgraph.c (thunk_adjust): Export.
8660 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8661 * cgraphunit.c (thunk_adjust): Export.
8662 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8663 thunks.
8664 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8665 inlinable.
8666 * tree-inline.c (expand_call_inline): Expand thunks inline.
8667
8668 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
8669
8670 PR target/70998
8671 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8672 (*sse2_vd_cvtss2sd): Ditto.
8673 * config/i386/i386.md
8674 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8675 Generate *sse2_vd_cvtsd2ss pattern.
8676 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8677 Generate *sse2_vd_cvtss2sd pattern.
8678
8679 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8680
8681 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8682 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
8683 users.
8684
8685 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
8686
8687 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8688 * config/sh/sh.c: Define and declare variables on first use throughout
8689 the file.
8690 (current_function_interrupt): Change to bool type.
8691 (frame_insn): Rename to emit_frame_insn and update users.
8692 (push_regs): Use bool for 'interrupt_handler' argument.
8693 (save_schedule_s): Remove.
8694 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8695 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8696 targetm.asm_out.unaligned_op.di.
8697 (gen_far_branch): Remove redundant forward declaration.
8698 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8699 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8700 (sh_set_return_address, sh_function_ok_for_sibcall,
8701 scavenge_reg): Update comments.
8702 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8703 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8704 (sh_attr_renesas_p): Remove unnecessary parentheses.
8705 (branch_dest): Simplify.
8706 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8707 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8708 (CUMULATIVE_ARGS): Change macro to typedef.
8709 (current_function_interrupt): Change to bool type.
8710 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8711 Surround with __cplusplus ifdef.
8712 (sh_compare_op0, sh_compare_op1): Remove.
8713 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8714
8715 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
8716
8717 * config/arm/arm.md: (arch): Add neon.
8718 (arch_enabled): Return yes for arch neon when TARGET_NEON.
8719 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
8720 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
8721 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
8722 attributes for alt renumbering. Mark alt 3 as non-predicable.
8723 (thumb2_movdf_vfp): Likewise.
8724
8725 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
8726
8727 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8728 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8729 (*andqi_1): Add preferred_for_speed attribute to disparage
8730 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8731 (*<code>qi_1): Ditto.
8732 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8733 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8734 (*ashlqi3_1): Ditto.
8735 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8736 Add preferred_for_size attribute to disparage alternative 0 and
8737 preferred_for_speed attribute to disparage alternative 1 for
8738 TARGET_PARTIAL_REG_STALL targets.
8739
8740 2016-05-07 Tom de Vries <tom@codesourcery.com>
8741
8742 PR tree-optimization/70956
8743 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8744 def.
8745
8746 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
8747
8748 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8749 * config/sh/sh.c (sh_cbranch_distance): Implement it.
8750 * config/sh/sh.md (branch_zero): Remove define_attr.
8751 (define_delay): Disable delay slot if branch distance is one insn.
8752
8753 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8754
8755 * config/i386/i386.md (LEAMODE): New mode attribute.
8756 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8757 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8758 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
8759 operand 2 predicate.
8760 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8761 (*lea<mode>_general_3): Ditto.
8762 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8763
8764 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8765
8766 * genmddump.c (main): Convert argv from char ** to const char **.
8767
8768 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8769
8770 * coretypes.h (OVERRIDE): New macro.
8771 (FINAL): New macro.
8772
8773 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
8774
8775 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8776 allow coalescing if the types are compatible.
8777
8778 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8779
8780 * pass_manager.h (pass_manager::register_pass_name): New method.
8781 (pass_manager::get_pass_by_name): New method.
8782 (pass_manager::create_pass_tab): New method.
8783 (pass_manager::m_name_to_pass_map): New field.
8784 * passes.c (name_to_pass_map): Delete global in favor of field
8785 "m_name_to_pass_map" of pass_manager.
8786 (register_pass_name): Rename from a function to...
8787 (pass_manager::register_pass_name): ...this method, updating
8788 for renaming of global "name_to_pass_map" to field
8789 "m_name_to_pass_map".
8790 (create_pass_tab): Rename from a function to...
8791 (pass_manager::create_pass_tab): ...this method, updating
8792 for renaming of global "name_to_pass_map" to field.
8793 (get_pass_by_name): Rename from a function to...
8794 (pass_manager::get_pass_by_name): ...this method.
8795 (enable_disable_pass): Convert use of get_pass_by_name to
8796 a method call, locating the pass_manager singleton.
8797
8798 2016-05-06 David Malcolm <dmalcolm@redhat.com>
8799
8800 * genattr-common.c (main): Convert argv from char ** to const char **.
8801 * genattr.c (main): Likewise.
8802 * genattrtab.c (main): Likewise.
8803 * genautomata.c (initiate_automaton_gen): Likewise.
8804 (main): Likewise.
8805 * gencodes.c (main): Likewise.
8806 * genconditions.c (main): Likewise.
8807 * genconfig.c (main): Likewise.
8808 * genconstants.c (main): Likewise.
8809 * genemit.c (main): Likewise.
8810 * genenums.c (main): Likewise.
8811 * genextract.c (main): Likewise.
8812 * genflags.c (main): Likewise.
8813 * genmddeps.c (main): Likewise.
8814 * genopinit.c (main): Likewise.
8815 * genoutput.c (main): Likewise.
8816 * genpeep.c (main): Likewise.
8817 * genpreds.c (main): Likewise.
8818 * genrecog.c (main): Likewise.
8819 * gensupport.c (init_rtx_reader_args_cb): Likewise.
8820 (init_rtx_reader_args): Likewise.
8821 * gensupport.h (init_rtx_reader_args_cb): Likewise.
8822 (init_rtx_reader_args): Likewise.
8823 * gentarget-def.c (main): Likewise.
8824 * read-md.c (read_md_files): Likewise.
8825 * read-md.h (read_md_files): Likewise.
8826
8827 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8828
8829 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8830 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8831 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8832 Remove unused predicate.
8833 (register_and_not_fp_reg_operand): Ditto.
8834
8835 2016-05-06 Martin Liska <mliska@suse.cz>
8836
8837 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8838 instead of vec as the vector is local to the function.
8839
8840 2016-05-06 Jakub Jelinek <jakub@redhat.com>
8841
8842 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8843 avx512bw alternative.
8844
8845 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8846 before the ashr<mode>3 pattern.
8847
8848 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8849 v instead of x in vex or maybe_vex alternatives, use
8850 maybe_evex instead of vex in prefix.
8851
8852 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8853 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8854 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8855 in vex or maybe_vex alternatives, use maybe_evex instead of vex
8856 in prefix.
8857
8858 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8859 v instead of x in vex or maybe_vex alternatives, use
8860 maybe_evex instead of vex in prefix.
8861
8862 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8863 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8864 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8865 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8866 alternatives, use maybe_evex instead of vex in prefix.
8867
8868 * config/i386/sse.md (vec_interleave_lowv4sf,
8869 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8870 v instead of x in vex or maybe_vex alternatives, use
8871 maybe_evex instead of vex in prefix.
8872
8873 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8874 v instead of x in vex or maybe_vex alternatives, use
8875 maybe_evex instead of vex in prefix.
8876
8877 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8878 v constraint instead of x.
8879
8880 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
8881
8882 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8883 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8884 equality first.
8885
8886 2016-05-06 Richard Biener <rguenther@suse.de>
8887
8888 PR tree-optimization/70948
8889 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8890 Properly clobber all fields of va_list for __builtin_va_start.
8891
8892 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
8893
8894 PR debug/70935
8895 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8896 loop latch destination.
8897
8898 2016-05-06 Martin Liska <mliska@suse.cz>
8899
8900 * tree-ssa-uninit.c: Apply manual changes
8901 to the GNU coding style.
8902 (prune_uninit_phi_opnds): Rename from
8903 prune_uninit_phi_opnds_in_unrealizable_paths.
8904
8905 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8906
8907 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8908 mspace): Remove deprecated options.
8909 * doc/invoke.texi (SH options): Remove -mspace.
8910
8911 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8912
8913 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8914
8915 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8916
8917 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8918 corresponding combine split pattern.
8919
8920 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8921
8922 PR target/58219
8923 * config/sh/predicates.md (long_displacement_mem_operand): New.
8924 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8925 Add movi20, movi20s alternatives. Adjust length attribute for
8926 alternatives.
8927 (movsi_ie): Allow for any FPU. Adjust length attribute for
8928 alternatives.
8929 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
8930 attribute for alternatives.
8931 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8932 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8933 length attribute for alternatives.
8934
8935 2016-05-06 Richard Biener <rguenther@suse.de>
8936
8937 PR tree-optimization/70960
8938 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8939
8940 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8941
8942 PR target/52933
8943 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8944 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8945
8946 2016-05-06 Marek Polacek <polacek@redhat.com>
8947
8948 PR sanitizer/70875
8949 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8950
8951 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
8952
8953 PR target/54089
8954 * config/sh/sh.md (*rotcr): Add another variant.
8955
8956 2016-05-06 Richard Biener <rguenther@suse.de>
8957
8958 PR middle-end/70931
8959 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8960
8961 2016-05-06 Richard Biener <rguenther@suse.de>
8962
8963 PR middle-end/70941
8964 * fold-const.c (split_tree): Always convert to the original type
8965 before negating.
8966
8967 2016-05-06 Richard Biener <rguenther@suse.de>
8968
8969 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8970 (fwprop_addr): Likewise.
8971
8972 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
8973
8974 PR target/70873
8975 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8976 New prototype.
8977 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8978 * config/i386/i386.md (push mem splitter): Use find_constant_src in
8979 the splitter condition.
8980 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8981 the splitter condition.
8982 (FP float_extend load splitter): Ditto.
8983
8984 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
8985
8986 * config/i386/i386.md (peehole2 patterns): Change true_regnum
8987 to REGNO in all peephole2 patterns.
8988 (post-reload splitters): Change true_regnum to REGNO in
8989 post-reload splitters.
8990 (zero_extend splitters): Use general_reg_operand and
8991 nonimmediate_gr_operand predicates.
8992
8993 2016-05-05 Jakub Jelinek <jakub@redhat.com>
8994
8995 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8996 v constraint instead of x.
8997
8998 2016-05-05 Alan Modra <amodra@gmail.com>
8999
9000 PR target/68662
9001 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
9002 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
9003 TARGET_NO_FP_IN_TOC for -mrelocatable.
9004 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
9005 TARGET_RELOCATABLE test.
9006 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9007 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9008 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9009 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9010 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9011 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
9012 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
9013 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9014 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9015 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9016 Likewise.
9017 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
9018 (rs6000_stack_info): Likewise.
9019 (rs6000_elf_asm_out_constructor): Likewise.
9020 (rs6000_elf_asm_out_destructor): Likewise.
9021 (rs6000_elf_declare_function_name): Likewise.
9022 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
9023 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
9024 Don't define.
9025
9026 2016-05-05 Alan Modra <amodra@gmail.com>
9027
9028 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9029
9030 2016-05-05 Alan Modra <amodra@gmail.com>
9031
9032 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9033 out-of-line gpr restore for one or two regs if that would add
9034 a save of lr.
9035
9036 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
9037
9038 PR target/70873
9039 * config/i386/i386.md
9040 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9041 Change to post-epilogue_completed late splitter. Use sse_reg_operand
9042 as operand 0 predicate.
9043 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9044 Ditto.
9045 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9046 Ditto. Emit the pattern using RTX.
9047
9048 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9049 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
9050 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
9051 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9052 Ditto.
9053 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9054 sse_reg_operand as operand 0 predicate.
9055
9056 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9057 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
9058 instead of gen_rtx_REG.
9059 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9060 Ditto.
9061
9062 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9063
9064 * function.c (emit_use_return_register_into_block): Delete.
9065 (gen_return_pattern): Delete.
9066 (emit_return_into_block): Delete.
9067 (active_insn_between): Delete.
9068 (convert_jumps_to_returns): Delete.
9069 (emit_return_for_exit): Delete.
9070 (thread_prologue_and_epilogue_insns): Delete all code dealing with
9071 simple_return for shrink-wrapped blocks.
9072 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9073 end of blocks that need one.
9074 (get_unconverted_simple_return): Delete.
9075 (convert_to_simple_return): Delete.
9076 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9077 (convert_to_simple_return): Ditto.
9078
9079 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9080
9081 * cfgcleanup.c (bb_is_just_return): New function.
9082 (try_optimize_cfg): Simplify jumps to return, branches to return,
9083 and branches around return.
9084
9085 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
9086
9087 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9088 branch to a return.
9089
9090 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9091
9092 PR c++/70906
9093 PR c++/70933
9094 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9095 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9096 assert flags & OEP_HASH_CHECK, instead of asserting it
9097 never happens. Handle TARGET_EXPR.
9098 * fold-const.c (operand_equal_p): For hash verification,
9099 or in OEP_HASH_CHECK into flags.
9100
9101 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
9102
9103 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9104 comment.
9105 (compute_samebase_partition_bases): Fix typo.
9106
9107 2016-05-04 Jakub Jelinek <jakub@redhat.com>
9108
9109 * config/i386/sse.md (vec_interleave_highv8sf,
9110 vec_interleave_lowv8sf, vec_interleave_highv4df,
9111 vec_interleave_lowv4df): Remove constraints from expanders.
9112
9113 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9114
9115 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9116
9117 * tree-inline.c (expand_call_inline): Fix path dealing with
9118 making lhs of call statement undefined.
9119
9120 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
9121
9122 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9123 Check availability on NODE, too.
9124 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9125 (cgraph_node::call_for_symbol_and_aliases): Likewise.
9126 (varpool_node::call_for_symbol_and_aliase): Likewise.
9127 * ipa-pure-const.c (add_new_function): Analyze all bodies.
9128 (propagate_pure_const): Propagate across interposable functions, too.
9129 (skip_function_for_local_pure_const): Do not skip interposable bodies
9130 with aliases.
9131 (pass_local_pure_const::execute): Update.
9132
9133 2016-05-04 Marek Polacek <polacek@redhat.com>
9134
9135 * doc/invoke.texi: Document -Wdangling-else.
9136
9137 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9138
9139 * config.gcc: Error out when conflicting multilib is detected. Do not
9140 loop over multilibs since no combination is legal.
9141
9142 2016-05-04 Alan Modra <amodra@gmail.com>
9143
9144 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9145 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9146 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9147 Align .toc.
9148
9149 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
9150
9151 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9152 Clean up p5600 comments.
9153
9154 2016-05-04 Richard Biener <rguenther@suse.de>
9155
9156 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9157 constructor simplifications.
9158 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9159
9160 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
9161
9162 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9163 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9164 result.set_rtx is null instead of aborting.
9165 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9166 Always enable.
9167 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9168 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9169 *mov<mode>_store_postinc): New patterns.
9170
9171 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
9172
9173 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
9174 as commutative. Check both conversions are NOP.
9175 ((A & B) OP (C & B)): Remove.
9176
9177 2016-05-04 Alan Modra <amodra@gmail.com>
9178
9179 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9180
9181 2016-05-04 Alan Modra <amodra@gmail.com>
9182
9183 PR target/70866
9184 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9185 when cr2,3,4 are all fixed regs.
9186
9187 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
9188
9189 PR rtl-optimization/57193
9190 * opts.c (default_options_table): Revert OPT_frename_registers change.
9191 * doc/invoke.texi (-frename-registers, -O2): Likewise.
9192
9193 2016-05-03 Martin Sebor <msebor@redhat.com>
9194
9195 PR c++/66561
9196 * builtins.c (fold_builtin_FILE): New function.
9197 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9198 (fold_builtin_0): Call them.
9199 * gimplify.c (gimplify_call_expr): Remove the handling of
9200 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9201
9202 PR c++/66561
9203 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9204 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9205 constants.
9206
9207 PR c++/66639
9208 * doc/extend.texi (Function Names as Strings): Update __func__,
9209 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9210 constants.
9211
9212 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9213 Richard Biener <rguenther@suse.de>
9214
9215 PR tree-optimization/70916
9216 * tree-if-conv.c: Include cfganal.h.
9217 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9218 and remove_fake_exit_edges around the optimization pass.
9219
9220 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
9221
9222 * cgraph.c (symbol_table::create_edge): Set inline_failed.
9223 (cgraph_edge::make_direct): Likewise.
9224 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9225 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9226 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9227 (CIF_THUNK): New code.
9228 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9229 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9230 (compute_inline_parameters): Set inline_failed for thunks.
9231 (inline_analyze_function): Cleanup.
9232 * ipa-inline.c (can_inline_edge_p): Do not deal with
9233 call_stmt_cannot_inline_p.
9234 (can_early_inline_edge_p): Likewise.
9235 (early_inliner): Initialize inline_failed.
9236 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9237
9238 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
9239
9240 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9241 from nonimm_ssenomem_operand.
9242 (nonimm_ssenomem_operand): New predicate.
9243 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9244 as operand 0 predicate.
9245 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9246 Disable unsupported alternatives using "enabled" attribute.
9247 Use register_ssemem_operand as operand 0 predicate.
9248 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9249
9250 2016-05-03 Marek Polacek <polacek@redhat.com>
9251
9252 PR c/70859
9253 * input.c (expansion_point_location): New function.
9254 * input.h (expansion_point_location): Declare.
9255
9256 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
9257
9258 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9259 occurence with frame_offset_ ones.
9260
9261 2016-05-03 Alan Modra <amodra@gmail.com>
9262
9263 PR rtl-optimization/70890
9264 * ira.c (combine_and_move_insns): When moving def_insn, remove
9265 equivs on use_insn.
9266
9267 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
9268
9269 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9270 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9271 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9272 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9273
9274 2016-05-03 Alan Modra <amodra@gmail.com>
9275
9276 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9277 for SAVE_MULTIPLE/STORE_MULTIPLE.
9278
9279 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9280
9281 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9282 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9283
9284 2016-05-03 Richard Biener <rguenther@suse.de>
9285
9286 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9287 default true.
9288 (gimplify_arg): Likewise.
9289 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9290 re-writing the result to a decl if required.
9291 (internal_get_tmp_var): Add allow_ssa parameter
9292 and override into_ssa with it.
9293 (get_formal_tmp_var): Adjust.
9294 (get_initialized_tmp_var): Add allow_ssa parameter.
9295 (gimplify_arg): Add allow_ssa parameter and avoid generating
9296 SSA names for the result false.
9297 (gimplify_call_expr): If the call may return twice do not
9298 gimplify parameters into SSA.
9299 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9300 (gimplify_modify_expr): Adjust assert. For noreturn calls
9301 with a SSA name LHS adjust its def.
9302 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9303 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9304 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9305 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9306 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
9307 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
9308 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9309 (optimize_target_teams): Do not allow SSA names for clause operands.
9310 (gimplify_expr): Likewise for where we mark the result addressable.
9311 * passes.def (pass_init_datastructures): Remove.
9312 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9313 (rewrite_stmt): Likewise.
9314 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9315 (replace_locals_op): Replace SSA names.
9316 (copy_gimple_seq_and_replace_locals): Init src_cfun.
9317 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9318 * cgraph.c (release_function_body): Free CFG annotations only
9319 when we have a CFG. Simplify.
9320 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9321 force_gimple_operand instead of get_initialized_tmp_var.
9322 * tree-pass.h (make_pass_init_datastructures): Remove.
9323 * tree-ssa.c (execute_init_datastructures): Remove.
9324 (pass_data_init_datastructures): Likewise.
9325 (class pass_init_datastructures): Likewise.
9326 (make_pass_init_datastructures): Likewise.
9327 * omp-low.c (create_omp_child_function): Init SSA data structures.
9328 (grid_expand_target_grid_body): Likewise.
9329 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9330 name before adding it to names_to_release.
9331 (remove_bb): Always release SSA defs.
9332 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9333 before dereferencing it.
9334 * cgraphunit.c (init_lowered_empty_function): Always
9335 int SSA data structures.
9336 * tree-ssanames.c (release_defs): Remove assert that we are in
9337 SSA form.
9338 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9339
9340 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9341 Uros Bizjak <ubizjak@gmail.com>
9342
9343 PR rtl-optimization/70467
9344 * config/i386/predicates.md (x86_64_hilo_int_operand,
9345 x86_64_hilo_general_operand): New predicates.
9346 * config/i386/constraints.md (Wd): New constraint.
9347 * config/i386/i386.md (mode attr di): Use Wd instead of e.
9348 (general_hilo_operand): New mode attr.
9349 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9350 instead of <general_operand>.
9351 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9352 x86_64_hilo_general_operand instead of <general_operand>.
9353
9354 2016-05-03 Jakub Jelinek <jakub@redhat.com>
9355
9356 PR tree-optimization/70916
9357 * tree-if-conv.c (constant_or_ssa_name): Removed.
9358 (fold_build_cond_expr): Use is_gimple_val instead of
9359 constant_or_ssa_name.
9360
9361 PR tree-optimization/70916
9362 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9363 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9364
9365 PR target/49244
9366 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9367 (optimize_atomic_bit_test_and): New function.
9368 (pass_fold_builtins::execute): Use it.
9369 * optabs.def (atomic_bit_test_and_set_optab,
9370 atomic_bit_test_and_complement_optab,
9371 atomic_bit_test_and_reset_optab): New optabs.
9372 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9373 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9374 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9375 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9376 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9377 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9378 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9379 * doc/md.texi (atomic_bit_test_and_set@var{mode},
9380 atomic_bit_test_and_complement@var{mode},
9381 atomic_bit_test_and_reset@var{mode}): Document.
9382 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9383 atomic_bit_test_and_complement<mode>,
9384 atomic_bit_test_and_reset<mode>): New expanders.
9385 (atomic_bit_test_and_set<mode>_1,
9386 atomic_bit_test_and_complement<mode>_1,
9387 atomic_bit_test_and_reset<mode>_1): New insns.
9388
9389 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
9390
9391 PR rtl-optimization/70687
9392 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
9393 instead of unsigned HOST_WIDE_INT.
9394
9395 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
9396
9397 PR rtl-optimization/44281
9398 * hard-reg-set.h (struct target_hard_regs): New field
9399 x_fixed_nonglobal_reg_set.
9400 (fixed_nonglobal_reg_set): New macro.
9401 * reginfo.c (init_reg_sets_1): Initialize it.
9402 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9403 of fixed_reg_set.
9404 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9405
9406 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9407
9408 PR tree-optimization/56541
9409 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9410 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9411 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9412 (any_complicated_phi): new static variable.
9413 (aggressive_if_conv): delete.
9414 (if_convertible_phi_p): support phis with more than two arguments.
9415 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9416 critical pred edges.
9417 (ifcvt_split_critical_edges): support phis with more than two
9418 arguments by checking new parameter. only split critical edges
9419 if needed.
9420 (tree_if_conversion): handle simd pragma marked loop using new
9421 local variable aggressive_if_conv. check any_complicated_phi.
9422
9423 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9424
9425 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9426 before using it.
9427
9428 2016-05-03 Bin Cheng <bin.cheng@arm.com>
9429
9430 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9431 cbase.
9432
9433 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
9434
9435 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9436 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9437 define_insn_and_split.
9438 (mulsi3_i): New define_insn_and_split.
9439 (mulsi3_call): Convert to define_insn.
9440 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9441 Remove constraints.
9442
9443 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9444
9445 * machmode.h (mode_complex): Add support to give the complex mode
9446 for a given mode.
9447 (GET_MODE_COMPLEX_MODE): Likewise.
9448 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9449 stored by build_complex_type and gfc_build_complex_type instead of
9450 trying to figure out the appropriate mode based on the size. Raise
9451 an assertion error, if the type was not set.
9452 * genmodes.c (struct mode_data): Add field for the complex type of
9453 the given type.
9454 (blank_mode): Likewise.
9455 (make_complex_modes): Remember the complex mode created in the
9456 base type.
9457 (emit_mode_complex): Write out the mode_complex array to map a
9458 type mode to the complex version.
9459 (emit_insn_modes_c): Likewise.
9460 * tree.c (build_complex_type): Set the complex type to use before
9461 calling layout_type.
9462 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9463 support for __float128 complex datatypes.
9464 (rs6000_hard_regno_mode_ok): Likewise.
9465 (rs6000_setup_reg_addr_masks): Likewise.
9466 (rs6000_complex_function_value): Likewise.
9467 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9468 __float128 and __ibm128 complex.
9469 (FLOAT128_IBM_P): Likewise.
9470 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9471 * doc/extend.texi (Additional Floating Types): Document that
9472 -mfloat128 must be used to enable __float128. Document complex
9473 __float128 and __ibm128 support.
9474
9475 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR target/49244
9478 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9479 char/short arguments promoted to int because of promote_prototypes.
9480
9481 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9482
9483 * config/i386/predicates.md (register_ssemem_operand): New predicate.
9484 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9485 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9486 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
9487 alternatives using "enabled" attribute. Use register_ssemem_operand
9488 as operand 1 predicate.
9489 (*cmpi<unord>xf_i387): Split XFmode pattern from
9490 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9491 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9492 *absneg<mode>2_i387. Disable unsupported alternatives using
9493 "enabled" attribute.
9494 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9495
9496 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9497
9498 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9499 marker.
9500 (oacc_loop_process): Check mask for loop termination.
9501
9502 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9503
9504 * cif-code.def (CIF_THUNK): Add.
9505 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9506 accidental change.
9507
9508 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
9509
9510 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9511 (dump_inline_summary): Dump it.
9512 (fp_expression_p): New predicate.
9513 (estimate_function_body_sizes): Use it.
9514 (inline_merge_summary): Merge fp_expressions.
9515 (inline_read_section): Read fp_expressions.
9516 (inline_write_summary): Write fp_expressions.
9517 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9518 codegen boundary if either caller or callee is !fp_expressions.
9519 * ipa-inline.h (inline_summary): Add fp_expressions.
9520 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9521 to fp_expressions be sure the fp generation flags are updated.
9522
9523 2016-05-02 Jakub Jelinek <jakub@redhat.com>
9524
9525 PR rtl-optimization/70467
9526 * cse.c (cse_insn): Handle no-op MEM moves after folding.
9527
9528 PR rtl-optimization/70467
9529 * ipa-pure-const.c (check_call): Handle internal calls even in
9530 ipa mode like in local mode.
9531
9532 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
9533
9534 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9535
9536 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9537
9538 * match.pd (X u< X, X u> X): New transformations.
9539
9540 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
9541
9542 * flag-types.h (enum warn_strict_overflow_code): Move ...
9543 * coretypes.h: ... here.
9544 * fold-const.h (fold_overflow_warning): Declare.
9545 * fold-const.c (fold_overflow_warning): Make non-static.
9546 (fold_comparison): Move the transformation of X +- C1 CMP C2
9547 into X CMP C2 -+ C1 ...
9548 * match.pd: ... here.
9549 * gimple-fold.c (fold_stmt_1): Protect with
9550 fold_defer_overflow_warnings.
9551
9552 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
9553
9554 * omp-low.c (struct oacc_loop): Add 'inner' field.
9555 (new_oacc_loop_raw): Initialize it to zero.
9556 (oacc_loop_fixed_partitions): Initialize it.
9557 (oacc_loop_auto_partitions): Partition outermost loop to outermost
9558 available partitioning.
9559
9560 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9561
9562 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9563 register_operand.
9564 (umulsidi3): Likewise.
9565 (indirect_jump): Fix jump instruction assembly patterns.
9566
9567 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
9568
9569 PR target/70860
9570 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9571 (nvptx_function_value): Assert non-NULL cfun.
9572
9573 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
9574
9575 PR rtl-optimization/70886
9576 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9577
9578 * cselib.h (rtx_equal_for_cselib_1): Declare.
9579 (rtx_equal_for_cselib_p: New inline function.
9580 * cselib.c (rtx_equal_for_cselib_p): Delete.
9581 (rtx_equal_for_cselib_1): Make public.
9582
9583 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
9584
9585 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9586 (register_mixssei387nonimm_operand): Remove predicate.
9587 * config/i386/i386.md (*fop_<mode>_comm): Merge from
9588 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
9589 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
9590 for TARGET_MIX_SSE_I387 alternatives.
9591 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9592 Disable unsupported alternatives using "enabled" attribute. Use
9593 nonimm_ssenomem_operand as operand 1 predicate. Also check
9594 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9595
9596 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9597
9598 * tree.c (cst_and_fits_in_hwi): Simplify.
9599
9600 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9601
9602 * tree.h (wi::to_wide): New function.
9603 * expr.c (expand_expr_real_1): Use wi::to_wide.
9604 * fold-const.c (int_const_binop_1): Likewise.
9605 (extract_muldiv_1): Likewise.
9606
9607 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9608
9609 * wide-int.h: Update offset_int and widest_int documentation.
9610 (WI_SIGNED_SHIFT_RESULT): New macro.
9611 (wi::binary_shift): Define signed_shift_result_type for
9612 shifts on offset_int- and widest_int-like types.
9613 (generic_wide_int): Support <<= and >>= if << and >> are supported.
9614 * tree.h (int_bit_position): Use shift operators instead of wi::
9615 shifts.
9616 * alias.c (adjust_offset_for_component_ref): Likewise.
9617 * expr.c (get_inner_reference): Likewise.
9618 * fold-const.c (fold_comparison): Likewise.
9619 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9620 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9621 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9622 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9623 (stmt_kills_ref_p): Likewise.
9624 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9625 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9626 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9627 (ao_ref_init_from_vn_reference): Likewise.
9628
9629 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
9630
9631 * wide-int.h: Update offset_int and widest_int documentation.
9632 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9633 (wi::binary_traits): Allow ordered comparisons between offset_int and
9634 offset_int, between widest_int and widest_int, and between either
9635 of these types and basic C types.
9636 (operator <, <=, >, >=): Define for the same combinations.
9637 * tree.h (tree_int_cst_lt): Use comparison operators instead
9638 of wi:: comparisons.
9639 (tree_int_cst_le): Likewise.
9640 * gimple-fold.c (fold_array_ctor_reference): Likewise.
9641 (fold_nonarray_ctor_reference): Likewise.
9642 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9643 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9644 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9645 * tree-sra.c (completely_scalarize): Likewise.
9646 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9647 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9648 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9649 (check_for_binary_op_overflow): Likewise.
9650 (search_for_addr_array): Likewise.
9651 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9652
9653 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9654
9655 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9656 (arc_save_restore): Likewise.
9657 (arc_dwarf_register_span): Likewise.
9658 (arc_output_pic_addr_const): Initialize suffix variable.
9659
9660 2016-05-02 Martin Liska <mliska@suse.cz>
9661
9662 * symbol-summary.h (function_summary::function_summary):
9663 Remove checking assert for all cgraph nodes.
9664 (function_summary::get): Check summary_uid.
9665 (symtab_insertion): Check summary_uid.
9666
9667 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
9668
9669 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9670 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9671 bmaskn instruction.
9672 (arc_dwarf_register_span): Remove enum keyword.
9673 (compact_memory_operand_p): New function.
9674 * config/arc/arc.h (reg_class): Add code density register classes.
9675 (REG_CLASS_NAMES): Likewise.
9676 (REG_CLASS_CONTENTS): Likewise.
9677 * config/arc/arc.md (*movqi_insn): Add code density instructions.
9678 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9679 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9680 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9681 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9682 constraints.
9683 (h, Rcd, Rsd, Rzd): New register constraints.
9684 (T): Use compact_memory_operand_p function.
9685 * config/arc/predicates.md (compact_load_memory_operand): Remove.
9686
9687 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9688
9689 * config/sh/sh.md (*negnegt, *movtt): Remove.
9690
9691 2016-05-02 Marek Polacek <polacek@redhat.com>
9692 Tom de Vries <tom@codesourcery.com>
9693
9694 PR tree-optimization/70700
9695 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9696 bigger than FIRST_REF_NODE.
9697
9698 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
9699
9700 PR target/52898
9701 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9702 TARGET_CMPEQDI_T.
9703 (prepare_cbranch_operands): Don't use scratch register. Assume that
9704 function is used when pseudos can be created.
9705 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
9706 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9707 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9708 define_expand. Allow it only when pseudos can be created.
9709 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9710
9711 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
9712
9713 * config/i386/constraints.md (BC): Only allow -1 operands.
9714 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9715 Add "enabled" attribute. Update XI mode attribute calculation.
9716 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9717 (*movoi_internal_avx): Update XI mode attribute calculation.
9718 (*movti_internal): Ditto.
9719
9720 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9721
9722 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9723 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9724
9725 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
9726
9727 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9728 statement on instruction code. Remove trailing spaces.
9729 (altivec_expand_stv_builtin): Likewise.
9730
9731 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9732
9733 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9734 (TARGET_FPU_DOUBLE): Simplify.
9735 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9736 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9737 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9738 with 'TARGET_FPU_DOUBLE'.
9739 * config/sh/sh.md: Likewise.
9740
9741 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
9742
9743 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9744 SH_DIV_STR_FOR_SIZE): Remove.
9745 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9746 SH_DIV_STR_FOR_SIZE): Remove.
9747
9748 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9749
9750 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9751 logical_reg_operand): Delete.
9752 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9753 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9754 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9755 match_operand and match_test.
9756 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
9757 variables on their first use. Return bool values.
9758 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9759 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9760 arith_reg_operand for input operand. Remove empty constraints.
9761 (xorsi3): Delete.
9762 (*xorsi3_compact): Rename to xorsi3.
9763 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9764 (*zero_extend<mode>si2_disp_mem): Update comment.
9765 (mov_nop): Delete.
9766
9767 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9768
9769 * config/sh/t-sh: Remove SH5 support.
9770 * config.gcc: Likewise.
9771 * configure: Likewise.
9772
9773 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9774
9775 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9776
9777 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
9778
9779 * config/sh/sh.c (register_sh_passes, sh_option_override,
9780 sh_print_operand, prepare_move_operands,
9781 sh_can_follow_jump): Remove TARGET_SH1 checks.
9782 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9783 PROMOTE_MODE): Likewise.
9784 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9785 movdi): Likewise.
9786
9787 2016-04-30 Alan Modra <amodra@gmail.com>
9788
9789 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9790 restoring when fixed_reg_p, but allow out-of-line or stmw save.
9791 Check for user regs later to avoid unnecessary looping over regs.
9792 Merge user reg check with non-saved reg check. Don't force
9793 inline VR restore when static chain used.
9794 (rs6000_frame_related): Omit eh_frame info for user regs when
9795 saving.
9796 (fixed_regs_p): Delete.
9797
9798 2016-04-30 Alan Modra <amodra@gmail.com>
9799
9800 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9801 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
9802 Update all uses.
9803
9804 2016-04-30 Alan Modra <amodra@gmail.com>
9805
9806 PR target/69645
9807 * config/rs6000/rs6000.c (fixed_reg_p): New function.
9808 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
9809 Update all uses.
9810
9811 2016-04-30 Alan Modra <amodra@gmail.com>
9812
9813 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9814 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
9815 flag_pic test for Darwin.
9816
9817 2016-04-30 Alan Modra <amodra@gmail.com>
9818
9819 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9820 throw_calls_crossed.
9821 (REG_FREQ_CALLS_CROSSED): Delete.
9822 (REG_N_THROWING_CALLS_CROSSED): Delete.
9823 * regstat.c (regstat_bb_compute_ri): Don't calculate
9824 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9825 (dump_reg_info): Don't print call cross frequency.
9826 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9827 and REG_N_THROWING_CALLS_CROSSED.
9828
9829 2016-04-30 Alan Modra <amodra@gmail.com>
9830
9831 * regs.h (struct reg_info_t): Delete live_length.
9832 (REG_LIVE_LENGTH): Delete macro.
9833 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9834 local_live, local_processed and local_live_last_luid params.
9835 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
9836 Formatting fixes.
9837 (regstat_compute_ri): Adjust for above. Don't set
9838 REG_LIVE_LENGTH.
9839 (dump_reg_info): Don't print live length.
9840 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9841 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
9842 Localize loop_depth var.
9843
9844 2016-04-30 Alan Modra <amodra@gmail.com>
9845
9846 * ira.c (enum valid_equiv): New.
9847 (validate_equiv_mem): Return enum.
9848 (update_equiv_mem): Create replacement in more cases.
9849 (add_store_equivs): Update validate_equiv_mem call.
9850
9851 2016-04-30 Alan Modra <amodra@gmail.com>
9852
9853 * ira.c (combine_and_move_insns): Rather than scanning insns,
9854 use DF infrastucture to find use and def insns.
9855
9856 2016-04-30 Alan Modra <amodra@gmail.com>
9857
9858 ira.c (combine_and_move_insns): Move invariant conditions..
9859 (ira.c): ..to here. Call combine_and_move_insns before
9860 add_store_equivs. Call grow_reg_equivs later. Allocate
9861 req_equiv later using max_reg_num() rather than global max_regno.
9862 (contains_replace_regs): Delete.
9863 (add_store_equivs): Remove contains_replace_regs test.
9864
9865 2016-04-30 Alan Modra <amodra@gmail.com>
9866
9867 * ira.c (struct equiv_mem_data): New.
9868 (equiv_mem, equiv_mem_modified): Delete static vars.
9869 (validate_equiv_mem_from_store): Use "data" param to communicate..
9870 (validate_equiv_mem): ..from here.
9871
9872 2016-04-30 Alan Modra <amodra@gmail.com>
9873
9874 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9875 split out from..
9876 (update_reg_equivs): ..here. Move allocation and freeing of
9877 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9878 end_alias_analysis to..
9879 (ira): ..here.
9880
9881 2016-04-30 Alan Modra <amodra@gmail.com>
9882
9883 * ira.c (pdx_subregs): Delete.
9884 (struct equivalence): Add pdx_subregs field.
9885 (set_paradoxical_subreg): Remove pdx_subregs param. Update
9886 pdx_subregs access.
9887 (update_equiv_regs): Don't create or free pdx_subregs. Update
9888 pdx_subregs access.
9889
9890 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9891
9892 * config/rs6000/altivec.h: Change definitions of vec_xl and
9893 vec_xst.
9894 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9895 (LD_ELEMREV_V2DI): New.
9896 (LD_ELEMREV_V4SF): New.
9897 (LD_ELEMREV_V4SI): New.
9898 (LD_ELEMREV_V8HI): New.
9899 (LD_ELEMREV_V16QI): New.
9900 (ST_ELEMREV_V2DF): New.
9901 (ST_ELEMREV_V2DI): New.
9902 (ST_ELEMREV_V4SF): New.
9903 (ST_ELEMREV_V4SI): New.
9904 (ST_ELEMREV_V8HI): New.
9905 (ST_ELEMREV_V16QI): New.
9906 (XL): New.
9907 (XST): New.
9908 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9909 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9910 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9911 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9912 (altivec_expand_builtin): Add handling for
9913 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9914 (rs6000_invalid_builtin): Add error-checking for
9915 RS6000_BTM_P9_VECTOR.
9916 (altivec_init_builtins): Define builtins used to implement vec_xl
9917 and vec_xst.
9918 (rs6000_builtin_mask_names): Define power9-vector.
9919 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9920 (RS6000_BTM_P9_VECTOR): Define.
9921 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9922 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9923 (vsx_ld_elemrev_v2df): Likewise.
9924 (vsx_ld_elemrev_v4sf): Likewise.
9925 (vsx_ld_elemrev_v4si): Likewise.
9926 (vsx_ld_elemrev_v8hi): Likewise.
9927 (vsx_ld_elemrev_v16qi): Likewise.
9928 (vsx_st_elemrev_v2df): Likewise.
9929 (vsx_st_elemrev_v2di): Likewise.
9930 (vsx_st_elemrev_v4sf): Likewise.
9931 (vsx_st_elemrev_v4si): Likewise.
9932 (vsx_st_elemrev_v8hi): Likewise.
9933 (vsx_st_elemrev_v16qi): Likewise.
9934 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
9935 grammar.
9936
9937 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
9938
9939 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9940 out into ...
9941 (simplify_control_stmt_condition_1): ... here. Recurse into
9942 BIT_AND_EXPRs and BIT_IOR_EXPRs.
9943
9944 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
9945
9946 PR target/69810
9947 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9948 (zero_extendqi<mode>2_dot): Revert earlier conversion from
9949 define_insn_and_split to define_insn.
9950 (zero_extendqi<mode>2_dot2): Same.
9951 (extendqi<mode>2_dot): Same.
9952 (extendqi<mode>2_dot2): Same.
9953
9954 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9955
9956 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9957 (probe_stack): New expander.
9958 (probe_stack_<mode>): New insn pattern.
9959
9960 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9961
9962 * config/i386/i386.md
9963 (operations with memory inputs setting flags peephole2):
9964 Remove uneeded REG_P checks. Cleanup pattern generation.
9965
9966 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
9967
9968 * tree-vect-loop.c (vect_transform_loop): Fix
9969 nb_iterations_upper_bound computation for vectorized loop.
9970
9971 2016-04-29 Marek Polacek <polacek@redhat.com>
9972 Jakub Jelinek <jakub@redhat.com>
9973
9974 PR sanitizer/70342
9975 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9976 TARGET_EXPR_SLOT as a base.
9977
9978 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
9979
9980 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9981 with 'rCm2' constraints to limit possible immediate size.
9982 (*load_zeroextendqisi_update): Likewise.
9983 (*load_signextendqisi_update): Likewise.
9984 (*loadhi_update): Likewise.
9985 (*load_zeroextendhisi_update): Likewise.
9986 (*load_signextendhisi_update): Likewise.
9987 (*loadsi_update): Likewise.
9988 (*loadsf_update): Likewise.
9989
9990 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
9991
9992 * config/i386/predicates.md (constm1_operand): Fix comparison.
9993
9994 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
9995
9996 * testsuite/gcc.target/arc/ieee_eq.c: New test.
9997
9998 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
9999
10000 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
10001 remaining SH5 related settings.
10002 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
10003 shmedia_prepare_call_address): Delete.
10004 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
10005 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
10006 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
10007 UNSUPPORTED_SH2A): Remove m5 checks.
10008 (sh_divide_strategy_e): Remove SH5 division strategies.
10009 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
10010 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
10011
10012 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10013
10014 * config/s390/s390.c (s390_rtx_costs): Update documentation.
10015
10016 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10017
10018 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
10019 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
10020 Change lder to ldr.
10021 * config/s390/vector.md ("mov<mode>"): Likewise.
10022
10023 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
10024
10025 * config/s390/constraints.md ("U", "W"): Invoke
10026 s390_mem_constraint with "ZR" and "ZT".
10027 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
10028 addresses when using LRA. Accept also short displacements for S
10029 and T constraints. Do not check for long displacement target for
10030 S and T constraints.
10031 (s390_mem_constraint): Remove handling of U and W constraints.
10032 * config/s390/s390.md (various patterns): Remove the short
10033 displacement constraints (Q and R) if a long displacement
10034 constraint is present. Add longdisp as required CPU capability.
10035 * config/s390/vector.md: Likewise.
10036 * config/s390/vx-builtins.md: Likewise.
10037
10038 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10039
10040 PR target/60040
10041 * reload1.c (reload): Call finish_spills before
10042 restarting reload loop. Skip select_reload_regs
10043 if update_eliminables_and_spill returns true.
10044
10045 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
10046
10047 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10048 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10049 (umulhisi3_imm): Update predicates and constraint letters.
10050 (umulhisi3_reg): Declare instruction as commutative.
10051 * config/arc/constraints.md (J12, J16): New constraints.
10052 * config/arc/predicates.md (short_unsigned_const_operand): New
10053 predicate.
10054 (arc_short_operand): Likewise.
10055 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10056
10057 2016-04-29 Richard Biener <rguenther@suse.de>
10058
10059 PR tree-optimization/13962
10060 PR tree-optimization/65686
10061 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10062 * tree-ssa-alias.c (ptrs_compare_unequal): New function
10063 using PTA to compare pointers.
10064 * match.pd: Add pattern for pointer equality compare simplification
10065 using ptrs_compare_unequal.
10066
10067 2016-04-29 Richard Biener <rguenther@suse.de>
10068
10069 * stor-layout.c (layout_type): Do not build a pointer-to-element
10070 type for arrays.
10071
10072 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
10073
10074 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10075 Use SWI mode iterator. Use general_reg_operand predicate.
10076 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10077 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
10078 predicates.
10079
10080 2016-04-29 Jakub Jelinek <jakub@redhat.com>
10081
10082 PR middle-end/70843
10083 * fold-const.c (operand_equal_p): Don't verify hash value equality
10084 if arg0 == arg1.
10085 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
10086 and OMP_CLAUSE.
10087
10088 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10089
10090 PR target/70858
10091 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10092 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10093 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10094 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10095 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10096
10097 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10098
10099 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10100 to info. Don't initialize separate fields to 0. Clean up
10101 formatting a bit.
10102
10103 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10104
10105 * config/i386/i386.md (peephole2s for operations with memory inputs):
10106 Use SWI mode iterator.
10107 (peephole2s for operations with memory outputs): Ditto.
10108 Do not check for stack checking probe.
10109
10110 (probe_stack): Remove expander.
10111
10112 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10113 Andrew Burgess <andrew.burgess@embecosm.com>
10114
10115 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10116 operands as 32-bits.
10117
10118 2016-04-28 Jason Merrill <jason@redhat.com>
10119
10120 * gdbinit.in: Skip line-map.h.
10121
10122 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10123 Andrew Burgess <andrew.burgess@embecosm.com>
10124
10125 * config/arc/arc.c (arc_conditional_register_usage): Take
10126 TARGET_RRQ_CLASS into account.
10127 (arc_print_operand): Support printing 'p' and 's' operands.
10128 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10129 as 0.
10130 (TARGET_RRQ_CLASS): Define.
10131 (IS_POWEROF2_OR_0_P): Define.
10132 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10133 alternatives.
10134 (*tst_movb): New define_insn.
10135 (*tst): Avoid recognition if it could prevent '*tst_movb'
10136 combination; replace c/CnL with c/Chs alternative.
10137 (*tst_bitfield_tst): New define_insn.
10138 (*tst_bitfield_asr): New define_insn.
10139 (*tst_bitfield): New define_insn.
10140 (andsi3_i): Add Rrq variant.
10141 (extzv): New define_expand.
10142 (insv): New define_expand.
10143 (*insv_i): New define_insn.
10144 (*movb): New define_insn.
10145 (*movb_signed): New define_insn.
10146 (*movb_high): New define_insn.
10147 (*movb_high_signed): New define_insn.
10148 (*movb_high_signed + 1): New define_split pattern.
10149 (*mrgb): New define_insn.
10150 (*mrgb + 1): New define_peephole2 pattern.
10151 (*mrgb + 2): New define_peephole2 pattern.
10152 * config/arc/arc.opt (mbitops): New option for nps400, uses
10153 TARGET_NPS_BITOPS_DEFAULT.
10154 * config/arc/constraints.md (q): Make register class conditional.
10155 (Rrq): New register constraint.
10156 (Chs): New constraint.
10157 (Clo): New constraint.
10158 (Chi): New constraint.
10159 (Cbf): New constraint.
10160 (Cbn): New constraint.
10161 (C18): New constraint.
10162 (Cbi): New constraint.
10163
10164 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10165
10166 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10167 dst->popcount.
10168 (bitmap_intersection_of_preds): Ditto.
10169 (bitmap_union_of_succs): Ditto.
10170 (bitmap_union_of_preds): Ditto.
10171 * sbitmap.c (do_popcount): Delete.
10172 (BITMAP_DEBUGGING): Delete.
10173 (sbitmap_verify_popcount): Delete.
10174 (sbitmap_alloc): Don't initialize the popcount field.
10175 (sbitmap_alloc_with_popcount): Delete.
10176 (sbitmap_resize): Don't resize the popcount array.
10177 (sbitmap_vector_alloc): Don't initialize the popcount field.
10178 (bitmap_copy): Don't copy the popcount array.
10179 (bitmap_clear): Don't clear the popcount array.
10180 (bitmap_clear): Delete the popcount array handling.
10181 (bitmap_ior_and_compl): Delete the popcount assert.
10182 (bitmap_not): Ditto.
10183 (bitmap_and_compl): Ditto.
10184 (bitmap_and): Delete the popcount array handling.
10185 (bitmap_xor): Ditto.
10186 (bitmap_ior): Ditto.
10187 (bitmap_or_and): Delete the popcount assert.
10188 (bitmap_and_or): Ditto.
10189 (popcount_table): Delete.
10190 (sbitmap_elt_popcount): Delete.
10191 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10192 (bitmap_set_bit): Delete the popcount assert.
10193 (bitmap_clear_bit): Ditto.
10194 (sbitmap_free): Don't free the popcount array.
10195 (sbitmap_alloc_with_popcount): Delete declaration.
10196 (sbitmap_popcount): Ditto.
10197
10198 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10199 Andrew Burgess <andrew.burgess@embecosm.com>
10200
10201 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10202 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10203 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10204 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10205 * config/arc/arc.opt (mcmem): New option.
10206 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10207 supply length for r/m alternative.
10208 (*extendqisi2_ac): Likewise.
10209 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10210 r/Uex alternative.
10211 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10212 (movhi_insn): Likewise.
10213 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10214 (*zero_extendqihi2_i): Add r/Ucm alternative.
10215 (*zero_extendqisi2_ac): Likewise.
10216 (*zero_extendhisi2_i): Likewise.
10217 * config/arc/constraints.md (Uex): New memory constraint.
10218 (Ucm): New define_constraint.
10219 * config/arc/predicates.md (long_immediate_loadstore_operand):
10220 Return 0 for MEM with cmem_address address.
10221 (cmem_address_0): New predicates.
10222 (cmem_address_1): Likewise.
10223 (cmem_address_2): Likewise.
10224 (cmem_address): Likewise.
10225
10226 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10227
10228 * config/rs6000/rs6000.c (machine_function): Rename
10229 insn_chain_scanned_p to spe_insn_chain_scanned_p.
10230 (rs6000_stack_info): Adjust.
10231
10232 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
10233 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * config/arc/constraints.md (Usd): Convert to define_constraint.
10236 (Us<): Likewise.
10237 (Us>): Likewise.
10238
10239 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10240
10241 PR target/70821
10242 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10243 Add new peephole2 where the first insn is *mov<mode>_or instead of
10244 *mov<mode>_internal.
10245
10246 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
10247
10248 * tracer.c (bb_seen): Make static.
10249
10250 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
10251
10252 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10253 support, setup defaults.
10254 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10255 * config/arc/arc.c (arc_init): Add NPS400 support.
10256 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10257 (TARGET_ARC700): NPS400 is also an ARC700.
10258 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10259
10260 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
10261
10262 PR target/70668
10263 * config/nds32/nds32.md (casesi): Don't access the operands array
10264 out of bounds.
10265
10266 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10267
10268 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10269 (or $-1,reg peephole2): Ditto.
10270 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10271
10272 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
10273
10274 * doc/extend.texi (Common Function Attributes) [optimize]:
10275 Discourage use of the optimize attribute.
10276
10277 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
10278
10279 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10280 special case builtin.
10281 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10282 ALTIVEC_BUILTIN_VEC_ADDE.
10283 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10284 support for ALTIVEC_BUILTIN_VEC_ADDE.
10285 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10286 for __builtin_vec_adde.
10287
10288 2016-04-28 Jakub Jelinek <jakub@redhat.com>
10289
10290 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10291 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10292
10293 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10294
10295 PR testsuite/70595
10296 * doc/sourcebuild.texi (Effective-Target Keywords, Other
10297 attributes): Document cilkplus_runtime.
10298
10299 2016-04-28 Martin Jambor <mjambor@suse.cz>
10300
10301 * tree-cfg.c (verify_expr): Verify that local declarations belong to
10302 this function. Call verify_expr on MEM_REFs and bases of other
10303 handled_components.
10304
10305 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10306
10307 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10308 for WORD_REGISTER_OPERATIONS to runtime check.
10309
10310 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10311
10312 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10313
10314 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10315
10316 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10317 big-endian compilation.
10318 * config/arc/arc.md (addf3): Likewise.
10319 (subdf3): Likewise.
10320 (muldf3): Likewise.
10321
10322 2016-04-28 Richard Biener <rguenther@suse.de>
10323
10324 PR tree-optimization/70840
10325 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10326 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10327 Mark x * pow(x,c) -> pow(x,c+1) commutative.
10328 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10329
10330 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10331
10332 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10333 and explain why in a comment.
10334
10335 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10336
10337 * config/arc/arc.md (cpu_facility): Add fpx variant.
10338 (subdf3): Prohibit use reverse sub when assist operations option
10339 is enabled.
10340 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10341 instructions only when FPX is enabled.
10342 * testsuite/gcc.target/arc/trsub.c: New test.
10343
10344 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10345
10346 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10347 mult_operator when calculating "type" attribute.
10348 (*fop_<mode>_1_i387): Ditto.
10349 (*fop_xf_1_i387): Ditto.
10350 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10351 Use std::swap to swap operands. Use RTL expressions to generate
10352 converted pattern.
10353
10354 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10355 Joern Rennecke <joern.rennecke@embecosm.com>
10356
10357 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10358 declaration.
10359 (emit_pic_move): Remove.
10360 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10361 * config/arc/arc.c (emit_pic_move): Removed.
10362 (TARGET_HAVE_TLS): Define.
10363 (arc_conditional_register_usage): Test for arc_tp_regno.
10364 (arc_print_operand, arc_print_operand_address): Handle TLS
10365 unspecs.
10366 (arc_needs_pcl_p): New function.
10367 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10368 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10369 (arc_raw_symbolic_reference_mentioned_p): Likewise.
10370 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10371 (arc_legitimize_tls_address): Likewise.
10372 (DTPOFF_ZERO_SYM): Define.
10373 (arc_legitimize_pic_address): Make it static, handle TLS cases.
10374 (arc_output_pic_addr_const): Print TLS unspecs.
10375 (prepare_pic_move): New function, replaces emit_pic_move.
10376 (arc_legitimate_constant_p): Handle TLS unspecs.
10377 (arc_legitimate_address_p): Likewise.
10378 (arc_rewrite_small_data_p): Use assert for TLS constants.
10379 (prepare_move_operands): Use prepare_pic_move.
10380 (arc_legitimize_address): Legitimize tls addresses.
10381 (arc_epilogue_uses): Check for arc_tp_regno.
10382 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10383 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10384 Define.
10385 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10386 Likewise.
10387 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10388 %(arc_tls_extra_start_spec).
10389 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10390 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10391 (EH_USES): Define.
10392 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10393 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10394 (UNSPEC_TLS_OFF): Add.
10395 (R10_REG): Define.
10396 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10397 (get_thread_pointersi): New patterns.
10398 * config/arc/arc.opt (mtp-regno): New option.
10399 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10400 (move_dest_operand): Likewise.
10401 * configure: Regenerate.
10402 * configure.ac: Add arc*-*-* case to test for tls.
10403 * doc/invoke.texi (ARC options): Document mtp-regno.
10404
10405 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
10406
10407 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10408 the new ARC HS SIMD instructions.
10409 (arc_preferred_simd_mode): New function.
10410 (arc_autovectorize_vector_sizes): Likewise.
10411 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10412 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10413 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10414 (arc_init_builtins): Add new SIMD builtin types.
10415 (arc_split_move): Handle 64 bit vector moves.
10416 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10417 (TARGET_PLUS_QMACW): Define.
10418 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10419 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10420 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10421 (VSUBADD4H): New builtins.
10422 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10423 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10424
10425 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
10426 Matthias Klose <doko@debian.org>
10427
10428 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10429
10430 2016-04-28 Richard Biener <rguenther@suse.de>
10431
10432 PR middle-end/70777
10433 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10434 canonicalization.
10435
10436 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
10437
10438 * common/config/sh/sh-common.c: Remove SH5 support.
10439 * config/sh/constraints.md: Likewise.
10440 * config/sh/config/sh/elf.h: Likewise.
10441 * config/sh/linux.h: Likewise.
10442 * config/sh/netbsd-elf.h: Likewise.
10443 * config/sh/predicates.md: Likewise.
10444 * config/sh/sh-c.c: Likewise.
10445 * config/sh/sh-protos.h: Likewise.
10446 * config/sh/sh.c: Likewise.
10447 * config/sh/sh.h: Likewise.
10448 * config/sh/sh.md: Likewise.
10449 * config/sh/sh.opt: Likewise.
10450 * config/sh/sync.md: Likewise.
10451 * config/sh/sh64.h: Delete.
10452 * config/sh/shmedia.h: Likewise.
10453 * config/sh/shmedia.md: Likewise.
10454 * config/sh/sshmedia.h: Likewise.
10455 * config/sh/t-netbsd-sh5-64: Likewise.
10456 * config/sh/t-sh64: Likewise.
10457 * config/sh/ushmedia.h: Likewise.
10458
10459 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
10460
10461 * config/i386/i386.md (sign_extend to memory peephole2s): Use
10462 general_reg_operand instead of register_operand predicate.
10463
10464 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10465
10466 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10467
10468 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
10469
10470 * match.pd (A - B > A, A + B < A): New transformations.
10471
10472 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
10473
10474 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10475 which defaults to true. Emit an outer pair of parentheses only if
10476 EMIT_PARENS. When continuing a chain of && or || (or & or |),
10477 don't emit parentheses for the right-hand operand.
10478
10479 2016-04-27 Jeff Law <law@redhat.com>
10480
10481 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10482
10483 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10484
10485 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10486 (altivec_lvx_<mode>_internal): Document.
10487 (altivec_lvx_<mode>_2op): New define_insn.
10488 (altivec_lvx_<mode>_1op): Likewise.
10489 (altivec_lvx_<mode>_2op_si): Likewise.
10490 (altivec_lvx_<mode>_1op_si): Likewise.
10491 (altivec_stvx_<mode>): Remove.
10492 (altivec_stvx_<mode>_internal): Document.
10493 (altivec_stvx_<mode>_2op): New define_insn.
10494 (altivec_stvx_<mode>_1op): Likewise.
10495 (altivec_stvx_<mode>_2op_si): Likewise.
10496 (altivec_stvx_<mode>_1op_si): Likewise.
10497 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10498 Expand vec_ld and vec_st during parsing.
10499 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10500 changes.
10501 (altivec_expand_stvx_be): Likewise.
10502 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10503 address-masking behavior in RTL.
10504 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10505 address-masking behavior in RTL.
10506 (altivec_expand_builtin): Change builtin code arguments for calls
10507 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10508 (insn_is_swappable_p): Avoid incorrect swap optimization in the
10509 presence of lvx/stvx patterns.
10510 (alignment_with_canonical_addr): New function.
10511 (alignment_mask): Likewise.
10512 (find_alignment_op): Likewise.
10513 (recombine_lvx_pattern): Likewise.
10514 (recombine_stvx_pattern): Likewise.
10515 (recombine_lvx_stvx_patterns): Likewise.
10516 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10517 stvx patterns from expand.
10518 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10519 expansions.
10520 (vector_altivec_store_<mode>): Likewise.
10521
10522 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
10523
10524 * config/aarch64/aarch64.md
10525 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10526 remove the "fp" attributes.
10527 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10528 add the "simd" attributes.
10529 (*movdf_aarch64): Likewise.
10530 (*movtf_aarch64): Remove the "fp" attributes.
10531 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10532 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10533
10534 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10535
10536 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10537 rtx to rtx_code_label *.
10538 * rtl.h (maybe_set_first_label_num): Likewise.
10539
10540 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10541
10542 * df-core.c (df_add_problem): Make the problem param be const.
10543 (df_remove_problem): Make local "problem" be const.
10544 * df-problems.c (problem_RD): Make const.
10545 (problem_LR): Likewise.
10546 (problem_LIVE): Likewise.
10547 (problem_MIR): Likewise.
10548 (problem_CHAIN): Likewise.
10549 (problem_WORD_LR): Likewise.
10550 (problem_NOTE): Likewise.
10551 (problem_MD): Likewise.
10552 * df-scan.c (problem_SCAN): Likewise.
10553 * df.h (struct df_problem): Make field "dependent_problem" be
10554 const.
10555 (struct dataflow): Likewise for field "problem".
10556 (df_add_problem): Make param const.
10557
10558 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10559
10560 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10561 inter-unit moves to/from vector registers are enabled. Do not disable
10562 for TARGET_MMX.
10563
10564 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10565
10566 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10567 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10568 #define to...
10569 (enum df_problem_id): ...this new enum.
10570 (struct df_problem): Convert field "id" from "int" to
10571 enum df_problem_id.
10572
10573 2016-04-27 David Malcolm <dmalcolm@redhat.com>
10574
10575 * rtl.def: Update comment for "things in the instruction chain" to
10576 reflect the removal of the leading "i" field for INSN_UID in
10577 r210360. Fix bogus apostrophe.
10578
10579 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
10580
10581 * config/i386/i386.md
10582 (lea arith with mem operand + setcc peephole2): Set operator mode.
10583
10584 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
10585
10586 PR target/70155
10587 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10588 (dimode_scalar_to_vector_candidate_p): This.
10589 (timode_scalar_to_vector_candidate_p): New function.
10590 (scalar_to_vector_candidate_p): Likewise.
10591 (timode_check_non_convertible_regs): Likewise.
10592 (timode_remove_non_convertible_regs): Likewise.
10593 (remove_non_convertible_regs): Likewise.
10594 (remove_non_convertible_regs): Renamed to ...
10595 (dimode_remove_non_convertible_regs): This.
10596 (scalar_chain::~scalar_chain): Make it virtual.
10597 (scalar_chain::compute_convert_gain): Make it pure virtual.
10598 (scalar_chain::mark_dual_mode_def): Likewise.
10599 (scalar_chain::convert_insn): Likewise.
10600 (scalar_chain::convert_registers): Likewise.
10601 (scalar_chain::add_to_queue): Make it protected.
10602 (scalar_chain::emit_conversion_insns): Likewise.
10603 (scalar_chain::replace_with_subreg): Likewise.
10604 (scalar_chain::replace_with_subreg_in_insn): Likewise.
10605 (scalar_chain::convert_op): Likewise.
10606 (scalar_chain::convert_reg): Likewise.
10607 (scalar_chain::make_vector_copies): Likewise.
10608 (scalar_chain::convert_registers): New pure virtual function.
10609 (class dimode_scalar_chain): New class.
10610 (class timode_scalar_chain): Likewise.
10611 (scalar_chain::mark_dual_mode_def): Renamed to ...
10612 (dimode_scalar_chain::mark_dual_mode_def): This.
10613 (timode_scalar_chain::mark_dual_mode_def): New function.
10614 (timode_scalar_chain::convert_insn): Likewise.
10615 (dimode_scalar_chain::convert_registers): Likewise.
10616 (scalar_chain::compute_convert_gain): Renamed to ...
10617 (dimode_scalar_chain::compute_convert_gain): This.
10618 (scalar_chain::replace_with_subreg): Renamed to ...
10619 (dimode_scalar_chain::replace_with_subreg): This.
10620 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10621 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10622 (scalar_chain::make_vector_copies): Renamed to ...
10623 (dimode_scalar_chain::make_vector_copies): This.
10624 (scalar_chain::convert_reg): Renamed to ...
10625 (dimode_scalar_chain::convert_reg ): This.
10626 (scalar_chain::convert_op): Renamed to ...
10627 (dimode_scalar_chain::convert_op): This.
10628 (scalar_chain::convert_insn): Renamed to ...
10629 (dimode_scalar_chain::convert_insn): This.
10630 (scalar_chain::convert): Call convert_registers.
10631 (convert_scalars_to_vector): Change to scalar_chain pointer to
10632 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10633 in 32-bit mode. Delete scalar_chain pointer. Call
10634 free_dominance_info in 64-bit mode.
10635 (pass_stv::gate): Remove TARGET_64BIT check.
10636 (ix86_option_override): Put the 64-bit STV pass before the CSE
10637 pass.
10638
10639 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
10640
10641 * dwarf2out.h (struct dw_loc_descr_node): Remove the
10642 dw_loc_frame_offset field.
10643 * dwarf2out.c (new_loc_descr): Likewise.
10644 (resolve_args_picking_1): Turn the VISITED hash set into a
10645 FRAME_OFFSET hash map. Use it to associate a frame offset to
10646 visited nodes. Remove uses of the CHECKING_P macro.
10647 (resolve_args_picking): Update call to resolve_args_picking_1.
10648
10649 2016-04-27 Martin Liska <mliska@suse.cz>
10650
10651 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10652 (free_loop_data): Release vuses of groups.
10653
10654 2016-04-27 Bin Cheng <bin.cheng@arm.com>
10655
10656 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10657 instead of redundant use_id and boolean have_use_for.
10658 (struct iv_use): Change sub_id into group_id. Remove field next.
10659 Move fields: related_cands, n_map_members, cost_map and selected
10660 to ...
10661 (struct iv_group): ... here. New structure.
10662 (struct iv_common_cand): Use structure declaration directly.
10663 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10664 (MAX_CONSIDERED_USES): Rename macro to ...
10665 (MAX_CONSIDERED_GROUPS): ... here.
10666 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10667 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10668 (dump_uses): Rename to ...
10669 (dump_groups): ... here. Update all uses.
10670 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10671 (find_induction_variables): Refactor format of dump information.
10672 (record_sub_use): Delete.
10673 (record_use): Update all uses.
10674 (record_group): New function.
10675 (record_group_use, find_interesting_uses_op): Call above functions.
10676 Update all uses.
10677 (find_interesting_uses_cond): Ditto.
10678 (group_compare_offset): New function.
10679 (split_all_small_groups): Rename to ...
10680 (split_small_address_groups_p): ... here. Update all uses.
10681 (split_address_groups): Update all uses.
10682 (find_interesting_uses): Refactor format of dump information.
10683 (add_candidate_1): Update all uses. Remove redundant check on iv,
10684 base and step.
10685 (add_candidate, record_common_cand): Remove redundant assert.
10686 (add_iv_candidate_for_biv): Update use.
10687 (add_iv_candidate_derived_from_uses): Update all uses.
10688 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10689 (alloc_use_cost_map): Ditto.
10690 (set_use_iv_cost, get_use_iv_cost): Rename to ...
10691 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
10692 (determine_use_iv_cost_generic): Ditto.
10693 (determine_group_iv_cost_generic): Ditto.
10694 (determine_use_iv_cost_address): Ditto.
10695 (determine_group_iv_cost_address): Ditto.
10696 (determine_use_iv_cost_condition): Ditto.
10697 (determine_group_iv_cost_cond): Ditto.
10698 (determine_use_iv_cost): Ditto.
10699 (determine_group_iv_cost): Ditto.
10700 (set_autoinc_for_original_candidates): Update all uses.
10701 (find_iv_candidates): Update all uses. Refactor dump information.
10702 (determine_use_iv_costs): Ditto.
10703 (determine_iv_costs): Ditto.
10704 (iv_ca_cand_for_use): Rename to ...
10705 (iv_ca_cand_for_group): ... here. Update all uses.
10706 (iv_ca_add_use, iv_ca_add_group): Ditto.
10707 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10708 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10709 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10710 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10711 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10712 (create_new_iv, adjust_iv_update_pos): Ditto.
10713 (rewrite_use_address): Delete.
10714 (rewrite_use_address_1): Rename to ...
10715 (rewrite_use_address): ... here.
10716 (rewrite_use_compare): Update all uses.
10717 (rewrite_use): Delete.
10718 (rewrite_uses): Rename to ...
10719 (rewrite_groups): ... here. Update all uses.
10720 (remove_unused_ivs, free_loop_data): Update all uses.
10721 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10722
10723 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10724
10725 * rtlanal.c (nonzero_bits1): Convert preprocessor check
10726 for WORD_REGISTER_OPERATIONS to runtime check.
10727
10728 2016-04-27 Richard Biener <rguenther@suse.de>
10729
10730 PR ipa/70760
10731 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10732 aggregate_value_p to determine if a function result is
10733 returned by reference.
10734 (ipa_pta_execute): Functions having their address taken are
10735 not automatically nonlocal.
10736
10737 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10738
10739 PR sanitizer/70683
10740 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10741 * fold-const.c (operand_equal_p): If flag_checking and
10742 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10743 and if it returns non-zero, assert iterative_hash_expr on both
10744 args is the same.
10745
10746 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10747
10748 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10749
10750 2016-04-27 Nick Clifton <nickc@redhat.com>
10751
10752 PR middle-end/49889
10753 * varasm.c (merge_weak): Generate an error if an attempt is made
10754 to convert a non-weak static function into a weak, public function.
10755
10756 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10757
10758 * params.def (MAX_PARTITION_SIZE): New param.
10759 * doc/invoke.texi: Document lto-max-partition.
10760
10761 2016-04-27 Richard Biener <rguenther@suse.de>
10762
10763 PR ipa/70785
10764 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10765 function cummulating used_from_other_partition, externally_visible
10766 and force_output from aliases.
10767 (refered_from_nonlocal_var): Likewise.
10768 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10769 node flags properly.
10770
10771 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
10772
10773 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10774 (-Wmemset-elt-size): New item.
10775
10776 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
10777
10778 PR ada/70759
10779 * stor-layout.h (internal_reference_types): Delete.
10780 * stor-layout.c (reference_types_internal): Likewise.
10781 (internal_reference_types): Likewise.
10782 (layout_type) <REFERENCE_TYPE>: Adjust.
10783
10784 2016-04-27 Jakub Jelinek <jakub@redhat.com>
10785
10786 PR sanitizer/70683
10787 * tree.h (inchash::add_expr): Add FLAGS argument.
10788 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
10789 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
10790 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10791 Formatting fix. Adjust recursive calls. For tcc_comparison,
10792 if swap_tree_comparison (code) is smaller than code, hash that
10793 and arguments in the other order. Hash CONVERT_EXPR the same
10794 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10795 of ADDR_EXPR of decl as the decl itself. Add or remove
10796 OEP_ADDRESS_OF from recursive flags as needed. For
10797 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10798 operands commutatively and only the third one normally.
10799 For internal CALL_EXPR hash in CALL_EXPR_IFN.
10800
10801 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
10802
10803 * config/rtems.h (LIB_SPEC): Add -latomic.
10804
10805 2016-04-27 Joel Sherrill <joel@rtems.org>
10806
10807 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10808 xilink.ld and flags not relevant to RTEMS.
10809
10810 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
10811
10812 * toplev.c (backend_init_target): Avoid calling init_reload when using
10813 LRA.
10814
10815 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10816
10817 * reorg.c (try_merge_delay_insns): Declare i and j inside the
10818 for loops rather than one for the whole function.
10819
10820 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10821
10822 * match.pd (X + CST CMP X): New transformation.
10823
10824 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
10825
10826 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10827 * fold-const.c (fold_binary_loc): Remove 2 transformations
10828 superseded by match.pd.
10829 * match.pd (x+x -> x*2): Generalize to integers.
10830
10831 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
10832
10833 * config/i386/i386.md (operation on memory peephole): Duplicate an
10834 existing peephole and adapt it to match lea rather than an operation
10835 that clobbers CC.
10836
10837 PR rtl-optimization/57193
10838 * opts.c (default_options_table): Add OPT_frename_registers at -O2
10839 and above.
10840 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10841
10842 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10843
10844 * tree-if-conv.c (any_pred_load_store): New static variable.
10845 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
10846 any_pred_load_store instead of and_mask_load_store.
10847 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10848 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10849 (combine_blocks, tree_if_conversion): Ditto.
10850
10851 2016-04-26 Bin Cheng <bin.cheng@arm.com>
10852
10853 PR tree-optimization/70771
10854 PR tree-optimization/70775
10855 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10856 virtual PHI nodes. Delete parameter.
10857 (if_convertible_loop_p_1): Delete argument to above function.
10858 (predicate_all_scalar_phis): Delete code handling single-argument
10859 PHIs.
10860 (tree_if_conversion): Mark and update virtual SSA.
10861
10862 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10863
10864 PR target/61821
10865 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10866 (x86_elf_aligned_common): Rename to ...
10867 (x86_elf_aligned_decl_common): ... this.
10868 Add decl arg. Switch to .lbss for largecomm object. Use
10869 LARGECOMM_SECTION_ASM_OP.
10870 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10871 renaming.
10872 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10873 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10874 Pass new decl arg.
10875 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10876 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10877
10878 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10879
10880 PR target/59407
10881 * config/i386/i386.c (SECTION_LARGE): Define.
10882 (x86_64_elf_select_section): Set it for large data/bss sections.
10883 Only clear SECTION_WRITE for .lrodata.
10884 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10885 data/bss sections.
10886 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10887 * varasm.c (default_elf_asm_named_section): Grow flagchars.
10888 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10889 SECTION_MACH_DEP.
10890 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10891 * doc/tm.texi: Regenerate.
10892
10893 2016-04-26 Jakub Jelinek <jakub@redhat.com>
10894
10895 PR bootstrap/70704
10896 * configure.ac (--enable-checking): Document extra flag, for
10897 non-release builds default to --enable-checking=yes,extra.
10898 If misc checking and extra checking, define CHECKING_P to 2 instead
10899 of 1.
10900 * common.opt (fchecking=): Add.
10901 * doc/invoke.texi (-fchecking=): Document.
10902 * doc/install.texi: Document --enable-checking changes.
10903 * configure: Regenerated.
10904 * config.in: Regenerated.
10905
10906 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10907
10908 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10909 attribute instead of which_alternative.
10910 * config/i386/sse.md (*mov<mode>_internal): Ditto.
10911 Use EXT_REX_SSE_REG_P where appropriate.
10912
10913 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10914
10915 * config/i386/predicates.md (const0_operand): Do not match
10916 const_wide_int code.
10917 (const1_operand): Ditto.
10918
10919 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10920
10921 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10922 for SSE constm1 operands and TARGET_AVX512VL.
10923 (*movti_internal): Ditto.
10924 (*mov<mode>_or): Use constm1_operand predicate.
10925 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10926 for SSE vector_all_ones operands and TARGET_AVX512VL.
10927 * config/i386/predicates.md (constm1_operand): New predicate.
10928 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10929 emission of constant -1 load.
10930
10931 2016-04-25 Jason Merrill <jason@redhat.com>
10932
10933 * gdbinit.in: Skip is-a.h.
10934
10935 * attribs.c (register_scoped_attributes): Fix logic.
10936 * attribs.h: Declare register_scoped_attributes.
10937
10938 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10939
10940 * config/rs6000/rs6000-builtin.def: Correct pasto error for
10941 stxvd2x and stxvw4x built-in functions.
10942
10943 2016-04-25 DJ Delorie <dj@redhat.com>
10944
10945 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10946 (ashrhi3): Likewise.
10947 (lshrhi3): Likewise.
10948
10949 2016-04-25 Richard Biener <rguenther@suse.de>
10950
10951 PR tree-optimization/70780
10952 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10953 wasn't visited yet.
10954 (compute_antic): Mark blocks with abnormal preds as visited as
10955 they have a final empty antic-in solution already.
10956
10957 2016-04-25 Michael Collison <michael.collison@linaro.org>
10958
10959 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10960
10961 2016-04-25 Michael Collison <michael.collison@linaro.org>
10962
10963 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10964 mode is VQI to improve mixed mode vectorization.
10965 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10966 define_insn to match low half of signed vaddw.
10967 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10968 define_insn to match high half of signed vaddw.
10969 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10970 define_insn to match low half of unsigned vaddw.
10971 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10972 define_insn to match high half of unsigned vaddw.
10973 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10974 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10975 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10976 for new function.
10977 (arm_simd_check_vect_par_cnst_half_p): Likewise.
10978 * config/arm/predicates.md (vect_par_constant_high): Support
10979 big endian and simplify by calling
10980 arm_simd_check_vect_par_cnst_half
10981 (vect_par_constant_low): Likewise.
10982
10983 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
10984
10985 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10986 predicate for operand 2.
10987
10988 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
10989 H.J. Lu <hongjiu.lu@intel.com>
10990
10991 * config/i386/i386-protos.h (standard_sse_constant_p): Add
10992 machine_mode argument.
10993 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10994 constm1_rtx operands. For VOIDmode constants, get mode from
10995 pred_mode. Check mode size if the mode is supported by ABI.
10996 (standard_sse_constant_opcode): Do not use standard_constant_p.
10997 Strictly check ABI support for all-ones operands.
10998 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10999 immediates. Update calls to standard_sse_constant_p.
11000 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
11001 (ix86_rtx_costs): Ditto.
11002 * config/i386/i386.md (*movxi_internal_avx512f): Use
11003 nonimmediate_or_sse_const_operand instead of vector_move_operand.
11004 Use (v,BC) alternative instead of (v,C). Use register_operand
11005 checks instead of MEM_P.
11006 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
11007 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
11008 isa attribute. Use register_operand checks instead of MEM_P.
11009 (*movti_internal): Use nonimmediate_or_sse_const_operand for
11010 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
11011 alternative and corresponding sse2 isa attribute.
11012 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
11013 to standard_sse_constant_p.
11014 (FP constant splitters): Ditto.
11015 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
11016 (C): Ditto.
11017 * config/i386/predicates.md (constm1_operand): Remove.
11018 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
11019 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
11020 vector_all_ones_operand instead of constm1_operand.
11021
11022 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11023
11024 * print-rtl.c (print_rtx_insn_vec): New function.
11025 * print-rtl.h: New prototype.
11026 * store-motion.c (struct st_expr): Make avail_stores a vector.
11027 (st_expr_entry): Adjust.
11028 (free_st_expr_entry): Likewise.
11029 (print_store_motion_mems): Likewise.
11030 (find_moveable_store): Likewise.
11031 (compute_store_table): Likewise.
11032 (delete_store): Likewise.
11033 (build_store_vectors): Likewise.
11034
11035 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11036
11037 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11038
11039 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11040
11041 * vec.h (vec_safe_contains): New function.
11042 (vec::contains): Likewise.
11043 (vec::begin): Likewise.
11044 (vec::end): Likewise.
11045
11046 2016-04-23 Jakub Jelinek <jakub@redhat.com>
11047
11048 PR sanitizer/70712
11049 * cfgexpand.c (expand_stack_vars): Fix typo.
11050
11051 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11052
11053 * system.h (list, map, set, vector): Include conditionally.
11054 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11055 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11056 * ipa-icf.c (INCLUDE_LIST): Define.
11057 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11058 * config/sh/sh.c (INCLUDE_VECTOR): Define.
11059 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11060 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11061 * cp/logic.cc (INCLUDE_LIST): Define.
11062 * fortran/trans-common.c (INCLUDE_MAP): Define.
11063
11064 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
11065
11066 * auto-profile.c: Remove <string.h> include.
11067 * ipa-icf-gimple.c: Remove <list> include.
11068 * diagnostic.c: Remove <new> include.
11069 * genmatch.c: Likewise.
11070 * pretty-print.c: Likewise.
11071 * toplev.c: Likewise
11072 * c/c-objc-common.c: Likewise.
11073 * cp/error.c: Likewise.
11074 * fortran/error.c: Likewise.
11075
11076 2016-04-22 Richard Biener <rguenther@suse.de>
11077
11078 * lto-streamer-in.c (input_ssa_names): Do not allocate
11079 GIMPLE_NOP for all SSA names.
11080 * lto-streamer-out.c (output_ssa_names): Do not output
11081 SSA names that should have been released.
11082
11083 2016-04-22 Richard Biener <rguenther@suse.de>
11084
11085 PR tree-optimization/70740
11086 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11087 VDEF.
11088
11089 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
11090
11091 PR target/70750
11092 * config/i386/predicates.md (call_insn_operand): Replace
11093 sibcall_memory_operand with memory_operand.
11094
11095 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
11096
11097 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11098 has_single_use() tests.
11099 (register_edge_assert_for_1): Likewise.
11100 (find_assert_locations_1): Check the liveness bitmap instead of
11101 checking has_single_use().
11102
11103 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
11104
11105 PR target/70728
11106 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11107 Extract AVX-512BW constraint from AVX.
11108
11109 2016-04-21 Richard Biener <rguenther@suse.de>
11110
11111 PR tree-optimization/70725
11112 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11113 for phi_convertible_by_degenerating_args.
11114 (predicate_all_scalar_phis): Handle single-argument PHIs.
11115
11116 2016-04-21 Richard Biener <rguenther@suse.de>
11117
11118 PR middle-end/70747
11119 * fold-const.c (fold_comparison): Return properly typed
11120 constant boolean.
11121
11122 2016-04-21 Bin Cheng <bin.cheng@arm.com>
11123
11124 PR tree-optimization/70715
11125 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11126 after expanding BASE using expand_simple_operations.
11127
11128 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11129
11130 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11131 New transformations.
11132
11133 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
11134
11135 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11136
11137 2016-04-20 Jan Hubicka <jh@suse.cz>
11138
11139 * ipa-inline.c (can_inline_edge_p): Pass caller info to
11140 ultiimate_alias_target.
11141 (update_callee_keys): Likewise.
11142 (lookup_recursive_calls): Likewise.
11143 (speculation_useful_p): Likewise.
11144
11145 2016-04-20 Jan Hubicka <jh@suse.cz>
11146
11147 PR ipa/70018
11148 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11149 (set_nothrow_flag_1): ... this; handle interposition correctly;
11150 recurse on aliases and thunks.
11151 (cgraph_node::set_nothrow_flag): New.
11152 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11153 functions compiled with non-call exceptions that binds to current
11154 def.
11155 (propagate_nothrow): Be safe WRT interposition.
11156 * cgraph.h (set_nothrow_flag): Update prototype.
11157
11158 2016-04-18 Jan Hubicka <jh@suse.cz>
11159
11160 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11161 max_loop_iterations_int.
11162 (tree_unswitch_outer_loop): Likewise.
11163
11164 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11165
11166 PR tree-optimization/69489
11167 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11168 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11169 Revise dump message.
11170 (if_convertible_bb_p): Remove check on edge count of basic block's
11171 predecessors.
11172
11173 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11174
11175 PR tree-optimization/56625
11176 PR tree-optimization/69489
11177 * tree-data-ref.h (DR_INNERMOST): New macro.
11178 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11179 hashing struct innermost_loop_behavior.
11180 (ref_DR_map): Remove.
11181 (innermost_DR_map): New map.
11182 (baseref_DR_map): Revise comment.
11183 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11184 to innermost_DR_map accroding to its innermost loop behavior.
11185 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11186 to its innermost loop behavior.
11187 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11188 Add initialization for innermost_DR_map. Record memory reference
11189 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11190 have innermost loop behavior.
11191 (if_convertible_loop_p): Remove release for ref_DR_map. Release
11192 innermost_DR_map.
11193
11194 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
11195
11196 * config/i386/i386.md (*lea<mode>_general_1): Rename from
11197 *lea_general_1. Use explicit SWI12 mode interator.
11198 (*lea<mode>_general_2): Rename from *lea_general_2.
11199 Use explicit SWI12 mode interator.
11200 (*lea<mode>_general_3): Rename from *lea_general_3.
11201 Use explicit SWI12 mode interator.
11202 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11203 Use explicit SWI12 mode interator.
11204 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11205 Use explicit SWI48 mode interator.
11206
11207 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11208
11209 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11210 Short-cut unaligned load and store cases. Handle all integer
11211 vector modes.
11212 (ix86_expand_vector_move_misalign): Short-cut unaligned load
11213 and store cases. Call ix86_avx256_split_vector_move_misalign
11214 directly without checking mode class.
11215
11216 2016-04-20 Andrew Pinski <apinski@cavium.com>
11217 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11218
11219 PR target/64971
11220 * config/aarch64/aarch64.md (sibcall): Force call
11221 address to be DImode for ILP32.
11222 (sibcall_value): Likewise.
11223
11224 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
11225
11226 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11227
11228 2016-04-20 Richard Biener <rguenther@suse.de>
11229
11230 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11231 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11232 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11233 (maybe_push_res_to_seq): Adjust.
11234 * gimple-fold.c (maybe_build_generic_op): Likewise.
11235
11236 2016-04-20 Marek Polacek <polacek@redhat.com>
11237
11238 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11239 rather than true.
11240
11241 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
11242
11243 * config/i386/sse.md (vec_unpacks_lo_hi): Always
11244 use kmovw to support AVX512F target.
11245
11246 2016-04-20 Bin Cheng <bin.cheng@arm.com>
11247
11248 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11249
11250 2016-04-20 Marek Polacek <polacek@redhat.com>
11251
11252 PR tree-optimization/70725
11253 * tree-if-conv.c (is_false_predicate): New function.
11254 (predicate_mem_writes): Use it.
11255
11256 2016-04-20 Richard Biener <rguenther@suse.de>
11257
11258 PR tree-optimization/70726
11259 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11260 shift amounts from a pattern stmt operand.
11261
11262 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11263
11264 PR target/70674
11265 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11266 stack_restore_from_fpr pattern when restoring r15.
11267 (s390_optimize_prologue): Strip away the memory barrier in the
11268 parallel when trying to get rid of restore insns.
11269 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11270 definition for loading the stack pointer from an FPR. Compared to
11271 the normal move insn this pattern includes a full memory barrier.
11272
11273 2016-04-19 Jakub Jelinek <jakub@redhat.com>
11274
11275 PR middle-end/70680
11276 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11277 implicitly linear or lastprivate iterator on the outer context.
11278
11279 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11280
11281 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11282 alignment check.
11283 * config/i386/i386.md (ssememalign): Removed.
11284 * config/i386/sse.md: Remove ssememalign attribute from patterns.
11285
11286 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
11287
11288 PR target/69201
11289 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11290 const short * to __builtin_ia32_loaddquhi512_mask.
11291 (_mm512_maskz_loadu_epi16): Likewise.
11292 (_mm512_mask_storeu_epi16): Pass short * to
11293 __builtin_ia32_storedquhi512_mask.
11294 (_mm512_mask_loadu_epi8): Pass const char * to
11295 __builtin_ia32_loaddquqi512_mask.
11296 (_mm512_maskz_loadu_epi8): Likewise.
11297 (_mm512_mask_storeu_epi8): Pass char * to
11298 __builtin_ia32_storedquqi512_mask.
11299 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11300 const double * to __builtin_ia32_loadupd512_mask.
11301 (_mm512_mask_loadu_pd): Likewise.
11302 (_mm512_maskz_loadu_pd): Likewise.
11303 (_mm512_storeu_pd): Pass double * to
11304 __builtin_ia32_storeupd512_mask.
11305 (_mm512_mask_storeu_pd): Likewise.
11306 (_mm512_loadu_ps): Pass const float * to
11307 __builtin_ia32_loadups512_mask.
11308 (_mm512_mask_loadu_ps): Likewise.
11309 (_mm512_maskz_loadu_ps): Likewise.
11310 (_mm512_storeu_ps): Pass float * to
11311 __builtin_ia32_storeups512_mask.
11312 (_mm512_mask_storeu_ps): Likewise.
11313 (_mm512_mask_loadu_epi64): Pass const long long * to
11314 __builtin_ia32_loaddqudi512_mask.
11315 (_mm512_maskz_loadu_epi64): Likewise.
11316 (_mm512_mask_storeu_epi64): Pass long long *
11317 to __builtin_ia32_storedqudi512_mask.
11318 (_mm512_loadu_si512): Pass const int * to
11319 __builtin_ia32_loaddqusi512_mask.
11320 (_mm512_mask_loadu_epi32): Likewise.
11321 (_mm512_maskz_loadu_epi32): Likewise.
11322 (_mm512_storeu_si512): Pass int * to
11323 __builtin_ia32_storedqusi512_mask.
11324 (_mm512_mask_storeu_epi32): Likewise.
11325 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11326 char * to __builtin_ia32_storedquqi256_mask.
11327 (_mm_mask_storeu_epi8): Likewise.
11328 (_mm256_mask_loadu_epi16): Pass const short * to
11329 __builtin_ia32_loaddquhi256_mask.
11330 (_mm256_maskz_loadu_epi16): Likewise.
11331 (_mm_mask_loadu_epi16): Pass const short * to
11332 __builtin_ia32_loaddquhi128_mask.
11333 (_mm_maskz_loadu_epi16): Likewise.
11334 (_mm256_mask_loadu_epi8): Pass const char * to
11335 __builtin_ia32_loaddquqi256_mask.
11336 (_mm256_maskz_loadu_epi8): Likewise.
11337 (_mm_mask_loadu_epi8): Pass const char * to
11338 __builtin_ia32_loaddquqi128_mask.
11339 (_mm_maskz_loadu_epi8): Likewise.
11340 (_mm256_mask_storeu_epi16): Pass short * to.
11341 __builtin_ia32_storedquhi256_mask.
11342 (_mm_mask_storeu_epi16): Pass short * to.
11343 __builtin_ia32_storedquhi128_mask.
11344 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11345 const double * to __builtin_ia32_loadupd256_mask.
11346 (_mm256_maskz_loadu_pd): Likewise.
11347 (_mm_mask_loadu_pd): Pass onst double * to
11348 __builtin_ia32_loadupd128_mask.
11349 (_mm_maskz_loadu_pd): Likewise.
11350 (_mm256_mask_storeu_pd): Pass double * to
11351 __builtin_ia32_storeupd256_mask.
11352 (_mm_mask_storeu_pd): Pass double * to
11353 __builtin_ia32_storeupd128_mask.
11354 (_mm256_mask_loadu_ps): Pass const float * to
11355 __builtin_ia32_loadups256_mask.
11356 (_mm256_maskz_loadu_ps): Likewise.
11357 (_mm_mask_loadu_ps): Pass const float * to
11358 __builtin_ia32_loadups128_mask.
11359 (_mm_maskz_loadu_ps): Likewise.
11360 (_mm256_mask_storeu_ps): Pass float * to
11361 __builtin_ia32_storeups256_mask.
11362 (_mm_mask_storeu_ps): ass float * to
11363 __builtin_ia32_storeups128_mask.
11364 (_mm256_mask_loadu_epi64): Pass const long long * to
11365 __builtin_ia32_loaddqudi256_mask.
11366 (_mm256_maskz_loadu_epi64): Likewise.
11367 (_mm_mask_loadu_epi64): Pass const long long * to
11368 __builtin_ia32_loaddqudi128_mask.
11369 (_mm_maskz_loadu_epi64): Likewise.
11370 (_mm256_mask_storeu_epi64): Pass long long * to
11371 __builtin_ia32_storedqudi256_mask.
11372 (_mm_mask_storeu_epi64): Pass long long * to
11373 __builtin_ia32_storedqudi128_mask.
11374 (_mm256_mask_loadu_epi32): Pass const int * to
11375 __builtin_ia32_loaddqusi256_mask.
11376 (_mm256_maskz_loadu_epi32): Likewise.
11377 (_mm_mask_loadu_epi32): Pass const int * to
11378 __builtin_ia32_loaddqusi128_mask.
11379 (_mm_maskz_loadu_epi32): Likewise.
11380 (_mm256_mask_storeu_epi32): Pass int * to
11381 __builtin_ia32_storedqusi256_mask.
11382 (_mm_mask_storeu_epi32): Pass int * to
11383 __builtin_ia32_storedqusi128_mask.
11384 * config/i386/i386-builtin-types.def (PCSHORT): New.
11385 (PINT64): Likewise.
11386 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11387 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11388 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11389 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11390 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11391 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11392 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11393 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11394 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11395 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11396 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11397 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11398 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11399 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11400 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11401 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11402 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11403 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11404 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11405 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11406 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11407 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11408 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11409 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11410 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11411 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11412 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11413 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11414 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11415 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11416 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11417 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11418 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11419 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11420 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11421 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11422 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11423 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11424 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11425 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11426 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11427 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11428 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11429 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11430 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11431 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11432 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11433 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11434 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11435 use UNSPEC_STOREU.
11436 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11437 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11438 load nor store.
11439 (ix86_expand_vector_move_misalign): Likewise.
11440 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11441 to scalar function prototype for unaligned load/store builtins.
11442 (ix86_expand_special_args_builtin): Updated.
11443 * config/i386/sse.md (UNSPEC_LOADU): Removed.
11444 (UNSPEC_STOREU): Likewise.
11445 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11446 (VI_ULOADSTORE_F_AVX512VL): Likewise.
11447 (ssescalarsize): Handle V4TI, V2TI and V1TI.
11448 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11449 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11450 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11451 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11452 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11453 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11454 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11455 (<avx512>_storedqu<mode>_mask): Likewise.
11456 (*sse4_2_pcmpestr_unaligned): Likewise.
11457 (*sse4_2_pcmpistr_unaligned): Likewise.
11458 (*mov<mode>_internal): Renamed to ...
11459 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
11460 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11461 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11462 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11463
11464 2016-04-19 Richard Biener <rguenther@suse.de>
11465
11466 PR tree-optimization/70171
11467 * tree-ssa-phiprop.c: Include stor-layout.h.
11468 (phiprop_insert_phi): Handle the aggregate copy case.
11469 (propagate_with_phi): Likewise.
11470
11471 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
11472
11473 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11474 instead of simplify_gen_subreg (... , 0).
11475 (ix86_delegitimize_address): Ditto.
11476 (ix86_split_divmod): Ditto.
11477 (ix86_split_copysign_const): Ditto.
11478 (ix86_split_copysign_var): Ditto.
11479 (ix86_expand_args_builtin): Ditto.
11480 (ix86_expand_round_builtin): Ditto.
11481 (ix86_expand_special_args_builtin): Ditto.
11482 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11483 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11484 (udivmodqi4): Ditto.
11485 (absneg splitters): Ditto.
11486 (*jcc_bt<mode>_1): Ditto.
11487
11488 2016-04-19 Richard Biener <rguenther@suse.de>
11489
11490 PR tree-optimization/70724
11491 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11492 restoring out from ...
11493 (free_scc_vn): ... here.
11494 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11495 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11496 tail merging.
11497 (pass_fre::execute): Restore SSA info.
11498
11499 2016-04-19 Richard Biener <rguenther@suse.de>
11500
11501 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11502 * gimple-walk.c (walk_gimple_op): Initialize it.
11503 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11504 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11505 remapping SSA names of defs.
11506 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11507 adjustment.
11508
11509 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
11510
11511 PR middle-end/70689
11512 * lra-constraints.c (equiv_substition_p): New.
11513 (process_alt_operands): Use it.
11514 (swap_operands): Swap it.
11515 (curr_insn_transform): Update it.
11516
11517 2016-04-18 Michael Matz <matz@suse.de>
11518
11519 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11520 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11521 * tree-core.h (tree_type_common.align): Use bit-field.
11522 (tree_type_common.spare): New.
11523 (tree_decl_common.off_align): Make smaller.
11524 (tree_decl_common.align): Use bit-field.
11525
11526 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11527 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11528 (scan_sharing_clauses): Ditto.
11529 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11530 (omp_finish_file): Ditto.
11531 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11532 (layout_decl): Ditto.
11533 (relayout_decl): Ditto.
11534 (finalize_record_size): Use SET_TYPE_ALIGN.
11535 (finalize_type_size): Ditto.
11536 (finish_builtin_struct): Ditto.
11537 (layout_type): Ditto.
11538 (initialize_sizetypes): Ditto.
11539 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11540 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11541 (lookup_field_for_decl): Use SET_DECL_ALIGN.
11542 (get_chain_field): Ditto.
11543 (get_trampoline_type): Ditto.
11544 (get_nl_goto_field): Ditto.
11545 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11546 SET_DECL_ALIGN.
11547 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11548 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11549 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11550 (build_qualified_type): Use SET_TYPE_ALIGN.
11551 (build_aligned_type, build_range_type_1): Ditto.
11552 (build_atomic_base): Ditto.
11553 (build_common_tree_nodes): Ditto.
11554 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11555 (expand_one_stack_var_at): Ditto.
11556 * coverage.c (build_var): Use SET_DECL_ALIGN.
11557 * except.c (init_eh): Ditto.
11558 * function.c (assign_parm_setup_block): Ditto.
11559 * symtab.c (increase_alignment_1): Ditto.
11560 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11561 * tree-vect-stmts.c (ensure_base_align): Ditto.
11562 * varasm.c (align_variable): Ditto.
11563 (assemble_variable): Ditto.
11564 (build_constant_desc): Ditto.
11565 (output_constant_def_contents): Ditto.
11566
11567 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11568 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11569 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11570 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11571 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11572
11573 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
11574
11575 PR target/70708
11576 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11577 replace %vmovsd with "%vmovq".
11578 (vec_concatv2df): Likewise.
11579
11580 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
11581
11582 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11583 (*vec_extractv2si_0): Ditto.
11584 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11585 (zero_extended_scalar_load_operand splitters): Ditto.
11586 (vec_extract splitters): Ditto.
11587 (*vec_extractv4si_0_zext): Ditto.
11588 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11589 and lowpart_subreg.
11590 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11591 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11592 (*sse4_1_extractps): Use lowpart_subreg.
11593 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11594
11595 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11596
11597 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11598 gld requirements.
11599 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11600 Mention Solaris 11 packaging changes.
11601 Update gas and gld requirements.
11602 Remove reference to pre-Solaris 10 bug.
11603 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11604 systems and bugs.
11605 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11606 with cc.
11607
11608 2016-04-17 Jan Hubicka <jh@suse.cz>
11609
11610 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11611 max_loop_iterations_int.
11612
11613 2016-04-18 Richard Biener <rguenther@suse.de>
11614
11615 PR tree-optimization/43434
11616 * tree-ssa-structalias.c (struct vls_data): New.
11617 (visit_loadstore): Handle all pointer-based accesses.
11618 (compute_dependence_clique): Compute a bitmap of restrict tags
11619 assigned bases and pass it to visit_loadstore.
11620
11621 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
11622
11623 PR target/70711
11624 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11625 armv8.1-a and armv8.1-a+crc.
11626
11627 2016-04-18 Richard Biener <rguenther@suse.de>
11628
11629 PR tree-optimization/70701
11630 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11631 references after translating through a memcpy.
11632
11633 2016-04-18 Richard Biener <rguenther@suse.de>
11634
11635 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11636 (compute_antic): ... here. For partial antic use regular
11637 postorder and scrap iteration.
11638 (compute_partial_antic_aux): Remove unused return value.
11639 (init_pre): Do not allocate postorder.
11640 (fini_pre): Do not free postorder.
11641
11642 2016-04-18 Richard Biener <rguenther@suse.de>
11643
11644 PR middle-end/37870
11645 * expmed.c (extract_bit_field_1): Remove broken case
11646 using a wider MODE_INT mode.
11647
11648 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
11649
11650 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11651 unless compiling with at least GCC-4.8.
11652
11653 2016-04-17 Jan Hubicka <jh@suse.cz>
11654
11655 PR bootstrap/70706
11656 * graphite.c (graphite_finalize): Update call to
11657 tree_estimate_probability.
11658 * predict.h (tree_estimate_probability): Update prototype.
11659
11660 2016-04-17 Jan Hubicka <jh@suse.cz>
11661
11662 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11663 (tree_estimate_probability): Likewise.
11664 (pass_profile::execute): Update.
11665 (report_predictor_hitrates): New function.
11666 * profile.c (compute_branch_probabilities): Use it.
11667 * predict.h (report_predictor_hitrates): Declare.
11668
11669 2016-04-17 Jan Hubicka <jh@suse.cz>
11670
11671 PR ipa/70018
11672 * cgraph.h (cgraph_node::set_const_flag,
11673 cgraph_node::set_pure_flag): Update prototype to return bool;
11674 update comment.
11675 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11676 of interposable symbol are interposable, too.
11677 (cgraph_set_const_flag_1): Rename to ...
11678 (set_const_flag_1): ... this one; change to self recursive function
11679 instead of call_for_symbol_thunks_and_aliases. Handle correctly
11680 clearnig the flag in all variants and also virtual thunks of const
11681 functions are pure; track if any change was done.
11682 (cgraph_node::set_const_flag): Update.
11683 (struct set_pure_flag_info): New struct.
11684 (cgraph_set_pure_flag_1): Rename to ...
11685 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11686 rather than pointer encoded flags; track if any changes was done;
11687 handle correctly clearning flag and setting flag of aliases already
11688 declared const.
11689 (cgraph_node::set_pure_flag): Update.
11690 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11691
11692 2016-04-17 Tom de Vries <tom@codesourcery.com>
11693
11694 PR other/70433
11695 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11696 backslash in label.
11697
11698 2016-04-17 Tom de Vries <tom@codesourcery.com>
11699
11700 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11701 '{}<> ' as escape-for-record.
11702
11703 2016-04-17 Tom de Vries <tom@codesourcery.com>
11704
11705 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11706 structure.
11707
11708 2016-04-17 Tom de Vries <tom@codesourcery.com>
11709
11710 PR other/70185
11711 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11712 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11713 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11714 * passes.c (finish_optimization_passes): Only call
11715 finish_graph_dump_file if dfi->graph_dump_initialized.
11716 (execute_function_dump, pass_init_dump_file): Use
11717 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11718
11719 2016-04-17 Tom de Vries <tom@codesourcery.com>
11720
11721 PR tree-optimization/70256
11722 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11723 (debug_varmap): New function.
11724
11725 2016-04-17 Tom de Vries <tom@codesourcery.com>
11726
11727 PR other/70183
11728 * passes.c (pass_manager::register_pass): Propagate pflags.
11729
11730 2016-04-17 Tom de Vries <tom@codesourcery.com>
11731
11732 PR other/68875
11733 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11734 * passes.c (pass_manager::pass_manager): Declare and init p_start in
11735 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
11736 check if it's equal to p_start.
11737 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11738
11739 2016-04-15 Jan Hubicka <jh@suse.cz>
11740
11741 PR ipa/70018
11742 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11743 function does not bind to current def.
11744 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11745 handle conservatively calls to functions that does not need to bind
11746 to current def.
11747 (check_call): Update call of worse_state.
11748 (ignore_edge_for_nothrow): Update.
11749 (ignore_edge_for_pure_const): Likewise.
11750 (propagate_pure_const): Update calls to worse_state.
11751 (skip_function_for_local_pure_const): Reformat comments.
11752
11753 2016-04-15 Jan Hubicka <jh@suse.cz>
11754
11755 PR ipa/70018
11756 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11757 (cgraph_node::function_symbol): Likewise.
11758 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11759 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11760 (symtab_node::ultimate_alias_target): Add REF parameter.
11761 (symtab_node::binds_to_current_def_p): Declare.
11762 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11763 (cgraph_node::function_symbol): Likewise.
11764 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11765 (cgraph_node::get_availability): Likewise.
11766 (cgraph_edge::binds_to_current_def_p): New inline function.
11767 (varpool_node::get_availability): Add REF parameter.
11768 (varpool_node::ultimate_alias_target): Likewise.
11769 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11770 (symtab_node::binds_to_current_def_p): Likewise.
11771 * varpool.c (varpool_node::get_availability): Likewise.
11772
11773 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11774
11775 PR target/70662
11776 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11777 Fix mode size check.
11778
11779 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11780
11781 * BASE-VER: Set to 7.0.0.
11782
11783 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
11784
11785 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11786
11787 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11788
11789 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11790 architecture revisions.
11791
11792 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
11793
11794 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11795 * config/i386/i386.c (ix86_using_red_zone): No longer static.
11796 * config/i386/i386.md (stack decrement to push peepholes): Guard
11797 with !x86_using_red_zone ().
11798
11799 2016-04-15 Jakub Jelinek <jakub@redhat.com>
11800
11801 PR c++/70675
11802 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11803 to dump_generic_node.
11804 (NIY): Pass also flags to do_niy.
11805
11806 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
11807
11808 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11809 (simd_clone_vector_of_formal_parm_types)
11810 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11811 (simd_clone_mangle, simd_clone_create)
11812 (simd_clone_adjust_return_type, create_tmp_simd_array)
11813 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11814 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11815 (ipa_simd_modify_function_body, simd_clone_linear_addend)
11816 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11817 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11818 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11819 * omp-simd-clone.c: ... this new file.
11820 (simd_clone_vector_of_formal_parm_types): Make it static.
11821 * Makefile.in (OBJS): Add omp-simd-clone.o.
11822
11823 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
11824
11825 PR target/70662
11826 * config/i386/sse.md: Use proper memory operand modifiers.
11827
11828
11829 2016-04-15 Richard Biener <rguenther@suse.de>
11830 Alan Modra <amodra@gmail.com>
11831
11832 PR tree-optimization/70130
11833 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11834 when alignment stays not the same and no not use the realign
11835 scheme then.
11836
11837 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11838
11839 PR target/70669
11840 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11841 direct move handlers for KFmode. Change TFmode handlers test from
11842 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11843
11844 2016-04-14 Jakub Jelinek <jakub@redhat.com>
11845
11846 PR c++/70594
11847 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11848 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11849 (inlined_polymorphic_ctor_dtor_block_p): Use it.
11850 * tree-ssa-live.c (remove_unused_scope_block_p): When
11851 in_ctor_dtor_block, avoid discarding not just BLOCKs with
11852 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11853 block_ultimate_origin is FUNCTION_DECL.
11854 (remove_unused_locals): If current_function_decl is
11855 polymorphic_ctor_dtor_p, pass initial true to
11856 remove_unused_scope_block_p' is_ctor_dtor_block.
11857
11858 2016-04-14 Martin Sebor <msebor@redhat.com>
11859
11860 PR c++/69517
11861 PR c++/70019
11862 PR c++/70588
11863 * doc/extend.texi (Variable Length): Revert.
11864
11865 2016-04-14 Marek Polacek <polacek@redhat.com>
11866 Jan Hubicka <hubicka@ucw.cz>
11867
11868 PR c++/70029
11869 * tree.c (verify_type): Disable the canonical type of main variant
11870 check.
11871
11872 2016-04-14 Jason Merrill <jason@redhat.com>
11873
11874 * cfgexpand.c, expr.c: Revert previous change.
11875
11876 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
11877
11878 PR middle-end/70643
11879 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11880 when building a mem ref for the incoming reduction variable.
11881
11882 2016-04-14 Richard Biener <rguenther@suse.de>
11883
11884 PR tree-optimization/70614
11885 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11886 loop if the evolution dropped to chrec_dont_know.
11887 (interpret_condition_phi): Likewise.
11888
11889 2016-04-14 Richard Biener <rguenther@suse.de>
11890
11891 PR tree-optimization/70623
11892 * tree-ssa-pre.c (changed_blocks): Make global ...
11893 (compute_antic): ... local here. Move and fix worklist
11894 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11895 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
11896 worklist handling, dump when ANTIC_IN changed.
11897 (compute_partial_antic_aux): Remove worklist handling.
11898 (init_pre): Do not compute post dominators. Add a comment about
11899 the CFG order chosen.
11900 (fini_pre): Do not free post dominators.
11901
11902 2016-04-13 Martin Sebor <msebor@redhat.com>
11903
11904 PR c++/69517
11905 PR c++/70019
11906 PR c++/70588
11907 * doc/extend.texi (Variable Length): Document C++ specifics.
11908
11909 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11910
11911 PR c++/70641
11912 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11913 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
11914 eh edges have been purged.
11915
11916 PR c++/70594
11917 * tree-sra.c (create_access_replacement,
11918 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11919 gets fancy name.
11920 * tree-pretty-print.c (dump_fancy_name): New function.
11921 (dump_decl_name, dump_generic_node): Use it.
11922
11923 2016-04-13 Jason Merrill <jason@redhat.com>
11924
11925 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11926 * expr.c (expand_expr_real_1): Likewise.
11927
11928 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
11929
11930 * config/i386/i386.md (kunpckhi): Swap operands.
11931 (kunpcksi): Likewise.
11932 (kunpckdi): Likewise.
11933 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11934 (vec_pack_trunc_<mode>): Likewise.
11935
11936 2016-04-13 Jakub Jelinek <jakub@redhat.com>
11937
11938 PR debug/70628
11939 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11940
11941 PR middle-end/70633
11942 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11943 gimplification turns some element into non-constant.
11944
11945 PR debug/70628
11946 * rtl.h (convert_memory_address_addr_space_1): New prototype.
11947 * explow.c (convert_memory_address_addr_space_1): No longer static,
11948 add NO_EMIT argument and don't call convert_modes if true, pass
11949 it down recursively, remove break after return.
11950 (convert_memory_address_addr_space): Adjust caller.
11951 * simplify-rtx.c (simplify_unary_operation_1): Call
11952 convert_memory_address_addr_space_1 instead of convert_memory_address,
11953 if it returns NULL, don't simplify.
11954
11955 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
11956
11957 PR target/70630
11958 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11959
11960 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11961
11962 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11963 Bump the upper SIMDLEN limits, so that if the return type or
11964 characteristic type if the return type is void can be passed in
11965 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11966 allowed.
11967
11968 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11969
11970 PR target/70640
11971 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11972 Do not use "=" constraint on an input constraint.
11973 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11974 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11975 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11976 generates (neg (abs ...)) instead of (abs ...).
11977
11978 2016-04-12 Jakub Jelinek <jakub@redhat.com>
11979
11980 PR rtl-optimization/70596
11981 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11982 just invalidate LRA data and reset them. Adjust dump wording.
11983
11984 2016-04-12 Martin Liska <mliska@suse.cz>
11985
11986 Revert
11987 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
11988
11989 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11990 estimates here.
11991 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11992 max_loop_iterations_int.
11993 (tree_unswitch_outer_loop): Likewise.
11994 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11995 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11996
11997 2016-04-12 Tom de Vries <tom@codesourcery.com>
11998
11999 PR tree-optimization/68756
12000 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
12001 instead of new_name.
12002
12003 2016-04-12 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR tree-optimization/70602
12006 * tree-sra.c (generate_subtree_copies): Don't write anything into
12007 constant pool decls.
12008
12009 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
12010 regardless whether there are depend clauses or not.
12011
12012 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12013
12014 PR target/70381
12015 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
12016 target attribute and pragma from changing the -mfloat128
12017 and -mfloat128-hardware options.
12018
12019 * doc/extend.texi (Additional Floating Types): Document PowerPC
12020 __float128 restrictions.
12021
12022 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12023
12024 PR target/70133
12025 * config/aarch64/driver-aarch64.c
12026 (aarch64_get_extension_string_for_isa_flags): New.
12027 (arch_extension): Rename to...
12028 (aarch64_arch_extension): ...This.
12029 (ext_to_feat_string): Rename to...
12030 (aarch64_extensions): ...This.
12031 (aarch64_core_data): Keep track of architecture extension flags.
12032 (cpu_data): Rename to...
12033 (aarch64_cpu_data): ...This.
12034 (aarch64_arch_driver_info): Keep track of architecture extension
12035 flags.
12036 (get_arch_name_from_id): Rename to...
12037 (get_arch_from_id): ...This, change return type.
12038 (host_detect_local_cpu): Update and reformat for renames, handle
12039 extensions through common infrastructure.
12040
12041 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12042
12043 PR target/70133
12044 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12045 track of a canonical flag name.
12046 (all_extensions): Likewise.
12047 (arch_to_arch_name): Also track extension flags enabled by the arch.
12048 (all_architectures): Likewise.
12049 (aarch64_parse_extension): Move to here.
12050 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12051 rework.
12052 (aarch64_rewrite_selected_cpu): Update for above change.
12053 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12054 are handled, such that the single explicit value enabled by an
12055 extension is kept seperate from the implicit values it also enables.
12056 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12057 to here.
12058 (aarch64_parse_extension): New.
12059 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12060 here to config/aarch64/aarch64-protos.h.
12061 (aarch64_parse_extension): Move from here to
12062 common/config/aarch64/aarch64-common.c.
12063 (aarch64_option_print): Update.
12064 (aarch64_declare_function_name): Likewise.
12065 (aarch64_start_file): Likewise.
12066 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12067 the canonical flag for extensions.
12068 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12069 flags.
12070
12071 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
12072
12073 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12074 AARCH64_FL_CRC.
12075
12076 2016-04-09 Tom de Vries <tom@codesourcery.com>
12077
12078 PR tree-optimization/68953
12079 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12080 first to last subscript.
12081
12082 2016-04-09 Jakub Jelinek <jakub@redhat.com>
12083
12084 PR tree-optimization/70586
12085 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12086 for any calls.
12087
12088 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
12089
12090 PR lto/70289
12091 PR ipa/70348
12092 PR tree-optimization/70373
12093 PR middle-end/70533
12094 PR middle-end/70534
12095 PR middle-end/70535
12096 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12097 clauses for acc parallel reductions as necessary. Error on those
12098 that are private.
12099 * omp-low.c (scan_sharing_clauses): Don't install variables which
12100 are used in acc parallel reductions.
12101 (lower_rec_input_clauses): Remove dead code.
12102 (lower_oacc_reductions): Add support for reference reductions.
12103 (lower_reduction_clauses): Remove dead code.
12104 (lower_omp_target): Don't remap variables appearing in acc parallel
12105 reductions.
12106 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12107
12108 2016-04-08 Jakub Jelinek <jakub@redhat.com>
12109
12110 PR middle-end/70593
12111 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12112 with multiple SSA_NAME defs, force the outputs other than first
12113 to be live before calling live_track_process_def on each output.
12114
12115 PR rtl-optimization/70574
12116 * fwprop.c (forward_propagate_and_simplify): Don't add
12117 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12118 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12119 paradoxical subregs within *loc.
12120
12121 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
12122
12123 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12124 -ftree-parallelize-loops={0,1}.
12125 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12126 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12127 * config/ia64/hpux.h (LIB_SPEC): Likewise.
12128 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12129 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12130
12131 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
12132
12133 PR sanitizer/70541
12134 * asan.c (instrument_derefs): If we get unknown location, extract it
12135 with EXPR_LOCATION.
12136 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12137
12138 2016-04-08 Tom de Vries <tom@codesourcery.com>
12139
12140 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12141 implicit firstprivate clause.
12142
12143 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12144
12145 PR target/70566
12146 * config/arm/thumb2.md (tst + branch-> lsls + branch
12147 peephole below *orsi_not_shiftsi_si): Require that condition
12148 register is dead after the peephole.
12149 (second peephole after the above): Likewise.
12150
12151 2016-04-08 Alan Modra <amodra@gmail.com>
12152
12153 PR target/70117
12154 * builtins.c (fold_builtin_classify): For IBM extended precision,
12155 look at just the high-order double to test for NaN.
12156 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
12157 test just the high double for Inf but both doubles for subnormal
12158 limit.
12159
12160 2016-04-07 Jakub Jelinek <jakub@redhat.com>
12161
12162 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12163 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12164 node->simdclone->mask_mode != VOIDmode masks.
12165 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
12166 earlier, use it instead of node->simdclone.
12167 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12168 Set clonei->mask_mode.
12169
12170 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12171
12172 PR c/70436
12173 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12174 Pass it through to cp_parser_already_scoped_statement.
12175 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
12176 it through to cp_parser_statement.
12177 (cp_parser_statement): Pass IF_P through to
12178 cp_parser_iteration_statement.
12179 (cp_parser_pragma): Adjust call to
12180 cp_parser_iteration_statement.
12181
12182 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
12183
12184 PR c/70436
12185 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12186 resolve a future -Wparentheses warning.
12187 * omp-low.c (scan_sharing_clauses): Likewise.
12188 * tree-parloops.c (eliminate_local_variables): Likewise.
12189
12190 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
12191
12192 PR rtl-optimization/70398
12193 * lra-constraints.c (process_address_1): Check zero scale and code
12194 for reloading with zero scale.
12195
12196 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
12197
12198 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12199 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12200
12201 2016-04-06 Jakub Jelinek <jakub@redhat.com>
12202
12203 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12204 Add support for AVX512F clones, include them by default for
12205 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
12206 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12207 up to 128.
12208
12209 PR middle-end/70550
12210 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12211 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12212 firstprivate clauses.
12213 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12214 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12215 (lower_omp_target): Set TREE_NO_WARNING for
12216 non-addressable possibly uninitialized vars which are copied into
12217 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12218
12219 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
12220
12221 * config/pa/predicates.md (integer_store_memory_operand): Accept
12222 REG+D operands with a large offset when reload_in_progress is true.
12223 (floating_point_store_memory_operand): Likewise.
12224
12225 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12226
12227 PR c++/70336
12228 * match.pd (nested int casts): Limit to GIMPLE.
12229
12230 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
12231
12232 PR ipa/66223
12233 * ipa-devirt.c (maybe_record_node): Fix comment; use
12234 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12235
12236 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12237
12238 PR rtl-optimization/70542
12239 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12240 if there are any uses other than insn or debug insns.
12241
12242 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
12243 Jakub Jelinek <jakub@redhat.com>
12244
12245 PR tree-optimization/70509
12246 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12247 Shift HOST_WIDE_INT_1U instead of 1.
12248
12249 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
12250
12251 PR tree-optimization/70509
12252 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12253 of the vector base type for index.
12254
12255 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
12256
12257 PR target/70510
12258 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12259
12260 2016-04-05 Richard Biener <rguenther@suse.de>
12261
12262 PR tree-optimization/70526
12263 * tree-sra.c (build_ref_for_offset): Use prev_base to
12264 extract the alias pointer type.
12265
12266 2016-04-05 Richard Biener <rguenther@suse.de>
12267
12268 * dse.c (struct store_info): Remove alias_set member.
12269 (struct read_info_type): Likewise.
12270 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12271 spill_deleted, clear_alias_set_lookup): Remove.
12272 (get_group_info): Remove dead base == NULL_RTX case.
12273 (dse_step0): Remove initialization of removed variables.
12274 (delete_dead_store_insn): Reomve alias set dumping.
12275 (free_read_records): Remove alias_set handling.
12276 (canon_address): Remove alias_set_out parameter.
12277 (record_store): Remove spill_alias_set, it's always zero.
12278 (check_mem_read_rtx): Likewise.
12279 (dse_step2): Rename from ...
12280 (dse_step2_nospill): ... this. Adjust.
12281 (scan_stores): Rename from ...
12282 (scan_stores_nospill): ... this.
12283 (scan_reads): Rename from ...
12284 (scan_reads_nospill): ... this.
12285 (scan_stores_spill, scan_reads_spill): Remove.
12286 (dse_step3_scan): Remove for_spills argument which is always false.
12287 (dse_step3): Likewise.
12288 (dse_step5): Rename from ...
12289 (dse_step5_nospill): ... this. Remove alias_set handling.
12290 (rest_of_handle_dse): Adjust.
12291
12292 2016-04-05 Jakub Jelinek <jakub@redhat.com>
12293
12294 PR target/70525
12295 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12296 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12297 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12298 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12299
12300 2016-04-05 Richard Biener <rguenther@suse.de>
12301
12302 PR middle-end/70499
12303 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12304 non-register type temporaries into SSA.
12305
12306 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
12307
12308 PR ipa/66223
12309 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12310 calls when sanitizing.
12311 (possible_polymorphic_call_target_p): Fix formatting.
12312
12313 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12314 Jakub Jelinek <jakub@redhat.com>
12315
12316 PR middle-end/70457
12317 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12318 to ensure a call statement is compatible with a built-in's
12319 prototype.
12320 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12321 Likewise.
12322
12323 2016-04-04 Richard Biener <rguenther@suse.de>
12324
12325 PR rtl-optimization/70484
12326 * rtl.h (canon_output_dependence): Declare.
12327 * alias.c (canon_output_dependence): New function.
12328 * dse.c (record_store): Use canon_output_dependence rather
12329 than canon_true_dependence.
12330
12331 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12332
12333 PR ipa/68881
12334 * cgraph.h (symtab_node::copy_visibility_from): New function.
12335 * symtab.c (symtab_node::copy_visibility_from): New function.
12336 * ipa-visibility.c (optimize_weakref): New function.
12337 (function_and_variable_visibility): Use it.
12338
12339 2016-04-04 Martin Liska <mliska@suse.cz>
12340
12341 PR hsa/70402
12342 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12343 value that is really in range handled by SBR instruction.
12344 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12345 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12346 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12347
12348 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
12349
12350 PR target/70416
12351 PR target/67391
12352 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12353 set, but not for SP_REG operands.
12354
12355 2016-04-02 Martin Sebor <msebor@redhat.com>
12356
12357 PR c++/67376
12358 * fold-const.c (maybe_nonzero_address): New function.
12359 (fold_comparison): Call it. Fold equality and relational
12360 expressions involving null pointers.
12361 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12362
12363 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
12364
12365 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12366 the "Y" constraint (scalar FP 0.0 immediate).
12367
12368 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12369 Add the "const_double" to the list of operand constraints.
12370
12371 2016-04-01 Jakub Jelinek <jakub@redhat.com>
12372
12373 PR rtl-optimization/70467
12374 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12375 If low word of the last operand is 0, just emit addition/subtraction
12376 for the high word.
12377
12378 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12379
12380 PR target/70404
12381 * config/s390/s390.c (s390_expand_insv): Check for everything
12382 constant instead of just VOIDmode stuff.
12383
12384 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12385
12386 PR target/70496
12387 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12388
12389 2016-04-01 Nathan Sidwell <nathan@acm.org>
12390
12391 * tree.def (TRY_CATCH_EXPR): Correct documentation.
12392
12393 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
12394
12395 PR rtl-optimization/70461
12396 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12397 is necessary.
12398
12399 2016-03-31 Martin Liska <mliska@suse.cz>
12400
12401 PR hsa/70399
12402 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12403 a tree value or an immediate integer value to a buffer
12404 that is eventually copied to a BRIG section.
12405 (emit_immediate_operand): Call the function here.
12406 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12407 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12408 of class' fields that are removed.
12409 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12410 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12411 m_brig_repr_size fields.
12412
12413 2016-03-31 Martin Liska <mliska@suse.cz>
12414
12415 PR hsa/70391
12416 * hsa-gen.c (hsa_function_representation::update_dominance): New
12417 function.
12418 (convert_addr_to_flat_segment): Likewise.
12419 (gen_hsa_memory_set): New alignment argument.
12420 (gen_hsa_ctor_assignment): Likewise.
12421 (gen_hsa_insns_for_single_assignment): Provide alignment
12422 to gen_hsa_ctor_assignment.
12423 (gen_hsa_insns_for_direct_call): Add new argument.
12424 (expand_lhs_of_string_op): New function.
12425 (expand_string_operation_builtin): Likewise.
12426 (expand_memory_copy): New function.
12427 (expand_memory_set): New function.
12428 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12429 (convert_switch_statements): Change signature.
12430 (generate_hsa): Use a return value of the function.
12431 (pass_gen_hsail::execute): Do not call
12432 convert_switch_statements here.
12433 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12434 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12435 (hsa_function_representation::update_dominance): New function.
12436
12437 2016-03-31 Martin Liska <mliska@suse.cz>
12438
12439 PR hsa/70391
12440 * hsa-brig.c (emit_directive_variable): Emit alignment
12441 according to hsa_symbol::m_align.
12442 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12443 (dump_hsa_symbol): Dump alignment of HSA symbols.
12444 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12445 (gen_hsa_addr_with_align): New function.
12446 (hsa_bitmemref_alignment): Use newly added function.
12447 (gen_hsa_insns_for_load): Likewise.
12448 (gen_hsa_insns_for_store): Likewise.
12449 (gen_hsa_memory_copy): New argument added.
12450 (gen_hsa_insns_for_single_assignment): Respect
12451 alignment for assignments processed via gen_hsa_memory_copy.
12452 (gen_hsa_insns_for_direct_call): Likewise.
12453 (gen_hsa_insns_for_return): Likewise.
12454 (gen_function_def_parameters): Set default alignment.
12455 * hsa.c (hsa_object_alignment): New function.
12456 (hsa_byte_alignment): Pasted function.
12457 * hsa.h (hsa_symbol::m_align): New field.
12458
12459 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12460
12461 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12462 scratch field for goto case.
12463
12464 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
12465
12466 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12467
12468 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
12469
12470 PR target/70442
12471 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12472 (scalar_chain::convert_insn): Call convert_op for reg
12473 moves to handle undefined registers.
12474
12475 2016-03-31 Nathan Sidwell <nathan@acm.org>
12476
12477 PR c++/70393
12478 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12479 Assert we don't want to move backwards.
12480
12481 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
12482
12483 PR target/70453
12484 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12485
12486 2016-03-31 Jakub Jelinek <jakub@redhat.com>
12487
12488 PR rtl-optimization/70460
12489 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12490 with operand from REG_LABEL_OPERAND, instead substitute
12491 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12492 Don't do anything for REG_NON_LOCAL_GOTO jumps.
12493
12494 2016-03-31 Martin Liska <mliska@suse.cz>
12495
12496 * passes.c (execute_one_pass): Do not call
12497 todo_after for a discarded function.
12498
12499 2016-03-31 Bin Cheng <bin.cheng@arm.com>
12500
12501 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12502 (no_cost, infinite_cost): Initialize the new field.
12503 (get_computation_cost_at): Record setup cost.
12504 (determine_use_iv_cost_address): Skip cost computation for sub
12505 uses if we can estimate it without losing accuracy.
12506
12507 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
12508
12509 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12510 estimates here.
12511 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12512 max_loop_iterations_int.
12513 (tree_unswitch_outer_loop): Likewise.
12514 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12515 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12516
12517 2016-03-30 Richard Biener <rguenther@suse.de>
12518
12519 PR middle-end/70450
12520 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12521
12522 2016-03-30 Jakub Jelinek <jakub@redhat.com>
12523
12524 PR target/70421
12525 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12526 in gen_blendm expander.
12527
12528 2016-03-30 Nick Clifton <nickc@redhat.com>
12529
12530 PR target/62254
12531 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12532 case where we are already provided with an SImode SUBREG.
12533
12534 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
12535
12536 PR target/70439
12537 * config/i386/i386.c (ix86_expand_epilogue): Properly check
12538 conflict between DRAP register and __builtin_eh_return.
12539
12540 2016-03-30 Michael Matz <matz@suse.de>
12541 Richard Biener <rguenther@suse.de>
12542
12543 PR ipa/12392
12544 * ipa-polymorphic-call.c (struct type_change_info): Change
12545 speculative to an unsigned allowing to limit the work we do.
12546 (csftc_abort_walking_p): New inline function..
12547 (check_stmt_for_type_change): Limit the number of may-defs
12548 skipped for speculative devirtualization to
12549 max-speculative-devirt-maydefs.
12550 * params.def (max-speculative-devirt-maydefs): New param.
12551 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12552
12553 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
12554
12555 PR target/63890
12556 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12557 and TARGET_MACHO.
12558
12559 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
12560
12561 PR tree-optimization/59124
12562 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12563 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12564
12565 2016-03-29 Jeff Law <law@redhat.com>
12566
12567 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12568
12569 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12570
12571 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12572 to HOST_WIDE_INT.
12573
12574 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
12575
12576 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12577 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12578 gcrt0.o if linking dynamically.
12579
12580 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
12581
12582 PR ipa/70283
12583 * ipa-devirt.c (methods_equal_p): New function.
12584 (compare_virtual_tables): Use it.
12585 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12586 * cgraphclones.c (clone_function_name_1): Use
12587 symbol_table::symbol_suffix_separator.
12588 * coverage.c (build_var): Likewise.
12589 * symtab.c (symbol_table::symbol_suffix_separator): New.
12590
12591 2016-03-29 Jakub Jelinek <jakub@redhat.com>
12592
12593 PR rtl-optimization/70429
12594 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12595 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12596 mode != result_mode.
12597
12598 PR c++/70353
12599 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12600
12601 PR tree-optimization/70405
12602 * ssa-iterators.h (num_imm_uses): Add missing braces.
12603
12604 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
12605
12606 PR rtl-optimization/68695
12607 * ira-color.c (allocno_copy_cost_saving): New.
12608 (improve_allocation): Use it.
12609
12610 2016-03-29 Richard Henderson <rth@redhat.com>
12611
12612 PR middle-end/70355
12613 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12614
12615 2016-03-29 Richard Biener <rguenther@suse.de>
12616
12617 PR middle-end/70424
12618 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12619 use alignment returned by get_pointer_alignment_1 if it is
12620 bigger than BITS_PER_UNIT.
12621 * builtins.c (get_pointer_alignment_1): Do not return true
12622 for alignment extracted from SSA info.
12623
12624 2016-03-28 James Bowman <james.bowman@ftdichip.com>
12625
12626 * config/ft32/ft32.opt (mnodiv): New.
12627 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12628 * doc/invoke.texi (FT32 Options -mnodiv): New.
12629
12630 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
12631
12632 PR target/70406
12633 * config/i386/i386.md (define_split, andn): Fix modes.
12634
12635 2016-03-26 Richard Biener <rguenther@suse.de>
12636 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12637
12638 PR ipa/70366
12639 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12640 instead of
12641 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12642 as 2nd argument to cl_optimization_restore().
12643
12644 2016-03-25 Richard Henderson <rth@redhat.com>
12645
12646 PR target/70120
12647 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12648 * config/aarch64/aarch64-protos.h: Declare it.
12649 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12650
12651 2016-03-25 Alan Modra <amodra@gmail.com>
12652
12653 PR target/70052
12654 * config/rs6000/constraints.md (j): Simplify.
12655 * config/rs6000/predicates.md (easy_fp_constant): Exclude
12656 decimal float 0.D.
12657 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12658 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12659 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12660 in all constraint alternatives.
12661 (movtd_64bit_nodm): Delete "j" constraint alternative.
12662
12663 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12664
12665 * tree-ssa-propagate.c: Enhance docs for
12666 SSA_PROP_NOT_INTERESTING.
12667
12668 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
12669
12670 * doc/extend.texi: Fix typo in documentation to pure attribute.
12671
12672 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
12673
12674 PR target/70319
12675 * config/pa/pa.md (bswapdi2): Use a scratch register.
12676
12677 2016-03-24 Richard Henderson <rth@redhat.com>
12678
12679 PR middle-end/69845
12680 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12681 overflow.
12682
12683 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
12684
12685 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12686 using ix86_expand_binary_operator instead of gen_andsi3.
12687
12688 2016-03-24 Richard Biener <rguenther@suse.de>
12689
12690 PR tree-optimization/70396
12691 * tree-vect-stmts.c (vectorizable_comparison): Use
12692 get_vectype_for_scalar_type.
12693
12694 2016-03-24 Richard Biener <rguenther@suse.de>
12695
12696 PR middle-end/70370
12697 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12698 with register bases.
12699
12700 2016-03-24 Richard Biener <rguenther@suse.de>
12701
12702 PR tree-optimization/70372
12703 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12704 build_all_ones_cst to also handle vector types correctly.
12705
12706 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
12707
12708 PR target/70381
12709 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12710 -mfloat128 here.
12711
12712 2016-03-23 Marek Polacek <polacek@redhat.com>
12713
12714 PR c++/69884
12715 * doc/invoke.texi: Document -Wignored-attributes.
12716
12717 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12718
12719 PR tree-optimization/69042
12720 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12721 parameter from 30 to 40.
12722
12723 2016-03-23 Bin Cheng <bin.cheng@arm.com>
12724
12725 PR tree-optimization/69042
12726 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12727 for use with constant offset stripped in base.
12728
12729 2016-03-23 Richard Biener <rguenther@suse.de>
12730
12731 PR middle-end/70251
12732 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12733 mode compatibility check.
12734 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12735
12736 2016-03-23 Jeff Law <law@redhat.com>
12737
12738 PR tree-optimization/64058
12739 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12740 CONFLICT_COUNT.
12741 (struct ssa_conflicts): Move up earlier in the file.
12742 (conflicts_, var_map_): New static variables.
12743 (initialize_conflict_count): New function to initialize the
12744 CONFLICT_COUNT field for each conflict pair.
12745 (compare_pairs): Lazily initialize the conflict count and use it
12746 as the first tie-breaker.
12747 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
12748 and wipe conflicts_ and map_ around the call to qsort. Remove
12749 special case for 2 coalesce pairs.
12750 * bitmap.c (bitmap_count_unique_bits): New function.
12751 (bitmap_count_bits_in_word): New function, extracted from
12752 bitmap_count_bits.
12753 (bitmap_count_bits): Use bitmap_count_bits_in_word.
12754 * bitmap.h (bitmap_count_unique_bits): Declare it.
12755
12756 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
12757
12758 PR target/69917
12759 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12760 transparent alias chain for decl assembler name.
12761 * config/sol2.c (solaris_assemble_visibility): Likewise.
12762
12763 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12764
12765 * config/arm/arm1020e.md (1020call_op): Reduce reservation
12766 duration.
12767 (v10_fdivs): Likewise.
12768 (v10_fdivd): Likewise.
12769
12770 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12771
12772 PR driver/70132
12773 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12774 to not call fclose twice on file.
12775
12776 2016-03-23 Jakub Jelinek <jakub@redhat.com>
12777
12778 PR tree-optimization/70354
12779 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12780 oprnd0 is wider than oprnd1 and there is a cast from the wider
12781 type to oprnd1, mask it with the mask of the narrower type.
12782
12783 PR target/70321
12784 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12785 Optimize TARGET_STV splitters, if high or low word of last argument
12786 is 0 or -1.
12787
12788 2016-03-22 Jeff Law <law@redhat.com>
12789
12790 PR target/70232
12791 tree-ssa-threadbackward.c
12792 (fsm_find_control_statement_thread_paths): Correctly distinguish
12793 between old style jump threads vs FSM jump threads.
12794
12795 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
12796
12797 PR target/70302
12798 * config/i386/i386.c (scalar_chain::convert_op): Support
12799 uninitialized register usage case.
12800
12801 2016-03-22 Richard Biener <rguenther@suse.de>
12802
12803 PR middle-end/70251
12804 * genmatch.c (gen_transform): Adjust last parameter to a three-state
12805 int...
12806 (capture::gen_transform): ... to change behavior when substituting
12807 a condition into cond or not-cond expr context.
12808 (dt_simplify::gen_1): Adjust.
12809 * gimple-match-head.c: Include gimplify.h for unshare_expr.
12810 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12811 last change and instead change to
12812 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12813 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12814
12815 2016-03-22 Anthony Green <green@moxielogic.com>
12816
12817 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
12818 issue for moxiebox targets.
12819 (CC1PLUS_SPEC): Ditto.
12820
12821 2016-03-22 Richard Biener <rguenther@suse.de>
12822
12823 PR middle-end/70333
12824 * fold-const.c (extract_muldiv_1): Properly perform multiplication
12825 in the wide type.
12826
12827 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12828
12829 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12830
12831 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
12832
12833 PR target/70325
12834 * config/i386/i386.c (def_builtin): Handle
12835 OPTION_MASK_ISA_AVX512VL to be and-ed with other
12836 bits.
12837 (const struct builtin_description bdesc_special_args[]):
12838 Remove duplicate ISA bits.
12839
12840 2016-03-22 Jakub Jelinek <jakub@redhat.com>
12841
12842 PR target/70329
12843 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12844 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
12845 in a way that works also for AVX512BW.
12846
12847 PR target/70300
12848 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12849 instead of source if operands[1] is xmm16 and above and
12850 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
12851 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12852
12853 PR c++/70295
12854 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12855 on assign if (*from_p) is a comparison, set it to
12856 TREE_NO_WARNING (*from_p).
12857
12858 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12859
12860 PR middle-end/70326
12861 * lra.c (restore_scratches): Ignore deleted insns.
12862
12863 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
12864 Jakub Jelinek <jakub@redhat.com>
12865
12866 PR tree-optimization/70317
12867 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12868 to HONOR_NANS.
12869
12870 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
12871
12872 PR target/70327
12873 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12874 of ix86_expand_move.
12875 (movoi): Ditto.
12876 (movti): Use general_operand for operand 1 predicate.
12877
12878 2016-03-21 Martin Liska <mliska@suse.cz>
12879
12880 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12881 insns.
12882 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12883
12884 2016-03-21 Martin Liska <mliska@suse.cz>
12885
12886 PR ipa/70306
12887 * ipa-icf.c (sem_function::parse): Skip static
12888 constructors and destructors.
12889
12890 2016-03-21 Jakub Jelinek <jakub@redhat.com>
12891
12892 PR target/70296
12893 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12894 function-like macro, peek following token(s) if it is followed
12895 by CPP_OPEN_PAREN token with optional padding in between, and
12896 if not, don't treat it like a macro.
12897
12898 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
12899 Alexander Monakov <amonakov@ispras.ru>
12900
12901 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12902 for the stabs debug format.
12903
12904 2016-03-21 Richard Biener <rguenther@suse.de>
12905
12906 PR tree-optimization/70310
12907 * tree-vect-generic.c (expand_vector_condition): Fold the built
12908 condition.
12909
12910 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
12911
12912 PR target/70293
12913 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12914 Block third alternative for AVX-512VL target,
12915
12916 2016-03-21 Martin Liska <mliska@suse.cz>
12917
12918 PR hsa/70234
12919 * hsa-brig.c (emit_function_directives): Mark unemitted
12920 global variables for emission.
12921 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12922 (get_symbol_for_decl): Likewise.
12923 * hsa.h (struct hsa_symbol): New flag.
12924
12925 2016-03-21 Richard Biener <rguenther@suse.de>
12926
12927 PR tree-optimization/70288
12928 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12929 we do not estimate unsimplified all-constant conditionals or
12930 switches as optimized away.
12931
12932 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
12933
12934 PR rtl-optimization/69102
12935 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12936 when we have a readonly dependency context.
12937
12938 2016-03-18 Jeff Law <law@redhat.com>
12939
12940 PR rtl-optimization/70263
12941 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12942 (update_equiv_regs): When trying to move a store to after the insn
12943 that sets the source of the store, make sure the store occurs after
12944 the insn that sets the source of the store. When successful note
12945 the REG_EQUIV note created in the dump file.
12946
12947 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
12948 Bernd Schmidt <bschmidt@redhat.com>
12949
12950 * doc/extend.texi: Document more potential problems with basic asms.
12951
12952 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
12953
12954 PR rtl-optimization/70278
12955 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12956 VOIDmode.
12957
12958 2016-03-18 Jason Merrill <jason@redhat.com>
12959
12960 * calls.c (load_register_parameters): Fix zero size sibcall logic.
12961
12962 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
12963
12964 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12965 values to 128b regs.
12966
12967 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12968
12969 PR tree-optimization/70252
12970 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12971 boolean vector has a proper number of elements.
12972 (supportable_narrowing_operation): Likewise.
12973
12974 2016-03-18 Tom de Vries <tom@codesourcery.com>
12975
12976 PR ipa/70269
12977 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12978
12979 2016-03-18 Jakub Jelinek <jakub@redhat.com>
12980
12981 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12982 instead of replace_rtx for DEBUG_INSNs.
12983
12984 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12985
12986 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12987 load type reservations.
12988
12989 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
12990
12991 PR target/70188
12992 * config/pa/constraints.md: Revert 2015-02-13 change. Use
12993 define_constraint for "Q" and "T" constraints.
12994
12995 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
12996
12997 Tweak the pipeline model for Exynos M1
12998
12999 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
13000 model.
13001
13002 2016-03-17 David Malcolm <dmalcolm@redhat.com>
13003
13004 PR c/70264
13005 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
13006 where one or both locations aren't within a line_map.
13007
13008 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
13009
13010 PR driver/70192
13011 * opts.c (finish_options): Don't set flag_pie to the default if
13012 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
13013 if it is -1.
13014
13015 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
13016
13017 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
13018 true as ALL_REGS argument to replace_rtx.
13019
13020 2016-03-17 Richard Biener <rguenther@suse.de>
13021
13022 PR debug/70271
13023 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
13024 last.
13025
13026 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13027
13028 PR target/70245
13029 * rtl.h (replace_rtx): Add ALL_REGS argument.
13030 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
13031 equality and assert mode is the same, instead of just rtx pointer
13032 equality.
13033 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13034 true as ALL_REGS argument to replace_rtx.
13035
13036 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
13037
13038 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13039 for boolean vector with vector mode only.
13040 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13041
13042 2016-03-17 Nick Clifton <nickc@redhat.com>
13043
13044 PR target/70162
13045 * config/rx/rx.c (rx_print_integer): Print negative constants in
13046 decimal.
13047
13048 2016-03-17 Jakub Jelinek <jakub@redhat.com>
13049
13050 PR target/70261
13051 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13052
13053 2016-03-16 Richard Henderson <rth@redhat.com>
13054 Richard Biener <rguenth@suse.de>
13055
13056 PR middle-end/70240
13057 PR middle-end/68215
13058 PR tree-opt/68714
13059 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13060 first operand as is_gimple_condexpr.
13061
13062 PR middle-end/70240
13063 PR middle-end/68215
13064 Revert r231575
13065 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
13066 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13067 Do not gimplify the result.
13068 (do_unop): Adjust call to tree_vec_extract.
13069 (do_binop): Likewise.
13070 (do_compare): Likewise.
13071 (do_plus_minus): Likewise.
13072 (do_negate): Likewise.
13073 (expand_vector_condition): Likewise.
13074 (do_cond): Likewise.
13075
13076 2016-03-16 Richard Henderson <rth@redhat.com>
13077
13078 PR target/70048
13079 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13080 (aarch64_classify_address): Use it.
13081 (aarch64_legitimize_address): Force all subexpressions of PLUS
13082 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
13083
13084 2016-03-16 Jakub Jelinek <jakub@redhat.com>
13085 Richard Biener <rguenth@suse.de>
13086
13087 PR target/70245
13088 * rtlanal.c (replace_rtx): For REG, if from is a REG,
13089 return to even if only REGNO is equal, and assert
13090 mode is the same.
13091
13092 2016-03-11 Jeff Law <law@redhat.com>
13093
13094 PR rtl-optimization/70224
13095 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13096
13097 2016-03-16 Richard Henderson <rth@redhat.com>
13098
13099 PR middle-end/70199
13100 * function.h (struct function): Add has_forced_label_in_static.
13101 * gimplify.c (force_labels_r): Set it.
13102 * lto-streamer-in.c (input_struct_function_base): Read it.
13103 * lto-streamer-out.c (output_struct_function_base): Write it.
13104 * tree-inline.c (has_label_address_in_static_1): Remove.
13105 (copy_forbidden): Remove fndecl parameter; test
13106 has_forced_label_in_static.
13107 (inline_forbidden_p): Update call to copy_forbidden.
13108 (tree_versionable_function_p): Likewise.
13109 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13110 (chkp_versioning): Likewise.
13111 * tree-inline.h (copy_forbidden): Update decl.
13112
13113 2016-03-16 Marek Polacek <polacek@redhat.com>
13114
13115 PR c/70093
13116 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13117 function being thunked if the result type doesn't have fixed size.
13118 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13119 doesn't have fixed size.
13120
13121 2016-03-16 Bin Cheng <bin.cheng@arm.com>
13122
13123 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13124 reporting malformed loop nest.
13125
13126 2016-03-16 Tom de Vries <tom@codesourcery.com>
13127
13128 PR lto/70187
13129 * ipa-devirt.c (possible_polymorphic_call_targets): Move
13130 nodes.length () == 1 test to before first nodes[0] access.
13131
13132 2016-03-16 Tom de Vries <tom@codesourcery.com>
13133
13134 PR tree-optimization/68715
13135 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13136 single_pred_p test.
13137
13138 2016-03-16 Tom de Vries <tom@codesourcery.com>
13139
13140 PR tree-optimization/68809
13141 * graphite-scop-detection.c (same_close_phi_node): Test if result types
13142 are the same.
13143
13144 2016-03-16 Carlos O'Donell <carlos@redhat.com>
13145 Sandra Loosemore <sandra@codesourcery.com>
13146
13147 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13148 on leaf attribute. Mention ELF interposition problems.
13149
13150 2016-03-16 Alan Modra <amodra@gmail.com>
13151
13152 PR rtl-optimization/69195
13153 PR rtl-optimization/47992
13154 * ira.c (indirect_jump_optimize): Ignore artificial defs.
13155 Add comments.
13156
13157 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
13158
13159 PR bootstrap/69513
13160 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13161
13162 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13163
13164 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13165
13166 2016-03-15 Jakub Jelinek <jakub@redhat.com>
13167
13168 PR rtl-optimization/70222
13169 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13170 optimization if mode is different from result_mode, queue up masking
13171 of the result in outer_op. Formatting fix.
13172
13173 PR middle-end/70239
13174 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13175 of safe_grow.
13176
13177 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13178
13179 PR rtl-optimization/69032
13180 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13181 looping backwards over basic block insns.
13182
13183 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13184
13185 PR target/66660
13186 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13187 to non-speculative when propagating trap bits.
13188
13189 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13190
13191 PR rtl-optimization/63384
13192 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13193 DEBUG_INSN_P insns.
13194
13195 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
13196
13197 PR target/64411
13198 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13199 factored out from ...
13200 (sched_analyze_insn): ... here.
13201 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13202 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13203 get_implicit_reg_pending_clobbers in it.
13204 (setup_id_reg_sets): Use setup_id_implicit_regs.
13205 (deps_init_id): Ditto.
13206
13207 2016-03-15 Tom de Vries <tom@codesourcery.com>
13208
13209 PR ipa/70161
13210 * cgraph.c (cgraph_node::get_body): Save, reset and restore
13211 dump_file_name.
13212 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13213 execute_function_dump.
13214 (execute_one_pass): Don't dump function if it will be dumped after ipa
13215 transform.
13216
13217 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
13218
13219 * genrecog.c (match_pattern_2): If pred is NULL don't call
13220 safe_predicate_mode on it.
13221
13222 2016-03-14 Jakub Jelinek <jakub@redhat.com>
13223
13224 PR middle-end/70219
13225 * lra-constraints.c (delete_move_and_clobber): Change assertion
13226 to also allow dregno == 0.
13227
13228 2016-03-14 Richard Henderson <rth@redhat.com>
13229
13230 PR tree-opt/68714
13231 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13232 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13233 (reassociate_bb): Use optimize_vec_cond_expr; avoid
13234 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13235 on vectors.
13236
13237 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
13238
13239 PR target/70083
13240 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13241 regs.
13242 (lra_create_live_ranges_1): initialize hard register biggest_mode to
13243 VOIDmode.
13244 * lra-constraints.c (split_reg): For hard regs, try to find the
13245 biggest single-register mode used in the function.
13246
13247 2016-03-14 Richard Biener <rguenther@suse.de>
13248
13249 PR tree-optimization/56365
13250 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13251 constants to compare against.
13252
13253 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
13254
13255 PR target/70098
13256 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13257 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13258 (define_split for the GPR case): Use int_reg_operand instead of
13259 gpc_reg_operand for the output.
13260
13261 2016-03-14 Tom de Vries <tom@codesourcery.com>
13262
13263 PR tree-optimization/70045
13264 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13265 create_empty_if_region_on_edge argument.
13266
13267 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
13268
13269 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13270 (STACK_CHECK_PROTECT): Likewise.
13271 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13272 (STACK_CHECK_PROTECT): Likewise.
13273 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13274 (STACK_CHECK_PROTECT): Likewise.
13275 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13276 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13277 (STACK_CHECK_PROTECT): Likewise.
13278
13279 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
13280
13281 PR rtl-optimization/69307
13282 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13283 registers in modes that span more than one register.
13284
13285 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
13286
13287 PR target/69614
13288 * lra-constraints.c (delete_move_and_clobber): New.
13289 (remove_inheritance_pseudos): Use it.
13290
13291 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
13292
13293 PR ada/70017
13294 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13295 the libcall is LCT_THROW.
13296 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13297 for the checking routine.
13298
13299 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13300
13301 PR target/70131
13302 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13303 optimization if we have direct move.
13304 (roundu32<mode>2_fprs): Likewise.
13305
13306 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
13307
13308 PR target/70123
13309 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13310 be rematerialized.
13311 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13312 Arguments swapped. All callers changed. Take reg_renumber into
13313 account, and Calculate and compare register ranges for hard regs.
13314
13315 2016-03-11 Jeff Law <law@redhat.com>
13316
13317 PR tree-optimization/70190
13318 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13319 Handle cases where we can not extract the taken edge, even though we
13320 found a constant value.
13321
13322 PR tree-optimization/64058
13323 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13324 (num_coalesce_pairs): Move up earlier in file.
13325 (find_coalesce_pair): Initialize the INDEX field for each pair
13326 discovered.
13327 (compare_pairs): No longer sort on the elements in each pair.
13328 Instead break ties with the index of the coalesce pair.
13329
13330 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13331
13332 PR target/70002
13333 * config/aarch64/aarch64-protos.h
13334 (aarch64_save_restore_target_globals): New prototype.
13335 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13336 Call the above when popping pragma.
13337 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13338 New function.
13339 (aarch64_set_current_function): Rewrite using the above.
13340
13341 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13342
13343 PR tree-optimization/70177
13344 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13345 (extract_ops_from_tree): ... this. In the 2 argument
13346 overload remove _1 suffix.
13347 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13348 (extract_ops_from_tree): ... this.
13349 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13350 Adjust callers.
13351 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13352 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13353 extract_ops_from_tree instead of 2 operand one.
13354
13355 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
13356
13357 PR tree-optimization/70013
13358 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13359 for constant-pool entries.
13360
13361 2016-03-11 Jakub Jelinek <jakub@redhat.com>
13362
13363 PR rtl-optimization/70174
13364 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13365 followed by gen_lowpart on force_reg instead of just gen_lowpart.
13366
13367 PR tree-optimization/70169
13368 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13369 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
13370 for unknown codes.
13371
13372 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13373 Jakub Jelinek <jakub@redhat.com>
13374
13375 PR target/70160
13376 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13377 of uninitialized values.
13378
13379 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13380
13381 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13382 define_expand.
13383 ("*trunctddd2"): New pattern definition.
13384 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13385 TD->DD truncation.
13386
13387 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13388
13389 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13390 definitions for BFP and DFP rounding modes.
13391 ("fixuns_truncdddi2", "fixuns_trunctddi2")
13392 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13393 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13394 ("fix_trunctf<mode>2"): Use the new constants instead of magic
13395 numbers.
13396
13397 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13398
13399 * config/s390/constraints.md: Adjust comment.
13400 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
13401 s390_decompose_addrstyle_without_index.
13402 * config/s390/predicates.md (shift_count_or_setmem_operand):
13403 Rename to setmem_operand.
13404 * config/s390/s390-protos.h
13405 (s390_decompose_shift_count): Rename to
13406 s390_decompose_addrstyle_without_index.
13407 * config/s390/s390.c (s390_decompose_shift_count)
13408 (s390_mem_constraint, print_shift_count_operand)
13409 (print_operand_address, print_operand): Rename
13410 s390_decompose_shift_count to
13411 s390_decompose_addrstyle_without_index and rename
13412 print_shift_count_operand to print_addrstyle_operand troughout the
13413 file.
13414 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13415 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13416 Rename shift_count_or_setmem_operand to setmem_operand.
13417 * config/s390/vx-builtins.md ("vec_insert<mode>")
13418 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13419 nonmemory_operand.
13420
13421 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13422
13423 PR target/70168
13424 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13425 Handle overlapping retval and newval.
13426
13427 2016-03-10 Nick Clifton <nickc@redhat.com>
13428
13429 PR target/7044
13430 * config/aarch64/aarch64.c
13431 (aarch64_override_options_after_change_1): When forcing
13432 flag_omit_frame_pointer to be true, use a special value that can
13433 be detected if this function is called again, thus preventing
13434 flag_omit_leaf_frame_pointer from being forced to be false.
13435
13436 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13437
13438 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13439 Set x_flag_omit_leaf_frame_pointer when handling
13440 -momit-leaf-frame-pointer.
13441
13442 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13443
13444 PR lto/69589
13445 * cgraph.c (cgraph_node::dump): Dump split_part and
13446 indirect_call_target.
13447 * cgraph.h (cgraph_node): Add indirect_call_target flag.
13448 * ipa.c (has_addr_references_p): Cleanup.
13449 (is_indirect_call_target_p): New.
13450 (walk_polymorphic_call_targets): Do not mark virtuals that may be
13451 called indirectly as local.
13452 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13453
13454 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13455
13456 PR ipa/69630
13457 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13458 on cxa_pure_virtual.
13459
13460 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13461
13462 PR lto/69589
13463 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13464
13465 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
13466
13467 PR lto/69589
13468 * tree.c (need_assembler_name_p): Only record main variant type names.
13469
13470 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13471
13472 PR target/70113.
13473 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13474 Always define to 0 or 1.
13475 (TARGET_FIX_ERR_A53_843419): New macro.
13476 * config/aarch64/aarch64-elf-raw.h
13477 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13478 * config/aarch64/aarch64-linux.h: Likewise.
13479 * config/aarch64/aarch64.c
13480 (aarch64_override_options_after_change_1): Do not default
13481 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13482 843419 is on.
13483 (aarch64_attributes): Handle fix-cortex-a53-843419.
13484 (aarch64_can_inline_p): Likewise.
13485 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13486
13487 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
13488 Jakub Jelinek <jakub@redhat.com>
13489
13490 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13491 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13492 DECL_COMMONS if flag_unconstrained_commons is set.
13493 * tree-dfa.c (get_ref_base_and_extent): Likewise.
13494 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13495 (funconstrained-commons): Document.
13496
13497 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
13498
13499 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13500 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13501
13502 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
13503
13504 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13505 has a proper number of elements.
13506
13507 2016-03-10 Alan Modra <amodra@gmail.com>
13508
13509 PR rtl-optimization/69195
13510 PR rtl-optimization/47992
13511 * ira.c (recorded_label_ref): Delete.
13512 (update_equiv_regs): Return void.
13513 (indirect_jump_optimize): New function.
13514 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13515 before regstat_compute_ri. Don't rebuild_jump_labels here.
13516 Delete update_regstat.
13517
13518 2016-03-10 Richard Biener <rguenther@suse.de>
13519
13520 PR tree-optimization/70128
13521 * tree-ssa-structalias.c (set_uids_in_ptset): Set
13522 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13523
13524 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13525
13526 PR tree-optimization/70152
13527 * tree-sra.c (replace_removed_params_ssa_names): Copy over
13528 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13529
13530 PR target/70086
13531 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13532 instead of gen_sse2_loadlpd.
13533 * config/i386/sse.md (*vec_concatv2df): Rename to...
13534 (vec_concatv2df): ... this.
13535
13536 PR tree-optimization/70127
13537 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13538
13539 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13540
13541 PR c/68473
13542 PR c++/70105
13543 * diagnostic-show-locus.c (compatible_locations_p): New function.
13544 (layout::layout): Sanitize ranges using compatible_locations_p.
13545
13546 2016-03-09 David Malcolm <dmalcolm@redhat.com>
13547
13548 PR c/68473
13549 PR c++/70105
13550 * diagnostic-show-locus.c (layout_range::layout_range): Replace
13551 location_range param with three const expanded_locations * and a
13552 bool.
13553 (layout::layout): Replace call to
13554 rich_location::lazily_expand_location with get_expanded_location.
13555 Extract the range and perform location expansion here, passing
13556 the results to the layout_range ctor.
13557 * diagnostic.c (source_range::debug): Delete.
13558 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13559 of rich_location::get_expanded_location.
13560 * gcc-rich-location.c (get_range_for_expr): Delete.
13561 (gcc_rich_location::add_expr): Reimplement to avoid the
13562 rich_location::add_range overload that took a location_range,
13563 passing a location_t instead.
13564
13565 2016-03-09 Richard Biener <rguenther@suse.de>
13566 Jakub Jelinek <jakub@redhat.com>
13567
13568 PR tree-optimization/70138
13569 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13570 Also skip vect_double_reduction_def.
13571
13572 2016-03-09 Jakub Jelinek <jakub@redhat.com>
13573
13574 PR target/70049
13575 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13576 if the operand is "m".
13577
13578 2016-03-09 Nathan Sidwell <nathan@acm.org>
13579
13580 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13581
13582 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13583
13584 * config/i386/i386.c (processor_target_table): Fix cost table
13585 intialization order for znver1.
13586
13587 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13588
13589 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13590 - becuase -> because.
13591 * ipa-reference.c (ignore_module_statics): Likewise.
13592 * cgraph.c (cgraph_node::get_body): Likewise.
13593 * ipa-inline.c (early_inliner): Likewise.
13594 * ipa-devirt.c (types_same_for_odr): Likewise.
13595 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13596 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13597
13598 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13599
13600 * tree-ssa-math-opts.c: Fix typo in comment.
13601
13602 2016-03-08 Jakub Jelinek <jakub@redhat.com>
13603
13604 PR target/70110
13605 * config/i386/i386.c (scalar_chain::make_vector_copies,
13606 scalar_chain::convert_reg): Call end_sequence in between
13607 get_insns and emit_conversion_insns rather than after both
13608 calls.
13609
13610 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
13611
13612 PR target/70064
13613 * config/i386/i386.h (machine_function): Add
13614 pc_thunk_call_expanded flag.
13615 (ix86_pc_thunk_call_expanded): New define.
13616 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13617 (*set_got): Rename insn pattern from set_got.
13618 (*set_got_labelled): Rename inst pattern from set_got_labelled.
13619 * config/i386/i386.c (ix86_compute_frame_layout): Use
13620 ix86_pc_thunk_call_expanded to prevent red-zone.
13621
13622 2016-03-07 Martin Jambor <mjambor@suse.cz>
13623
13624 * hsa.h (hsa_get_ctor_statements): Declare.
13625 (hsa_get_dtor_statements): Likewise.
13626 (hsa_get_kernel_dispatch_type): Likewise.
13627 * hsa.c (hsa_get_ctor_statements): New function.
13628 (hsa_get_dtor_statements): Likewise.
13629 (hsa_get_kernel_dispatch_type): Likewise.
13630 * hsa-brig.c (hsa_cdtor_statements): Removed.
13631 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13632 hsa_get_dtor_statements.
13633 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13634 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13635
13636 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
13637
13638 * config/arm/arm-cores.def (cortex-r8): New.
13639 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13640 * config/arm/arm-tune.md: Likewise.
13641 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13642
13643 2016-03-07 Martin Sebor <msebor@redhat.com>
13644
13645 PR rtl-optimization/19705
13646 * doc/invoke.texi (Options That Control Optimization): Clarify
13647 -fno-branch-count-reg.
13648
13649 2016-02-26 Richard Biener <rguenther@suse.de>
13650 Jeff Law <law@redhat.com>
13651
13652 PR tree-optimization/69740
13653 * cfghooks.c (remove_edge): Request loop fixups if we delete
13654 an edge that might turn an irreducible loop into a natural
13655 loop.
13656 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13657 Move after definition of loops_state_clear.
13658
13659 2016-03-07 Bin Cheng <bin.cheng@arm.com>
13660
13661 PR rtl-optimization/69052
13662 * rtlanal.c (commutative_operand_precedence): Set higher precedence
13663 to CONST_WIDE_INT.
13664
13665 2016-03-07 Tom de Vries <tom@codesourcery.com>
13666
13667 PR tree-optimization/70116
13668 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13669 is_tm_ending stmts and ubsan/asan internal functions.
13670 (find_duplicate): Use it. Don't test is_tm_ending here.
13671
13672 2016-03-07 Richard Biener <rguenther@suse.de>
13673
13674 PR tree-optimization/70115
13675 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13676 (propagate_constants_for_unrolling): Use replace_uses_by.
13677
13678 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
13679
13680 PR middle-end/69916
13681 * omp-low.c (struct oacc_loop): Add ifns.
13682 (new_oacc_loop_raw): Initialize it.
13683 (finish_oacc_loop): Clear mask & flags if no ifns.
13684 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13685 (oacc_loop_xform_loop): Add ifns arg & adjust.
13686 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13687
13688 2016-03-07 Richard Henderson <rth@redhat.com>
13689
13690 PR rtl-opt/70061
13691 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13692 (insert_value_copy_on_edge): Likewise.
13693
13694 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13695
13696 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13697
13698 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13699
13700 PR target/62281
13701 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13702
13703 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13704
13705 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13706
13707 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13708
13709 Fix sseimul type attribute.
13710 * config/i386/znver1.md
13711 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13712 znver1_sseimul_avx256_load) : Fix the type attribute.
13713 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13714 pipe usage and latency.
13715
13716 2016-03-05 Jakub Jelinek <jakub@redhat.com>
13717
13718 PR c++/70084
13719 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13720 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13721 to the right type.
13722
13723 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13724
13725 PR c/69973
13726 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13727
13728 PR rtl-optimization/69941
13729 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13730 the reg share its mode.
13731
13732 2016-03-04 Jeff Law <law@redhat.com>
13733
13734 PR tree-optimization/69196
13735 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13736 If the both SSA_NAMEs are anonymous, then consider them unassociated
13737 and include the PHI in the statement count.
13738
13739 2016-03-05 Tom de Vries <tom@codesourcery.com>
13740
13741 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13742 construct in oacc routine. Check for oacc region in oacc routine.
13743
13744 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13745
13746 PR target/70062
13747 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
13748 2016-02-22 changes, instead don't recurse if RECUR is already true.
13749 Don't change *dynamic_check if RECUR. Adjust recursive caller
13750 to pass true to the new argument.
13751 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13752
13753 PR target/70059
13754 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13755 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13756 fixes.
13757 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
13758
13759 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
13760
13761 PR rtl-optimization/57676
13762 * lra-assigns.c (lra_assign): Guard test for maximum iterations
13763 with flag_checking.
13764
13765 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
13766
13767 * tree-vect-patterns.c (search_type_for_mask): Handle
13768 comparison of booleans.
13769
13770 2016-03-04 Jakub Jelinek <jakub@redhat.com>
13771
13772 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13773 Fix @xref usage.
13774
13775 PR debug/69947
13776 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13777 all other ops that have dw_val_class_die_ref operands,
13778 and DW_OP_GNU_entry_value.
13779
13780 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13781
13782 PR rtl-optimization/69904
13783 * config/arm/arm.c (arm_cannot_copy_insn_p):
13784 Return true for load-exclusive instructions.
13785
13786 2016-03-03 Jakub Jelinek <jakub@redhat.com>
13787
13788 PR target/70021
13789 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13790 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13791 the pattern no matter if it is used just by non-pattern, pattern
13792 or mix thereof.
13793 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13794 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13795 oprnd1 def_stmt is in pattern, don't look through it.
13796
13797 2016-03-03 Marek Polacek <polacek@redhat.com>
13798
13799 PR middle-end/70050
13800 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13801
13802 2016-03-03 Martin Liska <mliska@suse.cz>
13803
13804 PR tree-optimization/70043
13805 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13806 previous statement if we see a debug statement.
13807
13808 2016-03-03 Richard Biener <rguenther@suse.de>
13809
13810 PR tree-optimization/55936
13811 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13812 parameter and guard unsafe equivalence use.
13813 (vrp_evaluate_conditional_warnv_with_ops): Always use
13814 safe equivalences but not via the quadratic compare_names
13815 helper.
13816
13817 2016-03-03 Michael Collison <michael.collison@linaro.org>
13818
13819 PR target/70014
13820 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13821 for operand 1 to s_register_operand. Change predicate for operand
13822 2 to arm_not_immediate_operand.
13823
13824 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
13825
13826 * doc/tm.texi: Regenerated.
13827
13828 2016-03-02 Richard Henderson <rth@redhat.com>
13829
13830 PR rtl-opt/67145
13831 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13832 simplification when all args are positive non-fixed registers.
13833
13834 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13835
13836 * target.def (lra_p): Specify that new ports should use LRA.
13837
13838 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13839
13840 PR libgomp/69555
13841 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13842 gimplify_type_sizes the type they refer to.
13843 (omp_notice_variable): Handle reference vars to VLAs.
13844 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13845 reference to VLA decls in the second pass instead of first pass.
13846
13847 2016-03-02 Tom de Vries <tom@codesourcery.com>
13848
13849 PR tree-optimization/68659
13850 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13851 new_expr == NULL_TREE.
13852 (get_new_name): Handle ADDR_EXPR.
13853
13854 2016-03-02 Bin Cheng <bin.cheng@arm.com>
13855
13856 PR rtl-optimization/69052
13857 * loop-invariant.c (canonicalize_address): New function.
13858 (inv_can_prop_to_addr_use): Check validity of address expression
13859 which is canonicalized by above function.
13860
13861 2016-03-02 Alan Modra <amodra@gmail.com>
13862
13863 PR ipa/69990
13864 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13865 larger alignment.
13866
13867 2016-03-02 Jakub Jelinek <jakub@redhat.com>
13868
13869 PR target/70028
13870 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13871 (*movhi_internal): Put mask moves from and to memory separately
13872 from moves from/to GPRs.
13873
13874 2016-03-02 Richard Biener <rguenther@suse.de>
13875
13876 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13877 GENERIC expressions in GIMPLE.
13878
13879 2016-03-02 Richard Biener <rguenther@suse.de>
13880
13881 * config/i386/i386.c (type_natural_mode): Fix typo.
13882
13883 2016-03-02 Nick Clifton <nickc@redhat.com>
13884
13885 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13886
13887 2016-03-02 Richard Biener <rguenther@suse.de>
13888 Uros Bizjak <ubizjak@gmail.com>
13889
13890 PR target/67278
13891 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13892
13893 2016-03-02 Richard Biener <rguenther@suse.de>
13894
13895 PR middle-end/67278
13896 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13897
13898 2016-03-02 Marek Polacek <polacek@redhat.com>
13899
13900 PR c/67854
13901 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13902 "is promoted to" warning.
13903
13904 2016-03-01 DJ Delorie <dj@redhat.com>
13905
13906 * config.gcc: Deprecate mep-*.
13907
13908 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
13909
13910 PR middle-end/70025
13911 * lra-constraints.c (regno_val_use_in): New.
13912 (match_reload): Use it instead of regno_use_in.
13913
13914 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13915
13916 PR rtl-optimization/70007
13917 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13918 references present in REG_EQUAL notes attached to non-SET patterns.
13919
13920 2016-03-01 Jeff Law <law@redhat.com>
13921
13922 PR tree-optimization/69196
13923 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13924 Appropriately clamp the number of statements to copy when the
13925 thread path does not traverse a loop backedge.
13926
13927 PR tree-optimization/69196
13928 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13929 Do count some PHIs in the thread path against the insn count. Decrease
13930 final statement count by one as the control statement in the last
13931 block will get removed. Remove special cased code for handling PHIs
13932 in the last block.
13933
13934 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
13935
13936 PR target/70027
13937 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13938 asm dialect alternatives to explicit GOTPCREL calls.
13939
13940 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
13941
13942 PR ada/70017
13943 * ira.c (do_reload): Issue warning for generic stack checking here...
13944 * reload1.c (reload): ...instead of here and streamline it.
13945
13946 2016-03-01 Nick Clifton <nickc@redhat.com>
13947
13948 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13949
13950 2016-03-01 Richard Biener <rguenther@suse.de>
13951
13952 PR tree-optimization/69983
13953 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13954 types and fall back to operand_equal_p.
13955
13956 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13957
13958 Revert
13959 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13960
13961 * config/s390/constraints.md ("jm8"): New constraint.
13962 * config/s390/predicates.md ("const_int_8bitset_operand"): New
13963 predicate.
13964 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13965 into ...
13966 ("*setmem_long<setmem_and>"): New pattern.
13967 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13968 into ...
13969 ("*setmem_long_31z<setmem_and>"): New pattern.
13970 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13971 New substitution rules with the required attributes.
13972
13973
13974 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13975
13976 Revert
13977 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13978
13979 * gensupport.c (process_substs_on_one_elem): Split loop to
13980 complete mark_operands_used_in_match_dup on all expressions in the
13981 vector first.
13982 (adjust_operands_numbers): Inline into process_substs_on_one_elem
13983 and remove function.
13984
13985 2016-03-01 Richard Biener <rguenther@suse.de>
13986
13987 PR middle-end/70022
13988 * fold-const.c (fold_indirect_ref_1): Fix range checking for
13989 vector BIT_FIELD_REF extract.
13990
13991 2016-03-01 Richard Biener <rguenther@suse.de>
13992
13993 PR tree-optimization/69994
13994 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13995
13996 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
13997
13998 PR tree-optimization/69956
13999 * tree-vect-stmts.c (supportable_widening_operation): Support
14000 multi-step conversion of boolean vectors.
14001 (supportable_narrowing_operation): Likewise.
14002
14003 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14004
14005 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
14006 anymore.
14007
14008 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14009
14010 * config/s390/subst.md (DSI_VI): New mode iterator.
14011 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
14012 * config/s390/vector.md ("vec_set<mode>"): Move expander before
14013 the insn definition.
14014 ("*vec_set<mode>"): Change predicate and add alternative to
14015 support only either register or const_int operands as element
14016 selector.
14017 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
14018 operands.
14019 ("vec_extract<mode>"): New expander.
14020 ("*vec_extract<mode>"): New insn definition supporting reg and
14021 const_int element selectors.
14022 ("*vec_extract<mode>_plus"): New insn definition supporting
14023 reg+const_int element selectors.
14024 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
14025 following expander+insn definition.
14026 ("<vec_shifts_name><mode>3"): New expander.
14027 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
14028
14029 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14030
14031 * config/s390/s390.md ("*tabort_1"): Change predicate to
14032 nonmemory_operand. Add a second alternative to cover
14033 register as well as const int operands.
14034 ("*tabort_1_plus"): New pattern definition.
14035
14036 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14037
14038 * config/s390/s390.md ("*ashrdi3_cc_31")
14039 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14040 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14041 Merge insn definitions into ...
14042 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14043 New pattern definition.
14044 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14045 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14046 ("*ashr<mode>3_and"): Merge insn definitions into ...
14047 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14048 New pattern definition.
14049 * config/s390/subst.md ("addr_style_op_cc_subst")
14050 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14051 substitutions patterns plus attributes.
14052 Add ashiftrt to SUBST iterator.
14053
14054 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14055
14056 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14057 op2 to nonmemory_operand.
14058 ("*<shift>di3_31", "*<shift>di3_31_and"):
14059 Merge into single pattern definition ...
14060 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14061 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14062 pattern definition ...
14063 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14064 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14065 iterator.
14066
14067 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14068
14069 * config/s390/predicates.md (const_int_6bitset_operand): New
14070 predicate.
14071 * config/s390/s390.md: Include subst.md.
14072 ("rotl<mode>3"): New expander.
14073 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14074 ...
14075 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14076 * config/s390/subst.md: New file.
14077
14078 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14079
14080 * config/s390/s390.md ("op_type", "atype", "length" attributes):
14081 Remove RRR type. It doesn't really exist.
14082 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14083 attributes.
14084 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14085 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14086 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14087 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14088 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14089 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14090 `enabled' attribute.
14091
14092 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14093
14094 * gensupport.c (process_substs_on_one_elem): Split loop to
14095 complete mark_operands_used_in_match_dup on all expressions in the
14096 vector first.
14097 (adjust_operands_numbers): Inline into process_substs_on_one_elem
14098 and remove function.
14099
14100 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14101
14102 PR target/69706
14103 * config/sparc/sparc.c (NWORDS_UP): Rename to...
14104 (CEIL_NWORDS): ...this. Use CEIL macro.
14105 (compute_fp_layout): Adjust to above renaming.
14106 (function_arg_union_value): Likewise.
14107 (sparc_arg_partial_bytes): Likewise.
14108 (sparc_function_arg_advance): Likewise.
14109
14110 2016-02-29 Jeff Law <law@redhat.com>
14111
14112 PR tree-optimization/70005
14113 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14114 where an object with a boolean range is compared against a value
14115 outside [0..1].
14116
14117 PR tree-optimization/69999
14118 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14119 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14120 loop cleanups.
14121
14122 2016-02-29 Richard Biener <rguenther@suse.de>
14123
14124 PR tree-optimization/69994
14125 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14126 (get_unary_op): Look through nop conversions.
14127 (ops_equal_values_p): New function, look for equality diregarding
14128 nop conversions.
14129 (eliminate_plus_minus_pair): Use ops_equal_values_p
14130 (repropagate_negates): Do not use get_unary_op here.
14131
14132 2016-02-29 Martin Liska <mliska@suse.cz>
14133
14134 * system.h: Poison ENABLE_CHECKING macro.
14135
14136 2016-02-29 Martin Liska <mliska@suse.cz>
14137
14138 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14139 is presented in dump flags.
14140 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14141 (hsa_regalloc): Likewise.
14142
14143 2016-02-19 Richard Biener <rguenther@suse.de>
14144
14145 PR tree-optimization/69980
14146 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14147 permutation of those we need to keep.
14148
14149 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
14150
14151 PR target/69706
14152 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14153 (NWORDS_UP): ...this
14154 (init_cumulative_args): Minor tweaks.
14155 (sparc_promote_function_mode): Likewise.
14156 (scan_record_type): Delete.
14157 (traverse_record_type): New function template.
14158 (classify_data_t): New structure type.
14159 (classify_registers): New inline function.
14160 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14161 exhausted. Instantiate traverse_record_type on classify_registers and
14162 deal with the case of a structure passed in slot #15 with no FP field
14163 in the first word.
14164 (assign_data_t): New structure type.
14165 (compute_int_layout): New static function.
14166 (compute_fp_layout): Likewise.
14167 (count_registers): New inline function.
14168 (assign_int_registers): New static function.
14169 (assign_fp_registers): Likewise.
14170 (assign_registers): New inline function.
14171 (function_arg_record_value_1): Delete.
14172 (function_arg_record_value_2): Likewise.
14173 (function_arg_record_value_3): Likewise.
14174 (function_arg_record_value): Adjust to above changes. Instantiate
14175 traverse_record_type on count_registers to first count the number of
14176 registers to be used and then on assign_registers to assign them.
14177 (function_arg_union_value): Adjust to above renaming.
14178 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
14179 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
14180 case of a structure passed in slot #15
14181 (sparc_function_arg_advance): Likewise.
14182 (function_arg_padding): Minor tweak.
14183
14184 2016-02-29 Richard Biener <rguenther@suse.de>
14185
14186 PR tree-optimization/69720
14187 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14188 the adjustment_def path for possibly vectorized defs.
14189 (vect_create_epilog_for_reduction): Handle vectorized initial
14190 defs properly.
14191
14192 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
14193
14194 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14195
14196 2016-02-27 Jeff Law <law@redhat.com>
14197
14198 Revert
14199 2016-02-26 Richard Biener <rguenther@suse.de>
14200 Jeff Law <law@redhat.com>
14201
14202 PR tree-optimization/69740
14203 * cfghooks.c (remove_edge): Request loop fixups if we delete
14204 an edge that might turn an irreducible loop into a natural
14205 loop.
14206
14207 2016-02-27 Jakub Jelinek <jakub@redhat.com>
14208
14209 PR rtl-optimization/69896
14210 * tree-vect-generic.c (get_compute_type): Avoid single element
14211 vector types.
14212
14213 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
14214
14215 Rename the AArch64 tuning option and related functions to enable the
14216 Newton series for the reciprocal square root to reflect its
14217 approximative characteristic.
14218
14219 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14220 function to "aarch64_emit_approx_rsqrt".
14221 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14222 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14223 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14224 (xgene1_tunings): Likewise.
14225 (use_rsqrt_p): Likewise.
14226 (aarch64_emit_swrsqrt): Use new function name.
14227 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14228 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14229 text explaining this option.
14230 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14231
14232 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14233
14234 PR target/69969
14235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14236 complain about -mallow-movmisalign without -mvsx if
14237 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14238
14239 2016-02-26 Joel Sherrill <joel@rtems.org>
14240
14241 * config.gcc: Add x86_64-*-rtems*.
14242 * config/i386/rtems-64.h: New file.
14243
14244 2016-02-26 Joel Sherrill <joel@rtems.org>
14245
14246 * config.gcc: Add aarch64-*-rtems*.
14247 * config/aarch64/rtems.h: New file.
14248
14249 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
14250
14251 PR target/69946
14252 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14253 shift amount using %h. Add comment.
14254
14255 2016-02-26 Richard Biener <rguenther@suse.de>
14256 Jeff Law <law@redhat.com>
14257
14258 PR tree-optimization/69740
14259 * cfghooks.c (remove_edge): Request loop fixups if we delete
14260 an edge that might turn an irreducible loop into a natural
14261 loop.
14262
14263 2016-02-26 Martin Jambor <mjambor@suse.cz>
14264
14265 PR middle-end/69920
14266 * tree-sra.c (sra_modify_assign): Do not remove loads of
14267 uninitialized aggregates to SSA_NAMEs.
14268
14269 2016-02-26 Richard Henderson <rth@redhat.com>
14270
14271 PR target/69709
14272 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14273 pseudo in case the target rtx matches the source of the left
14274 shift.
14275
14276 2016-02-26 Martin Jambor <mjambor@suse.cz>
14277
14278 PR hsa/69568
14279 * hsa.h (hsa_type_packed_p): Declare.
14280 * hsa.c (hsa_type_packed_p): New function.
14281 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14282 loads.
14283 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14284 * hsa-brig.c (emit_basic_insn): Likewise.
14285
14286 2016-02-26 Martin Jambor <mjambor@suse.cz>
14287
14288 pr hsa/69674
14289 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14290 pointers.
14291 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14292
14293 2016-02-26 Martin Jambor <mjambor@suse.cz>
14294
14295 * hsa.h (is_a_helper): New overload for hsa_op_immed for
14296 hsa_op_with_type operands.
14297 (hsa_unsigned_type_for_type): Declare.
14298 * hsa.c (hsa_unsigned_type_for_type): New function.
14299 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14300 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14301 the finalizer. Do not emit extra move.
14302
14303 2016-02-26 Martin Jambor <mjambor@suse.cz>
14304
14305 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14306 atomic operations in private segment.
14307
14308 2016-02-26 Martin Jambor <mjambor@suse.cz>
14309
14310 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14311 statements to wi->info. Also disallow omp simd constructs.
14312 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14313 for not gridifying. Dump special string for omp_for.
14314
14315 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14316
14317 PR target/69245
14318 * config/aarch64/aarch64.c (aarch64_set_current_function):
14319 Save/restore target globals when switching to
14320 target_option_default_node.
14321
14322 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14323
14324 PR target/69613
14325 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14326 Return 0 if !SHIFT_COUNT_TRUNCATED.
14327
14328 2016-02-26 Jakub Jelinek <jakub@redhat.com>
14329 Eric Botcazou <ebotcazou@adacore.com>
14330
14331 PR rtl-optimization/69891
14332 * dse.c (scan_insn): If we can't figure out memset arguments
14333 or they are non-constant, call clear_rhs_from_active_local_stores.
14334
14335 2016-02-26 Martin Liska <mliska@suse.cz>
14336
14337 * doc/extend.texi: Mention clog10, clog10f an clog10l
14338 in Builtins section.
14339
14340 2016-02-26 Martin Liska <mliska@suse.cz>
14341
14342 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14343 CHECKING_P.
14344 (resolve_args_picking_1): Likewise.
14345 * dwarf2out.h (struct GTY): Likewise.
14346
14347 2016-02-26 Martin Liska <mliska@suse.cz>
14348
14349 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14350 with flag_checking.
14351 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14352
14353 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
14354 Martin Liska <mliska@suse.cz>
14355
14356 * doc/install.texi: Mention --enable-valgrind-annotations.
14357
14358 2016-02-26 Richard Biener <rguenther@suse.de>
14359
14360 PR tree-optimization/69551
14361 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14362 looking through aliases adjust DECL_PT_UID to refer to the
14363 ultimate alias target.
14364
14365 2016-02-25 Martin Liska <mliska@suse.cz>
14366
14367 PR middle-end/69919
14368 * alloc-pool.c (after_memory_report): New variable.
14369 * alloc-pool.h (base_pool_allocator ::release): Do not use
14370 the infrastructure if after_memory_report.
14371 * toplev.c (toplev::main): Mark after memory report.
14372
14373 2016-02-25 Richard Biener <rguenther@suse.de>
14374
14375 PR tree-optimization/48795
14376 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14377
14378 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
14379
14380 PR driver/68463
14381 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
14382 offloading is enabled and -fopenacc or -fopenmp is specified.
14383 (CRTOFFLOADEND): Likewise.
14384 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14385 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14386 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14387 (offload_objects_file_name): New static var.
14388 (tool_cleanup): Remove offload_objects_file_name file.
14389 (find_offloadbeginend): Replace with ...
14390 (find_crtoffloadtable): ... this.
14391 (run_gcc): Remove offload_argc and offload_argv.
14392 Get offload_objects_file_name from -foffload-objects=... option.
14393 Read names of object files with offload from this file, pass them to
14394 compile_images_for_offload_targets. Don't call find_offloadbeginend and
14395 don't pass offloadbegin and offloadend to the linker. Don't pass
14396 offload non-LTO files to the linker, because now they're not claimed.
14397
14398 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
14399
14400 PR ipa/69630
14401 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14402 on builtin_unreachable.
14403
14404 2016-02-25 Jakub Jelinek <jakub@redhat.com>
14405
14406 PR rtl-optimization/69896
14407 * regcprop.c: Include cfgrtl.h.
14408 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14409 than remembered mode, either delete it (if noop_move_p), or
14410 treat like copy_p but not noop_p instruction.
14411
14412 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14413
14414 PR debug/69705
14415 * dwarf2out.c (gen_variable_die): Work around buggy LTO
14416 - allow NULL decl for Fortran DW_TAG_common_block variables.
14417
14418 2016-02-24 Jason Merrill <jason@redhat.com>
14419
14420 * common.opt (flifetime-dse): Add -flifetime-dse=1.
14421
14422 2016-02-24 Richard Biener <rguenther@suse.de>
14423 Jakub Jelinek <jakub@redhat.com>
14424
14425 PR middle-end/69760
14426 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14427 conditionally executed ops to well-defined overflow behavior.
14428
14429 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14430
14431 PR middle-end/69915
14432 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14433 elements.
14434
14435 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14436
14437 PR rtl-optimization/69886
14438 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14439 argument. Use it when checking validity of set instructions.
14440 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14441 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14442 callsite.
14443 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14444 * store-motion.c (find_moveable_store): Update
14445 can_assign_to_reg_without_clobbers_p callsite.
14446
14447 2016-02-24 Richard Biener <rguenther@suse.de>
14448
14449 PR middle-end/68963
14450 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14451 bogus check.
14452 (record_nonwrapping_iv): Do not fall back to the low/high bound
14453 for non-constant IV bases if the stmt is not always executed.
14454
14455 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14456
14457 * config/arm/arm-cores.def (cortex-a32): New entry.
14458 * config/arm/arm-tables.opt: Regenerate.
14459 * config/arm/arm-tune.md: Regenerate.
14460 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14461 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14462 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14463 for -mcpu and -mtune.
14464
14465 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14466
14467 PR target/69875
14468 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14469 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14470 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14471 (atomic_loaddi_1): Delete.
14472 (atomic_loaddi): Rewrite expander using the above changes.
14473
14474 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14475
14476 PR c/69918
14477 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14478 2 to 3.
14479
14480 2016-02-24 Jakub Jelinek <jakub@redhat.com>
14481 Richard Biener <rguenth@suse.de>
14482
14483 PR middle-end/69909
14484 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14485 set_mem_attributes if tem is SSA_NAME which got expanded
14486 as a MEM.
14487
14488 2016-02-24 Richard Biener <rguenther@suse.de>
14489
14490 PR tree-optimization/69907
14491 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14492 end of permutations for BB vectorization.
14493
14494 2016-02-24 Christian Bruel <christian.bruel@st.com>
14495
14496 * config/arm/arm-c.c (arm_option_override): Initialize
14497 target_option_current_node.
14498 * config/arm/arm.c (arm_pragma_target_parse): Replace
14499 build_target_option_node call by target_option_current_node.
14500 Set target_option_current_node.
14501 Fix comments.
14502
14503 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
14504
14505 PR target/69810
14506 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14507 define_insn_and_split to define_insn.
14508 (zero_extendqi<mode>2_dot2): Same.
14509 (extendqi<mode>2_dot): Same.
14510 (extendqi<mode>2_dot2): Same.
14511
14512 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14513
14514 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14515 and add bypass for AES{D,E} and AESMC pairs.
14516 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14517 and AESMC pairs.
14518
14519 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
14520
14521 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14522 series for reciprocal square root in Exynos M1.
14523
14524 2016-02-23 Martin Sebor <msebor@redhat.com>
14525
14526 PR c/69759
14527 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14528 __builtin_alloca_with_align.
14529
14530 2016-02-23 Richard Henderson <rth@redhat.com>
14531
14532 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14533 (ix86_register_pragmas): Remove __seg_tls.
14534 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14535 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14536 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14537 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14538 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14539 * doc/extend.texi (__seg_tls): Remove item.
14540
14541 2016-02-23 Richard Biener <rguenther@suse.de>
14542
14543 * alloc-pool.h (struct allocation_object): Make id member
14544 conditional on CHECKING_P again.
14545 (get_instance): Adjust.
14546 (base_pool_allocator): Likewise.
14547
14548 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
14549
14550 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14551 (parallelize_loops): In OpenACC kernels mode, set n_threads to
14552 zero.
14553 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14554 flag_openacc.
14555 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14556
14557 2016-02-23 Richard Biener <rguenther@suse.de>
14558
14559 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14560 * bitmap.h (struct bitmap_usage): Likewise.
14561 (bitmap_move): Declare.
14562 * bitmap.c (register_overhead): Take size_t argument.
14563 (bitmap_move): New function.
14564 * df-problems.c (df_rd_transfer_function): Use bitmap_move
14565 to properly account overhead.
14566 * tree.c (free_node): Use tree_size.
14567
14568 2016-02-23 Jakub Jelinek <jakub@redhat.com>
14569
14570 PR c++/69902
14571 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14572 when inverting comparison.
14573
14574 PR c/69900
14575 * common.opt (Wunreachable-code): Add Warning flag.
14576
14577 2016-02-23 Mark Wielaard <mjw@redhat.com>
14578 Jakub Jelinek <jakub@redhat.com>
14579
14580 PR c/69911
14581 * cgraphunit.c (check_global_declaration): Check main_input_filename
14582 and DECL_SOURCE_FILE are not NULL.
14583
14584 2016-02-23 Martin Jambor <mjambor@suse.cz>
14585
14586 PR tree-optimization/69666
14587 * tree-sra.c (sra_modify_assign): Do not attempt to create
14588 default_def replacements for unscalarizable regions.
14589
14590 2016-02-20 Mark Wielaard <mjw@redhat.com>
14591
14592 PR c/28901
14593 * cgraphunit.c (check_global_declaration): Check level of
14594 warn_unused_const_variable and main_input_filename.
14595 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14596 (-Wunused-variable): For C implies -Wunused-const-variable=1.
14597 (-Wunused-const-variable): Explain levels 1 and 2.
14598
14599 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14600
14601 PR target/69888
14602 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14603 identical arguments. Formatting and spelling fixes.
14604
14605 PR target/69885
14606 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14607 be specified.
14608
14609 PR target/69894
14610 PR target/69895
14611 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14612 and m68k-devices.def.
14613 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14614 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14615
14616 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
14617
14618 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14619 and HImode registers.
14620
14621 2016-02-22 Richard Biener <rguenther@suse.de>
14622
14623 PR tree-optimization/69882
14624 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14625 preserve permutations present because of gaps.
14626 (vect_supported_load_permutation_p): Always continue checking
14627 permutations after vect_attempt_slp_rearrange_stmts.
14628
14629 2016-02-22 Bin Cheng <bin.cheng@arm.com>
14630
14631 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14632 min_profitable_estimate, rather than min_profitable_iters.
14633
14634 2016-02-22 Jakub Jelinek <jakub@redhat.com>
14635
14636 PR target/69885
14637 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14638 SImode for last match_operand.
14639
14640 2016-02-22 Martin Liska <mliska@suse.cz>
14641
14642 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14643 return bitsize - 1 as the return value.
14644
14645 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
14646
14647 PR target/69806
14648 PR target/54089
14649 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14650 Handle negative shift counts.
14651 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14652 force_reg on the shift constant.
14653 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
14654 (lshrsi3_d): Handle negative shift counts.
14655
14656 2016-02-22 Richard Biener <rguenther@suse.de>
14657 Tom de Vries <tom@codesourcery.com>
14658
14659 * graph.c: Include dumpfile.h.
14660 (print_graph_cfg): Split into three overloads.
14661 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14662
14663 2016-02-22 Tom de Vries <tom@codesourcery.com>
14664
14665 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14666 dump-fn.
14667
14668 2016-02-22 Richard Biener <rguenther@suse.de>
14669
14670 PR ipa/37448
14671 * ipa-inline-transform.c (inline_call): When not updating
14672 overall summaries adjust self size by the growth estimate.
14673 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14674 hash-set, do not update overall summaries here. Renamed from ...
14675 (inline_to_all_callers): ... this which is now wrapping the
14676 above and performing delayed overall summary update.
14677 (early_inline_small_functions): Delay updating of the overall
14678 summary.
14679
14680 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
14681
14682 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14683 variable.
14684
14685 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14686
14687 PR driver/69805
14688 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14689 :%* in %:gt() argument.
14690 (greater_than_spec_func): Adjust for expecting only numbers,
14691 if there are more than two numbers, compare the last two.
14692
14693 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
14694
14695 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14696 -Wnarrowing with -std.
14697
14698 2016-02-19 Jakub Jelinek <jakub@redhat.com>
14699
14700 PR c++/69851
14701 * expr.c (store_field): Don't use bit-field path if exp is
14702 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14703 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14704 and the assignment can be performed by bitwise copy. Formatting
14705 fix.
14706
14707 PR middle-end/69838
14708 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14709 call copy_reg_eh_region_note_forward on before and/or after sequences
14710 and remove note from insn if it no longer can throw.
14711
14712 PR target/69820
14713 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14714 if TARGET_AVX512BW.
14715
14716 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14717
14718 * config/s390/vector.md: Add missing commutative operand markers
14719 to the patterns which qualify for one.
14720 * config/s390/vx-builtins.md: Likewise.
14721
14722 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14723
14724 * config/s390/vector.md (VI, VI_QHS): Add single element vector
14725 types to mode iterators.
14726 (vec_double): ... and mode attribute.
14727 * config/s390/vx-builtins.md (non_vec_int): Likewise.
14728
14729 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14730
14731 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14732 Change the predicate of op2 from nonimmediate to general and let
14733 reload fix it if necessary.
14734
14735 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14736
14737 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14738
14739 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14740
14741 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14742 mode.
14743
14744 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14745
14746 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14747 * config/s390/s390.c (s390_expand_vec_movstr): New function.
14748 * config/s390/s390.md ("movstr<P:mode>"): Call
14749 s390_expand_vec_movstr.
14750
14751 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14752
14753 * config/s390/s390.md: Add missing output modifier for operand 1
14754 to print it as address properly.
14755
14756 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14757
14758 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14759 * config/s390/2964.md: New file.
14760 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14761 of insn grouping attributes depending on the CPU level.
14762 (s390_get_unit_mask): New function.
14763 (s390_sched_score): Remove the OOO from the scheduling macros.
14764 Add loop to calculate a score for the instruction mix.
14765 (s390_sched_reorder): Likewise plus improve debug output.
14766 (s390_sched_variable_issue): Rename macros as above. Calculate
14767 the unit distances after actually scheduling an insn. Improve
14768 debug output.
14769 (s390_sched_init): Clear last_scheduled_unit_distance array.
14770 * config/s390/s390.md: Include 2964.md.
14771
14772 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14773
14774 PR target/69671
14775 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14776 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14777 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14778 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14779 *avx512f_<code>v8div16qi2_mask_1): New insns.
14780
14781 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14782
14783 PR target/68404
14784 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14785 2016-02-09 change.
14786
14787 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14788 earlyclobber from target. Use wF constraint for fused memory
14789 address.
14790 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14791
14792 2016-02-18 Jakub Jelinek <jakub@redhat.com>
14793 Martin Liska <mliska@suse.cz>
14794
14795 PR sanitizer/69863
14796 * cfgexpand.c (asan_sanitize_stack_p): New function.
14797 (partition_stack_vars): Use the function.
14798 (expand_stack_vars): Likewise.
14799 (defer_stack_allocation): Likewise.
14800 (expand_used_vars): Likewise.
14801
14802 2016-02-18 Richard Biener <rguenther@suse.de>
14803
14804 PR middle-end/69553
14805 * fold-const.c (operand_equal_p): Properly compare offsets for
14806 IMAGPART_EXPR and ARRAY_REF.
14807
14808 2016-02-18 Nick Clifton <nickc@redhat.com>
14809
14810 PR target/62254
14811 PR target/69610
14812 * config/arm/arm.c (arm_option_override_internal): Disable
14813 interworking if the target does not support thumb instructions.
14814 (arm_reload_in_hi): Handle the case where a register to register
14815 move needs reloading because there is no simple pattern to handle
14816 it.
14817 (arm_reload_out_hi): Likewise.
14818
14819 2016-02-18 Richard Biener <rguenther@suse.de>
14820
14821 PR middle-end/69854
14822 * match.pd: Don't use fold_binary or fold_unary for folding
14823 constants.
14824
14825 2016-02-17 Jakub Jelinek <jakub@redhat.com>
14826
14827 PR c++/69850
14828 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14829 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14830 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14831 warn on gimple_no_warning_p statements.
14832
14833 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
14834
14835 * doc/extend.texi (C++ Attributes): Correct description of
14836 warn_unused type attribute.
14837
14838 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14839
14840 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14841 correct instruction.
14842
14843 2016-02-17 Richard Biener <rguenther@suse.de>
14844
14845 PR rtl-optimization/69609
14846 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14847 (find_traces_1_round): When ending a trace update cached priority
14848 of successors.
14849 (bb_to_key): Use cached priority when available.
14850 (copy_bb): Initialize cached priority.
14851 (reorder_basic_blocks_software_trace_cache): Likewise.
14852
14853 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14854
14855 PR target/69161
14856 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14857 New predicate.
14858 (aarch64_comparison_operator): Break overly long line into two.
14859 (aarch64_comparison_operation): Likewise.
14860 * config/aarch64/aarch64.md (cstorecc4): Use
14861 aarch64_comparison_operator_mode instead of
14862 aarch64_comparison_operator.
14863 (cstore<mode>4): Likewise.
14864 (aarch64_cstore<mode>): Likewise.
14865 (*cstoresi_insn_uxtw): Likewise.
14866 (cstore<mode>_neg): Likewise.
14867 (*cstoresi_neg_uxtw): Likewise.
14868
14869 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14870
14871 PR target/69161
14872 * config/arm/predicates.md (arm_comparison_operator_mode):
14873 New predicate.
14874 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14875 instead of arm_comparison_operator.
14876 (*mov_negscc): Likewise.
14877 (*mov_notscc): Likewise.
14878 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14879 (*thumb2_mov_negscc): Likewise.
14880 (*thumb2_mov_negscc_strict_it): Likewise.
14881 (*thumb2_mov_notscc): Likewise.
14882 (*thumb2_mov_notscc_strict_it): Likewise.
14883
14884 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
14885
14886 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14887 Add missing return.
14888
14889 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
14890
14891 * config/visium/visium.c (machine_libfunc_index): New enum.
14892 (machine_libfuncs): New structure.
14893 (visium_libfuncs): New static variable.
14894 (TARGET_INIT_LIBFUNCS): Define to...
14895 (visium_init_libfuncs): ...this. New function.
14896 (expand_block_move_4): Use the appropriate libfunc.
14897 (expand_block_move_2): Likewise.
14898 (expand_block_move_1): Likewise.
14899 (expand_block_set_4): Likewise.
14900 (expand_block_set_2): Likewise.
14901 (expand_block_set_1): Likewise.
14902 (visium_trampoline_init): Likewise.
14903
14904 2016-02-17 Nick Clifton <nickc@redhat.com>
14905
14906 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14907 TI's devices.csv file as of March 2016.
14908
14909 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
14910
14911 PR Target/48344
14912 * opts-global.c (handle_common_deferred_options): Introduce and
14913 initialize two global variables to remember command-line options
14914 specifying a stack-limiting register.
14915 * opts.h: Add extern declarations of the two new global variables.
14916 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14917 variable based on the values of the two new global variables.
14918
14919 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14920
14921 PR c/69835
14922 * common.opt (Wnonnull-compare): New warning.
14923 * doc/invoke.texi (-Wnonnull): Remove text about comparison
14924 of arguments against NULL.
14925 (-Wnonnull-compare): Document.
14926 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14927 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14928 * passes.def (pass_warn_nonnull_compare): Add.
14929 * gimple-ssa-nonnull-compare.c: New file.
14930
14931 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14932
14933 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14934 AARCH64_EXTRA_TUNE_RECIP_SQRT.
14935
14936 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14937
14938 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14939 reciprocal sqrt for -mlow-precision-recip-sqrt.
14940
14941 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14942 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14943
14944 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14945 always use lane loads to construct non-constant vectors.
14946
14947 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
14948
14949 * config/aarch64/aarch64.md
14950 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14951 constraints for operand 3.
14952 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14953
14954 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14955 Richard Biener <rguenther@suse.de>
14956
14957 PR tree-optimization/69820
14958 * tree-vect-patterns.c (type_conversion_p): Return false if
14959 *orig_type is unsigned single precision or boolean.
14960 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14961 Formatting fix.
14962
14963 2016-02-16 Jakub Jelinek <jakub@redhat.com>
14964
14965 PR rtl-optimization/69764
14966 PR rtl-optimization/69771
14967 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14968 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14969
14970 2016-02-16 Richard Biener <rguenther@suse.de>
14971
14972 PR tree-optimization/69776
14973 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14974 sets from caller.
14975 (indirect_refs_may_alias_p): Likewise.
14976 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14977 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14978 according to tbaa_p.
14979 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14980 (optimize_stmt): For redundant store discovery do not allow tbaa.
14981
14982 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
14983
14984 PR tree-optimization/69714
14985 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14986 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14987
14988 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
14989
14990 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14991 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14992 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14993 * config/arc/arc.c (arc_init): Check FPU options.
14994 (get_arc_condition_code): Handle new CC_FPU* modes.
14995 (arc_select_cc_mode): Likewise.
14996 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14997 register pair only. Allow access for ARCv2 accumulator.
14998 (gen_compare_reg): Whenever we have FPU support use FPU compare
14999 instructions.
15000 (arc_reorg): Don't generate brcc insns when FPU compare
15001 instructions are involved.
15002 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
15003 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
15004 floating point emulation.
15005 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
15006 (REVERSE_CONDITION): Add new CC_FPU* modes.
15007 (TARGET_FP_SP_BASE): Define.
15008 (TARGET_FP_DP_BASE): Likewise.
15009 (TARGET_FP_SP_FUSED): Likewise.
15010 (TARGET_FP_DP_FUSED): Likewise.
15011 (TARGET_FP_SP_CONV): Likewise.
15012 (TARGET_FP_DP_CONV): Likewise.
15013 (TARGET_FP_SP_SQRT): Likewise.
15014 (TARGET_FP_DP_SQRT): Likewise.
15015 (TARGET_FP_DP_AX): Likewise.
15016 * config/arc/arc.md (ARCV2_ACC): New constant.
15017 (type): New fpu type attribute.
15018 (SDF): Conditional iterator.
15019 (cstore<mode>, cbranch<mode>): Change expand condition.
15020 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
15021 handles FPU/FPX cases as well.
15022 * config/arc/arc.opt (mfpu): New option.
15023 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
15024 Renamed.
15025 (adddf3, muldf3, subdf3): Removed.
15026 * config/arc/predicates.md (proper_comparison_operator): Recognize
15027 CC_FPU* modes.
15028 * config/arc/fpu.md: New file.
15029 * doc/invoke.texi (ARC Options): Document mfpu option.
15030
15031 2016-02-16 Richard Biener <rguenther@suse.de>
15032
15033 PR rtl-optimization/69291
15034 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15035 noce_operand_ok check.
15036
15037 2016-02-16 Tom de Vries <tom@codesourcery.com>
15038
15039 PR lto/67709
15040 * omp-low.c (simd_clone_create): Remove call to
15041 symtab->call_cgraph_insertion_hooks.
15042
15043 2016-02-16 Jakub Jelinek <jakub@redhat.com>
15044
15045 PR tree-optimization/69802
15046 * tree-ssa-reassoc.c (update_range_test): If op is
15047 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15048 op == 1 test of precision 1 integral op, otherwise handle
15049 that case as op itself. Fix up formatting.
15050 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15051 up formatting.
15052
15053 2016-02-16 Richard Biener <rguenther@suse.de>
15054
15055 PR tree-optimization/69586
15056 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15057 types for conversion sources.
15058
15059 2016-02-16 Richard Biener <rguenther@suse.de>
15060
15061 PR middle-end/69801
15062 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15063 mask OEP_ADDRESS_OF.
15064
15065 2016-02-16 Alan Modra <amodra@gmail.com>
15066
15067 PR target/68973
15068 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15069 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15070 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15071 (p8_mtvsrwz): New.
15072 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15073 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15074 (p8_fmrgow_<mode>): Likewise.
15075 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
15076 changes.
15077 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15078 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15079 to use movdi_internal64. Remove op0_di.
15080 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15081
15082 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
15083
15084 Add support for the FCCMP insn types
15085
15086 * config/aarch64/aarch64.md (fccmp): Change insn type.
15087 (fccmpe): Likewise.
15088 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15089 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15090 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15091 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15092 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15093 * config/arm/types.md (fccmps): Add new insn type.
15094 (fccmpd): Likewise.
15095
15096 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15097
15098 * alias.c (get_alias_set): Fix a typo in comment.
15099
15100 2016-02-15 Richard Biener <rguenther@suse.de>
15101
15102 PR tree-optimization/69595
15103 * match.pd: Complete range test simplification to true.
15104
15105 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
15106
15107 PR rtl-optimization/69648
15108 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15109 pic_offset_table_rtx.
15110
15111 PR rtl-optimization/69752
15112 * ira.c (update_equiv_regs): When looking for more than a single SET,
15113 also take other side effects into account.
15114
15115 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15116
15117 * config/s390/s390.c (s390_function_profiler): Add a new sequence
15118 for z900+ CPUs in 31-bit mode.
15119
15120 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
15121
15122 * common/config/s390/s390-common.c (s390_supports_split_stack):
15123 New function.
15124 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15125 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15126 * config/s390/s390.c (struct machine_function): New field
15127 split_stack_varargs_pointer.
15128 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15129 in s390_emit_prologue.
15130 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15131 vararg pointer.
15132 (morestack_ref): New global.
15133 (SPLIT_STACK_AVAILABLE): New macro.
15134 (s390_expand_split_stack_prologue): New function.
15135 (s390_live_on_entry): New function.
15136 (s390_va_start): Use split-stack vararg pointer if appropriate.
15137 (s390_asm_file_end): Emit the split-stack note sections.
15138 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15139 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15140 (UNSPECV_SPLIT_STACK_CALL): New unspec.
15141 (UNSPECV_SPLIT_STACK_DATA): New unspec.
15142 (split_stack_prologue): New expand.
15143 (split_stack_space_check): New expand.
15144 (split_stack_data): New insn.
15145 (split_stack_call): New expand.
15146 (split_stack_call_*): New insn.
15147 (split_stack_cond_call): New expand.
15148 (split_stack_cond_call_*): New insn.
15149
15150 2016-02-15 Richard Biener <rguenther@suse.de>
15151
15152 PR tree-optimization/69783
15153 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15154 Add trivially correct cases.
15155
15156 2016-02-15 Tom de Vries <tom@codesourcery.com>
15157
15158 PR lto/69655
15159 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15160 do_force_output.
15161 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15162
15163 2016-02-15 Richard Biener <rguenther@suse.de>
15164
15165 PR tree-optimization/69776
15166 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15167 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15168 indicate whether we can use TBAA to disambiguate against stores.
15169 Use alias-set zero if not.
15170 (visit_reference_op_store): Do not use TBAA when looking up
15171 redundant stores.
15172 * tree-ssa-pre.c (compute_avail): Use TBAA here.
15173 (eliminate_dom_walker::before_dom_children): But not when looking
15174 up redundant stores.
15175
15176 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
15177
15178 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15179
15180 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15181
15182 * config/i386/znver1.md
15183 (znver1_pop, znver1_pop_mem,
15184 znver1_load_imov_double_store,
15185 znver1_load_imov_direct_store,
15186 znver1_load_imov_direct_load,
15187 znver1_load_imov_double_load): Add new.
15188 (znver1_insn, znver1_insn_load): Add icmov type.
15189 (znver1_sseavx_fma,
15190 znver1_sseavx_fma_load,
15191 znver1_avx256_fma,
15192 znver1_avx256_fma_load): Fix pipe usage.
15193
15194 2016-02-14 Alan Modra <amodra@gmail.com>
15195
15196 PR target/68973
15197 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15198 with an invalid hard reg, reload just the reg not the entire
15199 pre/post-inc/dec address expression.
15200
15201 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15202
15203 PR target/67260
15204 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15205 fixed R1_REG scratch reg.
15206 (sibcall_value_pcrel_fdpic): Likewise.
15207
15208 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
15209
15210 PR target/67636
15211 PR target/64345
15212 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15213
15214 2016-02-12 Walter Lee <walt@tilera.com>
15215
15216 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15217 * config/tilegx/t-tilegx: Likewise.
15218
15219 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15220
15221 PR other/69554
15222 * diagnostic-show-locus.c (struct line_span): New struct.
15223 (layout::get_first_line): Delete.
15224 (layout::get_last_line): Delete.
15225 (layout::get_num_line_spans): New member function.
15226 (layout::get_line_span): Likewise.
15227 (layout::print_heading_for_line_span_index_p): Likewise.
15228 (layout::get_expanded_location): Likewise.
15229 (layout::calculate_line_spans): Likewise.
15230 (layout::m_first_line): Delete.
15231 (layout::m_last_line): Delete.
15232 (layout::m_line_spans): New field.
15233 (layout::layout): Update comment. Replace m_first_line and
15234 m_last_line with m_line_spans, replacing their initialization
15235 with a call to calculate_line_spans.
15236 (diagnostic_show_locus): When printing source lines and
15237 annotations, rather than looping over a single span
15238 of lines, instead loop over each line_span within
15239 the layout, with an inner loop over the lines within them.
15240 Call the context's start_span callback when changing line spans.
15241 * diagnostic.c (diagnostic_initialize): Initialize start_span.
15242 (diagnostic_build_prefix): Break out the building of the location
15243 part of the string into...
15244 (diagnostic_get_location_text): ...this new function, rewriting
15245 it from nested ternary expressions to a sequence of "if"
15246 statements.
15247 (default_diagnostic_start_span_fn): New function.
15248 * diagnostic.h (diagnostic_start_span_fn): New typedef.
15249 (diagnostic_context::start_span): New field.
15250 (default_diagnostic_start_span_fn): New prototype.
15251
15252 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15253
15254 PR driver/69779
15255 * gcc.c (driver::finalize): Fix cleanup of "specs".
15256
15257 2016-02-12 David Malcolm <dmalcolm@redhat.com>
15258
15259 PR driver/69265
15260 PR driver/69453
15261 * gcc.c (driver::driver): Initialize m_option_suggestions.
15262 (driver::~driver): Clean up m_option_suggestions.
15263 (suggest_option): Convert to...
15264 (driver::suggest_option): ...this, and split out into
15265 driver::build_option_suggestions and find_closest_string.
15266 (driver::build_option_suggestions): New function, from
15267 first half of suggest_option. Special-case
15268 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15269 the sanitizer_opts array. For options of enum types, add the
15270 various enum values to the candidate strings.
15271 (driver::handle_unrecognized_options): Remove "const".
15272 * gcc.h (driver::handle_unrecognized_options): Likewise.
15273 (driver::build_option_suggestions): New decl.
15274 (driver::suggest_option): New decl.
15275 (driver::m_option_suggestions): New field.
15276 * opts-common.c (add_misspelling_candidates): New function.
15277 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15278 and make non-static.
15279 * opts.h (sanitizer_opts): New array decl.
15280 (add_misspelling_candidates): New function decl.
15281 * spellcheck.c (find_closest_string): New function.
15282 * spellcheck.h (find_closest_string): New function decl.
15283
15284 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15285
15286 PR rtl-optimization/69764
15287 PR rtl-optimization/69771
15288 * optabs.c (expand_binop_directly): For shift_optab_p, force
15289 convert_modes with VOIDmode if xop1 has VOIDmode.
15290
15291 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
15292
15293 PR target/69729
15294 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15295 to correctly determine instrumentation thunks.
15296
15297 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15298
15299 PR ipa/69241
15300 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15301 type by reference, force lhs on the call.
15302
15303 PR ipa/68672
15304 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15305 Compute retval and retbnd early in all cases if split_part_return_p
15306 and return_bb is not EXIT. Remove all clobber stmts and reset
15307 all debug stmts that refer to SSA_NAMEs defined in split part,
15308 except if it is retval, in that case replace the old retval with the
15309 lhs of the call to the split part.
15310
15311 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15312
15313 revert:
15314 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15315
15316 PR middle-end/66726
15317 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15318 whose result is used in PHI.
15319 (maybe_optimize_range_tests): Likewise.
15320 (final_range_test_p): Likweise.
15321
15322 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15323
15324 PR middle-end/66726
15325 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15326 whose result is used in PHI.
15327 (maybe_optimize_range_tests): Likewise.
15328 (final_range_test_p): Likweise.
15329
15330 2016-02-12 Jakub Jelinek <jakub@redhat.com>
15331
15332 * cgraph.c: Spelling fixes - behaviour -> behavior and
15333 neighbour -> neighbor.
15334 * target.def: Likewise.
15335 * sel-sched.c: Likewise.
15336 * config/mips/mips.c: Likewise.
15337 * config/arc/arc.md: Likewise.
15338 * config/arm/cortex-a57.md: Likewise.
15339 * config/arm/arm.c: Likewise.
15340 * config/arm/neon.md: Likewise.
15341 * config/arm/arm-c.c: Likewise.
15342 * config/vms/vms-c.c: Likewise.
15343 * config/s390/s390.c: Likewise.
15344 * config/i386/znver1.md: Likewise.
15345 * config/i386/i386.c: Likewise.
15346 * config/ia64/hpux-unix2003.h: Likewise.
15347 * config/msp430/msp430.md: Likewise.
15348 * config/rx/rx.c: Likewise.
15349 * config/rx/rx.md: Likewise.
15350 * config/aarch64/aarch64-simd.md: Likewise.
15351 * config/aarch64/aarch64.c: Likewise.
15352 * config/nvptx/nvptx.c: Likewise.
15353 * config/bfin/bfin.c: Likewise.
15354 * config/cris/cris.opt: Likewise.
15355 * config/rs6000/rs6000.c: Likewise.
15356 * target.h: Likewise.
15357 * spellcheck.c: Likewise.
15358 * ira-build.c: Likewise.
15359 * tree-inline.c: Likewise.
15360 * builtins.c: Likewise.
15361 * lra-constraints.c: Likewise.
15362 * explow.c: Likewise.
15363 * hwint.h: Likewise.
15364 * targhooks.c: Likewise.
15365 * tree-vect-data-refs.c: Likewise.
15366 * expr.c: Likewise.
15367 * doc/tm.texi: Likewise.
15368 * doc/extend.texi: Likewise.
15369 * doc/install.texi: Likewise.
15370 * doc/md.texi: Likewise.
15371 * tree-ssa-tail-merge.c: Likewise.
15372 * sched-int.h: Likewise.
15373 * match.pd: Likewise.
15374 * sched-ebb.c: Likewise.
15375 * target.def (omit_struct_return_reg): Likewise.
15376 * gimple-ssa-isolate-paths.c: Likewise.
15377 (find_implicit_erroneous_behaviour): Renamed to...
15378 (find_implicit_erroneous_behavior): ... this.
15379 (find_explicit_erroneous_behaviour): Renamed to...
15380 (find_explicit_erroneous_behavior): ... this.
15381 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15382
15383 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
15384
15385 PR rtl-optimization/64682
15386 PR rtl-optimization/69567
15387 PR rtl-optimization/69737
15388 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15389 in I2 as well, just lose it.
15390
15391 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15392
15393 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15394 New variable.
15395 (aarch64_last_printed_tune_string): Likewise.
15396 (aarch64_declare_function_name): Only output .arch assembler
15397 directive if it will be different from the previously output
15398 directive. Same for .tune comment but only if -dA is set.
15399 (aarch64_start_file): New function.
15400 (TARGET_ASM_FILE_START): Define.
15401
15402 2016-02-11 David Malcolm <dmalcolm@redhat.com>
15403
15404 PR plugins/69758
15405 * Makefile.in (PLUGIN_HEADERS): Add params.list.
15406
15407 2016-02-11 Jakub Jelinek <jakub@redhat.com>
15408
15409 PR target/65313
15410 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15411 -Wmaybe-uninitialized warning.
15412
15413 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
15414
15415 PR target/69713
15416 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15417
15418 2016-02-11 Richard Biener <rguenther@suse.de>
15419
15420 PR rtl-optimization/69291
15421 * ifcvt.c (noce_try_store_flag_constants): Do not allow
15422 subexpressions affected by changing the result.
15423
15424 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
15425
15426 PR target/69148
15427 * lra-constraints.c (curr_insn_transform): Find in/out operands
15428 for secondary memory moves. Update dups.
15429
15430 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15431
15432 PR tree-optimization/69652
15433 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15434 to nested loop, did source re-formatting, skip debug statements,
15435 add check on statement with volatile operand, remove dead scalar
15436 statements.
15437
15438 2016-02-10 Jakub Jelinek <jakub@redhat.com>
15439 Patrick Palka <ppalka@gcc.gnu.org>
15440
15441 PR ipa/69241
15442 PR c++/69649
15443 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15444 calls if the return type is TREE_ADDRESSABLE.
15445 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15446 * ipa-split.c (split_function): Fix doubled "we" in comment.
15447 Use void return type for the split part even if
15448 !split_point->split_part_set_retval.
15449
15450 2016-02-10 Bin Cheng <bin.cheng@arm.com>
15451
15452 PR tree-optimization/68021
15453 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15454 when computing the value of biv cand by itself.
15455
15456 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15457
15458 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15459 (cortexa57_tunings): Likewise.
15460 (cortexa72_tunings): Likewise.
15461 (arch_macro_fusion_pair_p): Add support for AES fusion.
15462 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15463 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15464 Allow virtual registers before reload so early scheduling works.
15465 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15466 correct latency and pipeline.
15467 (cortex_a57_crypto_complex): Likewise.
15468 (cortex_a57_crypto_xor): Likewise.
15469 (define_bypass): Add AES bypass.
15470
15471 2016-02-10 Richard Biener <rguenther@suse.de>
15472
15473 PR tree-optimization/69726
15474 * passes.def: Add DCE pass before late uninit.
15475 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15476 really fixup if-conversions job.
15477
15478 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15479
15480 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15481 (arm_cortex_a57_tune): Likewise.
15482 (aarch_macro_fusion_pair_p): Add support for AES fusion.
15483 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15484
15485 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
15486
15487 * timevar.def (TV_PHASE_DBGINFO): Delete.
15488 (TV_PHASE_CHECK_DBGINFO): Likewise.
15489 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15490
15491 2016-02-10 Richard Biener <rguenther@suse.de>
15492
15493 PR tree-optimization/69719
15494 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15495 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15496
15497 2016-02-09 Andrew Pinski <apinski@cavium.com>
15498
15499 PR tree-opt/69282
15500 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15501 get_vcond_mask_icode returns false.
15502
15503 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15504
15505 PR target/68404
15506 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15507 an ADDIS that adds a pointer to a large constant that sets the
15508 upper16 bits with a load operation.
15509
15510 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15511
15512 PR target/68532
15513 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15514 order.
15515 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15516 endian.
15517 (vzipq_s16): Likewise.
15518 (vzipq_s32): Likewise.
15519 (vzipq_f32): Likewise.
15520 (vzipq_u8): Likewise.
15521 (vzipq_u16): Likewise.
15522 (vzipq_u32): Likewise.
15523 (vzipq_p8): Likewise.
15524 (vzipq_p16): Likewise.
15525
15526 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
15527
15528 PR target/68532
15529 * config/arm/arm.c (neon_endian_lane_map): New function.
15530 (neon_vector_pair_endian_lane_map): New function.
15531 (arm_evpc_neon_vuzp): Allow for big endian lane order.
15532 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15533 endian.
15534 (vuzpq_s16): Likewise.
15535 (vuzpq_s32): Likewise.
15536 (vuzpq_f32): Likewise.
15537 (vuzpq_u8): Likewise.
15538 (vuzpq_u16): Likewise.
15539 (vuzpq_u32): Likewise.
15540 (vuzpq_p8): Likewise.
15541 (vuzpq_p16): Likewise.
15542
15543 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
15544
15545 PR target/69634
15546 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15547 debug insns.
15548
15549 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
15550
15551 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15552 truncate const_int operand 1 to QImode.
15553
15554 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
15555
15556 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15557 corresponding to an abnormal edge.
15558
15559 2016-02-09 Tom de Vries <tom@codesourcery.com>
15560
15561 PR tree-optimization/69599
15562 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15563 function.
15564 (find_func_aliases_for_builtin_call, find_func_clobbers)
15565 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
15566 partition.
15567
15568 2016-02-09 Richard Biener <rguenther@suse.de>
15569
15570 PR tree-optimization/69715
15571 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15572 LHS on calls as non-rewritable.
15573
15574 2016-02-09 Tom de Vries <tom@codesourcery.com>
15575
15576 PR lto/69707
15577 * lto-wrapper.c (append_diag_options): New function.
15578 (compile_offload_image): Call append_diag_options.
15579
15580 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
15581
15582 PR other/69722
15583 * doc/extend.texi (Flag Output Operands): Correct sectioning.
15584 Minor copy-edit to fix verb tenses.
15585
15586 2016-02-08 Jakub Jelinek <jakub@redhat.com>
15587
15588 PR tree-optimization/69209
15589 * ipa-split.c (split_function): If split part is not
15590 returning retval, retval has gimple type but is not
15591 gimple value, force it into a SSA_NAME first.
15592
15593 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
15594
15595 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15596 outdated section.
15597
15598 2016-02-08 Jason Merrill <jason@redhat.com>
15599
15600 PR c++/69631
15601 * convert.c (convert_to_integer_1): Check dofold on truncation
15602 distribution.
15603 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15604 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15605 Rename from *_nofold.
15606 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15607 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15608
15609 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
15610
15611 PR target/60410
15612 * tree.c (build_common_tree_nodes): Remove short_double argument.
15613 All callers changed.
15614 * tree.h (build_common_tree_nodes): Adjust declaration.
15615 * doc/invoke.texi (-fshort-double): Remove documentation.
15616 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15617 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15618 * lto-wrapper.c (merge_and_complain, append_compiler_options)
15619 (append_linker_options): Don't handle OPT_fshort_double.
15620
15621 PR rtl-optimization/68730
15622 * lra-remat.c (insn_to_cand_activation): New static variable.
15623 (lra_remat): Allocate and free it.
15624 (create_cand): New arg activation. Initialize a field in
15625 insn_to_cand_activation if it is nonnull.
15626 (create_cands): Pass the activation insn to create_cand when making
15627 a candidate involving an output reload. Reorganize code a little.
15628 (do_remat): Keep track of active status of candidates in a separate
15629 bitmap.
15630
15631 2016-02-08 Richard Biener <rguenther@suse.de>
15632
15633 PR tree-optimization/69719
15634 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15635 Properly use absolute of the difference of the two offsets to
15636 compare or adjust the segment length.
15637
15638 2016-02-08 Richard Biener <rguenther@suse.de>
15639 Jeff Law <law@redhat.com>
15640
15641 PR target/68273
15642 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15643 types for anonymous SSA names.
15644
15645 2016-02-08 Richard Biener <rguenther@suse.de>
15646
15647 PR rtl-optimization/69274
15648 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15649
15650 2016-02-08 Jeff Law <law@redhat.com>
15651
15652 PR tree-optimization/65917
15653 * tree-ssa-dom.c (record_temporary_equivalences): Record both
15654 equivalences from if (x == y) style conditionals.
15655 (loop_depth_of_name): Remove.
15656 (record_equality): Remove loop depth check.
15657 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15658 (const_and_copies::record_const_or_copy_raw): New member function.
15659 * tree-ssa-scopedtables.c
15660 (const_and_copies::record_const_or_copy_raw): New, factored out of
15661 (const_and_copies::record_const_or_copy): Call new member function.
15662
15663 2016-02-05 Jeff Law <law@redhat.com>
15664
15665 PR tree-optimization/68541
15666 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15667 (count_stmts_in_block): New function.
15668 (poor_ifcvt_candidate_code): Likewise.
15669 (is_feasible_trace): Add some heuristics to determine when path
15670 splitting is profitable.
15671 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15672 is a diamond with a single exit.
15673
15674 2016-02-05 Martin Sebor <msebor@redhat.com>
15675
15676 PR c++/69662
15677 * doc/invoke.texi: Update -Wplacement-new to take an optional
15678 argument.
15679
15680 2016-02-06 Richard Henderson <rth@redhat.com>
15681
15682 PR c/69643
15683 * tree.c (tree_nop_conversion_p): Do not strip casts into or
15684 out of non-standard address spaces.
15685
15686 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15687
15688 PR rtl-optimization/69691
15689 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15690
15691 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
15692
15693 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15694 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15695 (*ieee128_mfvsrd_64bit): Likewise.
15696 (*ieee128_mfvsrd_32bit): Likewise.
15697
15698 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
15699
15700 PR target/69369
15701 Revert r232560:
15702 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
15703
15704 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15705 instrumented_version.
15706
15707 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
15708
15709 * doc/invoke.texi (Optimize Options): In table of --param options
15710 rename second occurrence of tracer-min-branch-ratio to
15711 tracer-min-branch-probability, rename
15712 tracer-min-branch-ratio-feedback to
15713 tracer-min-branch-probability-feedback and clarify description,
15714 rename sched-spec-state-edge-prob-cutoff to
15715 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15716 to selsched-insns-to-rename, rename lto-minpartition to
15717 lto-min-partition, delete reorder-blocks-duplicate and
15718 reorder-blocks-duplicate-feedback.
15719
15720 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15721
15722 * config/s390/s390.c (s390_register_info_set_ranges): Remove
15723 superfluous loops.
15724
15725 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
15726
15727 * doc/extend.texi: S/390: Correct some typos.
15728
15729 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15730
15731 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15732
15733 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15734
15735 PR target/69625
15736 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15737 (s390_register_info_gprtofpr): Use new macros above.
15738 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15739 its name.
15740 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15741 its name. Adjust restore and save gpr ranges.
15742 (s390_register_info_set_ranges): New function.
15743 (s390_register_info): Use new macros above. Call
15744 s390_register_info_set_ranges.
15745 (s390_optimize_register_info): Likewise.
15746 (s390_hard_regno_rename_ok): Use new macros.
15747 (s390_hard_regno_scratch_ok): Likewise.
15748 (s390_emit_epilogue): Likewise.
15749 (s390_can_use_return_insn): Likewise.
15750 (s390_optimize_prologue): Likewise.
15751 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15752
15753 2016-02-05 Jakub Jelinek <jakub@redhat.com>
15754
15755 PR bootstrap/69677
15756 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15757 alignment fixes.
15758 (ix86_option_override_internal): Disable TARGET_STV even for
15759 -m{incoming,preferred}-stack-boundary=3.
15760
15761 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15762
15763 * config.gcc: Mark deprecated rtems targets as obsolete.
15764
15765 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
15766
15767 PR rtl-optimization/64682
15768 PR rtl-optimization/69567
15769 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15770 before I2 only if the register is both used and set in I2.
15771
15772 2016-02-04 DJ Delorie <dj@redhat.com>
15773
15774 * config/msp430/msp430.c (msp430_start_function): Add function type.
15775
15776 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15777
15778 PR fortran/69368
15779 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15780
15781 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
15782
15783 PR rtl-optimization/69577
15784 Revert:
15785 2015-10-29 Richard Henderson <rth@redhat.com>
15786
15787 PR target/68124
15788 PR rtl-opt/67609
15789 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15790 sse check to the exact conditions of PR 67609.
15791
15792 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15793
15794 PR target/69667
15795 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15796 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15797 not allowed into the traditional Altivec registers.
15798 (movtd_64bit_nodm): Likewise.
15799 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15800
15801 2016-02-04 David Malcolm <dmalcolm@redhat.com>
15802
15803 * config/aarch64/cortex-a57-fma-steering.c
15804 (aarch64_register_fma_steering): Remove "static" from arguments
15805 to register_pass.
15806
15807 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
15808
15809 PR target/69619
15810 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15811 twice when complex.
15812
15813 2016-02-04 Mike Frysinger <vapier@gentoo.org>
15814
15815 * doc/invoke.texi: Delete -mno-fma4.
15816
15817 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
15818
15819 PR rtl-optimization/69577
15820 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15821 (find_subregs_of_mode): Update accordingly. Iterate over partial
15822 definitions.
15823
15824 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
15825
15826 * config/arm/arm-protos.h (neon_reinterpret): Remove.
15827 * config/arm/arm.c (neon_reinterpret): Remove.
15828 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15829 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15830 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15831 vreinterpretti): Remove.
15832 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15833 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15834 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15835 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15836 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15837 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15838 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15839 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15840 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15841 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15842 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15843 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15844 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15845 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15846 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15847 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15848 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15849 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15850 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15851 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15852 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15853 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15854 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15855 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15856 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15857 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15858 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15859 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15860 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15861 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15862 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15863 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15864 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15865 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15866 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15867 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15868 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15869 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15870 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15871 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15872 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15873 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15874 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15875 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15876 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15877 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15878 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15879 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15880 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15881 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15882 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15883 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15884 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15885 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15886 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15887 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15888 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15889 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15890 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15891 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15892 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15893 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15894 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15895 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15896 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15897 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15898 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15899 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15900 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15901 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15902 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15903 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15904 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15905 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15906 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15907 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15908 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15909 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15910 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15911 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15912 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15913 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15914 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15915 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15916 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15917 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15918 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15919 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15920 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15921 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15922 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15923 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15924 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15925 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15926 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15927 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15928 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15929 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15930 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15931 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15932 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15933 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15934 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15935
15936 2016-02-04 Martin Liska <mliska@suse.cz>
15937
15938 PR sanitizer/69276
15939 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15940 that are gimple_store_p.
15941 (maybe_instrument_call): Likewise.
15942
15943 2016-02-04 Bin Cheng <bin.cheng@arm.com>
15944
15945 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15946 register scaling out of memory reference and comment why.
15947
15948 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15949
15950 PR target/65932
15951 PR target/67714
15952 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15953 folding the source of a SET.
15954
15955 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15956
15957 PR target/65932
15958 PR target/67714
15959 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15960 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15961
15962 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
15963
15964 PR target/65932
15965 PR target/67714
15966 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15967 HImode.
15968
15969 2016-02-04 Christian Bruel <christian.bruel@st.com>
15970
15971 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15972 * config/arm/arm.c (arm_set_current_function): Likewise.
15973
15974 2016-02-04 Jakub Jelinek <jakub@redhat.com>
15975 Ilya Enkovich <enkovich.gnu@gmail.com>
15976 H.J. Lu <hongjiu.lu@intel.com>
15977
15978 PR target/69454
15979 * config/i386/i386.c (convert_scalars_to_vector): Remove
15980 stack alignment fixes.
15981 (ix86_option_override_internal): Disable TARGET_STV if stack
15982 might not be aligned enough.
15983 (ix86_minimum_alignment): Assert that TARGET_STV is false.
15984
15985 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
15986
15987 * config/i386/x86-tune.def: Disable default prefetching
15988 for -march=znver1.
15989
15990 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15991 Vladimir Makarov <vmakarov@redhat.com>
15992
15993 PR target/69461
15994 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15995 in validating fused toc addresses.
15996
15997 2016-02-03 Jakub Jelinek <jakub@redhat.com>
15998
15999 PR c/69627
16000 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
16001 range->m_caret fields if range->m_show_caret_p is false.
16002
16003 PR target/69644
16004 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
16005 Force oldval into register if it does not satisfy reg_or_short_operand
16006 predicate. Fix up formatting.
16007
16008 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
16009 Alexandre Oliva <aoliva@redhat.com>
16010
16011 PR target/69461
16012 * lra-constraints.c (simplify_operand_subreg): Check additionally
16013 address validity after potential reloading.
16014 (process_address_1): Check insns validity. In case of failure do
16015 nothing.
16016
16017 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
16018
16019 PR target/69118
16020 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
16021 Fix target.
16022
16023 2016-02-02 Jakub Jelinek <jakub@redhat.com>
16024
16025 * wide-int.cc (canonize_uhwi): New function.
16026 (wi::divmod_internal): Use it.
16027
16028 2016-02-02 James Norris <jnorris@codesourcery.com
16029
16030 * gimplify.c (omp_notice_variable): Add usage check.
16031
16032 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
16033
16034 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16035 like LE, GE, LT, GT when emitting relational operator.
16036
16037 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16038
16039 * ira-costs.c (find_costs_and_classes): Add extra argument.
16040 * target.def (ira_change_pseudo_allocno_class): Add parameter.
16041 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16042 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16043 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16044 Add best_class parameter, and return it if not ALL_REGS.
16045 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16046 Add parameter.
16047 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16048 Update target hook.
16049
16050 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
16051
16052 * config/aarch64/aarch64.c
16053 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16054 (aarch64_ira_change_pseudo_allocno_class): New function.
16055
16056 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
16057
16058 PR target/67032
16059 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16060
16061 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16062
16063 * config/avr/avr.c (avr_option_override): Set
16064 PARAM_ALLOW_STORE_DATA_RACES to 1.
16065
16066 2016-02-02 Richard Biener <rguenther@suse.de>
16067
16068 PR tree-optimization/69595
16069 * match.pd: Add range test simplifications to true/false.
16070
16071 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
16072
16073 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16074 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16075 instead.
16076
16077 2016-02-02 Richard Biener <rguenther@suse.de>
16078
16079 PR tree-optimization/69606
16080 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16081 info on the result before moving a stmt.
16082
16083 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
16084
16085 PR middle-end/68542
16086 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16087 branch with vector comparison.
16088 * config/i386/sse.md (VI48_AVX): New mode iterator.
16089 (define_expand "cbranch<mode>4): Add support for conditional branch
16090 with vector comparison.
16091 * tree-vect-loop.c (optimize_mask_stores): New function.
16092 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16093 has_mask_store field of vect_info.
16094 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16095 vectorized loops having masked stores after vec_info destroy.
16096 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16097 correspondent macros.
16098 (optimize_mask_stores): Add prototype.
16099
16100 2016-02-02 Alan Modra <amodra@gmail.com>
16101
16102 PR target/69548
16103 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16104 allow subregs.
16105
16106 2016-02-02 Alan Modra <amodra@gmail.com>
16107
16108 PR target/68662
16109 * config/rs6000/rs6000.c (need_toc_init): New var, set it
16110 whenever toc_label_name used.
16111 (rs6000_file_start): Don't set up toc section here,
16112 (rs6000_output_function_epilogue): do so here instead,
16113 (rs6000_xcoff_file_start): and here.
16114 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16115 (load_toc_aix_di): Likewise.
16116
16117 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16118
16119 PR rtl-optimization/69592
16120 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16121 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16122 (num_sign_bit_copies_binary_arith_p): New inline function.
16123 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16124
16125 2016-02-01 Jeff Law <law@redhat.com>
16126
16127 PR tree-optimization/69580
16128 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16129 * tree-ssa-threadbackward.c
16130 (fsm_find_control_statement_thread_paths): Do not try to walk
16131 through large PHI nodes.
16132
16133 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16134
16135 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16136 when count is incremented above limit, don't analyze further
16137 insns afterwards.
16138
16139 * omp-low.c (oacc_parse_default_dims): Avoid
16140 -Wsign-compare warning, make sure value fits into int
16141 rather than just unsigned int.
16142
16143 2016-02-01 Bin Cheng <bin.cheng@arm.com>
16144
16145 PR tree-optimization/67921
16146 * fold-const.c (split_tree): New parameters. Convert pointer
16147 type variable part to proper type before negating.
16148 (fold_binary_loc): Pass new arguments to split_tree.
16149
16150 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
16151
16152 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16153 (nvptx_goacc_validate_dims): Extend to handle global defaults.
16154 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16155 * doc/tm.texti: Rebuilt.
16156 * doc/invoke.texi (fopenacc-dim): Document.
16157 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16158 (append_compiler_options): Likewise.
16159 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16160 (oacc_parse_default_dims): New.
16161 (oacc_validate_dims): Add USED arg. Select non-unity default when
16162 possible.
16163 (oacc_loop_fixed_partitions): Return mask of used partitions.
16164 (oacc_loop_auto_partitions): Emit dump info.
16165 (oacc_loop_partition): Return mask of used partitions.
16166 (execute_oacc_device_lower): Parse default dimension arg. Adjust
16167 loop partitioning and validation calls.
16168
16169 2016-02-01 Richard Biener <rguenther@suse.de>
16170
16171 PR middle-end/69556
16172 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16173
16174 2016-02-01 Richard Biener <rguenther@suse.de>
16175
16176 PR tree-optimization/69574
16177 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16178 of asserting return chrec_dont_know.
16179
16180 2016-02-01 Martin Liska <mliska@suse.cz>
16181
16182 * mem-stats-traits.h: Add copyright header.
16183 * mem-stats.h: Likewise.
16184
16185 2016-02-01 Richard Biener <rguenther@suse.de>
16186
16187 PR tree-optimization/69579
16188 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16189 Do not propagate through abnormal PHI results.
16190
16191 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
16192
16193 * postreload.c (reload_cse_simplify): Remove dead code.
16194
16195 2016-02-01 Jakub Jelinek <jakub@redhat.com>
16196
16197 PR rtl-optimization/69570
16198 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16199 if there is more than one set, not if there is a single set.
16200
16201 2016-02-01 Richard Henderson <rth@redhat.com>
16202
16203 PR rtl-opt/69535
16204 * combine.c (make_compound_operation): When looking through a
16205 subreg, make sure to re-extend to the width of the outer mode.
16206
16207 2016-01-30 Jakub Jelinek <jakub@redhat.com>
16208
16209 PR tree-optimization/69546
16210 * wide-int.cc (wi::divmod_internal): For unsigned division
16211 where both operands fit into uhwi, if o1 is 1 and o0 has
16212 msb set, if divident_prec is larger than bits per hwi,
16213 clear another quotient word and return 2 instead of 1.
16214 Similarly for remainder with msb in HWI set, if dividend_prec
16215 is larger than bits per hwi.
16216
16217 2016-01-29 Martin Jambor <mjambor@suse.cz>
16218
16219 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16220 Use short lowercase names.
16221 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
16222 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16223 acq_rel one. Protect warning agains segfaults if
16224 get_memory_order_name returns NULL.
16225 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16226 with release semantics. Do not warn if get_memory_order already did.
16227 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16228 semantics. Fix check for relaxed or acquire semantics. Do not warn
16229 if get_memory_order already did.
16230
16231 2016-01-29 Sebastian Pop <s.pop@samsung.com>
16232
16233 * doc/install.texi: Document that isl-0.16 is supported.
16234
16235 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
16236
16237 PR target/69299
16238 * config/i386/constraints.md (Bm): Describe as special memory
16239 constraint.
16240 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16241 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16242 * genpreds.c (struct constraint_data): Add is_special_memory.
16243 (have_special_memory_constraints, special_memory_start): New
16244 static vars.
16245 (special_memory_end): Ditto.
16246 (add_constraint): Add new arg is_special_memory. Add code to
16247 process its true value. Update have_special_memory_constraints.
16248 (process_define_constraint): Pass the new arg.
16249 (process_define_register_constraint): Ditto.
16250 (choose_enum_order): Process special memory.
16251 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16252 function insn_extra_special_memory_constraint.
16253 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16254 * gensupport.c (process_rtx): Process
16255 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16256 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16257 * ira-lives.c (single_reg_class): Use
16258 insn_extra_special_memory_constraint.
16259 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16260 * lra-constraints.c (process_alt_operands): Ditto.
16261 (curr_insn_transform): Use insn_extra_special_memory_constraint.
16262 * recog.c (asm_operand_ok, preprocess_constraints): Process
16263 CT_SPECIAL_MEMORY.
16264 * reload.c (find_reloads): Ditto.
16265 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16266 * stmt.c (parse_input_constraint): Use
16267 insn_extra_special_memory_constraint.
16268
16269 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16270
16271 PR target/69530
16272 * lra-splill.c (lra_final_code_change): Revert r229087 by
16273 removing all sub-registers.
16274
16275 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
16276
16277 PR target/65604
16278 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16279
16280 2016-01-29 Jakub Jelinek <jakub@redhat.com>
16281
16282 PR target/69551
16283 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16284 SSE1, copy target into the temporary reg first before recursing
16285 on it.
16286
16287 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
16288
16289 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16290 with vm.
16291
16292 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16293
16294 * ginclude/stdarg.h: Test __cplusplus instead of
16295 __GXX_EXPERIMENTAL_CXX0X__.
16296
16297 2016-01-29 Richard Biener <rguenther@suse.de>
16298
16299 PR tree-optimization/69547
16300 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16301 Do not mark clobbers necessary.
16302 (mark_all_reaching_defs_necessary_1): Likewise.
16303
16304 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16305
16306 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16307 declaration name with %qs and print it in both error messages.
16308 Also fix indentation.
16309
16310 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
16311
16312 PR other/69006
16313 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16314 trailing blank line from error message.
16315
16316 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
16317
16318 PR c++/69462
16319 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16320 for C++-11.
16321
16322 2016-01-29 Richard Biener <rguenther@suse.de>
16323
16324 PR middle-end/69537
16325 * match.pd: Allow all integral types when simplifying a
16326 widening or sign-changing conversion.
16327
16328 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16329
16330 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16331 back to setting codegen_error to fail codegen.
16332
16333 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
16334
16335 PR target/69459
16336 * config/i386/constraints.md (C): Only accept constant zero operand.
16337 (BC): New constraint.
16338 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16339 instead of C constraint.
16340 * doc/md.texi (Machine Constraints): Update description
16341 of C constraint.
16342
16343 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
16344
16345 PR target/68400
16346 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16347
16348 2016-01-28 Jakub Jelinek <jakub@redhat.com>
16349
16350 PR middle-end/69542
16351 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16352 non-debug insns.
16353
16354 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
16355
16356 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16357 branches if using guessed profile.
16358
16359 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
16360
16361 * graphite-optimize-isl.c (optimize_isl): Fix dump.
16362
16363 2016-01-28 Richard Henderson <rth@redhat.com>
16364
16365 PR target/69305
16366 * config/aarch64/aarch64-modes.def (CC_Cmode): New
16367 * config/aarch64/aarch64-protos.h: Update.
16368 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16369 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16370 (aarch64_get_condition_code_1): Handle CC_Cmode.
16371 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16372 (*add<mode>3_compareC_cconly_imm): New.
16373 (*add<mode>3_compareC_cconly): New.
16374 (*add<mode>3_compareC_imm): New.
16375 (add<mode>3_compareC): New.
16376 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16377 to be first. Use aarch64_carry_operation.
16378 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16379 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16380 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16381 (subti3): Use subdi3_compare1.
16382 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16383 (sub<mode>3_compare1): New.
16384 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16385 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16386 (*subsi3_carryin_uxtw): Likewise.
16387 (*ngc<mode>, *ngcsi_uxtw): Likewise.
16388 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16389 * config/aarch64/iterators.md (DWI): New.
16390 * config/aarch64/predicates.md (aarch64_carry_operation): New.
16391 (aarch64_borrow_operation): New.
16392
16393 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16394
16395 * graphite-optimize-isl.c (optimize_isl): Print a different debug
16396 message when isl does not return a valid schedule.
16397
16398 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16399
16400 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16401 Remove comments from class declarations: they are already in the code
16402 close by the defs.
16403
16404 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16405
16406 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16407 codegen_error_p.
16408 (ternary_op_to_tree): Same.
16409 (unary_op_to_tree): Same.
16410 (nary_op_to_tree): Same.
16411 (gcc_expression_from_isl_expr_op): Same.
16412 (gcc_expression_from_isl_expression): Same.
16413 (graphite_create_new_loop): Same.
16414 (graphite_create_new_loop_guard): Same.
16415 (build_iv_mapping): Same.
16416 (graphite_create_new_guard): Same.
16417 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16418 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16419
16420 2016-01-28 Sebastian Pop <s.pop@samsung.com>
16421
16422 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16423 instead of setting codegen_error to fail codegen.
16424
16425 2016-01-28 Jason Merrill <jason@redhat.com>
16426
16427 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16428
16429 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16430
16431 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16432 Remove CONST_INT_P check in CCMP cost calculation.
16433
16434 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16435
16436 * config/aarch64/aarch64.c (generic_vector_cost):
16437 Set vec_permute_cost.
16438 (cortexa57_vector_cost): Likewise.
16439 (exynosm1_vector_cost): Likewise.
16440 (xgene1_vector_cost): Likewise.
16441 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16442 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16443 Add vec_permute_cost entry.
16444
16445 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
16446
16447 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16448 immediate as %1.
16449 (add<mode>3_compare0): Likewise.
16450 (addsi3_compare0_uxtw): Likewise.
16451 (add<mode>3nr_compare0): Likewise.
16452 (compare_neg<mode>): Likewise.
16453 (<optab><mode>3): Likewise.
16454
16455 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
16456
16457 * tree-vect-stmts.c (vectorizable_comparison): Add
16458 NULL check for vectype.
16459
16460 2016-01-28 Richard Biener <rguenther@suse.de>
16461
16462 PR tree-optimization/69466
16463 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16464 Account for PHIs we couldn't duplicate.
16465
16466 2016-01-28 Martin Liska <mliska@suse.cz>
16467
16468 PR pch/68758
16469 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16470 instead of ENABLE_VALGRIND_CHECKING.
16471
16472 2016-01-27 Richard Henderson <rth@redhat.com>
16473
16474 PR rtl-opt/69447
16475 * lra-remat.c (subreg_regs): New.
16476 (dump_candidates_and_remat_bb_data): Dump it.
16477 (operand_to_remat): Reject if operand in subreg_regs.
16478 (set_bb_regs): Collect subreg_regs.
16479 (lra_remat): Init and free subreg_regs. Compute
16480 calculate_local_reg_remat_bb_data before create_cands.
16481
16482 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
16483
16484 PR target/68986
16485 * config/i386/i386.c (ix86_update_stack_boundary): Don't
16486 change stack_alignment_needed for __tls_get_addr call.
16487
16488 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
16489
16490 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16491
16492 2016-01-27 Jeff Law <law@redhat.com>
16493
16494 PR tree-optimization/68398
16495 PR tree-optimization/69196
16496 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16497 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16498 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16499 Only count PHIs in the last block in the path. The others will
16500 const/copy propagate away. Add heuristic to allow more irreducible
16501 subloops to be created when it is likely profitable to do so.
16502
16503 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16504 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
16505 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
16506
16507 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16508
16509 PR lto/69254
16510 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16511 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16512 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16513 * tree-streamer-in.c: Include asan.h.
16514 (streamer_get_builtin_tree): For builtins in sanitizer
16515 range call initialize_sanitizer_builtins and retry.
16516
16517 2016-01-27 Ian Lance Taylor <iant@google.com>
16518
16519 * common.opt (fkeep-gc-roots-live): New undocumented option.
16520 * tree-ssa-loop-ivopts.c (add_candidate_1): If
16521 -fkeep-gc-roots-live, skip pointers.
16522 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16523 NULL.
16524
16525 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
16526
16527 PR target/69512
16528 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16529 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16530
16531 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
16532
16533 PR target/68380
16534 * configure.ac: NetBSD provides SSP in its C library.
16535 * configure: Updated.
16536
16537 2016-01-27 Richard Biener <rguenther@suse.de>
16538
16539 PR tree-optimization/69166
16540 * tree-vect-loop.c (vect_is_simple_reduction): Always check
16541 reduction code for commutativity / associativity.
16542
16543 2016-01-27 Martin Jambor <mjambor@suse.cz>
16544
16545 PR tree-optimization/69355
16546 * tree-sra.c (analyze_access_subtree): Correct hole detection when
16547 total_scalarization fails.
16548
16549 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
16550
16551 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16552 power9.
16553
16554 2016-01-27 Christian Bruel <christian.bruel@st.com>
16555
16556 PR target/69245
16557 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16558 Move arm_reset_previous_fndecl and set_target_option_current_node in
16559 the conditional part. Call save_restore_target_globals.
16560 * config/arm/arm.c (arm_set_current_function):
16561 Refactor to better support #pragma target and attribute mix.
16562 Call save_restore_target_globals.
16563 * config/arm/arm-protos.h (save_restore_target_globals): New function.
16564
16565 2016-01-27 Martin Liska <mliska@suse.cz>
16566
16567 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16568 reference for an HSA kernel and its host function.
16569
16570 2016-01-27 Jakub Jelinek <jakub@redhat.com>
16571
16572 PR tree-optimization/69399
16573 * wide-int.h (wi::lrshift): For larger precisions, only
16574 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16575
16576 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
16577
16578 * config/arc/predicates.md (proper_comparison_operator): Reject
16579 constant-constant comparison.
16580
16581 2016-01-26 Tom de Vries <tom@codesourcery.com>
16582
16583 PR tree-optimization/69110
16584 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16585 DR_NUM_DIMENSIONS == 0.
16586
16587 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
16588 Sebastian Pop <s.pop@samsung.com>
16589
16590 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16591 isl_ast_op_cond and isl_ast_op_select.
16592 (gcc_expression_from_isl_expr_op): Same.
16593
16594 2016-01-26 Jason Merrill <jason@redhat.com>
16595
16596 PR c++/68782
16597 * tree.c (recompute_constructor_flags): Split out from
16598 build_constructor.
16599 (verify_constructor_flags): New.
16600 * tree.h: Declare them.
16601
16602 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
16603
16604 PR rtl-optimization/69217
16605 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16606 are no TYPE_FIELDS set for the record type.
16607
16608 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16609
16610 PR target/68662
16611 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16612 toc_label_name unconditionally.
16613 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16614 SYMBOL_REF string. Use toc_label_name instead of constructing
16615 LCTOC1.
16616 (rs6000_elf_declare_function_name): Use toc_label_name instead of
16617 constructing LCTOC1.
16618
16619 2016-01-26 Martin Sebor <msebor@redhat.com>
16620
16621 PR other/69477
16622 * doc/extend.texi (Common Type Attributes): Move text that talks about
16623 attribute packed from attribute aligned to the section discussing
16624 the former attribute for clarity.
16625
16626 2016-01-26 Richard Henderson <rth@redhat.com>
16627
16628 PR middle-end/60908
16629 * trans-mem.c (tm_region_init): Mark entry block as visited.
16630
16631 2016-01-26 David Malcolm <dmalcolm@redhat.com>
16632
16633 PR other/69006
16634 * diagnostic-show-locus.c (layout::print_source_line): Replace
16635 call to pp_newline with call to layout::print_newline.
16636 (layout::print_annotation_line): Likewise.
16637 (layout::move_to_column): Likewise.
16638 (layout::print_any_fixits): After printing any fixits, print a
16639 trailing newline, if necessary.
16640 (layout::print_newline): New method, resetting any colorization
16641 before a newline.
16642 (diagnostic_show_locus): Move the pp_newline to before the
16643 early bailout. Remove dummy block enclosing the layout instance.
16644 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16645 of pp_newline_and_flush with pp_flush.
16646 (diagnostic_append_note): Delete use of pp_newline.
16647 (diagnostic_append_note_at_rich_loc): Delete.
16648 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16649 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16650 when newline characters are added to the buffer.
16651
16652 2016-01-26 Michael Matz <matz@suse.de>
16653
16654 * configure.ac (ac_cv_std_swap_in_utility): New test.
16655 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16656 * configure: Regenerate.
16657 * config.in: Regenerate.
16658
16659 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
16660
16661 * config/arc/arc.md (cstoresi4): Force operand into register.
16662 (arcset<code>): Fix predicate.
16663 (arcsetltu): Likewise.
16664 (arcsetgeu): Likewise.
16665 (arcsethi): Likewise.
16666 (arcsetls): Likewise.
16667
16668 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16669
16670 PR tree-optimization/69483
16671 * gimple-fold.c (canonicalize_constructor_val): Return NULL
16672 if base has error_mark_node type.
16673
16674 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
16675
16676 PR target/68620
16677 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16678 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16679 New helper macros.
16680 (vget_lane_f16): Handle big-endian.
16681 (vgetq_lane_f16): Likewise.
16682 (vset_lane_f16): Likewise.
16683 (vsetq_lane_f16): Likewise.
16684 * config/arm/iterators.md (VQXMOV): Add V8HF.
16685 (VDQ): Add V4HF and V8HF.
16686 (V_reg): Handle V4HF and V8HF.
16687 (Is_float_mode): Likewise.
16688 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16689 neon_vdup_nv8hf): New patterns.
16690 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16691 Use VD_LANE iterator.
16692 (neon_vld1_dup<mode>): Use VQ2 iterator.
16693
16694 2016-01-26 Nathan Sidwell <nathan@acm.org>
16695
16696 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16697 (set_oacc_fn_attrib): Add IS_KERNEL arg.
16698 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16699 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16700 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16701 (oacc_validate_dims): Add LEVEL arg, don't return level.
16702 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16703 oacc_validate_dims.
16704 (execute_oacc_device_lower): Adjust, add more dump output.
16705 * tree-ssa-loop.c (gate_oacc_kernels): Use
16706 oacc_fn_attrib_kernels_p.
16707 * tree-parloops.c (create_parallel_loop): Adjust
16708 set_oacc_fn_attrib call.
16709
16710 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16711
16712 PR lto/69254
16713 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16714 (append_compiler_options): Handle -fcilkplus.
16715 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16716
16717 2016-01-26 Nick Clifton <nickc@redhat.com>
16718
16719 PR target/66655
16720 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16721 been marked as DECL_ONE_ONLY but we do not the means to make it
16722 so, then do not allow it to bind locally.
16723
16724 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16725
16726 PR lto/69254
16727 * opts.h (parse_sanitizer_options): New prototype.
16728 * opts.c (sanitizer_opts): New array.
16729 (parse_sanitizer_options): New function.
16730 (common_handle_option): Use parse_sanitizer_options.
16731
16732 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
16733
16734 PR target/68986
16735 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16736 alignment adjustment to ...
16737 (ix86_update_stack_boundary): Here. Don't over-align stack for
16738 __tls_get_addr.
16739 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16740 if __tls_get_addr is called.
16741
16742 2016-01-26 Christian Bruel <christian.bruel@st.com>
16743
16744 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16745
16746 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
16747
16748 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16749
16750 2016-01-26 Richard Biener <rguenther@suse.de>
16751
16752 PR middle-end/69467
16753 * match.pd: Guard X * CST CMP 0 pattern with single_use.
16754
16755 2016-01-26 Richard Biener <rguenther@suse.de>
16756
16757 PR tree-optimization/69452
16758 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16759 (move_computations_dom_walker::before_dom_children): Rename
16760 to ...
16761 (move_computations_worker): This.
16762 (move_computations): Perform an RPO rather than a DOM walk.
16763
16764 2016-01-26 Jakub Jelinek <jakub@redhat.com>
16765
16766 PR target/69442
16767 * combine.c (combine_instructions): For REG_EQUAL note with
16768 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16769 to the underlying register.
16770 * doc/rtl.texi (REG_EQUAL): Document the behavior of
16771 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16772
16773 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
16774
16775 PR target/67896
16776 * config/aarch64/aarch64-builtins.c
16777 (aarch64_init_simd_builtin_types): Do not set structural
16778 equality to __Poly{8,16,64,128}_t types.
16779
16780 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
16781
16782 PR tree-optimization/69400
16783 * wide-int.cc (wi_pack): Take the precision as argument and
16784 perform canonicalization here rather than in the callers.
16785 Use the main loop to handle all full-width HWIs. Add a
16786 zero HWI if in_len isn't a full result.
16787 (wi::divmod_internal): Update accordingly.
16788 (wi::mul_internal): Likewise. Simplify.
16789
16790 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16791 Sebastian Pop <s.pop@samsung.com>
16792
16793 * graphite-poly.c (apply_poly_transforms): Simplify.
16794 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16795 (print_isl_map): Same.
16796 (print_isl_union_map): Same.
16797 (print_isl_schedule): New.
16798 (debug_isl_schedule): New.
16799 * graphite-dependences.c (scop_get_reads): Do not call
16800 isl_union_map_add_map that is undocumented isl functionality.
16801 (scop_get_must_writes): Same.
16802 (scop_get_may_writes): Same.
16803 (scop_get_original_schedule): Remove.
16804 (scop_get_dependences): Do not call isl_union_map_compute_flow that
16805 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
16806 (compute_deps): Remove.
16807 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16808 (debug_schedule_ast): New.
16809 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16810 set_separate_option.
16811 (graphite_regenerate_ast_isl): Add dump.
16812 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16813 from scop->transformed_schedule.
16814 (graphite_regenerate_ast_isl): Add more dump.
16815 * graphite-optimize-isl.c (optimize_isl): Set
16816 scop->transformed_schedule. Check whether schedules are equal.
16817 (apply_poly_transforms): Move here.
16818 * graphite-poly.c (apply_poly_transforms): ... from here.
16819 (free_poly_bb): Static.
16820 (free_scop): Static.
16821 (pbb_number_of_iterations_at_time): Remove.
16822 (print_isl_ast): New.
16823 (debug_isl_ast): New.
16824 (debug_scop_pbb): New.
16825 * graphite-scop-detection.c (print_edge): Move.
16826 (print_sese): Move.
16827 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16828 (build_scop_scattering): Remove.
16829 (create_pw_aff_from_tree): Assert instead of bailing out.
16830 (add_condition_to_pbb): Remove unused code, do not fail.
16831 (add_conditions_to_domain): Same.
16832 (add_conditions_to_constraints): Remove.
16833 (build_scop_context): New.
16834 (add_iter_domain_dimension): New.
16835 (build_iteration_domains): Initialize pbb->iterators.
16836 Call add_conditions_to_domain.
16837 (nested_in): New.
16838 (loop_at): New.
16839 (index_outermost_in_loop): New.
16840 (index_pbb_in_loop): New.
16841 (outermost_pbb_in): New.
16842 (add_in_sequence): New.
16843 (add_outer_projection): New.
16844 (outer_projection_mupa): New.
16845 (add_loop_schedule): New.
16846 (build_schedule_pbb): New.
16847 (build_schedule_loop): New.
16848 (embed_in_surrounding_loops): New.
16849 (build_schedule_loop_nest): New.
16850 (build_original_schedule): New.
16851 (build_poly_scop): Call build_original_schedule.
16852 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16853 (free_poly_dr): Remove.
16854 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
16855 (free_poly_bb): Remove.
16856 (debug_loop_vec): Remove.
16857 (print_isl_ast): Declare.
16858 (debug_isl_ast): Declare.
16859 (scop_do_interchange): Remove.
16860 (scop_do_strip_mine): Remove.
16861 (scop_do_block): Remove.
16862 (flatten_all_loops): Remove.
16863 (optimize_isl): Remove.
16864 (pbb_number_of_iterations_at_time): Remove.
16865 (debug_scop_pbb): Declare.
16866 (print_schedule_ast): Declare.
16867 (debug_schedule_ast): Declare.
16868 (struct scop): Remove schedule. Add original_schedule,
16869 transformed_schedule.
16870 (free_gimple_poly_bb): Remove.
16871 (print_generated_program): Remove.
16872 (debug_generated_program): Remove.
16873 (unify_scattering_dimensions): Remove.
16874 * sese.c (print_edge): ... here.
16875 (print_sese): ... here.
16876 (debug_edge): ... here.
16877 (debug_sese): ... here.
16878 * sese.h (print_edge): Declare.
16879 (print_sese): Declare.
16880 (dump_edge): Declare.
16881 (dump_sese): Declare.
16882
16883 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
16884 Sebastian Pop <s.pop@samsung.com>
16885
16886 * Makefile.in: Set ISLVER in site.exp.
16887
16888 2016-01-25 Jakub Jelinek <jakub@redhat.com>
16889
16890 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16891 DECL_VALUE_EXPR of new_var even for the non-array case. Look
16892 through DECL_VALUE_EXPR for expansion.
16893
16894 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
16895
16896 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16897 the frame info after reload completed.
16898
16899 2016-01-25 Jeff Law <law@redhat.com>
16900
16901 PR tree-optimization/69196
16902 PR tree-optimization/68398
16903 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16904 tree-ssa-threadupdate.c.
16905 (determine_bb_domination_status): Prototype
16906 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16907 (determine_bb_domination_status): No longer static.
16908 (valid_jump_thread_path): Remove code to detect characteristics
16909 of the jump thread path not associated with correctness.
16910 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16911 Correct test for thread path length. Count PHIs for real operands as
16912 statements that need to be copied. Do not count ASSERT_EXPRs.
16913 Look at all the blocks in the thread path. Compute and selectively
16914 filter thread paths based on threading through the latch, threading
16915 a multiway branch or crossing a multiway branch.
16916
16917 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16918
16919 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
16920 decl with __attribute__ ((unused)) annotation.
16921
16922 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
16923
16924 PR target/69421
16925 * tree-vect-stmts.c (vectorizable_condition): Check vectype
16926 of operands is compatible with a statement vectype.
16927
16928 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
16929
16930 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16931 improve wording for mixed storage order support.
16932
16933 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
16934
16935 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16936 (vcvt_u64_f64): Likewise.
16937 (vcvta_s64_f64): Likewise.
16938 (vcvta_u64_f64): Likewise.
16939 (vcvtm_s64_f64): Likewise.
16940 (vcvtm_u64_f64): Likewise.
16941 (vcvtn_s64_f64): Likewise.
16942 (vcvtn_u64_f64): Likewise.
16943 (vcvtp_s64_f64): Likewise.
16944 (vcvtp_u64_f64): Likewise.
16945
16946 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
16947
16948 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16949 (arc_init): Check validity mll64 option.
16950 (arc_save_restore): Use double load/store instruction.
16951 (arc_expand_movmem): Likewise.
16952 (arc_split_move): Don't split if we have double load/store
16953 instructions. Returns a boolean.
16954 (arc_process_double_reg_moves): Change function to return boolean
16955 instead of a sequence of instructions.
16956 (arc_dwarf_register_span): New function.
16957 * config/arc/arc-protos.h (arc_split_move): Change prototype.
16958 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16959 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16960 (*movdf_insn): Likewise.
16961 * config/arc/arc.opt (mll64): New option.
16962 * config/arc/predicates.md (even_register_operand): New predicate.
16963 * doc/invoke.texi (ARC Options): Add mll64 documentation.
16964
16965 2016-01-25 Richard Biener <rguenther@suse.de>
16966
16967 PR lto/69393
16968 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16969 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16970 DECL_NAMELESS.
16971 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16972
16973 2016-01-25 Richard Biener <rguenther@suse.de>
16974
16975 PR tree-optimization/69376
16976 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16977 flag.
16978 (VN_INFO_ANTI_RANGE_P): New inline.
16979 (VN_INFO_RANGE_TYPE): Likewise.
16980 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16981 SSA_NAME_ANTI_RANGE_P.
16982 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16983 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16984 Properly query VN_INFO_RANGE_TYPE.
16985
16986 2016-01-25 Nick Clifton <nickc@redhat.com>
16987
16988 PR target/66655
16989 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16990
16991 2016-01-23 Tom de Vries <tom@codesourcery.com>
16992
16993 PR tree-optimization/69426
16994 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16995 removed clobber.
16996
16997 2016-01-23 Jakub Jelinek <jakub@redhat.com>
16998
16999 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
17000 "the the" with "the" in the comments.
17001 * ipa-devirt.c (build_type_inheritance_graph,
17002 update_type_inheritance_graph): Likewise.
17003 * tree.c (build_function_type_list_1): Likewise.
17004 * cfgloopmanip.c (scale_loop_profile): Likewise.
17005 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
17006 * gimple-ssa-split-paths.c
17007 (find_block_to_duplicate_for_splitting_paths): Likewise.
17008 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
17009 * expr.c (convert_move): Likewise.
17010 * var-tracking.c (vt_stack_adjustments): Likewise.
17011 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
17012 * tree-vrp.c (test_for_singularity): Likewise.
17013
17014 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
17015 directly instead of building a temporary tree.
17016
17017 PR bootstrap/69434
17018 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
17019 remove <algorithm> include.
17020
17021 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17022
17023 PR target/69432
17024 * config/i386/i386.c: Include dojump.h.
17025 (expand_small_movmem_or_setmem,
17026 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
17027 fixes.
17028 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
17029 if dynamic_check != -1.
17030
17031 2016-01-21 Jeff Law <law@redhat.com>
17032
17033 PR middle-end/69347
17034 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17035 record_temporary_equivalences. Rewritten to avoid unnecessary calls
17036 into dominated_by_p.
17037 (cprop_into_successor_phis): Avoid unnecessary tests.
17038
17039 2016-01-22 Richard Henderson <rth@redhat.com>
17040
17041 PR target/69416
17042 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17043 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17044
17045 2016-01-22 Michael Matz <matz@suse.de>
17046
17047 * system.h (string, algorithm): Include only conditionally.
17048 (new): Include always under C++.
17049 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17050 * final.c (toplevel): Ditto.
17051 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17052 * genconditions.c (write_header): Make gencondmd.c define
17053 INCLUDE_STRING.
17054 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17055
17056 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17057 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17058
17059 2016-01-22 Christian Bruel <christian.bruel@st.com>
17060
17061 PR target/68674
17062 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17063
17064 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17065
17066 PR target/69403
17067 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17068 define_insn_and_split. Ensure operands[1] and operands[0] do not
17069 get assigned the same register.
17070
17071 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17072
17073 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17074
17075 2016-01-22 Christian Bruel <christian.bruel@st.com>
17076
17077 * config/arm/arm-c.c (arm_pragma_target_parse):
17078 Remove warn_builtin_macro_redefined overwrite.
17079
17080 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17081
17082 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17083 flag_non_call_exceptions compatibility.
17084
17085 2016-01-22 Jakub Jelinek <jakub@redhat.com>
17086
17087 PR debug/66668
17088 * dwarf2out.c (add_child_die_after): New function.
17089 (dwarf_qual_info_t): New type.
17090 (dwarf_qual_info): New variable.
17091 (qualified_die_p): New function.
17092 (modified_type_die): For -fdebug-types-section, ensure
17093 canonical order of qualifiers. Put qualified DIEs adjacent
17094 to the corresponding non-qualified type DIE and search there
17095 for existing qualified DIEs.
17096
17097 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
17098
17099 * doc/extend.texi (scalar_storage_order type attribute): Document
17100 restriction on type punning and aliasing, and remove future tense.
17101
17102 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
17103
17104 PR target/69252
17105 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17106 first stage.
17107
17108 2016-01-21 Jeff Law <law@redhat.com>
17109
17110 PR middle-end/69347
17111 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17112 useless call to record_temporary_equivalences.
17113 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17114 allocate 10 slots in the bb_path vector and let it grow as needed.
17115 (fsm_find_control_statement_thread_paths): Similarly for the next_path
17116 vector.
17117
17118 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17119
17120 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17121 Detangle.
17122 * configure: Regenerate.
17123
17124 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
17125
17126 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17127 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17128
17129 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
17130
17131 PR middle-end/66178
17132 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17133 drop EXPAND_INITIALIZER.
17134 * rtl.h (contains_symbolic_reference_p): Declare.
17135 * rtlanal.c (contains_symbolic_reference_p): New function.
17136 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17137 a subtraction into a NOT if symbolic constants are involved.
17138
17139 2016-01-21 Anton Blanchard <anton@samba.org>
17140 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17141
17142 PR target/63354
17143 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17144 #define.
17145 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17146 function.
17147
17148 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17149
17150 * config/microblaze/microblaze.c
17151 (get_branch_target): New.
17152 (insert_wic_for_ilb_runout): New.
17153 (insert_wic): New.
17154 (microblaze_machine_dependent_reorg): New.
17155 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17156 * config/microblaze/microblaze.md
17157 (UNSPEC_IPREFETCH): Define.
17158 (iprefetch): New pattern
17159 * config/microblaze/microblaze.opt
17160 (mxl-prefetch): New flag.
17161
17162 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
17163
17164 * config/microblaze/microblaze.h
17165 (FIXED_REGISTERS): Update in macro.
17166 (CALL_USED_REGISTERS): Update in macro.
17167
17168 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
17169
17170 PR rtl-optimization/68920
17171 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17172 moves.
17173
17174 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
17175
17176 PR rtl-optimization/68990
17177 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17178 pseudo instead of inheritance ones.
17179
17180 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17181 Nick Clifton <nickc@redhat.com>
17182
17183 PR target/69129
17184 PR target/69012
17185 * config/mips/mips.c (mips_compute_frame_info): Initialise
17186 args_size and hard_frame_pointer_offset fields of the frame
17187 structure before calling mips_global_pointer.
17188
17189 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
17190
17191 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17192 label reference.
17193 * configure: Regenerate.
17194
17195 2016-01-21 Richard Biener <rguenther@suse.de>
17196
17197 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17198
17199 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17200
17201 * config/s390/s390.c (s390_asm_declare_function_size): Add code
17202 to actually emit the .size directive.
17203
17204 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17205 Jakub Jelinek <jakub@redhat.com>
17206
17207 PR target/69187
17208 PR target/65624
17209 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17210 args array size by one to avoid buffer overflow.
17211
17212 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
17213
17214 * config/s390/s390.md (pool_section_start): Use switch_to_section
17215 to select proper read-only data section instead of hardcoding
17216 .rodata.
17217 (pool_section_end): Use switch_to_section to match the above.
17218
17219 2016-01-21 Richard Biener <rguenther@suse.de>
17220
17221 PR tree-optimization/69378
17222 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17223 (set_ssa_val_to): Use it for dominance checks taking into
17224 account not executable edges.
17225
17226 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17227
17228 PR c++/69355
17229 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17230 for bitsize instead of GET_MODE_PRECISION (mode).
17231
17232 2016-01-20 Martin Sebor <msebor@redhat.com>
17233
17234 PR c/52291
17235 * extend.texi (__sync Builtins): Clarify the semantics of
17236 __sync_fetch_and_OP built-ins on pointers.
17237 (__atomic Builtins): Same.
17238
17239 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17240 Sebastian Pop <s.pop@samsung.com>
17241
17242 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17243 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17244 (is_valid_rename): Same.
17245 (translate_isl_ast_to_gimple::get_rename): Same.
17246 (translate_isl_ast_to_gimple::rename_all_uses): Same.
17247 (translate_isl_ast_to_gimple::rename_uses): Same.
17248 (get_new_name): Check for close_phi nodes.
17249 (copy_loop_phi_args): Use phi_node_kind.
17250 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17251 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17252
17253 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17254 Sebastian Pop <s.pop@samsung.com>
17255
17256 Revert commit r229783.
17257 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17258 Remove use of parameter_rename_map.
17259 (copy_def): Remove.
17260 (copy_internal_parameters): Remove.
17261 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17262 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17263 (free_sese_info): Do not free parameter_rename_map.
17264 (set_rename): Do not use parameter_rename_map.
17265 (rename_uses): Update call to set_rename.
17266 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17267 * sese.h (parameter_rename_map_t): Remove.
17268 (struct sese_info_t): Remove field parameter_rename_map.
17269
17270 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17271 Sebastian Pop <s.pop@samsung.com>
17272
17273 * graphite-isl-ast-to-gimple.c: Fix comment.
17274 * graphite-scop-detection.c (defined_in_loop_p): New.
17275 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17276 names defined in loop.
17277
17278 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17279 Sebastian Pop <s.pop@samsung.com>
17280
17281 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17282 Discard unstructured if-then-else regions.
17283
17284 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17285 Sebastian Pop <s.pop@samsung.com>
17286
17287 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17288 (cleanup_loop_iter_dom): Remove.
17289 (build_loop_iteration_domains): Remove.
17290 (build_scop_context): Remove.
17291 (build_scop_iteration_domain): Remove.
17292 (add_loop_constraints): New.
17293 (build_iteration_domains): New.
17294 (build_poly_scop): Call build_iteration_domains.
17295
17296 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17297 Sebastian Pop <s.pop@samsung.com>
17298
17299 * graphite-scop-detection.c
17300 (scop_detection::harmful_loop_in_region): Free dom and loops.
17301 (scop_detection::loop_body_is_valid_scop): Free bbs.
17302
17303 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17304 Sebastian Pop <s.pop@samsung.com>
17305
17306 * graphite-scop-detection.c (record_loop_in_sese): New.
17307 (gather_bbs::before_dom_children): Call record_loop_in_sese.
17308 (build_scops): Remove call to build_sese_loop_nests.
17309 * sese.c (sese_record_loop): Remove.
17310 (build_sese_loop_nests): Remove.
17311 (new_sese_info): Remove region->loops.
17312 (free_sese_info): Same.
17313 * sese.h (sese_contains_loop): Same.
17314 (build_sese_loop_nests): Remove.
17315 (sese_contains_loop): Remove.
17316
17317 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17318 Sebastian Pop <s.pop@samsung.com>
17319
17320 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17321 loop_is_valid_in_scop.
17322 (scop_detection::harmful_stmt_in_region): Renamed
17323 harmful_loop_in_region.
17324 Call loop_is_valid_in_scop.
17325
17326 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17327 Sebastian Pop <s.pop@samsung.com>
17328
17329 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17330 isl_ast_node_mark.
17331
17332 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17333 Sebastian Pop <s.pop@samsung.com>
17334
17335 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17336 * graphite.h (struct poly_bb): Remove field is_reduction.
17337 (PBB_IS_REDUCTION): Remove.
17338
17339 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
17340 Sebastian Pop <s.pop@samsung.com>
17341
17342 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17343 (add_pdr_constraints): Same.
17344 (scop_get_reads): Same.
17345 (scop_get_must_writes): Same.
17346 (scop_get_may_writes): Same.
17347 (scop_get_original_schedule): Same.
17348 (extend_schedule): Same.
17349 (apply_schedule_on_deps): Same.
17350 (carries_deps): Same.
17351 (compute_deps): Same.
17352 (scop_get_dependences): Same.
17353 * graphite-isl-ast-to-gimple.c
17354 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17355 * graphite-optimize-isl.c (get_schedule_for_band): Same.
17356 (get_schedule_for_band_list): Same.
17357 (get_schedule_map): Same.
17358 (apply_schedule_map_to_scop): Same.
17359 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17360 (build_loop_iteration_domains): Same.
17361 (add_condition_to_pbb): Same.
17362 (add_param_constraints): Same.
17363 (pdr_add_memory_accesses): Same.
17364 (pdr_add_data_dimensions): Same.
17365
17366 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17367
17368 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17369 requirements.
17370
17371 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
17372
17373 * common.opt (feliminate-dwarf2-dups): Replace references to
17374 "DWARF 2" with just "DWARF".
17375 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17376 * doc/extend.texi: Likewise.
17377 * doc/cpp.texi: Likewise.
17378 * doc/invoke.texi: Likewise.
17379 (Option Summary): Add -gdwarf to list of Debugging Options.
17380 (Debugging Options): Document -gdwarf.
17381 * doc/contrib.texi: Spell "DWARF" like that.
17382
17383 2016-01-21 Jakub Jelinek <jakub@redhat.com>
17384
17385 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17386 warning. Fix up formatting.
17387
17388 PR middle-end/67653
17389 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17390 attempt to mark memory input operand addressable and
17391 call prepare_gimple_addressable in that case. Don't adjust
17392 input_location for diagnostics, use error_at instead.
17393
17394 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
17395
17396 * config/rs6000/ppc-auxv.h: New file.
17397 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17398 (cpu_is): Likewise.
17399 (cpu_supports): Likewise.
17400 * config/rs6000/rs6000.c: include "ppc-auxv.h".
17401 (cpu_is_info): New variable.
17402 (cpu_supports_info): Likewise.
17403 (tcb_verification_symbol): Likewise.
17404 (cpu_builtin_p): Likewise.
17405 (cpu_expand_builtin): New function.
17406 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17407 (rs6000_init_builtins): Likewise.
17408 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17409 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17410 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17411 * configure: Regenerate.
17412 * config.in: Likewise.
17413 * doc/extend.texi (PowerPC Built-in Functions): Document
17414 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17415
17416 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
17417
17418 PR target/68609
17419 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17420 domain check.
17421 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17422 for V4SFmode.
17423
17424 2016-01-20 Richard Henderson <rth@redhat.com>
17425
17426 PR bootstrap/69343
17427 PR bootstrap/69339
17428 PR tree-opt/68964
17429 Revert:
17430 * tree.c (tm_define_builtin): New.
17431 (find_tm_vector_type): New.
17432 (build_tm_vector_builtins): New.
17433 (build_common_builtin_nodes): Call it.
17434
17435 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
17436
17437 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17438 (arm_fp_ok): Likewise.
17439 (arm_fp): Likewise.
17440 (arm_crypto): Likewise.
17441
17442 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
17443 Richard Biener <rguenther@suse.de>
17444
17445 PR tree-optimization/69328
17446 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17447 vectors have same number of elements.
17448 (vectorizable_condition): Fix masked version recognition.
17449
17450 2016-01-20 Richard Biener <rguenther@suse.de>
17451
17452 PR tree-optimization/69345
17453 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17454 (VN_INFO_PTR_INFO): Likewise.
17455 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17456 info when it is equal between non-dominating SSA names.
17457 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17458 Make sure to look at original SSA infos.
17459
17460 2016-01-20 Jeff Law <law@redhat.com>
17461
17462 PR target/25114
17463 * config/m68k/predicates.md (pow2_m1_operand): New predicate
17464 extracted from ...
17465 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17466 (pc_or_label_operand): New predicate.
17467 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17468 tests for small integers that are 2^n - 1.
17469
17470 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
17471
17472 * doc/invoke.texi (Options Summary): Add '.' after @xref.
17473
17474 2016-01-19 Jeff Law <law@redhat.com>
17475
17476 PR middle-end/69347
17477 * tree-ssa-threadbackwards.c
17478 (fsm_find_control_statement_thread_paths): Do not try to lookup
17479 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17480
17481 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
17482
17483 * doc/lto.texi: Remove text that says only Gold has linker plugin
17484 support.
17485
17486 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
17487
17488 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17489 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17490 the DIE accordingly.
17491 (modified_type_die): Add REVERSE parameter and pass it recursively,
17492 as well as to base_type_die. Adjust presence check accordingly.
17493 (base_type_for_mode): Adjust call to modified_type_die.
17494 (add_type_attribute): Add REVERSE parameter and pass it to
17495 modified_type_die.
17496 (generic_parameter_die): Adjust call to add_type_attribute.
17497 (add_scalar_info): Likewise.
17498 (add_subscript_info): Likewise.
17499 (gen_array_type_die): Likewise.
17500 (gen_descr_array_type_die): Likewise.
17501 (gen_entry_point_die): Likewise.
17502 (gen_enumeration_type_die): Likewise.
17503 (gen_formal_parameter_die): Likewise.
17504 (gen_subprogram_die): Likewise.
17505 (gen_variable_die ): Likewise.
17506 (gen_const_die): Likewise.
17507 (gen_field_die): Likewise.
17508 (gen_pointer_type_die): Likewise.
17509 (gen_reference_type_die): Likewise.
17510 (gen_ptr_to_mbr_type_die): Likewise.
17511 (gen_inheritance_die): Likewise.
17512 (gen_subroutine_type_die): Likewise.
17513 (gen_typedef_die): Likewise.
17514 (force_type_die): Adjust call to modified_type_die.
17515
17516 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
17517
17518 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17519 flow throughout the file. Fix broken link to Objective-C 2.0
17520 documentation.
17521 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17522 errors.
17523
17524 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17525
17526 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17527
17528 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17529
17530 PR ipa/66223
17531 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17532 (maybe_record_node): Record cxa_pure_virtual as the only possible
17533 target if there are not ohter candidates.
17534 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17535
17536 2016-01-19 Richard Biener <rguenther@suse.de>
17537
17538 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17539 (get_memory_order): Likewise.
17540
17541 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
17542
17543 * tree-vect-stmts.c (vectorizable_store): Check
17544 rhs vectype.
17545
17546 2016-01-19 David Malcolm <dmalcolm@redhat.com>
17547
17548 PR jit/68446
17549 * gcc.c (driver::decode_argv): Add call to
17550 init_opts_obstack before init_options_struct.
17551 * opts.c (init_opts_obstack): Remove idempotency.
17552 (init_options_struct): Replace call to init_opts_obstack
17553 with a gcc_assert to verify that it has already been called.
17554 * toplev.c (toplev::main): Add call to init_opts_obstack before
17555 calls to init_options_struct.
17556 (toplev::finalize): Move cleanup of opts_obstack next to
17557 cleanup of save_decoded_options, clearing the latter, and
17558 save_decoded_options_count.
17559
17560 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17561
17562 PR target/69135
17563 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17564 attribute to unconditional. Remove %? from output template.
17565
17566 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17567 Jiong Wang <jiong.wang@arm.com>
17568
17569 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17570 generated from different expand order.
17571
17572 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17573
17574 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17575 Add support for CCMP costing.
17576
17577 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17578
17579 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17580 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17581 (fccmpe<mode>): Likewise.
17582 (fcmp): Rename to fcmp and globalize pattern.
17583 (fcmpe): Likewise.
17584 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17585 (aarch64_gen_ccmp_next): Add FP support.
17586
17587 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
17588
17589 * target.def (gen_ccmp_first): Update documentation.
17590 (gen_ccmp_next): Likewise.
17591 * doc/tm.texi (gen_ccmp_first): Update documentation.
17592 (gen_ccmp_next): Likewise.
17593 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17594 expand_ccmp_expr_1. Improve comments.
17595 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17596 (ccmp_ior<mode>): Remove pattern.
17597 (cmp<mode>): Remove expand.
17598 (cmp): Globalize pattern.
17599 (cstorecc4): Use cc_register.
17600 (mov<mode>cc): Remove ccmp_cc_register check.
17601 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17602 Simplify after removal of CC_DNE/* modes.
17603 (aarch64_ccmp_mode_to_code): Remove.
17604 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
17605 In 'k' case use integer as condition.
17606 (aarch64_nzcv_codes): Remove inverted cases.
17607 (aarch64_code_to_ccmode): Remove.
17608 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
17609 comparison with CC register to be used in folowing CCMP/branch/CSEL.
17610 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17611 pattern. Return the comparison with CC register. Invert conditions
17612 when bitcode is OR.
17613 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17614 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17615
17616 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17617
17618 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17619 instrumented_version.
17620
17621 2016-01-19 Richard Biener <rguenther@suse.de>
17622
17623 PR tree-optimization/69336
17624 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17625 handled components with get_ref_base_and_extent.
17626 (equal_mem_array_ref_p): Adjust.
17627
17628 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17629
17630 PR debug/65779
17631 * shrink-wrap.c: Include valtrack.h.
17632 (move_insn_for_shrink_wrap): Add DEBUG argument. If
17633 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17634 in between insn and where it will be moved to. Call
17635 dead_debug_insert_temp.
17636 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
17637 first and dead_debug_local_finish at the end.
17638 For uses and defs bitmap, handle all regs in between REGNO and
17639 END_REGNO, not just the first one.
17640
17641 2016-01-19 Richard Biener <rguenther@suse.de>
17642
17643 PR tree-optimization/69352
17644 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17645 (equal_mem_array_ref_p): Constrain size and max size properly.
17646 Compare the reverse flag.
17647
17648 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
17649
17650 * ira.c (ira): Update regstat data if we deleted insns.
17651
17652 2016-01-19 Jakub Jelinek <jakub@redhat.com>
17653
17654 PR rtl-optimization/68955
17655 PR rtl-optimization/64557
17656 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17657 here. Fix up formatting.
17658 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17659
17660 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17661
17662 PR lto/69133
17663 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17664 assume that the node has body.
17665 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17666 check.
17667
17668 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17669
17670 * lto-streamer-out.c (lto_output): Do not stream instrumentation
17671 thunks.
17672
17673 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
17674
17675 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17676 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17677
17678 2016-01-19 Martin Jambor <mjambor@suse.cz>
17679 Martin Liska <mliska@suse.cz>
17680 Michael Matz <matz@suse.de>
17681
17682 * Makefile.in (OBJS): Add new source files.
17683 (GTFILES): Add hsa.c.
17684 * common.opt (disable_hsa): New variable.
17685 (-Whsa): New warning.
17686 * config.in (ENABLE_HSA): New.
17687 * configure.ac: Treat hsa differently from other accelerators.
17688 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17689 $enable_offloading.
17690 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17691 * doc/install.texi (Configuration): Document --with-hsa-runtime,
17692 --with-hsa-runtime-include, --with-hsa-runtime-lib and
17693 --with-hsa-kmt-lib.
17694 * doc/invoke.texi (-Whsa): Document.
17695 (hsa-gen-debug-stores): Likewise.
17696 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17697 to invoke offload compiler for hsa acclerator.
17698 * opts.c (common_handle_option): Determine whether HSA offloading
17699 should be performed.
17700 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17701 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17702 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17703 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17704 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17705 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17706 GF_OMP_FOR_KIND_GRID_LOOP.
17707 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17708 (pp_gimple_stmt_1): Likewise.
17709 * gimple-walk.c (walk_gimple_stmt): Likewise.
17710 * gimple.c (gimple_build_omp_grid_body): New function.
17711 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17712 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17713 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17714 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17715 GF_OMP_TEAMS_GRID_PHONY.
17716 (gimple_statement_omp_single_layout): Updated comments.
17717 (gimple_build_omp_grid_body): New function.
17718 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17719 (gimple_omp_for_grid_phony): New function.
17720 (gimple_omp_for_set_grid_phony): Likewise.
17721 (gimple_omp_parallel_grid_phony): Likewise.
17722 (gimple_omp_parallel_set_grid_phony): Likewise.
17723 (gimple_omp_teams_grid_phony): Likewise.
17724 (gimple_omp_teams_set_grid_phony): Likewise.
17725 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17726 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17727 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17728 (BUILT_IN_GOMP_TARGET): Updated type.
17729 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17730 (adjust_for_condition): New function.
17731 (get_omp_for_step_from_incr): Likewise.
17732 (extract_omp_for_data): Moved parts to adjust_for_condition and
17733 get_omp_for_step_from_incr.
17734 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17735 (fixup_child_record_type): Bail out if receiver_decl is NULL.
17736 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17737 (scan_omp_parallel): Do not create child functions for phony
17738 constructs.
17739 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17740 (scan_omp_1_op): Checking assert we are not remapping to
17741 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
17742 (parallel_needs_hsa_kernel_p): New function.
17743 (expand_parallel_call): Register apprpriate parallel child
17744 functions as HSA kernels.
17745 (grid_launch_attributes_trees): New type.
17746 (grid_attr_trees): New variable.
17747 (grid_create_kernel_launch_attr_types): New function.
17748 (grid_insert_store_range_dim): Likewise.
17749 (grid_get_kernel_launch_attributes): Likewise.
17750 (get_target_argument_identifier_1): Likewise.
17751 (get_target_argument_identifier): Likewise.
17752 (get_target_argument_value): Likewise.
17753 (push_target_argument_according_to_value): Likewise.
17754 (get_target_arguments): Likewise.
17755 (expand_omp_target): Call get_target_arguments instead of looking
17756 up for teams and thread limit.
17757 (grid_expand_omp_for_loop): New function.
17758 (grid_arg_decl_map): New type.
17759 (grid_remap_kernel_arg_accesses): New function.
17760 (grid_expand_target_kernel_body): New function.
17761 (expand_omp): Call it.
17762 (lower_omp_for): Do not emit phony constructs.
17763 (lower_omp_taskreg): Do not emit phony constructs but create for them
17764 a temporary variable receiver_decl.
17765 (lower_omp_taskreg): Do not emit phony constructs.
17766 (lower_omp_teams): Likewise.
17767 (lower_omp_grid_body): New function.
17768 (lower_omp_1): Call it.
17769 (grid_reg_assignment_to_local_var_p): New function.
17770 (grid_seq_only_contains_local_assignments): Likewise.
17771 (grid_find_single_omp_among_assignments_1): Likewise.
17772 (grid_find_single_omp_among_assignments): Likewise.
17773 (grid_find_ungridifiable_statement): Likewise.
17774 (grid_target_follows_gridifiable_pattern): Likewise.
17775 (grid_remap_prebody_decls): Likewise.
17776 (grid_copy_leading_local_assignments): Likewise.
17777 (grid_process_kernel_body_copy): Likewise.
17778 (grid_attempt_target_gridification): Likewise.
17779 (grid_gridify_all_targets_stmt): Likewise.
17780 (grid_gridify_all_targets): Likewise.
17781 (execute_lower_omp): Call grid_gridify_all_targets.
17782 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17783 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17784 (tree_omp_clause): Added union field dimension.
17785 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17786 * tree.c (omp_clause_num_ops): Added number of arguments of
17787 OMP_CLAUSE__GRIDDIM_.
17788 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17789 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17790 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17791 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17792 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17793 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17794 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17795 * tree-pass.h (make_pass_gen_hsail): Declare.
17796 (make_pass_ipa_hsa): Likewise.
17797 * ipa-hsa.c: New file.
17798 * lto-section-in.c (lto_section_name): Add hsa section name.
17799 * lto-streamer.h (lto_section_type): Add hsa section.
17800 * timevar.def (TV_IPA_HSA): New.
17801 * hsa-brig-format.h: New file.
17802 * hsa-brig.c: New file.
17803 * hsa-dump.c: Likewise.
17804 * hsa-gen.c: Likewise.
17805 * hsa.c: Likewise.
17806 * hsa.h: Likewise.
17807 * toplev.c (compile_file): Call hsa_output_brig.
17808 * hsa-regalloc.c: New file.
17809
17810 2016-01-18 Jeff Law <law@redhat.com>
17811
17812 PR tree-optimization/69320
17813 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17814 ranged object, do nothing if the RHS constant is not [0..1].
17815 (optimize_stmt): Comparing a boolean ranged object against a
17816 constant outside [0..1] results in a compile-time constant.
17817
17818 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17819 test.
17820
17821 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
17822
17823 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17824 (Option Summary): Update to reflect new section and moved options.
17825 (C++ Dialect Options): Move -fstats to new section.
17826 (Debugging Options): Move all dump, statistics, and other GCC
17827 developer options to new section. Rewrite section introduction
17828 and re-order remaining options to put the more basic ones first.
17829 (Optimization Options): Move -fira-verbose and -flto-report* to
17830 new section.
17831 (Developer Options): New section incorporating moved options.
17832 * doc/cppopts.texi (-dM): Update cross-reference.
17833
17834 2016-01-18 Richard Henderson <rth@redhat.com>
17835
17836 PR target/69176
17837 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17838 operands to pseudo only if CSE is expected. Split long immediate
17839 operands only after reload, and for the stack pointer.
17840 (*add<GPI>3_pluslong): Remove.
17841 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17842 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
17843 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17844 (*add<GPI>3 peepholes): New.
17845 (*add<GPI>3 splitters): New.
17846 * config/aarch64/constraints.md (Upl): New.
17847 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17848
17849 2016-01-18 Richard Biener <rguenther@suse.de>
17850
17851 PR tree-optimization/69297
17852 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17853 stmt at most once.
17854 (vect_bb_vectorization_profitable_p): Clear visited flag again.
17855
17856 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17857
17858 PR middle-end/68542
17859 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17860 of mixind vector and scalar types.
17861 (fold_relational_const): Add handling of vector
17862 comparison with boolean result.
17863 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17864 comparison of vector operands with boolean result for EQ/NE only.
17865 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17866 (verify_gimple_cond): Likewise.
17867 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17868 valid type of VAL.
17869
17870 2016-01-18 Joseph Myers <joseph@codesourcery.com>
17871
17872 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17873 !TARGET_OCTEON.
17874
17875 2016-01-18 Richard Biener <rguenther@suse.de>
17876
17877 PR middle-end/69308
17878 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17879
17880 2016-01-18 Tom de Vries <tom@codesourcery.com>
17881
17882 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17883
17884 2016-01-18 Tom de Vries <tom@codesourcery.com>
17885
17886 * omp-low.c (set_oacc_fn_attrib): Make extern.
17887 * omp-low.h (set_oacc_fn_attrib): Declare.
17888 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17889 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17890 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17891 Add and handle function parameter oacc_kernels_p.
17892 (find_reduc_addr, get_omp_data_i_param): New function.
17893 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17894 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17895 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17896 Calculate dominance info. Skip loops that are not in a kernels region
17897 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
17898 (pass_parallelize_loops::execute): Call parallelize_loops with
17899 oacc_kernels_p argument.
17900 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17901 New member function.
17902 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17903 * passes.def: Add argument to pass_parallelize_loops instantation.
17904
17905 2016-01-18 Tom de Vries <tom@codesourcery.com>
17906
17907 * tree-parloops.c (pass_parallelize_loops::execute): Allow
17908 pass_parallelize_loops to be run outside the loop pipeline.
17909
17910 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17911
17912 * tree-scalar-evolution.c (follow_copies_to_constant): New.
17913 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17914
17915 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17916
17917 PR target/63679
17918 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17919 using get_ref_base_and_extent.
17920 (equal_mem_array_ref_p): New.
17921 (hashable_expr_equal_p): Add call to previous.
17922
17923 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
17924
17925 PR target/63679
17926 * tree-sra.c (disqualified_constants, constant_decl_p): New.
17927 (sra_initialize): Allocate disqualified_constants.
17928 (sra_deinitialize): Free disqualified_constants.
17929 (disqualify_candidate): Update disqualified_constants when appropriate.
17930 (create_access): Scan for constant-pool entries as we go along.
17931 (scalarizable_type_p): Add check against type_contains_placeholder_p.
17932 (maybe_add_sra_candidate): Allow constant-pool entries.
17933 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17934 (initialize_constant_pool_replacements): New.
17935 (sra_modify_assign): Avoid mangling assignments created by previous,
17936 and don't generate writes into constant pool.
17937 (sra_modify_function_body): Call initialize_constant_pool_replacements.
17938
17939 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17940
17941 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17942 andnot instruction.
17943 (scalar_chain::convert_op): Likewise.
17944 * config/i386/i386.md (*andndi3_doubleword): New.
17945
17946 2016-01-18 Richard Biener <rguenther@suse.de>
17947
17948 PR tree-optimization/69170
17949 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17950 building a vector from scalar results of a pattern stmt.
17951
17952 2016-01-18 Jakub Jelinek <jakub@redhat.com>
17953
17954 * haifa-sched.c (autopref_multipass_init): Work around
17955 -Wmaybe-uninitialized warning.
17956
17957 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
17958
17959 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17960 against the constant 0.
17961
17962 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17963
17964 PR tree-optimization/68799
17965 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17966 look up phi candidates in the statement-candidate map.
17967 (phi_add_costs): Likewise.
17968 (record_phi_increments): Likewise.
17969 (phi_incr_cost): Likewise.
17970 (ncd_with_phi): Likewise.
17971 (all_phi_incrs_profitable): Likewise.
17972
17973 2016-01-17 Jakub Jelinek <jakub@redhat.com>
17974
17975 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17976 -Wmaybe-uninitialized warning.
17977
17978 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
17979
17980 * doc/invoke.texi (Invoking GCC): Add new section to menu.
17981 (Option Summary): Update to reflect new section and moved options.
17982 (C++ Dialect Options): Move -fvtable-verify and related options.
17983 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17984 and profiling-related options.
17985 (Optimization Options): Move profile generation options and
17986 -fstack-protector and related options.
17987 (Instrumentation Options): New section incorporating moved options.
17988 (Code Generation Options): Move -finstrument-functions and
17989 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17990
17991 2016-01-16 Tom de Vries <tom@codesourcery.com>
17992
17993 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17994
17995 2016-01-16 Tom de Vries <tom@codesourcery.com>
17996
17997 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
17998
17999 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
18000
18001 * hash-table.h (hash_table::empty): Turn into an inline wrapper
18002 that checks whether the table is already empty. Rename the
18003 original implementation to...
18004 (hash_table::empty_slot): ...this new private function.
18005
18006 2016-01-15 David Malcolm <dmalcolm@redhat.com>
18007
18008 PR diagnostic/68899
18009 * diagnostic-show-locus.c (layout::print_source_line): Move x
18010 offset of line until after call to
18011 get_line_width_without_trailing_whitespace.
18012
18013 2016-01-15 Jeff Law <law@redhat.com>
18014
18015 PR tree-optimization/69270
18016 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
18017 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
18018 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
18019 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
18020 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
18021 ssa_name_has_boolean_range and constant_boolean_node.
18022
18023 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
18024
18025 PR rtl-optimization/69030
18026 * lra-spills.c (remove_pseudos): Check nrefs and make the function
18027 returning bool.
18028 (spill_pseudos): Delete debug insn for dead pseudo.
18029 (lra_spill): Initiate spill_hard_reg and slots memory separately.
18030
18031 2016-01-15 Jiong Wang <jiong.wang@arm.com>
18032
18033 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18034 New.
18035 (TYPES_UNOPUS): Likewise.
18036 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18037 builtin type, from UNOP to UNOPUS.
18038 (lbtruncuv4sf): Likewise.
18039 (lbtruncuv2df): Likewise.
18040 (lrounduv2sf): Likewise.
18041 (lrounduv4sf): Likewise.
18042 (lrounduv2df): Likewise.
18043 (lroundusf): Likewise.
18044 (lroundusf): Likewise.
18045 (lceiluv2sf): Likewise.
18046 (lceiluv4sf): Likewise.
18047 (lceiluv2df): Likewise.
18048 (lceilusf): Likewise.
18049 (lceiludf): Likewise.
18050 (lflooruv2sf): Likewise.
18051 (lflooruv4sf): Likewise.
18052 (lflooruv2df): Likewise.
18053 (lfloorusf): Likewise.
18054 (lfloorudf): Likewise.
18055 (lfrintnuv2sf): Likewise.
18056 (lfrintnuv4sf): Likewise.
18057 (lfrintnuv2df): Likewise.
18058 (lfrintnusf): Likewise.
18059 (lfrintnudf): Likewise.
18060 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18061 conversion.
18062 (vcvtq_u32_f32): Likewise.
18063 (vcvtq_u64_f64): Likewise.
18064 (vcvta_u32_f32): Likewise.
18065 (vcvtaq_u32_f32): Likewise.
18066 (vcvtaq_u64_f64): Likewise.
18067 (vcvtm_u32_f32): Likewise.
18068 (vcvtmq_u32_f32): Likewise.
18069 (vcvtmq_u64_f64): Likewise.
18070 (vcvtn_u32_f32): Likwise.
18071 (vcvtnq_u32_f32): Likewise.
18072 (vcvtnq_u64_f64): Likewise.
18073 (vcvtp_u32_f32): Likewise.
18074 (vcvtpq_u32_f32): Likewise.
18075 (vcvtpq_u64_f64): Likewise.
18076 (vcvtmd_u64_f64): Likewise.
18077 (vcvtms_u32_f32): Likewise.
18078 (vcvtad_u64_f64): Likewise.
18079 (vcvtas_u32_f32): Likewise.
18080 (vcvtnd_u64_f64): Likewise.
18081 (vcvtns_u32_f32): Likewise.
18082 (vcvtpd_u64_f64): Likewise.
18083 (vcvtps_u32_f32): Likewise.
18084
18085 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18086
18087 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18088 CSEL of zero_extended registers.
18089
18090 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18091
18092 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18093 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18094
18095 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18096
18097 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18098 false when argument string is not found in the attributes table
18099 at all.
18100
18101 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
18102
18103 PR target/68609
18104 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18105 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18106 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18107 precision estimate.
18108
18109 2016-01-15 Richard Biener <rguenther@suse.de>
18110
18111 PR tree-optimization/66856
18112 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18113 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18114 (vect_create_new_slp_node): Increment stmt reference count.
18115 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18116 an SLP tree before swapping operands.
18117 (vect_build_slp_tree): Likewise.
18118 (destroy_bb_vec_info): Free stmt info after SLP instances.
18119 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18120 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18121 (STMT_VINFO_NUM_SLP_USES): New macro.
18122
18123 2016-01-15 Richard Biener <rguenther@suse.de>
18124
18125 PR debug/69137
18126 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18127 (add_linkage_name): ... here.
18128 (gen_typedef_die): Use add_linkage_name_raw instead of
18129 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18130 if necessary.
18131
18132 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
18133
18134 * gimplify.c (oacc_default_clause): Decode reference and pointer
18135 types for both kernels and parallel regions.
18136
18137 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
18138
18139 PR middle-end/69246
18140 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18141
18142 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18143
18144 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18145 (convert_scalars_to_vector): Likewise.
18146
18147 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
18148
18149 * doc/extend.texi (Type Traits): Fix grammar.
18150
18151 2016-01-15 Martin Jambor <mjambor@suse.cz>
18152
18153 * tree-inline.c (remap_decl): Use existing dclarations if
18154 remapping a type and prevent_decl_creation_for_types.
18155 (replace_locals_stmt): Do an initial remapping of non-VLA typed
18156 decls first. Do real remapping with
18157 prevent_decl_creation_for_types set.
18158 * tree-inline.h (copy_body_data): New field
18159 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18160 padding.
18161
18162 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18163
18164 * config/s390/s390.opt (mmvcle): More verbose help text.
18165
18166 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
18167
18168 * config/s390/s390.opt: Add period to -mzvector option text.
18169
18170 2016-01-15 Richard Biener <rguenther@suse.de>
18171
18172 PR tree-optimization/68961
18173 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18174 of invariants in stores again.
18175
18176 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
18177
18178 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18179
18180 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
18181
18182 * config/i386/i386.c (ix86_expand_branch): Don't split
18183 DI mode xor instruction to SI mode.
18184
18185 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18186
18187 PR ipa/68148
18188 * ipa-icf.c (sem_function::merge): Virtual functions may become
18189 reachable even if they address is not taken and there are no
18190 idrect calls.
18191
18192 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
18193
18194 * lto-streamer-out.c (subtract_estimated_size): New function.
18195 (get_symbol_initial_value): Use it.
18196
18197 2016-01-15 Christian Bruel <christian.bruel@st.com>
18198
18199 PR target/65837
18200 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18201 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18202 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18203 use add_builtin_function_ext_scope instead of add_builtin_function.
18204 (neon_set_p, neon_crypto_set_p): Remove.
18205 (arm_init_builtins): Always call arm_init_neon_builtins and
18206 arm_init_crypto_builtins.
18207 (arm_expand_builtin): Check that builtins are allowed for the arch.
18208 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18209 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18210 arm_init_neon_builtins call.
18211
18212 2016-01-15 Richard Biener <rguenther@suse.de>
18213
18214 PR tree-optimization/69117
18215 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18216 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18217 of the leader conservatively.
18218 (free_scc_vn): Restore original SSA name infos.
18219
18220 2016-01-14 Jeff Law <law@redhat.com>
18221
18222 PR tree-optimization/69270
18223 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18224 single bit of precision, verify it's also unsigned.
18225 (record_edge_info): Use constant_boolean_node rather than fold_convert
18226 to convert boolean_true/boolean_false to the right type.
18227
18228 2016-01-14 Richard Henderson <rth@redhat.com>
18229
18230 PR rtl-opt/69014
18231 * loop-doloop.c (record_reg_sets): New.
18232 (doloop_optimize): Reject the transform if the sequence
18233 clobbers registers live at the end of the loop block.
18234 (doloop_optimize_loops): Enable df_live if needed.
18235
18236 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18237
18238 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18239 * config/rs6000/rs6000.c: Likewise.
18240 * config/rs6000/rs6000.h: Likewise.
18241 * config/rs6000/rs6000.md: Likewise.
18242 * doc/extend.texi: Likewsie.
18243
18244 2016-01-14 Jeff Law <law@redhat.com>
18245
18246 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18247 typo.
18248
18249 2016-01-14 Richard Henderson <rth@redhat.com>
18250
18251 PR c/69272
18252 PR tree-opt/68964
18253 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18254 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18255 instead of builtin_decl_declared_p to test for declaration.
18256
18257 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
18258
18259 * doc/loop.texi (Loop Analysis and Representation): Document
18260 loop_depth function.
18261
18262 2016-01-14 Tom de Vries <tom@codesourcery.com>
18263
18264 PR tree-optimization/68773
18265 * omp-low.c (expand_omp_target): Don't set force_output.
18266 * varpool.c (varpool_node::get_create): Same.
18267 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18268 offload_funcs with force_output.
18269
18270 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18271
18272 PR debug/69244
18273 * lra-eliminations.c (move_plus_up): Don't change anything if either
18274 the outer or inner subreg mode is not MODE_INT.
18275 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18276 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18277
18278 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18279
18280 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18281 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18282 reduc_uplus_@var{m}): Remove.
18283 * expr.c (expand_expr_real_2): Remove expansion path for
18284 reduc_[us](min|max|plus) optabs.
18285 * optabs-tree.c (scalar_reduc_to_vector): Remove.
18286 * optabs-tree.h (scalar_reduc_to_vector): Remove.
18287 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18288 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18289 * tree-vect-loop.c (vectorizable_reduction): Remove test for
18290 reduc_[us](min|max|plus) optabs.
18291
18292 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
18293
18294 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18295 (reduc_plus_scal_v2sf): New.
18296 (reduc_smax_v2sf): Rename to...
18297 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18298 (reduc_smin_v2sf): Rename to...
18299 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18300
18301 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
18302
18303 * alias.c (compare_base_symbol_refs): New function.
18304 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18305 it.
18306
18307 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18308
18309 PR middle-end/68146
18310 PR tree-optimization/69155
18311 * tree-complex.c: Include cfganal.h.
18312 (phis_to_revisit): New variable.
18313 (extract_component): Add phiarg_p argument. Assert that returned
18314 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18315 (update_phi_components): Partly rewrite to use loop over real/imag
18316 components instead of code duplication. If extract_component returns
18317 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18318 create_tmp_reg into the PHI node instead, and mention the phi triplet
18319 in phis_to_revisit.
18320 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
18321 in phis_to_revisit at the end.
18322
18323 2016-01-14 Richard Biener <rguenther@suse.de>
18324
18325 PR tree-optimization/68060
18326 * tree-vect-loop.c (vect_is_simple_reduction): Check the
18327 outer loop reduction is only used in the inner loop before
18328 detecting a double reduction.
18329
18330 2016-01-14 Jakub Jelinek <jakub@redhat.com>
18331
18332 PR target/68269
18333 * combine.c (expand_field_assignment): Punt if compute_mode is
18334 unsupported scalar mode.
18335
18336 2016-01-14 Richard Biener <rguenther@suse.de>
18337
18338 PR tree-optimization/66856
18339 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18340 SLP node only if it built successfully.
18341 (vect_analyze_slp_instance): Adjust.
18342
18343 2016-01-14 Jeff Law <law@redhat.com>
18344
18345 PR tree-optimization/69270
18346 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18347 (record_edge_info): Use it. Convert boolean_{true,false}_node
18348 to the type of op0.
18349
18350 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
18351
18352 PR ipa/66487
18353 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18354 use block_ultimate_origin
18355 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18356
18357 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18358
18359 * doc/invoke.texi (Submodel Options): Rename section to
18360 "Machine-Dependent Options" to better reflect its content.
18361 Rewrite introductory text to remove archaic CPU names.
18362 Update references.
18363
18364 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
18365
18366 * doc/invoke.texi (Code Gen Options): Move section up in file,
18367 before target-specific options. Update menu and option summary
18368 to reflect the new section ordering.
18369
18370 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18371
18372 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18373 (C++ Dialect Options): Add cross-reference to -std option.
18374 * doc/standards.texi (C++ Language): Document C++14 support.
18375
18376 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
18377
18378 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18379 for pack/unpack functions for __ibm128.
18380 (PACK_IF): Likewise.
18381 (UNPACK_IF): Likewise.
18382
18383 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18384 support for __ibm128 pack/unpack functions.
18385 (rs6000_invalid_builtin): Likewise.
18386 (rs6000_init_builtins): Likewise.
18387 (rs6000_opt_masks): Likewise.
18388
18389 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18390 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18391 functions
18392 (RS6000_BTM_COMMON): Likewise.
18393
18394 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18395 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18396 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18397 128-bit floating point. Add support for the double values to be
18398 in Altivec registers for TF/IF packing and unpacking, but restrict
18399 TD packing sub-fields to be FPR registers. Don't allow overlapped
18400 register support for packing. Allow pack inputs to be memory
18401 locations. Don't build generator functions for unpack<mode>_dm
18402 and unpack<mode>_nodm.
18403 (unpack<mode>_dm): Likewise.
18404 (unpack<mode>_nodm): Likewise.
18405 (pack<mode>): Likewise.
18406
18407 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18408 built-in functions to pack/unpack explicit __ibm128 values.
18409 (__builtin_unpack_ibm128): Likewise.
18410
18411 * doc/extend.texi (PowerPC Built-in Functions): Document
18412 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18413
18414 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
18415
18416 PR c/66208
18417 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18418 Add new arg loc and pass it down as context.
18419 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18420 to the location to use for the warning.
18421 (check_function_arguments): New arg loc. All callers changed. Pass
18422 it to check_function_nonnull.
18423 * c-common.h (check_function_arguments): Adjust declaration.
18424
18425 2016-01-13 Jakub Jelinek <jakub@redhat.com>
18426
18427 PR tree-optimization/69156
18428 * gimple.c (validate_type): Removed.
18429 (gimple_builtin_call_types_compatible_p): Use
18430 useless_type_conversion_p instead of validate_type.
18431 * value-prof.c (gimple_stringop_fixed_value): Fold
18432 icall_size to correct type.
18433
18434 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
18435
18436 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18437 effects.
18438
18439 2016-01-13 Richard Henderson <rth@redhat.com>
18440
18441 PR tree-opt/68964
18442 * target.def (builtin_tm_load, builtin_tm_store): Remove.
18443 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18444 (ix86_builtin_tm_store): Remove.
18445 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18446 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18447 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18448 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18449 * doc/tm.texi: Rebuild.
18450
18451 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18452 (BUILT_IN_TM_MEMCPY_RTWN): New.
18453 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18454 fallback from vector to integer helpers.
18455 (build_tm_load): Handle vector types directly, instead of
18456 via target hook.
18457 (build_tm_store): Likewise.
18458 (expand_assign_tm): Prepare for register types not handled by
18459 the above. Copy them to memory and use memcpy.
18460 * tree.c (tm_define_builtin): New.
18461 (find_tm_vector_type): New.
18462 (build_tm_vector_builtins): New.
18463 (build_common_builtin_nodes): Call it.
18464
18465 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
18466
18467 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18468 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
18469
18470 2016-01-13 Tom de Vries <tom@codesourcery.com>
18471
18472 PR tree-optimization/69169
18473 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18474 handled_struct_type param.
18475 (create_variable_info_for, intra_create_variable_infos): Call
18476 create_variable_info_for_1 with extra arg.
18477
18478 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
18479
18480 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18481 and "armv8.1-a+crc" entries.
18482
18483 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
18484
18485 PR target/69228
18486 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18487 Change first operand predicate from register_or_constm1_operand
18488 to register_operand.
18489 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18490 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18491 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18492 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18493 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18494 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18495 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18496 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18497 comparison with constm1_rtx from vec_prefetch_gen part.
18498
18499 2016-01-13 Richard Biener <rguenther@suse.de>
18500
18501 PR tree-optimization/69013
18502 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18503 Exchange assert for a test.
18504
18505 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18506
18507 PR target/69247
18508 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18509
18510 2016-01-13 Richard Biener <rguenther@suse.de>
18511
18512 PR tree-optimization/69242
18513 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18514 assert with a check.
18515
18516 2016-01-13 Richard Biener <rguenther@suse.de>
18517
18518 PR tree-optimization/69186
18519 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18520 Properly guard vect_update_misalignment_for_peel call.
18521
18522 2016-01-12 Jeff Law <law@redhat.com>
18523
18524 PR tree-optimization/pr67755
18525 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18526 "need_profile_correction".
18527 (thread_block_1): Initialize new field to false by default. If we
18528 have multiple thread paths through a common joiner to different
18529 final targets, then set new field to true.
18530 (compute_path_counts): Only do count adjustment when it's really
18531 needed.
18532
18533 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18534
18535 * doc/invoke.texi (Spec Files): Move section down in file, past
18536 all command-line option descriptions.
18537
18538 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18539
18540 PR middle-end/54809
18541 * doc/gty.texi: Remove documentation of mark_hook.
18542 * gengtype.c (struct write_types_data): Remove code to support
18543 mark_hook attribute.
18544 (walk_type): Likewise.
18545 (write_func_for_structure): Likewise.
18546
18547 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18548
18549 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18550 Directory Options, and -specs= to Overall Options.
18551 (Overall Options): Adjust similarly. Reorder to group related
18552 options together. Make -specs= cross-reference the spec file details.
18553 (Directory Options): Adjust similarly.
18554
18555 2016-01-12 Jeff Law <law@redhat.com>
18556
18557 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18558
18559 2016-01-12 Olivier Hainque <hainque@adacore.com>
18560
18561 * gcc.c (spec_undefvar_allowed): New global.
18562 (process_command): Set to true when running for --version or --help,
18563 alone or together.
18564 (getenv_spec_function): When the variable is not defined, use the
18565 variable name as the variable value if we're allowed not to issue
18566 a fatal error.
18567
18568 2016-01-12 Bin Cheng <bin.cheng@arm.com>
18569
18570 PR tree-optimization/68911
18571 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18572 information computed for expression "init + nit * step".
18573
18574 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
18575
18576 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
18577 about name of GCC executable. Remove deleted node from menu.
18578 (Directory Options) <-B>: Remove cross-reference to deleted node.
18579 (Target Options): Delete section.
18580
18581 2016-01-12 Christian Bruel <christian.bruel@st.com>
18582
18583 PR target/69180
18584 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18585 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18586
18587 2016-01-12 Jakub Jelinek <jakub@redhat.com>
18588
18589 PR target/69198
18590 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18591 aligned_mem is properly set for AVX512-VL floating point masked
18592 stores.
18593
18594 PR target/69175
18595 * ifcvt.c (cond_exec_process_if_block): When removing the last
18596 insn from then_bb, remove also any possible barriers that follow it.
18597
18598 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
18599
18600 PR target/68456
18601 PR target/69226
18602 * config/i386/iamcu.h (SIZE_TYPE): New macro.
18603 (PTRDIFF_TYPE): Likewise.
18604 (WCHAR_TYPE): Likewise.
18605 (WCHAR_TYPE_SIZE): Likewise.
18606 (STDINT_LONG32): Likewise.
18607
18608 2016-01-12 Richard Biener <rguenther@suse.de>
18609
18610 PR tree-optimization/69053
18611 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18612 convert initial value for cond reductions.
18613
18614 2016-01-12 Richard Biener <rguenther@suse.de>
18615
18616 PR tree-optimization/69007
18617 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18618 widen_sum after dot_prod and sad.
18619
18620 2016-01-12 Richard Biener <rguenther@suse.de>
18621
18622 PR tree-optimization/69168
18623 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18624 pattern stmt SLP type.
18625 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18626 end up unused so cope with that case.
18627
18628 2016-01-12 Richard Biener <rguenther@suse.de>
18629
18630 PR tree-optimization/69157
18631 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18632 stmts def type only during analyze phase.
18633 (vectorizable_call): Likewise.
18634 (vectorizable_simd_clone_call): Likewise.
18635 (vectorizable_conversion): Likewise.
18636 (vectorizable_assignment): Likewise.
18637 (vectorizable_shift): Likewise.
18638 (vectorizable_operation): Likewise.
18639 (vectorizable_store): Likewise.
18640 (vectorizable_load): Likewise.
18641
18642 2016-01-12 Richard Biener <rguenther@suse.de>
18643
18644 PR tree-optimization/69174
18645 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18646 space.
18647 (vectorizable_load): Properly compute the number of loads needed
18648 for permuted strided SLP loads and do not spuriously assign
18649 to SLP_TREE_VEC_STMTS.
18650
18651 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
18652
18653 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18654 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18655 (MD_EXEC_PREFIX): Remove.
18656 (MD_STARTFILE_PREFIX) Removee.
18657 (FILE_NAME_ABSOLUTE_P): Remove.
18658 (CPP_SPEC): Do not read macros from sys/version.h.
18659 (LINK_COMMAND_SPEC): Remove.
18660 (LOCAL_INCLUDE_DIR): Remove.
18661 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18662 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18663 (POST_LINK_SPEC): Define to invoke stubify after linker
18664 (LIBSTDCXX): Remove define
18665 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18666 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18667 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18668 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18669 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18670 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18671 (i386_djgpp_asm_named_section): Add propotype of new procedure
18672
18673 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18674 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18675 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18676 in config/i386/djgpp.h).
18677 (STANDARD_STARTFILE_PREFIX_2): Define identical to
18678 STANDARD_STARTFILE_PREFIX_1.
18679 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18680 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18681 installation errors.
18682 (MAX_OFILE_ALIGNMENT): Define to 128.
18683 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18684
18685 * config/i386/djgpp.c: New file. Add implementation of
18686 i386_djgpp_asm_named_section.
18687
18688 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18689
18690 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18691 Add rule for building djgpp.o.
18692
18693 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18694
18695 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18696 (rtx_is_swappable_p): Reductions are swappable.
18697 (insn_is_swappable_p): V2DF reductions are swappable.
18698
18699 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
18700
18701 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18702 reloads for other unsupported memory operands.
18703
18704 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
18705 Jim Wilson <jim.wilson@linaro.org>
18706
18707 PR target/69194
18708 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18709 copy_to_mode_reg instead of force_reg.
18710
18711 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18712
18713 PR target/69225
18714 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18715 TARGET_80387 is true.
18716
18717 2016-01-11 Jakub Jelinek <jakub@redhat.com>
18718
18719 PR target/69071
18720 * lra-eliminations.c (move_plus_up): Only move plus up
18721 if subreg of the constant can be simplified into constant
18722 and use the simplified subreg of the constant instead of
18723 the original constant.
18724
18725 * fold-const.c (fold_convertible_p): Don't return true
18726 for conversion of VECTOR_TYPE to same sized integral type.
18727 (fold_convert_loc): Fix up formatting. Fold conversion of
18728 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18729 instead of NOP_EXPR.
18730
18731 PR tree-optimization/69214
18732 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18733 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18734 Formatting fix.
18735
18736 PR tree-optimization/69207
18737 * tree-vect-slp.c (vect_get_constant_vectors): For
18738 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18739 fold_convertible_p to vector_type's element type, and always
18740 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18741
18742 2016-01-11 Richard Biener <rguenther@suse.de>
18743
18744 PR tree-optimization/69173
18745 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18746 fixup the cycle if all stmts are in a pattern.
18747
18748 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
18749
18750 PR middle-end/68999
18751 * alias.c (base_alias_check): Move check for addresses with
18752 alignment ANDs before the call for compare_base_decls.
18753 (memrefs_conflict_p): Return -1 for different decls
18754 that went through alignment adjustments.
18755
18756 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18757
18758 PR rtl-optimization/68796
18759 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18760 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18761 and QImode comparisons against zero with CC_NZmode.
18762 * config/aarch64/iterators.md (short_mask): New mode_attr.
18763
18764 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
18765
18766 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18767 (<avx512>_store<mode>_mask): Likewise.
18768
18769 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
18770 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18771
18772 PR rtl-optimization/68841
18773 * ifcvt.c (struct noce_if_info): Add orig_x field.
18774 (bbs_ok_for_cmove_arith): Add to_rename parameter.
18775 Don't record conflicts on to_rename if it's present.
18776 Allow memory destinations in sets.
18777 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18778 blocks, passing orig_x to the checks.
18779 (noce_process_if_block): Set if_info->orig_x appropriately.
18780
18781 2016-01-11 Tom de Vries <tom@codesourcery.com>
18782
18783 PR tree-optimization/69069
18784 * tree-parloops.c (create_parallel_loop): Add missing phi args.
18785
18786 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18787
18788 PR rtl-optimization/68920
18789 * config/i386/i386.c (ix86_option_override_internal): Restrict number
18790 of conditional moves for RTL if-conversion to 1 for
18791 TARGET_ONE_IF_CONV_INSN.
18792 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18793 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18794 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18795 parameter to restirct number of conditional moves for
18796 RTL if-conversion.
18797 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18798 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18799 conditionl moves.
18800
18801 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
18802
18803 PR bootstrap/69123
18804 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18805 onepart vars. Fix typo in comment. Fix reversed condition in
18806 unshare test.
18807 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18808
18809 PR bootstrap/69123
18810 * var-tracking.c (dump_onepart_variable_differences): New.
18811 (dataflow_set_different): If a detailed dump is requested,
18812 delay early returns and dump differences between onepart
18813 variables present before and after, and added variables.
18814
18815 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18816
18817 PR target/69010
18818 * expr.c (expand_expr_real_1): For boolean vector constants
18819 with a scalar mode use const_scalar_mask_from_tree.
18820 (const_scalar_mask_from_tree): New.
18821 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18822 assigned to a mask type to handle constants.
18823
18824 2016-01-11 Martin Jambor <mjambor@suse.cz>
18825
18826 PR ipa/69044
18827 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18828 useless parameters if we cannot change function signature.
18829
18830 2016-01-11 Martin Jambor <mjambor@suse.cz>
18831
18832 PR ipa/66616
18833 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18834 flag.
18835
18836 2016-01-11 Tom de Vries <tom@codesourcery.com>
18837
18838 PR tree-optimization/69109
18839 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18840 latch with phi.
18841
18842 2016-01-11 Tom de Vries <tom@codesourcery.com>
18843
18844 PR tree-optimization/69108
18845 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18846 res is not used in a phi.
18847
18848 2016-01-11 Yury Gribov <y.gribov@samsung.com>
18849
18850 PR 67425
18851 * common.opt (frandom-seed): Fix parameter name.
18852 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18853
18854 2016-01-11 Tom de Vries <tom@codesourcery.com>
18855
18856 PR tree-optimization/69058
18857 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18858 not supported.
18859
18860 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
18861
18862 * config/arc/arc.opt (mdiv-rem): Add period to the end.
18863 (mcode-density): Likewise.
18864
18865 2016-01-10 Tom de Vries <tom@codesourcery.com>
18866
18867 PR tree-optimization/69062
18868 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18869 (parallelize_loops): Don't paralelize loop that has phi with address
18870 arg.
18871
18872 2016-01-10 Tom de Vries <tom@codesourcery.com>
18873
18874 PR tree-optimization/69039
18875 * tree-parloops.c (try_create_reduction_list): Only allow single exit
18876 phi for reduction.
18877
18878 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
18879
18880 PR middle-end/68743
18881 * match.pd: Require target has function_c99_misc before doing
18882 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18883
18884 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
18885
18886 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18887 use GMPINC.
18888 * configure: Regenerate.
18889
18890 2016-01-09 Jakub Jelinek <jakub@redhat.com>
18891
18892 PR middle-end/50865
18893 PR tree-optimization/69097
18894 * fold-const.h (expr_not_equal_to): New prototype.
18895 * fold-const.c: Include stringpool.h and tree-ssanames.h.
18896 (expr_not_equal_to): New function.
18897 * match.pd (X % -Y is the same as X % Y): Don't optimize
18898 unless X is known not to be equal to minimum or Y is known
18899 not to be equal to -1.
18900 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18901 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18902 (simplify_stmt_using_ranges): Adjust caller.
18903 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18904 substitute_and_fold.
18905
18906 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
18907
18908 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18909 w/o DECL_NAME.
18910
18911 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18912
18913 PR tree-optimization/69167
18914 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18915 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18916 ops[0] comparison.
18917 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18918
18919 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18920 Richard Biener <rguenther@suse.de>
18921
18922 PR tree-optimization/68707
18923 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18924 instances that can be handled via vect_load_lanes.
18925
18926 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
18927
18928 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18929 if we can't determine address equivalence.
18930 * alias.c (compare_base_decl): Update for changed return value of
18931 symtab_node::equal_address_to.
18932
18933 2016-01-08 Jason Merrill <jason@redhat.com>
18934
18935 PR c++/68983
18936 PR c++/67557
18937 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18938 * expr.c (store_field): Not here.
18939 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18940 call with TREE_ADDRESSABLE type.
18941 * tree-cfg.c (verify_gimple_call): Adjust.
18942
18943 2016-01-08 Olivier Hainque <hainque@adacore.com>
18944
18945 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18946 libc_internal.
18947
18948 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
18949
18950 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18951 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18952 (reduc_smin_v2sf): Rename to...
18953 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18954 (reduc_splus_v2sf): Rename to...
18955 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18956
18957 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18958
18959 PR tree-optimization/69162
18960 * gimplify.c (gimplify_va_arg_expr): Encode original type of
18961 valist argument in another argument.
18962 (gimplify_modify_expr): Adjust for the above change. Cleanup.
18963 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18964 to determine the va_list type, build a MEM_REF instead of
18965 build_fold_indirect_ref.
18966
18967 PR tree-optimization/69172
18968 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18969 gimple_build.
18970
18971 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
18972
18973 PR tree-optimization/67781
18974 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18975 and cmpnop in two steps: first the ones not accessed in original
18976 gimple expression in a endian independent way and then the ones not
18977 accessed in the final result in an endian-specific way.
18978
18979 2016-01-08 Jakub Jelinek <jakub@redhat.com>
18980
18981 PR tree-optimization/69083
18982 * tree-vect-slp.c (vect_get_constant_vectors): For
18983 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18984 element type. If op is fold_convertible_p to vector_type's element
18985 type, use NOP_EXPR instead of VCE.
18986
18987 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
18988
18989 PR rtl-optimization/67778
18990 PR rtl-optimization/68634
18991 PR rtl-optimization/68909
18992 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
18993 block from the stack until done with it. Remove a superfluous
18994 bitmap set. Remove a superfluous bitmap test.
18995
18996 2016-01-07 Martin Sebor <msebor@redhat.com>
18997
18998 PR c/68966
18999 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
19000 constraint on the type of arguments.
19001
19002 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
19003
19004 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
19005 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
19006 unaligned_access on the gcc_options set.
19007 * config/arm/arm.c (arm_option_override_internal): Use
19008 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
19009
19010 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19011
19012 PR target/69140
19013 * config/i386/i386.c (ix86_frame_pointer_required): Enable
19014 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
19015
19016 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
19017
19018 Revert
19019 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19020
19021 PR target/69140
19022 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19023 depending on frame_pointer_needed before remaining integer and SSE
19024 registers are saved.
19025
19026 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
19027
19028 PR 1078
19029 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19030
19031 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
19032
19033 PR target/69171
19034 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19035 Use the "xBm" constraint.
19036 (float<sseintvecmodelower><mode>2<mask_name><round_name):
19037 Likewise.
19038 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19039 (sse_cvtsi2ssq<round_name>): Likewise.
19040 (sse_cvtss2si<round_name>): Likewise.
19041 (sse_cvtss2siq<round_name>): Likewise.
19042 (sse2_cvtsi2sdq<round_name>): Likewise.
19043 (sse2_cvtsd2si<round_name>): Likewise.
19044 (sse2_cvtsd2siq<round_name>): Likewise.
19045 * config/i386/subst.md (round_nimm_scalar_predicate): New
19046 predicate.
19047
19048 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
19049
19050 PR middle-end/67639
19051 * varasm.c (make_decl_rtl): Mark invalid register vars as
19052 DECL_EXTERNAL.
19053
19054 PR rtl-optimization/66206
19055 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19056 All callers changed.
19057
19058 2016-01-07 Jakub Jelinek <jakub@redhat.com>
19059
19060 PR tree-optimization/69141
19061 * tree-ssa-pre.c: Include langhooks.h.
19062 (eliminate_dom_walker::before_dom_children): Use
19063 lang_hooks.decl_printable_name instead of
19064 cgraph_node::get ()->name ().
19065
19066 PR middle-end/68960
19067 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19068 it and DECL_ALIGN too.
19069
19070 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
19071
19072 * config/mips/mips-ftypes.def: Sort to lexicographical order.
19073
19074 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
19075
19076 PR target/69140
19077 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19078 depending on frame_pointer_needed before remaining integer and SSE
19079 registers are saved.
19080
19081 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19082
19083 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19084 mode iterator with VSX_M2.
19085 (*p9_vecstore_<mode>): Likewise.
19086 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19087 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19088 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19089 (define_split for VSX_LE128 stores): Likewise.
19090 (define_peephole2 for TImode LE swaps): Likewise.
19091 (define_split for VSX_LE128 post-reload stores): Likewise.
19092
19093 2016-01-06 Marek Polacek <polacek@redhat.com>
19094
19095 PR sanitizer/69099
19096 * convert.c (convert_to_integer_1): Adjust call to
19097 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
19098 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
19099 EXPR instead of ARG.
19100 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19101
19102 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19103
19104 PR 1078
19105 * doc/extend.texi (RL78 Variable Attributes): New section.
19106
19107 2016-01-05 Marek Polacek <polacek@redhat.com>
19108
19109 PR c/69104
19110 * builtins.c (get_memmodel): Use expansion point location rather than
19111 the input location. Call warning_at rather than warning.
19112 (expand_builtin_atomic_compare_exchange): Likewise.
19113 (expand_builtin_atomic_load): Likewise.
19114 (expand_builtin_atomic_store): Likewise.
19115 (expand_builtin_atomic_clear): Likewise.
19116
19117 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19118
19119 PR target/68991
19120 * config/i386/i386.c (ix86_expand_vector_logical_operator):
19121 Replace nonimmediate_operand with vector_operand.
19122 * config/i386/predicates.md (vector_operand): New predicate.
19123 (general_vector_operand): Replace nonimmediate_operand with
19124 vector_operand.
19125 * config/i386/sse.md: Replace nonimmediate_operand with
19126 vector_operand and m constraint with Bm constraint on SSE
19127 patterns with 16-byte memory operand.
19128 * config/i386/subst.md (round_nimm_predicate): Replace
19129 nonimmediate_operand with vector_operand.
19130 (round_saeonly_nimm_predicate): Likewise.
19131 (round_saeonly_nimm_scalar_predicate): New.
19132
19133 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
19134
19135 PR target/68991
19136 * config/i386/constraints.md (Bm): New constraint.
19137 * config/i386/predicates.md (vector_memory_operand): New
19138 predicate.
19139 * config/i386/sse.md: Replace xm with xBm in plusminus and
19140 any_logic patterns.
19141
19142 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19143
19144 PR 1078
19145 * doc/extend.texi (V850 Function Attributes): New section.
19146 (V850 Variable Attributes): New section.
19147
19148 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
19149
19150 PR 1078
19151 * doc/extend.texi (MicroBlaze Function Attributes): Document
19152 interrupt_handler and fast_interrupt attributes.
19153
19154 2016-01-05 Sergei Trofimovich <siarheit@google.com>
19155
19156 PR other/60465
19157 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19158 for local symbolic operands.
19159 * config/ia64/predicates.md (local_symbolic_operand64): New
19160 predicate.
19161
19162 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19163
19164 PR rtl-optimization/68651
19165 * combine.c (combine_simplify_rtx): Canonicalize x + x into
19166 x << 1.
19167
19168 2016-01-05 Nathan Sidwell <nathan@acm.org>
19169
19170 * alias.c (compare_base_decls): Use symtab_node::get.
19171
19172 2016-01-05 Nick Clifton <nickc@redhat.com>
19173
19174 PR target/68770
19175 * ira-costs.c (copy_cost): Initialise the t_icode field of the
19176 secondary_reload_info structure.
19177
19178 PR target/66655
19179 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19180 decls if weak support is available.
19181
19182 2016-01-04 Martin Sebor <msebor@redhat.com>
19183
19184 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19185
19186 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
19187
19188 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19189 OPTION_MASK_P9_DFORM.
19190
19191 * config/rs6000/constraints.md (wo constraint): New constraint for
19192 ISA 3.0 (power9).
19193
19194 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19195 for wo constraint.
19196 (rs6000_init_hard_regno_mode_ok): Likewise.
19197
19198 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19199 wo constraint.
19200
19201 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19202 expanders not to have constraints. Add support for ISA 3.0 xxperm
19203 instruction. Add support for fusing xxlor with xxperm.
19204 (altivec_vperm_<mode>_internal): Likewise.
19205 (altivec_vperm_v8hiv16qi): Likewise.
19206 (altivec_vperm_<mode>v16q): Likewise.
19207 (altivec_vperm_<mode>_uns): Likewise.
19208 (vperm_v8hiv4si): Likewise.
19209 (vperm_v16qiv8hi): Likewise.
19210
19211 * doc/md.texi (RS/6000 constraints): Document wo constraint.
19212
19213 2016-01-04 Jakub Jelinek <jakub@redhat.com>
19214
19215 Update copyright years.
19216
19217 * gcc.c (process_command): Update copyright notice dates.
19218 * gcov-dump.c (print_version): Ditto.
19219 * gcov.c (print_version): Ditto.
19220 * gcov-tool.c (print_version): Ditto.
19221 * gengtype.c (create_file): Ditto.
19222 * doc/cpp.texi: Bump @copying's copyright year.
19223 * doc/cppinternals.texi: Ditto.
19224 * doc/gcc.texi: Ditto.
19225 * doc/gccint.texi: Ditto.
19226 * doc/gcov.texi: Ditto.
19227 * doc/install.texi: Ditto.
19228 * doc/invoke.texi: Ditto.
19229
19230 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19231
19232 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19233 modes larger than TImode as TImode if NEON is not enabled.
19234
19235 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19236
19237 PR target/69100
19238 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19239 mode for %f0-%f31 only if TARGET_FPU.
19240
19241 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
19242
19243 PR target/69072
19244 * config/sparc/sparc.c (scan_record_type): Take into account subfields
19245 to compute the PACKED_P predicate.
19246 (function_arg_record_value): Minor tweaks.
19247
19248 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
19249
19250 * doc/install.texi (--with-multilib-list): Describe the meaning of the
19251 option for arm*-*-* targets.
19252
19253 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
19254
19255 * doc/extend.texi (Common Function Attributes): Move docs for
19256 MSP430-specific attributes to....
19257 (MSP430 Function Attributes): ...here. Delete the redundant
19258 entries and copy-edit the remaining text.
19259 (MSP430 Variable Attributes): Use uniform format for index
19260 entries and add a cross-reference to the corresponding function
19261 attribute docs.
19262
19263 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
19264
19265 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19266 -finite-math typo.
19267 (x86 Options): Likewise.
19268
19269 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19270
19271 PR 1078
19272
19273 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19274 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19275 to corresponding attribute.
19276
19277 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
19278
19279 * doc/extend.texi (Common Function Attributes) <noplt>: Move
19280 to correct alphabetization of table. Copy-edit and correct
19281 markup.
19282 <stack_protect>: Likewise.
19283 <target_clones>: Likewise.
19284 <simd>: Likewise.
19285 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19286 Correct punctuation.
19287 (Code Gen Options) <-fno-plt>: Copy-edit.
19288
19289 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19290
19291 PR target/68917
19292 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19293 SI values. Explicitly convert SI to DI and vice-versa.
19294
19295 2016-01-01 Jakub Jelinek <jakub@redhat.com>
19296
19297 PR tree-optimization/69070
19298 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19299 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19300
19301 PR sanitizer/69055
19302 * ubsan.c (ubsan_instrument_float_cast): Call
19303 initialize_sanitizer_builtins.
19304
19305 PR target/69015
19306 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19307 \f
19308 Copyright (C) 2016 Free Software Foundation, Inc.
19309
19310 Copying and distribution of this file, with or without modification,
19311 are permitted in any medium without royalty provided the copyright
19312 notice and this notice are preserved.