2016-07-28 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / ChangeLog
blobcad90e6c92fe7209ce02f4d068d2da175d63aabb
1 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
2 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
4          * config/aarch64/aarch64.md
5         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
6         statement and type.
7         (<optab>qihi2_aarch64): Likewise, and split into two.
8         (extendqihi2_aarch64): New.
9         (zero_extendqihi2_aarch64): New.
10         * config/aarch64/iterators.md (ldrxt): Remove.
11         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
12         uxtb/uxth.
14 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
16         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
18 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
20         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
21         (aarch64_push_reg): New function to push 1 or 2 registers.
22         (aarch64_pop_reg): New function to pop 1 or 2 registers.
23         (aarch64_expand_prologue): Use aarch64_push_regs.
24         (aarch64_expand_epilogue): Use aarch64_pop_regs.
26 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
28         PR tree-optimization/71734
29         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
30         attribute instead of REF_LOOP and use it.
31         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
32         set it for Loops having non-zero safelen attribute.
33         (ref_indep_loop_p): Pass zero as initial value for safelen.
35 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
37         PR middle-end/72657
38         PR target/72683
39         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
40         call using chkp_gimple_call_builtin_p.
41         (chkp_copy_bounds_for_assign): Likewise.
43 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
45         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
46         * config/arm/arm-protos.h (struct tune_params): Likewise.
47         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
48         (cortex_a9_sched_adjust_cost): Likewise.
49         (fa726te_sched_adjust_cost): Likewise.
50         (arm_adjust_cost): Likewise.
51         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
52         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
53         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
54         * config/i386/i386.c (ix86_adjust_cost): Likewise.
55         * config/ia64/ia64.c: Likewise.
56         * config/m68k/m68k.c: Likewise.
57         * config/mep/mep.c (mep_adjust_cost): Likewise.
58         * config/microblaze/microblaze.c (microblaze_adjust_cost):
59         * Likewise.
60         * config/mips/mips.c (mips_adjust_cost): Likewise.
61         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
62         * Likewise.
63         * config/pa/pa.c (pa_adjust_cost): Likewise.
64         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
65         (rs6000_debug_adjust_cost): Likewise.
66         * config/sh/sh.c (sh_adjust_cost): Likewise.
67         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
68         (hypersparc_adjust_cost): Likewise.
69         (sparc_adjust_cost): Likewise.
70         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
71         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
72         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
73         * Likewise.
74         * config/visium/visium.c (visium_adjust_cost): Likewise.
75         * doc/tm.texi: Regenerate.
76         * haifa-sched.c (dep_cost_1): Adjust.
77         * target.def: Merge adjust_cost and adjust_cost_2.
79 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
81         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
83 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
85         * store-motion.c (struct st_expr): Make pattern_regs a vector.
86         (extract_mentioned_regs): Append to a vector instead of
87         returning a rtx_expr_list.
88         (st_expr_entry): Adjust.
89         (free_st_expr_entry): Likewise.
90         (store_ops_ok): Likewise.
91         (store_killed_in_insn): Likewise.
92         (find_moveable_store): Likewise.
94 2016-07-28  Martin Liska  <mliska@suse.cz>
96         PR gcov-profile/68025
97         * tree-profile.c (tree_profiling): Respect
98         no_profile_instrument_function attribute.
99         * doc/extend.texi: Document no_profile_instrument_function
100         attribute.
102 2016-07-28  Martin Liska  <mliska@suse.cz>
104         PR rtl-optimization/70944
105         * combine.c (make_compound_operation):
106         Do not allow make_compound_operation for vector mode
108 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
110         PR middle-end/71994
111         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
112          before calling get_ops.
114 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
116         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
117         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
118         (BITS_PER_UNIT_LOG): Remove.
119         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
120         * expr.c (expand_assignment): Likewise.
121         * stor-layout.c (initialize_sizetypes): Likewise.
123 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
125         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
126         signature of rs6000_expand_vector_extract so that the element
127         number is a RTX instead of a constant integer.
128         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
129         Likewise.
130         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
131         (altivec_expand_vec_ext_builtin): Likewise.
132         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
133         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
134         MFVSRLD instruction.
136 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
138         * input.c (get_pure_location): Move here from tree.c.
139         (make_location): Likewise.  Add header comment.
140         (selftest::test_accessing_ordinary_linemaps): Verify
141         pure_location_p, make_location, get_location_from_adhoc_loc and
142         get_range_from_loc.
143         * input.h (get_pure_location): Move declaration here from tree.h.
144         (get_finish): Likewise for inline function.
145         (make_location): Likewise for declaration.
146         * tree.c (get_pure_location): Move to input.c.
147         (make_location): Likewise.
148         * tree.h (get_pure_location): Move declaration to tree.h.
149         (get_finish): Likewise for inline function.
150         (make_location): Likewise for declaration.
152 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
154         PR middle-end/71078
155         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
157 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
159         * system.h (STATIC_ASSERT): Use static_assert if building
160         with C++11 onwards.
162 2016-07-27  Richard Biener  <rguenther@suse.de>
164         PR tree-optimization/72517
165         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
166         Revert change to not compute read-read dependences.
168 2016-07-27  Richard Biener  <rguenther@suse.de>
170         * predict.c (set_even_probabilities): Make nedges unsigned.
172 2016-07-27  Martin Liska  <mliska@suse.cz>
174         * predict.c (set_even_probabilities): Handle unlikely edges.
175         (combine_predictions_for_bb): Likewise.
177 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
179         PR target/71869
180         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
181         __float128 support when we don't have hardware support, so that
182         the IEEE built-in functions like isgreater, first call __unordkf3
183         to make sure neither operand is a NaN, and if both operands are
184         ordered, do the normal comparison.
186 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
188         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
189         name.
190         (extract_code_and_val_from_cond_with_ops): Verify that name is
191         either cond_op0 or cond_op1.
193 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
195         PR tree-optimization/18046
196         * genmodes.c (emit_mode_size_inline): Emit an assert that
197         verifies that mode is a valid array index.
198         (emit_mode_nuinits_inline): Likewise.
199         (emit_mode_inner_inline): Likewise.
200         (emit_mode_unit_size_inline): Likewise.
201         (emit_mode_unit_precision_inline): Likewise.
202         * tree-vrp.c: Include params.h.
203         (find_switch_asserts): Register edge assertions for the default
204         label which correspond to the anti-ranges of each case label.
205         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
206         * doc/invoke.texi: Document it.
208 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
210         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
211         and unnecessary call to gimple_bb.
213 2016-07-26  Richard Biener  <rguenther@suse.de>
215         PR rtl-optimization/71984
216         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
217         for VOIDmode.
219 2016-07-26  Richard Biener  <rguenther@suse.de>
221         PR middle-end/72517
222         * expmed.c (extract_bit_field_1): Constrain the vector mode
223         with element size matching the extraction mode size when
224         choosing a better vector mode to do the extraction from.
226 2016-07-26  Richard Biener  <rguenther@suse.de>
227             Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
229         PR middle-end/70920
230         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
231         pattern.
233 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
235         * tree-ssa-structalias.c (struct scc_info): Change types of
236         members to auto_sbitmap and auto_vec.
237         (scc_info::scc_info): New constructor.
238         (scc_info::~scc_info): New destructor.
239         (init_scc_info): Remove.
240         (free_scc_info): Remove.
241         (find_indirect_cycles): Adjust.
242         (perform_var_substitution): Likewise.
243         (free_var_substitution_info): Likewise.
245 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
247         * tree-outof-ssa.c (struct elim_graph): Change type of members
248         to auto_vec and auto_sbitmap.
249         (elim_graph::elim_graph): New constructor.
250         (delete_elim_graph): Remove.
251         (expand_phi_nodes): Adjust.
253 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
255         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
256         (new_elim_graph): Adjust.
257         (clear_elim_graph): Likewise.
258         (delete_elim_graph): Likewise.
259         (elim_graph_size): Likewise.
260         (elim_graph_add_node): Likewise.
261         (elim_graph_add_edge): Likewise.
262         (elim_graph_remove_succ_edge): Likewise.
263         (eliminate_name): Likewise.
264         (eliminate_build): Likewise.
265         (elim_forward): Likewise.
266         (elim_unvisited_predecessor): Likewise.
267         (elim_backward): Likewise.
268         (elim_create): Likewise.
269         (eliminate_phi): Likewise.
270         (expand_phi_nodes): Likewise.
272 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
274         * bt-load.c (compute_out): Use auto_sbitmap class.
275         (link_btr_uses): Likewise.
276         * cfganal.c (mark_dfs_back_edges): Likewise.
277         (post_order_compute): Likewise.
278         (inverted_post_order_compute): Likewise.
279         (pre_and_rev_post_order_compute_fn): Likewise.
280         (single_pred_before_succ_order): Likewise.
281         * cfgexpand.c (pass_expand::execute): Likewise.
282         * cfgloop.c (verify_loop_structure): Likewise.
283         * cfgloopmanip.c (fix_bb_placements): Likewise.
284         (remove_path): Likewise.
285         (update_dominators_in_loop): Likewise.
286         * cfgrtl.c (break_superblocks): Likewise.
287         * ddg.c (check_sccs): Likewise.
288         (create_ddg_all_sccs): Likewise.
289         * df-core.c (df_worklist_dataflow): Likewise.
290         * dse.c (dse_step3): Likewise.
291         * except.c (eh_region_outermost): Likewise.
292         * function.c (thread_prologue_and_epilogue_insns): Likewise.
293         * gcse.c (prune_expressions): Likewise.
294         (prune_insertions_deletions): Likewise.
295         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
296         * graph.c (draw_cfg_nodes_no_loops): Likewise.
297         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
298         * lcm.c (compute_earliest): Likewise.
299         (compute_farthest): Likewise.
300         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
301         (unroll_loop_runtime_iterations): Likewise.
302         (unroll_loop_stupid): Likewise.
303         * lower-subreg.c (decompose_multiword_subregs): Likewise.
304         * lra-lives.c: Likewise.
305         * lra.c (lra): Likewise.
306         * modulo-sched.c (schedule_reg_moves): Likewise.
307         (optimize_sc): Likewise.
308         (get_sched_window): Likewise.
309         (sms_schedule_by_order): Likewise.
310         (check_nodes_order): Likewise.
311         (order_nodes_of_sccs): Likewise.
312         (order_nodes_in_scc): Likewise.
313         * recog.c (split_all_insns): Likewise.
314         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
315         * reload1.c (reload): Likewise.
316         * sched-rgn.c (haifa_find_rgns): Likewise.
317         (split_edges): Likewise.
318         (compute_trg_info): Likewise.
319         * sel-sched.c (init_seqno): Likewise.
320         * store-motion.c (remove_reachable_equiv_notes): Likewise.
321         * tree-into-ssa.c (update_ssa): Likewise.
322         * tree-ssa-live.c (live_worklist): Likewise.
323         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
324         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
325         * Likewise.
326         (try_peel_loop): Likewise.
327         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
328         * Likewise.
329         * tree-ssa-pre.c (compute_antic): Likewise.
330         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
331         * tree-stdarg.c (reachable_at_most_once): Likewise.
332         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
333         * var-tracking.c (vt_find_locations): Likewise.
335 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
337         * sbitmap.h (auto_sbitmap): New class.
339 2016-07-26  Alan Modra  <amodra@gmail.com>
341         PR target/72103
342         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
343         sri->t_icode.
345 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
347         * input.c (selftest::temp_source_file::temp_source_file): Fix
348         missing "%s" in fprintf.
350 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
352         PR middle-end/71732
353         * cselib.c (cselib_process_insn): Invalidate argument slots for
354         const/pure calls.
356 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
358         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
359         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
360         vmulxh_lane_f16, vmulxh_laneq_f16): New.
362 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
364         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
365         * config/aarch64/aarch64.md (fma, fnma): Support HF.
366         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
368 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
370         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
371         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
372         New.
373         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
374         (add<mode>3): Likewise.
375         (sub<mode>3): Likewise.
376         (mul<mode>3): Likewise.
377         (div<mode>3): Likewise.
378         (*div<mode>3): Likewise.
379         (<fmaxmin><mode>3): Extend to HF.
380         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
381         (fabd<mode>3): Likewise.
382         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
383         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
384         (aarch64_fmulx<mode>): Likewise.
385         (aarch64_fac<optab><mode>): Likewise.
386         (aarch64_frecps<mode>): Likewise.
387         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
388         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
389         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
390         (VSDQ_HSDI): Support HI.
391         (fcvt_target, FCVT_TARGET): Likewise.
392         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
393         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
394         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
395         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
396         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
397         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
398         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
399         vrsqrtsh_f16): New.
401 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
403         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
404         * config/aarch64/aarch64-builtins.c (hi_UP): New.
405         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
406         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
407         mode.
408         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
409         (aarch64_cm<optab><mode>): Likewise.
410         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
411         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
412         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
413         (sqrt<mode>2): Likewise.
414         (*sqrt<mode>2): Likewise.
415         (abs<mode>2): Likewise.
416         (<optab><mode>hf2): New pattern for HF mode.
417         (<optab>hihf2): Likewise.
418         * config/aarch64/arm_neon.h: Include arm_fp16.h.
419         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
420         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
421         Support HF mode.
422         * config/aarch64/arm_fp16.h: New file.
423         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
424         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
425         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
426         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
427         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
428         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
429         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
430         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
431         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
432         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
433         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
434         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
435         vsqrth_f16): New.
437 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
439         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
440         reduc_smin_scal_): Use VDQIF_F16.
441         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
442         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
443         Use VHSDF.
444         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
445         * config/aarch64/iterators.md (VDQIF_F16): New.
446         (vp): Support HF modes.
447         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
448         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
450 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
452         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
453         "*aarch64_mulx_elt_from_dup<mode>".
454         (*aarch64_mul3_elt<mode>): Update schedule type.
455         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
456         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
457         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
458         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
459         (f, fp): Support HF modes.
460         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
461         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
462         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
463         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
464         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
465         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
467 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
469         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
470         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
471         modes.
472         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
473         vfmsq_f16): New.
475 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
477         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
478         * config/aarch64/aarch64-simd.md
479         (aarch64_rsqrts<mode>): Extend to HF modes.
480         (fabd<mode>3): Likewise.
481         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
482         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
483         (aarch64_<maxmin_uns>p<mode>): Likewise.
484         (<su><maxmin><mode>3): Likewise.
485         (<maxmin_uns><mode>3): Likewise.
486         (<fmaxmin><mode>3): Likewise.
487         (aarch64_faddp<mode>): Likewise.
488         (aarch64_fmulx<mode>): Likewise.
489         (aarch64_frecps<mode>): Likewise.
490         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
491         (add<mode>3): Extend to HF modes.
492         (sub<mode>3): Likewise.
493         (mul<mode>3): Likewise.
494         (div<mode>3): Likewise.
495         (*div<mode>3): Likewise.
496         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
497         HF, V4HF and V8HF.
498         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
499         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
500         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
501         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
502         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
503         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
504         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
505         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
506         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
507         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
508         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
509         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
510         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
511         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
513 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
515         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
516         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
517         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
518         (neg<mode>2): Likewise.
519         (abs<mode>2): Likewise.
520         (<frint_pattern><mode>2): Likewise.
521         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
522         (<optab><VDQF:mode><fcvt_target>2): Likewise.
523         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
524         (ftrunc<VDQF:mode>2): Likewise.
525         (<optab><fcvt_target><VDQF:mode>2): Likewise.
526         (sqrt<mode>2): Likewise.
527         (*sqrt<mode>2): Likewise.
528         (aarch64_frecpe<mode>): Likewise.
529         (aarch64_cm<optab><mode>): Likewise.
530         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
531         HF, V4HF and V8HF.
532         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
533         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
534         (stype): New.
535         * config/aarch64/arm_neon.h (vdup_n_f16): New.
536         (vdupq_n_f16): Likewise.
537         (vld1_dup_f16): Use vdup_n_f16.
538         (vld1q_dup_f16): Use vdupq_n_f16.
539         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
540         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
541         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
542         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
543         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
544         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
545         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
546         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
547         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
548         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
549         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
550         vsqrt_f16, vsqrtq_f16): New.
552 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
554         * config/aarch64/aarch64-simd.md
555         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
556         (aarch64_ext<mode>): Likewise.
557         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
558         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
559         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
560         and V8HFmode.
561         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
562         float16x8_t.
563         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
564         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
565         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
566         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
567         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
568         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
569         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
570         New.
571         (vmov_n_f16): Reimplement using vdup_n_f16.
572         (vmovq_n_f16): Reimplement using vdupq_n_f16..
574 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
576         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
577         "frame_related_p".  Generate CFA annotation when it's necessary.
578         (aarch64_expand_prologue): Use aarch64_add_constant.
579         (aarch64_expand_epilogue): Likewise.
580         (aarch64_output_mi_thunk): Pass "false" when calling
581         aarch64_add_constant.
583 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
585         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
586         sequences.
588 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
590         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
591         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
592         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
593         (aarch64_build_constant): Delete.
595 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
597         Revert
598         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
600         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
601         flag_toplevel_reorder.
603 2016-07-25  Richard Biener  <rguenther@suse.de>
605         * cgraph.c (cgraph_node::verify_node): Compare against builtin
606         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
607         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
608         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
609         (streamer_get_builtin_tree): Likewise.
610         (streamer_write_builtin): Likewise.
611         * lto-streamer.h (LTO_builtin_decl): Remove.
612         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
613         (lto_input_scc): Remove LTO_builtin_decl handling.
614         (lto_input_tree_1): Liekwise.
615         * lto-streamer-out.c (lto_output_tree_1): Remove special
616         handling of builtins.
617         (DFS::DFS): Likewise.
618         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
619         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
620         assert.
621         (streamer_write_builtin): Remove.
623 2016-07-25  Martin Liska  <mliska@suse.cz>
625         * lto-cgraph.c (input_symtab): Don't call get_working_sets
626         if flag_auto_profile is set to true.
628 2016-07-25  Martin Liska  <mliska@suse.cz>
630         PR gcov-profile/71868
631         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
632         have a function with multiple latches, count them all.
634 2016-07-25  Martin Liska  <mliska@suse.cz>
636         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
638 2016-07-25  Martin Liska  <mliska@suse.cz>
640         PR tree-optimization/71987
641         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
642         just for SSA_NAMEs. Fix GNU coding style.
644 2016-07-25  Martin Liska  <mliska@suse.cz>
646         PR gcov-profile/64874
647         * gcov-io.h: Update command about file format.
648         * gcov-iov.c (main): Adapt the numbering scheme.
650 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
652         PR middle-end/66726
653         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
654         whose result is used in PHI.
655         (final_range_test_p): Likewise.
656         (maybe_optimize_range_tests): Likewise.
658 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
660         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
661         Reformat two multi-line strings.
663 2016-07-22 Martin Sebor  <msebor@redhat.com>
665         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
667 2016-07-22 Martin Sebor  <msebor@redhat.com>
669         PR c/71560
670         * doc/extend.texi (Compound Literals): Correct and clarify.
671         (Cast to Union): Same.
673 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
675         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
676         comments to explain why certain error messages make mention of
677         undocumented options.
678         (rs6000_invalid_builtin): Change error messages to replace mention
679         of undocumented options with mention of the -mcpu=power9 option
680         that enables those undocumented options.
681         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
682         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
683         definition of this macro to correct an existing error.
684         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
685         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
686         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
687         descriptions of built-in functions so that they depend on
688         -mcpu=power9 instead of on the corresponding undocumented flags.
689         * doc/invoke.texi (Option Summary):  Remove all mention of newly
690         undocumented flags.
691         (IBM RS/6000 and PowerPC Options): Likewise.
692         * doc/md.texi (Constraints for Particuliar Machines): Remove all
693         mention of newly undocumented flags.
695 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
697         * ipa-cp.c (determine_versionability): Do not create constprop clones,
698         when target_clones attribute is set.
700 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
702         * common.opt (funsafe-loop-optimizations): Mark ignore.
703         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
704         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
705         related code.
706         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
707         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
709 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
711         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
712         Parameter.
713         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
714         Parameter.
715         (number_of_iterations_exit): Warn missed loop optimization for
716         possible infinite loops.
718 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
720         PR target/71216
721         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
722         when to emit a ".machine" pseudo-op.
724 2016-07-22  Martin Liska  <mliska@suse.cz>
726         PR gcov-profile/69028
727         PR gcov-profile/62047
728         * coverage.c (coverage_compute_lineno_checksum): Do not
729         calculate checksum for fns w/o xloc.file.
730         (coverage_compute_profile_id): Likewise.
732 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
734         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
735         (avr_secondary_reload): ...and implementation.
736         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
737         * config/avr/avr.md (reload_in<mode>): Remove insns.
738         (adjust_len) [lpm]: Remove insn attribute value.
739         * config/avr/predicates.md (flash_operand): Remove insn predicate.
741 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
743         PR middle-end/71876
744         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
745         attribute.
746         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
747         * calls.c (special_function_p): Remove the special handling of the
748         "__builtin_" prefix.
750 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
752         PR middle-end/71876
753         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
754         if STMT may be an alloca call.
755         (gimple_alloca_call_p, alloca_call_p): Return only true for the
756         builtin alloca call.
757         * calls.h (gimple_maybe_alloca_call_p): New function.
758         * tree-inline.c (inline_forbidden_p_stmt): Use
759         gimple_maybe_alloca_call_p here.
761 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
763         * spellcheck-tree.c (best_macro_match::best_macro_match):
764         Explictly specify the template arguments when invoking the base
765         class constructor, to help older C++ compilers.
767 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
769         PR sanitizer/71953
770         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
771         before builtin_decl_implicit.
773 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
775         * optabs.c (emit_condiitonal_move): Short circuit for identical
776         sources.
778 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
780         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
781         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
782         (noce_conversion_profitable_p): New.
783         (noce_try_store_flag_constants): Use it.
784         (noce_try_addcc): Likewise.
785         (noce_try_store_flag_mask): Likewise.
786         (noce_try_cmove): Likewise.
787         (noce_try_cmove_arith): Likewise.
788         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
789         overwriting it.
790         (noce_convert_multiple_sets): Move cost model to here, from...
791         (bb_ok_for_noce_convert_multiple_sets) ...here.
792         (noce_process_if_block): Update calls for above changes.
793         (noce_find_if_block): Record new noce_if_info parameters.
795 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
797         * target.def (max_noce_ifcvt_seq_cost): New.
798         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
799         * doc/tm.texi: Regenerate.
800         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
801         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
802         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
803         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
804         * doc/invoke.texi: Document new params.
806 2016-07-21  Richard Biener  <rguenther@suse.de>
808         PR tree-optimization/71947
809         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
810         ranges have useful limit_vr information.
812 2016-07-21  Richard Biener  <rguenther@suse.de>
814         * function-tests.c (build_trivial_generic_function): Set
815         BLOCK_SUPERCONTEXT of DECL_INITIAL.
816         * omp-low.c (create_omp_child_function): Likewise.
817         (grid_expand_target_grid_body): Likewise.
818         * cgraphunit.c (init_lowered_empty_function): Likewise.
819         (cgraph_node::expand_thunk): Likewise.
820         * tree-parloops.c (create_loop_fn): Likewise.
821         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
823 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
825         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
826         in comment.
828 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
830         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
831         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
832         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
833         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
834         values for insn attribute.
835         * config/avr/avr.c (avr_out_insert_notbit): New function.
836         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
837         ADJUST_LEN_INSV_NOTBIT_0/_7.
838         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
840 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
842         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
843         (chrec_convert_1, chrec_convert): Ditto.
844         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
845         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
846         * tree-vrp.c (adjust_range_with_scev): Ditto.
847         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
848         (scev_var_range_cant_overflow): New function.
849         (scev_probably_wraps_p): New parameter.  Call above function.
850         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
852 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
854         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
855         by removing computation of may_be_zero.
857 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
859         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
861 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
863         Improving concepts performance and diagnostics.
864         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
865         for constraint satisfaction and subsumption.
866         * timevar.h (auto_timevar): New constructor that matches the push/pop
867         pattern of usage in pt.c.
869 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
871         * hwint.h (HOST_WIDE_INT_0): New define.
872         (HOST_WIDE_INT_0U): Ditto.
873         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
874         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
875         * simplify-rtx.c: Ditto.
876         * tree-object-size.c: Ditto.
878 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
880         * config/s390/s390.c (s390_encode_section_info): Remove mode size
881         check.
883 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
885         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
886         * combine.c: Use HOST_WIDE_INT_M1U instead of
887         ~(unsigned HOST_WIDE_INT) 0.
888         * double-int.h: Ditto.
889         * dse.c: Ditto.
890         * dwarf2asm.c:Ditto.
891         * expmed.c: Ditto.
892         * genmodes.c: Ditto.
893         * match.pd: Ditto.
894         * read-rtl.c: Ditto.
895         * tree-ssa-loop-ivopts.c: Ditto.
896         * tree-ssa-loop-prefetch.c: Ditto.
897         * tree-vect-generic.c: Ditto.
898         * tree-vect-patterns.c: Ditto.
899         * tree.c: Ditto.
901 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
903         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
904         constant addresses outside [0,0xc0] into a register.
905         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
906         cases where the base address register is unused after.
907         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
908         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
909         (avr_out_store_psi_reg_disp_tiny): Same.
911 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
913         Implement attribute progmem on reduced Tiny cores by adding
914         flash offset 0x4000 to respective symbols.
916         PR target/71948
917         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
918         documentation how it works on reduced Tiny cores.
919         (AVR Named Address Spaces): No support for reduced Tiny.
920         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
921         (avr_address_tiny_pm_p): New static function.
922         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
923         if the address is in progmem.
924         (avr_assemble_integer): Same.
925         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
926         for symbol_ref in progmem.
927         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
928         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
929         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
931 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
933         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
934         * configure: Regenerate.
935         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
936         (USE_THIN_ARCHIVES): New variable.
937         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
938         this archive as a thin archive.
940 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
942         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
943         same location as last time, don't skip if we have fix-it hints.
944         Clarify the skipping logic by converting it from one "if" clause
945         to repeated "if" clauses.
946         * spellcheck-tree.c: Include "cpplib.h".
947         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
948         (best_macro_match::best_macro_match): New constructor.
949         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
950         Move here from c/c-decl.c.
951         (class best_macro_match): Move here from c/c-decl.c, converting
952         from a typedef to a subclass, gaining a ctor.
954 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
956         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
957         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
958         define...
959         (avr_addr_space_diagnose_usage): ...and implementation.
960         (avr_addr_space_supported_p): New function.
961         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
962         report bad address space usage if that space is supported.
963         (avr_insert_attributes): Same.  No more complain about unsupported
964         address spaces.
965         * config/avr/avr-c.c (tm_p.h): Include it.
966         (avr_cpu_cpp_builtins): Only define addr-space related built-in
967         macro if avr_addr_space_supported_p.
969 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
971         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
972         flag_toplevel_reorder.
974 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
976         * gcc-rich-location.c
977         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
978         a const char *.
979         * gcc-rich-location.h
980         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
982 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
984         * target.def (addr_space): Add new diagnose_usage to hook vector.
985         * targhooks.c (default_addr_space_diagnose_usage): Add default
986         implementation and...
987         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
988         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
989         is some address space, call targetm.addr_space.diagnose_usage.
990         * doc/tm.texi.in (Named Address Spaces): Add anchor for
991         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
992         * doc/tm.texi: Regenerate.
994 2016-07-20  Martin Liska  <mliska@suse.cz>
996         PR middle-end/71898
997         * graphite-isl-ast-to-gimple.c (later_of_the_two):
998         Properly handly PHI stmts.
1000 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
1002         PR tree-optimization/71503
1003         PR tree-optimization/71683
1004         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
1005         and break.
1007 2016-07-20  Martin Liska  <mliska@suse.cz>
1009         * doc/invoke.texi (-fipa-ra): Document when the option is
1010         disabled. Fix a typo.
1012 2016-07-20  Martin Liska  <mliska@suse.cz>
1014         * Makefile.in: Include fibonacci_heap.c
1015         * fibonacci_heap.c: New file.
1016         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
1017         (fibonacci_heap::union_with): Fix deletion of the second heap.
1018         * selftest-run-tests.c (selftest::run_tests): Incorporate
1019         fibonacci heap tests.
1020         * selftest.h: Declare fibonacci_heap_c_tests.
1022 2016-07-20  Martin Liska  <mliska@suse.cz>
1024         * selftest-run-tests.c (selftest::run_tests): New function.
1025         * selftest.h (sreal_c_tests): Declare.
1026         * sreal.c (sreal_verify_basics): New function.
1027         (verify_aritmetics): Likewise.
1028         (sreal_verify_arithmetics): Likewise.
1029         (verify_shifting): Likewise.
1030         (sreal_verify_shifting): Likewise.
1031         (void sreal_c_tests): Likewise.
1033 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1035         PR rtl-optimization/71916
1036         * cfgrtl.c (contains_no_active_insn_p): Return false also for
1037         bb which have a single succ fake edge.
1039 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
1041         PR debug/71855
1042         * dwarf2out.c (gen_subprogram_die): Only call
1043         gen_unspecified_parameters_die while dumping early dwarf.
1045 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
1047         PR middle-end/71874
1048         * gimple-fold.c (fold_builtin_memory_op): Use
1049         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
1051 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
1053         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1054         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
1055         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
1056         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
1057         * combine.c: Ditto.
1058         * cse.c: Ditto.
1059         * dojump.c: Ditto.
1060         * double-int.c: Ditto.
1061         * dse.c: Ditto.
1062         * dwarf2out.c: Ditto.
1063         * expmed.c: Ditto.
1064         * expr.c: Ditto.
1065         * fold-const.c: Ditto.
1066         * function.c: Ditto.
1067         * fwprop.c: Ditto.
1068         * genmodes.c: Ditto.
1069         * hwint.c: Ditto.
1070         * hwint.h: Ditto.
1071         * ifcvt.c: Ditto.
1072         * loop-doloop.c: Ditto.
1073         * loop-invariant.c: Ditto.
1074         * loop-iv.c: Ditto.
1075         * match.pd: Ditto.
1076         * optabs.c: Ditto.
1077         * real.c: Ditto.
1078         * reload.c: Ditto.
1079         * rtlanal.c: Ditto.
1080         * simplify-rtx.c: Ditto.
1081         * stor-layout.c: Ditto.
1082         * toplev.c: Ditto.
1083         * tree-ssa-loop-ivopts.c: Ditto.
1084         * tree-vect-generic.c: Ditto.
1085         * tree-vect-patterns.c: Ditto.
1086         * tree.c: Ditto.
1087         * tree.h: Ditto.
1088         * ubsan.c: Ditto.
1089         * varasm.c: Ditto.
1090         * wide-int-print.cc: Ditto.
1091         * wide-int.cc: Ditto.
1092         * wide-int.h: Ditto.
1094 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1096         * selftest.c (selftest::assert_streq): Handle NULL values of
1097         val_actual and val_expected.
1099 2016-07-19  Martin Jambor  <mjambor@suse.cz>
1101         PR fortran/71688
1102         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
1103         rather than cgraph_create_node to get a call graph node.
1105 2016-07-19  Richard Biener  <rguenther@suse.de>
1107         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
1108         handle all tcc_constant bases and valueize SSA names.
1109         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
1110         tcc_constant bases.
1112 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
1114         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
1115         the flags of the exit block and bb2, not just the entry block.
1117 2016-07-19  Richard Biener  <rguenther@suse.de>
1119         PR tree-optimization/71901
1120         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1121         align member, group stuff with the bitfield.
1122         (vn_ref_op_align_unit): New inline.
1123         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
1124         record element alignment and operand 3 unchanged.
1125         (ao_ref_init_from_vn_reference): Adjust.
1126         (valueize_refs_1): Likewise.
1127         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1129 2016-07-19  Richard Biener  <rguenther@suse.de>
1131         PR tree-optimization/71908
1132         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
1133         symbolic constants in a more reliable way.
1135 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
1137         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
1138         comment.
1139         (vect_update_inits_of_drs): Likewise.
1140         (vect_create_cond_for_alias_checks): Likewise.
1141         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
1143 2016-07-19  Richard Biener  <rguenther@suse.de>
1145         PR lto/71907
1146         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
1147         with an abstract origin that is not an inlined function outer
1148         scope add a self-reference as abstract origin.
1149         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
1151 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1153         PR target/71493
1154         * config/rs6000/rs6000.c (rs6000_function_value): Fix
1155         unintentional System V.4 structure return breakage for structures
1156         with a single floating point element.
1158 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
1160         PR tree-optimization/71734
1161         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
1162         contains REF, use it to check safelen, assume that safelen value
1163         must be greater 1, fix style.
1164         (ref_indep_loop_p_2): Add REF_LOOP argument.
1165         (ref_indep_loop_p): Pass LOOP as additional argument to
1166         ref_indep_loop_p_2.
1168 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1170         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
1171         allocation in the prologue.
1172         * explow.c (get_dynamic_stack_base): New function to return an address
1173         expression for the dynamic stack base.
1174         (get_dynamic_stack_size): New function to do the required dynamic stack
1175         space size calculations.
1176         (allocate_dynamic_stack_space): Use new functions.
1177         (align_dynamic_address): Move some code from
1178         allocate_dynamic_stack_space to new function.
1179         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
1181 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1183         * config/s390/s390.c (s390_encode_section_info): Always set
1184         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
1185         found.
1187 2016-07-18  Richard Biener  <rguenther@suse.de>
1189         PR tree-optimization/71893
1190         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
1191         for sizetype cast added by array_ref_element_size.
1192         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1194 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
1196         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
1197         register parameters.  Remove code to initialize argument pointer
1198         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
1199         using a pc-relative branch.  Cleanup conditional code.
1200         * config/pa/pa.md (call_mcount): New expander.
1201         (call_mcount_nonpic): New insn.
1202         (call_mcount_pic): New insn and split.
1203         (call_mcount_pic_post_reload): New insn.
1204         (call_mcount_64bit): New insn and split.
1205         (call_mcount_64bit_post_reload): New insn.
1207 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
1209         * config/avr/predicates.md (const_m255_to_m1_operand): New.
1210         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
1211         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
1212         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
1213         (*usum_widenqihi3, *udiff_widenqihi3)
1214         (*addhi3_zero_extend.const): New combiner insns.
1215         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
1216         just 1 bit is affected.
1217         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
1218         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
1220 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
1222         * omp-low.c (lower_omp_target): Mark data clauses with
1223         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1224         zero-length subarrays.
1226 2016-07-15  Richard Biener  <rguenther@suse.de>
1228         PR tree-optimization/71881
1229         * tree-loop-distribution.c (destroy_loop): Remove blocks in
1230         reverse DOM order to make debug temp generation happy.
1232 2016-07-15  Richard Biener  <rguenther@suse.de>
1234         PR tree-optimization/71887
1235         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
1236         verify it is not zero for division / modulo handling.
1237         (value_replacement): Adjust.
1239 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
1240             Julian Brown  <julian@codesourcery.com>
1242         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
1243         * config/aarch64/aarch64-cost-tables.h
1244         (vulcan_extra_costs): New variable.
1245         * config/aarch64/aarch64.c
1246         (vulcan_addrcost_table): Likewise.
1247         (vulcan_regmove_cost): Likewise.
1248         (vulcan_vector_cost): Likewise.
1249         (vulcan_branch_cost): Likewise.
1250         (vulcan_tunings): Likewise.
1252 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
1254         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
1255         (output_in_order): Loop over undefined variables too.  Output them
1256         via assemble_undefined_decl.  Skip variables that correspond to hard
1257         registers or have value-exprs.
1258         * varpool.c (symbol_table::output_variables): Handle undefined
1259         variables together with defined ones.
1261 2016-07-15  Richard Biener  <rguenther@suse.de>
1263         * tree-ssa-pre.c (get_representative_for): Make sure to return
1264         the value number of SSA names.
1265         (phi_translate_1): get_representative_for cannot return NULL.
1266         (do_pre_regular_insertion): Remove redundant call to
1267         fully_constant_expression.
1268         (do_pre_partial_partial_insertion): Likewise.
1270 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
1272         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
1273         (derive_simple_iv_with_niters): New function.
1274         (simple_iv): Rewrite using simple_iv_with_niters.
1275         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
1276         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
1277         function.
1278         (number_of_iterations_exit): Rewrite using above function.
1279         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
1280         Decl.
1282 2016-07-15  Richard Biener  <rguenther@suse.de>
1284         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
1285         vec_construct cost.
1287 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
1289         PR tree-optimization/71872
1290         * tree-data-ref.c (get_references_in_stmt): Ignore references
1291         with is_gimple_constant get_base_address.
1293 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1295         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
1296         (TARGET_HAVE_LDACQD): New macro.
1297         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
1298         than TARGET_HAVE_LDACQ.
1299         (arm_load_acquire_exclusivedi): Likewise.
1300         (arm_store_release_exclusivedi): Likewise.
1302 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1304         PR rtl-optimization/71878
1305         * lra-constraints.c (match_reload): Pass information about other
1306         output operands.  Create new unique register value if matching input
1307         operand shares same register value as output operand being considered.
1308         (curr_insn_transform): Record output operands already processed.
1310 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1312         PR target/65951
1313         PR tree-optimization/70923
1314         * tree-vect-patterns.c: Include mult-synthesis.h.
1315         (target_supports_mult_synth_alg): New function.
1316         (synth_lshift_by_additions): Likewise.
1317         (apply_binop_and_append_stmt): Likewise.
1318         (vect_synth_mult_by_constant): Likewise.
1319         (target_has_vecop_for_code): Likewise.
1320         (vect_recog_mult_pattern): Use above functions to synthesize vector
1321         multiplication by integer constants.
1323 2016-07-14  Alan Modra  <amodra@gmail.com>
1325         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
1326         gpr alternatives.  Correct '*' placement on Y,r alternative.
1327         Add '*' on operand 1 of r,r alternative.
1329 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1331         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
1332         * expmed.h: ... Here.
1334 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
1336         * gimple.h (stmt_can_terminate_bb_p): New function.
1337         * tree-cfg.c (need_fake_edge_p): Rename to ...
1338         (stmt_can_terminate_bb_p): ... this; return true if stmt can
1339         throw external; handle const and pure calls.
1340         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
1342 2016-07-14  Richard Biener  <rguenther@suse.de>
1344         PR tree-optimization/71866
1345         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
1346         (do_hoist_insertion): Avoid endless recursion when we
1347         didn't insert anything because we managed to simplify
1348         things down to a constant or SSA name.
1349         (fully_constant_expression): Re-write in terms of ...
1350         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
1351         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
1352         vn_nary_build_or_lookup_1.
1353         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
1354         (vn_nary_build_or_lookup): ... this which now wraps it.
1356 2016-07-14  Alan Modra  <amodra@gmail.com>
1358         PR target/71733
1359         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
1360         with p9_vector override before power9-dform override.
1362 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1364         * value-prof.c (gimple_value_profile_transformations): Don't run
1365         when auto_profile is on.
1367 2016-07-13  Andi Kleen  <ak@linux.intel.com>
1369         * auto-profile.c (update_inlined_ind_target,
1370         afdo_indirect_call): Print information to dump file.
1372 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1374         * genrecog.c (special_predicate_operand_p): New function.
1375         (predicate_name): Move function.
1376         (validate_pattern): Don't warn about missing mode for all
1377         define_special_predicate predicates.
1379 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
1381         * tree-vect-data-refs.c (vect_no_alias_p): New function.
1382         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
1383         resolve alias checks which are known at compilation time.
1384         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
1385         alias checks are resolved.  Move dump info for too many runtime
1386         alias checks to here...
1387         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
1389 2016-07-13  Richard Biener  <rguenther@suse.de>
1391         PR tree-optimization/24574
1392         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
1393         position and add shift, rotate, divison and modulo support
1394         for left zero.
1395         (value_replacement): Pass in argument position to absorbing_element_p.
1397 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1399         PR ipa/71633
1400         * ipa-inline-transform.c (inline_call): Support
1401         instrumented thunks.
1403 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1405         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
1406         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
1407         divide feature.
1408         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
1409         Baseline.  Make initial alternative TARGET_32BIT only.
1410         (udivsi3): Likewise.
1411         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
1412         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
1413         target.
1415 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1417         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
1418         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
1419         availability with TARGET_HAVE_MOVT.
1420         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
1421         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
1422         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
1423         UINTVAL.
1424         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
1425         extra instruction if MOVW is available.  Use a cost variable
1426         incremented by COSTS_N_INSNS (1) when the condition match rather than
1427         returning an arithmetic expression based on COSTS_N_INSNS.  Make
1428         constant with bottom half word zero cost 2 instruction if MOVW is
1429         available.
1430         * config/arm/arm.md (define_attr "arch"): Add v8mb.
1431         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
1432         target is ARMv8-M Baseline.
1433         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
1434         (arm_movtas_ze): Likewise.
1435         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
1436         alternative for constants satisfying j constraint.
1437         (thumb1_movsi_insn): Likewise.
1438         (movsi splitter for K alternative): Tighten condition to not trigger
1439         if movt is available and j constraint is satisfied.
1440         (Pe immediate splitter): Likewise.
1441         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
1442         constant fitting in an halfword to use MOVW.
1443         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
1444         effective target.
1446 2016-07-13  Richard Biener  <rguenther@suse.de>
1448         PR middle-end/71104
1449         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
1450         gimplifying the LHS.  Make sure to gimplify a returning twice
1451         call LHS without using SSA names.
1453 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1455         * tree-data-ref.c (find_data_references_in_stmt): Remove
1456         unnecessary call to vec::release.
1457         (graphite_find_data_references_in_stmt): Likewise.
1458         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
1459         * tree-vect-stmts.c (vectorizable_condition): Likewise.
1461 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1463         * cfgexpand.c (expand_used_vars): Make the type of a local
1464         variable auto_vec.
1465         * genmatch.c (lower_for): Likewise.
1466         * haifa-sched.c (haifa_sched_init): Likewise.
1467         (add_to_speculative_block): Likewise.
1468         (create_check_block_twin): Likewise.
1469         * predict.c (handle_missing_profiles): Likewise.
1470         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
1471         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
1472         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1473         Likewise.
1474         (maybe_lower_iteration_bound): Likewise.
1475         * tree-ssa-sccvn.c (DFS): Likewise.
1476         * tree-stdarg.c (reachable_at_most_once): Likewise.
1477         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
1478         (vectorizable_store): Likewise.
1480 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1482         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
1483         (sccvn_dom_walker): make cond_stack an auto_vec.
1485 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1487         * ree.c (struct ext_state): Make type of members auto_vec.
1488         (find_and_remove_re): Adjust.
1490 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1492         * cfgexpand.c (struct stack_vars_data): Make type of fields
1493         auto_vec.
1494         (expand_used_vars): Adjust.
1496 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1498         * ipa.c (record_cdtor_fn): Adjust.
1499         (build_cdtor_fns): Likewise.
1500         (ipa_cdtor_merge): Make static_ctors and static_dtors local
1501         variables.
1503 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1505         * genextract.c (struct accum_extract): Add constructor and make
1506         members auto_vec.
1507         (gen_insn): Adjust.
1509 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1511         * tree.c (struct free_lang_data_d): Add constructor and change
1512         types of members to ones that automatically manage resources.
1513         (fld_worklist_push): Adjust.
1514         (find_decls_types): Likewise.
1515         (find_decls_types_in_eh_region): Likewise.
1516         (free_lang_data_in_cgraph): Stop manually creating and
1517         destroying members of free_lang_data_d.
1519 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
1521         PR rtl-optimization/68961
1522         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
1523         peephole variant.  Use sse_reg_operand predicates.
1525 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
1527         * config/i386/predicates.md (x86_64_immediate_operand)
1528         <case CONST_INT>: Remove unneeded truncation to DImode.
1529         <case CONST>: Ditto.
1530         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1532 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
1534         PR target/71805
1535         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
1536         The xxperm and xxpermr instructions require that the 2nd input
1537         operand overlap with the output operand, and not the 1st.
1538         (altivec_vperm_v8hiv16qi): Likewise.
1539         (altivec_vperm_<mode>_uns_internal): Likewise.
1540         (altivec_vpermr_<mode>_internal): Likewise.
1541         (vperm_v8hiv4si): Likewise.
1542         (vperm_v16qiv8hi): Likewise.
1544 2016-07-12  Nathan Sidwell  <nathan@acm.org>
1546         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
1547         when -mno-pic-data-is-text-relative is in effect, by default.
1548         * doc/invoke.texi (mpic-data-is-text-relative): Document new
1549         behavior and clarify.
1551 2016-07-12  Martin Liska  <mliska@suse.cz>
1553         * params.def: Add avg-loop niter.
1554         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
1555         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1556         * doc/invoke.texi: Document the new parameter.
1558 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1560         PR middle-end/71700
1561         * expr.c (store_constructor): Mask sign-extended bits when widening
1562         sub-word constructor element at the start of a word.
1564 2016-07-12  Martin Liska  <mliska@suse.cz>
1566         * Makefile.in: Append rule for params-options.h.
1567         * params-options.h: New file.
1569 2016-07-12  Martin Liska  <mliska@suse.cz>
1571         * ira-build.c (mark_loops_for_removal): Properly iterate
1572         loops.
1574 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
1575             Richard Biener  <rguenther@suse.de>
1577         PR tree-optimization/23286
1578         PR tree-optimization/70159
1579         * doc/invoke.texi: Document -fcode-hoisting.
1580         * common.opt (fcode-hoisting): New flag.
1581         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
1582         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
1583         (do_regular_insertion): Rename to ...
1584         (do_pre_regular_insertion): ... this and amend general comments
1585         on insertion strathegy.
1586         (do_partial_partial_insertion): Rename to ...
1587         (do_pre_partial_partial_insertion): ... this.
1588         (do_hoist_insertion): New function.
1589         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
1590         and call do_hoist_insertion properly.
1591         (insert): Adjust.
1592         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
1593         (pass_pre::execute): Register hoist_insert stats.
1595 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
1597         PR middle-end/71716
1598         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
1599         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
1600         is different from mode's bitsize.  Small cleanup.
1602 2016-07-12  Richard Biener  <rguenther@suse.de>
1604         PR rtl-optimization/68961
1605         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
1606         to simplify to a non-constant.
1608 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
1610         PR middle-end/71758
1611         * omp-low.c (expand_omp_target): Gimplify device.
1613         PR tree-optimization/71823
1614         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
1615         to get vec_oprnds2 from op2.
1617 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
1619         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
1620         Hoist common subexpressions.
1621         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
1623 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
1625         PR target/71800
1626         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
1627         prevent generation of 'stxsiwx' on pre Power8 hardware.
1629 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1631         * input.c: Include cpplib.h.
1632         (selftest::temp_source_file): New class.
1633         (selftest::temp_source_file::temp_source_file): New ctor.
1634         (selftest::temp_source_file::~temp_source_file): New dtor.
1635         (selftest::should_have_column_data_p): New function.
1636         (selftest::test_should_have_column_data_p): New function.
1637         (selftest::temp_line_table): New class.
1638         (selftest::temp_line_table::temp_line_table): New ctor.
1639         (selftest::temp_line_table::~temp_line_table): New dtor.
1640         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
1641         it to create a temp_line_table.
1642         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
1643         locations that are known to have column data.
1644         (selftest::line_table_case): New struct.
1645         (selftest::test_reading_source_line): Move tempfile handling
1646         to class temp_source_file.
1647         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
1648         (selftest::assert_token_loc_eq): New function.
1649         (ASSERT_TOKEN_LOC_EQ): New macro.
1650         (selftest::test_lexer): New function.
1651         (selftest::boundary_locations): New array.
1652         (selftest::input_c_tests): Call test_should_have_column_data_p.
1653         Loop over a test matrix of interesting values of location and
1654         default_range_bits, calling test_lexer on each case in the matrix.
1655         Move call to test_accessing_ordinary_linemaps into the matrix.
1656         * selftest.h (ASSERT_EQ): Reimplement in terms of...
1657         (ASSERT_EQ_AT): New macro.
1659 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
1661         PR target/71801
1662         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
1663         Don't convert TImode in debug insn.
1665 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1667         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
1668         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
1669         (tree_type_common::lang_flag_7): New.
1670         (tree_type_common::spare): Reduce size.
1671         * tree.h (TYPE_ALIGN_OK): Remove.
1672         (TYPE_LANG_FLAG_7): New.
1673         (get_inner_reference): Adjust header.
1674         * print-tree.c (print_node): Adjust.
1675         * expr.c (get_inner_reference): Remove parameter keep_aligning.
1676         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
1677         calls to get_inner_reference.
1678         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
1679         handling of TYPE_ALIGN_OK.
1680         * builtins.c (get_object_alignment_2): Adjust call to
1681         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
1682         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
1683         TYPE_ALIGN_OK.
1684         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
1685         * cfgexpand.c (expand_debug_expr): Likewise.
1686         * dbxout.c (dbxout_expand_expr): Likewise.
1687         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
1688         loc_list_from_tree, fortran_common): Likewise.
1689         * fold-const.c (optimize_bit_field_compare,
1690         decode_field_reference, fold_unary_loc, fold_comparison,
1691         split_address_to_core_and_offset): Likewise.
1692         * gimple-laddress.c (execute): Likewise.
1693         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
1694         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
1695         * hsa-gen.c (gen_hsa_addr): Likewise.
1696         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
1697         * tsan.c (instrument_expr): Likewise.
1698         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
1699         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
1700         * tree-affine.c (tree_to_aff_combination,
1701         get_inner_reference_aff): Adjust calls to get_inner_reference.
1702         * tree-data-ref.c (split_constant_offset_1,
1703         dr_analyze_innermost): Likewise.
1704         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
1705         * tree-sra.c (ipa_sra_check_caller): Likewise.
1706         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
1707         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
1708         bswap_replace): Likewise.
1709         * tree-vect-data-refs.c (vect_check_gather,
1710         vect_analyze_data_refs): Likewise.
1711         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
1712         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
1713         TYPE_ALIGN_OK.
1715 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
1717         * Makefile.in (selftest-valgrind): New phony target.
1718         * function-tests.c (selftest::build_cfg): Delete pass instances
1719         created by the test.
1720         (selftest::convert_to_ssa): Likewise.
1721         (selftest::test_expansion_to_rtl): Likewise.
1722         * tree-cfg.c (selftest::test_linear_chain): Release dominator
1723         vectors.
1724         (selftest::test_diamond): Likewise.
1726 2016-07-11  Richard Biener  <rguenther@suse.de>
1728         PR tree-optimization/71816
1729         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
1730         than replacing all of its operands.
1732 2016-07-11  Alan Modra  <amodra@gmail.com>
1734         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
1735         (ctr<mode>): Add unspec.
1736         (ctr<mode>_internal*): Likewise.
1738 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
1740         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
1741         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
1743 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
1745         PR rtl-optimization/71621
1746         * lra-constraints.c (process_alt_operands): Check combination of
1747         reg class and mode.
1749 2016-07-08  Jason Merrill  <jason@redhat.com>
1750             Richard Biener  <rguenther@suse.de>
1752         P0145: Refining Expression Order for C++.
1753         * gimplify.c (initial_rhs_predicate_for): New.
1754         (gimplfy_modify_expr): Gimplify RHS before LHS.
1756 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1758         PR target/71297
1759         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1760         Allow standard error handling to take over when a wrong number
1761         of arguments is presented to __builtin_vec_ld () or
1762         __builtin_vec_st ().
1764 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
1766         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
1767         variants.
1768         (smin): Likewise.
1769         (fmax): New entry.
1770         (fmin): Likewise.
1771         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
1772         __builtin_aarch64_fmaxv2sf.
1773         (vmaxnmq_f32): Likewise.
1774         (vmaxnmq_f64): Likewise.
1775         (vminnm_f32): Likewise.
1776         (vminnmq_f32): Likewise.
1777         (vminnmq_f64): Likewise.
1779 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1781         PR target/71806
1782         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
1783         enable -mfloat128-hardware by default.
1784         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
1785         that IEEE 128-bit hardware support needs.
1786         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
1787         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
1788         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
1789         floating point requires.
1790         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
1791         -mfloat128 and -mfloat128-hardware changes.
1793 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
1795         PR tree-optimization/71667
1796         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
1798 2016-07-08  Martin Liska  <mliska@suse.cz>
1800         PR middle-end/71606
1801         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
1802         folding produces SAVE_EXPRs, thus return false for the type.
1804 2016-07-07  Martin Liska  <mliska@suse.cz>
1806         * file-find.c (remove_prefix): New function.
1807         * file-find.h (remove_prefix): Declare the function.
1808         * gcc-ar.c (main): Skip a folder of the wrapper if
1809         a wrapped binary would point to the same file.
1811 2016-07-07  Jan Hubicka  <jh@suse.cz>
1813         * tree-scalar-evolution.c (iv_can_overflow_p): export.
1814         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
1815         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
1817 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
1819         PR ipa/71624
1820         * ipa-inline-analysis.c (compute_inline_parameters): Set
1821         local.can_change_signature to false for intrumentation
1822         thunk callees.
1824 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1826         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
1827         with TARGET_HAVE_MOVT.
1828         (TARGET_HAVE_MOVT): Define.
1829         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
1830         availability with TARGET_HAVE_MOVT.
1831         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
1832         availability.
1833         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
1834         TARGET_THUMB2.
1835         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
1836         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
1837         * config/arm/constraints.md (define_constraint "j"): Use
1838         TARGET_HAVE_MOVT to check MOVT availability.
1840 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1842         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
1844 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1846         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
1847         (armv8-m.main): Likewise.
1848         (armv8-m.main+dsp): Likewise.
1849         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
1850         (FL_FOR_ARCH8M_MAIN): Likewise.
1851         * config/arm/arm-tables.opt: Regenerate.
1852         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
1853         armv8-m.main+dsp to BE8_LINK_SPEC.
1854         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
1855         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
1856         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
1857         Baseline and Mainline.
1858         (arm_option_override_internal): Also disable arm_restrict_it when
1859         !arm_arch_notm.  Update comment for -munaligned-access to also cover
1860         ARMv8-M Baseline.
1861         (arm_file_start): Increase buffer size for printing architecture name.
1862         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
1863         and armv8-m.main+dsp.
1864         (mno-unaligned-access): Clarify that this is disabled by default for
1865         ARMv8-M Baseline architectures as well.
1867 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1869         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
1870         decide whether to prevent some libgcc routines being included for some
1871         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
1872         link between this condition and the one in
1873         libgcc/config/arm/lib1func.S.
1875 2016-07-07  Richard Biener  <rguenther@suse.de>
1877         * tree-ssa-pre.c: Include alias.h.
1878         (compute_avail): If we have multiple VN_REFERENCEs with the
1879         same hashtable entry adjust that to make it a valid replacement
1880         for all of them with respect to alignment and aliasing
1881         when doing insertion.
1882         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
1883         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
1885 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
1887         PR target/70098
1888         PR target/71763
1889         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1890         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
1891         constraint.
1893 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1895         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
1896         (adjust_mems): Adjust.
1897         (adjust_insn): Likewise.
1898         (prepare_call_arguments): Likewise.
1900 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1902         * gcse.c (struct ls_expr): Make stores field a vector.
1903         (ldst_entry): Adjust.
1904         (free_ldst_entry): Likewise.
1905         (print_ldst_list): Likewise.
1906         (compute_ld_motion_mems): Likewise.
1907         (update_ld_motion_stores): Likewise.
1909 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1911         * gcse.c (struct ls_expr): Remove loads field.
1912         (ldst_entry): Adjust.
1913         (free_ldst_entry): Likewise.
1914         (print_ldst_list): Likewise.
1915         (compute_ld_motion_mems): Likewise.
1917 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1919         * store-motion.c (struct st_expr): Make antic_stores a vector.
1920         (st_expr_entry): Adjust.
1921         (free_st_expr_entry): Likewise.
1922         (print_store_motion_mems): Likewise.
1923         (find_moveable_store): Likewise.
1924         (compute_store_table): Likewise.
1925         (remove_reachable_equiv_notes): Likewise.
1926         (replace_store_insn): Likewise.
1927         (build_store_vectors): Likewise.
1929 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1931         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
1932         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
1934 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
1936         PR tree-optimization/71518
1937         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
1938         misalign also for outer loops with negative step.
1940 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
1942         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
1943         (cortex_a53_shift): Add mov_shift.
1944         (cortex_a53_shift_reg): Add new reservation for register shifts.
1945         (cortex_a53_alu): Remove bfm.
1946         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
1947         (cortex_a53_alu_extr): Add new reservation for EXTR.
1948         (bypasses): Improve bypass modelling.
1950 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1952         PR target/50739
1953         * config/avr/avr.c (avr_asm_select_section): Strip off
1954         SECTION_DECLARED from flags when calling get_section.
1956 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1958         * tree-vectorizer.h (vect_memory_access_type): Add
1959         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
1960         * tree-vect-stmts.c (compare_step_with_zero): New function.
1961         (perm_mask_for_reverse): Move further up file.
1962         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
1963         step is negative.
1964         (get_negative_load_store_type): New function.
1965         (get_load_store_type): Call it.  Add an ncopies argument.
1966         (vectorizable_mask_load_store): Update call accordingly and
1967         remove tests for negative steps.
1968         (vectorizable_store, vectorizable_load): Likewise.  Handle new
1969         memory_access_types.
1971 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1973         * tree-vectorizer.h (vect_memory_access_type): New enum.
1974         (_stmt_vec_info): Add a memory_access_type field.
1975         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
1976         (vect_model_store_cost): Take an access type instead of a boolean.
1977         (vect_model_load_cost): Likewise.
1978         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
1979         vect_model_store_cost and vect_model_load_cost.
1980         * tree-vect-stmts.c (vec_load_store_type): New enum.
1981         (vect_model_store_cost): Take an access type instead of a
1982         store_lanes_p boolean.  Simplify tests.
1983         (vect_model_load_cost): Likewise, but for load_lanes_p.
1984         (get_group_load_store_type, get_load_store_type): New functions.
1985         (vectorizable_store): Use get_load_store_type.  Record the access
1986         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
1987         (vectorizable_load): Likewise.
1988         (vectorizable_mask_load_store): Likewise.  Replace is_store
1989         variable with vls_type.
1991 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
1993         * tree-vectorizer.h (vect_grouped_load_supported): Add a
1994         single_element_p parameter.
1995         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
1996         Check the PR65518 case here rather than in vectorizable_load.
1997         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
1998         * tree-vect-stmts.c (vectorizable_load): Likewise.
2000 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2002         * tree-vectorizer.h (gather_scatter_info): New structure.
2003         (vect_check_gather_scatter): Return a bool rather than a decl.
2004         Replace return-by-pointer arguments with a single
2005         gather_scatter_info *.
2006         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
2007         (vect_analyze_data_refs): Update call accordingly.
2008         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2009         (vectorizable_mask_load_store): Likewise.  Also record the
2010         offset dt and vectype in the gather_scatter_info.
2011         (vectorizable_store): Likewise.
2012         (vectorizable_load): Likewise.
2014 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2016         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
2017         strided groups, use the cost of N scalar accesses instead
2018         of ncopies vector accesses.
2019         (vect_model_load_cost): Likewise.
2021 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2023         * tree-vect-stmts.c (vect_cost_group_size): Delete.
2024         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
2025         variable to indicate when once-per-group costs are being used.
2026         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
2028 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
2030         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
2031         peeling-for-gaps condition.
2033 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2035         * config/s390/s390.c (s390_expand_vec_init): Force initializer
2036         element to register if it doesn't match general_operand.
2038 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
2039             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2041         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
2042         prototype.
2043         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
2044         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
2045         (SIGNBIT): New mode iterator.
2046         (Fsignbit): New mode attribute.
2047         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
2048         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
2049         when direct moves are available.
2050         (signbit<mode>2_dm): New define_insn_and_split).
2051         (signbit<mode>2_dm2): New define_insn.
2053 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2055         PR rtl-optimization/71594
2056         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
2057         into subregs of appropriate mode before trying to emit a conditional
2058         move.
2060 2016-07-05  Jan Hubicka  <jh@suse.cz>
2062         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
2063         (simple_iv): Use it.
2065 2016-07-05  Jan Hubicka  <jh@suse.cz>
2067         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
2069 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
2071         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
2072         "offmemok".
2074 2016-07-05  Jan Hubicka  <jh@suse.cz>
2076         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
2077         IV can overflow.
2079 2016-07-05  Richard Biener  <rguenther@suse.de>
2081         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
2082         Handle empty else block.
2083         (is_feasible_trace): Likewise.
2084         (split_paths): Likewise.
2086 2016-07-05  Richard Biener  <rguenther@suse.de>
2088         * tree-loop-distribution.c (distribute_loop): Fix issue with
2089         the cost model loop.
2091 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
2093         * config/arm/neon-testgen.ml: Delete.
2094         * config/arm/neon.ml: Delete.
2096 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
2098         PR c++/71739
2099         * tree.c (attribute_value_equal): Use get_attribute_name instead of
2100         directly using TREE_PURPOSE.
2102 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
2104         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
2105         * config/aarch64/aarch64_neon.h: Likewise.
2106         * config/aarch64/arm_neon.h: Likewise.
2107         * config/aarch64/atomics.md: Likewise.
2108         * config/aarch64/aarch64-simd-builtins.def: Likewise.
2109         * doc/invoke.texi: Likewise.
2111 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2113         * config/s390/s390.md: Add "z13" cpu_facility.
2114         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
2115         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
2116         condition" type instructions.
2118 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2119             Jeff Law  <law@redhat.com>
2121         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
2122         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
2124 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
2126         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
2127         permutation for TARGET_AVX512F.
2128         (ix86_expand_vec_one_operand_perm_avx512): New function.
2129         (expand_vec_perm_1): Invoke introduced function.
2130         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2131         it may be not valid after vectorization.
2133 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2135         PR target/63874
2136         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
2137         typo in comment.  Only force to memory if it is a weak
2138         external reference.
2140 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
2141             Jiong Wang  <jiong.wang@arm.com>
2143         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
2144         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
2145         (AARCH64_FL_F16): New.
2146         (AARCH64_FL_FOR_ARCH8_2): New.
2147         (AARCH64_ISA_8_2): New.
2148         (AARCH64_ISA_F16): New.
2149         (TARGET_FP_F16INST): New.
2150         (TARGET_SIMD_F16INST): New.
2151         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
2152         ("fp"): Disabling "fp" also disables "fp16".
2153         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
2154         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
2155         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
2156         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
2158 2016-07-04  Jan Beulich  <jbeulich@suse.com>
2160         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
2162 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2164         PR target/71720
2165         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
2166         the insns, use an insn form that does not adjust the offset on
2167         little endian systems.
2169 2016-07-01  Jan Beulich  <jbeulich@suse.com>
2171         * varasm.c (get_variable_section): Validate initializer in
2172         named .bss-like sections.
2174 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2176         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
2177         Exchange the order of the second and third operands in the vpermr
2178         instruction tmeplate.
2180 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
2182         PR target/71698
2183         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
2184         Disallow TDmode values.
2186 2016-07-01  Alan Modra  <amodra@gmail.com>
2188         PR rtl-optimization/71709
2189         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
2190         being set, not referenced.
2192 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
2194         PR tree-optimization/70729
2195         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
2196         of loop since it can be not valid after transformation.
2198 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2200         * config/arm/arm.c (thumb_reload_in_hi): Delete.
2201         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
2203 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2205         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
2206         for NULL decl.
2208 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
2210         PR target/71677
2211         * config/rs6000/constraints.md (wY constraint): New constraint to
2212         match the requirements for the LXSD and STXSD instructions.
2213         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
2214         predicate to match the requirements for the LXSD and STXSD
2215         instructions.
2216         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
2217         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
2218         to make sure that the bottom 2 bits of offset are 0, the address
2219         form is offsettable, and no updating is done in the address mode.
2220         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
2221         (movdi_internal32): Likewise
2222         (movdi_internal64): Likewise.
2224 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2226         PR tree-optimization/71707
2227         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
2228         strinfo even for ADDR_EXPR ptr.
2230 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2232         * config/rs6000/altivec.md (darn_32): Change the condition to
2233         TARGET_P9_MISC instead of TARGET_MODULO.
2234         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
2235         condition expression.
2236         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
2237         condition expression.
2238         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
2239         (DFP_TEST): New code iterator.
2240         (dfptstsfi_<code>_mode>): New define_expand.
2241         (*dfp_sgnfcnc_<mode>): New define_insn.
2242         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
2243         definition next to BU_P9_MISC_1 definition and change the MASK
2244         value to RS6000_BTM_P9_MISC.
2245         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
2246         (BU_P9_64BIT_MISC_0): Likewise.
2247         (BU_P9_DFP_MISC_0): New macro definition.
2248         (BU_P9_DFP_MISC_1): New macro definition.
2249         (BU_P9_DFP_MISC_2): New macro definition.
2250         (BU_P9_DFP_OVERLOAD_1): New macro definition.
2251         (BU_P9_DFP_OVERLOAD_2): New macro definition.
2252         (BU_P9_DFP_OVERLOAD_3): New macro definition.
2253         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
2254         (TSTSFI_LT_TD): Likewise.
2255         (TSTSFI_EQ_DD): Likewise.
2256         (TSTSFI_EQ_TD): Likewise.
2257         (TSTSFI_GT_DD): Likewise.
2258         (TSTSFI_GT_TD): Likewise.
2259         (TSTSFI_OV_DD): Likewise.
2260         (TSTSFI_OV_TD): Likewise.
2261         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
2262         (TSTSFI_LT_DD): Likewise.
2263         (TSTSFI_LT_TD): Likewise.
2264         (TSTSFI_EQ): Likewise.
2265         (TSTSFI_EQ_DD): Likewise.
2266         (TSTSFI_EQ_TD): Likewise.
2267         (TSTSFI_GT): Likewise.
2268         (TSTSFI_GT_DD): Likewise.
2269         (TSTSFI_GT_TD): Likewise.
2270         (TSTSFI_OV): Likewise.
2271         (TSTSFI_OV_DD): Likewise.
2272         (TSTSFI_OV_TD): Likewise.
2273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2274         overloaded test significance functions.
2275         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2276         OPTION_MASK_P9_MISC into the representation of this mask.
2277         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
2278         of this mask.
2279         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
2280         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
2281         non-zero.
2282         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
2283         argument is a 6-bit unsigned literal value if the icode argument
2284         represents a DFP test significance built-in call.
2285         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
2286         flag used independently and in combination with the
2287         RS6000_BTM_64BIT flag.
2288         (rs6000_opt_masks): Add entry for power9-misc command-line option.
2289         (rs6000_builtin_mask_names): Add entry for power9-misc
2290         command-line option.
2291         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
2292         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
2293         RS6000_BTM_P9_MISC macros.
2294         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
2295         option and change the description of the -mpower9-vector option to
2296         enable only vector instructions, removing its erroneously claimed
2297         support for scalar instructions.
2298         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2299         the ISA 3.0 digital floating point test significance built-in
2300         functions.
2302 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
2304         * config/aarch64/aarch64.c (cortexa35_tunings):
2305         Enable AES fusion.  Use cortexa57_branch_cost.
2306         (cortexa53_tunings): Use cortexa57_branch_cost.
2307         (cortexa72_tunings): Use cortexa57_branch_cost.
2308         Use AUTOPREFETCHER_WEAK.
2309         (cortexa73_tunings): Use cortexa57_branch_cost.
2311 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2312             James Greenhalgh  <james.greenhalgh@arm.com>
2314         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
2315         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
2316         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
2317         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
2318         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
2319         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
2320         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
2321         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
2322         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
2323         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
2324         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
2325         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
2326         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
2327         New intrinsics.
2329 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
2330             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2332         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
2333         New define_insn.
2334         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
2336 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
2338         PR driver/71651
2339         * gcc.c (driver::build_option_suggestions): Pass "option" to
2340         add_misspelling_candidates.
2341         * opts-common.c (add_misspelling_candidates): Add "option" param;
2342         use it to avoid adding negated forms for options marked with
2343         RejectNegative.
2344         * opts.h (add_misspelling_candidates): Add "option" param.
2346 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
2348         PR middle-end/71693
2349         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
2350         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
2351         first when permuting bitwise operation with rotate.  Cast
2352         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
2354 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
2356         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
2357         for misspelled param names.
2358         * params.c: Include spellcheck.h.
2359         (find_param_fuzzy): New function.
2360         * params.h (find_param_fuzzy): New prototype.
2361         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
2362         * spellcheck.h (struct edit_distance_traits<const char *>):
2363         ...here.
2365 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
2367         * config/rs6000/predicates.md (const_0_to_7_operand): New
2368         predicate, recognize 0..7.
2369         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2370         support for doing extracts from V16QImode, V8HImode, V4SImode
2371         under ISA 3.0.
2372         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
2373         vector extract support.
2374         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
2375         for ISA 3.0 vector extract.
2376         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
2377         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
2378         extracts of a constant element number from small integer vectors
2379         on 64-bit ISA 3.0 systems.
2380         (vsx_extract_<mode>_di): Likewise.
2381         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
2382         say when we can do ISA 3.0 vector extracts.
2383         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
2384         registers, using the stxsiwx instruction.
2386 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
2388         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
2389         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
2390         qdf24xx_regmove_cost, qdf24xx_tunings): New.
2391         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
2392         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
2393         * config/arm/arm.c (arm_qdf24xx_tune): New.
2395 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
2397         * config/aarch64/aarch64.c (cortexa53_tunings):
2398         Increase loop alignment to 8.  Set function alignment to 16.
2399         (cortexa35_tunings): Likewise.
2400         (cortexa57_tunings): Increase loop alignment to 8.
2401         (cortexa72_tunings): Likewise.
2402         (cortexa73_tunings): Likewise.
2404 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
2406         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
2407         for arm_fp16_ok and arm_fp16_hw.
2408         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
2409         arm_fp16_alternative.
2411 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2413         PR tree-optimization/71655
2414         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
2415         types when swapping operands.
2417 2016-06-29  Martin Liska  <mliska@suse.cz>
2419         PR middle-end/71585
2420         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
2421         * ipa-inline-transform.c (inline_call): Remove unnecessary call
2422         of build_optimization_node.
2424 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
2426         PR tree-optimization/70729
2427         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
2428         independent in loops having positive safelen value.
2429         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
2430         it may be not valid after vectorization.
2432 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
2434         PR tree-optimization/71625
2435         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
2436         is sorted by ascending list->offset.  If PTR is non-NULL and there is
2437         previous strinfo, call get_stridx_plus_constant.
2438         (get_stridx): Pass exp as second argument to get_addr_stridx.
2439         (addr_stridxptr): Add missing list = list->next, so that there can be
2440         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
2441         the list is sorted by ascending list->offset.
2442         (get_stridx_plus_constant): Adjust so that it can be also called with
2443         ADDR_EXPR instead of SSA_NAME as PTR.
2444         (handle_char_store): Pass NULL_TREE as second argument to
2445         get_addr_stridx.
2447 2016-06-29  Richard Biener  <rguenther@suse.de>
2449         PR rtl-optimization/68961
2450         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
2452 2016-06-29  Richard Biener  <rguenther@suse.de>
2454         PR middle-end/71002
2455         * alias.c (component_uses_parent_alias_set_from): Handle
2456         type punning through union accesses by using the union alias set.
2457         * gimple.c (gimple_get_alias_set): Remove union type punning case.
2459 2016-07-29  Richard Biener  <rguenther@suse.de>
2461         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
2462         precision not matching mode precision.
2464 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
2466         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
2467         pa_output_arg_descriptor.
2468         (call_val_symref_64bit_post_reload): Likewise.
2469         (call_val_powf_64bit_post_reload): Likewise.
2470         (sibcall_internal_symref_64bit): Likewise.
2471         (sibcall_value_internal_symref_64bit): Likewise.
2473 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2475         PR middle-end/71626
2476         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
2477         a constant, force its SUBREG_REG into memory or register instead
2478         of whole op1.
2480 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
2482         PR target/58655
2483         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
2484         * doc/invoke.texi (AVR Options): Document it.
2486 2016-06-28  Walter Lee  <walt@tilera.com>
2488         * config/tilegx/linux.h: Do not include arch/icache.h
2489         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2490         * config/tilepro/linux.h: Do not include arch/icache.h
2491         (CLEAR_INSN_CACHE): Provide inlined definition directly.
2493 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
2495         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
2496         for big-endian BIT_FIELD_REF.
2498 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
2500         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
2501         ('size' attribute): Add '128'.
2502         Include power9.md.
2503         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
2504         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
2505         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
2506         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
2507         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
2508         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
2509         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
2510         *trunc<mode>df2_odd): Set size attribute to '128'.
2511         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
2512         * config/rs6000/power6.md (power6-fp): Include dfp type.
2513         * config/rs6000/power7.md (power7-fp): Likewise.
2514         * config/rs6000/power8.md (power8-fp): Likewise.
2515         * config/rs6000/power9.md: New file.
2516         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
2517         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
2518         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
2519         htmsimple.
2520         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
2521         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
2522         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
2523         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
2524         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
2525         dfp_dscri_<mode>): Change type attribute to dfp.
2526         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
2527         attribute to vecsimple.
2528         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
2529         and prefetch streams.
2530         (rs6000_option_override_internal): Remove temporary code setting
2531         tuning to power8.  Don't set rs6000_sched_groups for power9.
2532         (last_scheduled_insn): Change to rtx_insn *.
2533         (divide_cnt, vec_load_pendulum): New variables.
2534         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
2535         (rs6000_issue_rate): Set issue rate for Power9.
2536         (is_power9_pairable_vec_type): New.
2537         (power9_sched_reorder2): New.
2538         (rs6000_sched_reorder2): Call new function for Power9 specific
2539         reordering.
2540         (insn_must_be_first_in_group): Remove Power9.
2541         (insn_must_be_last_in_group): Likewise.
2542         (force_new_group): Likewise.
2543         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
2544         Initialize divide_cnt/vec_load_pendulum.
2545         (_rs6000_sched_context, rs6000_init_sched_context,
2546         rs6000_set_sched_context): Handle context save/restore of new
2547         variables.
2549 2016-06-28  Richard Biener  <rguenther@suse.de>
2551         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2552         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
2553         COMPONENT_REF operand.
2554         (nonoverlapping_component_refs_p): Likewise.
2555         * stor-layout.c (start_bitfield_representative): Mark
2556         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
2558 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
2560         * Makefile.in: Don't cat ../stage_current if it does not exist.
2562         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
2563         last argument is a bit-field.
2565         PR rtl-optimization/71673
2566         * internal-fn.c (expand_arith_overflow_result_store): Use
2567         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
2568         expand_simple_binop.
2570         PR middle-end/66867
2571         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
2572         expand_ifn_atomic_compare_exchange): New functions.
2573         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
2574         * tree.h (build_call_expr_internal_loc): Rename to ...
2575         (build_call_expr_internal_loc_array): ... this.  Fix up type of
2576         last argument.
2577         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
2578         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
2579         ATOMIC_COMPARE_EXCHANGE result.
2580         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
2581         * gimple-fold.h (optimize_atomic_compare_exchange_p,
2582         fold_builtin_atomic_compare_exchange): New prototypes.
2583         * gimple-fold.c (optimize_atomic_compare_exchange_p,
2584         fold_builtin_atomic_compare_exchange): New functions..
2585         * tree-ssa.c (execute_update_addresses_taken): If
2586         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
2587         of call when finding addressable vars, and if such var becomes
2588         non-addressable, call fold_builtin_atomic_compare_exchange.
2590 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
2592         PR target/71670
2593         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
2594         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
2596 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
2598         * config/rs6000/rs6000.md ('type' attribute): Add
2599         veclogical,veccmpfx,vecexts,vecmove insn types.
2600         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
2601         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
2602         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
2603         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
2604         *nabs<mode>2_hw): Change type to vecmove.
2605         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
2606         *boolcc<mode>3_internal, *eqv<mode>3_internal,
2607         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
2608         *ieee_128bit_vsx_abs<mode>2_internal,
2609         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
2610         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
2611         *ieee128_mtvsrd_32bit): Change type to veclogical.
2612         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
2613         *movdi_internal32, *movdi_internal64): Update insn types.
2614         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
2615         vsx_extract_<mode>): Change type to veclogical.
2616         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
2617         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
2618         *vsx_sign_extend_si_v2di): Change type to vecexts.
2619         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
2620         type to veclogical.
2621         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
2622         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
2623         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
2624         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
2625         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
2626         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
2627         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
2628         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
2629         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
2630         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
2631         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
2632         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
2633         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
2634         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
2635         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
2636         (ppc7450-vecsimple): Add veclogical, vecmove.
2637         (ppc7450-veccmp): Add veccmpfx.
2638         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
2639         vecmove.
2640         (ppc8540_vector_compare): Add veccmpfx.
2641         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
2642         * config/rs6000/cell.md (cell-fp): Add fpsimple.
2643         (cell-vecsimple): Add veclogical, vecmove.
2644         (cell-veccmp): Add veccmpfx.
2645         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
2646         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
2647         veccmpfx.
2648         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
2649         * config/rs6000/power4.md (power4-fp): Add fpsimple.
2650         (power4-vecsimple): Add veclogical, vecmove.
2651         (power4-veccmp): Add veccmpfx.
2652         * config/rs6000/power5.md (power5-fp): Add fpsimple.
2653         * config/rs6000/power6.md (power6-fp): Add fpsimple.
2654         (power6-vecsimple): Add veclogical, vecmove.
2655         (power6-veccmp): Add veccmpfx.
2656         * config/rs6000/power7.md (power7-fp): Add fpsimple.
2657         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
2658         * config/rs6000/power8.md (power8-fp): Add fpsimple.
2659         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
2660         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
2661         * config/rs6000/titan.md (titan_fp): Add fpsimple.
2662         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
2663         fpsimple.
2664         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
2666 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
2668         PR target/71656
2669         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2670         OPTION_MASK_P9_DFORM_VECTOR.
2671         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
2672         disable -mpower9-dform-vector when using reload.
2673         (quad_address_p): Remove 'gpr_p' argument and all associated code.
2674         New 'strict' argument.  Update all callers.  Add strict addressing
2675         support.
2676         (rs6000_legitimate_offset_address_p): Remove call to
2677         virtual_stack_registers_memory_p.
2678         (rs6000_legitimize_reload_address): Add quad address support.
2679         (rs6000_legitimate_address_p): Move call to quad_address_p above
2680         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
2681         to account for new strict usage.
2682         (rs6000_output_move_128bit): Adjust quad_address_p args to account
2683         for new strict usage.
2684         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
2686 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
2688         PR target/70902
2689         PR target/71453
2690         PR target/71555
2691         PR target/71596
2692         PR target/71657
2693         * config/i386/i386.c (ix86_spill_class): Disable condition to
2694         always return NO_REGS.
2696 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
2698         * predict.c: Include gimple-pretty-print.h
2699         (predicted_by_loop_heuristics_p): Check also
2700         PRED_LOOP_EXIT_WITH_RECURSION
2701         (predict_loops): Find self recursive calls and use special purpose
2702         predictors for them; dump log about decisions.
2703         (pass_profile::execute): Dump info about #of iterations.
2704         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
2705         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
2707 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
2709         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
2710         output_asm_insn calls and shorten long lines.  Output .CALL
2711         argument descriptor using pa_output_arg_descriptor.  Add various
2712         inline $$dyncall and other optimizations.
2713         (pa_attr_length_indirect_call): Adjust ordering and lengths.
2715 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
2717         PR tree-optimization/71643
2718         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
2719         EH preds.
2721         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
2722         leak a bitmap if dep_bb is NULL.
2724         PR tree-optimization/71631
2725         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
2726         to rewrite_expr_tree even if negate_result, move new_lhs var
2727         declaration and initialization earlier, for powi_result set afterwards
2728         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
2729         if new_lhs != lhs, and don't shadow gsi var.
2731 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2733         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
2734         Add in_loop parameter.
2735         (predict_loops): Add loop guard heuristics.
2736         * predict.def (PRED_LOOP_GUARD): New heuristics.
2738 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
2740         * predict.c: Include ipa-utils.h
2741         (tree_bb_level_prediction): Predict recursive calls.
2742         (tree_estimate_probability_bb): Skip inexpensive calls for call
2743         predictor.
2744         * predict.def (PRED_RECURSIVE_CALL): New.
2746 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2748         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
2749         (BU_FLOAT128_1): Likewise.
2750         (FABSQ): Likewise.
2751         (COPYSIGNQ): Likewise.
2752         (RS6000_BUILTIN_NANQ): Likewise.
2753         (RS6000_BUILTIN_NANSQ): Likewise.
2754         (RS6000_BUILTIN_INFQ): Likewise.
2755         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
2756         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
2757         (TARGET_FOLD_BUILTIN): New #define.
2758         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
2759         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
2760         (rs6000_fold_builtin): New target hook implementation, handling
2761         folding of 128-bit NaNs and infinities.
2762         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
2763         entries are filled in to avoid problems during bootstrap
2764         self-test; define builtins for 128-bit NaNs and infinities.
2765         (rs6000_opt_mask): Add entry for float128.
2766         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
2767         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
2768         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
2769         (const_str_type_node): New #define.
2770         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
2771         to a define_expand that dispatches to either copysign<mode>3_soft
2772         or copysign<mode>3_hard.
2773         (copysign<mode>3_hard): Rename from copysign<mode>3.
2774         (copysign<mode>3_soft): New define_insn.
2775         * doc/extend.texi: Document new builtins.
2777 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2779         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
2780         PRIu64 instead of lu.
2782 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
2784         PR debug/71642
2785         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
2786         copy the type name.
2788 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2790         PR tree-optimization/71647
2791         * omp-low.c (lower_rec_input_clauses): Convert
2792         omp_clause_aligned_alignment (c) to size_type_node for the
2793         last argument of __builtin_assume_aligned.
2795 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2797         * configure.ac (calling ___tls_get_addr via GOT): New
2798         assembler/linker check.
2799         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
2800         assembler and linker supports calling ___tls_get_addr via GOT.
2801         Otherise, defined to 0.
2802         * config.in: Regenerated.
2803         * configure: Likewise.
2804         * config/i386/constraints.md (Yb): New constraint.
2805         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
2806         (REG_CLASS_NAMES): Likewise.
2807         (REG_CLASS_CONTENTS): Likewise.
2808         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
2809         the b constraint with the Yb constraint.  Call ___tls_get_addr
2810         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
2811         is 1.
2812         (*tls_local_dynamic_base_32_gnu): Likewise.
2813         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
2814         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
2815         (*tls_local_dynamic_base_64_<mode>): Likewise.
2817 2016-06-24  Martin Liska  <mliska@suse.cz>
2819         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
2820         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
2821         few functions.
2822         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
2823         argument to true if the expected number of iterations is
2824         loop-based.
2826 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
2828         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
2829         assemble for 32bit target.
2830         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
2831         and $ld_ix86_gld_32_opt to link for 32bit target.
2832         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
2833         * configure: Regenerate.
2835 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2837         * config/arm/arm.c (int_log2): Delete definition and prototype.
2838         (shift_op): Use exact_log2 instead of int_log2.
2839         (vfp3_const_double_for_fract_bits): Likewise.
2841 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
2843         * internal-fn.c (expand_arith_set_overflow): New function.
2844         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
2845         Use it.
2846         (expand_arith_overflow_result_store): Likewise.  Handle precision
2847         smaller than mode precision.
2848         * tree-vrp.c (extract_range_basic): For imag part, handle
2849         properly signed 1-bit precision result.
2850         * doc/extend.texi (__builtin_add_overflow): Document that last
2851         argument can't be pointer to enumerated or boolean type.
2852         (__builtin_add_overflow_p): Document that last argument can't
2853         have enumerated or boolean type.
2855 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2856             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2858         * config/rs6000/predicates.md (splat_input_operand): Rework.
2859         Don't allow constants, since the insns that use this predicate
2860         don't support constants.  Constants are handled by other insns
2861         that are created via combine.  During and after register
2862         allocation, only allow indexed or indirect addresses, and not
2863         general addresses.  Only allow modes supported by the hardware.
2864         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
2865         comment.  Move check for using VSPLTIS<x> to a common location,
2866         instead of doing it in two different places.
2868 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
2870         * config/i386/driver-i386.c (host_detect_local_cpu): Set
2871         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
2872         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
2873         signature_CENTAUR_ebx.
2875 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2877         PR target/66232
2878         PR target/67400
2879         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
2880         (as_ix86_gas_32_opt): This.
2881         (ld_ix86_tls_ldm_opt): Renamed to ...
2882         (ld_ix86_gld_32_opt): This.
2883         (R_386_TLS_LDM reloc): Updated.
2884         (R_386_GOT32X reloc): New assembler/linker check.
2885         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
2886         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
2887         defined to 0.
2888         * config.in: Regenerated.
2889         * configure: Likewise.
2890         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
2891         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
2892         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
2893         if ix86_force_load_from_GOT_p returns true.
2894         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
2895         ix86_force_load_from_GOT_p returns true.
2896         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
2897         the external function address via the GOT slot.
2898         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
2899         HAVE_AS_IX86_GOT32X before returning false.
2900         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
2901         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
2903 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
2905         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
2907 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2909         * Makefile.in: Regenerate.
2910         * doc/install.texi: Document autoprofiledbootstrap.
2912 2016-06-23  Andi Kleen  <ak@linux.intel.com>
2914         * config/i386/gcc-auto-profile: New file.
2916 2016-06-23  Martin Liska  <mliska@suse.cz>
2918         PR middle-end/71619
2919         * predict.c (predict_loops): Revert the hunk that was removed
2920         in r237103.
2922 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
2924         * config.gcc: Add support for arm*-*-phoenix* targets.
2925         * config/arm/t-phoenix: New.
2926         * config/phoenix.h: New.
2928 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
2929             H.J. Lu  <hongjiu.lu@intel.com>
2931         PR target/67400
2932         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
2933         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
2934         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
2935         ix86_force_load_from_GOT_p returns true.
2936         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
2937         ix86_force_load_from_GOT_p returns true.
2938         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
2939         ix86_force_load_from_GOT_p returns true.
2940         (ix86_expand_move): Load the external function address via the
2941         GOT slot if ix86_force_load_from_GOT_p returns true.
2942         * config/i386/predicates.md (x86_64_immediate_operand): Return
2943         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
2944         (x86_64_zext_immediate_operand): Ditto.
2946 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
2948         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
2950 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2952         PR c/70339
2953         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
2954         * diagnostic.c (pedwarn_at_rich_loc): New function.
2955         * spellcheck.h (best_match::best_match): Add a
2956         "best_distance_so_far" optional parameter.
2957         (best_match::set_best_so_far): New method.
2958         (best_match::get_best_distance): New accessor.
2959         (best_match::get_best_candidate_length): New accessor.
2961 2016-06-22  Nick Clifton  <nickc@redhat.com>
2963         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
2964         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
2965         modes are accepted as well.
2966         (ucompare_loc_descriptor): Likewise.
2967         (minmax_loc_descriptor): Likewise.
2968         (clz_loc_descriptor): Likewise.
2969         (popcount_loc_descriptor): Likewise.
2970         (bswap_loc_descriptor): Likewise.
2971         (rotate_loc_descriptor): Likewise.
2972         (mem_loc_descriptor): Likewise.
2973         (loc_descriptor): Likewise.
2975 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
2977         * common.opt (fdiagnostics-parseable-fixits): New option.
2978         * diagnostic.c: Include "selftest.h".
2979         (print_escaped_string): New function.
2980         (print_parseable_fixits): New function.
2981         (diagnostic_report_diagnostic): Call print_parseable_fixits.
2982         (selftest::assert_print_escaped_string): New function.
2983         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
2984         (selftest::test_print_escaped_string): New function.
2985         (selftest::test_print_parseable_fixits_none): New function.
2986         (selftest::test_print_parseable_fixits_insert): New function.
2987         (selftest::test_print_parseable_fixits_remove): New function.
2988         (selftest::test_print_parseable_fixits_replace): New function.
2989         (selftest::diagnostic_c_tests): New function.
2990         * diagnostic.h (struct diagnostic_context): Add field
2991         "parseable_fixits_p".
2992         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2993         -fdiagnostics-parseable-fixits.
2994         (-fdiagnostics-parseable-fixits): New option.
2995         * opts.c (common_handle_option): Handle
2996         -fdiagnostics-parseable-fixits.
2997         * selftest-run-tests.c (selftest::run_tests): Call
2998         selftest::diagnostic_c_tests.
2999         * selftest.h (selftest::diagnostic_c_tests): New prototype.
3001 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
3003         PR tree-optimization/71488
3004         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
3005         comparison of boolean vectors.
3006         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
3007         of boolean vectors using bitwise operations.
3009 2016-06-22  Andreas Schwab  <schwab@suse.de>
3011         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
3012         Remove declaration.
3014 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3016         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
3018 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3020         * config/i386/i386.c (print_reg): Emit an error message on attempt to
3021         print FLAGS_REG.
3023 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3025         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
3026         * config/arm/arm-cores.def (cortex-a73): New entry.
3027         (cortex-a73.cortex-a35): Likewise.
3028         (cortex-a73.cortex-a53): Likewise.
3029         * config/arm/arm-tables.opt: Regenerate.
3030         * config/arm/arm-tune.md: Likewise.
3031         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
3032         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3033         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
3034         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
3035         * doc/invoke.texi (ARM Options): Document cortex-a73,
3036         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
3038 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3040         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
3041         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
3042         (cortex-a73.cortex-a35): Likewise.
3043         (cortex-a73.cortex-a53): Likewise.
3044         * config/aarch64/aarch64-tune.md: Regenerate.
3045         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
3046         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
3047         -mcpu and -mtune.
3049 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3051         * configure.ac (gcc_cv_as_compress_debug): Remove
3052         --compress-debug-sections as extra as switch.
3053         Handle gas --compress-debug-sections=type.
3054         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
3055         Handle gld --compress-debug-sections=type.
3056         * configure: Regenerate.
3058 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
3060         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
3062 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
3064         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
3065         (do_rewrite): likewise.
3067 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3069         * common/config/mep/mep-common.c: Remove.
3070         * config.gcc: Remove mep-* support.
3071         * config/mep/constraints.md: Remove.
3072         * config/mep/default.h: Remove.
3073         * config/mep/intrinsics.h: Remove.
3074         * config/mep/intrinsics.md: Remove.
3075         * config/mep/ivc2-template.h: Remove.
3076         * config/mep/mep-c5.cpu: Remove.
3077         * config/mep/mep-core.cpu: Remove.
3078         * config/mep/mep-default.cpu: Remove.
3079         * config/mep/mep-ext-cop.cpu: Remove.
3080         * config/mep/mep-intrin.h: Remove.
3081         * config/mep/mep-ivc2.cpu: Remove.
3082         * config/mep/mep-pragma.c: Remove.
3083         * config/mep/mep-protos.h: Remove.
3084         * config/mep/mep.c: Remove.
3085         * config/mep/mep.cpu: Remove.
3086         * config/mep/mep.h: Remove.
3087         * config/mep/mep.md: Remove.
3088         * config/mep/mep.opt: Remove.
3089         * config/mep/predicates.md: Remove.
3090         * config/mep/t-mep: Remove.
3091         * doc/install.texi: Remove mep-* documentation.
3092         * doc/md.texi: Likewise.
3094 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3096         * config.gcc: Remove support for avr-rtems.
3097         * config/avr/gen-avr-mmcu-specs.c: Likewise.
3098         * config/avr/rtems.h: Remove.
3099         * config/avr/t-rtems: Remove.
3101 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3103         * config.gcc: Remove m32r-rtems support.
3104         * config/m32r/rtems.h: Remove.
3106 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3108         * config.gcc: Remove h8300-rtems support.
3109         * config/h8300/rtems.h: Remove.
3110         * config/h8300/t-rtems: Remove.
3112 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3114         * config.gcc: Remove support for knetbsd.
3115         * configure.ac: Likewise.
3116         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
3117         * config/knetbsd-gnu.h: Remove.
3118         * configure: Regenerate.
3120 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3122         * config.gcc: Remove support for openbsd 2 and 3.
3123         * config/openbsd-oldgas.h: Remove.
3125 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3127         * config.gcc: Remove interix support.
3128         * config/i386/i386-interix.h: Remove.
3129         * config/i386/interix.opt: Remove.
3130         * config/i386/t-interix: Remove.
3131         * configure: Regenerate.
3132         * configure.ac: Remove interix support.
3133         * doc/install.texi: Remove interix documentation.
3135 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3137         * config/rs6000/rs6000.h: Add conditional preprocessing directives
3138         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
3139         not defined.
3141 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3143         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
3144         they are both PLACEHOLDER_EXPRs.
3146 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3148         * stor-layout.c (layout_type): Move setting complex MODE to
3149         layout_type, instead of setting it ahead of time by the caller.
3150         * tree.c (build_complex_type): Likewise.
3152 2016-06-21  Martin Liska  <mliska@suse.cz>
3154         * predict.c (force_edge_cold): Replace imposisble with
3155         impossible.
3157 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3159         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
3160         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
3162 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
3164         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
3166 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3167             Ilya Enkovich  <ilya.enkovich@intel.com>
3169         PR target/71549
3170         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
3171         New member function to convert V1TImode register to SUBREG
3172         TImode in debug insn.
3173         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
3174         after changing register mode to V1TImode.
3176 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
3178         * config/aarch64/aarch64-cores.def (vulcan): New core.
3179         * config/aarch64/aarch64-tune.md: Regenerate.
3180         * doc/invoke.texi: Document vulcan as an available option.
3182 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3184         * cse.c (canon_asm_operands): New function extracted from...
3185         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
3186         either standalone or member of a PARALLEL.
3188 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3190         PR target/30417
3191         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
3192         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
3193         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
3195 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
3197         PR target/71103
3198         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
3199         constant addresses if can_create_pseudo_p.
3201 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
3203         PR tree-optimization/71588
3204         * tree-ssa-strlen.c (valid_builtin_call): New function.
3205         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
3206         it.
3208 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3210         PR middle-end/71581
3211         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
3212         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
3213         for conversion of scalar user var to complex type and use the
3214         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
3215         punt.
3217         PR rtl-optimization/71591
3218         * toplev.c (toplev::run_self_tests): If no_backend, complain and
3219         don't run any tests.
3221 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
3223         PR target/71571
3224         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
3225         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
3226         space for PIC with non-v32 and the common non-PIC "jump".
3228 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
3230         PR target/71559
3231         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
3232         returned values and add UN*/LTGT/*ORDERED cases with values matching
3233         D operand modifier on vcmp for AVX.
3235 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3237         * config/aarch64/aarch64.opt
3238         (mpc-relative-literal-loads): Rename internal option name.
3239         * config/aarch64/aarch64.c
3240         (aarch64_nopcrelative_literal_loads): Rename to
3241         aarch64_pcrelative_literal_loads.
3242         (aarch64_expand_mov_immediate): Likewise.
3243         (aarch64_secondary_reload): Likewise.
3244         (aarch64_can_use_per_function_literal_pools_p): Likewise.
3245         (aarch64_override_options_after_change_1): Rename and simplify logic.
3246         (aarch64_classify_symbol): Merge large model checks into switch,
3247         remove pc-relative load check.
3249 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3251         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
3252         costs relative to the cost of a register move.
3254 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3256         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
3257         (vcvt_n_f64_u64): Likewise.
3258         (vcvt_n_s64_f64): Likewise.
3259         (vcvt_n_u64_f64): Likewise.
3260         (vcvt_f64_s64): Likewise.
3261         (vrecpe_f64): Likewise.
3262         (vcvt_f64_u64): Likewise.
3263         (vrecps_f64): Likewise.
3265 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3267         * config/aarch64/aarch64.md
3268         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
3269         iterators.
3270         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
3271         attributes.
3272         * config/aarch64/aarch64-builtins.c
3273         (aarch64_types_binop_uss_qualifiers): Delete.
3274         (TYPES_BINOP_USS): Likewise.
3275         (aarch64_types_binop_sus_qualifiers): Likewise.
3276         (TYPES_BINOP_SUS): Likewise.
3277         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
3278         (TYPES_FCVTIMM_SUS): Likewise.
3279         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
3280         rather than BINOP.
3281         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
3282         (fcvtzs): Use SHIFTIMM rather than BINOP.
3283         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
3285 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
3287         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
3288         costs relative to the cost of a register move.
3290 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3292         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
3293         Allow scalar/single vector modes to be tieable.
3295 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
3297         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
3299 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3301         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
3302         "alignement".
3303         * tree.h (TYPE_ALIGN): Likewise.
3305 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3307         PR target/71103
3308         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
3310 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
3312         * config/avr/avr.c (avr_print_operand): Fix "format not a string
3313         literal" build warnings.
3314         (avr_print_operand_address): Dito.
3316 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
3318         PR target/71375
3319         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
3320         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
3322 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
3324         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
3326 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3328         PR bootstrap/71435
3329         * reload1.c (reload): Pass 0 to finish_spills when called because
3330         update_eliminables_and_spill returns true and remove did_spill.
3331         (finish_spills): Adjust comment and document GLOBAL parameter.
3333 2016-06-17  DJ Delorie  <dj@redhat.com>
3335         PR target/71338
3336         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3337         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3338         (umulqihi3_virt): Likewise.
3339         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3340         (umulqihi3_real): Likewise.
3342 2016-06-17  Martin Liska  <mliska@suse.cz>
3344         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
3346 2016-06-17  Martin Liska  <mliska@suse.cz>
3348         * predict.def: PRED_LOOP_EXIT from 92 to 85.
3350 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
3352         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
3353         __FAST_MATH__.
3354         (vaddq_f32): Likewise.
3355         (vmul_f32): Likewise.
3356         (vmulq_f32): Likewise.
3357         (vsub_f32): Likewise.
3358         (vsubq_f32): Likewise.
3360 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3362         PR tree-optimization/71347
3363         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
3364         cost for all uses in group.
3366 2016-06-17 Bin Cheng  <bin.cheng@arm.com>
3368         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
3369         insert gimple seq if it's not empty.
3371 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
3373         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
3374         member OFFSET.
3375         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
3376         rather than OFFSET.
3377         (comp_dr_with_seg_len_pair): Ditto.
3378         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
3379         struct dr_with_seg_len_pair against DR_OFFSET.
3380         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
3381         DR_OFFSET directly.
3383 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3385         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
3387 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
3389         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
3390         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
3391         (pa_output_millicode_call): Likewise.
3392         (pa_output_call): Likewise.
3393         (pa_output_indirect_call): Likewise.
3394         (pa_asm_output_mi_thunk): Likewise.
3396 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3398         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
3400 2016-06-16  Martin Liska  <mliska@suse.cz>
3402         * predict.c (combine_predictions_for_insn): When we find a first
3403         match predictor, we should consider just predictors with
3404         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
3405         DS theory predictor.
3406         (combine_predictions_for_bb): Likewise.
3408 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3410         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
3411         with base of reference to struct.
3413 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3415         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
3417 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3419         PR target/71151
3420         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
3421         progmem_swtable_section.
3422         (progmem_swtable_section): Remove.
3423         (avr_asm_function_rodata_section): Remove.
3424         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
3425         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
3427 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
3429         * config/i386/driver-i386.c (host_detect_local_cpu): Set
3430         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
3431         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
3432         signature_CENTAUR_ebx.
3433         * config/i386/i386.c (ix86_option_override_internal): Add
3434         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
3435         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
3436         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
3438 2016-06-16  Martin Liska  <mliska@suse.cz>
3440         * predict.def: Add fortran loop preheader predictor.
3441         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
3442         fold IFN_BUILTIN_EXPECT with a known constant argument.
3444 2016-06-16  Martin Liska  <mliska@suse.cz>
3446         * predict.def: Add 'Fortran' to display text of all
3447         PRED_FORTRAN_* predictors.
3449 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
3451         PR target/71242
3452         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
3453         [IA64_BUILTIN_NANSQ]: Ditto.
3454         (ia64_fold_builtin): New function.
3455         (TARGET_FOLD_BUILTIN): New define.
3456         (ia64_init_builtins) Declare const_string_type node.
3457         Add __builtin_nanq and __builtin_nansq builtin functions.
3458         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
3460 2016-06-16  Nick Clifton  <nickc@redhat.com>
3462         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
3463         MSP430_HWMULT_ prefix to enum values.
3464         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
3465         * config/msp430/msp430.c: Update use of enum values.
3466         * config/msp430/msp430.md: Likewise.
3467         * config/msp430/msp430.opt: Likewise.
3469 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
3471         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
3472         of comparsions in the last iteration.
3474 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3475             Joern Rennecke  <joern.rennecke@embecosm.com>
3477         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
3478         addresses.
3479         (arc_needs_pcl_p): Add GOTOFFPC.
3480         (arc_legitimate_pic_addr_p): Likewise.
3481         (arc_output_pic_addr_const): Likewise.
3482         (arc_legitimize_pic_address): Generate a pc-relative address using
3483         GOTOFFPC.
3484         (arc_output_libcall): Use @pcl syntax.
3485         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
3486         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
3487         (*movsi_insn): Use @pcl syntax.
3488         (doloop_begin_i): Likewise.
3490 2016-06-16  Martin Liska  <mliska@suse.cz>
3492         * predict.def: Define a new predictor.
3494 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
3496         * config/arc/arc.opt (mtp-regno): Update text.
3498 2016-06-16  Renlin Li  <renlin.li@arm.com>
3500         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
3502 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3504         PR target/71554
3505         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
3506         (setcc + and peephole2): Likewise.
3508         PR rtl-optimization/71532
3509         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
3510         memory slots.
3512 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
3514         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
3515         DImode constants with XXSPLTIB in vector registers.
3516         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
3517         vsx_extract_<mode>_internal{1,2} into a single insn that handles
3518         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
3519         extraction of the element at the top of the register as a scalar
3520         value.
3521         (vsx_extract_<mode>_internal1): Likewise.
3522         (vsx_extract_<mode>_internal2): Likewise.
3523         * config/rs6000/constraints.md (wi constraint): Remove a comment
3524         about DImode not being allowed in Altivec registers.
3525         (wB constraint): New constraint for constants that can be
3526         generated in Altivec registers with VSPLTISW/VUPKHSW.
3527         * config/rs6000/predicates.md (xxspltib_constant_split): Update
3528         comments.
3529         (xxspltib_constant_nosplit): Likewise.
3530         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
3531         support for -mupper-regs-di to enable DImode to go into Altivec
3532         registers.
3533         (POWERPC_MASKS): Likewise.
3534         (power7 cpu): Likewise.
3535         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
3536         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
3537         for DImode being allowed in Altivec registers.  Update wi/wj
3538         constraints.  Set scalar_in_vmx_p flag.
3539         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
3540         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
3541         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
3542         (rs6000_opt_masks): Add -mupper-regs-di.
3543         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
3544         direct move to use wi and not wj.
3545         (lfiwzx): Likewise.
3546         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
3547         alternative.
3548         (floatunssi<mode>2_lfiwzx_mem): Likewise.
3549         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
3550         any VSX register, instead of just Altivec registers, to allow
3551         either operand to be an Altivec register or both.
3552         (fixuns_trunc<mode>di2_fctiduz): Likewise.
3553         (movdi_internal32): Add support for -mupper-regs-di.  Add support
3554         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
3555         the alternatives and attributes to be lined up to be easier to
3556         read.
3557         (movdi_internal64): Likewise.
3558         (64-bit DImode splitters): Change predicates to only split loading
3559         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
3560         load constants in ISA 3.0 or ISA 2.07 respectively.
3561         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3562         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
3563         mention -mcpu=power9 sets these options.
3564         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
3565         wB constraint.
3567 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3569         PR target/67353
3570         * config/avr/avr.c (avr_set_current_function): Warn misspelled
3571         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
3572         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
3573         by default to warn misspelled interrupt/ signal handler.
3574         * doc/invoke.texi (AVR Options): Document it. Update description
3575         for -nodevicelib option.
3577 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3579         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
3580         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
3581         (aarch64_<sur>shll2_n<mode>): Likewise.
3583 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
3585         PR middle-end/71529
3586         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
3587         DECL_CONTEXT for copied arguments.
3589 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3591         PR tree-optimization/71483
3592         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
3593         for slp
3595 2016-06-15  Martin Liska  <mliska@suse.cz>
3597         * predict.c (tree_predict_by_opcode): Call predict_edge_def
3598         instead of predict_edge w/o a probability.
3600 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
3602         PR tree-optimization/71439
3603         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
3604         live PHIs.
3606 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3608         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
3609         register subregs in SET_SRC.
3611 2016-06-15  Richard Biener  <rguenther@suse.de>
3613         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
3614         store restrictions.
3616 2016-06-15  Richard Biener  <rguenther@suse.de>
3618         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
3619         not consider dependences between accesses that belong to the
3620         same group.
3621         (vect_analyze_data_ref_dependences): Do not analyze read-read
3622         or self-dependences.
3624 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3626         * spellcheck-tree.c: Include spellcheck-tree.h rather than
3627         spellcheck.h.
3628         (find_closest_identifier): Reimplement in terms of
3629         best_match<tree,tree>.
3630         * spellcheck-tree.h: New file.
3631         * spellcheck.c (struct edit_distance_traits<const char *>): New
3632         struct.
3633         (find_closest_string): Reimplement in terms of
3634         best_match<const char *, const char *>.
3635         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
3636         overload to spellcheck-tree.h.
3637         (find_closest_identifier): Likewise.
3638         (struct edit_distance_traits<T>): New template.
3639         (class best_match): New class.
3641 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3643         * selftest-run-tests.c (selftest::run_tests): Call
3644         selftest::spellcheck_tree_c_tests.
3645         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
3646         * spellcheck-tree.c: Include selftest.h and stringpool.h.
3647         (selftest::test_find_closest_identifier): New function.
3648         (selftest::spellcheck_tree_c_tests): New function.
3649         * spellcheck.c (selftest::test_find_closest_string): Verify that
3650         the order of the vec does not affect the results for this case.
3651         (selftest::test_data): New array.
3652         (selftest::test_metric_conditions): New function.
3653         (selftest::spellcheck_c_tests): Add a test of case-comparison.
3654         Call selftest::test_metric_conditions.
3656 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3658         * config/rs6000/rs6000-builtin.def (commentary): Typo.
3659         (BU_P9_MISC_1): Likewise.
3660         (BU_P9_64BIT_MISC_0): Likewise.
3661         (BU_P9_MISC_0): Likewise.
3663 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
3665         * gcc-rich-location.c
3666         (gcc_rich_location::add_fixit_misspelled_id): New method.
3667         * gcc-rich-location.h
3668         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
3670 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
3672         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
3673         FreeBSD 11 and above.
3675 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
3677         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
3679 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3681         * expmed.h: Close parenthesis in "at your option" in copyright
3682         boilerplate.
3683         * lower-subreg.h: Likewise.
3685 2016-06-14  Richard Biener  <rguenther@suse.de>
3687         PR middle-end/71526
3688         * genmatch.c (expr::gen_transform): Use in_type for comparisons
3689         if available.
3691 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3693         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
3694         New function.
3695         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
3696         mask+shift version.
3697         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
3698         New prototype.
3699         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
3700         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
3702 2016-06-14  Richard Biener  <rguenther@suse.de>
3704         PR tree-optimization/71522
3705         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
3706         copying into float copying.
3708 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
3710         PR tree-optimization/71520
3711         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
3712         (replace_block_by): Move user labels from bb1 to bb2.
3714 2016-06-14  Richard Biener  <rguenther@suse.de>
3716         PR middle-end/71310
3717         PR bootstrap/71510
3718         * expr.h (get_bit_range): Declare.
3719         * expr.c (get_bit_range): Export.
3720         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
3721         word_mode again to constrain the bitfield access.
3723 2016-06-14  Richard Biener  <rguenther@suse.de>
3725         PR tree-optimization/71521
3726         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
3727         division int_const_binop against zero divisor.
3729 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3731         * config/i386/i386.md (signbittf2): New expander.
3732         * config/i386/sse.md (ptesttf2): New insn pattern.
3734 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3736         PR bootstrap/71481
3737         * input.c (selftest::test_reading_source_line): Avoid reading from
3738         __FILE__ by creating a tempfile with known content and reading
3739         from that instead.
3741 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3743         * pretty-print.c (assert_pp_format_colored): Skip the test if
3744         GCC_COLORS is set.
3745         (test_pp_format): Remove comment about GCC_COLORS.
3747 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3749         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
3750         * pretty-print.c (assert_pp_format_va): Add location param and use
3751         it with ASSERT_STREQ_AT.
3752         (assert_pp_format): Add location param and pass it to
3753         assert_pp_format_va.
3754         (assert_pp_format_colored): Likewise.
3755         (ASSERT_PP_FORMAT_1): New.
3756         (ASSERT_PP_FORMAT_2): New.
3757         (ASSERT_PP_FORMAT_3): New.
3758         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
3759         explicitly, or implicitly via the above macros.
3760         * selftest.c (selftest::pass): Use a selftest::location rather
3761         than file and line.
3762         (selftest::fail): Likewise.  Print the function name.
3763         (selftest::fail_formatted): Likewise.
3764         (selftest::assert_streq): Use a selftest::location rather than
3765         file and line.
3766         * selftest.h (selftest::location): New struct.
3767         (SELFTEST_LOCATION): New macro.
3768         (selftest::pass): Accept a const location & rather than file
3769         and line.
3770         (selftest::fail): Likewise.
3771         (selftest::fail_formatted): Likewise.
3772         (selftest::assert_streq): Likewise.
3773         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
3774         (ASSERT_FALSE): Likewise.
3775         (ASSERT_EQ): Likewise.
3776         (ASSERT_NE): Likewise.
3777         (ASSERT_STREQ): Likewise.
3778         (ASSERT_PRED1): Likewise.
3779         (ASSERT_STREQ_AT): New macro.
3781 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
3783         * selftest.c (selftest::fail_formatted): New function.
3784         (selftest::assert_streq): New function.
3785         * selftest.h (selftests::fail_formatted): New decl.
3786         (selftest::assert_streq): New decl.
3787         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
3789 2016-06-13  Jeff Law  <law@redhat.com>
3791         PR tree-optimization/71403
3792         * tree-ssa-threadbackward.c
3793         (convert_and_register_jump_thread_path): No longer accept reference
3794         to path.  Do not pop items off the path anymore.
3795         (fsm_find_control_statement_thread_paths): Do not allow threading
3796         to a deeper loop nest.  Pop the last item off the path here rather
3797         than in convert_and_register_jump_thread_path.
3799 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3800             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
3802         [AArch64] Emit division using the Newton series
3804         * config/aarch64/aarch64-protos.h
3805         (cpu_approx_modes): Add new member "division".
3806         (aarch64_emit_approx_div): Declare new function.
3807         * config/aarch64/aarch64.c
3808         (generic_approx_modes): New member "division".
3809         (exynosm1_approx_modes): Likewise.
3810         (xgene1_approx_modes): Likewise.
3811         (aarch64_emit_approx_div): Define new function.
3812         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
3813         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
3814         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
3815         * doc/invoke.texi (-mlow-precision-div): Describe new option.
3817 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3818             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3820         [AArch64] Emit square root using the Newton series
3822         * config/aarch64/aarch64-protos.h
3823         (aarch64_emit_approx_rsqrt): Replace with new function
3824         "aarch64_emit_approx_sqrt".
3825         (cpu_approx_modes): New member "sqrt".
3826         * config/aarch64/aarch64.c
3827         (generic_approx_modes): New member "sqrt".
3828         (exynosm1_approx_modes): Likewise.
3829         (xgene1_approx_modes): Likewise.
3830         (aarch64_emit_approx_rsqrt): Replace with new function
3831         "aarch64_emit_approx_sqrt".
3832         (aarch64_override_options_after_change_1): Handle new option.
3833         * config/aarch64/aarch64-simd.md
3834         (rsqrt<mode>2): Use new function instead.
3835         (sqrt<mode>2): New expansion and insn definitions.
3836         * config/aarch64/aarch64.md: Likewise.
3837         * config/aarch64/aarch64.opt
3838         (mlow-precision-sqrt): Add new option description.
3839         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
3841 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
3843         [AArch64] Add more choices for the reciprocal square root approximation
3845         Allow a target to prefer such operation depending on the operation mode.
3847         * config/aarch64/aarch64-protos.h
3848         (AARCH64_APPROX_MODE): New macro.
3849         (AARCH64_APPROX_{NONE,ALL}): Likewise.
3850         (cpu_approx_modes): New structure.
3851         (tune_params): New member "approx_modes".
3852         * config/aarch64/aarch64-tuning-flags.def
3853         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
3854         * config/aarch64/aarch64.c
3855         (generic_approx_modes): New core "cpu_approx_modes" structure.
3856         (exynosm1_approx_modes): Likewise.
3857         (xgene1_approx_modes): Likewise.
3858         (generic_tunings): New member "approx_modes".
3859         (cortexa35_tunings): Likewise.
3860         (cortexa53_tunings): Likewise.
3861         (cortexa57_tunings): Likewise.
3862         (cortexa72_tunings): Likewise.
3863         (exynosm1_tunings): Likewise.
3864         (thunderx_tunings): Likewise.
3865         (xgene1_tunings): Likewise.
3866         (use_rsqrt_p): New argument for the mode and use new member from
3867         "tune_params".
3868         (aarch64_builtin_reciprocal): Devise mode from builtin.
3869         (aarch64_optab_supported_p): New argument for the mode.
3870         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
3872 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3874         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
3875         RS6000_BTM_MODULO flag into the set of flags that are considered
3876         to be part of the common configuration.
3878 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3880         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
3881         difference unsigned.
3882         (vec_absdb): New macro for vector absolute difference unsigned
3883         byte.
3884         (vec_absdh): New macro for vector absolute difference unsigned
3885         half-word.
3886         (vec_absdw): New macro for vector absolute difference unsigned word.
3887         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
3888         (vadu<mode>3): New insn.
3889         (*p9_vadu<mode>3): New insn.
3890         * config/rs6000/rs6000-builtin.def (vadub): New built-in
3891         definition.
3892         (vaduh): New built-in definition.
3893         (vaduw): New built-in definition.
3894         (vadu): New overloaded built-in definition.
3895         (vadub): New overloaded built-in definition.
3896         (vaduh): New overloaded built-in definition.
3897         (vaduw): New overloaded built-in definition.
3898         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3899         overloaded vector absolute difference unsigned functions.
3900         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3901         the ISA 3.0 vector absolute difference unsigned built-in functions.
3903 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3905         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
3906         update shared_lookup_references only once after changing operands.
3908 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
3910         PR middle-end/71373
3911         * tree-nested.c (convert_nonlocal_omp_clauses)
3912         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
3914         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
3915         * tree.def (CASE_LABEL_EXPR): Likewise.
3917 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3919         PR bootstrap/71481
3920         * input.c (test_builtins): Fix an assertion.
3922 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3924         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
3925         (paritysi2): Ditto.
3926         (isinfxf2): Ditto.
3927         (isinf<mode>2): Ditto.
3929 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
3931         * ggc-tests.c (test_finalization): Only test need_finalization_p
3932         for GCC_VERSION >= 4003.
3934 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3936         * config/s390/vecintrin.h: Fix file description in comment.
3938 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3940         * config/s390/s390-builtin-types.def: Change builtin type naming
3941         scheme to match builtin-types.def.
3943 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
3945         * fold-const.c (optimize_minmax_comparison): Remove.
3946         (fold_comparison): Remove call to the above.
3947         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
3948         New transformations.
3950 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
3952         PR tree-optimization/71416
3953         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
3954         multiple entries
3956 2016-06-13  Martin Liska  <mliska@suse.cz>
3958         * predict.c (enum predictor_reason): Prefix enum with REASON_.
3959         (combine_predictions_for_insn): Likewise.
3960         (prune_predictions_for_bb): Likewise.
3961         (combine_predictions_for_bb): Likewise.
3963 2016-06-13  Richard Biener  <rguenther@suse.de>
3965         PR tree-optimization/71505
3966         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
3967         assert match comment.
3969 2016-06-13  Marek Polacek  <polacek@redhat.com>
3971         PR middle-end/71476
3972         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
3973         gimplify_switch_expr.
3974         (warn_switch_unreachable_r): New function.
3976 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3978         PR target/71379
3979         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
3980         one.
3982 2016-06-13  Richard Biener  <rguenther@suse.de>
3984         PR middle-end/64516
3985         * fold-const.c (fold_unary_loc): Preserve alignment when
3986         folding a VIEW_CONVERT_EXPR into a MEM_REF.
3988 2016-06-13  Martin Liska  <mliska@suse.cz>
3990         PR sanitizer/71458
3991         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
3992         w/ -fsanitize=bounds.
3994 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
3996         * config/i386/i386.c (ix86_init_builtins): Calculate
3997         FLOAT128_FTYPE_CONST_STRING function type only once.
3998         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
3999         built-in functions are available for x86-32 and x86-64 targets.
4001 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
4003         PR target/71241
4004         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
4005         New primitive type.
4006         (FLOAT128_FTYPE_CONST_STRING): New function type.
4007         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
4008         [IX86_BUILTIN_NANSQ]: Ditto.
4009         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4010         (ix86_init_builtin_types): Declare const_string_type_node.
4011         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
4012         builtin functions.
4013         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
4014         * doc/extend.texi (x86 Built-in Functions): Document
4015         __builtin_nanq and __builtin_nansq.
4017 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
4019         PR target/71061
4020         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
4021         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
4022         length for pop patterns.
4023         (arm_attr_length_push_multi): Update comments.
4024         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
4025         attribute.
4026         (*pop_multiple_with_writeback_and_return): Likewise.
4027         (*pop_multiple_with_return): Likewise.
4029 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
4031         PR middle-end/71310
4032         * fold-const.c (optimize_bit_field_compare): Don't try to use
4033         word_mode unconditionally for reading the bit field, look at
4034         DECL_BIT_FIELD_REPRESENTATIVE instead.
4036 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
4038         PR middle-end/71478
4039         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
4040         vector integer type.
4042 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
4044         PR middle-end/71494
4045         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
4046         without LABEL_DECL, set *handled_ops_p to false instead of true.
4048 2016-06-10  Martin Sebor  <msebor@redhat.com>
4050         PR c/71392
4051         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
4052         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
4053         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
4054         them.
4055         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
4056         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
4057         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
4058         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
4059         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
4060         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
4061         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
4062         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
4064 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4066         * config/arm/arm.h (pool_vector_label,
4067         return_used_this_function): Remove.
4069 2016-06-10  Jeff Law  <law@redhat.com>
4071         PR tree-optimization/71335
4072         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
4073         zero length paths here.
4074         (convert_and_register_jump_thread_path): Remove hacks related to
4075         duplicated blocks in the jump thread path.
4076         (fsm_find_control_statement_thread_paths): Avoid putting the same
4077         block on the thread path twice, but ensure the thread path is
4078         unchanged from the caller's point of view.
4080 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4082         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
4083         * predict.def (PRED_LOOP_BRANCH): Remove.
4085 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
4087         * Makefile.in (OBJS): Add ggc-tests.o.
4088         (GTFILES): Add ggc-tests.c.
4089         * ggc-tests.c: New file.
4090         * selftest-run-tests.c (selftest::run_tests): Call
4091         selftest::ggc_tests_c_tests.
4092         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
4094 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
4096         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
4098 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
4100         PR sanitizer/71480
4101         * varasm.c (place_block_symbol): Adjust alignment for asan protected
4102         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
4104 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
4106         * profile.c: Include cfgloop.h.
4107         (branch_prob): Compute estimated number of iterations.
4108         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
4109         recompute estimate number of iterations from profile.
4111 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4113         PR inline-asm/68843
4114         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
4115         must be grouped on top of stack.  Don't force early clobber
4116         on ordinary reg outputs.
4118 2016-06-10  Richard Biener  <rguenther@suse.de>
4120         * targhooks.c (default_builtin_vectorization_cost): Adjust
4121         vec_construct cost.
4123 2016-06-10  Richard Biener  <rguenther@suse.de>
4125         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
4126         to fold the RHS to a constant if possible.
4128 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
4130         PR middle-end/71373
4131         * tree-nested.c (convert_nonlocal_omp_clauses)
4132         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
4133         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4134         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
4136         * gimplify.c (gimplify_adjust_omp_clauses): Discard
4137         OMP_CLAUSE_TILE.
4138         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
4140         * omp-low.c (scan_sharing_clauses): Don't expect
4141         OMP_CLAUSE__CACHE_.
4143 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
4145         PR tree-optimization/71407
4146         PR tree-optimization/71416
4147         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
4148         BIT_FIELD_REF type.
4150 2016-06-10  Richard Biener  <rguenther@suse.de>
4152         PR middle-end/71477
4153         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
4155 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4157         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4159 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
4160             Jiong Wang  <jiong.wang@arm.com>
4162         PR rtl-optimization/70751
4163         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
4164         spilled into memory.
4166 2016-06-09  Jonathan Yong  <10walls@gmail.com>
4168         Revert:
4169         2015-09-21  Jonathan Yong  <10walls@gmail.com>
4171         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4172         sysroot/usr/lib/32api for additional win32 libraries,
4173         fixes failing Cygwin bootstrapping.
4175 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
4177         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
4178         Delete.
4180 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
4182         PR bootstrap/71471
4183         * pretty-print.c (pp_indent): Specify that %p is printed in a
4184         host-dependent manner.
4185         (test_pp_format): Remove the test for %p.
4187 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
4189         * config/mips/mips.c (mips_output_jump): Fix formatting.
4191 2016-06-09  Richard Biener  <rguenther@suse.de>
4193         PR tree-optimization/71462
4194         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
4195         removed blocks.
4197 2016-06-09  Martin Liska  <mliska@suse.cz>
4199         * predict.c (dump_prediction): Add new argument.
4200         (enum predictor_reason): New enum.
4201         (struct predictor_hash): New struct.
4202         (predictor_hash::hash): New function.
4203         (predictor_hash::equal): Likewise.
4204         (not_removed_prediction_p): New function.
4205         (prune_predictions_for_bb): Likewise.
4206         (combine_predictions_for_bb): Prune predictions.
4208 2016-06-09  Martin Liska  <mliska@suse.cz>
4210         * predict.c (filter_predictions): New function.
4211         (remove_predictions_associated_with_edge): Use the filter
4212         function.
4213         (equal_edge_p): New function.
4215 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
4217         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
4218         Correct usage of @samp vs @option, add @samp where appropriate.
4219         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
4220         Add armv6s-m and document it, as it is no official ARM name.
4222 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4224         * ifcvt.c (struct noce_if_info): Add transform_name field.
4225         (noce_try_move): Set if_info->transform_name to the function name.
4226         (noce_try_ifelse_collapse): Likewise.
4227         (noce_try_store_flag): Likewise.
4228         (noce_try_inverse_constants): Likewise.
4229         (noce_try_store_flag_constants): Likewise.
4230         (noce_try_addcc): Likewise.
4231         (noce_try_store_flag_mask): Likewise.
4232         (noce_try_cmove): Likewise.
4233         (noce_try_cmove_arith): Likewise.
4234         (noce_try_minmax): Likewise.
4235         (noce_try_abs): Likewise.
4236         (noce_try_sign_mask): Likewise.
4237         (noce_try_bitop): Likewise.
4238         (noce_convert_multiple_sets): Likewise.
4239         (noce_process_if_block): Print if_info->transform_name to
4240         dump_file if transformation succeeded.
4242 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4244         * config/arm/cortex-a57.md (cortex_a57_alu):
4245         Handle csel type.
4247 2016-06-08  Martin Sebor  <msebor@redhat.com>
4248             Jakub Jelinek  <jakub@redhat.com>
4250         PR c++/70507
4251         PR c/68120
4252         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
4253         BUILT_IN_MUL_OVERFLOW_P): New builtins.
4254         * builtins.c: Include gimple-fold.h.
4255         (fold_builtin_arith_overflow): Handle
4256         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
4257         (fold_builtin_3): Likewise.
4258         * doc/extend.texi (Integer Overflow Builtins): Document
4259         __builtin_{add,sub,mul}_overflow_p.
4261 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
4263         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
4264         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
4266 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
4268         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
4269         Rewrite, looking one level down for records and arrays.
4271 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
4273         * pretty-print.c: Include "selftest.h".
4274         (pp_format): Fix comment.
4275         (identifier_to_locale): Likewise.
4276         (selftest::test_basic_printing): New function.
4277         (selftest::assert_pp_format): New function.
4278         (selftest::test_pp_format): New function.
4279         (selftest::pretty_print_c_tests): New function.
4280         * selftest-run-tests.c (selftest::run_tests): Call
4281         selftest::pretty_print_c_tests.
4282         * selftest.h (pretty_print_c_tests): New declaration.
4284 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4286         * invoke.texi (max-loop-headers-insns): Document.
4287         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
4288         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
4289         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
4291 2016-06-08  Richard Biener  <rguenther@suse.de>
4293         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
4294         on strided SLP loads and fall back to scalar loads in case
4295         we can't chunk them.
4297 2016-06-08  Richard Biener  <rguenther@suse.de>
4299         PR tree-optimization/71452
4300         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4301         type used for the SSA rewrite has enough precision to cover
4302         the dynamic type of the location.
4304 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
4305             Richard Biener  <rguenther@suse.de>
4307         PR c++/71448
4308         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
4309         the same as DECL_P (base0) for indirect_base0.  Use equality_code
4310         in one further place.
4312 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
4314         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
4315         to one word if the field is known to overlap other words.
4316         (extract_bit_field_1): Likewise.
4317         (store_split_bit_field): Remove compensating code.
4318         (extract_split_bit_field): Likewise.
4320 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
4322         PR debug/71432
4323         PR ada/71413
4324         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
4326 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4328         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
4329         VDQF.
4330         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
4331         (arch64_addpv4sf): Delete.
4332         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
4333         "gen_aarch64_addpv4sf".
4334         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
4335         builtin.
4336         (vpadds_f32): Likewise.
4337         (vpaddq_f32): Likewise.
4338         (vpaddq_f64): Likewise.
4340 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4342         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
4343         VALLF.
4344         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
4345         to VALLF.  Rename to "fabd<mode>3".
4346         "*fabd_scalar<mode>3): Delete.
4347         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
4348         Use builtin.
4349         (vabdd_f64): Likewise.
4350         (vabd_f32): Likewise.
4351         (vabd_f64): Likewise.
4352         (vabdq_f32): Likewise.
4353         (vabdq_f64): Likewise.
4355 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4357         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
4358         VALLF.
4359         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
4360         "aarch64_rsqrts<mode>".
4361         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
4362         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
4363         builtin.
4364         (vrsqrtsd_f64): Likewise.
4365         (vrsqrts_f32): Likewise.
4366         (vrsqrts_f64): Likewise.
4367         (vrsqrtsq_f32): Likewise.
4368         (vrsqrtsq_f64): Likewise.
4370 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4372         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
4373         VALLF.
4374         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
4375         "aarch64_rsqrte<mode>".
4376         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
4377         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
4378         builtin.
4379         (vrsqrted_f64): Likewise.
4380         (vrsqrte_f32): Likewise.
4381         (vrsqrte_f64): Likewise.
4382         (vrsqrteq_f32): Likewise.
4383         (vrsqrteq_f64): Likewise.
4385 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4387         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
4388         (ucvtf): Likewise.
4389         (fcvtzs): Likewise.
4390         (fcvtzu): Likewise.
4391         * config/aarch64/aarch64-simd.md
4392         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
4393         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
4394         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
4395         Use builtin.
4396         (vcvt_n_f32_u32): Likewise.
4397         (vcvt_n_s32_f32): Likewise.
4398         (vcvt_n_u32_f32): Likewise.
4399         (vcvtq_n_f32_s32): Likewise.
4400         (vcvtq_n_f32_u32): Likewise.
4401         (vcvtq_n_f64_s64): Likewise.
4402         (vcvtq_n_f64_u64): Likewise.
4403         (vcvtq_n_s32_f32): Likewise.
4404         (vcvtq_n_s64_f64): Likewise.
4405         (vcvtq_n_u32_f32): Likewise.
4406         (vcvtq_n_u64_f64): Likewise.
4407         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
4408         (VSDQ_SDI): Likewise.
4409         (fcvt_target): Support V4DI, V4SI and V2SI.
4410         (FCVT_TARGET): Likewise.
4412 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
4414         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
4415         (TYPES_BINOP_SUS): Likewise.
4416         (aarch64_simd_builtin_data): Update include file name.
4417         (aarch64_builtins): Likewise.
4418         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
4419         for conversion between scalar float-point and fixed-point.
4420         (ucvtf): Likewise.
4421         (fcvtzs): Likewise.
4422         (fcvtzu): Likewise.
4423         * config/aarch64/aarch64.md
4424         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
4425         pattern for conversion between scalar float to fixed-pointer.
4426         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
4427         (UNSPEC_FCVTZS): New UNSPEC enumeration.
4428         (UNSPEC_FCVTZU): Likewise.
4429         (UNSPEC_SCVTF): Likewise.
4430         (UNSPEC_UCVTF): Likewise.
4431         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
4432         Use builtin.
4433         (vcvtd_n_f64_u64): Likewise.
4434         (vcvtd_n_s64_f64): Likewise.
4435         (vcvtd_n_u64_f64): Likewise.
4436         (vcvtd_n_f32_s32): Likewise.
4437         (vcvts_n_f32_u32): Likewise.
4438         (vcvtd_n_s32_f32): Likewise.
4439         (vcvts_n_u32_f32): Likewise.
4440         * config/aarch64/iterators.md (fcvt_target): Support integer to float
4441         mapping.
4442         (FCVT_TARGET): Likewise.
4443         (FCVT_FIXED2F): New iterator.
4444         (FCVT_F2FIXED): Likewise.
4445         (fcvt_fixed_insn): New define_int_attr.
4447 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4449         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
4450         some statements was removed.
4452 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
4454         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
4455         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
4456         (vect_can_advance_ivs_p): likewise.
4457         (vect_update_ivs_after_vectorizer): likewise.
4458         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
4459         (vect_analyze_scalar_cycles_1): likewise.
4460         (vect_analyze_loop_operations): likewise.
4461         (report_vect_op): likewise.
4462         (vect_is_slp_reduction): likewise.
4463         (vect_is_simple_reduction): likewise.
4464         (get_initial_def_for_induction): likewise.
4465         (vect_transform_loop): likewise.
4466         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
4467         (vect_recog_sad_pattern): likewise.
4468         (vect_recog_widen_sum_pattern): likewise.
4469         (vect_recog_widening_pattern): likewise.
4470         (vect_recog_divmod_pattern): likewise.
4471         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
4472         (vect_analyze_slp_instance): likewise.
4473         (vect_transform_slp_perm_load): likewise.
4474         (vect_schedule_slp_instance): likewise.
4476 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4478         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
4479         (return_prediction): PRED_CONST_RETURN predict return as not taken.
4480         * predict.def (PRED_CONTINUE): Change hitrate 50->67
4481         (PRED_LOOP_BRANCH): Document predictor as broken.
4482         (PRED_LOOP_EXIT): Change hitrate 91->92.
4483         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
4484         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
4485         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
4486         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
4487         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
4488         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
4489         (PRED_CALL): Chane hitrate 71->67.
4490         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
4491         (PRED_GOTO): Document as unused right now.
4492         (PRED_CONST_RETURN): Change hitrate 67->69
4493         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
4494         (PRED_NULL_RETURN): Change hitrate 91->90.
4495         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
4496         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
4497         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
4499 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
4501         * config/rs6000/altivec.h: Add __builtin_vec_mul.
4502         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
4503         special case Altivec builtin.
4504         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4505         VSX_BUILTIN_VEC_MUL (replaced with special case code).
4506         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4507         code for ALTIVEC_BUILTIN_VEC_MUL.
4508         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4509         for __builtin_vec_mul.
4511 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
4513         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
4514         -mno-htm.
4516 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
4518         * spellcheck.c (selftest::test_find_closest_string): New function.
4519         (spellcheck_c_tests): Call the above.
4521 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4523         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
4525 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
4527         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
4528         Yv=Yv,C alternatives.
4530 2016-06-07  Richard Biener  <rguenther@suse.de>
4532         PR c/61564
4533         * common.opt (ffast-math): Make Optimization.
4535 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
4536             Prachi Godbole  <prachi.godbole@imgtec.com>
4538         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
4539         `fabs' and `fneg' type attributes.
4540         (p5600_fpu_fabs): Add `fmove' to the comment.
4542 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
4544         * gimple.c: Include builtins.h
4545         (gimple_inexpensive_call_p): New function.
4546         * gimple.h (gimple_inexpensive_call_p): Declare.
4547         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
4548         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
4549         fix formatting.
4551 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
4553         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
4554         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
4555         warning_at_rich_loc, warning_n, pedwarn, permerror,
4556         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
4557         sorry, fatal_error, internal_error, internal_error_no_backtrace):
4558         Use the above.
4560 2016-06-07  Richard Biener  <rguenther@suse.de>
4562         PR tree-optimization/71428
4563         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
4564         BIT_FIELD_REF op vs. load.
4566 2016-06-07  Richard Biener  <rguenther@suse.de>
4568         PR middle-end/71423
4569         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4570         for signed ops.
4572 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4574         * config/pa/pa.md (call): Generate indirect long calls to non-local
4575         functions on TARGET_64BIT.
4576         (call_value): Likewise.
4578 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
4580         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
4581         pattern and subsequent splitters.
4582         (call_val_reg_64bit_post_reload): Likewise.
4584 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4586         PR middle-end/71408
4587         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
4588         propagate_op_to_single_use.
4590 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4592         PR middle-end/71281
4593         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
4595 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
4597         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
4598         (enum x86_dirflag_state): New enum.
4599         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
4600         (machine_function): Remove needs_cld.
4601         (ix86_current_function_needs_cld): Remove.
4602         * config/i386/i386.c (ix86_set_func_type): Set
4603         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
4604         (ix86_expand_prologue): Do not emit CLD here.
4605         (ix86_dirflag_mode_needed): New function.
4606         (ix86_dirflag_mode_entry): Ditto.
4607         (ix86_mode_needed): Handle X86_DIRFLAG entity.
4608         (ix86_mode_after): Ditto.
4609         (ix86_mode_entry): Ditto.
4610         (ix86_mode_exit): Ditto.
4611         (ix86_emit_mode_set): Ditto.
4612         * config/i386/i386.md (strmov_singleop): Set
4613         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
4614         Do not set ix86_current_function_needs_cld.
4615         (rep_mov): Ditto.
4616         (strset_singleop): Ditto.
4617         (rep_stos): Ditto.
4618         (cmpstrnqi_nz_1): Ditto.
4619         (cmpstrnqi_1): Ditto.
4620         (strlenqi_1): Ditto.
4622 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
4624         PR tree-optimization/71259
4625         * tree-vect-slp.c (vect_get_constant_vectors): For
4626         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
4627         one for constant op, and use COND_EXPR for non-constant.
4629 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
4631         * Makefile.in (OBJS): Add function-tests.o,
4632         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
4633         selftest-run-tests.o.
4634         (OBJS-libcommon): Add selftest.o.
4635         (OBJS-libcommon-target): Add selftest.o.
4636         (all.internal): Add "selftest".
4637         (all.cross): Likewise.
4638         (selftest): New phony target.
4639         (s-selftest): New target.
4640         (selftest-gdb): New phony target.
4641         (COLLECT2_OBJS): Add selftest.o.
4642         * bitmap.c: Include "selftest.h".
4643         (selftest::test_gc_alloc): New function.
4644         (selftest::test_set_range): New function.
4645         (selftest::test_clear_bit_in_middle): New function.
4646         (selftest::test_copying): New function.
4647         (selftest::test_bitmap_single_bit_set_p): New function.
4648         (selftest::bitmap_c_tests): New function.
4649         * common.opt (fself-test): New.
4650         * diagnostic-show-locus.c: Include "selftest.h".
4651         (make_range): New function.
4652         (test_range_contains_point_for_single_point): New function.
4653         (test_range_contains_point_for_single_line): New function.
4654         (test_range_contains_point_for_multiple_lines): New function.
4655         (assert_eq): New function.
4656         (test_get_line_width_without_trailing_whitespace): New function.
4657         (selftest::diagnostic_show_locus_c_tests): New function.
4658         * et-forest.c: Include "selftest.h".
4659         (selftest::test_single_node): New function.
4660         (selftest::test_simple_tree): New function.
4661         (selftest::test_disconnected_nodes): New function.
4662         (selftest::et_forest_c_tests): New function.
4663         * fold-const.c: Include "selftest.h".
4664         (selftest::assert_binop_folds_to_const): New function.
4665         (selftest::assert_binop_folds_to_nonlvalue): New function.
4666         (selftest::test_arithmetic_folding): New function.
4667         (selftest::fold_const_c_tests): New function.
4668         * function-tests.c: New file.
4669         * gimple.c: Include "selftest.h".
4670         Include "gimple-pretty-print.h".
4671         (selftest::verify_gimple_pp): New function.
4672         (selftest::test_assign_single): New function.
4673         (selftest::test_assign_binop): New function.
4674         (selftest::test_nop_stmt): New function.
4675         (selftest::test_return_stmt): New function.
4676         (selftest::test_return_without_value): New function.
4677         (selftest::gimple_c_tests): New function.
4678         * hash-map-tests.c: New file.
4679         * hash-set-tests.c: New file.
4680         * input.c: Include "selftest.h".
4681         (selftest::assert_loceq): New function.
4682         (selftest::test_accessing_ordinary_linemaps): New function.
4683         (selftest::test_unknown_location): New function.
4684         (selftest::test_builtins): New function.
4685         (selftest::test_reading_source_line): New function.
4686         (selftest::input_c_tests): New function.
4687         * rtl-tests.c: New file.
4688         * selftest-run-tests.c: New file.
4689         * selftest.c: New file.
4690         * selftest.h: New file.
4691         * spellcheck.c: Include "selftest.h".
4692         (selftest::levenshtein_distance_unit_test_oneway): New function,
4693         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
4694         (selftest::levenshtein_distance_unit_test): Likewise.
4695         (selftest::spellcheck_c_tests): Likewise.
4696         * toplev.c: Include selftest.h.
4697         (toplev::run_self_tests): New.
4698         (toplev::main): Handle -fself-test.
4699         * toplev.h (toplev::run_self_tests): New.
4700         * tree.c: Include "selftest.h".
4701         (selftest::test_integer_constants): New function.
4702         (selftest::test_identifiers): New function.
4703         (selftest::test_labels): New function.
4704         (selftest::tree_c_tests): New function.
4705         * tree-cfg.c: Include "selftest.h".
4706         (selftest::push_fndecl): New function.
4707         (selftest::test_linear_chain): New function.
4708         (selftest::test_diamond): New function.
4709         (selftest::test_fully_connected): New function.
4710         (selftest::tree_cfg_c_tests): New function.
4711         * vec.c: Include "selftest.h".
4712         (selftest::safe_push_range): New function.
4713         (selftest::test_quick_push): New function.
4714         (selftest::test_safe_push): New function.
4715         (selftest::test_truncate): New function.
4716         (selftest::test_safe_grow_cleared): New function.
4717         (selftest::test_pop): New function.
4718         (selftest::test_safe_insert): New function.
4719         (selftest::test_ordered_remove): New function.
4720         (selftest::test_unordered_remove): New function.
4721         (selftest::test_block_remove): New function.
4722         (selftest::reverse_cmp): New function.
4723         (selftest::test_qsort): New function.
4724         (selftest::vec_c_tests): New function.c.
4725         * wide-int.cc: Include selftest.h and wide-int-print.h.
4726         (selftest::from_int <wide_int>): New function.
4727         (selftest::from_int <offset_int>): New function.
4728         (selftest::from_int <widest_int>): New function.
4729         (selftest::assert_deceq): New function.
4730         (selftest::assert_hexeq): New function.
4731         (selftest::test_printing <VALUE_TYPE>): New function template.
4732         (selftest::test_ops <VALUE_TYPE>): New function template.
4733         (selftest::test_comparisons <VALUE_TYPE>): New function template.
4734         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
4735         template.
4736         (selftest::wide_int_cc_tests): New function.
4738 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4740         PR middle-end/37780
4741         * ifcvt.c (noce_try_ifelse_collapse): New function.
4742         Declare prototype.
4743         (noce_process_if_block): Call noce_try_ifelse_collapse.
4744         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
4745         (simplify_ternary_operation): Use the above to simplify
4746         conditional CLZ/CTZ expressions.
4748 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4750         PR middle-end/37780
4751         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
4752         define_insn_and_split.
4754 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4756         PR middle-end/37780
4757         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
4759 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4761         PR c/24414
4762         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
4763         Implicitly clobber memory for basic asm with non-empty assembler
4764         string.  Use targetm.md_asm_adjust also here.
4765         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
4766         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
4767         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
4768         non-empty assembler string.
4769         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
4770         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
4771         (decode_asm_operands): Handle basic asm in PARALLEL block.
4772         (extract_insn): Handle basic asm in PARALLEL block.
4773         * doc/extend.texi: Mention new behavior of basic asm.
4774         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
4775         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
4776         branch_needs_nop_p): Use asm_noperands.
4778 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
4780         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
4781         Include the M7 SPARC DFA scheduler.
4782         New attribute v3pipe.
4783         Annotate insns with v3pipe where appropriate.
4784         Define cpu_feature vis4.
4785         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
4786         Add (V8QI "8") to vbits.
4787         Add insns {add,sub}v8qi3
4788         Add insns ss{add,sub}v8qi3
4789         Add insns us{add,sub}{v8qi,v4hi}3
4790         Add insns {min,max}{v8qi,v4hi,v2si}3
4791         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
4792         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
4793         * config/sparc/niagara4.md: Add a comment explaining the
4794         discrepancy between the documented latenty numbers and the
4795         implemented ones.
4796         * config/sparc/niagara7.md: New file.
4797         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
4798         supports SPARC5 and VIS 4.0 instructions.
4799         * configure: Regenerate.
4800         * config.in: Likewise.
4801         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
4802         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
4803         TARGET_CPU_niagara7.
4804         (ASM_CPU64_DEFAULT_SPEC): Likewise.
4805         (CPP_CPU_SPEC): Handle niagara7.
4806         (ASM_CPU_SPEC): Likewise.
4807         * config/sparc/sparc-opts.h (processor_type): Add
4808         PROCESSOR_NIAGARA7.
4809         (mvis4): New option.
4810         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
4811         (AS_NIAGARA7_FLAG): Define.
4812         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
4813         (CPP_CPU64_DEFAULT_SPEC): Likewise.
4814         (CPP_CPU_SPEC): Handle niagara7.
4815         (ASM_CPU_SPEC): Likewise.
4816         * config/sparc/sparc.c (niagara7_costs): Define.
4817         (sparc_option_override): Handle niagara7 and adjust cache-related
4818         parameters with better values for niagara cpus.  Also support VIS4.
4819         (sparc32_initialize_trampoline): Likewise.
4820         (sparc_use_sched_lookahead): Likewise.
4821         (sparc_issue_rate): Likewise.
4822         (sparc_register_move_cost): Likewise.
4823         (dump_target_flag_bits): Support VIS4.
4824         (sparc_vis_init_builtins): Likewise.
4825         (sparc_builtins): Likewise.
4826         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
4827         VIS4 4.0.
4828         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
4829         UltraSparc M7.
4830         * config/sparc/sparc.opt (sparc_processor_type): New value
4831         niagara7.
4832         * config/sparc/visintrin.h (__attribute__): Prototypes for the
4833         VIS4 builtins.
4834         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
4835         -mvis4.
4836         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
4837         VIS4 builtins.
4839 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
4841         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
4843 2016-06-06  Richard Biener  <rguenther@suse.de>
4845         PR tree-optimization/71398
4846         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
4847         remove edges.
4849 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
4851         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
4852         ft32_expand_prolog, ft32_expand_epilogue):
4853         Handle pretend_args.
4854         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
4855         * config/ft32/ft32.md: Add pretend_returner.
4857 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
4859         PR target/71389
4860         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
4861         Copy op1 RTX to avoid invalid sharing.
4862         (ix86_expand_vector_move_misalign): Ditto.
4864 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
4866         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
4867         ATTRIBUTE_UNUSED.
4869 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4871         * predict.c (predicted_by_loop_heuristics_p): New function.
4872         (predict_iv_comparison): Use it.
4873         (predict_loops): Walk from innermost loops; do not predict edges
4874         leaving multiple loops multiple times; implement
4875         PRED_LOOP_ITERATIONS_MAX heuristics.
4876         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
4878 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
4880         * cfg.c (check_bb_profile): Do not report mismatched profiles when
4881         only edges out of BB are EH edges.
4883 2016-06-04  Martin Sebor  <msebor@redhat.com>
4884             Marcin Baczyński  <marbacz@gmail.com>
4886         PR c/48116
4887         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
4888         a void expression in a void function.
4890 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4892         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
4893         aux; dump reasons of decisions.
4894         (should_duplicate_loop_header_p): Likewise.
4895         (do_while_loop_p): Likewise.
4896         (ch_base::copy_headers): Dump asi num insns duplicated.
4898 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
4900         PR tree-optimization/71405
4901         * tree-ssa.c (execute_update_addresses_taken): For clobber with
4902         incompatible type, build a new clobber with the right type instead
4903         of building a VIEW_CONVERT_EXPR around it.
4905 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4907         PR tree-optimization/52171
4908         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
4909         by_pieces_ninsns instead of move_by_pieces_ninsns.
4911 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
4913         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
4914         for reg+reg addressing mode.
4916 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4918         * rs6000-c.c (c/c-tree.h): Add #include.
4919         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
4920         in C++ when found in the base position of vec_ld or vec_st.
4922 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
4924         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
4925         use of profile unless profile status is PROFILE_READ.
4926         * profile.c (compute_branch_probabilities): Set profile status
4927         only after reporting predictor hitrates.
4929 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
4931         PR target/71276
4932         PR target/71277
4933         * common.opt (ffp-int-builtin-inexact): New option.
4934         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
4935         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
4936         (ceil@var{m}2): Document dependence on this option.
4937         * ipa-inline-transform.c (inline_call): Handle
4938         flag_fp_int_builtin_inexact.
4939         * ipa-inline.c (can_inline_edge_p): Likewise.
4940         * config/i386/i386.md (rintxf2): Do not test
4941         flag_unsafe_math_optimizations.
4942         (rint<mode>2_frndint): New define_insn.
4943         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
4944         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
4945         for 387 instead of extending and truncating.
4946         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
4947         !flag_trapping_math instead of flag_unsafe_math_optimizations.
4948         Change to frndint<mode>2_<rounding>.
4949         (frndintxf2_<rounding>_i387): Likewise.  Change to
4950         frndint<mode>2_<rounding>_i387.
4951         (<rounding_insn>xf2): Likewise.
4952         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
4953         !flag_trapping_math instead of flag_unsafe_math_optimizations for
4954         x87.  Test TARGET_ROUND || !flag_trapping_math ||
4955         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
4956         SSE.  Use ROUND_NO_EXC in constant operand of
4957         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
4958         for 387 instead of extending and truncating.
4960 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4961             Julia Koval  <julia.koval@intel.com>
4963         PR target/66960
4964         PR target/67630
4965         PR target/67634
4966         PR target/67841
4967         PR target/68037
4968         PR target/68618
4969         PR target/68661
4970         PR target/69575
4971         PR target/69596
4972         PR target/69734
4973         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
4974         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
4975         all registers, except for function return registers if there are
4976         no caller-saved registers.
4977         (ix86_set_func_type): New function.
4978         (ix86_set_current_function): Call ix86_set_func_type to set
4979         no_caller_saved_registers and func_type.  Call reinit_regs if
4980         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
4981         nor x87 instructions in interrupt handler nor function with
4982         no_caller_saved_registers attribute.
4983         (ix86_function_ok_for_sibcall): Return false if there are no
4984         caller-saved registers.
4985         (type_natural_mode): Don't warn ABI change for MMX in interrupt
4986         handler.
4987         (ix86_function_arg_advance): Skip for callee in interrupt handler.
4988         (ix86_function_arg): Return special arguments in interrupt handler.
4989         (ix86_promote_function_mode): Promote pointer to word_mode only
4990         for normal functions.
4991         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
4992         interrupt handler.
4993         (ix86_epilogue_uses): New function.
4994         (ix86_hard_regno_scratch_ok): Likewise.
4995         (ix86_save_reg): Preserve all registers in interrupt handler
4996         after reload.  Preserve all registers, except for function return
4997         registers, if there are no caller-saved registers after reload.
4998         (find_drap_reg): Always use callee-saved register if there are
4999         no caller-saved registers.
5000         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
5001         for interrupt handler.
5002         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
5003         Emit cld instruction if stringops are used in interrupt handler
5004         or interrupt handler isn't a leaf function.
5005         (ix86_expand_epilogue): Generate interrupt return for interrupt
5006         handler and pop the 'ERROR_CODE' off the stack before interrupt
5007         return in exception handler.
5008         (ix86_expand_call): Disallow calling interrupt handler directly.
5009         If there are no caller-saved registers, mark all registers that
5010         are clobbered by the call which returns as clobbered.
5011         (ix86_handle_no_caller_saved_registers_attribute): New function.
5012         (ix86_handle_interrupt_attribute): Likewise.
5013         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
5014         attributes.
5015         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
5016         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
5017         accumulation in interrupt function if stack may be realigned to
5018         avoid DRAP.
5019         (EPILOGUE_USES): New.
5020         (function_type): New enum.
5021         (machine_function): Add func_type and no_caller_saved_registers.
5022         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
5023         (interrupt_return): New pattern.
5024         * doc/extend.texi: Document x86 interrupt and
5025         no_caller_saved_registers attributes.
5027 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
5029         PR tree-optimization/52171
5030         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
5031         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
5032         Look for constant strings.  Move some code to emit_block_cmp_hints
5033         and use it.
5034         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
5035         * defaults.h (COMPARE_MAX_PIECES): New macro.
5036         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
5037         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
5038         (clear_by_pieces_1): Don't declare.  Move definition before use.
5039         (can_do_by_pieces): New static function.
5040         (can_move_by_pieces): Use it.  Return bool.
5041         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
5042         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
5043         (class pieces_addr); New.
5044         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
5045         pieces_addr::adjust, pieces_addr::increment_address,
5046         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
5047         functions for it.
5048         (class op_by_pieces_d): New.
5049         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
5050         functions for it.
5051         (class move_by_pieces_d, class compare_by_pieces_d,
5052         class store_by_pieces_d): New subclasses of op_by_pieces_d.
5053         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
5054         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
5055         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
5056         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
5057         compare_by_pieces_d::finish_mode): New member functions.
5058         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
5059         functions.
5060         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
5061         (emit_block_cmp_hints): New function.
5062         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
5063         use the newly defined classes.
5064         * expr.h (by_pieces_constfn): New typedef.
5065         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
5066         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
5067         (move_by_pieces_ninsns): Don't declare.
5068         (can_move_by_pieces): Change return value to bool.
5069         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
5070         (compare_by_pieces_branch_ratio): New hook.
5071         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
5072         (by_pieces_ninsns): Declare.
5073         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
5074         COMPARE_BY_PIECES.
5075         (default_compare_by_pieces_branch_ratio): New function.
5076         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
5077         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
5078         * doc/tm.texi: Regenerate.
5079         * tree-ssa-strlen.c: Include "builtins.h".
5080         (handle_builtin_memcmp): New static function.
5081         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
5082         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
5084 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5086         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
5087         relevant stmts which are simple and invariant.
5088         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
5089         instead of simple and invariant
5091 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5093         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
5094         (vectorizable_reduction): Check for new relevant state.
5095         (vectorizable_live_operation): vectorize live stmts using
5096         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
5097         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
5098         (vect_stmt_relevant_p): Check for stmts which are only used live.
5099         (process_use): Use of a stmt does not inherit it's live value.
5100         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
5101         (vect_analyze_stmt): Check for new relevant state.
5102         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
5103         outside the loop, but not inside it.
5105 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5107         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
5108         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
5109         (vect_get_vec_def_for_operand): Split out code.
5111 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
5113         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
5115 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
5117         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
5119 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5121         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
5123 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
5125         PR middle-end/71387
5126         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5127         to noreturn e->callee->decl that has void return type and void
5128         arguments, adjust gimple_call_fntype and remove lhs even if it had
5129         previously addressable type.
5131 2016-06-02  Jeff Law  <law@redhat.com>
5133         PR tree-optimization/71328
5134         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
5135         error when checking for a jump back onto the copied path.
5137 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
5139         * config/microblaze/microblaze.c (get_branch_target): Add return
5140         NULL_RTX for the non-CALL_P case.
5141         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
5142         (insert_wic): Remove unused local "j".
5144 2016-06-02  Martin Liska  <mliska@suse.cz>
5146         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
5148 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5149             Julia Koval  <julia.koval@intel.com>
5151         * function.c (assign_parm_setup_stack): Force source into a
5152         register if needed.
5153         * target.def (function_incoming_arg): Update documentation to
5154         allow arbitrary address computation based on hard register.
5155         * doc/tm.texi: Regenerated.
5157 2016-06-02  Martin Liska  <mliska@suse.cz>
5159         * predict.c (combine_predictions_for_bb): Fix first match in
5160         cases where a first predictor contains more than one occurence
5161         in list of predictors.  Take the best value in such case.
5163 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5165         PR rtl-optimization/71295
5166         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
5167         offset would go over the size of the inner mode reject it.
5169 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
5171         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
5172         x=x,x and v=v,m instead of x=x,m.
5174         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
5175         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
5176         alternative to v=rm,C.
5178         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
5179         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
5180         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
5181         instead of vex for the last two above mentioned alternatives.
5183 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5185         PR target/70830
5186         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5188 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
5190         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
5192 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
5194         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
5195         from int to unsigned.
5197 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5199         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5200         alternatives, eliminating preferred register class.  Add support
5201         for the MTVSRDD instruction in ISA 3.0.
5202         (vsx_splat_v4si_internal): Use splat_input_operand instead of
5203         reg_or_indexed_operand.
5204         (vsx_splat_v4sf_internal): Likewise.
5206 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
5208         PR target/71186
5209         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5210         for loading up all 0's or all 1's.
5212 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5214         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
5216 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
5218         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
5219         extension.
5220         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
5221         * gcc.c (set_source_date_epoch_envvar): New function, sets
5222         the SOURCE_DATE_EPOCH environment variable to the current time.
5224 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5226         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5227         the factor for live Phi nodes.
5229 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5231         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
5232         * tree-parloops.c (parallelize_loops): likewise.
5233         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
5234         tree_unswitch_outer_loop): likewise.
5236 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
5238         PR middle-end/71371
5239         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5240         around creation of the temporary.
5242 2016-06-01  Richard Biener  <rguenther@suse.de>
5244         PR tree-optimization/71366
5245         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
5246         (unloop_loops): Move removing edges here ...
5247         (try_unroll_loop_completely): ... from here.
5248         (try_peel_loop): ... and here.
5249         (tree_unroll_loops_completely_1): Track parent loops via
5250         bitmap of header BBs.
5251         (tree_unroll_loops_completely): Adjust for that.
5253 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5255         * config/rs6000/altivec.h (vec_slv): New macro.
5256         (vec_srv): New macro.
5257         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
5258         (UNSPEC_VSRV): New value.
5259         (vslv): New insn.
5260         (vsrv): New insn.
5261         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
5262         (vsrv): New builtin definition.
5263         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
5264         define argument types for new builtin.
5265         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
5266         new builtin.
5267         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
5268         functions.
5270 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
5271             Jocelyn Mayer  <l_indien@magic.fr>
5273         PR target/67310
5274         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5275         detect processor family for signature_CENTAUR_ebx.
5276         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5277         signature_CENTAUR_ebx.
5278         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5279         <default>: Pass x86-64 for has_longmode.
5281 2016-06-01  Nathan Sidwell  <nathan@acm.org>
5283         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
5284         undefined weak.
5286 2016-06-01  Richard Biener  <rguenther@suse.de>
5288         PR tree-optimization/71261
5289         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
5290         of stmts successfully put in the bool pattern.  Remove
5291         single-use restriction.
5292         (adjust_bool_pattern_cast): Add cast at the use site via the
5293         pattern def sequence.
5294         (adjust_bool_pattern): Remove recursion, maintain a hash-map
5295         of patterned defs.  Use the pattern def seqence instead of
5296         multiple independent patterns.
5297         (sort_after_uid): New qsort compare function.
5298         (adjust_bool_stmts): New function to process stmts in the bool
5299         pattern in IL order.
5300         (vect_recog_bool_pattern): Adjust.
5301         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
5302         (ifcvt_walk_pattern_tree): Likewise.
5303         (stmt_is_root_of_bool_pattern): Likewise.
5304         (ifcvt_repair_bool_pattern): Likewise.
5305         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
5307 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
5309         * loop-unroll.c (decide_unroll_constant_iterations,
5310         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
5311         likely upper bounds.
5312         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
5314 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
5316         * tree-core.h (enum omp_clause_code): Remove
5317         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
5319 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5321         * config/arm/sync.md (arm_store_exclusive<mode>):
5322         Use 'H' output modifier on operands[2] rather than creating a new
5323         entry in out-of-bounds memory of the operands array.
5324         (arm_store_release_exclusivedi): Likewise.
5326 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5328         * config/arm/arm.c (arm_fusion_enabled_p): New function.
5329         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
5330         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
5331         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5333 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
5335         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5336         into account live statements for mask producers.
5338 2016-06-01  Richard Biener  <rguenther@suse.de>
5340         PR tree-optimization/71311
5341         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
5342         restrict to non-INTEGER_CST @0.
5344 2016-06-01  Richard Biener  <rguenther@suse.de>
5346         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
5347         (relational patterns): Use :c to avoid pattern duplications.
5349 2016-06-01  Richard Biener  <rguenther@suse.de>
5351         * genmatch.c (comparison_code_p): New predicate.
5352         (swap_tree_comparison): New function.
5353         (commutate): Add for_vec parameter to append new for entries.
5354         Support commutating relational operators by swapping it alongside
5355         operands.
5356         (lower_commutative): Adjust.
5357         (dt_simplify::gen): Do not pass artificial operators to gen
5358         functions.
5359         (decision_tree::gen): Do not add artificial operators as parameters.
5360         (parser::parse_expr): Verify operator commutativity when :c is
5361         applied.  Allow :C to override this.
5362         * match.pd: Adjust patterns to use :C instead of :c where required.
5364 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
5366         PR tree-optimization/71077
5367         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
5368         the combining step, use boolean_false_node and boolean_true_node
5369         as the designated false/true return values.
5371 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5373         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
5374         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
5375         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
5376         PRED_LOOP_EXIT.
5378 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5380         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
5381         of flags impliying the register renaming.
5382         * toplev.c (process_options): Do not imply flag_rename_registers with
5383         loop peeling.
5385 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5387         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
5388         default implementation.
5390 2016-05-31  Nathan Sidwell  <nathan@acm.org>
5392         * dwarf2out.c (cur_line_info_table): Add GTY marker.
5394 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5396         * config/sh/constraints.md (b): Remove constraint.
5397         * config/sh/predicates.md (arith_reg_operand): Remove
5398         TARGET_REGISTER_P.
5399         * config/sh/sh-modes.def (PDI): Remove.
5400         * config/sh/sh.c (sh_target_reg_class,
5401         sh_optimize_target_register_callee_saved): Remove functions.
5402         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
5403         (sh_expand_epilogue): Update comment.
5404         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
5405         sh_secondary_reload): Remove TARGET_REGS related code.
5406         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
5407         TARGET_REGISTER_P): Remove macros.
5408         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
5409         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
5410         TR1_REG, TR2_REG): Remove constants.
5411         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
5413 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5415         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
5416         define_expand patterns.
5417         (adddi3_compact): Rename to adddi3.
5418         (subdi3_compact): Rename to subdi3.
5419         (*negdi2): Rename to negdi2.
5420         (*abs<mode>2): Rename to abs<mode>2.
5422 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
5424         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
5425         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
5426         (atomic_sub_fetchsi): ... this new pattern.
5427         (mvtc): Add CC_REG clobber.
5429 2016-05-31  Marek Polacek  <polacek@redhat.com>
5431         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
5433 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5435         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
5436         aarch64_fusion_enabled_p to check for fusion capabilities.
5438 2016-05-31  Richard Biener  <rguenther@suse.de>
5440         PR tree-optimization/71352
5441         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
5442         minus one and a negate.
5444 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5446         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
5447         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5448         Delete prototype.
5449         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
5450         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
5451         Remove use of aarch64_simd_attr_length_move, set length attribute
5452         directly.
5453         (*aarch64_be_movoi): Likewise.
5454         (*aarch64_be_movci): Likewise.
5455         (*aarch64_be_movxi): Likewise.
5457 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
5459         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
5460         It no longer does that.
5461         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
5463 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
5465         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
5466         attribute __unused__.
5468 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5470         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
5471         * config/arm/arm.c (arm_arch_thumb1): Define.
5472         (arm_option_override): Initialize arm_arch_thumb1.
5473         * config/arm/arm.h (arm_arch_thumb1): Declare.
5474         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
5475         support Thumb-1 ISA.
5477 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
5479         PR target/71346
5480         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
5481         `Yv' for scalar operand.
5483 2016-05-31  Tom de Vries  <tom@codesourcery.com>
5485         PR tree-optimization/69068
5486         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5487         phis with more than two args.
5489 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
5491         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5492         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5493         target.
5495 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
5497         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5498         tune_64.
5499         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5500         support on SPARC.
5501         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5502         cpu_32, cpu_64, tune_32 and tune_64.
5503         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5505 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
5507         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
5509 2016-05-30  Andi Kleen  <ak@linux.intel.com>
5511         * auto-profile.c (read_profile): Replace asserts with errors
5512         when file does not exist.
5513         * gcov-io.c (gcov_read_words): Dito.
5515 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5517         * tree-cfg.c (print_loop): Print likely upper bounds.
5519 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5521         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
5522         * opts.c (default_options): Enable peel loops at -O3.
5523         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
5524         (try_peel_loop): Do not re-peel already peeled loops;
5525         use likely upper bounds; fix profile updating.
5526         (pass_complete_unroll::execute): Initialize peeled_loops.
5528 2016-05-30  Martin Liska  <mliska@suse.cz>
5530         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
5531         computed costs by frequency of BB they belong to.
5532         (get_scaled_computation_cost_at): New function.
5534 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
5535             Marc Glisse  <marc.glisse@inria.fr>
5537         PR tree-optimization/71289
5538         * match.pd (-1 / B < A, A > -1 / B): New transformations.
5540 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5542         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
5544 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5546         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
5547         for peeled copies; avoid underflow when updating estimates; correctly
5548         scale loop profile.
5550 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5552         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
5553         r236875. Corrected oe3 to oe2 as obvious.
5555 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5557         PR middle-end/71269
5558         PR middle-end/71252
5559         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
5560         that inserted stmt will not dominate stmts that defines its operand.
5561         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
5562         (rewrite_expr_tree_parallel): Likewise.
5564 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
5566         PR middle-end/71252
5567         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
5568         all fields including stmt_to_insert are swapped.
5570 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5572         * predict.h (force_edge_cold): Declare.
5573         * predict.c (force_edge_cold): New function.
5574         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
5575         updating.
5576         (canonicalize_loop_induction_variables): Fix formating.
5578 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5580         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5581         (visium_expand_copysign): Use gen_int_mode directly.
5582         (visium_compute_frame_size): Minor tweaks.
5584 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
5586         * tree-vect-loop.c (vect_analyze_loop_2): Use
5587         likely_max_stmt_executions_int.
5589 2016-05-30  Tom de Vries  <tom@codesourcery.com>
5591         PR tree-optimization/69067
5592         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5594 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
5596         PR target/71245
5597         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
5598         New peepholes to remove unneeded fild/fistp pairs.
5599         (define_peephole2 atomic_loaddi_fpu): Ditto.
5601 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5603         * predict.c (maybe_hot_frequency_p): Avoid division.
5605 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
5607         * doc/install.texi: Use https for shop.fsf.org.
5609 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5611         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
5612         likely_max_stmt_executions_int.
5614 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5616         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
5617         likely_max_stmt_executions_int.
5619 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5621         * profile.c (compute_branch_probabilities): Do not report hitrates
5622         here.
5623         (branch_prob): Report hitrates here.
5624         * predict.c (gimple_predict_edge): Do not assert profile status;
5625         fix formatting issues.
5627 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5629         * predict.c (edge_predicted_by_p): New function.
5630         (predict_paths_for_bb): Do not put multiple predictions of the same type
5631         on one edge.
5633 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5635         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
5636         commit.
5638 2016-05-28  Alan Modra  <amodra@gmail.com>
5640         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
5642 2016-05-28  Alan Modra  <amodra@gmail.com>
5644         PR rtl-optimization/71275
5645         * ira.c (ira): Free dominance info.
5647 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
5649         * doc/sourcebuild.texi: New address for upstream Go repository.
5651 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5653         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
5654         (TARGET_ARM_V7M): Likewise.
5656 2016-05-26  Jeff Law  <law@redhat.com>
5658         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
5659         (thread_across_edge): Remove calls to find_jump_threads_backwards.
5660         * passes.def: Add jump threading passes before DOM/VRP.
5661         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
5662         argument to a basic block from an edge.  Remove tests which are
5663         handled elsewhere.
5664         (pass_data_thread_jumps, class pass_thread_jumps): New.
5665         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
5666         (make_pass_thread_jumps): Likewise.
5667         * tree-pass.h (make_pass_thread_jumps): Declare.
5669 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5671         * config/visium/visium-protos.h (split_double_move): Rename into...
5672         (visium_split_double_move): ...this.
5673         (visium_split_double_add): Declare.
5674         * config/visium/visium.c (split_double_move): Rename into...
5675         (visium_split_double_move): ...this.
5676         (visium_split_double_add): New function.
5677         (visium_expand_copysign): Renumber operands for consistency.
5678         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5679         (DFmode move splitter): Likewise.
5680         (*addi3_insn): Split by means of visium_split_double_add.
5681         (*adddi3_insn_flags): Delete.
5682         (*plus_plus_sltu<subst_arith>): New insn.
5683         (*subdi3_insn): Split by means of visium_split_double_add.
5684         (subdi3_insn_flags): Delete.
5685         (*minus_minus_sltu<subst_arith>): New insn.
5686         (*negdi2_insn): Split by means of visium_split_double_add.
5687         (*negdi2_insn_flags): Delete.
5689 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
5691         * configure.ac: Treat a --with-headers option without argument
5692         the same as the default (i.e. consult sys-include directory).
5693         * configure: Regenerate.
5695 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5697         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
5698         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
5699         prototype.
5700         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
5701         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
5703 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
5705         PR target/63596
5706         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
5707         tree-stdarg analysis results.
5708         (aarch64_setup_incoming_varargs): Likewise.
5710 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
5712         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
5713         va_list_gpr_counter_field and va_list_fpr_counter_field.
5715 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
5717         PR67609
5718         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
5719         * config/aarch64/aarch64.c
5720         (aarch64_cannot_change_mode_class): Remove function.
5721         * config/aarch64/aarch64-protos.h
5722         (aarch64_cannot_change_mode_class): Remove.
5724 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
5726         * cfgloop.c (record_niter_bound): Record likely upper bounds.
5727         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
5728         get_likely_max_loop_iterations_int): New.
5729         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
5730         any_likely_upper_bound.
5731         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
5732         Declare.
5733         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
5734         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
5735         upper bound.
5736         (unroll_loop_constant_iterations): Likewise.
5737         (unroll_loop_runtime_iterations): Likewise.
5738         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
5739         * lto-streamer-out.c (output_cfg): Likewise.
5740         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
5741         bounds.
5742         (canonicalize_loop_induction_variables): Dump likely upper bounds.
5743         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
5744         (likely_max_loop_iterations): New.
5745         (likely_max_loop_iterations_int): New.
5746         (likely_max_stmt_executions): New.
5747         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
5748         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
5749         likely_max_stmt_executions): Declare.
5751 2016-05-27  Marek Polacek  <polacek@redhat.com>
5753         PR middle-end/71308
5754         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
5756 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5758         * config/s390/s390.md (2x risbg splitters): Use
5759         reg_overlap_mentioned_p instead of rtx_equal_p.
5761 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5763         * combine.c (make_compound_operation): Take known zero bits into
5764         account when checking for possible zero_extend.
5766 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5768         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
5769         Use const_int_operand for operand 2 predicate.  Simplify expand code
5770         as a result.
5772 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5774         PR middle-end/71279
5775         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5776         into comparison.
5778 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5780         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
5781         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
5782         that returns CC_SESWPmode and CC_ZESWPmode.
5783         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
5784         and CC_SESWPmode.
5785         (aarch64_rtx_costs): Likewise.
5787 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5789         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5790         for ISA 3.0 min/max support.
5791         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5792         conditional move support.
5793         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5794         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5795         available.
5796         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5797         conditional moves where the comparison type is different from move
5798         type.
5799         (fp_minmax): New code iterator for smin/smax.
5800         (minmax): New code attributes for min/max.
5801         (SMINMAX): Likewise.
5802         (smax<mode>3): Combine min, max insns into one insn using the
5803         fp_minmax code iterator.  Add support for ISA 3.0 min/max
5804         instructions that don't need -ffast-math.
5805         (s<minmax><mode>3): Likewise.
5806         (smax<mode>3_vsx): Likewise.
5807         (smin<mode>3): Likewise.
5808         (s<minmax><mode>3_vsx): Likewise.
5809         (smin<mode>3_vsx): Likewise.
5810         (pre-VSX min/max splitters): Likewise.
5811         (s<minmax><mode>3_fpr): Likewise.
5812         (movsfcc): Rewrite floating point conditional moves to combine
5813         SFmode/DFmode into a single insn.
5814         (mov<mode>cc): Likewise.
5815         (movdfcc): Likewise.
5816         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5817         SFDF2 iterators to handle all combinations.
5818         (fseldfsf4): Likewise.
5819         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5820         (fseldfdf4): Likewise.
5821         (fselsfdf4): Likewise.
5822         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5823         comparison instructions that set a 0/-1 mask, and use it for
5824         floating point conditional move via XXSEL.
5825         (fpmask<mode>): Likewise.
5826         (xxsel<mode>): Likewise.
5827         * config/rs6000/predicates.md (min_max_operator): Delete, no
5828         longer used.
5829         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5830         instructions that generate a 0/-1 mask for use with XXSEL.
5831         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5832         say whether floating point min/max is available, either through
5833         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5834         (TARGET_MINMAX_DF): Likewise.
5836 2016-05-27  Alan Modra  <amodra@gmail.com>
5838         PR rtl-optimization/71275
5839         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
5840         for update_equiv_regs and combine_and_move_insns.
5842 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
5844         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
5845         if_then_else or cond RTXes to calculate attribute value.
5846         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
5847         <attr "length_immediate>: Ditto.
5848         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
5849         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
5850         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
5851         <attr "type">: Ditto.
5852         <attr "prefix_data16">: Ditto.
5853         <attr "prefix_extra">: Ditto.
5854         <attr "length_immediate">: Ditto.
5855         <attr "prefix">: Ditto.
5856         (vec_set<mode>_0) <attr "isa">: Ditto.
5857         <attr "prefix_extra">: Ditto.
5858         <attr "length_immediate">: Ditto.
5859         <attr "prefix">: Ditto.
5860         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
5861         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
5862         (sse2_storelpd) <attr "prefix_data16">: Ditto.
5863         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
5864         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
5865         <attr "length_immediate">: Ditto.
5866         <attr "prefix">: Ditto.
5867         (sse2_movsd) <attr "length_immediate">: Ditto.
5868         <attr "prefix">: Ditto.
5869         (vec_concatv2df)  <attr "isa">: Ditto.
5870         <attr "prefix">: Ditto.
5871         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
5872         (*vec_extractv2di_1) <attr "isa">: Ditto.
5873         <attr "type">: Ditto.
5874         <attr "length_immediate">: Ditto.
5875         <attr "prefix_rex">: Ditto.
5876         <attr "prefix_extra">: Ditto.
5877         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
5878         <attr "prefix_extra">: Ditto.
5879         <attr "length_immediate">: Ditto.
5880         (vec_concatv2di) <attr "isa">: Ditto.
5881         <attr "prefix_extra">: Ditto.
5882         <attr "length_immediate">: Ditto.
5883         <attr "prefix">: Ditto.
5885 2016-05-26  Martin Liska  <mliska@suse.cz>
5887         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
5888         function.
5889         (operator+): Likewise.
5890         (operator-): Likewise.
5891         (comp_cost::operator+=): Likewise.
5892         (comp_cost::operator-=): Likewise.
5893         (comp_cost::operator/=): Likewise.
5894         (comp_cost::operator*=): Likewise.
5895         (operator<): Likewise.
5896         (operator==): Likewise.
5897         (operator<=): Likewise.
5898         (new_cost): Remove.
5899         (infinite_cost_p): Likewise.
5900         (add_costs): Likewise.
5901         (sub_costs): Likewise.
5902         (compare_costs): Likewise.
5903         (set_group_iv_cost): Use the newly introduced functions.
5904         (get_address_cost): Likewise.
5905         (get_shiftadd_cost): Likewise.
5906         (force_expr_to_var_cost): Likewise.
5907         (split_address_cost): Likewise.
5908         (ptr_difference_cost): Likewise.
5909         (difference_cost): Likewise.
5910         (get_computation_cost_at): Likewise.
5911         (determine_group_iv_cost_generic): Likewise.
5912         (determine_group_iv_cost_address): Likewise.
5913         (determine_group_iv_cost_cond): Likewise.
5914         (autoinc_possible_for_pair): Likewise.
5915         (determine_group_iv_costs): Likewise.
5916         (cheaper_cost_pair): Likewise.
5917         (iv_ca_recount_cost): Likewise.
5918         (iv_ca_set_no_cp): Likewise.
5919         (iv_ca_set_cp): Likewise.
5920         (iv_ca_cost): Likewise.
5921         (iv_ca_new): Likewise.
5922         (iv_ca_dump): Likewise.
5923         (iv_ca_narrow): Likewise.
5924         (iv_ca_prune): Likewise.
5925         (iv_ca_replace): Likewise.
5926         (try_add_cand_for): Likewise.
5927         (try_improve_iv_set): Likewise.
5928         (find_optimal_iv_set): Likewise.
5930 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
5932         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
5933         that internal functions will clobber all caller-saved registers.
5935 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5937         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
5938         Return a better case_values_threshold when optimizing.
5940 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
5942         * config/aarch64/aarch64-simd.md (aarch64_combinez):
5943         Add ? to integer variant.
5944         (aarch64_combinez_be): Likewise.
5946 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5948         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
5949         instead of x constraint.
5950         (vcvtps2ph256<mask_name>): Likewise.
5952         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
5953         alternative.  Formatting fix.
5955         * config/i386/sse.md
5956         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
5957         to ...
5958         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
5959         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
5960         maybe_evex prefix instead of vex.
5961         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
5962         EXT_REX_SSE_REG_P (op0) case in the splitter.
5964 2016-05-25  Jeff Law  <law@redhat.com>
5966         PR tree-optimization/71272
5967         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
5968         Update comments.  Add test for empty path.
5970 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
5972         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
5973         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
5974         special case builtin.
5975         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5976         code for ALTIVEC_BUILTIN_VEC_CMPNE.
5977         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
5978         for __builtin_vec_cmpne.
5980 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
5982         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5983         redundant test and bail out if the type of the new operand is not
5984         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5986 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5988         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
5989         (x_ix86_target_flags_explicit): Remove.
5990         * config/i386/i386.c (ix86_function_specific_save): Do not copy
5991         x_ix86_target_flags_explicit.
5992         (ix86_function_specific_restore): Ditto.
5994 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
5995             H.J. Lu  <hongjiu.lu@intel.com>
5997         PR target/70738
5998         * common/config/i386/i386-common.c
5999         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
6000         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
6001         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
6002         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
6003         (-mgeneral-regs-only): Add new option.
6004         * config/i386/i386.c (ix86_option_override_internal): Don't enable
6005         x87 instructions if only general registers are allowed.
6006         (ix86_target_string): Add ix86_flags argument. Handle additional
6007         flags options through ix86_flags argument.  Update all callers.
6008         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
6010 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6012         PR rtl-optimization/66940
6013         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
6014         decrementing desired_val will not overflow before performing these
6015         operations.
6017 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
6019         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
6020         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
6021         * config/i386/i386.c (enum ix86_builtins): Add
6022         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
6023         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
6024         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
6025         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
6026         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
6027         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
6028         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
6029         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
6030         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
6031         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
6032         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
6033         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
6034         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
6035         __builtin_ia32_cvtps2dq512_mask.
6036         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
6037         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
6038         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
6039         * config/i386/sse.md
6040         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
6041         Rename to ...
6042         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
6043         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
6044         to ...
6045         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
6046         (avx512f_vec_pack_sfix_v8df): New define_expand.
6047         (avx512f_roundpd512): Rename to ...
6048         (avx512f_round<castmode>512): ... this.  Change iterator.
6049         (avx512f_roundps512_sfix): New define_expand.
6050         (round<mode>2_sfix): Change iterator.
6052 2016-05-25  Nick Clifton  <nickc@redhat.com>
6054         * config/msp430/msp430.c (msp430_attr): Produce an error if a
6055         static interrupt handler is detected.
6056         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
6057         default linker script.
6058         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
6059         the low part of a symbolic pointer.
6061 2016-05-25  Richard Biener  <rguenther@suse.de>
6063         PR tree-optimization/71261
6064         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
6065         interesting stmt instead of immediate uses when looking
6066         for the use operand to replace.
6068 2016-05-25  Martin Liska  <mliska@suse.cz>
6070         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
6072 2016-05-25  Richard Biener  <rguenther@suse.de>
6074         PR tree-optimization/71264
6075         * tree-vect-stmts.c (vect_init_vector): Properly deal with
6076         vector type val.
6078 2016-05-25  Martin Liska  <mliska@suse.cz>
6080         PR tree-optimization/71239
6081         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
6082         if DECL_SIZE is NULL.
6084 2016-05-25  Richard Biener  <rguenther@suse.de>
6086         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
6087         * tree-if-conv.c (pass_data_if_conversion): Use it.
6089 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6091         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
6092         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
6093         * varpool.c (varpool_node::get_availability): Likewise.
6095 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6097         * config/rs6000/altivec.md (VNEG iterator): New iterator for
6098         VNEGW/VNEGD instructions.
6099         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
6100         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
6101         support for ISA 3.0 VNEGW/VNEGD instructions.
6103 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
6105         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
6106         pointers inside OACC_DATA regions.
6107         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
6108         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
6109         (gimplify_adjust_omp_clauses): Fix typo in comment.
6111 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
6113         * config/rs6000/altivec.md (VParity): New mode iterator for vector
6114         parity built-in functions.
6115         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
6116         zeros.
6117         (p9v_parity<mode>2): Likewise.
6118         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
6119         parity.
6120         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
6121         (parity<mode>2): ISA 3.0 expander for vector parity.
6122         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
6123         power9 built-ins.
6124         (BU_P9_64BIT_MISC_0): Likewise.
6125         (BU_P9_MISC_0): Likewise.
6126         (BU_P9V_AV_1): Likewise.
6127         (BU_P9V_AV_2): Likewise.
6128         (BU_P9V_AV_3): Likewise.
6129         (BU_P9V_AV_P): Likewise.
6130         (BU_P9V_VSX_1): Likewise.
6131         (BU_P9V_OVERLOAD_1): Likewise.
6132         (BU_P9V_OVERLOAD_2): Likewise.
6133         (BU_P9V_OVERLOAD_3): Likewise.
6134         (VCTZB): Add vector count trailing zeros support.
6135         (VCTZH): Likewise.
6136         (VCTZW): Likewise.
6137         (VCTZD): Likewise.
6138         (VPRTYBD): Add vector parity support.
6139         (VPRTYBQ): Likewise.
6140         (VPRTYBW): Likewise.
6141         (VCTZ): Add overloaded vector count trailing zeros support.
6142         (VPRTYB): Add overloaded vector parity support.
6143         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6144         overloaded vector count trailing zeros and parity instructions.
6145         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
6146         vector parity support.
6147         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
6148         trailing zeros support.
6149         (vec_cntlz): Likewise.
6150         (vec_vctzb): Likewise.
6151         (vec_vctzd): Likewise.
6152         (vec_vctzh): Likewise.
6153         (vec_vctzw): Likewise.
6154         (vec_vprtyb): Add ISA 3.0 vector parity support.
6155         (vec_vprtybd): Likewise.
6156         (vec_vprtybw): Likewise.
6157         (vec_vprtybq): Likewise.
6158         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6159         the ISA 3.0 vector count trailing zeros and vector parity built-in
6160         functions.
6162 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6164         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
6165         when there is stmt_to_insert.
6167 2016-05-24  Martin Sebor  <msebor@redhat.com>
6169         PR c++/71147
6170         * tree.h (complete_or_array_type_p): New inline function.
6172 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6174         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
6175         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
6176         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
6178         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
6179         Limit 1st alternative to noavx isa, split 2nd alternative into one
6180         noavx and one avx alternative, use *x and Bm in the former and
6181         x and m in the latter.
6183         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
6184         of sse4 for the first alternative, drop %v from the template
6185         and d operand modifier.  Split second alternative into one sse4_noavx
6186         and one avx alternative, use *x instead of *v in the former and v
6187         instead of *v in the latter.
6188         (*sse4_1_extractps): Use noavx isa instead of * for the first
6189         alternative, drop %v from the template.  Split second alternative into
6190         one noavx and one avx alternative, use *x instead of *v in the
6191         former and v instead of *v in the latter.
6192         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
6193         with noavx and the last one with avx.
6194         (sse4_1_phminposuw): Guard first alternative with noavx isa,
6195         split the second one into one noavx and one avx alternative,
6196         use *x and Bm in the former and x and m in the latter one.
6197         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
6198         alternatives.
6200         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
6201         first two alternatives to noavx, use *x instead of *v in the second
6202         one, add avx alternative without *.
6203         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
6204         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
6205         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
6207 2016-05-24  Jeff Law  <law@redhat.com>
6209         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
6210         New function, extracted from...
6211         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
6212         Allow simple copies and constant initializations in the SSA chain.
6214 2016-05-24  Marek Polacek  <polacek@redhat.com>
6216         PR c/71249
6217         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
6218         scope.
6220 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
6222         PR c++/71257
6223         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6224         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6225         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
6226         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
6227         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
6229 2016-05-24  Richard Biener  <rguenther@suse.de>
6231         PR tree-optimization/71240
6232         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
6233         has integral type.
6235 2016-05-24  Richard Biener  <rguenther@suse.de>
6237         PR tree-optimization/71230
6238         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
6240 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6242         * tree-vectorizer.h (vectorizable_comparison): Delete.
6243         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
6244         PURE_SLP_STMT check.
6245         * tree-vect-stmts.c (vectorizable_call): Likewise.
6246         (vectorizable_simd_clone_call): Likewise.
6247         (vectorizable_conversion): Likewise.
6248         (vectorizable_assignment): Likewise.
6249         (vectorizable_shift): Likewise.
6250         (vectorizable_operation): Likewise.
6251         (vectorizable_load): Likewise.
6252         (vectorizable_condition): Likewise.
6253         (vectorizable_store): Likewise.  Assert that we don't have
6254         hybrid SLP.
6255         (vectorizable_comparison): Make static.  Remove redundant
6256         PURE_SLP_STMT check.
6257         (vect_transform_stmt): Assert that we always have an slp_node
6258         if PURE_SLP_STMT.
6260 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6262         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
6263         operands[2] against 1 with comparison against CONST1_RTX.
6264         (<shift>di3_neon): Likewise.
6265         * config/arm/predicates.md (const0_operand): Replace with comparison
6266         against CONST0_RTX.
6268 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6270         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
6271         operands[2] against 1 with comparison against CONST1_RTX.
6272         (ashrdi3): Likewise.
6273         (lshrdi3): Likewise.
6274         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
6275         UINTVAL.
6276         (ashrsi3): Likewise.
6277         (lshrsi3): Likewise.
6278         (rotrsi3): Likewise.
6279         (define_split above *compareqi_eq0): Likewise.
6280         (define_split above "prologue"): Likewise.
6281         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
6282         * config/arm/predicates.md (shift_operator): Likewise.
6283         (shift_nomul_operator): Likewise.
6284         (sat_shift_operator): Likewise.
6285         (thumb1_cmp_operand): Likewise.
6286         (const_neon_scalar_shift_amount_operand): Replace manual range
6287         check with IN_RANGE.
6288         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
6289         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
6291 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6293         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
6294         with HOST_WIDE_INT_1.
6295         (insv): Likewise.
6296         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
6297         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
6298         (arm_canonicalize_comparison): Likewise.
6299         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
6300         HOST_WIDE_INT_1.
6301         (thumb1_size_rtx_costs): Likewise.
6302         (vfp_const_double_index): Replace cast of 1 to unsigned
6303         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6304         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
6305         HOST_WIDE_INT_1.
6306         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
6307         HOST_WIDE_INT with HOST_WIDE_INT_1U.
6308         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
6309         HOST_WIDE_INT with HOST_WIDE_INT_1.
6311 2016-05-24  Marek Polacek  <polacek@redhat.com>
6313         * tree-cfg.h (should_remove_lhs_p): New predicate.
6314         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
6315         * gimplify.c (gimplify_modify_expr): Likewise.
6316         * tree-cfg.c (verify_gimple_call): Likewise.
6317         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
6318         * gimple-fold.c: Include "tree-cfg.h".
6319         (gimple_fold_call): Use should_remove_lhs_p.
6321 2016-05-24  Richard Biener  <rguenther@suse.de>
6323         PR tree-optimization/71253
6324         * cfganal.h (control_dependences): Make robust against edge
6325         and BB removal.
6326         (control_dependences::control_dependences): Remove edge_list argument.
6327         (control_dependences::get_edge): Remove.
6328         (control_dependences::get_edge_src): Add.
6329         (control_dependences::get_edge_dest): Likewise.
6330         (control_dependences::m_el): Make a vector of edge src/dest index.
6331         * cfganal.c (control_dependences::find_control_dependence): Adjust.
6332         (control_dependences::control_dependences): Likewise.
6333         (control_dependences::~control_dependence): Likewise.
6334         (control_dependences::get_edge): Remove.
6335         (control_dependences::get_edge_src): Add.
6336         (control_dependences::get_edge_dest): Likewise.
6337         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
6338         get_edge_src.
6339         (perform_tree_ssa_dce): Adjust.
6340         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
6341         get_edge_src.
6342         (pass_loop_distribution::execute): Adjust.  Do loop destroying
6343         conditional on changed.
6345 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6347         PR target/69857
6348         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
6349         return.  Reindent transformation comment and mention the ARM state
6350         behavior.
6352 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6354         PR middle-end/71252
6355         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
6356         after build_and_add_sum creates new use stmt.
6358 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6360         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
6361         load_lanes/grouped_load classification comes first.  Don't check
6362         whether the vectorization factor is a multiple of the group size
6363         for load_lanes.
6365 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
6367         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
6368         GROUP_GAP for single-element interleaving.
6369         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
6370         variable.
6372 2016-05-24  Richard Biener  <rguenther@suse.de>
6374         PR middle-end/70434
6375         PR c/69504
6376         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
6377         bases which are accessed with non-invariant indices.
6378         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
6379         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
6381 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6383         PR middle-end/71170
6384         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
6385         (add_to_ops_vec): Add stmt_to_insert.
6386         (add_repeat_to_ops_vec): Init stmt_to_insert.
6387         (insert_stmt_before_use): New.
6388         (transform_add_to_multiply): Remove mult_stmt insertion and add it
6389         to ops vector.
6390         (get_ops): Init stmt_to_insert.
6391         (maybe_optimize_range_tests): Likewise.
6392         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
6393         (rewrite_expr_tree_parallel): Likewise.
6394         (reassociate_bb): Likewise.
6396 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6398         PR target/71201
6399         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
6400         ISA 3.0 xxperm fusion alternative.
6401         (altivec_vperm_v8hiv16qi): Likewise.
6402         (altivec_vperm_<mode>_uns_internal): Likewise.
6403         (vperm_v8hiv4si): Likewise.
6404         (vperm_v16qiv8hi): Likewise.
6406 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6407             Kelvin Nilsen  <kelvin@gcc.gnu.org>
6409         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
6410         vpermr/xxpermr on ISA 3.0.
6411         (altivec_expand_vec_perm_le): Likewise.
6412         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
6413         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
6414         ISA 3.0.
6416 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
6418         * config/i386/i386.h (IS_STACK_MODE): Enable for
6419         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
6420         SSE_FLOAT_MODE_P macros.
6421         * config/i386/i386.c (ix86_preferred_reload_class): Use
6422         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
6423         Cleanup regclass processing for CONST_DOUBLE_P.
6424         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
6425         (ix86_rtx_costs): Remove redundant TARGET_80387 check
6426         with IS_STACK_MODE macro.
6427         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
6428         with TARGET_SSE2.
6429         (*movdf_internal): Use IS_STACK_MODE macro.
6430         (*movsf_internal): Ditto.
6432 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
6434         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
6435         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
6437 2016-05-23  Jeff Law  <law@redhat.com>
6439         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
6440         extracted from ...
6441         (fsm_find_control_statement_thread_paths): Call it.
6443 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6445         PR ipa/71234
6446         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
6447         from_global_constant if t is not NULL.
6449 2016-05-23  Marek Polacek  <polacek@redhat.com>
6451         PR c/49859
6452         * common.opt (Wswitch-unreachable): New option.
6453         * doc/invoke.texi: Document -Wswitch-unreachable.
6454         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
6455         warning.
6457 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
6459         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
6460         TMR_INDEX is non-NULL.
6462 2016-05-23  Richard Biener  <rguenther@suse.de>
6464         PR tree-optimization/71230
6465         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
6466         (try_special_add_to_ops): ... here.  Always test for single-use.
6468 2016-05-23  Martin Jambor  <mjambor@suse.cz>
6470         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
6471         default block if a PHI node in the original one would be resized.
6473 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6475         PR tree-optimization/58135
6476         * tree-vect-slp.c: When group size is not multiple
6477         of vector size, allow splitting of store group at
6478         vector boundary.
6480 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
6482         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
6484 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
6486         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
6487         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
6488         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
6489         of 64x2.
6491         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
6492         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
6493         v constraint instead of x and vinserti32x4 insn.
6495         * config/i386/sse.md (i128vldq): New mode iterator.
6496         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
6497         avx512dq and avx512vl alternatives.
6499         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
6500         constraint, use maybe_evex prefix instead of vex.
6501         (vec_dupv4sf): Use v constraint instead of x for output
6502         operand except for noavx alternative, use Yv constraint
6503         instead of x for input.  Use maybe_evex prefix instead of vex.
6504         (*vec_dupv4si): Likewise.
6505         (*vec_dupv2di): Likewise.
6507 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
6509         PR middle-end/40921
6510         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
6511         (linearize_expr_tree): Call try_special_add_to_ops.
6512         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
6514 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6516         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
6517         to computed stack_usage.
6519 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6521         PR target/71103
6522         * config/avr/avr.md (define_expand "mov<mode>"): If the source
6523         operand is subreg (symbol_ref) then move the symbol ref to register.
6525 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
6527         * tree.c (array_at_struct_end_p): Look through MEM_REF.
6529 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
6531         PR middle-end/71179
6532         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
6533         VECTOR type.
6535 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6537         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
6538         ranges by calling get_single_symbol and tidy up.  Look more closely
6539         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
6541 2016-05-20  Jeff Law  <law@redhat.com>
6543         * bitmap.c (bitmap_find_bit): Remove useless test.
6545 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
6547         * function.c (thread_prologue_and_epilogue_insns): Commit the
6548         insertion of the epilogue.
6550 2016-05-20  Martin Jambor  <mjambor@suse.cz>
6552         PR tree-optimization/70884
6553         * tree-sra.c (initialize_constant_pool_replacements): Do not check
6554         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
6555         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
6556         of constant pool data as a reason for scalarization.
6558 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
6560         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
6561         for naked functions.
6562         (thumb1_expand_prologue): Likewise.
6564 2016-05-20  Nathan Sidwell  <nathan@acm.org>
6566         * config/nvptx/nptx.c (nvptx_option_override): Only set
6567         flag_toplevel_reorder, if not explicitly specified.  Set
6568         flag_no_common, unless explicitly specified.
6570 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6572         * calls.c (can_implement_as_sibling_call_p): Mark param
6573         reg_parm_stack_space with ATTRIBUTE_UNUSED.
6575 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
6577         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
6578         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
6579         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
6580         constants.
6581         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
6582         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
6583         and CASE_CONST_ANY.
6585 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
6587         * config/nvptx/nvptx.md (sincossf3): New pattern.
6589 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6591         * calls.c (maybe_complain_about_tail_call): New function.
6592         (initialize_argument_information): Call
6593         maybe_complain_about_tail_call when clearing *may_tailcall.
6594         (can_implement_as_sibling_call_p): Call
6595         maybe_complain_about_tail_call when returning false.
6596         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
6597         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
6598         if tail-call optimization fails.
6599         * cfgexpand.c (expand_call_stmt): Initialize
6600         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
6601         * gimple-pretty-print.c (dump_gimple_call): Dump
6602         gimple_call_must_tail_p.
6603         * gimple.c (gimple_build_call_from_tree): Call
6604         gimple_call_set_must_tail with the value of
6605         CALL_EXPR_MUST_TAIL_CALL.
6606         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
6607         (gimple_call_set_must_tail): New function.
6608         (gimple_call_must_tail_p): New function.
6609         * print-tree.c (print_node): Update printing of TREE_STATIC
6610         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
6611         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
6612         trailing comment listing applicable flags.
6613         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
6615 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
6617         * calls.c (expand_call): Move "Rest of purposes for tail call
6618         optimizations to fail" to...
6619         (can_implement_as_sibling_call_p): ...this new function, and
6620         split into multiple "if" statements.
6622 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6624         * cfgloop.h (expected_loop_iterations_unbounded,
6625         expected_loop_iterations): Unconstify.
6626         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
6627         profile with known upper bound; return 3 when profile is absent.
6628         (expected_loop_iterations): Update.
6630 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6632         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
6633         and get_max_loop_iterations_int.
6635 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
6637         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
6638         realistic upper bounds here.
6640 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
6642         PR c++/71210
6643         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
6644         calls if the LHS is variable length or has addressable type.
6645         If targets[0]->decl is a noreturn call with void return type and
6646         zero arguments, adjust fntype and remove lhs in that case.
6648 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
6650         PR tree-optimization/71079
6651         PR tree-optimization/71206
6652         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
6654 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6656         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
6657         (get_vec_alignment_for_array_decl): Likewise.
6658         (get_vec_alignment_for_record_decl): Likewise.
6659         (increase_alignment::execute): Move code to find alignment to
6660         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
6661         (type_align_map): New hash_map.
6663 2016-05-20  Richard Guenther  <rguenther@suse.de>
6665         PR tree-optimization/29756
6666         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
6667         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
6668         * fold-const.c (operand_equal_p): Likewise.
6669         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
6670         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
6671         * tree-inline.c (estimate_operator_cost): Likewise.
6672         * tree-pretty-print.c (dump_generic_node): Likewise.
6673         * tree-ssa-operands.c (get_expr_operands): Likewise.
6674         * cfgexpand.c (expand_debug_expr): Likewise.
6675         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6676         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
6677         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
6678         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
6679         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
6680         (execute_update_addresses_taken): Do it.
6682 2016-05-20  Richard Biener  <rguenther@suse.de>
6684         PR tree-optimization/71185
6685         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
6686         register operations.
6688 2016-05-20  Richard Biener  <rguenther@suse.de>
6690         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
6691         gimple_seq_add_seq_without_update.
6692         (release_bb_predicate): Assert we have no operands to free.
6693         (if_convertible_loop_p_1): Calculate post dominators later.
6694         Do not free BB predicates here.
6695         (combine_blocks): Do not recompute BB predicates.
6696         (version_loop_for_if_conversion): Save BB predicates around
6697         loop versioning.
6699 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6701         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
6702         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
6703         code.  Ignore sibcalls on EDGE_IGNORE edges.
6704         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
6705         on edges for sibcalls that run without prologue.  The rest of the
6706         function is combined from...
6707         (fix_fake_fallthrough_edge): ... this, and ...
6708         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
6709         function argument, make it a local variable.
6711 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
6713         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
6714         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
6715         for 32-bit mode and SEH for 64-bit.
6716         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
6717         TARGET_64BIT_DEFAULT.
6719 2016-05-19  Ryan Burn  <contact@rnburn.com>
6721         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
6722         * gengtype.c (open_base_files): Add cilk.h to ifiles.
6724 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
6726         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
6727         force pending loads from memory.
6729 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6731         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
6732         (UNSPEC_DARN_32): New unspec constant.
6733         (UNSPEC_DARN_RAW): New unspec constant.
6734         (darn_32): New instruction.
6735         (darn_raw): New instruction.
6736         (darn): New instruction.
6737         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
6738         support and documentation for this macro.
6739         (BU_P9_MISC_1): New macro definition.
6740         (BU_P9_64BIT_MISC_0): New macro definition.
6741         (BU_P9_MISC_0): New macro definition.
6742         (darn_32): New builtin definition.
6743         (darn_raw): New builtin definition.
6744         (darn): New builtin definition.
6745         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
6746         RS6000_BUILTIN_0 directives to surround each occurrence of
6747         #include "rs6000-builtin.def".
6748         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
6749         RS6000_BTM_64BIT flags to the returned mask, depending on
6750         configuration.
6751         (def_builtin): Correct an error in the assignments made to the
6752         debugging variable attr_string.
6753         (rs6000_expand_builtin): Add support for no-operand built-in
6754         functions.
6755         (builtin_function_type): Remove fatal_error assertion that is no
6756         longer valid.
6757         (rs6000_common_init_builtins): Add support for no-operand built-in
6758         functions.
6759         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
6760         definition.
6761         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
6762         definition.
6763         (RS6000_BTM_64BIT): New macro definition.
6764         * doc/extend.texi: Document __builtin_darn (void),
6765         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
6766         functions.
6768 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
6770         * tree-vect-loop.c (vect_analyze_loop_2): Use also
6771         max_loop_iterations_int.
6773 2016-05-19  Marek Polacek  <polacek@redhat.com>
6775         PR tree-optimization/71031
6776         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
6777         condition and adjust the code a bit.
6779 2016-05-19  Martin Liska  <mliska@suse.cz>
6781         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
6782         auto_vec instead of vec.
6784 2016-05-19  Martin Liska  <mliska@suse.cz>
6786         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
6788 2016-05-19  Martin Liska  <mliska@suse.cz>
6790         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
6792 2016-05-19  Martin Liska  <mliska@suse.cz>
6794         * ipa-pure-const.c (set_function_state): Remove an existing
6795         funct_state.
6796         (remove_node_data): Do not free it as it's released
6797         in set_function_state.
6799 2016-05-19  Martin Liska  <mliska@suse.cz>
6801         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
6802         bitmap.
6804 2016-05-19  Martin Liska  <mliska@suse.cz>
6806         * omp-simd-clone.c (simd_clone_adjust): Release vector.
6808 2016-05-19  Martin Liska  <mliska@suse.cz>
6810         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
6811         an auto_vec instead of re-creating it.
6813 2016-05-19  Martin Liska  <mliska@suse.cz>
6815         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
6816         auto_vec instead of vec.
6818 2016-05-19  Martin Liska  <mliska@suse.cz>
6820         * lto-section-in.c (lto_get_section_data): Call
6821         lto_check_version with additional argument.
6822         * lto-streamer.c (lto_check_version): Add new argument.
6823         * lto-streamer.h (lto_check_version): Likewise.
6825 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6827         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
6828         Don't add cost of inner memory when handling sign-extended loads.
6830 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6832         PR rtl-optimization/71148
6833         * cse.c (cse_main): Free dominance info.
6834         (rest_of_handle_cse): Don't free dominance info.
6835         (rest_of_handle_cse2): Likewise.
6836         (rest_of_handle_cse_after_global_opts): Likewise.
6838 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6840         PR target/71056
6841         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
6842         NULL_TREE early if NEON is not available.  Remove now redundant check
6843         in ARM_CHECK_BUILTIN_MODE.
6845 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
6847         PR sanitizer/64354
6848         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
6849         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
6850         * doc/cpp.texi: Document new macros.
6852 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
6854         PR tree-optimization/69848
6855         * tree-vect-loop.c (vectorizable_reduction): Don't factor
6856         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
6858 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
6860         * function.c (thread_prologue_and_epilogue_insn): Move the
6861         "goto epilogue_done" one block later.
6863 2016-05-19  Richard Biener  <rguenther@suse.de>
6865         PR tree-optimization/70729
6866         * passes.def: Move LIM pass before PRE.  Remove no longer
6867         required copyprop and move first DCE out of the loop pipeline.
6869 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
6871         PR driver/69265
6872         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
6873         (OBJS-libcommon-target): ...here.
6874         * opts-common.c: Include spellcheck.h.
6875         (cmdline_handle_error): Build a vec of valid options and use it
6876         to suggest provide hints for misspelled arguments.
6878 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
6880         PR c++/71100
6881         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
6882         lhs if it has TREE_ADDRESSABLE type.
6884 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
6886         PR target/71145
6887         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
6888         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
6890 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6892         PR ipa/69708
6893         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
6894         input for NOP_EXPR pass-through functions.
6895         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
6896         aggregate global constant VAR_DECLs in constant jump functions.
6898 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6900         PR ipa/69708
6901         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
6902         from TREE_READONLY parameters.
6904 2016-05-18  Martin Jambor  <mjambor@suse.cz>
6906         PR ipa/69708
6907         * cgraph.h (cgraph_indirect_call_info): New field
6908         guaranteed_unmodified.
6909         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
6910         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6911         appropriate.
6912         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
6913         pass the parameter value to ipa_find_agg_cst_for_param.
6914         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
6915         guaranteed_unmodified, store AA results there instead of bailing out
6916         if present.
6917         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
6918         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
6919         (find_constructor_constant_at_offset): New function.
6920         (ipa_find_agg_cst_from_init): Likewise.
6921         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
6922         static initializers of contants, report back through a new paameter
6923         from_global_constant if that was the case.
6924         (try_make_edge_direct_simple_call): Also pass parameter value to
6925         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
6926         appropriate.
6927         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
6928         (ipa_read_indirect_edge_info): Likewise.
6929         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
6930         (ipa_load_from_parm_agg): Likewise.
6932 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
6934         PR rtl-optimization/71150
6935         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
6936         check.
6938 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6940         PR target/70915
6941         * config/rs6000/constraints.md (wE constraint): New constraint
6942         for a vector constant that can be loaded with XXSPLTIB.
6943         (wM constraint): New constraint for a vector constant of a 1's.
6944         (wS constraint): New constraint for a vector constant that can be
6945         loaded with XXSPLTIB and a vector sign extend instruction.
6946         * config/rs6000/predicates.md (xxspltib_constant_split): New
6947         predicates for wE/wS constraints.
6948         (xxspltib_constant_nosplit): Likewise.
6949         (easy_vector_constant): Add support for constants that can be
6950         loaded via XXSPLTIB.
6951         (all_ones_constant): New predicate for vector constant with all
6952         1's set.
6953         (splat_input_operand): Add support for ISA 3.0 word splat operations.
6954         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
6955         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
6956         instruction and possibly with a sign extension.
6957         (output_vec_const_move): Add support for XXSPLTIB. If we are
6958         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
6959         instead of XXLXOR/XXLORC.
6960         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
6961         operations.
6962         (rs6000_legitimize_reload_address): Likewise.
6963         (rs6000_output_move_128bit): Use output_vec_const_move to emit
6964         constants.
6965         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
6966         combine VSX_M and VSX_M2 into one iterator.
6967         (VSX_M2): Likewise.
6968         (VSINT_84): New iterators for loading constants with XXSPLTIB.
6969         (VSINT_842): Likewise.
6970         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
6971         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
6972         XXSPLTIB instruction.
6973         (xxspltib_<mode>_nosplit): Likewise.
6974         (xxspltib_<mode>_split): New insn to load up constants with
6975         XXSPLTIB and a sign extend instruction.
6976         (vsx_mov<mode>): Replace single move that handled all vector types
6977         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
6978         moves (when -mvsx-timode is in effect) into the main vector
6979         moves.  Eliminate separate moves for <VSr> <VSa>, where the
6980         preferred register class (<VSr>) is listed first, and the
6981         secondary register class (<VSa>) is listed second with a '?' to
6982         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
6983         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
6984         that if the register was involved in a slow operation, the
6985         clear/set operation does not wait for the slow operation to
6986         finish.  Adjust the length attributes for 32-bit mode.  Use
6987         rs6000_output_move_128bit and drop the use of the string
6988         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
6989         spacing so that the alternatives and attributes don't generate
6990         long lines, and put things in columns, so that it is easier to
6991         match up the operands and attributes with the insn alternatives.
6992         (vsx_mov<mode>_64bit): Likewise.
6993         (vsx_mov<mode>_32bit): Likewise.
6994         (vsx_movti_64bit): Fold movti into normal vector moves.
6995         (vsx_movti_32bit): Likewise.
6996         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
6997         splat instructions.
6998         (vsx_splat_v4si_internal): Likewise.
6999         (vsx_splat_v4sf_internal): Likewise.
7000         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
7001         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
7002         extend vector elements.
7003         (vsx_sign_extend_hi_<mode>): Likewise.
7004         (vsx_sign_extend_si_v2di): Likewise.
7005         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
7006         declaration.
7007         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
7008         constraints.  Add trailing period to wL documentation.
7010 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
7012         PR middle-end/71020
7013         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
7014         * tree-dfa.c (replace_abnormal_ssa_names): New function.
7015         * tree-call-cdce.c: Include tree-dfa.h.
7016         (can_guard_call_p): New function, extracted from...
7017         (can_use_internal_fn): ...here.
7018         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
7019         and return void.
7020         (shrink_wrap_one_built_in_call): Likewise.
7021         (use_internal_fn): Likewise.
7022         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
7023         and return void.  Call replace_abnormal_ssa_names.
7024         (pass_call_cdce::execute): Check can_guard_call_p during the
7025         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
7026         will always change something.
7028 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7030         PR ipa/70646
7031         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
7032         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
7034 2016-05-18  Martin Jambor  <mjambor@suse.cz>
7036         PR ipa/70646
7037         * ipa-inline.h (condition): New field size.
7038         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
7039         for comaprison and store it into the new condition.
7040         (evaluate_conditions_for_known_args): Use condition size to check
7041         access sizes for all but CHANGED conditions.
7042         (unmodified_parm_1): New parameter size_p, store access size into it.
7043         (unmodified_parm): Likewise.
7044         (unmodified_parm_or_parm_agg_item): Likewise.
7045         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
7046         (set_cond_stmt_execution_predicate): Extract access sizes and store
7047         them to conditions.
7048         (set_switch_stmt_execution_predicate): Likewise.
7049         (will_be_nonconstant_expr_predicate): Likewise.
7050         (will_be_nonconstant_predicate): Likewise.
7051         (inline_read_section): Stream condition size.
7052         (inline_write_summary): Likewise.
7054 2016-05-18  Richard Biener  <rguenther@suse.de>
7056         * tree-ssa-loop-im.c (determine_max_movement): Properly add
7057         condition cost to PHI cost instead of total_cost.
7059 2016-05-18  Martin Liska  <mliska@suse.cz>
7061         PR fortran/70856
7062         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
7063         merged variables.
7065 2016-05-18  Richard Biener  <rguenther@suse.de>
7067         * lto-streamer.h (LTO_major_version): Bump to 6.
7069 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7071         * function.c (make_split_prologue_seq, make_prologue_seq,
7072         make_epilogue_seq): New functions, factored out from...
7073         (thread_prologue_and_epilogue_insns): Here.
7075 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
7077         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7078         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
7079         of before.  Add a comment.
7081 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
7083         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
7084         expression pointer, not pointer to the pointer.
7086 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
7088         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
7089         (avx2_pbroadcast<mode>): Add another alternative with v instead
7090         of x constraints in it, using <pbroadcast_evex_isa> isa.
7091         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
7093         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
7094         constraint x instead of v in second alternative, add avx512bw
7095         alternative.
7097         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
7098         constraint x instead of v in second alternative, add avx512bw
7099         alternative.
7101         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
7102         constraint x instead of v in second alternative, add avx512bw
7103         alternative.
7105         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
7106         avx512bw alternative.
7108 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7110         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
7111         array to 128 chars.
7112         (define_insn "*andnottf3"): Ditto.
7113         (define_insn "*<code><mode>3"/any_logic): Ditto.
7114         (define_insn "*<code>tf3"/any_logic): Ditto.
7115         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
7116         operand to block AVX-512VL insn variant emit when it is not enabled.
7118 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
7120         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
7121         constraint fot SF mode.
7123 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
7124             Kirill Yukhin  <kirill.yukhin@intel.com>
7126         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
7127         modifiers.
7128         (define_insn "rsqrt14<mode>"): Ditto.
7129         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
7130         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
7131         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
7132         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7133         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
7134         Ditto.
7135         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
7136         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
7137         * config/i386/i386.c (ix86_print_operand): Expand check for size
7138         override codes for Intel syntax.
7140 2016-05-18  Richard Biener  <rguenther@suse.de>
7142         PR tree-optimization/71168
7143         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
7144         initialization earlier.
7146 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
7148         * config/aarch64/aarch64-simd.md
7149         (aarch64_reduc_plus_internal<mode>): Rename to...
7150         (reduc_plus_scal): ...This, and remove previous implementation.
7152 2016-05-18  Richard Biener  <rguenther@suse.de>
7154         * passes.def: Put late dse and cd_dce in canonical order.
7156 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
7158         * ipa-inline-transform.c (preserve_function_body_p): Look for
7159         first non-thunk clone.
7160         (save_function_body): Save into first non-thunk.
7161         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
7162         up call stmt id.
7163         (lto_output_node): Inline thunks don't need body in every
7164         partition.
7165         * lto-streamer-in.c: Do not fixup thunk clones.
7166         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
7167         thunks.
7168         * tree-inline.c (copy_bb): Be prepared for target node to be new after
7169         folding suceeds.
7171 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7173         PR middle-end/63586
7174         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
7175         (reassociate_bb): Call transform_add_to_multiply.
7177 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
7179         * config/aarch64/aarch64.c (all_extensions): Removed unused
7180         static variable.
7182 2016-05-17  Nathan Sidwell  <nathan@acm.org>
7184         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
7185         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
7187 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
7189         PR tree-optimization/54579
7190         PR middle-end/55299
7191         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
7193 2016-05-17  Marek Polacek  <polacek@redhat.com>
7195         PR ipa/71146
7196         * tree-inline.c (expand_call_inline): Call
7197         maybe_remove_unused_call_args.
7199 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
7201         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
7202         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
7203         * doc/md.texi (fmin@var{m}3): Likewise.
7205 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7207         * match.pd (X & C): New transformation.
7209 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7211         * match.pd (~X & Y): New transformation.
7213 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
7215         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
7216         information for new SSA_NAME.
7217         (simplify_conversion_using_ranges): Get range through get_range_info
7218         instead of get_value_range.
7220 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7222         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
7223         Remove inline assembly.
7224         (vmvn_s16): Likewise.
7225         (vmvn_s32): Likewise.
7226         (vmvn_u8): Likewise.
7227         (vmvn_u16): Likewise.
7228         (vmvn_u32): Likewise.
7229         (vmvnq_s8): Likewise.
7230         (vmvnq_s16): Likewise.
7231         (vmvnq_s32): Likewise.
7232         (vmvnq_u8): Likewise.
7233         (vmvnq_u16): Likewise.
7234         (vmvnq_u32): Likewise.
7235         (vmvn_p8): Likewise.
7236         (vmvnq_p16): Likewise.
7238 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7240         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
7241         Use builtin.
7242         (vmul_n_s16): Likewise.
7243         (vmul_n_s32): Likewise.
7244         (vmul_n_u16): Likewise.
7245         (vmul_n_u32): Likewise.
7246         (vmulq_n_f32): Likewise.
7247         (vmulq_n_f64): Likewise.
7248         (vmulq_n_s16): Likewise.
7249         (vmulq_n_s32): Likewise.
7250         (vmulq_n_u16): Likewise.
7251         (vmulq_n_u32): Likewise.
7253 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7255         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
7256         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
7258 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
7260         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
7261         to *aarch64_fma4_elt_from_dup<mode>.
7262         (*aarch64_fnma4_elt_to_128df): Rename to
7263         *aarch64_fnma4_elt_from_dup<mode>.
7264         * config/aarch64/arm_neon.h (vfma_n_f64): New.
7265         (vfms_n_f32): Likewise.
7266         (vfms_n_f64): Likewise.
7267         (vfmsq_n_f32): Likewise.
7268         (vfmsq_n_f64): Likewise.
7270 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
7272         * wide-int.h: Change fixed_wide_int_storage from class to struct.
7274 2016-05-17  Richard Biener  <rguenther@suse.de>
7276         PR tree-optimization/71132
7277         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
7278         Only add control dependences for blocks in the loop.
7279         (build_rdg): Adjust.
7280         (generate_code_for_partition): Return whether loop should
7281         be destroyed and delay that.
7282         (distribute_loop): Likewise.
7283         (pass_loop_distribution::execute): Record loops to be destroyed
7284         and perform delayed destroying of loops.
7286 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7288         PR target/70809
7289         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
7291 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7293         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
7295 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
7297         PR target/71114
7298         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
7299         insertion point for instructions generated by validize_mem.
7301 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7303         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
7304         in brackets.
7306 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
7308         * config/aarch64/aarch64.c
7309         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
7310         rather than a macro.
7312 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7314         * doc/invoke.texi (AArch64 Options): Various updates.
7316 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7318         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
7319         into instrumentation thunks.
7320         * cif-code.def (CIF_CHKP): New.
7322 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
7324         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
7326 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7328         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
7329         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
7331 2016-05-16  Marek Polacek  <polacek@redhat.com>
7333         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
7334         commentary.
7336 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7338         PR hsa/70857
7339         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
7340         the outlined kernel function.
7342 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
7344         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
7345         (ISA_HAS_DLSA): Ditto.
7347 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7349         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
7351 2016-05-16  Nathan Sidwell  <nathan@acm.org>
7353         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
7354         (nvptx_name_replacement): Restore.  Add comment.
7355         (write_fn_proto, write_fn_proto_from_insn,
7356         nvptx_output_call_insn): Restore
7357         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
7359 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7361         * config/aarch64/aarch64.md
7362         (add<mode>3_compareC_cconly_imm): Remove use of %w.
7363         (add<mode>3_compareC_imm): Likewise.
7364         (<optab>si3_uxtw): Split into register and immediate variants.
7365         (andsi3_compare0_uxtw): Likewise.
7366         (and<mode>3_compare0): Likewise.
7367         (and<mode>3nr_compare0): Likewise.
7368         (stack_protect_test_<mode>): Don't use %x for memory operands.
7370 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
7372         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
7374 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
7376         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
7377         Split integer shifts into shift_reg and bfm.
7378         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7379         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
7380         (ror<mode>3_insn): Likewise.
7381         (<optab>si3_insn_uxtw): Likewise.
7382         (<optab><mode>3_insn): Change to rotate_imm.
7383         (extr<mode>5_insn_alt): Likewise.
7384         (extrsi5_insn_uxtw): Likewise.
7385         (extrsi5_insn_uxtw_alt): Likewise.
7387 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7389         * doc/tm.texi: Regenerate.
7390         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
7391         (TARGET_INVALID_RETURN_TYPE): Remove.
7392         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
7393         TARGET_INVALID_RETURN_TYPE.
7394         * target.def (invalid_parameter_type): Remove.
7395         (invalid_return_type): Remove.
7397 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7399         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
7400         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
7401         calls from thunk.
7402         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
7403         gimple body.
7404         (preserve_function_body_p): No need to preserve function body
7405         * cif-codes.def (CIF_THUNK): Remove.
7406         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
7408 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7410         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
7412 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7414         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
7415         for thunks.
7417 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7419         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
7420         (inline_small_functions): Do not look for function symbol when
7421         resetting caches.
7423 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
7425         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
7426         of inline thunks
7428 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7429             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7430             Jiong Wang  <jiong.wang@arm.com>
7432         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
7433         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
7434         Define __ARM_FP16_ARGS when appropriate.
7435         * config/arm/arm.c (arm_invalid_parameter_type): Remove
7436         declaration.
7437         (arm_invalid_return_type): Likewise.
7438         (TARGET_INVALID_PARAMETER_TYPE): Remove.
7439         (TARGET_INVALID_RETURN_TYPE): Remove.
7440         (aapcs_vfp_sub_candidate): Allow HFmode.
7441         (aapcs_vfp_allocate): Add comment.  Support HFmode.
7442         (aapcs_vfp_allocate_return_reg): Likewise.
7443         (struct aapcs_cp_arg_layout): Slightly reword comments for
7444         is_return_candidate and allocate_return_reg.
7445         (output_mov_vfp): Update assert.
7446         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
7447         condition.
7448         (arm_invalid_parameter_type): Remove.
7449         (amr_invalid_return_type): Remove.
7450         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
7451         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
7452         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
7454 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
7456         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
7457         * config/aarch64/arch64-protos.h
7458         (aarch64_legitimize_reload_address): Remove.
7459         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
7460         Remove.
7462 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
7464         * configure.ac: Add ACX_NONCANONICAL_HOST.
7465         * configure: Regenerate.
7466         * Makefile.in: Set host_noncanonical.
7468 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
7470         PR target/71097
7471         * config/i386/i386.md (*movtf_internal): Before register allocation,
7472         do not allow FP constants for CM_MEDIUM memory model, allow only
7473         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
7474         (*movxf_internal): Ditto.
7475         (*movdf_internal): Ditto.
7476         (*movsf_internal): Ditto.
7478 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
7480         PR rtl-optimization/67483
7481         * combine.c (make_compound_operation): Don't call extract_left_shift
7482         with negative shift amounts.
7484 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
7486         PR bootstrap/71071
7487         * fold-const.c (fold_checksum_tree): Allow modification
7488         of TYPE_ALIAS_SET during folding.
7490         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
7491         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
7492         (ix86_split_to_parts): Likewise.  Fix up formatting.
7494 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7496         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
7497         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
7498         printf format.
7500 2016-05-13  Nathan Sidwell  <nathan@acm.org>
7502         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
7503         (nvptx_name_replacement): Delete.
7504         (write_fn_proto, write_fn_proto_from_insn,
7505         nvptx_output_call_insn): Remove nvptx_name_replacement call.
7506         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
7507         * langhooks.c (add_builtin_funcction_common): Call
7508         targetm.mangle_decl_assembler_name.
7510         * config/nvptx/nvptx.c (write_fn_proto): Handle
7511         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
7513 2016-05-13  Martin Liska  <mliska@suse.cz>
7515         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
7516         and PRIu64 in printf format.
7518 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7520         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
7521         comment.
7523 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7525         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7526         Change --param max-completely-peeled-times to
7527         --param max-completely-peel-times in dump file printing.
7529 2016-05-13  Richard Biener  <rguenther@suse.de>
7531         PR tree-optimization/42587
7532         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
7533         (find_bswap_or_nop_1): Likewise.
7534         (bswap_replace): Likewise.
7536 2016-05-13  Martin Liska  <mliska@suse.cz>
7538         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
7539         Initialize a variable with default value.
7541 2016-05-13  Martin Liska  <mliska@suse.cz>
7543         * doc/invoke.texi: Enhance explanation of error recovery
7544         of sanitizers.
7546 2016-05-13  Martin Liska  <mliska@suse.cz>
7548         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
7549         (struct cost_pair): Change inv_expr_id (int) to inv_expr
7550         (iv_inv_expr_ent *).
7551         (struct iv_inv_expr_ent): Comment struct fields.
7552         (sort_iv_inv_expr_ent): New function.
7553         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
7554         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
7555         a hash_map between iv_inv_expr_ent and number of usages.
7556         (niter_for_exit): Fix coding style.
7557         (tree_ssa_iv_optimize_init): Use renamed variable.
7558         (determine_base_object): Fix coding style.
7559         (alloc_iv): Likewise.
7560         (find_interesting_uses_outside): Likewise.
7561         (add_candidate_1): Likewise.
7562         (add_standard_iv_candidates): Likewise.
7563         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
7564         (prepare_decl_rtl): Fix coding style.
7565         (get_address_cost): Likewise.
7566         (get_shiftadd_cost): Likewise.
7567         (force_expr_to_var_cost): Likewise.
7568         (compare_aff_trees): Likewise.
7569         (get_expr_id): Restructure the function.
7570         (get_loop_invariant_expr_id): Renamed to
7571         get_loop_invariant_expr.
7572         (get_computation_cost_at): Replace usage of inv_expr_id with
7573         inv_expr.
7574         (get_computation_cost): Likewise.
7575         (determine_group_iv_cost_generic): Likewise.
7576         (determine_group_iv_cost_address): Likewise.
7577         (iv_period): Fix coding style.
7578         (iv_elimination_compare_lt): Likewise.
7579         (may_eliminate_iv): Likewise.
7580         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
7581         inv_expr.
7582         (determine_group_iv_costs): Dump invariant expressions.
7583         (iv_ca_recount_cost): Use the newly added hash_map.
7584         (iv_ca_set_remove_invariants): Fix coding style.
7585         (iv_ca_set_add_invariants): Fix coding style.
7586         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
7587         invariants.
7588         (iv_ca_set_cp): Likewise.
7589         (iv_ca_new): Initialize the newly added hash_map and remove
7590         initialization of fields.
7591         (iv_ca_free): Delete the hash_map.
7592         (iv_ca_dump): Dump invariant expressions.
7593         (iv_ca_extend): Fix coding style.
7594         (try_add_cand_for): Likewise.
7595         (create_new_ivs): Dump information about # of avg iterations and
7596         # of used invariant expressions.
7597         (rewrite_use_compare): Fix coding style.
7598         (free_loop_data): Set default value for max_inv_expr_id.
7600 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
7602         * cse.c (rest_of_handle_cse): Use cleanup_cfg
7603         returned value cse_cfg_altered computation.
7604         (rest_of_handle_cse2): Likewise.
7605         (rest_of_handle_cse_after_global_opts): Likewise.
7607 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7609         PR target/53440
7610         * config/arm/arm.c (arm32_output_mi_thunk): New.
7611         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
7612         to split Thumb1 vs TARGET_32BIT functionality.
7613         (arm_thumb1_mi_thunk): New.
7615 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7617         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
7618         to true.
7620 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7622         PR target/71080
7623         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
7625 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
7627         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
7628         (expand_builtin_trap): Emit a regular call.
7629         (set_builtin_user_assembler_name): Remove obsolete cases.
7630         * dse.c (scan_insn): Adjust.
7631         * except.c: Include calls.h.
7632         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
7633         emit a regular call to setjmp.
7634         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
7635         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
7636         (emit_block_move_via_libcall): Delete.
7637         (block_move_fn): Delete.
7638         (init_block_move_fn): Likewise.
7639         (emit_block_move_libcall_fn): Likewise.
7640         (emit_block_op_via_libcall): New function.
7641         (set_storage_via_libcall): Tidy up and use memset builtin.
7642         (block_clear_fn): Delete.
7643         (init_block_clear_fn): Likewise.
7644         (clear_storage_libcall_fn): Likewise.
7645         (expand_assignment): Call emit_block_move_via_libcall.
7646         Do not include gt-expr.h.
7647         * expr.h (emit_block_op_via_libcall): Declare.
7648         (emit_block_copy_via_libcall): New inline function.
7649         (emit_block_move_via_libcall): Likewise.
7650         (emit_block_comp_via_libcall): Likewise.
7651         (block_clear_fn): Delete.
7652         (init_block_move_fn): Likewise.
7653         (init_block_clear_fn): Likewise.
7654         (emit_block_move_via_libcall): Likewise.
7655         (set_storage_via_libcall): Add default parameter value.
7656         * libfuncs.h (enum libfunc_index): Remove obsolete values.
7657         (abort_libfunc): Delete.
7658         (memcpy_libfunc): Likewise.
7659         (memmove_libfunc): Likewise.
7660         (memcmp_libfunc): Likewise.
7661         (memset_libfunc): Likewise.
7662         (setbits_libfunc): Likewise.
7663         (setjmp_libfunc): Likewise.
7664         (longjmp_libfunc): Likewise.
7665         (profile_function_entry_libfunc): Likewise.
7666         (profile_function_exit_libfunc): Likewise.
7667         (gcov_flush_libfunc): Likewise.
7668         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
7669         and DECL_VISIBILITY on the declaration.
7670         (init_optabs): Do not initialize obsolete libfuncs.
7671         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
7672         * tree-core.h (ECF_RET1): Define.
7673         (ECF_TM_PURE): Adjust.
7674         (ECF_TM_BUILTIN): Likewise.
7675         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
7676         (build_common_builtin_nodes): Initialize abort builtin.
7677         Add ECF_RET1 on memcpy, memmove and memset builtins.
7678         Pass final flags for alloca and alloca_with_align builtins.
7679         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
7680         obsolete builtins.
7681         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
7682         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
7683         set_storage_via_libcall and call emit_block_copy_via_libcall.
7685 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
7687         * config/i386/i386.md (*call_got_x32): Change operand 0 to
7688         DImode before it is passed to ix86_output_call_operand.
7689         (*call_value_got_x32): Ditto for operand 1.
7691 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
7693         PR rtl-optimization/70904
7694         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
7695         reload for wide mode.
7697 2016-05-12  Marek Polacek  <polacek@redhat.com>
7699         PR c/70756
7700         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
7701         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
7702         * langhooks.h (incomplete_type_error): Likewise.
7703         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
7704         parameter, pass it down to incomplete_type_error.
7705         * tree.h (size_in_bytes): New inline overload.
7706         (size_in_bytes_loc): Renamed from size_in_bytes.
7708 2016-05-12  Richard Biener  <rguenther@suse.de>
7710         PR tree-optimization/71059
7711         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
7712         nary before looking up or entering the expression into the VN
7713         hashes.
7714         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
7715         Make sure to re-use NARYs without result as inserted by
7716         phi-translation.
7718 2016-05-12  Richard Biener  <rguenther@suse.de>
7720         PR tree-optimization/71062
7721         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
7722         field.
7723         * tree-ssa-structalias.c (set_uids_in_ptset): Set
7724         vars_contains_restrict if the var is a restrict tag.
7725         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
7726         do not disambiguate pointers against it.
7727         (dump_points_to_solution): Re-structure and adjust for new
7728         vars_contains_restrict flag.
7729         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
7731 2016-05-12  Martin Liska  <mliska@suse.cz>
7733         * doc/invoke.texi: Explain connection between
7734         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
7736 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
7738         PR tree-optimization/71006
7739         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7740         consider COND_EXPR as a mask producer.
7742 2016-05-12  Marek Polacek  <polacek@redhat.com>
7744         PR driver/71063
7745         * opts.c (common_handle_option): Detect missing argument for --help^.
7747 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7749         PR target/70830
7750         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
7751         when popping the PC and within an interrupt handler routine.
7752         Add missing tab to output of "ldmfd".
7753         (output_return_instruction): Output LDMFD with SP update rather
7754         than POP when returning from interrupt handler.
7756 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
7758         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
7759         TARGET_64BIT && TARGET_AVX512DQ.
7760         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
7761         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
7762         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
7763         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
7764         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
7765         (*vec_extractv4si_zext): Add avx512dq alternative.
7766         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
7767         use v instead of x constraint in other alternatives where possible.
7769         * config/i386/sse.md (sse2_loadld): Use v instead of x
7770         constraint in alternatives 0,1,4.
7772         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
7773         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
7774         v constraints instead of x and <pinsr_evex_isa> isa attribute.
7776         PR target/71019
7777         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
7778         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
7779         is not emitted unless TARGET_AVX512BW.
7780         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
7781         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
7782         for the result operand.
7784         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
7785         constraint instead of x in avx alternatives.  Use maybe_evex instead
7786         of vex prefix.
7788         * config/i386/constraints.md (Yv): New constraint.
7789         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
7790         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
7791         * config/i386/i386.md (avx512fvecmode): New mode attr.
7792         (*pushtf): Use v constraint instead of x.
7793         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
7794         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
7795         (*absneg<mode>2): Use Yv constraint instead of x constraint.
7796         (*absnegtf2_sse): Likewise.
7797         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
7798         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
7799         avx512f alternatives.
7800         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
7802 2016-05-12  Richard Biener  <rguenther@suse.de>
7804         PR tree-optimization/71060
7805         * tree-data-ref.c (initialize_data_dependence_relation): Do not
7806         require exact match of DR_BASE_OBJECT but only matching address and
7807         type.
7809 2016-05-12  Richard Biener  <rguenther@suse.de>
7811         PR tree-optimization/70986
7812         * cfganal.c: Include cfgloop.h.
7813         (dfs_find_deadend): Prefer to take edges exiting loops.
7815 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7817         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
7818         compile and run time.
7820 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
7822         PR c/43651
7823         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
7825 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
7827         * config/i386/i386.c (legitimize_pic_address): Use
7828         copy_to_suggested_reg instead of gen_movsi.
7830 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7832         * config/rs6000/predicates.md (quad_memory_operand): Move most of
7833         the code into quad_address_p and call it to share code with
7834         vsx_quad_dform_memory_operand.
7835         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
7836         d-form support.
7837         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
7838         bit instead of being a separate word.  Split -mpower9-dform into
7839         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7840         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
7841         for the register class supporting 128-bit quad word memory offsets.
7842         (mode_supports_vsx_dform_quad): Helper function to return if the
7843         register class uses quad word memory offsets.
7844         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
7845         (rs6000_debug_reg_global): Always print if we are using LRA or not.
7846         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
7847         instructions are enabled, set up the appropriate addr_masks for
7848         128-bit types.
7849         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
7850         -mpower9-dform-scalar, instead of -mpower9-dform.
7851         (rs6000_option_override_internal): Split -mpower9-dform into two
7852         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
7853         -mpower9-dform switch sets or clears both.  If we are not using
7854         the LRA register allocator, do not enable -mpower9-dform-vector by
7855         default.  If we are using LRA, enable -mpower9-dform-vector and
7856         -mvsx-timode if it is appropriate.  Issue a warning if either
7857         -mpower9-dform-vector or -mvsx-timode are explicitly used without
7858         enabling LRA.
7859         (quad_address_offset_p): New helper function to return if the
7860         offset is legal for quad word memory instructions.
7861         (quad_address_p): New function to determin if GPR or vector
7862         register quad word memory addresses are legal.
7863         (mem_operand_gpr): Validate quad word address offsets.
7864         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
7865         d-form (register + offset) instructions.
7866         (offsettable_ok_by_alignment): Likewise.
7867         (rs6000_legitimate_offset_address_p): Likewise.
7868         (legitimate_lo_sum_address_p): Likewise.
7869         (rs6000_legitimize_address): Likewise.
7870         (rs6000_legitimize_reload_address): Add more debug statements for
7871         -mdebug=addr.
7872         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
7873         d-form instructions.
7874         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
7875         d-form instructions.  Distinguish different cases in debug
7876         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
7877         d-form instructions.
7878         (rs6000_preferred_reload_class): Likewise.
7879         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
7880         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
7881         of the ISA 2.06 indexed memory instructions.
7882         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
7883         use them to save/restore the saved vector registers instead of
7884         using Altivec instructions.
7885         (rs6000_emit_epilogue): Likewise.
7886         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
7887         (rs6000_opt_masks): Split -mpower9-dform into
7888         -mpower9-dform-scalar and -mpower9-dform-vector.
7889         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
7890         was not selected.
7891         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
7892         ISA 3.0 vector indexed memory instructions, and fold the code into
7893         the normal mov<mode> patterns.
7894         (p9_vecstore_<mode>): Likewise.
7895         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
7896         instructions.
7897         (vsx_movti_64bit): Likewise.
7898         (vsx_movti_32bit): Likewise.
7899         * config/rs6000/constraints.md (wO constraint): New constraint for
7900         ISA 3.0 vector d-form support.
7901         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
7902         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
7903         include -mpower9-dform-vector until we switch over to LRA.
7904         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
7905         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
7906         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
7907         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
7908         for -mpower9-dform and -mlra.
7909         * doc/md.texi (wO constraint): Document wO constraint.
7911 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
7913         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
7914         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
7915         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
7916         Move handling of non-insn arguments inline into the sole user:
7917         (output_trans_func): ...here.
7918         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
7919         in emitted function prototype.
7920         (output_internal_insn_latency_func): Ditto.  Simplify.
7921         (output_internal_maximal_insn_latency_func): Ditto.  Delete
7922         always-unused argument.
7923         (output_insn_latency_func): Ditto.
7924         (output_maximal_insn_latency_func): Ditto.
7926 2016-05-11  Richard Biener  <rguenther@suse.de>
7928         PR tree-optimization/71055
7929         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
7930         sth with precision not equal to access size verify we don't chop
7931         off bits.
7933 2016-05-11  Richard Biener  <rguenther@suse.de>
7935         PR debug/71057
7936         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
7937         (dwarf2out_finish): Move retry_incomplete_types call ...
7938         (dwarf2out_early_finish): ... here.
7940 2016-05-11  Richard Biener  <rguenther@suse.de>
7942         PR middle-end/71002
7943         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
7944         if the langhook insists on it.
7945         * fold-const.c (make_bit_field_ref): Add arg for the original
7946         reference and preserve its alias-set.
7947         (decode_field_reference): Take exp by reference and adjust it
7948         to the original memory reference.
7949         (optimize_bit_field_compare): Adjust callers.
7950         (fold_truth_andor_1): Likewise.
7951         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
7953 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
7955         PR middle-end/70807
7956         * cfgrtl.h (delete_insn_and_edges): Now return bool.
7957         * cfgrtl.c (delete_insn_and_edges): Likewise.
7958         * config/i386/i386.c (convert_scalars_to_vector): Remove
7959         redundant code.
7960         * cse.c (cse_insn): Compute cse_cfg_altered.
7961         (delete_trivially_dead_insns): Likewise.
7962         (cse_cc_succs): Likewise.
7963         (rest_of_handle_cse): Free dominance info if required.
7964         (rest_of_handle_cse2): Likewise.
7965         (rest_of_handle_cse_after_global_opts): Likewise.
7967 2016-05-11  Alan Modra  <amodra@gmail.com>
7969         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
7970         abi_v4_pass_in_fpr): New functions.
7971         (rs6000_function_arg_boundary): Exclude complex IBM long double
7972         from 64-bit alignment when ABI_V4.
7973         (rs6000_function_arg, rs6000_function_arg_advance_1,
7974         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
7976 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
7978         PR rtl-optimization/71028
7979         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
7980         jump with just a return in the fallthrough block if the branch
7981         block contains just a return as well.
7983 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
7985         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
7986         * match.pd ((X & Y) ^ Y): ... this.
7987         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
7988         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
7990 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
7992         * read-md.c (require_char_ws): New function.
7993         (read_string): Simplify using require_char_ws.
7994         (handle_constants): Likewise.
7995         (handle_enum): Likewise.
7996         (handle_file): Likewise.
7997         * read-md.h (require_char_ws): New declaration.
7998         * read-rtl.c (read_conditions): Simplify using require_char_ws.
7999         (read_mapping): Likewise.
8000         (read_rtx_code): Likewise.
8001         (read_nested_rtx): Likewise.
8003 2016-05-10  James Norris  <jnorris@codesourcery.com>
8005         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
8006         if offloading is enabled and -fopenacc or -fopenmp is specified.
8007         (CRTOFFLOADEND): Likewise.
8008         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
8009         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
8011 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
8013         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
8014         gotoff_operand code paths.  Use copy_to_suggested_regs and
8015         expand_simple_binop where appropriate.  Cleanup.
8017 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8019         PR target/70799
8020         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
8021         integer constants.
8022         (dimode_scalar_chain::vector_const_cost): New.
8023         (dimode_scalar_chain::compute_convert_gain): Handle constants.
8024         (dimode_scalar_chain::convert_op): Likewise.
8025         (dimode_scalar_chain::convert_insn): Likewise.
8027 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8029         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
8030         unary operation, not a binary one.
8032 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8034         PR middle-end/70877
8035         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
8036         calls with type casted fndecl.
8038 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
8040         PR tree-optimization/70786
8041         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
8042         * calls.c (initialize_argument_information): Bind bounds
8043         with corresponding args passed by reference.
8045 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
8047         PR target/70927
8048         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
8049         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
8050         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
8051         accordingly.
8053 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8055         PR target/70963
8056         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
8057         code for a zero scale factor.
8058         (vsx_xvcvdpuxds_scale): Likewise.
8060 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
8062         * diagnostic-show-locus.c (layout::layout): Call show_ruler
8063         if show_ruler_p was set on the context.
8064         (layout::show_ruler): New method.
8065         * diagnostic.h (struct diagnostic_context): Add field
8066         "show_ruler_p".
8068 2016-05-10  Richard Biener  <rguenther@suse.de>
8070         PR tree-optimization/71039
8071         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
8072         (chk_uses): New function.
8073         (propagate_with_phi): Verify we can safely replicate the lhs of an
8074         aggregate assignment on all incoming edges.
8076 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
8078         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
8079         Forward declare.
8080         (rx_atomic_sequence): New class.
8081         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
8082         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
8083         non-inline.
8084         (rx_atomic_sequence::rx_atomic_sequence,
8085         rx_atomic_sequence::~rx_atomic_sequence): New functions.
8086         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
8087         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
8088         CTRLREG_INTB): New constants.
8089         (FETCHOP): New code iterator.
8090         (fethcop_name, fetchop_name2): New iterator code attributes.
8091         (QIHI): New mode iterator.
8092         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
8093         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
8094         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
8096 2016-05-10  Martin Liska  <mliska@suse.cz>
8098         * tree-inline.c (remap_dependence_clique): Do not remap
8099         debugging statements.
8101 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8103         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
8104         ("*fixuns_truncdfdi2_z13")
8105         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
8106         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
8107         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
8109 2016-05-10  Richard Biener  <rguenther@suse.de>
8111         PR tree-optimization/70497
8112         PR tree-optimization/28367
8113         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
8114         split out from ...
8115         (visit_reference_op_load): ... here.
8116         (vn_reference_lookup_3): Use it to handle subreg-like accesses
8117         with simplified BIT_FIELD_REFs.
8118         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
8119         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
8120         correctly.
8122 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
8124         * dwarf2out.c (add_abstract_origin_attribute): Adjust
8125         documentation comment.  For BLOCK nodes, add a
8126         DW_AT_abstract_origin attribute that points to the DIE generated
8127         for the origin BLOCK.
8128         (gen_lexical_block_die): Call add_abstract_origin_attribute for
8129         blocks from inlined functions.
8131 2016-05-10  Alan Modra  <amodra@gmail.com>
8133         PR target/70947
8134         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
8135         regrename modifying insns saving lr before __morestack call.
8136         * config/rs6000/rs6000.md (split_stack_return): Similarly for
8137         insns restoring lr after __morestack call.
8139 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
8141         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
8142         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
8143         expanders.
8144         * config/i386/sse.md (vec_interleave_high<mode>,
8145         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
8146         <avx512>_vpermt2var<mode>3_maskz): Likewise.
8148 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
8150         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
8151         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
8152         parallel reassociation for power8 and forward.
8154 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
8156         * config/i386/i386.md (absneg splitters with general regs): Use
8157         general_reg_operand predicate.
8158         (btsq peephole2): Use x86_64_immediate_operand to check if new
8159         value is suitable for immediate operand.  Generate emitted insn
8160         using RTL expressions.
8161         (btcq peephole2): Ditto.
8162         (btrq peephole2): Ditto.  Generate correct immediate operand
8163         for AND masking.
8165 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8167         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
8168         bitpos.
8170 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
8172         * tree-affine.c (wide_int_constant_multiple_p): Add missing
8173         pointer dereference.
8175 2016-05-09  Richard Biener  <rguenther@suse.de>
8177         PR tree-optimization/70985
8178         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
8179         op0 isn't a gimple register.
8181 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
8183         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
8184         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
8185         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
8186         (i6400_fpu_mult): New cpu units.
8187         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
8188         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
8189         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
8190         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
8191         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
8192         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
8193         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
8194         (i6400_msa_long_float4, i6400_msa_long_float5)
8195         (i6400_msa_long_float8, i6400_msa_fdiv_df)
8196         (i6400_msa_fdiv_sf): New reservations.
8197         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
8198         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
8199         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
8200         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
8201         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
8202         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
8203         (msa_short_cmp, msa_short_float2, msa_short_logic3)
8204         (msa_short_store4, msa_long_load, msa_short_store)
8205         (msa_long_logic, msa_long_float2, msa_long_float4)
8206         (msa_long_float5, msa_long_float8, msa_long_mult)
8207         (msa_long_fdiv, msa_long_div): New reservations.
8209 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
8210             Sameera Deshpande  <sameera.deshpande@imgtec.com>
8211             Matthew Fortune  <matthew.fortune@imgtec.com>
8212             Graham Stott  <graham.stott@imgtec.com>
8213             Chao-ying Fu  <chao-ying.fu@imgtec.com>
8215         * config.gcc: Add MSA header file for mips*-*-* target.
8216         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
8217         (Ubv8i, Urv8):  New constraints.
8218         * config/mips/mips-ftypes.def: Add function types for MSA
8219         builtins.
8220         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
8221         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
8222         * config/mips/mips-msa.md: New file.
8223         * config/mips/mips-protos.h
8224         (mips_split_128bit_const_insns): New prototype.
8225         (mips_msa_idiv_insns): Likewise.
8226         (mips_split_128bit_move): Likewise.
8227         (mips_split_128bit_move_p): Likewise.
8228         (mips_split_msa_copy_d): Likewise.
8229         (mips_split_msa_insert_d): Likewise.
8230         (mips_split_msa_fill_d): Likewise.
8231         (mips_expand_msa_branch): Likewise.
8232         (mips_const_vector_same_val_p): Likewise.
8233         (mips_const_vector_same_bytes_p): Likewise.
8234         (mips_const_vector_same_int_p): Likewise.
8235         (mips_const_vector_shuffle_set_p): Likewise.
8236         (mips_const_vector_bitimm_set_p): Likewise.
8237         (mips_const_vector_bitimm_clr_p): Likewise.
8238         (mips_msa_vec_parallel_const_half): Likewise.
8239         (mips_msa_output_division): Likewise.
8240         (mips_ldst_scaled_shift): Likewise.
8241         (mips_expand_vec_cond_expr): Likewise.
8242         * config/mips/mips.c (enum mips_builtin_type): Add
8243         MIPS_BUILTIN_MSA_TEST_BRANCH.
8244         (mips_gen_const_int_vector_shuffle): New prototype.
8245         (mips_const_vector_bitimm_set_p): New function.
8246         (mips_const_vector_bitimm_clr_p): Likewise.
8247         (mips_const_vector_same_val_p): Likewise.
8248         (mips_const_vector_same_bytes_p): Likewise.
8249         (mips_const_vector_same_int_p): Likewise.
8250         (mips_const_vector_shuffle_set_p): Likewise.
8251         (mips_symbol_insns): Forbid loading symbols via immediate for
8252         MSA.
8253         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
8254         stores.
8255         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
8256         MSA.
8257         (mips_lx_address_p): Add support load indexed address for MSA.
8258         (mips_address_insns): Add calculation of instructions needed for
8259         stores and loads for MSA.
8260         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
8261         CONST_VECTOR for MSA and let it fall through.
8262         (mips_ldst_scaled_shift): New function.
8263         (mips_subword_at_byte): Likewise.
8264         (mips_msa_idiv_insns): Likewise.
8265         (mips_legitimize_move): Validate MSA moves.
8266         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
8267         calculation of costs for MSA division.
8268         (mips_split_move_p): Check if MSA moves need splitting.
8269         (mips_split_move): Split MSA moves if necessary.
8270         (mips_split_128bit_move_p): New function.
8271         (mips_split_128bit_move): Likewise.
8272         (mips_split_msa_copy_d): Likewise.
8273         (mips_split_msa_insert_d): Likewise.
8274         (mips_split_msa_fill_d): Likewise.
8275         (mips_output_move): Handle MSA moves.
8276         (mips_expand_msa_branch): New function.
8277         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
8278         Reinstate 'y' modifier.
8279         (mips_file_start): Add MSA .gnu_attribute.
8280         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
8281         FPRs.
8282         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
8283         (mips_class_max_nregs): Add register size for MSA supported mode.
8284         (mips_cannot_change_mode_class): Allow conversion between MSA
8285         vector modes and TImode.
8286         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
8287         instruction.
8288         (mips_secondary_reload_class): Force MSA loads/stores via memory.
8289         (mips_preferred_simd_mode): Add preffered modes for MSA.
8290         (mips_vector_mode_supported_p): Add MSA supported modes.
8291         (mips_autovectorize_vector_sizes): New function.
8292         (mips_msa_output_division): Likewise.
8293         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
8294         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
8295         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
8296         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
8297         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
8298         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
8299         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
8300         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
8301         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
8302         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
8303         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
8304         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
8305         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
8306         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
8307         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
8308         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
8309         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
8310         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
8311         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
8312         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
8313         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
8314         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
8315         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
8316         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
8317         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
8318         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
8319         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
8320         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
8321         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
8322         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
8323         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
8324         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
8325         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
8326         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
8327         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
8328         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
8329         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
8330         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
8331         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
8332         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
8333         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
8334         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
8335         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
8336         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
8337         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8338         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8339         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8340         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8341         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
8342         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
8343         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
8344         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
8345         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
8346         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
8347         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
8348         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
8349         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
8350         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
8351         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
8352         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
8353         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
8354         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
8355         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
8356         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
8357         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
8358         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
8359         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
8360         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
8361         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
8362         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
8363         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
8364         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
8365         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
8366         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
8367         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
8368         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
8369         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
8370         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
8371         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
8372         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
8373         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
8374         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
8375         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
8376         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
8377         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
8378         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
8379         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
8380         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
8381         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
8382         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
8383         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
8384         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
8385         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
8386         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
8387         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
8388         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
8389         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
8390         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
8391         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
8392         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
8393         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
8394         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
8395         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
8396         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
8397         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
8398         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
8399         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
8400         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
8401         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
8402         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
8403         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
8404         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
8405         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
8406         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
8407         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
8408         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
8409         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
8410         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
8411         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
8412         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
8413         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
8414         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
8415         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
8416         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
8417         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
8418         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
8419         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
8420         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
8421         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
8422         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
8423         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
8424         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
8425         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
8426         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
8427         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
8428         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
8429         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
8430         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
8431         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
8432         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
8433         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
8434         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
8435         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
8436         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
8437         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
8438         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
8439         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
8440         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
8441         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
8442         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
8443         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
8444         move_v builtins.
8445         (mips_get_builtin_decl_index): New array.
8446         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
8447         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
8448         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
8449         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
8450         (mips_init_builtins): Initialize mips_get_builtin_decl_index
8451         array.
8452         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8453         hook.
8454         (mips_expand_builtin_insn): Prepare operands for
8455         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
8456         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
8457         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
8458         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
8459         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
8460         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
8461         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
8462         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
8463         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
8464         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
8465         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
8466         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
8467         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
8468         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
8469         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
8470         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
8471         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
8472         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
8473         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
8474         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
8475         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
8476         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
8477         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
8478         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
8479         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
8480         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
8481         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
8482         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
8483         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
8484         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
8485         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
8486         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
8487         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
8488         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
8489         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
8490         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
8491         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
8492         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
8493         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
8494         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
8495         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
8496         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
8497         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
8498         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
8499         These are set implicitly and an error is reported if overridden.
8500         (mips_expand_builtin_msa_test_branch): New function.
8501         (mips_expand_msa_shuffle): Likewise.
8502         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
8503         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
8504         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
8505         (mips_expand_vec_unpack): Add support for MSA.
8506         (mips_expand_vector_init): Likewise.
8507         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
8508         instead of const0_rtx.
8509         (mips_msa_vec_parallel_const_half): New function.
8510         (mips_gen_const_int_vector): Likewise.
8511         (mips_gen_const_int_vector_shuffle): Likewise.
8512         (mips_expand_msa_cmp): Likewise.
8513         (mips_expand_vec_cond_expr): Likewise.
8514         * config/mips/mips.h
8515         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
8516         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
8517         specified.
8518         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
8519         (ISA_HAS_MSA): New macro.
8520         (UNITS_PER_MSA_REG): Likewise.
8521         (BITS_PER_MSA_REG): Likewise.
8522         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
8523         (MSA_REG_FIRST): New macro.
8524         (MSA_REG_LAST): Likewise.
8525         (MSA_REG_NUM): Likewise.
8526         (MSA_REG_P): Likewise.
8527         (MSA_REG_RTX_P): Likewise.
8528         (MSA_SUPPORTED_MODE_P): Likewise.
8529         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
8530         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
8531         * config/mips/mips.md: Include mips-msa.md.
8532         (alu_type): Add simd_add.
8533         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
8534         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
8535         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
8536         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
8537         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
8538         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
8539         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
8540         simd_move, simd_load, simd_store.  Choose "multi" for moves
8541         for "qword_mode".
8542         (qword_mode): New attribute.
8543         (insn_count): Add instruction count for quad moves.
8544         Increase the count for MIPS SIMD division.
8545         (UNITMODE): Add UNITMODEs for vector types.
8546         (addsub): New code iterator.
8547         * config/mips/mips.opt (mmsa): New option.
8548         * config/mips/msa.h: New file.
8549         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
8550         specified.
8551         * config/mips/mti-linux.h: Likewise.
8552         * config/mips/predicates.md
8553         (const_msa_branch_operand): New constraint.
8554         (const_uimm3_operand): Likewise.
8555         (const_uimm4_operand): Likewise.
8556         (const_uimm5_operand): Likewise.
8557         (const_uimm8_operand): Likewise.
8558         (const_imm5_operand): Likewise.
8559         (aq10b_operand): Likewise.
8560         (aq10h_operand): Likewise.
8561         (aq10w_operand): Likewise.
8562         (aq10d_operand): Likewise.
8563         (const_m1_operand): Likewise.
8564         (reg_or_m1_operand): Likewise.
8565         (const_exp_2_operand): Likewise.
8566         (const_exp_4_operand): Likewise.
8567         (const_exp_8_operand): Likewise.
8568         (const_exp_16_operand): Likewise.
8569         (const_vector_same_val_operand): Likewise.
8570         (const_vector_same_simm5_operand): Likewise.
8571         (const_vector_same_uimm5_operand): Likewise.
8572         (const_vector_same_uimm6_operand): Likewise.
8573         (const_vector_same_uimm8_operand): Likewise.
8574         (par_const_vector_shf_set_operand): Likewise.
8575         (reg_or_vector_same_val_operand): Likewise.
8576         (reg_or_vector_same_simm5_operand): Likewise.
8577         (reg_or_vector_same_uimm6_operand): Likewise.
8578         * doc/extend.texi (MIPS SIMD Architecture Functions): New
8579         section.
8580         * doc/invoke.texi (-mmsa): Document new option.
8582 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8584         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
8585         * configure: Regenerate.
8586         * config.in: Regenerate.
8587         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
8588         on -fvtable-verify.
8589         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
8590         (ENDFILE_VTV_SPEC): Define.
8592 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
8594         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
8595         registers in all interrupt handlers if necessary.
8596         (rl78_option_override): Add warning.
8597         (MUST_SAVE_MDUC_REGISTERS): New macro.
8598         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
8599         * config/rl78/rl78.c (check_mduc_usage): New function.
8600         (mduc_regs): New structure to hold MDUC register data.
8601         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
8602         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
8603         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
8604         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
8605         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
8606         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
8608 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
8610         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
8611         (tree-ssa-loop-niter.h): Ditto.
8612         (idx_within_array_bound, ref_within_array_bound): New functions.
8613         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
8614         Factor out check on writable base object to ...
8615         (base_object_writable): ... here.
8617 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8619         * config/arm/arm.md (probe_stack): Add modes to set source
8620         and destination.
8622 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
8624         * regrename.c (base_reg_class_for_rename): New static function.
8625         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
8627 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
8629         * cgraph.c (thunk_adjust): Export.
8630         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
8631         * cgraphunit.c (thunk_adjust): Export.
8632         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
8633         thunks.
8634         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
8635         inlinable.
8636         * tree-inline.c (expand_call_inline): Expand thunks inline.
8638 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
8640         PR target/70998
8641         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
8642         (*sse2_vd_cvtss2sd): Ditto.
8643         * config/i386/i386.md
8644         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
8645         Generate *sse2_vd_cvtsd2ss pattern.
8646         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
8647         Generate *sse2_vd_cvtss2sd pattern.
8649 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8651         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
8652         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
8653         users.
8655 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
8657         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
8658         * config/sh/sh.c: Define and declare variables on first use throughout
8659         the file.
8660         (current_function_interrupt): Change to bool type.
8661         (frame_insn): Rename to emit_frame_insn and update users.
8662         (push_regs): Use bool for 'interrupt_handler' argument.
8663         (save_schedule_s): Remove.
8664         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
8665         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
8666         targetm.asm_out.unaligned_op.di.
8667         (gen_far_branch): Remove redundant forward declaration.
8668         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
8669         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
8670         (sh_set_return_address, sh_function_ok_for_sibcall,
8671         scavenge_reg): Update comments.
8672         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
8673         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
8674         (sh_attr_renesas_p): Remove unnecessary parentheses.
8675         (branch_dest): Simplify.
8676         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
8677         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
8678         (CUMULATIVE_ARGS): Change macro to typedef.
8679         (current_function_interrupt): Change to bool type.
8680         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
8681         Surround with __cplusplus ifdef.
8682         (sh_compare_op0, sh_compare_op1): Remove.
8683         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
8685 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
8687         * config/arm/arm.md: (arch): Add neon.
8688         (arch_enabled): Return yes for arch neon when TARGET_NEON.
8689         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
8690         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
8691         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
8692         attributes for alt renumbering.  Mark alt 3 as non-predicable.
8693         (thumb2_movdf_vfp): Likewise.
8695 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
8697         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
8698         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
8699         (*andqi_1): Add preferred_for_speed attribute to disparage
8700         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
8701         (*<code>qi_1): Ditto.
8702         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
8703         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
8704         (*ashlqi3_1): Ditto.
8705         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
8706         Add preferred_for_size attribute to disparage alternative 0 and
8707         preferred_for_speed attribute to disparage alternative 1 for
8708         TARGET_PARTIAL_REG_STALL targets.
8710 2016-05-07  Tom de Vries  <tom@codesourcery.com>
8712         PR tree-optimization/70956
8713         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
8714         def.
8716 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
8718         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
8719         * config/sh/sh.c (sh_cbranch_distance): Implement it.
8720         * config/sh/sh.md (branch_zero): Remove define_attr.
8721         (define_delay): Disable delay slot if branch distance is one insn.
8723 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8725         * config/i386/i386.md (LEAMODE): New mode attribute.
8726         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
8727         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
8728         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
8729         operand 2 predicate.
8730         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
8731         (*lea<mode>_general_3): Ditto.
8732         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
8734 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8736         * genmddump.c (main): Convert argv from char ** to const char **.
8738 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8740         * coretypes.h (OVERRIDE): New macro.
8741         (FINAL): New macro.
8743 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
8745         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
8746         allow coalescing if the types are compatible.
8748 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8750         * pass_manager.h (pass_manager::register_pass_name): New method.
8751         (pass_manager::get_pass_by_name): New method.
8752         (pass_manager::create_pass_tab): New method.
8753         (pass_manager::m_name_to_pass_map): New field.
8754         * passes.c (name_to_pass_map): Delete global in favor of field
8755         "m_name_to_pass_map" of pass_manager.
8756         (register_pass_name): Rename from a function to...
8757         (pass_manager::register_pass_name): ...this method, updating
8758         for renaming of global "name_to_pass_map" to field
8759         "m_name_to_pass_map".
8760         (create_pass_tab): Rename from a function to...
8761         (pass_manager::create_pass_tab): ...this method, updating
8762         for renaming of global "name_to_pass_map" to field.
8763         (get_pass_by_name): Rename from a function to...
8764         (pass_manager::get_pass_by_name): ...this method.
8765         (enable_disable_pass): Convert use of get_pass_by_name to
8766         a method call, locating the pass_manager singleton.
8768 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
8770         * genattr-common.c (main): Convert argv from char ** to const char **.
8771         * genattr.c (main): Likewise.
8772         * genattrtab.c (main): Likewise.
8773         * genautomata.c (initiate_automaton_gen): Likewise.
8774         (main): Likewise.
8775         * gencodes.c (main): Likewise.
8776         * genconditions.c (main): Likewise.
8777         * genconfig.c (main): Likewise.
8778         * genconstants.c (main): Likewise.
8779         * genemit.c (main): Likewise.
8780         * genenums.c (main): Likewise.
8781         * genextract.c (main): Likewise.
8782         * genflags.c (main): Likewise.
8783         * genmddeps.c (main): Likewise.
8784         * genopinit.c (main): Likewise.
8785         * genoutput.c (main): Likewise.
8786         * genpeep.c (main): Likewise.
8787         * genpreds.c (main): Likewise.
8788         * genrecog.c (main): Likewise.
8789         * gensupport.c (init_rtx_reader_args_cb): Likewise.
8790         (init_rtx_reader_args): Likewise.
8791         * gensupport.h (init_rtx_reader_args_cb): Likewise.
8792         (init_rtx_reader_args): Likewise.
8793         * gentarget-def.c (main): Likewise.
8794         * read-md.c (read_md_files): Likewise.
8795         * read-md.h (read_md_files): Likewise.
8797 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8799         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
8800         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
8801         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
8802         Remove unused predicate.
8803         (register_and_not_fp_reg_operand): Ditto.
8805 2016-05-06  Martin Liska  <mliska@suse.cz>
8807         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
8808         instead of vec as the vector is local to the function.
8810 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
8812         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
8813         avx512bw alternative.
8815         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
8816         before the ashr<mode>3 pattern.
8818         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
8819         v instead of x in vex or maybe_vex alternatives, use
8820         maybe_evex instead of vex in prefix.
8822         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
8823         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
8824         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
8825         in vex or maybe_vex alternatives, use maybe_evex instead of vex
8826         in prefix.
8828         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
8829         v instead of x in vex or maybe_vex alternatives, use
8830         maybe_evex instead of vex in prefix.
8832         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
8833         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
8834         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
8835         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
8836         alternatives, use maybe_evex instead of vex in prefix.
8838         * config/i386/sse.md (vec_interleave_lowv4sf,
8839         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
8840         v instead of x in vex or maybe_vex alternatives, use
8841         maybe_evex instead of vex in prefix.
8843         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
8844         v instead of x in vex or maybe_vex alternatives, use
8845         maybe_evex instead of vex in prefix.
8847         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
8848         v constraint instead of x.
8850 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
8852         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
8853         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
8854         equality first.
8856 2016-05-06  Richard Biener  <rguenther@suse.de>
8858         PR tree-optimization/70948
8859         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8860         Properly clobber all fields of va_list for __builtin_va_start.
8862 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8864         PR debug/70935
8865         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
8866         loop latch destination.
8868 2016-05-06  Martin Liska  <mliska@suse.cz>
8870         * tree-ssa-uninit.c: Apply manual changes
8871         to the GNU coding style.
8872         (prune_uninit_phi_opnds): Rename from
8873         prune_uninit_phi_opnds_in_unrealizable_paths.
8875 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8877         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
8878         mspace): Remove deprecated options.
8879         * doc/invoke.texi (SH options): Remove -mspace.
8881 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8883         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
8885 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8887         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
8888         corresponding combine split pattern.
8890 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8892         PR target/58219
8893         * config/sh/predicates.md (long_displacement_mem_operand): New.
8894         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
8895         Add movi20, movi20s alternatives.  Adjust length attribute for
8896         alternatives.
8897         (movsi_ie): Allow for any FPU.  Adjust length attribute for
8898         alternatives.
8899         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
8900         attribute for alternatives.
8901         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
8902         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
8903         length attribute for alternatives.
8905 2016-05-06  Richard Biener  <rguenther@suse.de>
8907         PR tree-optimization/70960
8908         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
8910 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8912         PR target/52933
8913         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
8914         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
8916 2016-05-06  Marek Polacek  <polacek@redhat.com>
8918         PR sanitizer/70875
8919         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
8921 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
8923         PR target/54089
8924         * config/sh/sh.md (*rotcr): Add another variant.
8926 2016-05-06  Richard Biener  <rguenther@suse.de>
8928         PR middle-end/70931
8929         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
8931 2016-05-06  Richard Biener  <rguenther@suse.de>
8933         PR middle-end/70941
8934         * fold-const.c (split_tree): Always convert to the original type
8935         before negating.
8937 2016-05-06  Richard Biener  <rguenther@suse.de>
8939         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
8940         (fwprop_addr): Likewise.
8942 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
8944         PR target/70873
8945         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
8946         New prototype.
8947         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
8948         * config/i386/i386.md (push mem splitter): Use find_constant_src in
8949         the splitter condition.
8950         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
8951         the splitter condition.
8952         (FP float_extend load splitter): Ditto.
8954 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
8956         * config/i386/i386.md (peehole2 patterns): Change true_regnum
8957         to REGNO in all peephole2 patterns.
8958         (post-reload splitters): Change true_regnum to REGNO in
8959         post-reload splitters.
8960         (zero_extend splitters): Use general_reg_operand and
8961         nonimmediate_gr_operand predicates.
8963 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
8965         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
8966         v constraint instead of x.
8968 2016-05-05  Alan Modra  <amodra@gmail.com>
8970         PR target/68662
8971         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8972         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
8973         TARGET_NO_FP_IN_TOC for -mrelocatable.
8974         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
8975         TARGET_RELOCATABLE test.
8976         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8977         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8978         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8979         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8980         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8981         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8982         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8983         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
8984         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
8985         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
8986         Likewise.
8987         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
8988         (rs6000_stack_info): Likewise.
8989         (rs6000_elf_asm_out_constructor): Likewise.
8990         (rs6000_elf_asm_out_destructor): Likewise.
8991         (rs6000_elf_declare_function_name): Likewise.
8992         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
8993         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
8994         Don't define.
8996 2016-05-05  Alan Modra  <amodra@gmail.com>
8998         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
9000 2016-05-05  Alan Modra  <amodra@gmail.com>
9002         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
9003         out-of-line gpr restore for one or two regs if that would add
9004         a save of lr.
9006 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
9008         PR target/70873
9009         * config/i386/i386.md
9010         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
9011         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
9012         as operand 0 predicate.
9013         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
9014         Ditto.
9015         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
9016         Ditto.  Emit the pattern using RTX.
9018         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
9019         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
9020         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
9021         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
9022         Ditto.
9023         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
9024         sse_reg_operand as operand 0 predicate.
9026         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
9027         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
9028         instead of gen_rtx_REG.
9029         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
9030         Ditto.
9032 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9034         * function.c (emit_use_return_register_into_block): Delete.
9035         (gen_return_pattern): Delete.
9036         (emit_return_into_block): Delete.
9037         (active_insn_between): Delete.
9038         (convert_jumps_to_returns): Delete.
9039         (emit_return_for_exit): Delete.
9040         (thread_prologue_and_epilogue_insns): Delete all code dealing with
9041         simple_return for shrink-wrapped blocks.
9042         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
9043         end of blocks that need one.
9044         (get_unconverted_simple_return): Delete.
9045         (convert_to_simple_return): Delete.
9046         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
9047         (convert_to_simple_return): Ditto.
9049 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9051         * cfgcleanup.c (bb_is_just_return): New function.
9052         (try_optimize_cfg): Simplify jumps to return, branches to return,
9053         and branches around return.
9055 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
9057         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
9058         branch to a return.
9060 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9062         PR c++/70906
9063         PR c++/70933
9064         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
9065         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
9066         assert flags & OEP_HASH_CHECK, instead of asserting it
9067         never happens.  Handle TARGET_EXPR.
9068         * fold-const.c (operand_equal_p): For hash verification,
9069         or in OEP_HASH_CHECK into flags.
9071 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9073         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
9074         comment.
9075         (compute_samebase_partition_bases): Fix typo.
9077 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
9079         * config/i386/sse.md (vec_interleave_highv8sf,
9080         vec_interleave_lowv8sf, vec_interleave_highv4df,
9081         vec_interleave_lowv4df): Remove constraints from expanders.
9083         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
9085 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9087         * tree-inline.c (expand_call_inline): Fix path dealing with
9088         making lhs of call statement undefined.
9090 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
9092         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
9093         Check availability on NODE, too.
9094         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
9095         (cgraph_node::call_for_symbol_and_aliases): Likewise.
9096         (varpool_node::call_for_symbol_and_aliase): Likewise.
9097         * ipa-pure-const.c (add_new_function): Analyze all bodies.
9098         (propagate_pure_const): Propagate across interposable functions, too.
9099         (skip_function_for_local_pure_const): Do not skip interposable bodies
9100         with aliases.
9101         (pass_local_pure_const::execute): Update.
9103 2016-05-04  Marek Polacek  <polacek@redhat.com>
9105         * doc/invoke.texi: Document -Wdangling-else.
9107 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9109         * config.gcc: Error out when conflicting multilib is detected.  Do not
9110         loop over multilibs since no combination is legal.
9112 2016-05-04  Alan Modra  <amodra@gmail.com>
9114         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9115         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
9116         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
9117         Align .toc.
9119 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
9121         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
9122         Clean up p5600 comments.
9124 2016-05-04  Richard Biener  <rguenther@suse.de>
9126         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
9127         constructor simplifications.
9128         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
9130 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
9132         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
9133         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
9134         result.set_rtx is null instead of aborting.
9135         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
9136         Always enable.
9137         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
9138         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
9139         *mov<mode>_store_postinc): New patterns.
9141 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
9143         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
9144         as commutative.  Check both conversions are NOP.
9145         ((A & B) OP (C & B)): Remove.
9147 2016-05-04  Alan Modra  <amodra@gmail.com>
9149         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
9151 2016-05-04  Alan Modra  <amodra@gmail.com>
9153         PR target/70866
9154         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
9155         when cr2,3,4 are all fixed regs.
9157 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
9159         PR rtl-optimization/57193
9160         * opts.c (default_options_table): Revert OPT_frename_registers change.
9161         * doc/invoke.texi (-frename-registers, -O2): Likewise.
9163 2016-05-03  Martin Sebor  <msebor@redhat.com>
9165         PR c++/66561
9166         * builtins.c (fold_builtin_FILE): New function.
9167         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
9168         (fold_builtin_0): Call them.
9169         * gimplify.c (gimplify_call_expr): Remove the handling of
9170         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
9172         PR c++/66561
9173         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
9174         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
9175         constants.
9177         PR c++/66639
9178         * doc/extend.texi (Function Names as Strings): Update __func__,
9179         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
9180         constants.
9182 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9183             Richard Biener  <rguenther@suse.de>
9185         PR tree-optimization/70916
9186         * tree-if-conv.c: Include cfganal.h.
9187         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
9188         and remove_fake_exit_edges around the optimization pass.
9190 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
9192         * cgraph.c (symbol_table::create_edge): Set inline_failed.
9193         (cgraph_edge::make_direct): Likewise.
9194         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
9195         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
9196         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9197         (CIF_THUNK): New code.
9198         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
9199         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
9200         (compute_inline_parameters): Set inline_failed for thunks.
9201         (inline_analyze_function): Cleanup.
9202         * ipa-inline.c (can_inline_edge_p): Do not deal with
9203         call_stmt_cannot_inline_p.
9204         (can_early_inline_edge_p): Likewise.
9205         (early_inliner): Initialize inline_failed.
9206         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
9208 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
9210         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
9211         from nonimm_ssenomem_operand.
9212         (nonimm_ssenomem_operand): New predicate.
9213         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
9214         as operand 0 predicate.
9215         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
9216         Disable unsupported alternatives using "enabled" attribute.
9217         Use register_ssemem_operand as operand 0 predicate.
9218         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
9220 2016-05-03  Marek Polacek  <polacek@redhat.com>
9222         PR c/70859
9223         * input.c (expansion_point_location): New function.
9224         * input.h (expansion_point_location): Declare.
9226 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9228         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
9229         occurence with frame_offset_ ones.
9231 2016-05-03  Alan Modra  <amodra@gmail.com>
9233         PR rtl-optimization/70890
9234         * ira.c (combine_and_move_insns): When moving def_insn, remove
9235         equivs on use_insn.
9237 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9239         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
9240         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
9241         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
9242         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
9244 2016-05-03  Alan Modra  <amodra@gmail.com>
9246         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
9247         for SAVE_MULTIPLE/STORE_MULTIPLE.
9249 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9251         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9252         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
9254 2016-05-03  Richard Biener  <rguenther@suse.de>
9256         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
9257         default true.
9258         (gimplify_arg): Likewise.
9259         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
9260         re-writing the result to a decl if required.
9261         (internal_get_tmp_var): Add allow_ssa parameter
9262         and override into_ssa with it.
9263         (get_formal_tmp_var): Adjust.
9264         (get_initialized_tmp_var): Add allow_ssa parameter.
9265         (gimplify_arg): Add allow_ssa parameter and avoid generating
9266         SSA names for the result false.
9267         (gimplify_call_expr): If the call may return twice do not
9268         gimplify parameters into SSA.
9269         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
9270         (gimplify_modify_expr): Adjust assert.  For noreturn calls
9271         with a SSA name LHS adjust its def.
9272         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
9273         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
9274         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
9275         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
9276         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
9277         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
9278         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
9279         (optimize_target_teams): Do not allow SSA names for clause operands.
9280         (gimplify_expr): Likewise for where we mark the result addressable.
9281         * passes.def (pass_init_datastructures): Remove.
9282         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
9283         (rewrite_stmt): Likewise.
9284         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
9285         (replace_locals_op): Replace SSA names.
9286         (copy_gimple_seq_and_replace_locals): Init src_cfun.
9287         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
9288         * cgraph.c (release_function_body): Free CFG annotations only
9289         when we have a CFG.  Simplify.
9290         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
9291         force_gimple_operand instead of get_initialized_tmp_var.
9292         * tree-pass.h (make_pass_init_datastructures): Remove.
9293         * tree-ssa.c (execute_init_datastructures): Remove.
9294         (pass_data_init_datastructures): Likewise.
9295         (class pass_init_datastructures): Likewise.
9296         (make_pass_init_datastructures): Likewise.
9297         * omp-low.c (create_omp_child_function): Init SSA data structures.
9298         (grid_expand_target_grid_body): Likewise.
9299         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
9300         name before adding it to names_to_release.
9301         (remove_bb): Always release SSA defs.
9302         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
9303         before dereferencing it.
9304         * cgraphunit.c (init_lowered_empty_function): Always
9305         int SSA data structures.
9306         * tree-ssanames.c (release_defs): Remove assert that we are in
9307         SSA form.
9308         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
9310 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9311             Uros Bizjak  <ubizjak@gmail.com>
9313         PR rtl-optimization/70467
9314         * config/i386/predicates.md (x86_64_hilo_int_operand,
9315         x86_64_hilo_general_operand): New predicates.
9316         * config/i386/constraints.md (Wd): New constraint.
9317         * config/i386/i386.md (mode attr di): Use Wd instead of e.
9318         (general_hilo_operand): New mode attr.
9319         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
9320         instead of <general_operand>.
9321         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
9322         x86_64_hilo_general_operand instead of <general_operand>.
9324 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
9326         PR tree-optimization/70916
9327         * tree-if-conv.c (constant_or_ssa_name): Removed.
9328         (fold_build_cond_expr): Use is_gimple_val instead of
9329         constant_or_ssa_name.
9331         PR tree-optimization/70916
9332         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
9333         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
9335         PR target/49244
9336         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
9337         (optimize_atomic_bit_test_and): New function.
9338         (pass_fold_builtins::execute): Use it.
9339         * optabs.def (atomic_bit_test_and_set_optab,
9340         atomic_bit_test_and_complement_optab,
9341         atomic_bit_test_and_reset_optab): New optabs.
9342         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
9343         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
9344         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
9345         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
9346         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
9347         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
9348         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
9349         * doc/md.texi (atomic_bit_test_and_set@var{mode},
9350         atomic_bit_test_and_complement@var{mode},
9351         atomic_bit_test_and_reset@var{mode}): Document.
9352         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
9353         atomic_bit_test_and_complement<mode>,
9354         atomic_bit_test_and_reset<mode>): New expanders.
9355         (atomic_bit_test_and_set<mode>_1,
9356         atomic_bit_test_and_complement<mode>_1,
9357         atomic_bit_test_and_reset<mode>_1): New insns.
9359 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
9361         PR rtl-optimization/70687
9362         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
9363         instead of unsigned HOST_WIDE_INT.
9365 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
9367         PR rtl-optimization/44281
9368         * hard-reg-set.h (struct target_hard_regs): New field
9369         x_fixed_nonglobal_reg_set.
9370         (fixed_nonglobal_reg_set): New macro.
9371         * reginfo.c (init_reg_sets_1): Initialize it.
9372         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
9373         of fixed_reg_set.
9374         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
9376 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9378         PR tree-optimization/56541
9379         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
9380         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
9381         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
9382         (any_complicated_phi): new static variable.
9383         (aggressive_if_conv): delete.
9384         (if_convertible_phi_p): support phis with more than two arguments.
9385         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
9386         critical pred edges.
9387         (ifcvt_split_critical_edges): support phis with more than two
9388         arguments by checking new parameter.  only split critical edges
9389         if needed.
9390         (tree_if_conversion): handle simd pragma marked loop using new
9391         local variable aggressive_if_conv.  check any_complicated_phi.
9393 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9395         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
9396         before using it.
9398 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
9400         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
9401         cbase.
9403 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
9405         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
9406         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
9407         define_insn_and_split.
9408         (mulsi3_i): New define_insn_and_split.
9409         (mulsi3_call): Convert to define_insn.
9410         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
9411         Remove constraints.
9413 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9415         * machmode.h (mode_complex): Add support to give the complex mode
9416         for a given mode.
9417         (GET_MODE_COMPLEX_MODE): Likewise.
9418         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
9419         stored by build_complex_type and gfc_build_complex_type instead of
9420         trying to figure out the appropriate mode based on the size. Raise
9421         an assertion error, if the type was not set.
9422         * genmodes.c (struct mode_data): Add field for the complex type of
9423         the given type.
9424         (blank_mode): Likewise.
9425         (make_complex_modes): Remember the complex mode created in the
9426         base type.
9427         (emit_mode_complex): Write out the mode_complex array to map a
9428         type mode to the complex version.
9429         (emit_insn_modes_c): Likewise.
9430         * tree.c (build_complex_type): Set the complex type to use before
9431         calling layout_type.
9432         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
9433         support for __float128 complex datatypes.
9434         (rs6000_hard_regno_mode_ok): Likewise.
9435         (rs6000_setup_reg_addr_masks): Likewise.
9436         (rs6000_complex_function_value): Likewise.
9437         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
9438         __float128 and __ibm128 complex.
9439         (FLOAT128_IBM_P): Likewise.
9440         (ALTIVEC_ARG_MAX_RETURN): Likewise.
9441         * doc/extend.texi (Additional Floating Types): Document that
9442         -mfloat128 must be used to enable __float128.  Document complex
9443         __float128 and __ibm128 support.
9445 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9447         PR target/49244
9448         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
9449         char/short arguments promoted to int because of promote_prototypes.
9451 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9453         * config/i386/predicates.md (register_ssemem_operand): New predicate.
9454         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
9455         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
9456         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
9457         alternatives using "enabled" attribute.  Use register_ssemem_operand
9458         as operand 1 predicate.
9459         (*cmpi<unord>xf_i387): Split XFmode pattern from
9460         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
9461         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
9462         *absneg<mode>2_i387.  Disable unsupported alternatives using
9463         "enabled" attribute.
9464         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
9466 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9468         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
9469         marker.
9470         (oacc_loop_process): Check mask for loop termination.
9472 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9474         * cif-code.def (CIF_THUNK): Add.
9475         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
9476         accidental change.
9478 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
9480         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
9481         (dump_inline_summary): Dump it.
9482         (fp_expression_p): New predicate.
9483         (estimate_function_body_sizes): Use it.
9484         (inline_merge_summary): Merge fp_expressions.
9485         (inline_read_section): Read fp_expressions.
9486         (inline_write_summary): Write fp_expressions.
9487         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
9488         codegen boundary if either caller or callee is !fp_expressions.
9489         * ipa-inline.h (inline_summary): Add fp_expressions.
9490         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
9491         to fp_expressions be sure the fp generation flags are updated.
9493 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
9495         PR rtl-optimization/70467
9496         * cse.c (cse_insn): Handle no-op MEM moves after folding.
9498         PR rtl-optimization/70467
9499         * ipa-pure-const.c (check_call): Handle internal calls even in
9500         ipa mode like in local mode.
9502 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9504         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
9506 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9508         * match.pd (X u< X, X u> X): New transformations.
9510 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
9512         * flag-types.h (enum warn_strict_overflow_code): Move ...
9513         * coretypes.h: ... here.
9514         * fold-const.h (fold_overflow_warning): Declare.
9515         * fold-const.c (fold_overflow_warning): Make non-static.
9516         (fold_comparison): Move the transformation of X +- C1 CMP C2
9517         into X CMP C2 -+ C1 ...
9518         * match.pd: ... here.
9519         * gimple-fold.c (fold_stmt_1): Protect with
9520         fold_defer_overflow_warnings.
9522 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
9524         * omp-low.c (struct oacc_loop): Add 'inner' field.
9525         (new_oacc_loop_raw): Initialize it to zero.
9526         (oacc_loop_fixed_partitions): Initialize it.
9527         (oacc_loop_auto_partitions): Partition outermost loop to outermost
9528         available partitioning.
9530 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9532         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
9533         register_operand.
9534         (umulsidi3): Likewise.
9535         (indirect_jump): Fix jump instruction assembly patterns.
9537 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
9539         PR target/70860
9540         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
9541         (nvptx_function_value): Assert non-NULL cfun.
9543 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
9545         PR rtl-optimization/70886
9546         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
9548         * cselib.h (rtx_equal_for_cselib_1): Declare.
9549         (rtx_equal_for_cselib_p: New inline function.
9550         * cselib.c (rtx_equal_for_cselib_p): Delete.
9551         (rtx_equal_for_cselib_1): Make public.
9553 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
9555         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
9556         (register_mixssei387nonimm_operand): Remove predicate.
9557         * config/i386/i386.md (*fop_<mode>_comm): Merge from
9558         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
9559         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
9560         for TARGET_MIX_SSE_I387 alternatives.
9561         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
9562         Disable unsupported alternatives using "enabled" attribute.  Use
9563         nonimm_ssenomem_operand as operand 1 predicate.  Also check
9564         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
9566 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9568         * tree.c (cst_and_fits_in_hwi): Simplify.
9570 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9572         * tree.h (wi::to_wide): New function.
9573         * expr.c (expand_expr_real_1): Use wi::to_wide.
9574         * fold-const.c (int_const_binop_1): Likewise.
9575         (extract_muldiv_1): Likewise.
9577 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9579         * wide-int.h: Update offset_int and widest_int documentation.
9580         (WI_SIGNED_SHIFT_RESULT): New macro.
9581         (wi::binary_shift): Define signed_shift_result_type for
9582         shifts on offset_int- and widest_int-like types.
9583         (generic_wide_int): Support <<= and >>= if << and >> are supported.
9584         * tree.h (int_bit_position): Use shift operators instead of wi::
9585          shifts.
9586         * alias.c (adjust_offset_for_component_ref): Likewise.
9587         * expr.c (get_inner_reference): Likewise.
9588         * fold-const.c (fold_comparison): Likewise.
9589         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
9590         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
9591         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9592         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
9593         (stmt_kills_ref_p): Likewise.
9594         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
9595         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
9596         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9597         (ao_ref_init_from_vn_reference): Likewise.
9599 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
9601         * wide-int.h: Update offset_int and widest_int documentation.
9602         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
9603         (wi::binary_traits): Allow ordered comparisons between offset_int and
9604         offset_int, between widest_int and widest_int, and between either
9605         of these types and basic C types.
9606         (operator <, <=, >, >=): Define for the same combinations.
9607         * tree.h (tree_int_cst_lt): Use comparison operators instead
9608         of wi:: comparisons.
9609         (tree_int_cst_le): Likewise.
9610         * gimple-fold.c (fold_array_ctor_reference): Likewise.
9611         (fold_nonarray_ctor_reference): Likewise.
9612         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
9613         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
9614         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
9615         * tree-sra.c (completely_scalarize): Likewise.
9616         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
9617         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
9618         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9619         (check_for_binary_op_overflow): Likewise.
9620         (search_for_addr_array): Likewise.
9621         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
9623 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9625         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
9626         (arc_save_restore): Likewise.
9627         (arc_dwarf_register_span): Likewise.
9628         (arc_output_pic_addr_const): Initialize suffix variable.
9630 2016-05-02  Martin Liska  <mliska@suse.cz>
9632         * symbol-summary.h (function_summary::function_summary):
9633         Remove checking assert for all cgraph nodes.
9634         (function_summary::get): Check summary_uid.
9635         (symtab_insertion): Check summary_uid.
9637 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
9639         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
9640         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
9641         bmaskn instruction.
9642         (arc_dwarf_register_span): Remove enum keyword.
9643         (compact_memory_operand_p): New function.
9644         * config/arc/arc.h (reg_class): Add code density register classes.
9645         (REG_CLASS_NAMES): Likewise.
9646         (REG_CLASS_CONTENTS): Likewise.
9647         * config/arc/arc.md (*movqi_insn): Add code density instructions.
9648         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
9649         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
9650         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
9651         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
9652         constraints.
9653         (h, Rcd, Rsd, Rzd): New register constraints.
9654         (T): Use compact_memory_operand_p function.
9655         * config/arc/predicates.md (compact_load_memory_operand): Remove.
9657 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9659         * config/sh/sh.md (*negnegt, *movtt): Remove.
9661 2016-05-02  Marek Polacek  <polacek@redhat.com>
9662             Tom de Vries  <tom@codesourcery.com>
9664         PR tree-optimization/70700
9665         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
9666         bigger than FIRST_REF_NODE.
9668 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
9670         PR target/52898
9671         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
9672         TARGET_CMPEQDI_T.
9673         (prepare_cbranch_operands): Don't use scratch register.  Assume that
9674         function is used when pseudos can be created.
9675         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
9676         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
9677         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
9678         define_expand.  Allow it only when pseudos can be created.
9679         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
9681 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
9683         * config/i386/constraints.md (BC): Only allow -1 operands.
9684         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
9685         Add "enabled" attribute.  Update XI mode attribute calculation.
9686         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
9687         (*movoi_internal_avx): Update XI mode attribute calculation.
9688         (*movti_internal): Ditto.
9690 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9692         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
9693         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
9695 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
9697         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
9698         statement on instruction code.  Remove trailing spaces.
9699         (altivec_expand_stv_builtin): Likewise.
9701 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9703         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
9704         (TARGET_FPU_DOUBLE): Simplify.
9705         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
9706         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
9707         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
9708         with 'TARGET_FPU_DOUBLE'.
9709         * config/sh/sh.md: Likewise.
9711 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
9713         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
9714         SH_DIV_STR_FOR_SIZE): Remove.
9715         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
9716         SH_DIV_STR_FOR_SIZE): Remove.
9718 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
9720         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
9721         logical_reg_operand): Delete.
9722         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
9723         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
9724         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
9725         match_operand and match_test.
9726         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
9727         variables on their first use.  Return bool values.
9728         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
9729         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
9730         arith_reg_operand for input operand.  Remove empty constraints.
9731         (xorsi3): Delete.
9732         (*xorsi3_compact): Rename to xorsi3.
9733         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
9734         (*zero_extend<mode>si2_disp_mem): Update comment.
9735         (mov_nop): Delete.
9737 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9739         * config/sh/t-sh: Remove SH5 support.
9740         * config.gcc: Likewise.
9741         * configure: Likewise.
9743 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9745         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
9747 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
9749         * config/sh/sh.c (register_sh_passes, sh_option_override,
9750         sh_print_operand, prepare_move_operands,
9751         sh_can_follow_jump): Remove TARGET_SH1 checks.
9752         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
9753         PROMOTE_MODE): Likewise.
9754         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
9755         movdi): Likewise.
9757 2016-04-30  Alan Modra  <amodra@gmail.com>
9759         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
9760         restoring when fixed_reg_p, but allow out-of-line or stmw save.
9761         Check for user regs later to avoid unnecessary looping over regs.
9762         Merge user reg check with non-saved reg check.  Don't force
9763         inline VR restore when static chain used.
9764         (rs6000_frame_related): Omit eh_frame info for user regs when
9765         saving.
9766         (fixed_regs_p): Delete.
9768 2016-04-30  Alan Modra  <amodra@gmail.com>
9770         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
9771         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
9772         Update all uses.
9774 2016-04-30  Alan Modra  <amodra@gmail.com>
9776         PR target/69645
9777         * config/rs6000/rs6000.c (fixed_reg_p): New function.
9778         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
9779         Update all uses.
9781 2016-04-30  Alan Modra  <amodra@gmail.com>
9783         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
9784         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
9785         flag_pic test for Darwin.
9787 2016-04-30  Alan Modra  <amodra@gmail.com>
9789         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
9790         throw_calls_crossed.
9791         (REG_FREQ_CALLS_CROSSED): Delete.
9792         (REG_N_THROWING_CALLS_CROSSED): Delete.
9793         * regstat.c (regstat_bb_compute_ri): Don't calculate
9794         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
9795         (dump_reg_info): Don't print call cross frequency.
9796         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
9797         and REG_N_THROWING_CALLS_CROSSED.
9799 2016-04-30  Alan Modra  <amodra@gmail.com>
9801         * regs.h (struct reg_info_t): Delete live_length.
9802         (REG_LIVE_LENGTH): Delete macro.
9803         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
9804         local_live, local_processed and local_live_last_luid params.
9805         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
9806         Formatting fixes.
9807         (regstat_compute_ri): Adjust for above.  Don't set
9808         REG_LIVE_LENGTH.
9809         (dump_reg_info): Don't print live length.
9810         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
9811         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
9812         Localize loop_depth var.
9814 2016-04-30  Alan Modra  <amodra@gmail.com>
9816         * ira.c (enum valid_equiv): New.
9817         (validate_equiv_mem): Return enum.
9818         (update_equiv_mem): Create replacement in more cases.
9819         (add_store_equivs): Update validate_equiv_mem call.
9821 2016-04-30  Alan Modra  <amodra@gmail.com>
9823         * ira.c (combine_and_move_insns): Rather than scanning insns,
9824         use DF infrastucture to find use and def insns.
9826 2016-04-30  Alan Modra  <amodra@gmail.com>
9828         ira.c (combine_and_move_insns): Move invariant conditions..
9829         (ira.c): ..to here.  Call combine_and_move_insns before
9830         add_store_equivs.  Call grow_reg_equivs later.  Allocate
9831         req_equiv later using max_reg_num() rather than global max_regno.
9832         (contains_replace_regs): Delete.
9833         (add_store_equivs): Remove contains_replace_regs test.
9835 2016-04-30  Alan Modra  <amodra@gmail.com>
9837         * ira.c (struct equiv_mem_data): New.
9838         (equiv_mem, equiv_mem_modified): Delete static vars.
9839         (validate_equiv_mem_from_store): Use "data" param to communicate..
9840         (validate_equiv_mem): ..from here.
9842 2016-04-30  Alan Modra  <amodra@gmail.com>
9844         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
9845         split out from..
9846         (update_reg_equivs): ..here.  Move allocation and freeing of
9847         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
9848         end_alias_analysis to..
9849         (ira): ..here.
9851 2016-04-30  Alan Modra  <amodra@gmail.com>
9853         * ira.c (pdx_subregs): Delete.
9854         (struct equivalence): Add pdx_subregs field.
9855         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
9856         pdx_subregs access.
9857         (update_equiv_regs): Don't create or free pdx_subregs.  Update
9858         pdx_subregs access.
9860 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9862         * config/rs6000/altivec.h: Change definitions of vec_xl and
9863         vec_xst.
9864         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
9865         (LD_ELEMREV_V2DI): New.
9866         (LD_ELEMREV_V4SF): New.
9867         (LD_ELEMREV_V4SI): New.
9868         (LD_ELEMREV_V8HI): New.
9869         (LD_ELEMREV_V16QI): New.
9870         (ST_ELEMREV_V2DF): New.
9871         (ST_ELEMREV_V2DI): New.
9872         (ST_ELEMREV_V4SF): New.
9873         (ST_ELEMREV_V4SI): New.
9874         (ST_ELEMREV_V8HI): New.
9875         (ST_ELEMREV_V16QI): New.
9876         (XL): New.
9877         (XST): New.
9878         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9879         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
9880         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
9881         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
9882         (altivec_expand_builtin): Add handling for
9883         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
9884         (rs6000_invalid_builtin): Add error-checking for
9885         RS6000_BTM_P9_VECTOR.
9886         (altivec_init_builtins): Define builtins used to implement vec_xl
9887         and vec_xst.
9888         (rs6000_builtin_mask_names): Define power9-vector.
9889         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
9890         (RS6000_BTM_P9_VECTOR): Define.
9891         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
9892         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
9893         (vsx_ld_elemrev_v2df): Likewise.
9894         (vsx_ld_elemrev_v4sf): Likewise.
9895         (vsx_ld_elemrev_v4si): Likewise.
9896         (vsx_ld_elemrev_v8hi): Likewise.
9897         (vsx_ld_elemrev_v16qi): Likewise.
9898         (vsx_st_elemrev_v2df): Likewise.
9899         (vsx_st_elemrev_v2di): Likewise.
9900         (vsx_st_elemrev_v4sf): Likewise.
9901         (vsx_st_elemrev_v4si): Likewise.
9902         (vsx_st_elemrev_v8hi): Likewise.
9903         (vsx_st_elemrev_v16qi): Likewise.
9904         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
9905         grammar.
9907 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
9909         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
9910         out into ...
9911         (simplify_control_stmt_condition_1): ... here.  Recurse into
9912         BIT_AND_EXPRs and BIT_IOR_EXPRs.
9914 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
9916         PR target/69810
9917         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
9918         (zero_extendqi<mode>2_dot): Revert earlier conversion from
9919         define_insn_and_split to define_insn.
9920         (zero_extendqi<mode>2_dot2): Same.
9921         (extendqi<mode>2_dot): Same.
9922         (extendqi<mode>2_dot2): Same.
9924 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9926         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
9927         (probe_stack): New expander.
9928         (probe_stack_<mode>): New insn pattern.
9930 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9932         * config/i386/i386.md
9933         (operations with memory inputs setting flags peephole2):
9934         Remove uneeded REG_P checks.  Cleanup pattern generation.
9936 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9938         * tree-vect-loop.c (vect_transform_loop): Fix
9939         nb_iterations_upper_bound computation for vectorized loop.
9941 2016-04-29  Marek Polacek  <polacek@redhat.com>
9942             Jakub Jelinek  <jakub@redhat.com>
9944         PR sanitizer/70342
9945         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
9946         TARGET_EXPR_SLOT as a base.
9948 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
9950         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
9951         with 'rCm2' constraints to limit possible immediate size.
9952         (*load_zeroextendqisi_update): Likewise.
9953         (*load_signextendqisi_update): Likewise.
9954         (*loadhi_update): Likewise.
9955         (*load_zeroextendhisi_update): Likewise.
9956         (*load_signextendhisi_update): Likewise.
9957         (*loadsi_update): Likewise.
9958         (*loadsf_update): Likewise.
9960 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
9962         * config/i386/predicates.md (constm1_operand): Fix comparison.
9964 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
9966         * testsuite/gcc.target/arc/ieee_eq.c: New test.
9968 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
9970         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
9971         remaining SH5 related settings.
9972         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
9973         shmedia_prepare_call_address): Delete.
9974         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
9975         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
9976         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
9977         UNSUPPORTED_SH2A): Remove m5 checks.
9978         (sh_divide_strategy_e): Remove SH5 division strategies.
9979         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
9980         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
9982 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9984         * config/s390/s390.c (s390_rtx_costs): Update documentation.
9986 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9988         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
9989         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
9990         Change lder to ldr.
9991         * config/s390/vector.md ("mov<mode>"): Likewise.
9993 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
9995         * config/s390/constraints.md ("U", "W"): Invoke
9996         s390_mem_constraint with "ZR" and "ZT".
9997         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
9998         addresses when using LRA.  Accept also short displacements for S
9999         and T constraints.  Do not check for long displacement target for
10000         S and T constraints.
10001         (s390_mem_constraint): Remove handling of U and W constraints.
10002         * config/s390/s390.md (various patterns): Remove the short
10003         displacement constraints (Q and R) if a long displacement
10004         constraint is present.  Add longdisp as required CPU capability.
10005         * config/s390/vector.md: Likewise.
10006         * config/s390/vx-builtins.md: Likewise.
10008 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10010         PR target/60040
10011         * reload1.c (reload): Call finish_spills before
10012         restarting reload loop. Skip select_reload_regs
10013         if update_eliminables_and_spill returns true.
10015 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
10017         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
10018         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
10019         (umulhisi3_imm): Update predicates and constraint letters.
10020         (umulhisi3_reg): Declare instruction as commutative.
10021         * config/arc/constraints.md (J12, J16): New constraints.
10022         * config/arc/predicates.md (short_unsigned_const_operand): New
10023         predicate.
10024         (arc_short_operand): Likewise.
10025         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
10027 2016-04-29  Richard Biener  <rguenther@suse.de>
10029         PR tree-optimization/13962
10030         PR tree-optimization/65686
10031         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
10032         * tree-ssa-alias.c (ptrs_compare_unequal): New function
10033         using PTA to compare pointers.
10034         * match.pd: Add pattern for pointer equality compare simplification
10035         using ptrs_compare_unequal.
10037 2016-04-29  Richard Biener  <rguenther@suse.de>
10039         * stor-layout.c (layout_type): Do not build a pointer-to-element
10040         type for arrays.
10042 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
10044         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
10045         Use SWI mode iterator.  Use general_reg_operand predicate.
10046         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
10047         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
10048         predicates.
10050 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
10052         PR middle-end/70843
10053         * fold-const.c (operand_equal_p): Don't verify hash value equality
10054         if arg0 == arg1.
10055         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
10056         and OMP_CLAUSE.
10058 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10060         PR target/70858
10061         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
10062         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
10063         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
10064         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
10065         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
10067 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10069         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
10070         to info.  Don't initialize separate fields to 0.  Clean up
10071         formatting a bit.
10073 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10075         * config/i386/i386.md (peephole2s for operations with memory inputs):
10076         Use SWI mode iterator.
10077         (peephole2s for operations with memory outputs): Ditto.
10078         Do not check for stack checking probe.
10080         (probe_stack): Remove expander.
10082 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10083             Andrew Burgess  <andrew.burgess@embecosm.com>
10085         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
10086         operands as 32-bits.
10088 2016-04-28  Jason Merrill  <jason@redhat.com>
10090         * gdbinit.in: Skip line-map.h.
10092 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10093             Andrew Burgess  <andrew.burgess@embecosm.com>
10095         * config/arc/arc.c (arc_conditional_register_usage): Take
10096         TARGET_RRQ_CLASS into account.
10097         (arc_print_operand): Support printing 'p' and 's' operands.
10098         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
10099         as 0.
10100         (TARGET_RRQ_CLASS): Define.
10101         (IS_POWEROF2_OR_0_P): Define.
10102         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
10103         alternatives.
10104         (*tst_movb): New define_insn.
10105         (*tst): Avoid recognition if it could prevent '*tst_movb'
10106         combination; replace c/CnL with c/Chs alternative.
10107         (*tst_bitfield_tst): New define_insn.
10108         (*tst_bitfield_asr): New define_insn.
10109         (*tst_bitfield): New define_insn.
10110         (andsi3_i): Add Rrq variant.
10111         (extzv): New define_expand.
10112         (insv): New define_expand.
10113         (*insv_i): New define_insn.
10114         (*movb): New define_insn.
10115         (*movb_signed): New define_insn.
10116         (*movb_high): New define_insn.
10117         (*movb_high_signed): New define_insn.
10118         (*movb_high_signed + 1): New define_split pattern.
10119         (*mrgb): New define_insn.
10120         (*mrgb + 1): New define_peephole2 pattern.
10121         (*mrgb + 2): New define_peephole2 pattern.
10122         * config/arc/arc.opt (mbitops): New option for nps400, uses
10123         TARGET_NPS_BITOPS_DEFAULT.
10124         * config/arc/constraints.md (q): Make register class conditional.
10125         (Rrq): New register constraint.
10126         (Chs): New constraint.
10127         (Clo): New constraint.
10128         (Chi): New constraint.
10129         (Cbf): New constraint.
10130         (Cbn): New constraint.
10131         (C18): New constraint.
10132         (Cbi): New constraint.
10134 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10136         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
10137         dst->popcount.
10138         (bitmap_intersection_of_preds): Ditto.
10139         (bitmap_union_of_succs): Ditto.
10140         (bitmap_union_of_preds): Ditto.
10141         * sbitmap.c (do_popcount): Delete.
10142         (BITMAP_DEBUGGING): Delete.
10143         (sbitmap_verify_popcount): Delete.
10144         (sbitmap_alloc): Don't initialize the popcount field.
10145         (sbitmap_alloc_with_popcount): Delete.
10146         (sbitmap_resize): Don't resize the popcount array.
10147         (sbitmap_vector_alloc): Don't initialize the popcount field.
10148         (bitmap_copy): Don't copy the popcount array.
10149         (bitmap_clear): Don't clear the popcount array.
10150         (bitmap_clear): Delete the popcount array handling.
10151         (bitmap_ior_and_compl): Delete the popcount assert.
10152         (bitmap_not): Ditto.
10153         (bitmap_and_compl): Ditto.
10154         (bitmap_and): Delete the popcount array handling.
10155         (bitmap_xor): Ditto.
10156         (bitmap_ior): Ditto.
10157         (bitmap_or_and): Delete the popcount assert.
10158         (bitmap_and_or): Ditto.
10159         (popcount_table): Delete.
10160         (sbitmap_elt_popcount): Delete.
10161         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
10162         (bitmap_set_bit): Delete the popcount assert.
10163         (bitmap_clear_bit): Ditto.
10164         (sbitmap_free): Don't free the popcount array.
10165         (sbitmap_alloc_with_popcount): Delete declaration.
10166         (sbitmap_popcount): Ditto.
10168 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10169             Andrew Burgess  <andrew.burgess@embecosm.com>
10171         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
10172         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
10173         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
10174         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
10175         * config/arc/arc.opt (mcmem): New option.
10176         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
10177         supply length for r/m alternative.
10178         (*extendqisi2_ac): Likewise.
10179         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
10180         r/Uex alternative.
10181         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
10182         (movhi_insn): Likewise.
10183         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
10184         (*zero_extendqihi2_i): Add r/Ucm alternative.
10185         (*zero_extendqisi2_ac): Likewise.
10186         (*zero_extendhisi2_i): Likewise.
10187         * config/arc/constraints.md (Uex): New memory constraint.
10188         (Ucm): New define_constraint.
10189         * config/arc/predicates.md (long_immediate_loadstore_operand):
10190         Return 0 for MEM with cmem_address address.
10191         (cmem_address_0): New predicates.
10192         (cmem_address_1): Likewise.
10193         (cmem_address_2): Likewise.
10194         (cmem_address): Likewise.
10196 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10198         * config/rs6000/rs6000.c (machine_function): Rename
10199         insn_chain_scanned_p to spe_insn_chain_scanned_p.
10200         (rs6000_stack_info): Adjust.
10202 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
10203             Andrew Burgess  <andrew.burgess@embecosm.com>
10205         * config/arc/constraints.md (Usd): Convert to define_constraint.
10206         (Us<): Likewise.
10207         (Us>): Likewise.
10209 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10211         PR target/70821
10212         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
10213         Add new peephole2 where the first insn is *mov<mode>_or instead of
10214         *mov<mode>_internal.
10216 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
10218         * tracer.c (bb_seen): Make static.
10220 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
10222         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
10223         support, setup defaults.
10224         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
10225         * config/arc/arc.c (arc_init): Add NPS400 support.
10226         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
10227         (TARGET_ARC700): NPS400 is also an ARC700.
10228         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
10230 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
10232         PR target/70668
10233         * config/nds32/nds32.md (casesi): Don't access the operands array
10234         out of bounds.
10236 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10238         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
10239         (or $-1,reg peephole2): Ditto.
10240         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
10242 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
10244         * doc/extend.texi (Common Function Attributes) [optimize]:
10245         Discourage use of the optimize attribute.
10247 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
10249         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
10250         special case builtin.
10251         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
10252         ALTIVEC_BUILTIN_VEC_ADDE.
10253         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
10254         support for ALTIVEC_BUILTIN_VEC_ADDE.
10255         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
10256         for __builtin_vec_adde.
10258 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
10260         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
10261         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
10263 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10265         PR testsuite/70595
10266         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10267         attributes): Document cilkplus_runtime.
10269 2016-04-28  Martin Jambor  <mjambor@suse.cz>
10271         * tree-cfg.c (verify_expr): Verify that local declarations belong to
10272         this function.  Call verify_expr on MEM_REFs and bases of other
10273         handled_components.
10275 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10277         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
10278         for WORD_REGISTER_OPERATIONS to runtime check.
10280 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10282         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
10284 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10286         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
10287         big-endian compilation.
10288         * config/arc/arc.md (addf3): Likewise.
10289         (subdf3): Likewise.
10290         (muldf3): Likewise.
10292 2016-04-28  Richard Biener  <rguenther@suse.de>
10294         PR tree-optimization/70840
10295         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
10296         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
10297         Mark x * pow(x,c) -> pow(x,c+1) commutative.
10298         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
10300 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10302         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
10303         and explain why in a comment.
10305 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10307         * config/arc/arc.md (cpu_facility): Add fpx variant.
10308         (subdf3): Prohibit use reverse sub when assist operations option
10309         is enabled.
10310         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
10311         instructions only when FPX is enabled.
10312         * testsuite/gcc.target/arc/trsub.c: New test.
10314 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10316         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
10317         mult_operator when calculating "type" attribute.
10318         (*fop_<mode>_1_i387): Ditto.
10319         (*fop_xf_1_i387): Ditto.
10320         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
10321         Use std::swap to swap operands.  Use RTL expressions to generate
10322         converted pattern.
10324 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10325             Joern Rennecke  <joern.rennecke@embecosm.com>
10327         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
10328         declaration.
10329         (emit_pic_move): Remove.
10330         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
10331         * config/arc/arc.c (emit_pic_move): Removed.
10332         (TARGET_HAVE_TLS): Define.
10333         (arc_conditional_register_usage): Test for arc_tp_regno.
10334         (arc_print_operand, arc_print_operand_address): Handle TLS
10335         unspecs.
10336         (arc_needs_pcl_p): New function.
10337         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
10338         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
10339         (arc_raw_symbolic_reference_mentioned_p): Likewise.
10340         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
10341         (arc_legitimize_tls_address): Likewise.
10342         (DTPOFF_ZERO_SYM): Define.
10343         (arc_legitimize_pic_address): Make it static, handle TLS cases.
10344         (arc_output_pic_addr_const): Print TLS unspecs.
10345         (prepare_pic_move): New function, replaces emit_pic_move.
10346         (arc_legitimate_constant_p): Handle TLS unspecs.
10347         (arc_legitimate_address_p): Likewise.
10348         (arc_rewrite_small_data_p): Use assert for TLS constants.
10349         (prepare_move_operands): Use prepare_pic_move.
10350         (arc_legitimize_address): Legitimize tls addresses.
10351         (arc_epilogue_uses): Check for arc_tp_regno.
10352         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
10353         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
10354         Define.
10355         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
10356         Likewise.
10357         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
10358         %(arc_tls_extra_start_spec).
10359         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
10360         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
10361         (EH_USES): Define.
10362         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
10363         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
10364         (UNSPEC_TLS_OFF): Add.
10365         (R10_REG): Define.
10366         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
10367         (get_thread_pointersi): New patterns.
10368         * config/arc/arc.opt (mtp-regno): New option.
10369         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
10370         (move_dest_operand): Likewise.
10371         * configure: Regenerate.
10372         * configure.ac: Add arc*-*-* case to test for tls.
10373         * doc/invoke.texi (ARC options): Document mtp-regno.
10375 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
10377         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
10378         the new ARC HS SIMD instructions.
10379         (arc_preferred_simd_mode): New function.
10380         (arc_autovectorize_vector_sizes): Likewise.
10381         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
10382         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10383         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
10384         (arc_init_builtins): Add new SIMD builtin types.
10385         (arc_split_move): Handle 64 bit vector moves.
10386         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
10387         (TARGET_PLUS_QMACW): Define.
10388         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
10389         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
10390         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
10391         (VSUBADD4H): New builtins.
10392         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
10393         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
10395 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
10396             Matthias Klose  <doko@debian.org>
10398         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
10400 2016-04-28  Richard Biener  <rguenther@suse.de>
10402         PR middle-end/70777
10403         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
10404         canonicalization.
10406 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
10408         * common/config/sh/sh-common.c: Remove SH5 support.
10409         * config/sh/constraints.md: Likewise.
10410         * config/sh/config/sh/elf.h: Likewise.
10411         * config/sh/linux.h: Likewise.
10412         * config/sh/netbsd-elf.h: Likewise.
10413         * config/sh/predicates.md: Likewise.
10414         * config/sh/sh-c.c: Likewise.
10415         * config/sh/sh-protos.h: Likewise.
10416         * config/sh/sh.c: Likewise.
10417         * config/sh/sh.h: Likewise.
10418         * config/sh/sh.md: Likewise.
10419         * config/sh/sh.opt: Likewise.
10420         * config/sh/sync.md: Likewise.
10421         * config/sh/sh64.h: Delete.
10422         * config/sh/shmedia.h: Likewise.
10423         * config/sh/shmedia.md: Likewise.
10424         * config/sh/sshmedia.h: Likewise.
10425         * config/sh/t-netbsd-sh5-64: Likewise.
10426         * config/sh/t-sh64: Likewise.
10427         * config/sh/ushmedia.h: Likewise.
10429 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
10431         * config/i386/i386.md (sign_extend to memory peephole2s): Use
10432         general_reg_operand instead of register_operand predicate.
10434 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10436         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
10438 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
10440         * match.pd (A - B > A, A + B < A): New transformations.
10442 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
10444         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
10445         which defaults to true.  Emit an outer pair of parentheses only if
10446         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
10447         don't emit parentheses for the right-hand operand.
10449 2016-04-27  Jeff Law  <law@redhat.com>
10451         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
10453 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10455         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
10456         (altivec_lvx_<mode>_internal): Document.
10457         (altivec_lvx_<mode>_2op): New define_insn.
10458         (altivec_lvx_<mode>_1op): Likewise.
10459         (altivec_lvx_<mode>_2op_si): Likewise.
10460         (altivec_lvx_<mode>_1op_si): Likewise.
10461         (altivec_stvx_<mode>): Remove.
10462         (altivec_stvx_<mode>_internal): Document.
10463         (altivec_stvx_<mode>_2op): New define_insn.
10464         (altivec_stvx_<mode>_1op): Likewise.
10465         (altivec_stvx_<mode>_2op_si): Likewise.
10466         (altivec_stvx_<mode>_1op_si): Likewise.
10467         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10468         Expand vec_ld and vec_st during parsing.
10469         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
10470         changes.
10471         (altivec_expand_stvx_be): Likewise.
10472         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
10473         address-masking behavior in RTL.
10474         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
10475         address-masking behavior in RTL.
10476         (altivec_expand_builtin): Change builtin code arguments for calls
10477         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
10478         (insn_is_swappable_p): Avoid incorrect swap optimization in the
10479         presence of lvx/stvx patterns.
10480         (alignment_with_canonical_addr): New function.
10481         (alignment_mask): Likewise.
10482         (find_alignment_op): Likewise.
10483         (recombine_lvx_pattern): Likewise.
10484         (recombine_stvx_pattern): Likewise.
10485         (recombine_lvx_stvx_patterns): Likewise.
10486         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
10487         stvx patterns from expand.
10488         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
10489         expansions.
10490         (vector_altivec_store_<mode>): Likewise.
10492 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
10494         * config/aarch64/aarch64.md
10495         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
10496         remove the "fp" attributes.
10497         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
10498         add the "simd" attributes.
10499         (*movdf_aarch64): Likewise.
10500         (*movtf_aarch64): Remove the "fp" attributes.
10501         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
10502         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
10504 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10506         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
10507         rtx to rtx_code_label *.
10508         * rtl.h (maybe_set_first_label_num): Likewise.
10510 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10512         * df-core.c (df_add_problem): Make the problem param be const.
10513         (df_remove_problem): Make local "problem" be const.
10514         * df-problems.c (problem_RD): Make const.
10515         (problem_LR): Likewise.
10516         (problem_LIVE): Likewise.
10517         (problem_MIR): Likewise.
10518         (problem_CHAIN): Likewise.
10519         (problem_WORD_LR): Likewise.
10520         (problem_NOTE): Likewise.
10521         (problem_MD): Likewise.
10522         * df-scan.c (problem_SCAN): Likewise.
10523         * df.h (struct df_problem): Make field "dependent_problem" be
10524         const.
10525         (struct dataflow): Likewise for field "problem".
10526         (df_add_problem): Make param const.
10528 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10530         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
10531         inter-unit moves to/from vector registers are enabled.  Do not disable
10532         for TARGET_MMX.
10534 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10536         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
10537         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
10538         #define to...
10539         (enum df_problem_id): ...this new enum.
10540         (struct df_problem): Convert field "id" from "int" to
10541         enum df_problem_id.
10543 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
10545         * rtl.def: Update comment for "things in the instruction chain" to
10546         reflect the removal of the leading "i" field for INSN_UID in
10547         r210360.  Fix bogus apostrophe.
10549 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
10551         * config/i386/i386.md
10552         (lea arith with mem operand + setcc peephole2): Set operator mode.
10554 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
10556         PR target/70155
10557         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
10558         (dimode_scalar_to_vector_candidate_p): This.
10559         (timode_scalar_to_vector_candidate_p): New function.
10560         (scalar_to_vector_candidate_p): Likewise.
10561         (timode_check_non_convertible_regs): Likewise.
10562         (timode_remove_non_convertible_regs): Likewise.
10563         (remove_non_convertible_regs): Likewise.
10564         (remove_non_convertible_regs): Renamed to ...
10565         (dimode_remove_non_convertible_regs): This.
10566         (scalar_chain::~scalar_chain): Make it virtual.
10567         (scalar_chain::compute_convert_gain): Make it pure virtual.
10568         (scalar_chain::mark_dual_mode_def): Likewise.
10569         (scalar_chain::convert_insn): Likewise.
10570         (scalar_chain::convert_registers): Likewise.
10571         (scalar_chain::add_to_queue): Make it protected.
10572         (scalar_chain::emit_conversion_insns): Likewise.
10573         (scalar_chain::replace_with_subreg): Likewise.
10574         (scalar_chain::replace_with_subreg_in_insn): Likewise.
10575         (scalar_chain::convert_op): Likewise.
10576         (scalar_chain::convert_reg): Likewise.
10577         (scalar_chain::make_vector_copies): Likewise.
10578         (scalar_chain::convert_registers): New pure virtual function.
10579         (class dimode_scalar_chain): New class.
10580         (class timode_scalar_chain): Likewise.
10581         (scalar_chain::mark_dual_mode_def): Renamed to ...
10582         (dimode_scalar_chain::mark_dual_mode_def): This.
10583         (timode_scalar_chain::mark_dual_mode_def): New function.
10584         (timode_scalar_chain::convert_insn): Likewise.
10585         (dimode_scalar_chain::convert_registers): Likewise.
10586         (scalar_chain::compute_convert_gain): Renamed to ...
10587         (dimode_scalar_chain::compute_convert_gain): This.
10588         (scalar_chain::replace_with_subreg): Renamed to ...
10589         (dimode_scalar_chain::replace_with_subreg): This.
10590         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
10591         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
10592         (scalar_chain::make_vector_copies): Renamed to ...
10593         (dimode_scalar_chain::make_vector_copies): This.
10594         (scalar_chain::convert_reg): Renamed to ...
10595         (dimode_scalar_chain::convert_reg ): This.
10596         (scalar_chain::convert_op): Renamed to ...
10597         (dimode_scalar_chain::convert_op): This.
10598         (scalar_chain::convert_insn): Renamed to ...
10599         (dimode_scalar_chain::convert_insn): This.
10600         (scalar_chain::convert): Call convert_registers.
10601         (convert_scalars_to_vector): Change to scalar_chain pointer to
10602         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
10603         in 32-bit mode.  Delete scalar_chain pointer.  Call
10604         free_dominance_info in 64-bit mode.
10605         (pass_stv::gate): Remove TARGET_64BIT check.
10606         (ix86_option_override): Put the 64-bit STV pass before the CSE
10607         pass.
10609 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
10611         * dwarf2out.h (struct dw_loc_descr_node): Remove the
10612         dw_loc_frame_offset field.
10613         * dwarf2out.c (new_loc_descr): Likewise.
10614         (resolve_args_picking_1): Turn the VISITED hash set into a
10615         FRAME_OFFSET hash map. Use it to associate a frame offset to
10616         visited nodes. Remove uses of the CHECKING_P macro.
10617         (resolve_args_picking): Update call to resolve_args_picking_1.
10619 2016-04-27  Martin Liska  <mliska@suse.cz>
10621         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
10622         (free_loop_data): Release vuses of groups.
10624 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
10626         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
10627         instead of redundant use_id and boolean have_use_for.
10628         (struct iv_use): Change sub_id into group_id.  Remove field next.
10629         Move fields: related_cands, n_map_members, cost_map and selected
10630         to ...
10631         (struct iv_group): ... here.  New structure.
10632         (struct iv_common_cand): Use structure declaration directly.
10633         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
10634         (MAX_CONSIDERED_USES): Rename macro to ...
10635         (MAX_CONSIDERED_GROUPS): ... here.
10636         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
10637         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
10638         (dump_uses): Rename to ...
10639         (dump_groups): ... here.  Update all uses.
10640         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
10641         (find_induction_variables): Refactor format of dump information.
10642         (record_sub_use): Delete.
10643         (record_use): Update all uses.
10644         (record_group): New function.
10645         (record_group_use, find_interesting_uses_op): Call above functions.
10646         Update all uses.
10647         (find_interesting_uses_cond): Ditto.
10648         (group_compare_offset): New function.
10649         (split_all_small_groups): Rename to ...
10650         (split_small_address_groups_p): ... here.  Update all uses.
10651         (split_address_groups):  Update all uses.
10652         (find_interesting_uses): Refactor format of dump information.
10653         (add_candidate_1): Update all uses.  Remove redundant check on iv,
10654         base and step.
10655         (add_candidate, record_common_cand): Remove redundant assert.
10656         (add_iv_candidate_for_biv): Update use.
10657         (add_iv_candidate_derived_from_uses): Update all uses.
10658         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
10659         (alloc_use_cost_map): Ditto.
10660         (set_use_iv_cost, get_use_iv_cost): Rename to ...
10661         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
10662         (determine_use_iv_cost_generic): Ditto.
10663         (determine_group_iv_cost_generic): Ditto.
10664         (determine_use_iv_cost_address): Ditto.
10665         (determine_group_iv_cost_address): Ditto.
10666         (determine_use_iv_cost_condition): Ditto.
10667         (determine_group_iv_cost_cond): Ditto.
10668         (determine_use_iv_cost): Ditto.
10669         (determine_group_iv_cost): Ditto.
10670         (set_autoinc_for_original_candidates): Update all uses.
10671         (find_iv_candidates): Update all uses.  Refactor dump information.
10672         (determine_use_iv_costs): Ditto.
10673         (determine_iv_costs): Ditto.
10674         (iv_ca_cand_for_use): Rename to ...
10675         (iv_ca_cand_for_group): ... here.  Update all uses.
10676         (iv_ca_add_use, iv_ca_add_group): Ditto.
10677         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
10678         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
10679         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
10680         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
10681         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
10682         (create_new_iv, adjust_iv_update_pos): Ditto.
10683         (rewrite_use_address): Delete.
10684         (rewrite_use_address_1): Rename to ...
10685         (rewrite_use_address): ... here.
10686         (rewrite_use_compare): Update all uses.
10687         (rewrite_use): Delete.
10688         (rewrite_uses): Rename to ...
10689         (rewrite_groups): ... here.  Update all uses.
10690         (remove_unused_ivs, free_loop_data): Update all uses.
10691         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
10693 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10695         * rtlanal.c (nonzero_bits1): Convert preprocessor check
10696         for WORD_REGISTER_OPERATIONS to runtime check.
10698 2016-04-27  Richard Biener  <rguenther@suse.de>
10700         PR ipa/70760
10701         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
10702         aggregate_value_p to determine if a function result is
10703         returned by reference.
10704         (ipa_pta_execute): Functions having their address taken are
10705         not automatically nonlocal.
10707 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
10709         PR sanitizer/70683
10710         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
10711         * fold-const.c (operand_equal_p): If flag_checking and
10712         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
10713         and if it returns non-zero, assert iterative_hash_expr on both
10714         args is the same.
10716 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10718         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
10720 2016-04-27  Nick Clifton  <nickc@redhat.com>
10722         PR middle-end/49889
10723         * varasm.c (merge_weak): Generate an error if an attempt is made
10724         to convert a non-weak static function into a weak, public function.
10726 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10728         * params.def (MAX_PARTITION_SIZE): New param.
10729         * doc/invoke.texi: Document lto-max-partition.
10731 2016-04-27  Richard Biener  <rguenther@suse.de>
10733         PR ipa/70785
10734         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
10735         function cummulating used_from_other_partition, externally_visible
10736         and force_output from aliases.
10737         (refered_from_nonlocal_var): Likewise.
10738         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
10739         node flags properly.
10741 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
10743         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
10744         (-Wmemset-elt-size): New item.
10746 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10748         PR ada/70759
10749         * stor-layout.h (internal_reference_types): Delete.
10750         * stor-layout.c (reference_types_internal): Likewise.
10751         (internal_reference_types): Likewise.
10752         (layout_type) <REFERENCE_TYPE>: Adjust.
10754 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
10756         PR sanitizer/70683
10757         * tree.h (inchash::add_expr): Add FLAGS argument.
10758         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
10759         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
10760         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
10761         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
10762         if swap_tree_comparison (code) is smaller than code, hash that
10763         and arguments in the other order.  Hash CONVERT_EXPR the same
10764         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
10765         of ADDR_EXPR of decl as the decl itself.  Add or remove
10766         OEP_ADDRESS_OF from recursive flags as needed.  For
10767         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
10768         operands commutatively and only the third one normally.
10769         For internal CALL_EXPR hash in CALL_EXPR_IFN.
10771 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10773         * config/rtems.h (LIB_SPEC): Add -latomic.
10775 2016-04-27  Joel Sherrill  <joel@rtems.org>
10777         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
10778         xilink.ld and flags not relevant to RTEMS.
10780 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10782         * toplev.c (backend_init_target): Avoid calling init_reload when using
10783         LRA.
10785 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10787         * reorg.c (try_merge_delay_insns): Declare i and j inside the
10788         for loops rather than one for the whole function.
10790 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10792         * match.pd (X + CST CMP X): New transformation.
10794 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
10796         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
10797         * fold-const.c (fold_binary_loc): Remove 2 transformations
10798         superseded by match.pd.
10799         * match.pd (x+x -> x*2): Generalize to integers.
10801 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
10803         * config/i386/i386.md (operation on memory peephole): Duplicate an
10804         existing peephole and adapt it to match lea rather than an operation
10805         that clobbers CC.
10807         PR rtl-optimization/57193
10808         * opts.c (default_options_table): Add OPT_frename_registers at -O2
10809         and above.
10810         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
10812 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10814         * tree-if-conv.c (any_pred_load_store): New static variable.
10815         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
10816         any_pred_load_store instead of and_mask_load_store.
10817         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
10818         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
10819         (combine_blocks, tree_if_conversion): Ditto.
10821 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
10823         PR tree-optimization/70771
10824         PR tree-optimization/70775
10825         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
10826         virtual PHI nodes.  Delete parameter.
10827         (if_convertible_loop_p_1): Delete argument to above function.
10828         (predicate_all_scalar_phis): Delete code handling single-argument
10829         PHIs.
10830         (tree_if_conversion): Mark and update virtual SSA.
10832 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10834         PR target/61821
10835         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
10836         (x86_elf_aligned_common): Rename to ...
10837         (x86_elf_aligned_decl_common): ... this.
10838         Add decl arg.  Switch to .lbss for largecomm object.  Use
10839         LARGECOMM_SECTION_ASM_OP.
10840         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
10841         renaming.
10842         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
10843         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
10844         Pass new decl arg.
10845         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10846         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
10848 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10850         PR target/59407
10851         * config/i386/i386.c (SECTION_LARGE): Define.
10852         (x86_64_elf_select_section): Set it for large data/bss sections.
10853         Only clear SECTION_WRITE for .lrodata.
10854         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
10855         data/bss sections.
10856         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
10857         * varasm.c (default_elf_asm_named_section): Grow flagchars.
10858         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
10859         SECTION_MACH_DEP.
10860         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
10861         * doc/tm.texi: Regenerate.
10863 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
10865         PR bootstrap/70704
10866         * configure.ac (--enable-checking): Document extra flag, for
10867         non-release builds default to --enable-checking=yes,extra.
10868         If misc checking and extra checking, define CHECKING_P to 2 instead
10869         of 1.
10870         * common.opt (fchecking=): Add.
10871         * doc/invoke.texi (-fchecking=): Document.
10872         * doc/install.texi: Document --enable-checking changes.
10873         * configure: Regenerated.
10874         * config.in: Regenerated.
10876 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10878         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
10879         attribute instead of which_alternative.
10880         * config/i386/sse.md (*mov<mode>_internal): Ditto.
10881         Use EXT_REX_SSE_REG_P where appropriate.
10883 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10885         * config/i386/predicates.md (const0_operand): Do not match
10886         const_wide_int code.
10887         (const1_operand): Ditto.
10889 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10891         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
10892         for SSE constm1 operands and TARGET_AVX512VL.
10893         (*movti_internal): Ditto.
10894         (*mov<mode>_or): Use constm1_operand predicate.
10895         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
10896         for SSE vector_all_ones operands and TARGET_AVX512VL.
10897         * config/i386/predicates.md (constm1_operand): New predicate.
10898         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
10899         emission of constant -1 load.
10901 2016-04-25  Jason Merrill  <jason@redhat.com>
10903         * gdbinit.in: Skip is-a.h.
10905         * attribs.c (register_scoped_attributes): Fix logic.
10906         * attribs.h: Declare register_scoped_attributes.
10908 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10910         * config/rs6000/rs6000-builtin.def: Correct pasto error for
10911         stxvd2x and stxvw4x built-in functions.
10913 2016-04-25  DJ Delorie  <dj@redhat.com>
10915         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
10916         (ashrhi3): Likewise.
10917         (lshrhi3): Likewise.
10919 2016-04-25  Richard Biener  <rguenther@suse.de>
10921         PR tree-optimization/70780
10922         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10923         wasn't visited yet.
10924         (compute_antic): Mark blocks with abnormal preds as visited as
10925         they have a final empty antic-in solution already.
10927 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10929         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
10931 2016-04-25  Michael Collison  <michael.collison@linaro.org>
10933         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
10934         mode is VQI to improve mixed mode vectorization.
10935         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
10936         define_insn to match low half of signed vaddw.
10937         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
10938         define_insn to match high half of signed vaddw.
10939         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
10940         define_insn to match low half of unsigned vaddw.
10941         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
10942         define_insn to match high half of unsigned vaddw.
10943         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
10944         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10945         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
10946         for new function.
10947         (arm_simd_check_vect_par_cnst_half_p): Likewise.
10948         * config/arm/predicates.md (vect_par_constant_high): Support
10949         big endian and simplify by calling
10950         arm_simd_check_vect_par_cnst_half
10951         (vect_par_constant_low): Likewise.
10953 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
10955         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
10956         predicate for operand 2.
10958 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
10959             H.J. Lu  <hongjiu.lu@intel.com>
10961         * config/i386/i386-protos.h (standard_sse_constant_p): Add
10962         machine_mode argument.
10963         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
10964         constm1_rtx operands.  For VOIDmode constants, get mode from
10965         pred_mode.  Check mode size if the mode is supported by ABI.
10966         (standard_sse_constant_opcode): Do not use standard_constant_p.
10967         Strictly check ABI support for all-ones operands.
10968         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
10969         immediates. Update calls to standard_sse_constant_p.
10970         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
10971         (ix86_rtx_costs): Ditto.
10972         * config/i386/i386.md (*movxi_internal_avx512f): Use
10973         nonimmediate_or_sse_const_operand instead of vector_move_operand.
10974         Use (v,BC) alternative instead of (v,C). Use register_operand
10975         checks instead of MEM_P.
10976         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
10977         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
10978         isa attribute.  Use register_operand checks instead of MEM_P.
10979         (*movti_internal): Use nonimmediate_or_sse_const_operand for
10980         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
10981         alternative and corresponding sse2 isa attribute.
10982         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
10983         to standard_sse_constant_p.
10984         (FP constant splitters): Ditto.
10985         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
10986         (C): Ditto.
10987         * config/i386/predicates.md (constm1_operand): Remove.
10988         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
10989         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
10990         vector_all_ones_operand instead of constm1_operand.
10992 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10994         * print-rtl.c (print_rtx_insn_vec): New function.
10995         * print-rtl.h: New prototype.
10996         * store-motion.c (struct st_expr): Make avail_stores a vector.
10997         (st_expr_entry): Adjust.
10998         (free_st_expr_entry): Likewise.
10999         (print_store_motion_mems): Likewise.
11000         (find_moveable_store): Likewise.
11001         (compute_store_table): Likewise.
11002         (delete_store): Likewise.
11003         (build_store_vectors): Likewise.
11005 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11007         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
11009 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11011         * vec.h (vec_safe_contains): New function.
11012         (vec::contains): Likewise.
11013         (vec::begin): Likewise.
11014         (vec::end): Likewise.
11016 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
11018         PR sanitizer/70712
11019         * cfgexpand.c (expand_stack_vars): Fix typo.
11021 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11023         * system.h (list, map, set, vector): Include conditionally.
11024         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
11025         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
11026         * ipa-icf.c (INCLUDE_LIST): Define.
11027         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
11028         * config/sh/sh.c (INCLUDE_VECTOR): Define.
11029         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
11030         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
11031         * cp/logic.cc (INCLUDE_LIST): Define.
11032         * fortran/trans-common.c (INCLUDE_MAP): Define.
11034 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11036         * auto-profile.c: Remove <string.h> include.
11037         * ipa-icf-gimple.c: Remove <list> include.
11038         * diagnostic.c: Remove <new> include.
11039         * genmatch.c: Likewise.
11040         * pretty-print.c: Likewise.
11041         * toplev.c: Likewise
11042         * c/c-objc-common.c: Likewise.
11043         * cp/error.c: Likewise.
11044         * fortran/error.c: Likewise.
11046 2016-04-22  Richard Biener  <rguenther@suse.de>
11048         * lto-streamer-in.c (input_ssa_names): Do not allocate
11049         GIMPLE_NOP for all SSA names.
11050         * lto-streamer-out.c (output_ssa_names): Do not output
11051         SSA names that should have been released.
11053 2016-04-22  Richard Biener  <rguenther@suse.de>
11055         PR tree-optimization/70740
11056         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
11057         VDEF.
11059 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
11061         PR target/70750
11062         * config/i386/predicates.md (call_insn_operand): Replace
11063         sibcall_memory_operand with memory_operand.
11065 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
11067         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
11068         has_single_use() tests.
11069         (register_edge_assert_for_1): Likewise.
11070         (find_assert_locations_1): Check the liveness bitmap instead of
11071         checking has_single_use().
11073 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
11075         PR target/70728
11076         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
11077         Extract AVX-512BW constraint from AVX.
11079 2016-04-21  Richard Biener  <rguenther@suse.de>
11081         PR tree-optimization/70725
11082         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
11083         for phi_convertible_by_degenerating_args.
11084         (predicate_all_scalar_phis): Handle single-argument PHIs.
11086 2016-04-21  Richard Biener  <rguenther@suse.de>
11088         PR middle-end/70747
11089         * fold-const.c (fold_comparison): Return properly typed
11090         constant boolean.
11092 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
11094         PR tree-optimization/70715
11095         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
11096         after expanding BASE using expand_simple_operations.
11098 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11100         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
11101         New transformations.
11103 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
11105         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
11107 2016-04-20  Jan Hubicka  <jh@suse.cz>
11109         * ipa-inline.c (can_inline_edge_p): Pass caller info to
11110         ultiimate_alias_target.
11111         (update_callee_keys): Likewise.
11112         (lookup_recursive_calls): Likewise.
11113         (speculation_useful_p): Likewise.
11115 2016-04-20  Jan Hubicka  <jh@suse.cz>
11117         PR ipa/70018
11118         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
11119         (set_nothrow_flag_1): ... this; handle interposition correctly;
11120         recurse on aliases and thunks.
11121         (cgraph_node::set_nothrow_flag): New.
11122         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
11123         functions compiled with non-call exceptions that binds to current
11124         def.
11125         (propagate_nothrow): Be safe WRT interposition.
11126         * cgraph.h (set_nothrow_flag): Update prototype.
11128 2016-04-18  Jan Hubicka  <jh@suse.cz>
11130         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11131         max_loop_iterations_int.
11132         (tree_unswitch_outer_loop): Likewise.
11134 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11136         PR tree-optimization/69489
11137         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
11138         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
11139         Revise dump message.
11140         (if_convertible_bb_p): Remove check on edge count of basic block's
11141         predecessors.
11143 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11145         PR tree-optimization/56625
11146         PR tree-optimization/69489
11147         * tree-data-ref.h (DR_INNERMOST): New macro.
11148         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
11149         hashing struct innermost_loop_behavior.
11150         (ref_DR_map): Remove.
11151         (innermost_DR_map): New map.
11152         (baseref_DR_map): Revise comment.
11153         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
11154         to innermost_DR_map accroding to its innermost loop behavior.
11155         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
11156         to its innermost loop behavior.
11157         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
11158         Add initialization for innermost_DR_map.  Record memory reference
11159         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
11160         have innermost loop behavior.
11161         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
11162         innermost_DR_map.
11164 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
11166         * config/i386/i386.md (*lea<mode>_general_1): Rename from
11167         *lea_general_1.  Use explicit SWI12 mode interator.
11168         (*lea<mode>_general_2): Rename from *lea_general_2.
11169         Use explicit SWI12 mode interator.
11170         (*lea<mode>_general_3): Rename from *lea_general_3.
11171         Use explicit SWI12 mode interator.
11172         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
11173         Use explicit SWI12 mode interator.
11174         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
11175         Use explicit SWI48 mode interator.
11177 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11179         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11180         Short-cut unaligned load and store cases.  Handle all integer
11181         vector modes.
11182         (ix86_expand_vector_move_misalign): Short-cut unaligned load
11183         and store cases.  Call ix86_avx256_split_vector_move_misalign
11184         directly without checking mode class.
11186 2016-04-20  Andrew Pinski  <apinski@cavium.com>
11187             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11189         PR target/64971
11190         * config/aarch64/aarch64.md (sibcall): Force call
11191         address to be DImode for ILP32.
11192         (sibcall_value): Likewise.
11194 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
11196         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
11198 2016-04-20  Richard Biener  <rguenther@suse.de>
11200         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
11201         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
11202         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
11203         (maybe_push_res_to_seq): Adjust.
11204         * gimple-fold.c (maybe_build_generic_op): Likewise.
11206 2016-04-20  Marek Polacek  <polacek@redhat.com>
11208         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
11209         rather than true.
11211 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
11213         * config/i386/sse.md (vec_unpacks_lo_hi): Always
11214         use kmovw to support AVX512F target.
11216 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
11218         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
11220 2016-04-20  Marek Polacek  <polacek@redhat.com>
11222         PR tree-optimization/70725
11223         * tree-if-conv.c (is_false_predicate): New function.
11224         (predicate_mem_writes): Use it.
11226 2016-04-20  Richard Biener  <rguenther@suse.de>
11228         PR tree-optimization/70726
11229         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
11230         shift amounts from a pattern stmt operand.
11232 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11234         PR target/70674
11235         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
11236         stack_restore_from_fpr pattern when restoring r15.
11237         (s390_optimize_prologue): Strip away the memory barrier in the
11238         parallel when trying to get rid of restore insns.
11239         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
11240         definition for loading the stack pointer from an FPR.  Compared to
11241         the normal move insn this pattern includes a full memory barrier.
11243 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
11245         PR middle-end/70680
11246         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
11247         implicitly linear or lastprivate iterator on the outer context.
11249 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11251         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
11252         alignment check.
11253         * config/i386/i386.md (ssememalign): Removed.
11254         * config/i386/sse.md: Remove ssememalign attribute from patterns.
11256 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
11258         PR target/69201
11259         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
11260         const short * to __builtin_ia32_loaddquhi512_mask.
11261         (_mm512_maskz_loadu_epi16): Likewise.
11262         (_mm512_mask_storeu_epi16): Pass short * to
11263         __builtin_ia32_storedquhi512_mask.
11264         (_mm512_mask_loadu_epi8): Pass const char * to
11265         __builtin_ia32_loaddquqi512_mask.
11266         (_mm512_maskz_loadu_epi8): Likewise.
11267         (_mm512_mask_storeu_epi8): Pass char * to
11268         __builtin_ia32_storedquqi512_mask.
11269         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
11270         const double * to __builtin_ia32_loadupd512_mask.
11271         (_mm512_mask_loadu_pd): Likewise.
11272         (_mm512_maskz_loadu_pd): Likewise.
11273         (_mm512_storeu_pd): Pass double * to
11274         __builtin_ia32_storeupd512_mask.
11275         (_mm512_mask_storeu_pd): Likewise.
11276         (_mm512_loadu_ps): Pass const float * to
11277         __builtin_ia32_loadups512_mask.
11278         (_mm512_mask_loadu_ps): Likewise.
11279         (_mm512_maskz_loadu_ps): Likewise.
11280         (_mm512_storeu_ps): Pass float * to
11281         __builtin_ia32_storeups512_mask.
11282         (_mm512_mask_storeu_ps): Likewise.
11283         (_mm512_mask_loadu_epi64): Pass const long long * to
11284         __builtin_ia32_loaddqudi512_mask.
11285         (_mm512_maskz_loadu_epi64): Likewise.
11286         (_mm512_mask_storeu_epi64): Pass long long *
11287         to __builtin_ia32_storedqudi512_mask.
11288         (_mm512_loadu_si512): Pass const int * to
11289         __builtin_ia32_loaddqusi512_mask.
11290         (_mm512_mask_loadu_epi32): Likewise.
11291         (_mm512_maskz_loadu_epi32): Likewise.
11292         (_mm512_storeu_si512): Pass int * to
11293         __builtin_ia32_storedqusi512_mask.
11294         (_mm512_mask_storeu_epi32): Likewise.
11295         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
11296         char * to __builtin_ia32_storedquqi256_mask.
11297         (_mm_mask_storeu_epi8): Likewise.
11298         (_mm256_mask_loadu_epi16): Pass const short * to
11299         __builtin_ia32_loaddquhi256_mask.
11300         (_mm256_maskz_loadu_epi16): Likewise.
11301         (_mm_mask_loadu_epi16): Pass const short * to
11302         __builtin_ia32_loaddquhi128_mask.
11303         (_mm_maskz_loadu_epi16): Likewise.
11304         (_mm256_mask_loadu_epi8): Pass const char * to
11305         __builtin_ia32_loaddquqi256_mask.
11306         (_mm256_maskz_loadu_epi8): Likewise.
11307         (_mm_mask_loadu_epi8): Pass const char * to
11308         __builtin_ia32_loaddquqi128_mask.
11309         (_mm_maskz_loadu_epi8): Likewise.
11310         (_mm256_mask_storeu_epi16): Pass short * to.
11311         __builtin_ia32_storedquhi256_mask.
11312         (_mm_mask_storeu_epi16): Pass short * to.
11313         __builtin_ia32_storedquhi128_mask.
11314         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
11315         const double * to __builtin_ia32_loadupd256_mask.
11316         (_mm256_maskz_loadu_pd): Likewise.
11317         (_mm_mask_loadu_pd): Pass onst double * to
11318         __builtin_ia32_loadupd128_mask.
11319         (_mm_maskz_loadu_pd): Likewise.
11320         (_mm256_mask_storeu_pd): Pass double * to
11321         __builtin_ia32_storeupd256_mask.
11322         (_mm_mask_storeu_pd): Pass double * to
11323         __builtin_ia32_storeupd128_mask.
11324         (_mm256_mask_loadu_ps): Pass const float * to
11325         __builtin_ia32_loadups256_mask.
11326         (_mm256_maskz_loadu_ps): Likewise.
11327         (_mm_mask_loadu_ps): Pass const float * to
11328         __builtin_ia32_loadups128_mask.
11329         (_mm_maskz_loadu_ps): Likewise.
11330         (_mm256_mask_storeu_ps): Pass float * to
11331         __builtin_ia32_storeups256_mask.
11332         (_mm_mask_storeu_ps): ass float * to
11333         __builtin_ia32_storeups128_mask.
11334         (_mm256_mask_loadu_epi64): Pass const long long * to
11335         __builtin_ia32_loaddqudi256_mask.
11336         (_mm256_maskz_loadu_epi64): Likewise.
11337         (_mm_mask_loadu_epi64): Pass const long long * to
11338         __builtin_ia32_loaddqudi128_mask.
11339         (_mm_maskz_loadu_epi64): Likewise.
11340         (_mm256_mask_storeu_epi64): Pass long long * to
11341         __builtin_ia32_storedqudi256_mask.
11342         (_mm_mask_storeu_epi64): Pass long long * to
11343         __builtin_ia32_storedqudi128_mask.
11344         (_mm256_mask_loadu_epi32): Pass const int * to
11345         __builtin_ia32_loaddqusi256_mask.
11346         (_mm256_maskz_loadu_epi32): Likewise.
11347         (_mm_mask_loadu_epi32): Pass const int * to
11348         __builtin_ia32_loaddqusi128_mask.
11349         (_mm_maskz_loadu_epi32): Likewise.
11350         (_mm256_mask_storeu_epi32): Pass int * to
11351         __builtin_ia32_storedqusi256_mask.
11352         (_mm_mask_storeu_epi32): Pass int * to
11353         __builtin_ia32_storedqusi128_mask.
11354         * config/i386/i386-builtin-types.def (PCSHORT): New.
11355         (PINT64): Likewise.
11356         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
11357         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
11358         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
11359         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
11360         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
11361         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
11362         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
11363         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
11364         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
11365         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
11366         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
11367         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
11368         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
11369         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
11370         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
11371         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
11372         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
11373         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
11374         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
11375         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
11376         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
11377         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
11378         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
11379         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
11380         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
11381         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
11382         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
11383         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
11384         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
11385         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
11386         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
11387         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
11388         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
11389         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
11390         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
11391         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
11392         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
11393         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
11394         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
11395         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
11396         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
11397         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
11398         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
11399         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
11400         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
11401         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
11402         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
11403         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
11404         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
11405         use UNSPEC_STOREU.
11406         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
11407         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
11408         load nor store.
11409         (ix86_expand_vector_move_misalign): Likewise.
11410         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
11411         to scalar function prototype for unaligned load/store builtins.
11412         (ix86_expand_special_args_builtin): Updated.
11413         * config/i386/sse.md (UNSPEC_LOADU): Removed.
11414         (UNSPEC_STOREU): Likewise.
11415         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
11416         (VI_ULOADSTORE_F_AVX512VL): Likewise.
11417         (ssescalarsize): Handle V4TI, V2TI and V1TI.
11418         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11419         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
11420         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
11421         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
11422         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
11423         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
11424         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
11425         (<avx512>_storedqu<mode>_mask): Likewise.
11426         (*sse4_2_pcmpestr_unaligned): Likewise.
11427         (*sse4_2_pcmpistr_unaligned): Likewise.
11428         (*mov<mode>_internal): Renamed to ...
11429         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
11430         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
11431         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
11432         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
11434 2016-04-19  Richard Biener  <rguenther@suse.de>
11436         PR tree-optimization/70171
11437         * tree-ssa-phiprop.c: Include stor-layout.h.
11438         (phiprop_insert_phi): Handle the aggregate copy case.
11439         (propagate_with_phi): Likewise.
11441 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
11443         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
11444         instead of simplify_gen_subreg (... , 0).
11445         (ix86_delegitimize_address): Ditto.
11446         (ix86_split_divmod): Ditto.
11447         (ix86_split_copysign_const): Ditto.
11448         (ix86_split_copysign_var): Ditto.
11449         (ix86_expand_args_builtin): Ditto.
11450         (ix86_expand_round_builtin): Ditto.
11451         (ix86_expand_special_args_builtin): Ditto.
11452         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
11453         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
11454         (udivmodqi4): Ditto.
11455         (absneg splitters): Ditto.
11456         (*jcc_bt<mode>_1): Ditto.
11458 2016-04-19  Richard Biener  <rguenther@suse.de>
11460         PR tree-optimization/70724
11461         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
11462         restoring out from ...
11463         (free_scc_vn): ... here.
11464         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
11465         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
11466         tail merging.
11467         (pass_fre::execute): Restore SSA info.
11469 2016-04-19  Richard Biener  <rguenther@suse.de>
11471         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
11472         * gimple-walk.c (walk_gimple_op): Initialize it.
11473         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
11474         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
11475         remapping SSA names of defs.
11476         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
11477         adjustment.
11479 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
11481         PR middle-end/70689
11482         * lra-constraints.c (equiv_substition_p): New.
11483         (process_alt_operands): Use it.
11484         (swap_operands): Swap it.
11485         (curr_insn_transform): Update it.
11487 2016-04-18  Michael Matz  <matz@suse.de>
11489         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
11490         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
11491         * tree-core.h (tree_type_common.align): Use bit-field.
11492         (tree_type_common.spare): New.
11493         (tree_decl_common.off_align): Make smaller.
11494         (tree_decl_common.align): Use bit-field.
11496         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
11497         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
11498         (scan_sharing_clauses): Ditto.
11499         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11500         (omp_finish_file): Ditto.
11501         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
11502         (layout_decl): Ditto.
11503         (relayout_decl): Ditto.
11504         (finalize_record_size): Use SET_TYPE_ALIGN.
11505         (finalize_type_size): Ditto.
11506         (finish_builtin_struct): Ditto.
11507         (layout_type): Ditto.
11508         (initialize_sizetypes): Ditto.
11509         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
11510         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
11511         (lookup_field_for_decl): Use SET_DECL_ALIGN.
11512         (get_chain_field): Ditto.
11513         (get_trampoline_type): Ditto.
11514         (get_nl_goto_field): Ditto.
11515         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11516         SET_DECL_ALIGN.
11517         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
11518         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
11519         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
11520         (build_qualified_type): Use SET_TYPE_ALIGN.
11521         (build_aligned_type, build_range_type_1): Ditto.
11522         (build_atomic_base): Ditto.
11523         (build_common_tree_nodes): Ditto.
11524         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
11525         (expand_one_stack_var_at): Ditto.
11526         * coverage.c (build_var): Use SET_DECL_ALIGN.
11527         * except.c (init_eh): Ditto.
11528         * function.c (assign_parm_setup_block): Ditto.
11529         * symtab.c (increase_alignment_1): Ditto.
11530         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
11531         * tree-vect-stmts.c (ensure_base_align): Ditto.
11532         * varasm.c (align_variable): Ditto.
11533         (assemble_variable): Ditto.
11534         (build_constant_desc): Ditto.
11535         (output_constant_def_contents): Ditto.
11537         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
11538         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
11539         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
11540         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
11541         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
11543 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
11545         PR target/70708
11546         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
11547         replace %vmovsd with "%vmovq".
11548         (vec_concatv2df): Likewise.
11550 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
11552         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
11553         (*vec_extractv2si_0): Ditto.
11554         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
11555         (zero_extended_scalar_load_operand splitters): Ditto.
11556         (vec_extract splitters): Ditto.
11557         (*vec_extractv4si_0_zext): Ditto.
11558         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
11559         and lowpart_subreg.
11560         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
11561         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
11562         (*sse4_1_extractps): Use lowpart_subreg.
11563         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
11565 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11567         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
11568         gld requirements.
11569         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
11570         Mention Solaris 11 packaging changes.
11571         Update gas and gld requirements.
11572         Remove reference to pre-Solaris 10 bug.
11573         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
11574         systems and bugs.
11575         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
11576         with cc.
11578 2016-04-17  Jan Hubicka  <jh@suse.cz>
11580         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
11581         max_loop_iterations_int.
11583 2016-04-18  Richard Biener  <rguenther@suse.de>
11585         PR tree-optimization/43434
11586         * tree-ssa-structalias.c (struct vls_data): New.
11587         (visit_loadstore): Handle all pointer-based accesses.
11588         (compute_dependence_clique): Compute a bitmap of restrict tags
11589         assigned bases and pass it to visit_loadstore.
11591 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
11593         PR target/70711
11594         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
11595         armv8.1-a and armv8.1-a+crc.
11597 2016-04-18  Richard Biener  <rguenther@suse.de>
11599         PR tree-optimization/70701
11600         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
11601         references after translating through a memcpy.
11603 2016-04-18  Richard Biener  <rguenther@suse.de>
11605         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
11606         (compute_antic): ... here.  For partial antic use regular
11607         postorder and scrap iteration.
11608         (compute_partial_antic_aux): Remove unused return value.
11609         (init_pre): Do not allocate postorder.
11610         (fini_pre): Do not free postorder.
11612 2016-04-18  Richard Biener  <rguenther@suse.de>
11614         PR middle-end/37870
11615         * expmed.c (extract_bit_field_1): Remove broken case
11616         using a wider MODE_INT mode.
11618 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
11620         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
11621         unless compiling with at least GCC-4.8.
11623 2016-04-17  Jan Hubicka  <jh@suse.cz>
11625         PR bootstrap/70706
11626         * graphite.c (graphite_finalize): Update call to
11627         tree_estimate_probability.
11628         * predict.h (tree_estimate_probability): Update prototype.
11630 2016-04-17  Jan Hubicka  <jh@suse.cz>
11632         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
11633         (tree_estimate_probability): Likewise.
11634         (pass_profile::execute): Update.
11635         (report_predictor_hitrates): New function.
11636         * profile.c (compute_branch_probabilities): Use it.
11637         * predict.h (report_predictor_hitrates): Declare.
11639 2016-04-17  Jan Hubicka  <jh@suse.cz>
11641         PR ipa/70018
11642         * cgraph.h (cgraph_node::set_const_flag,
11643         cgraph_node::set_pure_flag): Update prototype to return bool;
11644         update comment.
11645         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
11646         of interposable symbol are interposable, too.
11647         (cgraph_set_const_flag_1): Rename to ...
11648         (set_const_flag_1): ... this one; change to self recursive function
11649         instead of call_for_symbol_thunks_and_aliases. Handle correctly
11650         clearnig the flag in all variants and also virtual thunks of const
11651         functions are pure; track if any change was done.
11652         (cgraph_node::set_const_flag): Update.
11653         (struct set_pure_flag_info): New struct.
11654         (cgraph_set_pure_flag_1): Rename to ...
11655         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
11656         rather than pointer encoded flags; track if any changes was done;
11657         handle correctly clearning flag and setting flag of aliases already
11658         declared const.
11659         (cgraph_node::set_pure_flag): Update.
11660         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
11662 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11664         PR other/70433
11665         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
11666         backslash in label.
11668 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11670         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
11671         '{}<> ' as escape-for-record.
11673 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11675         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
11676         structure.
11678 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11680         PR other/70185
11681         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
11682         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
11683         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
11684         * passes.c (finish_optimization_passes): Only call
11685         finish_graph_dump_file if dfi->graph_dump_initialized.
11686         (execute_function_dump, pass_init_dump_file): Use
11687         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
11689 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11691         PR tree-optimization/70256
11692         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
11693         (debug_varmap): New function.
11695 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11697         PR other/70183
11698         * passes.c (pass_manager::register_pass): Propagate pflags.
11700 2016-04-17  Tom de Vries  <tom@codesourcery.com>
11702         PR other/68875
11703         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
11704         * passes.c (pass_manager::pass_manager): Declare and init p_start in
11705         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
11706         check if it's equal to p_start.
11707         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
11709 2016-04-15  Jan Hubicka  <jh@suse.cz>
11711         PR ipa/70018
11712         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
11713         function does not bind to current def.
11714         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
11715         handle conservatively calls to functions that does not need to bind
11716         to current def.
11717         (check_call): Update call of worse_state.
11718         (ignore_edge_for_nothrow): Update.
11719         (ignore_edge_for_pure_const): Likewise.
11720         (propagate_pure_const): Update calls to worse_state.
11721         (skip_function_for_local_pure_const): Reformat comments.
11723 2016-04-15  Jan Hubicka  <jh@suse.cz>
11725         PR ipa/70018
11726         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
11727         (cgraph_node::function_symbol): Likewise.
11728         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11729         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
11730         (symtab_node::ultimate_alias_target): Add REF parameter.
11731         (symtab_node::binds_to_current_def_p): Declare.
11732         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
11733         (cgraph_node::function_symbol): Likewise.
11734         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
11735         (cgraph_node::get_availability): Likewise.
11736         (cgraph_edge::binds_to_current_def_p): New inline function.
11737         (varpool_node::get_availability): Add REF parameter.
11738         (varpool_node::ultimate_alias_target): Likewise.
11739         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
11740         (symtab_node::binds_to_current_def_p): Likewise.
11741         * varpool.c (varpool_node::get_availability): Likewise.
11743 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11745         PR target/70662
11746         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
11747         Fix mode size check.
11749 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11751         * BASE-VER: Set to 7.0.0.
11753 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
11755         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
11757 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11759         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
11760         architecture revisions.
11762 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
11764         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
11765         * config/i386/i386.c (ix86_using_red_zone): No longer static.
11766         * config/i386/i386.md (stack decrement to push peepholes): Guard
11767         with !x86_using_red_zone ().
11769 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
11771         PR c++/70675
11772         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
11773         to dump_generic_node.
11774         (NIY): Pass also flags to do_niy.
11776 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
11778         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
11779         (simd_clone_vector_of_formal_parm_types)
11780         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
11781         (simd_clone_mangle, simd_clone_create)
11782         (simd_clone_adjust_return_type, create_tmp_simd_array)
11783         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
11784         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
11785         (ipa_simd_modify_function_body, simd_clone_linear_addend)
11786         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
11787         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
11788         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
11789         * omp-simd-clone.c: ... this new file.
11790         (simd_clone_vector_of_formal_parm_types): Make it static.
11791         * Makefile.in (OBJS): Add omp-simd-clone.o.
11793 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
11795         PR target/70662
11796         * config/i386/sse.md: Use proper memory operand modifiers.
11799 2016-04-15  Richard Biener  <rguenther@suse.de>
11800         Alan Modra  <amodra@gmail.com>
11802         PR tree-optimization/70130
11803         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
11804         when alignment stays not the same and no not use the realign
11805         scheme then.
11807 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11809         PR target/70669
11810         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
11811         direct move handlers for KFmode. Change TFmode handlers test from
11812         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
11814 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
11816         PR c++/70594
11817         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
11818         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
11819         (inlined_polymorphic_ctor_dtor_block_p): Use it.
11820         * tree-ssa-live.c (remove_unused_scope_block_p): When
11821         in_ctor_dtor_block, avoid discarding not just BLOCKs with
11822         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
11823         block_ultimate_origin is FUNCTION_DECL.
11824         (remove_unused_locals): If current_function_decl is
11825         polymorphic_ctor_dtor_p, pass initial true to
11826         remove_unused_scope_block_p' is_ctor_dtor_block.
11828 2016-04-14  Martin Sebor  <msebor@redhat.com>
11830         PR c++/69517
11831         PR c++/70019
11832         PR c++/70588
11833         * doc/extend.texi (Variable Length): Revert.
11835 2016-04-14  Marek Polacek  <polacek@redhat.com>
11836             Jan Hubicka  <hubicka@ucw.cz>
11838         PR c++/70029
11839         * tree.c (verify_type): Disable the canonical type of main variant
11840         check.
11842 2016-04-14  Jason Merrill  <jason@redhat.com>
11844         * cfgexpand.c, expr.c: Revert previous change.
11846 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
11848         PR middle-end/70643
11849         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
11850         when building a mem ref for the incoming reduction variable.
11852 2016-04-14  Richard Biener  <rguenther@suse.de>
11854         PR tree-optimization/70614
11855         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
11856         loop if the evolution dropped to chrec_dont_know.
11857         (interpret_condition_phi): Likewise.
11859 2016-04-14  Richard Biener  <rguenther@suse.de>
11861         PR tree-optimization/70623
11862         * tree-ssa-pre.c (changed_blocks): Make global ...
11863         (compute_antic): ... local here.  Move and fix worklist
11864         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
11865         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
11866         worklist handling, dump when ANTIC_IN changed.
11867         (compute_partial_antic_aux): Remove worklist handling.
11868         (init_pre): Do not compute post dominators.  Add a comment about
11869         the CFG order chosen.
11870         (fini_pre): Do not free post dominators.
11872 2016-04-13  Martin Sebor  <msebor@redhat.com>
11874         PR c++/69517
11875         PR c++/70019
11876         PR c++/70588
11877         * doc/extend.texi (Variable Length): Document C++ specifics.
11879 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11881         PR c++/70641
11882         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
11883         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
11884         eh edges have been purged.
11886         PR c++/70594
11887         * tree-sra.c (create_access_replacement,
11888         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
11889         gets fancy name.
11890         * tree-pretty-print.c (dump_fancy_name): New function.
11891         (dump_decl_name, dump_generic_node): Use it.
11893 2016-04-13  Jason Merrill  <jason@redhat.com>
11895         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
11896         * expr.c (expand_expr_real_1): Likewise.
11898 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
11900         * config/i386/i386.md (kunpckhi): Swap operands.
11901         (kunpcksi): Likewise.
11902         (kunpckdi): Likewise.
11903         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
11904         (vec_pack_trunc_<mode>): Likewise.
11906 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
11908         PR debug/70628
11909         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
11911         PR middle-end/70633
11912         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
11913         gimplification turns some element into non-constant.
11915         PR debug/70628
11916         * rtl.h (convert_memory_address_addr_space_1): New prototype.
11917         * explow.c (convert_memory_address_addr_space_1): No longer static,
11918         add NO_EMIT argument and don't call convert_modes if true, pass
11919         it down recursively, remove break after return.
11920         (convert_memory_address_addr_space): Adjust caller.
11921         * simplify-rtx.c (simplify_unary_operation_1): Call
11922         convert_memory_address_addr_space_1 instead of convert_memory_address,
11923         if it returns NULL, don't simplify.
11925 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
11927         PR target/70630
11928         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
11930 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11932         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
11933         Bump the upper SIMDLEN limits, so that if the return type or
11934         characteristic type if the return type is void can be passed in
11935         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
11936         allowed.
11938 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
11940         PR target/70640
11941         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
11942         Do not use "=" constraint on an input constraint.
11943         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
11944         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
11945         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
11946         generates (neg (abs ...)) instead of (abs ...).
11948 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11950         PR rtl-optimization/70596
11951         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
11952         just invalidate LRA data and reset them.  Adjust dump wording.
11954 2016-04-12  Martin Liska  <mliska@suse.cz>
11956         Revert
11957         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
11959         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
11960         estimates here.
11961         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
11962         max_loop_iterations_int.
11963         (tree_unswitch_outer_loop): Likewise.
11964         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
11965         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
11967 2016-04-12  Tom de Vries  <tom@codesourcery.com>
11969         PR tree-optimization/68756
11970         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
11971         instead of new_name.
11973 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
11975         PR tree-optimization/70602
11976         * tree-sra.c (generate_subtree_copies): Don't write anything into
11977         constant pool decls.
11979         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
11980         regardless whether there are depend clauses or not.
11982 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11984         PR target/70381
11985         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
11986         target attribute and pragma from changing the -mfloat128
11987         and -mfloat128-hardware options.
11989         * doc/extend.texi (Additional Floating Types): Document PowerPC
11990         __float128 restrictions.
11992 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
11994         PR target/70133
11995         * config/aarch64/driver-aarch64.c
11996         (aarch64_get_extension_string_for_isa_flags): New.
11997         (arch_extension): Rename to...
11998         (aarch64_arch_extension): ...This.
11999         (ext_to_feat_string): Rename to...
12000         (aarch64_extensions): ...This.
12001         (aarch64_core_data): Keep track of architecture extension flags.
12002         (cpu_data): Rename to...
12003         (aarch64_cpu_data): ...This.
12004         (aarch64_arch_driver_info): Keep track of architecture extension
12005         flags.
12006         (get_arch_name_from_id): Rename to...
12007         (get_arch_from_id): ...This, change return type.
12008         (host_detect_local_cpu): Update and reformat for renames, handle
12009         extensions through common infrastructure.
12011 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12013         PR target/70133
12014         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
12015         track of a canonical flag name.
12016         (all_extensions): Likewise.
12017         (arch_to_arch_name): Also track extension flags enabled by the arch.
12018         (all_architectures): Likewise.
12019         (aarch64_parse_extension): Move to here.
12020         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
12021         rework.
12022         (aarch64_rewrite_selected_cpu): Update for above change.
12023         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
12024         are handled, such that the single explicit value enabled by an
12025         extension is kept seperate from the implicit values it also enables.
12026         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
12027         to here.
12028         (aarch64_parse_extension): New.
12029         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
12030         here to config/aarch64/aarch64-protos.h.
12031         (aarch64_parse_extension): Move from here to
12032         common/config/aarch64/aarch64-common.c.
12033         (aarch64_option_print): Update.
12034         (aarch64_declare_function_name): Likewise.
12035         (aarch64_start_file): Likewise.
12036         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
12037         the canonical flag for extensions.
12038         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
12039         flags.
12041 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
12043         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
12044         AARCH64_FL_CRC.
12046 2016-04-09  Tom de Vries  <tom@codesourcery.com>
12048         PR tree-optimization/68953
12049         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
12050         first to last subscript.
12052 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
12054         PR tree-optimization/70586
12055         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
12056         for any calls.
12058 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
12060         PR lto/70289
12061         PR ipa/70348
12062         PR tree-optimization/70373
12063         PR middle-end/70533
12064         PR middle-end/70534
12065         PR middle-end/70535
12066         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
12067         clauses for acc parallel reductions as necessary.  Error on those
12068         that are private.
12069         * omp-low.c (scan_sharing_clauses): Don't install variables which
12070         are used in acc parallel reductions.
12071         (lower_rec_input_clauses): Remove dead code.
12072         (lower_oacc_reductions): Add support for reference reductions.
12073         (lower_reduction_clauses): Remove dead code.
12074         (lower_omp_target): Don't remap variables appearing in acc parallel
12075         reductions.
12076         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
12078 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
12080         PR middle-end/70593
12081         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
12082         with multiple SSA_NAME defs, force the outputs other than first
12083         to be live before calling live_track_process_def on each output.
12085         PR rtl-optimization/70574
12086         * fwprop.c (forward_propagate_and_simplify): Don't add
12087         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
12088         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
12089         paradoxical subregs within *loc.
12091 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
12093         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
12094         -ftree-parallelize-loops={0,1}.
12095         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
12096         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
12097         * config/ia64/hpux.h (LIB_SPEC): Likewise.
12098         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12099         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
12101 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
12103         PR sanitizer/70541
12104         * asan.c (instrument_derefs): If we get unknown location, extract it
12105         with EXPR_LOCATION.
12106         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
12108 2016-04-08  Tom de Vries  <tom@codesourcery.com>
12110         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
12111         implicit firstprivate clause.
12113 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12115         PR target/70566
12116         * config/arm/thumb2.md (tst + branch-> lsls + branch
12117         peephole below *orsi_not_shiftsi_si): Require that condition
12118         register is dead after the peephole.
12119         (second peephole after the above): Likewise.
12121 2016-04-08  Alan Modra  <amodra@gmail.com>
12123         PR target/70117
12124         * builtins.c (fold_builtin_classify): For IBM extended precision,
12125         look at just the high-order double to test for NaN.
12126         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
12127         test just the high double for Inf but both doubles for subnormal
12128         limit.
12130 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
12132         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
12133         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
12134         node->simdclone->mask_mode != VOIDmode masks.
12135         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
12136         earlier, use it instead of node->simdclone.
12137         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12138         Set clonei->mask_mode.
12140 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12142         PR c/70436
12143         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
12144         Pass it through to cp_parser_already_scoped_statement.
12145         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
12146         it through to cp_parser_statement.
12147         (cp_parser_statement): Pass IF_P through to
12148         cp_parser_iteration_statement.
12149         (cp_parser_pragma): Adjust call to
12150         cp_parser_iteration_statement.
12152 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
12154         PR c/70436
12155         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
12156         resolve a future -Wparentheses warning.
12157         * omp-low.c (scan_sharing_clauses): Likewise.
12158         * tree-parloops.c (eliminate_local_variables): Likewise.
12160 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
12162         PR rtl-optimization/70398
12163         * lra-constraints.c (process_address_1): Check zero scale and code
12164         for reloading with zero scale.
12166 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
12168         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
12169         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
12171 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
12173         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
12174         Add support for AVX512F clones, include them by default for
12175         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
12176         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
12177         up to 128.
12179         PR middle-end/70550
12180         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
12181         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
12182         firstprivate clauses.
12183         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
12184         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
12185         (lower_omp_target): Set TREE_NO_WARNING for
12186         non-addressable possibly uninitialized vars which are copied into
12187         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
12189 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
12191         * config/pa/predicates.md (integer_store_memory_operand): Accept
12192         REG+D operands with a large offset when reload_in_progress is true.
12193         (floating_point_store_memory_operand): Likewise.
12195 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12197         PR c++/70336
12198         * match.pd (nested int casts): Limit to GIMPLE.
12200 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
12202         PR ipa/66223
12203         * ipa-devirt.c (maybe_record_node): Fix comment; use
12204         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
12206 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12208         PR rtl-optimization/70542
12209         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
12210         if there are any uses other than insn or debug insns.
12212 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
12213             Jakub Jelinek  <jakub@redhat.com>
12215         PR tree-optimization/70509
12216         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
12217         Shift HOST_WIDE_INT_1U instead of 1.
12219 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
12221         PR tree-optimization/70509
12222         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
12223         of the vector base type for index.
12225 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
12227         PR target/70510
12228         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
12230 2016-04-05  Richard Biener  <rguenther@suse.de>
12232         PR tree-optimization/70526
12233         * tree-sra.c (build_ref_for_offset): Use prev_base to
12234         extract the alias pointer type.
12236 2016-04-05  Richard Biener  <rguenther@suse.de>
12238         * dse.c (struct store_info): Remove alias_set member.
12239         (struct read_info_type): Likewise.
12240         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
12241         spill_deleted, clear_alias_set_lookup): Remove.
12242         (get_group_info): Remove dead base == NULL_RTX case.
12243         (dse_step0): Remove initialization of removed variables.
12244         (delete_dead_store_insn): Reomve alias set dumping.
12245         (free_read_records): Remove alias_set handling.
12246         (canon_address): Remove alias_set_out parameter.
12247         (record_store): Remove spill_alias_set, it's always zero.
12248         (check_mem_read_rtx): Likewise.
12249         (dse_step2): Rename from ...
12250         (dse_step2_nospill): ... this.  Adjust.
12251         (scan_stores): Rename from ...
12252         (scan_stores_nospill): ... this.
12253         (scan_reads): Rename from ...
12254         (scan_reads_nospill): ... this.
12255         (scan_stores_spill, scan_reads_spill): Remove.
12256         (dse_step3_scan): Remove for_spills argument which is always false.
12257         (dse_step3): Likewise.
12258         (dse_step5): Rename from ...
12259         (dse_step5_nospill): ... this.  Remove alias_set handling.
12260         (rest_of_handle_dse): Adjust.
12262 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
12264         PR target/70525
12265         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
12266         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
12267         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
12268         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
12270 2016-04-05  Richard Biener  <rguenther@suse.de>
12272         PR middle-end/70499
12273         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
12274         non-register type temporaries into SSA.
12276 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
12278         PR ipa/66223
12279         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
12280         calls when sanitizing.
12281         (possible_polymorphic_call_target_p): Fix formatting.
12283 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12284             Jakub Jelinek <jakub@redhat.com>
12286         PR middle-end/70457
12287         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
12288         to ensure a call statement is compatible with a built-in's
12289         prototype.
12290         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
12291         Likewise.
12293 2016-04-04  Richard Biener  <rguenther@suse.de>
12295         PR rtl-optimization/70484
12296         * rtl.h (canon_output_dependence): Declare.
12297         * alias.c (canon_output_dependence): New function.
12298         * dse.c (record_store): Use canon_output_dependence rather
12299         than canon_true_dependence.
12301 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12303         PR ipa/68881
12304         * cgraph.h (symtab_node::copy_visibility_from): New function.
12305         * symtab.c (symtab_node::copy_visibility_from): New function.
12306         * ipa-visibility.c (optimize_weakref): New function.
12307         (function_and_variable_visibility): Use it.
12309 2016-04-04  Martin Liska  <mliska@suse.cz>
12311         PR hsa/70402
12312         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
12313         value that is really in range handled by SBR instruction.
12314         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
12315         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
12316         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
12318 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
12320         PR target/70416
12321         PR target/67391
12322         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
12323         set, but not for SP_REG operands.
12325 2016-04-02  Martin Sebor  <msebor@redhat.com>
12327         PR c++/67376
12328         * fold-const.c (maybe_nonzero_address): New function.
12329         (fold_comparison): Call it.  Fold equality and relational
12330         expressions involving null pointers.
12331         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
12333 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
12335         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
12336         the "Y" constraint (scalar FP 0.0 immediate).
12338         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
12339         Add the "const_double" to the list of operand constraints.
12341 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
12343         PR rtl-optimization/70467
12344         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
12345         If low word of the last operand is 0, just emit addition/subtraction
12346         for the high word.
12348 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12350         PR target/70404
12351         * config/s390/s390.c (s390_expand_insv): Check for everything
12352         constant instead of just VOIDmode stuff.
12354 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12356         PR target/70496
12357         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
12359 2016-04-01  Nathan Sidwell  <nathan@acm.org>
12361         * tree.def (TRY_CATCH_EXPR): Correct documentation.
12363 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
12365         PR rtl-optimization/70461
12366         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
12367         is necessary.
12369 2016-03-31  Martin Liska  <mliska@suse.cz>
12371         PR hsa/70399
12372         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
12373         a tree value or an immediate integer value to a buffer
12374         that is eventually copied to a BRIG section.
12375         (emit_immediate_operand): Call the function here.
12376         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
12377         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
12378         of class' fields that are removed.
12379         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
12380         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
12381         m_brig_repr_size fields.
12383 2016-03-31  Martin Liska  <mliska@suse.cz>
12385         PR hsa/70391
12386         * hsa-gen.c (hsa_function_representation::update_dominance): New
12387         function.
12388         (convert_addr_to_flat_segment): Likewise.
12389         (gen_hsa_memory_set): New alignment argument.
12390         (gen_hsa_ctor_assignment): Likewise.
12391         (gen_hsa_insns_for_single_assignment): Provide alignment
12392         to gen_hsa_ctor_assignment.
12393         (gen_hsa_insns_for_direct_call): Add new argument.
12394         (expand_lhs_of_string_op): New function.
12395         (expand_string_operation_builtin): Likewise.
12396         (expand_memory_copy): New function.
12397         (expand_memory_set): New function.
12398         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
12399         (convert_switch_statements): Change signature.
12400         (generate_hsa): Use a return value of the function.
12401         (pass_gen_hsail::execute): Do not call
12402         convert_switch_statements here.
12403         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
12404         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
12405         (hsa_function_representation::update_dominance): New function.
12407 2016-03-31  Martin Liska  <mliska@suse.cz>
12409         PR hsa/70391
12410         * hsa-brig.c (emit_directive_variable): Emit alignment
12411         according to hsa_symbol::m_align.
12412         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
12413         (dump_hsa_symbol): Dump alignment of HSA symbols.
12414         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
12415         (gen_hsa_addr_with_align): New function.
12416         (hsa_bitmemref_alignment): Use newly added function.
12417         (gen_hsa_insns_for_load): Likewise.
12418         (gen_hsa_insns_for_store): Likewise.
12419         (gen_hsa_memory_copy): New argument added.
12420         (gen_hsa_insns_for_single_assignment): Respect
12421         alignment for assignments processed via gen_hsa_memory_copy.
12422         (gen_hsa_insns_for_direct_call): Likewise.
12423         (gen_hsa_insns_for_return): Likewise.
12424         (gen_function_def_parameters): Set default alignment.
12425         * hsa.c (hsa_object_alignment): New function.
12426         (hsa_byte_alignment): Pasted function.
12427         * hsa.h (hsa_symbol::m_align): New field.
12429 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12431         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
12432         scratch field for goto case.
12434 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
12436         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
12438 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
12440         PR target/70442
12441         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
12442         (scalar_chain::convert_insn): Call convert_op for reg
12443         moves to handle undefined registers.
12445 2016-03-31  Nathan Sidwell  <nathan@acm.org>
12447         PR c++/70393
12448         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
12449         Assert we don't want to move backwards.
12451 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12453         PR target/70453
12454         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
12456 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
12458         PR rtl-optimization/70460
12459         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
12460         with operand from REG_LABEL_OPERAND, instead substitute
12461         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
12462         Don't do anything for REG_NON_LOCAL_GOTO jumps.
12464 2016-03-31  Martin Liska  <mliska@suse.cz>
12466         * passes.c (execute_one_pass): Do not call
12467         todo_after for a discarded function.
12469 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
12471         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
12472         (no_cost, infinite_cost): Initialize the new field.
12473         (get_computation_cost_at): Record setup cost.
12474         (determine_use_iv_cost_address): Skip cost computation for sub
12475         uses if we can estimate it without losing accuracy.
12477 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
12479         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
12480         estimates here.
12481         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
12482         max_loop_iterations_int.
12483         (tree_unswitch_outer_loop): Likewise.
12484         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
12485         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12487 2016-03-30  Richard Biener  <rguenther@suse.de>
12489         PR middle-end/70450
12490         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
12492 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
12494         PR target/70421
12495         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
12496         in gen_blendm expander.
12498 2016-03-30  Nick Clifton  <nickc@redhat.com>
12500         PR target/62254
12501         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
12502         case where we are already provided with an SImode SUBREG.
12504 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12506         PR target/70439
12507         * config/i386/i386.c (ix86_expand_epilogue): Properly check
12508         conflict between DRAP register and __builtin_eh_return.
12510 2016-03-30  Michael Matz  <matz@suse.de>
12511             Richard Biener  <rguenther@suse.de>
12513         PR ipa/12392
12514         * ipa-polymorphic-call.c (struct type_change_info): Change
12515         speculative to an unsigned allowing to limit the work we do.
12516         (csftc_abort_walking_p): New inline function..
12517         (check_stmt_for_type_change): Limit the number of may-defs
12518         skipped for speculative devirtualization to
12519         max-speculative-devirt-maydefs.
12520         * params.def (max-speculative-devirt-maydefs): New param.
12521         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
12523 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
12525         PR target/63890
12526         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
12527         and TARGET_MACHO.
12529 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
12531         PR tree-optimization/59124
12532         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
12533         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
12535 2016-03-29  Jeff Law  <law@redhat.com>
12537         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
12539 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12541         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
12542         to HOST_WIDE_INT.
12544 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
12546         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
12547         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
12548         gcrt0.o if linking dynamically.
12550 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
12552         PR ipa/70283
12553         * ipa-devirt.c (methods_equal_p): New function.
12554         (compare_virtual_tables): Use it.
12555         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
12556         * cgraphclones.c (clone_function_name_1): Use
12557         symbol_table::symbol_suffix_separator.
12558         * coverage.c (build_var): Likewise.
12559         * symtab.c (symbol_table::symbol_suffix_separator): New.
12561 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
12563         PR rtl-optimization/70429
12564         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
12565         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
12566         mode != result_mode.
12568         PR c++/70353
12569         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
12571         PR tree-optimization/70405
12572         * ssa-iterators.h (num_imm_uses): Add missing braces.
12574 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
12576         PR rtl-optimization/68695
12577         * ira-color.c (allocno_copy_cost_saving): New.
12578         (improve_allocation): Use it.
12580 2016-03-29  Richard Henderson  <rth@redhat.com>
12582         PR middle-end/70355
12583         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
12585 2016-03-29  Richard Biener  <rguenther@suse.de>
12587         PR middle-end/70424
12588         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
12589         use alignment returned by get_pointer_alignment_1 if it is
12590         bigger than BITS_PER_UNIT.
12591         * builtins.c (get_pointer_alignment_1): Do not return true
12592         for alignment extracted from SSA info.
12594 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
12596         * config/ft32/ft32.opt (mnodiv): New.
12597         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
12598         * doc/invoke.texi (FT32 Options -mnodiv): New.
12600 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
12602         PR target/70406
12603         * config/i386/i386.md (define_split, andn): Fix modes.
12605 2016-03-26  Richard Biener  <rguenther@suse.de>
12606             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12608         PR ipa/70366
12609         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
12610         instead of
12611         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
12612         as 2nd argument to cl_optimization_restore().
12614 2016-03-25  Richard Henderson  <rth@redhat.com>
12616         PR target/70120
12617         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
12618         * config/aarch64/aarch64-protos.h: Declare it.
12619         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
12621 2016-03-25  Alan Modra  <amodra@gmail.com>
12623         PR target/70052
12624         * config/rs6000/constraints.md (j): Simplify.
12625         * config/rs6000/predicates.md (easy_fp_constant): Exclude
12626         decimal float 0.D.
12627         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
12628         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
12629          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
12630         in all constraint alternatives.
12631         (movtd_64bit_nodm): Delete "j" constraint alternative.
12633 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12635         * tree-ssa-propagate.c: Enhance docs for
12636         SSA_PROP_NOT_INTERESTING.
12638 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
12640         * doc/extend.texi: Fix typo in documentation to pure attribute.
12642 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
12644         PR target/70319
12645         * config/pa/pa.md (bswapdi2): Use a scratch register.
12647 2016-03-24  Richard Henderson  <rth@redhat.com>
12649         PR middle-end/69845
12650         * fold-const.c (extract_muldiv_1): Correct test for multiplication
12651         overflow.
12653 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
12655         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
12656         using ix86_expand_binary_operator instead of gen_andsi3.
12658 2016-03-24  Richard Biener  <rguenther@suse.de>
12660         PR tree-optimization/70396
12661         * tree-vect-stmts.c (vectorizable_comparison): Use
12662         get_vectype_for_scalar_type.
12664 2016-03-24  Richard Biener  <rguenther@suse.de>
12666         PR middle-end/70370
12667         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
12668         with register bases.
12670 2016-03-24  Richard Biener  <rguenther@suse.de>
12672         PR tree-optimization/70372
12673         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
12674         build_all_ones_cst to also handle vector types correctly.
12676 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
12678         PR target/70381
12679         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
12680         -mfloat128 here.
12682 2016-03-23  Marek Polacek  <polacek@redhat.com>
12684         PR c++/69884
12685         * doc/invoke.texi: Document -Wignored-attributes.
12687 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12689         PR tree-optimization/69042
12690         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
12691         parameter from 30 to 40.
12693 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
12695         PR tree-optimization/69042
12696         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
12697         for use with constant offset stripped in base.
12699 2016-03-23  Richard Biener  <rguenther@suse.de>
12701         PR middle-end/70251
12702         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
12703         mode compatibility check.
12704         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12706 2016-03-23  Jeff Law  <law@redhat.com>
12708         PR tree-optimization/64058
12709         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
12710         CONFLICT_COUNT.
12711         (struct ssa_conflicts): Move up earlier in the file.
12712         (conflicts_, var_map_): New static variables.
12713         (initialize_conflict_count): New function to initialize the
12714         CONFLICT_COUNT field for each conflict pair.
12715         (compare_pairs): Lazily initialize the conflict count and use it
12716         as the first tie-breaker.
12717         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
12718         and wipe conflicts_ and map_ around the call to qsort.  Remove
12719         special case for 2 coalesce pairs.
12720         * bitmap.c (bitmap_count_unique_bits): New function.
12721         (bitmap_count_bits_in_word): New function, extracted from
12722         bitmap_count_bits.
12723         (bitmap_count_bits): Use bitmap_count_bits_in_word.
12724         * bitmap.h (bitmap_count_unique_bits): Declare it.
12726 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
12728         PR target/69917
12729         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
12730         transparent alias chain for decl assembler name.
12731         * config/sol2.c (solaris_assemble_visibility): Likewise.
12733 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12735         * config/arm/arm1020e.md (1020call_op): Reduce reservation
12736         duration.
12737         (v10_fdivs): Likewise.
12738         (v10_fdivd): Likewise.
12740 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12742         PR driver/70132
12743         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
12744         to not call fclose twice on file.
12746 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
12748         PR tree-optimization/70354
12749         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
12750         oprnd0 is wider than oprnd1 and there is a cast from the wider
12751         type to oprnd1, mask it with the mask of the narrower type.
12753         PR target/70321
12754         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
12755         Optimize TARGET_STV splitters, if high or low word of last argument
12756         is 0 or -1.
12758 2016-03-22  Jeff Law  <law@redhat.com>
12760         PR target/70232
12761         tree-ssa-threadbackward.c
12762         (fsm_find_control_statement_thread_paths): Correctly distinguish
12763         between old style jump threads vs FSM jump threads.
12765 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
12767         PR target/70302
12768         * config/i386/i386.c (scalar_chain::convert_op): Support
12769         uninitialized register usage case.
12771 2016-03-22  Richard Biener  <rguenther@suse.de>
12773         PR middle-end/70251
12774         * genmatch.c (gen_transform): Adjust last parameter to a three-state
12775         int...
12776         (capture::gen_transform): ... to change behavior when substituting
12777         a condition into cond or not-cond expr context.
12778         (dt_simplify::gen_1): Adjust.
12779         * gimple-match-head.c: Include gimplify.h for unshare_expr.
12780         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
12781         last change and instead change to
12782         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
12783         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
12785 2016-03-22  Anthony Green  <green@moxielogic.com>
12787         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
12788         issue for moxiebox targets.
12789         (CC1PLUS_SPEC): Ditto.
12791 2016-03-22  Richard Biener  <rguenther@suse.de>
12793         PR middle-end/70333
12794         * fold-const.c (extract_muldiv_1): Properly perform multiplication
12795         in the wide type.
12797 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12799         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
12801 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
12803         PR target/70325
12804         * config/i386/i386.c (def_builtin): Handle
12805         OPTION_MASK_ISA_AVX512VL to be and-ed with other
12806         bits.
12807         (const struct builtin_description bdesc_special_args[]):
12808         Remove duplicate ISA bits.
12810 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
12812         PR target/70329
12813         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
12814         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
12815         in a way that works also for AVX512BW.
12817         PR target/70300
12818         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
12819         instead of source if operands[1] is xmm16 and above and
12820         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
12821         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
12823         PR c++/70295
12824         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
12825         on assign if (*from_p) is a comparison, set it to
12826         TREE_NO_WARNING (*from_p).
12828 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12830         PR middle-end/70326
12831         * lra.c (restore_scratches): Ignore deleted insns.
12833 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
12834             Jakub Jelinek  <jakub@redhat.com>
12836         PR tree-optimization/70317
12837         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
12838         to HONOR_NANS.
12840 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
12842         PR target/70327
12843         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
12844         of ix86_expand_move.
12845         (movoi): Ditto.
12846         (movti): Use general_operand for operand 1 predicate.
12848 2016-03-21  Martin Liska  <mliska@suse.cz>
12850         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
12851         insns.
12852         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
12854 2016-03-21  Martin Liska  <mliska@suse.cz>
12856         PR ipa/70306
12857         * ipa-icf.c (sem_function::parse): Skip static
12858         constructors and destructors.
12860 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
12862         PR target/70296
12863         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
12864         function-like macro, peek following token(s) if it is followed
12865         by CPP_OPEN_PAREN token with optional padding in between, and
12866         if not, don't treat it like a macro.
12868 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
12869             Alexander Monakov  <amonakov@ispras.ru>
12871         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
12872         for the stabs debug format.
12874 2016-03-21  Richard Biener  <rguenther@suse.de>
12876         PR tree-optimization/70310
12877         * tree-vect-generic.c (expand_vector_condition): Fold the built
12878         condition.
12880 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
12882         PR target/70293
12883         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
12884         Block third alternative for AVX-512VL target,
12886 2016-03-21  Martin Liska  <mliska@suse.cz>
12888         PR hsa/70234
12889         * hsa-brig.c (emit_function_directives): Mark unemitted
12890         global variables for emission.
12891         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
12892         (get_symbol_for_decl): Likewise.
12893         * hsa.h (struct hsa_symbol): New flag.
12895 2016-03-21  Richard Biener  <rguenther@suse.de>
12897         PR tree-optimization/70288
12898         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
12899         we do not estimate unsimplified all-constant conditionals or
12900         switches as optimized away.
12902 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
12904         PR rtl-optimization/69102
12905         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
12906         when we have a readonly dependency context.
12908 2016-03-18  Jeff Law  <law@redhat.com>
12910         PR rtl-optimization/70263
12911         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
12912         (update_equiv_regs): When trying to move a store to after the insn
12913         that sets the source of the store, make sure the store occurs after
12914         the insn that sets the source of the store.  When successful note
12915         the REG_EQUIV note created in the dump file.
12917 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
12918             Bernd Schmidt  <bschmidt@redhat.com>
12920         * doc/extend.texi: Document more potential problems with basic asms.
12922 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
12924         PR rtl-optimization/70278
12925         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
12926         VOIDmode.
12928 2016-03-18  Jason Merrill  <jason@redhat.com>
12930         * calls.c (load_register_parameters): Fix zero size sibcall logic.
12932 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12934         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
12935         values to 128b regs.
12937 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
12939         PR tree-optimization/70252
12940         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
12941         boolean vector has a proper number of elements.
12942         (supportable_narrowing_operation): Likewise.
12944 2016-03-18  Tom de Vries  <tom@codesourcery.com>
12946         PR ipa/70269
12947         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
12949 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
12951         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
12952         instead of replace_rtx for DEBUG_INSNs.
12954 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12956         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
12957         load type reservations.
12959 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
12961         PR target/70188
12962         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
12963         define_constraint for "Q" and "T" constraints.
12965 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
12967         Tweak the pipeline model for Exynos M1
12969         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
12970         model.
12972 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
12974         PR c/70264
12975         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
12976         where one or both locations aren't within a line_map.
12978 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12980         PR driver/70192
12981         * opts.c (finish_options): Don't set flag_pie to the default if
12982         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
12983         if it is -1.
12985 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
12987         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
12988         true as ALL_REGS argument to replace_rtx.
12990 2016-03-17  Richard Biener  <rguenther@suse.de>
12992         PR debug/70271
12993         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
12994         last.
12996 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
12998         PR target/70245
12999         * rtl.h (replace_rtx): Add ALL_REGS argument.
13000         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
13001         equality and assert mode is the same, instead of just rtx pointer
13002         equality.
13003         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
13004         true as ALL_REGS argument to replace_rtx.
13006 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
13008         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
13009         for boolean vector with vector mode only.
13010         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
13012 2016-03-17  Nick Clifton  <nickc@redhat.com>
13014         PR target/70162
13015         * config/rx/rx.c (rx_print_integer): Print negative constants in
13016         decimal.
13018 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
13020         PR target/70261
13021         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
13023 2016-03-16  Richard Henderson  <rth@redhat.com>
13024             Richard Biener  <rguenth@suse.de>
13026         PR middle-end/70240
13027         PR middle-end/68215
13028         PR tree-opt/68714
13029         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
13030         first operand as is_gimple_condexpr.
13032         PR middle-end/70240
13033         PR middle-end/68215
13034         Revert r231575
13035         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
13036         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
13037         Do not gimplify the result.
13038         (do_unop): Adjust call to tree_vec_extract.
13039         (do_binop): Likewise.
13040         (do_compare): Likewise.
13041         (do_plus_minus): Likewise.
13042         (do_negate): Likewise.
13043         (expand_vector_condition): Likewise.
13044         (do_cond): Likewise.
13046 2016-03-16  Richard Henderson  <rth@redhat.com>
13048         PR target/70048
13049         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
13050         (aarch64_classify_address): Use it.
13051         (aarch64_legitimize_address): Force all subexpressions of PLUS
13052         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
13054 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
13055             Richard Biener  <rguenth@suse.de>
13057         PR target/70245
13058         * rtlanal.c (replace_rtx): For REG, if from is a REG,
13059         return to even if only REGNO is equal, and assert
13060         mode is the same.
13062 2016-03-11  Jeff Law  <law@redhat.com>
13064         PR rtl-optimization/70224
13065         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
13067 2016-03-16  Richard Henderson  <rth@redhat.com>
13069         PR middle-end/70199
13070         * function.h (struct function): Add has_forced_label_in_static.
13071         * gimplify.c (force_labels_r): Set it.
13072         * lto-streamer-in.c (input_struct_function_base): Read it.
13073         * lto-streamer-out.c (output_struct_function_base): Write it.
13074         * tree-inline.c (has_label_address_in_static_1): Remove.
13075         (copy_forbidden): Remove fndecl parameter; test
13076         has_forced_label_in_static.
13077         (inline_forbidden_p): Update call to copy_forbidden.
13078         (tree_versionable_function_p): Likewise.
13079         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
13080         (chkp_versioning): Likewise.
13081         * tree-inline.h (copy_forbidden): Update decl.
13083 2016-03-16  Marek Polacek  <polacek@redhat.com>
13085         PR c/70093
13086         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
13087         function being thunked if the result type doesn't have fixed size.
13088         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
13089         doesn't have fixed size.
13091 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
13093         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
13094         reporting malformed loop nest.
13096 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13098         PR lto/70187
13099         * ipa-devirt.c (possible_polymorphic_call_targets): Move
13100         nodes.length () == 1 test to before first nodes[0] access.
13102 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13104         PR tree-optimization/68715
13105         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
13106         single_pred_p test.
13108 2016-03-16  Tom de Vries  <tom@codesourcery.com>
13110         PR tree-optimization/68809
13111         * graphite-scop-detection.c (same_close_phi_node): Test if result types
13112         are the same.
13114 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
13115             Sandra Loosemore  <sandra@codesourcery.com>
13117         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
13118         on leaf attribute. Mention ELF interposition problems.
13120 2016-03-16  Alan Modra  <amodra@gmail.com>
13122         PR rtl-optimization/69195
13123         PR rtl-optimization/47992
13124         * ira.c (indirect_jump_optimize): Ignore artificial defs.
13125         Add comments.
13127 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
13129         PR bootstrap/69513
13130         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
13132 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13134         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
13136 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
13138         PR rtl-optimization/70222
13139         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
13140         optimization if mode is different from result_mode, queue up masking
13141         of the result in outer_op.  Formatting fix.
13143         PR middle-end/70239
13144         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
13145         of safe_grow.
13147 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13149         PR rtl-optimization/69032
13150         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
13151         looping backwards over basic block insns.
13153 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13155         PR target/66660
13156         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
13157         to non-speculative when propagating trap bits.
13159 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13161         PR rtl-optimization/63384
13162         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
13163         DEBUG_INSN_P insns.
13165 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
13167         PR target/64411
13168         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
13169         factored out from ...
13170         (sched_analyze_insn): ... here.
13171         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
13172         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
13173         get_implicit_reg_pending_clobbers in it.
13174         (setup_id_reg_sets): Use setup_id_implicit_regs.
13175         (deps_init_id): Ditto.
13177 2016-03-15  Tom de Vries  <tom@codesourcery.com>
13179         PR ipa/70161
13180         * cgraph.c (cgraph_node::get_body): Save, reset and restore
13181         dump_file_name.
13182         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
13183         execute_function_dump.
13184         (execute_one_pass): Don't dump function if it will be dumped after ipa
13185         transform.
13187 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
13189         * genrecog.c (match_pattern_2): If pred is NULL don't call
13190         safe_predicate_mode on it.
13192 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
13194         PR middle-end/70219
13195         * lra-constraints.c (delete_move_and_clobber): Change assertion
13196         to also allow dregno == 0.
13198 2016-03-14  Richard Henderson  <rth@redhat.com>
13200         PR tree-opt/68714
13201         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
13202         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
13203         (reassociate_bb): Use optimize_vec_cond_expr; avoid
13204         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
13205         on vectors.
13207 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
13209         PR target/70083
13210         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
13211         regs.
13212         (lra_create_live_ranges_1): initialize hard register biggest_mode to
13213         VOIDmode.
13214         * lra-constraints.c (split_reg): For hard regs, try to find the
13215         biggest single-register mode used in the function.
13217 2016-03-14  Richard Biener  <rguenther@suse.de>
13219         PR tree-optimization/56365
13220         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
13221         constants to compare against.
13223 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
13225         PR target/70098
13226         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
13227         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
13228         (define_split for the GPR case): Use int_reg_operand instead of
13229         gpc_reg_operand for the output.
13231 2016-03-14  Tom de Vries  <tom@codesourcery.com>
13233         PR tree-optimization/70045
13234         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
13235         create_empty_if_region_on_edge argument.
13237 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
13239         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
13240         (STACK_CHECK_PROTECT): Likewise.
13241         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13242         (STACK_CHECK_PROTECT): Likewise.
13243         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
13244         (STACK_CHECK_PROTECT): Likewise.
13245         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
13246         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13247         (STACK_CHECK_PROTECT): Likewise.
13249 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
13251         PR rtl-optimization/69307
13252         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
13253         registers in modes that span more than one register.
13255 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
13257         PR target/69614
13258         * lra-constraints.c (delete_move_and_clobber): New.
13259         (remove_inheritance_pseudos): Use it.
13261 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
13263         PR ada/70017
13264         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
13265         the libcall is LCT_THROW.
13266         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
13267         for the checking routine.
13269 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13271         PR target/70131
13272         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
13273         optimization if we have direct move.
13274         (roundu32<mode>2_fprs): Likewise.
13276 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
13278         PR target/70123
13279         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
13280         be rematerialized.
13281         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
13282         Arguments swapped.  All callers changed.  Take reg_renumber into
13283         account, and Calculate and compare register ranges for hard regs.
13285 2016-03-11  Jeff Law  <law@redhat.com>
13287         PR tree-optimization/70190
13288         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13289         Handle cases where we can not extract the taken edge, even though we
13290         found a constant value.
13292         PR tree-optimization/64058
13293         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
13294         (num_coalesce_pairs): Move up earlier in file.
13295         (find_coalesce_pair): Initialize the INDEX field for each pair
13296         discovered.
13297         (compare_pairs): No longer sort on the elements in each pair.
13298         Instead break ties with the index of the coalesce pair.
13300 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13302         PR target/70002
13303         * config/aarch64/aarch64-protos.h
13304         (aarch64_save_restore_target_globals): New prototype.
13305         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
13306         Call the above when popping pragma.
13307         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
13308         New function.
13309         (aarch64_set_current_function): Rewrite using the above.
13311 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13313         PR tree-optimization/70177
13314         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
13315         (extract_ops_from_tree): ... this.  In the 2 argument
13316         overload remove _1 suffix.
13317         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
13318         (extract_ops_from_tree): ... this.
13319         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
13320         Adjust callers.
13321         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13322         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
13323         extract_ops_from_tree instead of 2 operand one.
13325 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
13327         PR tree-optimization/70013
13328         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
13329         for constant-pool entries.
13331 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
13333         PR rtl-optimization/70174
13334         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
13335         followed by gen_lowpart on force_reg instead of just gen_lowpart.
13337         PR tree-optimization/70169
13338         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
13339         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
13340         for unknown codes.
13342 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
13343             Jakub Jelinek  <jakub@redhat.com>
13345         PR target/70160
13346         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
13347         of uninitialized values.
13349 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13351         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
13352         define_expand.
13353         ("*trunctddd2"): New pattern definition.
13354         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
13355         TD->DD truncation.
13357 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13359         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
13360         definitions for BFP and DFP rounding modes.
13361         ("fixuns_truncdddi2", "fixuns_trunctddi2")
13362         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
13363         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
13364         ("fix_trunctf<mode>2"): Use the new constants instead of magic
13365         numbers.
13367 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13369         * config/s390/constraints.md: Adjust comment.
13370         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
13371         s390_decompose_addrstyle_without_index.
13372         * config/s390/predicates.md (shift_count_or_setmem_operand):
13373         Rename to setmem_operand.
13374         * config/s390/s390-protos.h
13375         (s390_decompose_shift_count): Rename to
13376         s390_decompose_addrstyle_without_index.
13377         * config/s390/s390.c (s390_decompose_shift_count)
13378         (s390_mem_constraint, print_shift_count_operand)
13379         (print_operand_address, print_operand): Rename
13380         s390_decompose_shift_count to
13381         s390_decompose_addrstyle_without_index and rename
13382         print_shift_count_operand to print_addrstyle_operand troughout the
13383         file.
13384         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
13385         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
13386         Rename shift_count_or_setmem_operand to setmem_operand.
13387         * config/s390/vx-builtins.md ("vec_insert<mode>")
13388         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
13389         nonmemory_operand.
13391 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13393         PR target/70168
13394         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
13395         Handle overlapping retval and newval.
13397 2016-03-10  Nick Clifton  <nickc@redhat.com>
13399         PR target/7044
13400         * config/aarch64/aarch64.c
13401         (aarch64_override_options_after_change_1): When forcing
13402         flag_omit_frame_pointer to be true, use a special value that can
13403         be detected if this function is called again, thus preventing
13404         flag_omit_leaf_frame_pointer from being forced to be false.
13406 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13408         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
13409         Set x_flag_omit_leaf_frame_pointer when handling
13410         -momit-leaf-frame-pointer.
13412 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13414         PR lto/69589
13415         * cgraph.c (cgraph_node::dump): Dump split_part and
13416         indirect_call_target.
13417         * cgraph.h (cgraph_node): Add indirect_call_target flag.
13418         * ipa.c (has_addr_references_p): Cleanup.
13419         (is_indirect_call_target_p): New.
13420         (walk_polymorphic_call_targets): Do not mark virtuals that may be
13421         called indirectly as local.
13422         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
13424 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13426         PR ipa/69630
13427         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
13428         on cxa_pure_virtual.
13430 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13432         PR lto/69589
13433         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
13435 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
13437         PR lto/69589
13438         * tree.c (need_assembler_name_p): Only record main variant type names.
13440 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13442         PR target/70113.
13443         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
13444         Always define to 0 or 1.
13445         (TARGET_FIX_ERR_A53_843419): New macro.
13446         * config/aarch64/aarch64-elf-raw.h
13447         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
13448         * config/aarch64/aarch64-linux.h: Likewise.
13449         * config/aarch64/aarch64.c
13450         (aarch64_override_options_after_change_1): Do not default
13451         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
13452         843419 is on.
13453         (aarch64_attributes): Handle fix-cortex-a53-843419.
13454         (aarch64_can_inline_p): Likewise.
13455         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
13457 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
13458         Jakub Jelinek <jakub@redhat.com>
13460         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
13461         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
13462         DECL_COMMONS if flag_unconstrained_commons is set.
13463         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13464         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
13465         (funconstrained-commons): Document.
13467 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
13469         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
13470         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
13472 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
13474         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
13475         has a proper number of elements.
13477 2016-03-10  Alan Modra  <amodra@gmail.com>
13479         PR rtl-optimization/69195
13480         PR rtl-optimization/47992
13481         * ira.c (recorded_label_ref): Delete.
13482         (update_equiv_regs): Return void.
13483         (indirect_jump_optimize): New function.
13484         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
13485         before regstat_compute_ri.  Don't rebuild_jump_labels here.
13486         Delete update_regstat.
13488 2016-03-10  Richard Biener  <rguenther@suse.de>
13490         PR tree-optimization/70128
13491         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13492         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
13494 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13496         PR tree-optimization/70152
13497         * tree-sra.c (replace_removed_params_ssa_names): Copy over
13498         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
13500         PR target/70086
13501         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
13502         instead of gen_sse2_loadlpd.
13503         * config/i386/sse.md (*vec_concatv2df): Rename to...
13504         (vec_concatv2df): ... this.
13506         PR tree-optimization/70127
13507         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
13509 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13511         PR c/68473
13512         PR c++/70105
13513         * diagnostic-show-locus.c (compatible_locations_p): New function.
13514         (layout::layout): Sanitize ranges using compatible_locations_p.
13516 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
13518         PR c/68473
13519         PR c++/70105
13520         * diagnostic-show-locus.c (layout_range::layout_range): Replace
13521         location_range param with three const expanded_locations * and a
13522         bool.
13523         (layout::layout): Replace call to
13524         rich_location::lazily_expand_location with get_expanded_location.
13525         Extract the range and perform location expansion here, passing
13526         the results to the layout_range ctor.
13527         * diagnostic.c (source_range::debug): Delete.
13528         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
13529         of rich_location::get_expanded_location.
13530         * gcc-rich-location.c (get_range_for_expr): Delete.
13531         (gcc_rich_location::add_expr): Reimplement to avoid the
13532         rich_location::add_range overload that took a location_range,
13533         passing a location_t instead.
13535 2016-03-09  Richard Biener  <rguenther@suse.de>
13536         Jakub Jelinek  <jakub@redhat.com>
13538         PR tree-optimization/70138
13539         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13540         Also skip vect_double_reduction_def.
13542 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
13544         PR target/70049
13545         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
13546         if the operand is "m".
13548 2016-03-09  Nathan Sidwell  <nathan@acm.org>
13550         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
13552 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13554         * config/i386/i386.c (processor_target_table): Fix cost table
13555         intialization order for znver1.
13557 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13559         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
13560         - becuase -> because.
13561         * ipa-reference.c (ignore_module_statics): Likewise.
13562         * cgraph.c (cgraph_node::get_body): Likewise.
13563         * ipa-inline.c (early_inliner): Likewise.
13564         * ipa-devirt.c (types_same_for_odr): Likewise.
13565         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
13566         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
13568 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13570         * tree-ssa-math-opts.c: Fix typo in comment.
13572 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
13574         PR target/70110
13575         * config/i386/i386.c (scalar_chain::make_vector_copies,
13576         scalar_chain::convert_reg): Call end_sequence in between
13577         get_insns and emit_conversion_insns rather than after both
13578         calls.
13580 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
13582         PR target/70064
13583         * config/i386/i386.h (machine_function): Add
13584         pc_thunk_call_expanded flag.
13585         (ix86_pc_thunk_call_expanded): New define.
13586         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
13587         (*set_got): Rename insn pattern from set_got.
13588         (*set_got_labelled): Rename inst pattern from set_got_labelled.
13589         * config/i386/i386.c (ix86_compute_frame_layout): Use
13590         ix86_pc_thunk_call_expanded to prevent red-zone.
13592 2016-03-07  Martin Jambor  <mjambor@suse.cz>
13594         * hsa.h (hsa_get_ctor_statements): Declare.
13595         (hsa_get_dtor_statements): Likewise.
13596         (hsa_get_kernel_dispatch_type): Likewise.
13597         * hsa.c (hsa_get_ctor_statements): New function.
13598         (hsa_get_dtor_statements): Likewise.
13599         (hsa_get_kernel_dispatch_type): Likewise.
13600         * hsa-brig.c (hsa_cdtor_statements): Removed.
13601         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
13602         hsa_get_dtor_statements.
13603         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
13604         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
13606 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
13608         * config/arm/arm-cores.def (cortex-r8): New.
13609         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
13610         * config/arm/arm-tune.md: Likewise.
13611         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
13613 2016-03-07  Martin Sebor  <msebor@redhat.com>
13615         PR rtl-optimization/19705
13616         * doc/invoke.texi (Options That Control Optimization): Clarify
13617         -fno-branch-count-reg.
13619 2016-02-26  Richard Biener  <rguenther@suse.de>
13620             Jeff Law  <law@redhat.com>
13622         PR tree-optimization/69740
13623         * cfghooks.c (remove_edge): Request loop fixups if we delete
13624         an edge that might turn an irreducible loop into a natural
13625         loop.
13626         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
13627         Move after definition of loops_state_clear.
13629 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
13631         PR rtl-optimization/69052
13632         * rtlanal.c (commutative_operand_precedence): Set higher precedence
13633         to CONST_WIDE_INT.
13635 2016-03-07  Tom de Vries  <tom@codesourcery.com>
13637         PR tree-optimization/70116
13638         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
13639         is_tm_ending stmts and ubsan/asan internal functions.
13640         (find_duplicate): Use it.  Don't test is_tm_ending here.
13642 2016-03-07  Richard Biener  <rguenther@suse.de>
13644         PR tree-optimization/70115
13645         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
13646         (propagate_constants_for_unrolling): Use replace_uses_by.
13648 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
13650         PR middle-end/69916
13651         * omp-low.c (struct oacc_loop): Add ifns.
13652         (new_oacc_loop_raw): Initialize it.
13653         (finish_oacc_loop): Clear mask & flags if no ifns.
13654         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
13655         (oacc_loop_xform_loop): Add ifns arg & adjust.
13656         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
13658 2016-03-07  Richard Henderson  <rth@redhat.com>
13660         PR rtl-opt/70061
13661         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
13662         (insert_value_copy_on_edge): Likewise.
13664 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13666         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
13668 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13670         PR target/62281
13671         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
13673 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13675         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
13677 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
13679         Fix sseimul type attribute.
13680         * config/i386/znver1.md
13681         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
13682         znver1_sseimul_avx256_load) : Fix the type attribute.
13683         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
13684         pipe usage and latency.
13686 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
13688         PR c++/70084
13689         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
13690         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
13691         to the right type.
13693 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13695         PR c/69973
13696         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
13698         PR rtl-optimization/69941
13699         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
13700         the reg share its mode.
13702 2016-03-04  Jeff Law  <law@redhat.com>
13704         PR tree-optimization/69196
13705         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13706         If the both SSA_NAMEs are anonymous, then consider them unassociated
13707         and include the PHI in the statement count.
13709 2016-03-05  Tom de Vries  <tom@codesourcery.com>
13711         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
13712         construct in oacc routine.  Check for oacc region in oacc routine.
13714 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
13716         PR target/70062
13717         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
13718         2016-02-22 changes, instead don't recurse if RECUR is already true.
13719         Don't change *dynamic_check if RECUR.  Adjust recursive caller
13720         to pass true to the new argument.
13721         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
13723         PR target/70059
13724         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13725         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
13726         fixes.
13727         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
13729 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
13731         PR rtl-optimization/57676
13732         * lra-assigns.c (lra_assign): Guard test for maximum iterations
13733         with flag_checking.
13735 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
13737         * tree-vect-patterns.c (search_type_for_mask): Handle
13738         comparison of booleans.
13740 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
13742         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
13743         Fix @xref usage.
13745         PR debug/69947
13746         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
13747         all other ops that have dw_val_class_die_ref operands,
13748         and DW_OP_GNU_entry_value.
13750 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13752         PR rtl-optimization/69904
13753         * config/arm/arm.c (arm_cannot_copy_insn_p):
13754         Return true for load-exclusive instructions.
13756 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
13758         PR target/70021
13759         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
13760         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
13761         the pattern no matter if it is used just by non-pattern, pattern
13762         or mix thereof.
13763         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
13764         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
13765         oprnd1 def_stmt is in pattern, don't look through it.
13767 2016-03-03  Marek Polacek  <polacek@redhat.com>
13769         PR middle-end/70050
13770         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
13772 2016-03-03  Martin Liska  <mliska@suse.cz>
13774         PR tree-optimization/70043
13775         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
13776         previous statement if we see a debug statement.
13778 2016-03-03  Richard Biener  <rguenther@suse.de>
13780         PR tree-optimization/55936
13781         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
13782         parameter and guard unsafe equivalence use.
13783         (vrp_evaluate_conditional_warnv_with_ops): Always use
13784         safe equivalences but not via the quadratic compare_names
13785         helper.
13787 2016-03-03  Michael Collison  <michael.collison@linaro.org>
13789         PR target/70014
13790         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
13791         for operand 1 to s_register_operand. Change predicate for operand
13792         2 to arm_not_immediate_operand.
13794 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
13796         * doc/tm.texi: Regenerated.
13798 2016-03-02  Richard Henderson  <rth@redhat.com>
13800         PR rtl-opt/67145
13801         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
13802         simplification when all args are positive non-fixed registers.
13804 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13806         * target.def (lra_p): Specify that new ports should use LRA.
13808 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13810         PR libgomp/69555
13811         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
13812         gimplify_type_sizes the type they refer to.
13813         (omp_notice_variable): Handle reference vars to VLAs.
13814         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
13815         reference to VLA decls in the second pass instead of first pass.
13817 2016-03-02  Tom de Vries  <tom@codesourcery.com>
13819         PR tree-optimization/68659
13820         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
13821         new_expr == NULL_TREE.
13822         (get_new_name): Handle ADDR_EXPR.
13824 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
13826         PR rtl-optimization/69052
13827         * loop-invariant.c (canonicalize_address): New function.
13828         (inv_can_prop_to_addr_use): Check validity of address expression
13829         which is canonicalized by above function.
13831 2016-03-02  Alan Modra  <amodra@gmail.com>
13833         PR ipa/69990
13834         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
13835         larger alignment.
13837 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
13839         PR target/70028
13840         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
13841         (*movhi_internal): Put mask moves from and to memory separately
13842         from moves from/to GPRs.
13844 2016-03-02  Richard Biener  <rguenther@suse.de>
13846         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
13847         GENERIC expressions in GIMPLE.
13849 2016-03-02  Richard Biener  <rguenther@suse.de>
13851         * config/i386/i386.c (type_natural_mode): Fix typo.
13853 2016-03-02  Nick Clifton  <nickc@redhat.com>
13855         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
13857 2016-03-02  Richard Biener  <rguenther@suse.de>
13858             Uros Bizjak  <ubizjak@gmail.com>
13860         PR target/67278
13861         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
13863 2016-03-02  Richard Biener  <rguenther@suse.de>
13865         PR middle-end/67278
13866         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
13868 2016-03-02  Marek Polacek  <polacek@redhat.com>
13870         PR c/67854
13871         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
13872         "is promoted to" warning.
13874 2016-03-01  DJ Delorie  <dj@redhat.com>
13876         * config.gcc: Deprecate mep-*.
13878 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
13880         PR middle-end/70025
13881         * lra-constraints.c (regno_val_use_in): New.
13882         (match_reload): Use it instead of regno_use_in.
13884 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13886         PR rtl-optimization/70007
13887         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
13888         references present in REG_EQUAL notes attached to non-SET patterns.
13890 2016-03-01  Jeff Law  <law@redhat.com>
13892         PR tree-optimization/69196
13893         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13894         Appropriately clamp the number of statements to copy when the
13895         thread path does not traverse a loop backedge.
13897         PR tree-optimization/69196
13898         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13899         Do count some PHIs in the thread path against the insn count.  Decrease
13900         final statement count by one as the control statement in the last
13901         block will get removed.  Remove special cased code for handling PHIs
13902         in the last block.
13904 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
13906         PR target/70027
13907         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
13908         asm dialect alternatives to explicit GOTPCREL calls.
13910 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
13912         PR ada/70017
13913         * ira.c (do_reload): Issue warning for generic stack checking here...
13914         * reload1.c (reload): ...instead of here and streamline it.
13916 2016-03-01  Nick Clifton  <nickc@redhat.com>
13918         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
13920 2016-03-01  Richard Biener  <rguenther@suse.de>
13922         PR tree-optimization/69983
13923         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
13924         types and fall back to operand_equal_p.
13926 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13928         Revert
13929         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13931         * config/s390/constraints.md ("jm8"): New constraint.
13932         * config/s390/predicates.md ("const_int_8bitset_operand"): New
13933         predicate.
13934         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
13935         into ...
13936         ("*setmem_long<setmem_and>"): New pattern.
13937         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
13938         into ...
13939         ("*setmem_long_31z<setmem_and>"): New pattern.
13940         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
13941         New substitution rules with the required attributes.
13944 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13946         Revert
13947         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13949         * gensupport.c (process_substs_on_one_elem): Split loop to
13950         complete mark_operands_used_in_match_dup on all expressions in the
13951         vector first.
13952         (adjust_operands_numbers): Inline into process_substs_on_one_elem
13953         and remove function.
13955 2016-03-01  Richard Biener  <rguenther@suse.de>
13957         PR middle-end/70022
13958         * fold-const.c (fold_indirect_ref_1): Fix range checking for
13959         vector BIT_FIELD_REF extract.
13961 2016-03-01  Richard Biener  <rguenther@suse.de>
13963         PR tree-optimization/69994
13964         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
13966 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
13968         PR tree-optimization/69956
13969         * tree-vect-stmts.c (supportable_widening_operation): Support
13970         multi-step conversion of boolean vectors.
13971         (supportable_narrowing_operation): Likewise.
13973 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13975         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
13976         anymore.
13978 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13980         * config/s390/subst.md (DSI_VI): New mode iterator.
13981         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
13982         * config/s390/vector.md ("vec_set<mode>"): Move expander before
13983         the insn definition.
13984         ("*vec_set<mode>"): Change predicate and add alternative to
13985         support only either register or const_int operands as element
13986         selector.
13987         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
13988         operands.
13989         ("vec_extract<mode>"): New expander.
13990         ("*vec_extract<mode>"): New insn definition supporting reg and
13991         const_int element selectors.
13992         ("*vec_extract<mode>_plus"): New insn definition supporting
13993         reg+const_int element selectors.
13994         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
13995         following expander+insn definition.
13996         ("<vec_shifts_name><mode>3"): New expander.
13997         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
13999 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14001         * config/s390/s390.md ("*tabort_1"): Change predicate to
14002         nonmemory_operand.  Add a second alternative to cover
14003         register as well as const int operands.
14004         ("*tabort_1_plus"): New pattern definition.
14006 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14008         * config/s390/s390.md ("*ashrdi3_cc_31")
14009         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
14010         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
14011         Merge insn definitions into ...
14012         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14013         New pattern definition.
14014         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
14015         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
14016         ("*ashr<mode>3_and"): Merge insn definitions into ...
14017         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
14018         New pattern definition.
14019         * config/s390/subst.md ("addr_style_op_cc_subst")
14020         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
14021         substitutions patterns plus attributes.
14022         Add ashiftrt to SUBST iterator.
14024 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14026         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
14027         op2 to nonmemory_operand.
14028         ("*<shift>di3_31", "*<shift>di3_31_and"):
14029         Merge into single pattern definition ...
14030         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
14031         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
14032         pattern definition ...
14033         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
14034         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
14035         iterator.
14037 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14039         * config/s390/predicates.md (const_int_6bitset_operand): New
14040         predicate.
14041         * config/s390/s390.md: Include subst.md.
14042         ("rotl<mode>3"): New expander.
14043         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
14044         ...
14045         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
14046         * config/s390/subst.md: New file.
14048 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14050         * config/s390/s390.md ("op_type", "atype", "length" attributes):
14051         Remove RRR type.  It doesn't really exist.
14052         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
14053         attributes.
14054         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
14055         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
14056         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
14057         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
14058         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
14059         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
14060         `enabled' attribute.
14062 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14064         * gensupport.c (process_substs_on_one_elem): Split loop to
14065         complete mark_operands_used_in_match_dup on all expressions in the
14066         vector first.
14067         (adjust_operands_numbers): Inline into process_substs_on_one_elem
14068         and remove function.
14070 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14072         PR target/69706
14073         * config/sparc/sparc.c (NWORDS_UP): Rename to...
14074         (CEIL_NWORDS): ...this.  Use CEIL macro.
14075         (compute_fp_layout): Adjust to above renaming.
14076         (function_arg_union_value): Likewise.
14077         (sparc_arg_partial_bytes): Likewise.
14078         (sparc_function_arg_advance): Likewise.
14080 2016-02-29  Jeff Law  <law@redhat.com>
14082         PR tree-optimization/70005
14083         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
14084         where an object with a boolean range is compared against a value
14085         outside [0..1].
14087         PR tree-optimization/69999
14088         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
14089         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
14090         loop cleanups.
14092 2016-02-29  Richard Biener  <rguenther@suse.de>
14094         PR tree-optimization/69994
14095         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
14096         (get_unary_op): Look through nop conversions.
14097         (ops_equal_values_p): New function, look for equality diregarding
14098         nop conversions.
14099         (eliminate_plus_minus_pair): Use ops_equal_values_p
14100         (repropagate_negates): Do not use get_unary_op here.
14102 2016-02-29  Martin Liska  <mliska@suse.cz>
14104         * system.h: Poison ENABLE_CHECKING macro.
14106 2016-02-29  Martin Liska  <mliska@suse.cz>
14108         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
14109         is presented in dump flags.
14110         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14111         (hsa_regalloc): Likewise.
14113 2016-02-19  Richard Biener  <rguenther@suse.de>
14115         PR tree-optimization/69980
14116         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
14117         permutation of those we need to keep.
14119 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
14121         PR target/69706
14122         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
14123         (NWORDS_UP): ...this
14124         (init_cumulative_args): Minor tweaks.
14125         (sparc_promote_function_mode): Likewise.
14126         (scan_record_type): Delete.
14127         (traverse_record_type): New function template.
14128         (classify_data_t): New structure type.
14129         (classify_registers): New inline function.
14130         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
14131         exhausted.  Instantiate traverse_record_type on classify_registers and
14132         deal with the case of a structure passed in slot #15 with no FP field
14133         in the first word.
14134         (assign_data_t): New structure type.
14135         (compute_int_layout): New static function.
14136         (compute_fp_layout): Likewise.
14137         (count_registers): New inline function.
14138         (assign_int_registers): New static function.
14139         (assign_fp_registers): Likewise.
14140         (assign_registers): New inline function.
14141         (function_arg_record_value_1): Delete.
14142         (function_arg_record_value_2): Likewise.
14143         (function_arg_record_value_3): Likewise.
14144         (function_arg_record_value): Adjust to above changes.  Instantiate
14145         traverse_record_type on count_registers to first count the number of
14146         registers to be used and then on assign_registers to assign them.
14147         (function_arg_union_value): Adjust to above renaming.
14148         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
14149         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
14150         case of a structure passed in slot #15
14151         (sparc_function_arg_advance): Likewise.
14152         (function_arg_padding): Minor tweak.
14154 2016-02-29  Richard Biener  <rguenther@suse.de>
14156         PR tree-optimization/69720
14157         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
14158         the adjustment_def path for possibly vectorized defs.
14159         (vect_create_epilog_for_reduction): Handle vectorized initial
14160         defs properly.
14162 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
14164         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
14166 2016-02-27  Jeff Law  <law@redhat.com>
14168         Revert
14169         2016-02-26  Richard Biener  <rguenther@suse.de>
14170                     Jeff Law  <law@redhat.com>
14172         PR tree-optimization/69740
14173         * cfghooks.c (remove_edge): Request loop fixups if we delete
14174         an edge that might turn an irreducible loop into a natural
14175         loop.
14177 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
14179         PR rtl-optimization/69896
14180         * tree-vect-generic.c (get_compute_type): Avoid single element
14181         vector types.
14183 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
14185         Rename the AArch64 tuning option and related functions to enable the
14186         Newton series for the reciprocal square root to reflect its
14187         approximative characteristic.
14189         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
14190         function to "aarch64_emit_approx_rsqrt".
14191         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
14192         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
14193         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
14194         (xgene1_tunings): Likewise.
14195         (use_rsqrt_p): Likewise.
14196         (aarch64_emit_swrsqrt): Use new function name.
14197         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
14198         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
14199         text explaining this option.
14200         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
14202 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14204         PR target/69969
14205         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14206         complain about -mallow-movmisalign without -mvsx if
14207         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
14209 2016-02-26  Joel Sherrill  <joel@rtems.org>
14211         * config.gcc: Add x86_64-*-rtems*.
14212         * config/i386/rtems-64.h: New file.
14214 2016-02-26  Joel Sherrill  <joel@rtems.org>
14216         * config.gcc: Add aarch64-*-rtems*.
14217         * config/aarch64/rtems.h: New file.
14219 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
14221         PR target/69946
14222         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
14223         shift amount using %h.  Add comment.
14225 2016-02-26  Richard Biener  <rguenther@suse.de>
14226             Jeff Law  <law@redhat.com>
14228         PR tree-optimization/69740
14229         * cfghooks.c (remove_edge): Request loop fixups if we delete
14230         an edge that might turn an irreducible loop into a natural
14231         loop.
14233 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14235         PR middle-end/69920
14236         * tree-sra.c (sra_modify_assign): Do not remove loads of
14237         uninitialized aggregates to SSA_NAMEs.
14239 2016-02-26  Richard Henderson  <rth@redhat.com>
14241         PR target/69709
14242         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
14243         pseudo in case the target rtx matches the source of the left
14244         shift.
14246 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14248         PR hsa/69568
14249         * hsa.h (hsa_type_packed_p): Declare.
14250         * hsa.c (hsa_type_packed_p): New function.
14251         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
14252         loads.
14253         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
14254         * hsa-brig.c (emit_basic_insn): Likewise.
14256 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14258         pr hsa/69674
14259         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
14260         pointers.
14261         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
14263 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14265         * hsa.h (is_a_helper): New overload for hsa_op_immed for
14266         hsa_op_with_type operands.
14267         (hsa_unsigned_type_for_type): Declare.
14268         * hsa.c (hsa_unsigned_type_for_type): New function.
14269         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
14270         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
14271         the finalizer.  Do not emit extra move.
14273 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14275         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
14276         atomic operations in private segment.
14278 2016-02-26  Martin Jambor  <mjambor@suse.cz>
14280         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
14281         statements to wi->info.  Also disallow omp simd constructs.
14282         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
14283         for not gridifying.  Dump special string for omp_for.
14285 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14287         PR target/69245
14288         * config/aarch64/aarch64.c (aarch64_set_current_function):
14289         Save/restore target globals when switching to
14290         target_option_default_node.
14292 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14294         PR target/69613
14295         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
14296         Return 0 if !SHIFT_COUNT_TRUNCATED.
14298 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
14299             Eric Botcazou  <ebotcazou@adacore.com>
14301         PR rtl-optimization/69891
14302         * dse.c (scan_insn): If we can't figure out memset arguments
14303         or they are non-constant, call clear_rhs_from_active_local_stores.
14305 2016-02-26  Martin Liska  <mliska@suse.cz>
14307         * doc/extend.texi: Mention clog10, clog10f an clog10l
14308         in Builtins section.
14310 2016-02-26  Martin Liska  <mliska@suse.cz>
14312         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
14313         CHECKING_P.
14314         (resolve_args_picking_1): Likewise.
14315         * dwarf2out.h (struct GTY): Likewise.
14317 2016-02-26  Martin Liska  <mliska@suse.cz>
14319         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
14320         with flag_checking.
14321         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
14323 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14324             Martin Liska  <mliska@suse.cz>
14326         * doc/install.texi: Mention --enable-valgrind-annotations.
14328 2016-02-26  Richard Biener  <rguenther@suse.de>
14330         PR tree-optimization/69551
14331         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
14332         looking through aliases adjust DECL_PT_UID to refer to the
14333         ultimate alias target.
14335 2016-02-25  Martin Liska  <mliska@suse.cz>
14337         PR middle-end/69919
14338         * alloc-pool.c (after_memory_report): New variable.
14339         * alloc-pool.h (base_pool_allocator ::release): Do not use
14340         the infrastructure if after_memory_report.
14341         * toplev.c (toplev::main): Mark after memory report.
14343 2016-02-25  Richard Biener  <rguenther@suse.de>
14345         PR tree-optimization/48795
14346         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
14348 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
14350         PR driver/68463
14351         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
14352         offloading is enabled and -fopenacc or -fopenmp is specified.
14353         (CRTOFFLOADEND): Likewise.
14354         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
14355         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
14356         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
14357         (offload_objects_file_name): New static var.
14358         (tool_cleanup): Remove offload_objects_file_name file.
14359         (find_offloadbeginend): Replace with ...
14360         (find_crtoffloadtable): ... this.
14361         (run_gcc): Remove offload_argc and offload_argv.
14362         Get offload_objects_file_name from -foffload-objects=... option.
14363         Read names of object files with offload from this file, pass them to
14364         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
14365         don't pass offloadbegin and offloadend to the linker.  Don't pass
14366         offload non-LTO files to the linker, because now they're not claimed.
14368 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
14370         PR ipa/69630
14371         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
14372         on builtin_unreachable.
14374 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
14376         PR rtl-optimization/69896
14377         * regcprop.c: Include cfgrtl.h.
14378         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
14379         than remembered mode, either delete it (if noop_move_p), or
14380         treat like copy_p but not noop_p instruction.
14382 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14384         PR debug/69705
14385         * dwarf2out.c (gen_variable_die): Work around buggy LTO
14386         - allow NULL decl for Fortran DW_TAG_common_block variables.
14388 2016-02-24  Jason Merrill  <jason@redhat.com>
14390         * common.opt (flifetime-dse): Add -flifetime-dse=1.
14392 2016-02-24  Richard Biener  <rguenther@suse.de>
14393             Jakub Jelinek  <jakub@redhat.com>
14395         PR middle-end/69760
14396         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
14397         conditionally executed ops to well-defined overflow behavior.
14399 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14401         PR middle-end/69915
14402         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
14403         elements.
14405 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14407         PR rtl-optimization/69886
14408         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
14409         argument.  Use it when checking validity of set instructions.
14410         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
14411         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
14412         callsite.
14413         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
14414         * store-motion.c (find_moveable_store): Update
14415         can_assign_to_reg_without_clobbers_p callsite.
14417 2016-02-24  Richard Biener  <rguenther@suse.de>
14419         PR middle-end/68963
14420         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
14421         bogus check.
14422         (record_nonwrapping_iv): Do not fall back to the low/high bound
14423         for non-constant IV bases if the stmt is not always executed.
14425 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14427         * config/arm/arm-cores.def (cortex-a32): New entry.
14428         * config/arm/arm-tables.opt: Regenerate.
14429         * config/arm/arm-tune.md: Regenerate.
14430         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
14431         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
14432         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
14433         for -mcpu and -mtune.
14435 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14437         PR target/69875
14438         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
14439         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
14440         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
14441         (atomic_loaddi_1): Delete.
14442         (atomic_loaddi): Rewrite expander using the above changes.
14444 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14446         PR c/69918
14447         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
14448         2 to 3.
14450 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
14451             Richard Biener  <rguenth@suse.de>
14453         PR middle-end/69909
14454         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
14455         set_mem_attributes if tem is SSA_NAME which got expanded
14456         as a MEM.
14458 2016-02-24  Richard Biener  <rguenther@suse.de>
14460         PR tree-optimization/69907
14461         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
14462         end of permutations for BB vectorization.
14464 2016-02-24  Christian Bruel  <christian.bruel@st.com>
14466         * config/arm/arm-c.c (arm_option_override): Initialize
14467         target_option_current_node.
14468         * config/arm/arm.c (arm_pragma_target_parse): Replace
14469         build_target_option_node call by target_option_current_node.
14470         Set target_option_current_node.
14471         Fix comments.
14473 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
14475         PR target/69810
14476         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
14477         define_insn_and_split to define_insn.
14478         (zero_extendqi<mode>2_dot2): Same.
14479         (extendqi<mode>2_dot): Same.
14480         (extendqi<mode>2_dot2): Same.
14482 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14484         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
14485         and add bypass for AES{D,E} and AESMC pairs.
14486         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
14487         and AESMC pairs.
14489 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
14491         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
14492         series for reciprocal square root in Exynos M1.
14494 2016-02-23  Martin Sebor  <msebor@redhat.com>
14496         PR c/69759
14497         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
14498         __builtin_alloca_with_align.
14500 2016-02-23  Richard Henderson  <rth@redhat.com>
14502         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
14503         (ix86_register_pragmas): Remove __seg_tls.
14504         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
14505         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
14506         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
14507         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
14508         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
14509         * doc/extend.texi (__seg_tls): Remove item.
14511 2016-02-23  Richard Biener  <rguenther@suse.de>
14513         * alloc-pool.h (struct allocation_object): Make id member
14514         conditional on CHECKING_P again.
14515         (get_instance): Adjust.
14516         (base_pool_allocator): Likewise.
14518 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
14520         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
14521         (parallelize_loops): In OpenACC kernels mode, set n_threads to
14522         zero.
14523         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
14524         flag_openacc.
14525         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
14527 2016-02-23  Richard Biener  <rguenther@suse.de>
14529         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
14530         * bitmap.h (struct bitmap_usage): Likewise.
14531         (bitmap_move): Declare.
14532         * bitmap.c (register_overhead): Take size_t argument.
14533         (bitmap_move): New function.
14534         * df-problems.c (df_rd_transfer_function): Use bitmap_move
14535         to properly account overhead.
14536         * tree.c (free_node): Use tree_size.
14538 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
14540         PR c++/69902
14541         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
14542         when inverting comparison.
14544         PR c/69900
14545         * common.opt (Wunreachable-code): Add Warning flag.
14547 2016-02-23  Mark Wielaard  <mjw@redhat.com>
14548             Jakub Jelinek  <jakub@redhat.com>
14550         PR c/69911
14551         * cgraphunit.c (check_global_declaration): Check main_input_filename
14552         and DECL_SOURCE_FILE are not NULL.
14554 2016-02-23  Martin Jambor  <mjambor@suse.cz>
14556         PR tree-optimization/69666
14557         * tree-sra.c (sra_modify_assign): Do not attempt to create
14558         default_def replacements for unscalarizable regions.
14560 2016-02-20  Mark Wielaard  <mjw@redhat.com>
14562         PR c/28901
14563         * cgraphunit.c (check_global_declaration): Check level of
14564         warn_unused_const_variable and main_input_filename.
14565         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
14566         (-Wunused-variable): For C implies -Wunused-const-variable=1.
14567         (-Wunused-const-variable): Explain levels 1 and 2.
14569 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14571         PR target/69888
14572         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
14573         identical arguments.  Formatting and spelling fixes.
14575         PR target/69885
14576         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
14577         be specified.
14579         PR target/69894
14580         PR target/69895
14581         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
14582         and m68k-devices.def.
14583         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
14584         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
14586 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
14588         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
14589         and HImode registers.
14591 2016-02-22  Richard Biener  <rguenther@suse.de>
14593         PR tree-optimization/69882
14594         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
14595         preserve permutations present because of gaps.
14596         (vect_supported_load_permutation_p): Always continue checking
14597         permutations after vect_attempt_slp_rearrange_stmts.
14599 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
14601         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
14602         min_profitable_estimate, rather than min_profitable_iters.
14604 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
14606         PR target/69885
14607         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
14608         SImode for last match_operand.
14610 2016-02-22  Martin Liska  <mliska@suse.cz>
14612         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
14613         return bitsize - 1 as the return value.
14615 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
14617         PR target/69806
14618         PR target/54089
14619         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
14620         Handle negative shift counts.
14621         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
14622         force_reg on the shift constant.
14623         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
14624         (lshrsi3_d): Handle negative shift counts.
14626 2016-02-22  Richard Biener  <rguenther@suse.de>
14627             Tom de Vries  <tom@codesourcery.com>
14629         * graph.c: Include dumpfile.h.
14630         (print_graph_cfg): Split into three overloads.
14631         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
14633 2016-02-22  Tom de Vries  <tom@codesourcery.com>
14635         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
14636         dump-fn.
14638 2016-02-22  Richard Biener  <rguenther@suse.de>
14640         PR ipa/37448
14641         * ipa-inline-transform.c (inline_call): When not updating
14642         overall summaries adjust self size by the growth estimate.
14643         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
14644         hash-set, do not update overall summaries here.  Renamed from ...
14645         (inline_to_all_callers): ... this which is now wrapping the
14646         above and performing delayed overall summary update.
14647         (early_inline_small_functions): Delay updating of the overall
14648         summary.
14650 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14652         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
14653         variable.
14655 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14657         PR driver/69805
14658         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
14659         :%* in %:gt() argument.
14660         (greater_than_spec_func): Adjust for expecting only numbers,
14661         if there are more than two numbers, compare the last two.
14663 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
14665         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
14666         -Wnarrowing with -std.
14668 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
14670         PR c++/69851
14671         * expr.c (store_field): Don't use bit-field path if exp is
14672         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
14673         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
14674         and the assignment can be performed by bitwise copy.  Formatting
14675         fix.
14677         PR middle-end/69838
14678         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
14679         call copy_reg_eh_region_note_forward on before and/or after sequences
14680         and remove note from insn if it no longer can throw.
14682         PR target/69820
14683         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
14684         if TARGET_AVX512BW.
14686 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14688         * config/s390/vector.md: Add missing commutative operand markers
14689         to the patterns which qualify for one.
14690         * config/s390/vx-builtins.md: Likewise.
14692 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14694         * config/s390/vector.md (VI, VI_QHS): Add single element vector
14695         types to mode iterators.
14696         (vec_double): ... and mode attribute.
14697         * config/s390/vx-builtins.md (non_vec_int): Likewise.
14699 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14701         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
14702         Change the predicate of op2 from nonimmediate to general and let
14703         reload fix it if necessary.
14705 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14707         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
14709 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14711         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
14712         mode.
14714 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14716         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
14717         * config/s390/s390.c (s390_expand_vec_movstr): New function.
14718         * config/s390/s390.md ("movstr<P:mode>"): Call
14719         s390_expand_vec_movstr.
14721 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14723         * config/s390/s390.md: Add missing output modifier for operand 1
14724         to print it as address properly.
14726 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14728         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
14729         * config/s390/2964.md: New file.
14730         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
14731         of insn grouping attributes depending on the CPU level.
14732         (s390_get_unit_mask): New function.
14733         (s390_sched_score): Remove the OOO from the scheduling macros.
14734         Add loop to calculate a score for the instruction mix.
14735         (s390_sched_reorder): Likewise plus improve debug output.
14736         (s390_sched_variable_issue): Rename macros as above.  Calculate
14737         the unit distances after actually scheduling an insn.  Improve
14738         debug output.
14739         (s390_sched_init): Clear last_scheduled_unit_distance array.
14740         * config/s390/s390.md: Include 2964.md.
14742 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14744         PR target/69671
14745         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
14746         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
14747         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
14748         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
14749         *avx512f_<code>v8div16qi2_mask_1): New insns.
14751 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14753         PR target/68404
14754         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
14755         2016-02-09 change.
14757         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
14758         earlyclobber from target.  Use wF constraint for fused memory
14759         address.
14760         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
14762 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
14763             Martin Liska  <mliska@suse.cz>
14765         PR sanitizer/69863
14766         * cfgexpand.c (asan_sanitize_stack_p): New function.
14767         (partition_stack_vars): Use the function.
14768         (expand_stack_vars): Likewise.
14769         (defer_stack_allocation): Likewise.
14770         (expand_used_vars): Likewise.
14772 2016-02-18  Richard Biener  <rguenther@suse.de>
14774         PR middle-end/69553
14775         * fold-const.c (operand_equal_p): Properly compare offsets for
14776         IMAGPART_EXPR and ARRAY_REF.
14778 2016-02-18  Nick Clifton  <nickc@redhat.com>
14780         PR target/62254
14781         PR target/69610
14782         * config/arm/arm.c (arm_option_override_internal): Disable
14783         interworking if the target does not support thumb instructions.
14784         (arm_reload_in_hi): Handle the case where a register to register
14785         move needs reloading because there is no simple pattern to handle
14786         it.
14787         (arm_reload_out_hi): Likewise.
14789 2016-02-18  Richard Biener  <rguenther@suse.de>
14791         PR middle-end/69854
14792         * match.pd: Don't use fold_binary or fold_unary for folding
14793         constants.
14795 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
14797         PR c++/69850
14798         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
14799         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
14800         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
14801         warn on gimple_no_warning_p statements.
14803 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
14805         * doc/extend.texi (C++ Attributes): Correct description of
14806         warn_unused type attribute.
14808 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14810         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
14811         correct instruction.
14813 2016-02-17  Richard Biener  <rguenther@suse.de>
14815         PR rtl-optimization/69609
14816         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
14817         (find_traces_1_round): When ending a trace update cached priority
14818         of successors.
14819         (bb_to_key): Use cached priority when available.
14820         (copy_bb): Initialize cached priority.
14821         (reorder_basic_blocks_software_trace_cache): Likewise.
14823 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14825         PR target/69161
14826         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
14827         New predicate.
14828         (aarch64_comparison_operator): Break overly long line into two.
14829         (aarch64_comparison_operation): Likewise.
14830         * config/aarch64/aarch64.md (cstorecc4): Use
14831         aarch64_comparison_operator_mode instead of
14832         aarch64_comparison_operator.
14833         (cstore<mode>4): Likewise.
14834         (aarch64_cstore<mode>): Likewise.
14835         (*cstoresi_insn_uxtw): Likewise.
14836         (cstore<mode>_neg): Likewise.
14837         (*cstoresi_neg_uxtw): Likewise.
14839 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14841         PR target/69161
14842         * config/arm/predicates.md (arm_comparison_operator_mode):
14843         New predicate.
14844         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
14845         instead of arm_comparison_operator.
14846         (*mov_negscc): Likewise.
14847         (*mov_notscc): Likewise.
14848         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
14849         (*thumb2_mov_negscc): Likewise.
14850         (*thumb2_mov_negscc_strict_it): Likewise.
14851         (*thumb2_mov_notscc): Likewise.
14852         (*thumb2_mov_notscc_strict_it): Likewise.
14854 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
14856         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
14857         Add missing return.
14859 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
14861         * config/visium/visium.c (machine_libfunc_index): New enum.
14862         (machine_libfuncs): New structure.
14863         (visium_libfuncs): New static variable.
14864         (TARGET_INIT_LIBFUNCS): Define to...
14865         (visium_init_libfuncs): ...this.  New function.
14866         (expand_block_move_4): Use the appropriate libfunc.
14867         (expand_block_move_2): Likewise.
14868         (expand_block_move_1): Likewise.
14869         (expand_block_set_4): Likewise.
14870         (expand_block_set_2): Likewise.
14871         (expand_block_set_1): Likewise.
14872         (visium_trampoline_init): Likewise.
14874 2016-02-17  Nick Clifton  <nickc@redhat.com>
14876         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
14877         TI's devices.csv file as of March 2016.
14879 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14881         PR Target/48344
14882         * opts-global.c (handle_common_deferred_options): Introduce and
14883         initialize two global variables to remember command-line options
14884         specifying a stack-limiting register.
14885         * opts.h: Add extern declarations of the two new global variables.
14886         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
14887         variable based on the values of the two new global variables.
14889 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14891         PR c/69835
14892         * common.opt (Wnonnull-compare): New warning.
14893         * doc/invoke.texi (-Wnonnull): Remove text about comparison
14894         of arguments against NULL.
14895         (-Wnonnull-compare): Document.
14896         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
14897         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
14898         * passes.def (pass_warn_nonnull_compare): Add.
14899         * gimple-ssa-nonnull-compare.c: New file.
14901 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14903         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
14904         AARCH64_EXTRA_TUNE_RECIP_SQRT.
14906 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14908         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
14909         reciprocal sqrt for -mlow-precision-recip-sqrt.
14911 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14912             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14914         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
14915         always use lane loads to construct non-constant vectors.
14917 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
14919         * config/aarch64/aarch64.md
14920         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
14921         constraints for operand 3.
14922         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
14924 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14925             Richard Biener  <rguenther@suse.de>
14927         PR tree-optimization/69820
14928         * tree-vect-patterns.c (type_conversion_p): Return false if
14929         *orig_type is unsigned single precision or boolean.
14930         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
14931         Formatting fix.
14933 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
14935         PR rtl-optimization/69764
14936         PR rtl-optimization/69771
14937         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
14938         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
14940 2016-02-16  Richard Biener  <rguenther@suse.de>
14942         PR tree-optimization/69776
14943         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
14944         sets from caller.
14945         (indirect_refs_may_alias_p): Likewise.
14946         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
14947         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
14948         according to tbaa_p.
14949         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
14950         (optimize_stmt): For redundant store discovery do not allow tbaa.
14952 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
14954         PR tree-optimization/69714
14955         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
14956         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
14958 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
14960         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
14961         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
14962         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
14963         * config/arc/arc.c (arc_init): Check FPU options.
14964         (get_arc_condition_code): Handle new CC_FPU* modes.
14965         (arc_select_cc_mode): Likewise.
14966         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
14967         register pair only. Allow access for ARCv2 accumulator.
14968         (gen_compare_reg): Whenever we have FPU support use FPU compare
14969         instructions.
14970         (arc_reorg): Don't generate brcc insns when FPU compare
14971         instructions are involved.
14972         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
14973         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
14974         floating point emulation.
14975         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
14976         (REVERSE_CONDITION): Add new CC_FPU* modes.
14977         (TARGET_FP_SP_BASE): Define.
14978         (TARGET_FP_DP_BASE): Likewise.
14979         (TARGET_FP_SP_FUSED): Likewise.
14980         (TARGET_FP_DP_FUSED): Likewise.
14981         (TARGET_FP_SP_CONV): Likewise.
14982         (TARGET_FP_DP_CONV): Likewise.
14983         (TARGET_FP_SP_SQRT): Likewise.
14984         (TARGET_FP_DP_SQRT): Likewise.
14985         (TARGET_FP_DP_AX): Likewise.
14986         * config/arc/arc.md (ARCV2_ACC): New constant.
14987         (type): New fpu type attribute.
14988         (SDF): Conditional iterator.
14989         (cstore<mode>, cbranch<mode>): Change expand condition.
14990         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
14991         handles FPU/FPX cases as well.
14992         * config/arc/arc.opt (mfpu): New option.
14993         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
14994         Renamed.
14995         (adddf3, muldf3, subdf3): Removed.
14996         * config/arc/predicates.md (proper_comparison_operator): Recognize
14997         CC_FPU* modes.
14998         * config/arc/fpu.md: New file.
14999         * doc/invoke.texi (ARC Options): Document mfpu option.
15001 2016-02-16  Richard Biener  <rguenther@suse.de>
15003         PR rtl-optimization/69291
15004         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
15005         noce_operand_ok check.
15007 2016-02-16  Tom de Vries  <tom@codesourcery.com>
15009         PR lto/67709
15010         * omp-low.c (simd_clone_create): Remove call to
15011         symtab->call_cgraph_insertion_hooks.
15013 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
15015         PR tree-optimization/69802
15016         * tree-ssa-reassoc.c (update_range_test): If op is
15017         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
15018         op == 1 test of precision 1 integral op, otherwise handle
15019         that case as op itself.  Fix up formatting.
15020         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
15021         up formatting.
15023 2016-02-16  Richard Biener  <rguenther@suse.de>
15025         PR tree-optimization/69586
15026         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15027         types for conversion sources.
15029 2016-02-16  Richard Biener  <rguenther@suse.de>
15031         PR middle-end/69801
15032         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
15033         mask OEP_ADDRESS_OF.
15035 2016-02-16  Alan Modra  <amodra@gmail.com>
15037         PR target/68973
15038         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
15039         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
15040         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
15041         (p8_mtvsrwz): New.
15042         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
15043         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
15044         (p8_fmrgow_<mode>): Likewise.
15045         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
15046         changes.
15047         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
15048         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
15049         to use movdi_internal64.  Remove op0_di.
15050         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
15052 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
15054         Add support for the FCCMP insn types
15056         * config/aarch64/aarch64.md (fccmp): Change insn type.
15057         (fccmpe): Likewise.
15058         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
15059         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
15060         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
15061         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
15062         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
15063         * config/arm/types.md (fccmps): Add new insn type.
15064         (fccmpd): Likewise.
15066 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15068         * alias.c (get_alias_set): Fix a typo in comment.
15070 2016-02-15  Richard Biener  <rguenther@suse.de>
15072         PR tree-optimization/69595
15073         * match.pd: Complete range test simplification to true.
15075 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
15077         PR rtl-optimization/69648
15078         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
15079         pic_offset_table_rtx.
15081         PR rtl-optimization/69752
15082         * ira.c (update_equiv_regs): When looking for more than a single SET,
15083         also take other side effects into account.
15085 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15087         * config/s390/s390.c (s390_function_profiler): Add a new sequence
15088         for z900+ CPUs in 31-bit mode.
15090 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
15092         * common/config/s390/s390-common.c (s390_supports_split_stack):
15093         New function.
15094         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
15095         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
15096         * config/s390/s390.c (struct machine_function): New field
15097         split_stack_varargs_pointer.
15098         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
15099         in s390_emit_prologue.
15100         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
15101         vararg pointer.
15102         (morestack_ref): New global.
15103         (SPLIT_STACK_AVAILABLE): New macro.
15104         (s390_expand_split_stack_prologue): New function.
15105         (s390_live_on_entry): New function.
15106         (s390_va_start): Use split-stack vararg pointer if appropriate.
15107         (s390_asm_file_end): Emit the split-stack note sections.
15108         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
15109         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
15110         (UNSPECV_SPLIT_STACK_CALL): New unspec.
15111         (UNSPECV_SPLIT_STACK_DATA): New unspec.
15112         (split_stack_prologue): New expand.
15113         (split_stack_space_check): New expand.
15114         (split_stack_data): New insn.
15115         (split_stack_call): New expand.
15116         (split_stack_call_*): New insn.
15117         (split_stack_cond_call): New expand.
15118         (split_stack_cond_call_*): New insn.
15120 2016-02-15  Richard Biener  <rguenther@suse.de>
15122         PR tree-optimization/69783
15123         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15124         Add trivially correct cases.
15126 2016-02-15  Tom de Vries  <tom@codesourcery.com>
15128         PR lto/69655
15129         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
15130         do_force_output.
15131         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
15133 2016-02-15  Richard Biener  <rguenther@suse.de>
15135         PR tree-optimization/69776
15136         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
15137         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
15138         indicate whether we can use TBAA to disambiguate against stores.
15139         Use alias-set zero if not.
15140         (visit_reference_op_store): Do not use TBAA when looking up
15141         redundant stores.
15142         * tree-ssa-pre.c (compute_avail): Use TBAA here.
15143         (eliminate_dom_walker::before_dom_children): But not when looking
15144         up redundant stores.
15146 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
15148         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
15150 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15152         *  config/i386/znver1.md
15153         (znver1_pop, znver1_pop_mem,
15154         znver1_load_imov_double_store,
15155         znver1_load_imov_direct_store,
15156         znver1_load_imov_direct_load,
15157         znver1_load_imov_double_load): Add new.
15158         (znver1_insn, znver1_insn_load): Add icmov type.
15159         (znver1_sseavx_fma,
15160         znver1_sseavx_fma_load,
15161         znver1_avx256_fma,
15162         znver1_avx256_fma_load): Fix pipe usage.
15164 2016-02-14  Alan Modra  <amodra@gmail.com>
15166         PR target/68973
15167         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
15168         with an invalid hard reg, reload just the reg not the entire
15169         pre/post-inc/dec address expression.
15171 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15173         PR target/67260
15174         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
15175         fixed R1_REG scratch reg.
15176         (sibcall_value_pcrel_fdpic): Likewise.
15178 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
15180         PR target/67636
15181         PR target/64345
15182         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
15184 2016-02-12  Walter Lee  <walt@tilera.com>
15186         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
15187         * config/tilegx/t-tilegx: Likewise.
15189 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15191         PR other/69554
15192         * diagnostic-show-locus.c (struct line_span): New struct.
15193         (layout::get_first_line): Delete.
15194         (layout::get_last_line): Delete.
15195         (layout::get_num_line_spans): New member function.
15196         (layout::get_line_span): Likewise.
15197         (layout::print_heading_for_line_span_index_p): Likewise.
15198         (layout::get_expanded_location): Likewise.
15199         (layout::calculate_line_spans): Likewise.
15200         (layout::m_first_line): Delete.
15201         (layout::m_last_line): Delete.
15202         (layout::m_line_spans): New field.
15203         (layout::layout): Update comment.  Replace m_first_line and
15204         m_last_line with m_line_spans, replacing their initialization
15205         with a call to calculate_line_spans.
15206         (diagnostic_show_locus): When printing source lines and
15207         annotations, rather than looping over a single span
15208         of lines, instead loop over each line_span within
15209         the layout, with an inner loop over the lines within them.
15210         Call the context's start_span callback when changing line spans.
15211         * diagnostic.c (diagnostic_initialize): Initialize start_span.
15212         (diagnostic_build_prefix): Break out the building of the location
15213         part of the string into...
15214         (diagnostic_get_location_text): ...this new function, rewriting
15215         it from nested ternary expressions to a sequence of "if"
15216         statements.
15217         (default_diagnostic_start_span_fn): New function.
15218         * diagnostic.h (diagnostic_start_span_fn): New typedef.
15219         (diagnostic_context::start_span): New field.
15220         (default_diagnostic_start_span_fn): New prototype.
15222 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15224         PR driver/69779
15225         * gcc.c (driver::finalize): Fix cleanup of "specs".
15227 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
15229         PR driver/69265
15230         PR driver/69453
15231         * gcc.c (driver::driver): Initialize m_option_suggestions.
15232         (driver::~driver): Clean up m_option_suggestions.
15233         (suggest_option): Convert to...
15234         (driver::suggest_option): ...this, and split out into
15235         driver::build_option_suggestions and find_closest_string.
15236         (driver::build_option_suggestions): New function, from
15237         first half of suggest_option.  Special-case
15238         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
15239         the sanitizer_opts array.  For options of enum types, add the
15240         various enum values to the candidate strings.
15241         (driver::handle_unrecognized_options): Remove "const".
15242         * gcc.h (driver::handle_unrecognized_options): Likewise.
15243         (driver::build_option_suggestions): New decl.
15244         (driver::suggest_option): New decl.
15245         (driver::m_option_suggestions): New field.
15246         * opts-common.c (add_misspelling_candidates): New function.
15247         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
15248         and make non-static.
15249         * opts.h (sanitizer_opts): New array decl.
15250         (add_misspelling_candidates): New function decl.
15251         * spellcheck.c (find_closest_string): New function.
15252         * spellcheck.h (find_closest_string): New function decl.
15254 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15256         PR rtl-optimization/69764
15257         PR rtl-optimization/69771
15258         * optabs.c (expand_binop_directly): For shift_optab_p, force
15259         convert_modes with VOIDmode if xop1 has VOIDmode.
15261 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
15263         PR target/69729
15264         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
15265         to correctly determine instrumentation thunks.
15267 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15269         PR ipa/69241
15270         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
15271         type by reference, force lhs on the call.
15273         PR ipa/68672
15274         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
15275         Compute retval and retbnd early in all cases if split_part_return_p
15276         and return_bb is not EXIT.  Remove all clobber stmts and reset
15277         all debug stmts that refer to SSA_NAMEs defined in split part,
15278         except if it is retval, in that case replace the old retval with the
15279         lhs of the call to the split part.
15281 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15283         revert:
15284         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15286         PR middle-end/66726
15287         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15288         whose result is used in PHI.
15289         (maybe_optimize_range_tests): Likewise.
15290         (final_range_test_p): Likweise.
15292 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
15294         PR middle-end/66726
15295         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
15296         whose result is used in PHI.
15297         (maybe_optimize_range_tests): Likewise.
15298         (final_range_test_p): Likweise.
15300 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
15302         * cgraph.c: Spelling fixes - behaviour -> behavior and
15303         neighbour -> neighbor.
15304         * target.def: Likewise.
15305         * sel-sched.c: Likewise.
15306         * config/mips/mips.c: Likewise.
15307         * config/arc/arc.md: Likewise.
15308         * config/arm/cortex-a57.md: Likewise.
15309         * config/arm/arm.c: Likewise.
15310         * config/arm/neon.md: Likewise.
15311         * config/arm/arm-c.c: Likewise.
15312         * config/vms/vms-c.c: Likewise.
15313         * config/s390/s390.c: Likewise.
15314         * config/i386/znver1.md: Likewise.
15315         * config/i386/i386.c: Likewise.
15316         * config/ia64/hpux-unix2003.h: Likewise.
15317         * config/msp430/msp430.md: Likewise.
15318         * config/rx/rx.c: Likewise.
15319         * config/rx/rx.md: Likewise.
15320         * config/aarch64/aarch64-simd.md: Likewise.
15321         * config/aarch64/aarch64.c: Likewise.
15322         * config/nvptx/nvptx.c: Likewise.
15323         * config/bfin/bfin.c: Likewise.
15324         * config/cris/cris.opt: Likewise.
15325         * config/rs6000/rs6000.c: Likewise.
15326         * target.h: Likewise.
15327         * spellcheck.c: Likewise.
15328         * ira-build.c: Likewise.
15329         * tree-inline.c: Likewise.
15330         * builtins.c: Likewise.
15331         * lra-constraints.c: Likewise.
15332         * explow.c: Likewise.
15333         * hwint.h: Likewise.
15334         * targhooks.c: Likewise.
15335         * tree-vect-data-refs.c: Likewise.
15336         * expr.c: Likewise.
15337         * doc/tm.texi: Likewise.
15338         * doc/extend.texi: Likewise.
15339         * doc/install.texi: Likewise.
15340         * doc/md.texi: Likewise.
15341         * tree-ssa-tail-merge.c: Likewise.
15342         * sched-int.h: Likewise.
15343         * match.pd: Likewise.
15344         * sched-ebb.c: Likewise.
15345         * target.def (omit_struct_return_reg): Likewise.
15346         * gimple-ssa-isolate-paths.c: Likewise.
15347         (find_implicit_erroneous_behaviour): Renamed to...
15348         (find_implicit_erroneous_behavior): ... this.
15349         (find_explicit_erroneous_behaviour): Renamed to...
15350         (find_explicit_erroneous_behavior): ... this.
15351         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
15353 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
15355         PR rtl-optimization/64682
15356         PR rtl-optimization/69567
15357         PR rtl-optimization/69737
15358         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
15359         in I2 as well, just lose it.
15361 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15363         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
15364         New variable.
15365         (aarch64_last_printed_tune_string): Likewise.
15366         (aarch64_declare_function_name): Only output .arch assembler
15367         directive if it will be different from the previously output
15368         directive.  Same for .tune comment but only if -dA is set.
15369         (aarch64_start_file): New function.
15370         (TARGET_ASM_FILE_START): Define.
15372 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
15374         PR plugins/69758
15375         * Makefile.in (PLUGIN_HEADERS): Add params.list.
15377 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
15379         PR target/65313
15380         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
15381         -Wmaybe-uninitialized warning.
15383 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
15385         PR target/69713
15386         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
15388 2016-02-11  Richard Biener  <rguenther@suse.de>
15390         PR rtl-optimization/69291
15391         * ifcvt.c (noce_try_store_flag_constants): Do not allow
15392         subexpressions affected by changing the result.
15394 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15396         PR target/69148
15397         * lra-constraints.c (curr_insn_transform): Find in/out operands
15398         for secondary memory moves.  Update dups.
15400 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
15402         PR tree-optimization/69652
15403         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
15404         to nested loop, did source re-formatting, skip debug statements,
15405         add check on statement with volatile operand, remove dead scalar
15406         statements.
15408 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
15409             Patrick Palka  <ppalka@gcc.gnu.org>
15411         PR ipa/69241
15412         PR c++/69649
15413         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
15414         calls if the return type is TREE_ADDRESSABLE.
15415         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
15416         * ipa-split.c (split_function): Fix doubled "we" in comment.
15417         Use void return type for the split part even if
15418         !split_point->split_part_set_retval.
15420 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
15422         PR tree-optimization/68021
15423         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
15424         when computing the value of biv cand by itself.
15426 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15428         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
15429         (cortexa57_tunings): Likewise.
15430         (cortexa72_tunings): Likewise.
15431         (arch_macro_fusion_pair_p): Add support for AES fusion.
15432         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
15433         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
15434         Allow virtual registers before reload so early scheduling works.
15435         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
15436         correct latency and pipeline.
15437         (cortex_a57_crypto_complex): Likewise.
15438         (cortex_a57_crypto_xor): Likewise.
15439         (define_bypass): Add AES bypass.
15441 2016-02-10  Richard Biener  <rguenther@suse.de>
15443         PR tree-optimization/69726
15444         * passes.def: Add DCE pass before late uninit.
15445         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
15446         really fixup if-conversions job.
15448 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
15450         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
15451         (arm_cortex_a57_tune): Likewise.
15452         (aarch_macro_fusion_pair_p): Add support for AES fusion.
15453         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
15455 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
15457         * timevar.def (TV_PHASE_DBGINFO): Delete.
15458         (TV_PHASE_CHECK_DBGINFO): Likewise.
15459         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
15461 2016-02-10  Richard Biener  <rguenther@suse.de>
15463         PR tree-optimization/69719
15464         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15465         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
15467 2016-02-09  Andrew Pinski  <apinski@cavium.com>
15469         PR tree-opt/69282
15470         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
15471         get_vcond_mask_icode returns false.
15473 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
15475         PR target/68404
15476         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
15477         an ADDIS that adds a pointer to a large constant that sets the
15478         upper16 bits with a load operation.
15480 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15482         PR target/68532
15483         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
15484         order.
15485         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
15486         endian.
15487         (vzipq_s16): Likewise.
15488         (vzipq_s32): Likewise.
15489         (vzipq_f32): Likewise.
15490         (vzipq_u8): Likewise.
15491         (vzipq_u16): Likewise.
15492         (vzipq_u32): Likewise.
15493         (vzipq_p8): Likewise.
15494         (vzipq_p16): Likewise.
15496 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
15498         PR target/68532
15499         * config/arm/arm.c (neon_endian_lane_map): New function.
15500         (neon_vector_pair_endian_lane_map): New function.
15501         (arm_evpc_neon_vuzp): Allow for big endian lane order.
15502         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
15503         endian.
15504         (vuzpq_s16): Likewise.
15505         (vuzpq_s32): Likewise.
15506         (vuzpq_f32): Likewise.
15507         (vuzpq_u8): Likewise.
15508         (vuzpq_u16): Likewise.
15509         (vuzpq_u32): Likewise.
15510         (vuzpq_p8): Likewise.
15511         (vuzpq_p16): Likewise.
15513 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
15515         PR target/69634
15516         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
15517         debug insns.
15519 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
15521         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
15522         truncate const_int operand 1 to QImode.
15524 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
15526         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
15527         corresponding to an abnormal edge.
15529 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15531         PR tree-optimization/69599
15532         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
15533         function.
15534         (find_func_aliases_for_builtin_call, find_func_clobbers)
15535         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
15536         partition.
15538 2016-02-09  Richard Biener  <rguenther@suse.de>
15540         PR tree-optimization/69715
15541         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
15542         LHS on calls as non-rewritable.
15544 2016-02-09  Tom de Vries  <tom@codesourcery.com>
15546         PR lto/69707
15547         * lto-wrapper.c (append_diag_options): New function.
15548         (compile_offload_image): Call append_diag_options.
15550 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
15552         PR other/69722
15553         * doc/extend.texi (Flag Output Operands): Correct sectioning.
15554         Minor copy-edit to fix verb tenses.
15556 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
15558         PR tree-optimization/69209
15559         * ipa-split.c (split_function): If split part is not
15560         returning retval, retval has gimple type but is not
15561         gimple value, force it into a SSA_NAME first.
15563 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
15565         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
15566         outdated section.
15568 2016-02-08  Jason Merrill  <jason@redhat.com>
15570         PR c++/69631
15571         * convert.c (convert_to_integer_1): Check dofold on truncation
15572         distribution.
15573         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
15574         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
15575         Rename from *_nofold.
15576         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
15577         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
15579 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
15581         PR target/60410
15582         * tree.c (build_common_tree_nodes): Remove short_double argument.
15583         All callers changed.
15584         * tree.h (build_common_tree_nodes): Adjust declaration.
15585         * doc/invoke.texi (-fshort-double): Remove documentation.
15586         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15587         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
15588         * lto-wrapper.c (merge_and_complain, append_compiler_options)
15589         (append_linker_options): Don't handle OPT_fshort_double.
15591         PR rtl-optimization/68730
15592         * lra-remat.c (insn_to_cand_activation): New static variable.
15593         (lra_remat): Allocate and free it.
15594         (create_cand): New arg activation. Initialize a field in
15595         insn_to_cand_activation if it is nonnull.
15596         (create_cands): Pass the activation insn to create_cand when making
15597         a candidate involving an output reload.  Reorganize code a little.
15598         (do_remat): Keep track of active status of candidates in a separate
15599         bitmap.
15601 2016-02-08  Richard Biener  <rguenther@suse.de>
15603         PR tree-optimization/69719
15604         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
15605         Properly use absolute of the difference of the two offsets to
15606         compare or adjust the segment length.
15608 2016-02-08  Richard Biener  <rguenther@suse.de>
15609             Jeff Law  <law@redhat.com>
15611         PR target/68273
15612         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
15613         types for anonymous SSA names.
15615 2016-02-08   Richard Biener  <rguenther@suse.de>
15617         PR rtl-optimization/69274
15618         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
15620 2016-02-08  Jeff Law  <law@redhat.com>
15622         PR tree-optimization/65917
15623         * tree-ssa-dom.c (record_temporary_equivalences): Record both
15624         equivalences from if (x == y) style conditionals.
15625         (loop_depth_of_name): Remove.
15626         (record_equality): Remove loop depth check.
15627         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
15628         (const_and_copies::record_const_or_copy_raw): New member function.
15629         * tree-ssa-scopedtables.c
15630         (const_and_copies::record_const_or_copy_raw): New, factored out of
15631         (const_and_copies::record_const_or_copy): Call new member function.
15633 2016-02-05  Jeff Law  <law@redhat.com>
15635         PR tree-optimization/68541
15636         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
15637         (count_stmts_in_block): New function.
15638         (poor_ifcvt_candidate_code): Likewise.
15639         (is_feasible_trace): Add some heuristics to determine when path
15640         splitting is profitable.
15641         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
15642         is a diamond with a single exit.
15644 2016-02-05  Martin Sebor  <msebor@redhat.com>
15646         PR c++/69662
15647         * doc/invoke.texi: Update -Wplacement-new to take an optional
15648         argument.
15650 2016-02-06  Richard Henderson  <rth@redhat.com>
15652         PR c/69643
15653         * tree.c (tree_nop_conversion_p): Do not strip casts into or
15654         out of non-standard address spaces.
15656 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15658         PR rtl-optimization/69691
15659         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
15661 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
15663         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
15664         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
15665         (*ieee128_mfvsrd_64bit): Likewise.
15666         (*ieee128_mfvsrd_32bit): Likewise.
15668 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
15670         PR target/69369
15671         Revert r232560:
15672         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
15674         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
15675         instrumented_version.
15677 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
15679         * doc/invoke.texi (Optimize Options): In table of --param options
15680         rename second occurrence of tracer-min-branch-ratio to
15681         tracer-min-branch-probability, rename
15682         tracer-min-branch-ratio-feedback to
15683         tracer-min-branch-probability-feedback and clarify description,
15684         rename sched-spec-state-edge-prob-cutoff to
15685         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
15686         to selsched-insns-to-rename, rename lto-minpartition to
15687         lto-min-partition, delete reorder-blocks-duplicate and
15688         reorder-blocks-duplicate-feedback.
15690 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15692         * config/s390/s390.c (s390_register_info_set_ranges): Remove
15693         superfluous loops.
15695 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15697         * doc/extend.texi: S/390: Correct some typos.
15699 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15701         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
15703 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15705         PR target/69625
15706         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
15707         (s390_register_info_gprtofpr): Use new macros above.
15708         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
15709         its name.
15710         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
15711         its name.  Adjust restore and save gpr ranges.
15712         (s390_register_info_set_ranges): New function.
15713         (s390_register_info): Use new macros above.  Call
15714         s390_register_info_set_ranges.
15715         (s390_optimize_register_info): Likewise.
15716         (s390_hard_regno_rename_ok): Use new macros.
15717         (s390_hard_regno_scratch_ok): Likewise.
15718         (s390_emit_epilogue): Likewise.
15719         (s390_can_use_return_insn): Likewise.
15720         (s390_optimize_prologue): Likewise.
15721         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
15723 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
15725         PR bootstrap/69677
15726         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
15727         alignment fixes.
15728         (ix86_option_override_internal): Disable TARGET_STV even for
15729         -m{incoming,preferred}-stack-boundary=3.
15731 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15733         * config.gcc: Mark deprecated rtems targets as obsolete.
15735 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
15737         PR rtl-optimization/64682
15738         PR rtl-optimization/69567
15739         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
15740         before I2 only if the register is both used and set in I2.
15742 2016-02-04  DJ Delorie  <dj@redhat.com>
15744         * config/msp430/msp430.c (msp430_start_function): Add function type.
15746 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15748         PR fortran/69368
15749         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
15751 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
15753         PR rtl-optimization/69577
15754         Revert:
15755         2015-10-29  Richard Henderson  <rth@redhat.com>
15757         PR target/68124
15758         PR rtl-opt/67609
15759         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
15760         sse check to the exact conditions of PR 67609.
15762 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
15764         PR target/69667
15765         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
15766         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
15767         not allowed into the traditional Altivec registers.
15768         (movtd_64bit_nodm): Likewise.
15769         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15771 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
15773         * config/aarch64/cortex-a57-fma-steering.c
15774         (aarch64_register_fma_steering): Remove "static" from arguments
15775         to register_pass.
15777 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
15779         PR target/69619
15780         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
15781         twice when complex.
15783 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
15785         * doc/invoke.texi: Delete -mno-fma4.
15787 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
15789         PR rtl-optimization/69577
15790         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
15791         (find_subregs_of_mode): Update accordingly.  Iterate over partial
15792         definitions.
15794 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
15796         * config/arm/arm-protos.h (neon_reinterpret): Remove.
15797         * config/arm/arm.c (neon_reinterpret): Remove.
15798         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
15799         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
15800         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
15801         vreinterpretti): Remove.
15802         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
15803         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15804         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
15805         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
15806         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
15807         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
15808         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
15809         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
15810         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
15811         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
15812         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
15813         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
15814         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
15815         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
15816         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
15817         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
15818         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
15819         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
15820         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
15821         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
15822         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
15823         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
15824         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
15825         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
15826         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
15827         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
15828         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
15829         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
15830         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
15831         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
15832         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
15833         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
15834         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
15835         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
15836         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
15837         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
15838         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
15839         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
15840         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
15841         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
15842         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
15843         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
15844         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
15845         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
15846         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
15847         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
15848         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
15849         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
15850         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
15851         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
15852         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
15853         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
15854         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
15855         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
15856         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
15857         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
15858         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
15859         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
15860         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
15861         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
15862         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
15863         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
15864         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
15865         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
15866         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
15867         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
15868         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
15869         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
15870         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
15871         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
15872         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
15873         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
15874         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
15875         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
15876         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
15877         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
15878         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
15879         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
15880         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
15881         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
15882         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
15883         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
15884         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
15885         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
15886         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
15887         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
15888         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
15889         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
15890         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
15891         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
15892         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
15893         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
15894         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
15895         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
15896         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
15897         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
15898         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
15899         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
15900         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
15901         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
15902         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
15903         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
15904         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
15906 2016-02-04  Martin Liska  <mliska@suse.cz>
15908         PR sanitizer/69276
15909         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
15910         that are gimple_store_p.
15911         (maybe_instrument_call): Likewise.
15913 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
15915         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
15916         register scaling out of memory reference and comment why.
15918 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15920         PR target/65932
15921         PR target/67714
15922         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
15923         folding the source of a SET.
15925 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15927         PR target/65932
15928         PR target/67714
15929         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
15930         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
15932 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
15934         PR target/65932
15935         PR target/67714
15936         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
15937         HImode.
15939 2016-02-04  Christian Bruel  <christian.bruel@st.com>
15941         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
15942         * config/arm/arm.c (arm_set_current_function): Likewise.
15944 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
15945             Ilya Enkovich  <enkovich.gnu@gmail.com>
15946             H.J. Lu  <hongjiu.lu@intel.com>
15948         PR target/69454
15949         * config/i386/i386.c (convert_scalars_to_vector): Remove
15950         stack alignment fixes.
15951         (ix86_option_override_internal): Disable TARGET_STV if stack
15952         might not be aligned enough.
15953         (ix86_minimum_alignment): Assert that TARGET_STV is false.
15955 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
15957         * config/i386/x86-tune.def: Disable default prefetching
15958         for -march=znver1.
15960 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
15961             Vladimir Makarov  <vmakarov@redhat.com>
15963         PR target/69461
15964         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
15965         in validating fused toc addresses.
15967 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
15969         PR c/69627
15970         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
15971         range->m_caret fields if range->m_show_caret_p is false.
15973         PR target/69644
15974         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
15975         Force oldval into register if it does not satisfy reg_or_short_operand
15976         predicate.  Fix up formatting.
15978 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
15979             Alexandre Oliva  <aoliva@redhat.com>
15981         PR target/69461
15982         * lra-constraints.c (simplify_operand_subreg): Check additionally
15983         address validity after potential reloading.
15984         (process_address_1): Check insns validity.  In case of failure do
15985         nothing.
15987 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
15989         PR target/69118
15990         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
15991         Fix target.
15993 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
15995         * wide-int.cc (canonize_uhwi): New function.
15996         (wi::divmod_internal): Use it.
15998 2016-02-02  James Norris  <jnorris@codesourcery.com
16000         * gimplify.c (omp_notice_variable): Add usage check.
16002 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
16004         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
16005         like LE, GE, LT, GT when emitting relational operator.
16007 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16009         * ira-costs.c (find_costs_and_classes): Add extra argument.
16010         * target.def (ira_change_pseudo_allocno_class): Add parameter.
16011         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
16012         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
16013         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
16014         Add best_class parameter, and return it if not ALL_REGS.
16015         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
16016         Add parameter.
16017         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
16018         Update target hook.
16020 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
16022         * config/aarch64/aarch64.c
16023         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
16024         (aarch64_ira_change_pseudo_allocno_class): New function.
16026 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
16028         PR target/67032
16029         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
16031 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16033         * config/avr/avr.c (avr_option_override): Set
16034         PARAM_ALLOW_STORE_DATA_RACES to 1.
16036 2016-02-02  Richard Biener  <rguenther@suse.de>
16038         PR tree-optimization/69595
16039         * match.pd: Add range test simplifications to true/false.
16041 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
16043         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
16044         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
16045         instead.
16047 2016-02-02  Richard Biener  <rguenther@suse.de>
16049         PR tree-optimization/69606
16050         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
16051         info on the result before moving a stmt.
16053 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
16055         PR middle-end/68542
16056         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
16057         branch with vector comparison.
16058         * config/i386/sse.md (VI48_AVX): New mode iterator.
16059         (define_expand "cbranch<mode>4): Add support for conditional branch
16060         with vector comparison.
16061         * tree-vect-loop.c (optimize_mask_stores): New function.
16062         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
16063         has_mask_store field of vect_info.
16064         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
16065         vectorized loops having masked stores after vec_info destroy.
16066         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
16067         correspondent macros.
16068         (optimize_mask_stores): Add prototype.
16070 2016-02-02  Alan Modra  <amodra@gmail.com>
16072         PR target/69548
16073         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
16074         allow subregs.
16076 2016-02-02  Alan Modra  <amodra@gmail.com>
16078         PR target/68662
16079         * config/rs6000/rs6000.c (need_toc_init): New var, set it
16080         whenever toc_label_name used.
16081         (rs6000_file_start): Don't set up toc section here,
16082         (rs6000_output_function_epilogue): do so here instead,
16083         (rs6000_xcoff_file_start): and here.
16084         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
16085         (load_toc_aix_di): Likewise.
16087 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16089         PR rtl-optimization/69592
16090         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
16091         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
16092         (num_sign_bit_copies_binary_arith_p): New inline function.
16093         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
16095 2016-02-01  Jeff Law  <law@redhat.com>
16097         PR tree-optimization/69580
16098         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
16099         * tree-ssa-threadbackward.c
16100         (fsm_find_control_statement_thread_paths): Do not try to walk
16101         through large PHI nodes.
16103 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16105         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
16106         when count is incremented above limit, don't analyze further
16107         insns afterwards.
16109         * omp-low.c (oacc_parse_default_dims): Avoid
16110         -Wsign-compare warning, make sure value fits into int
16111         rather than just unsigned int.
16113 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
16115         PR tree-optimization/67921
16116         * fold-const.c (split_tree): New parameters.  Convert pointer
16117         type variable part to proper type before negating.
16118         (fold_binary_loc): Pass new arguments to split_tree.
16120 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
16122         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
16123         (nvptx_goacc_validate_dims): Extend to handle global defaults.
16124         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
16125         * doc/tm.texti: Rebuilt.
16126         * doc/invoke.texi (fopenacc-dim): Document.
16127         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
16128         (append_compiler_options): Likewise.
16129         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
16130         (oacc_parse_default_dims): New.
16131         (oacc_validate_dims): Add USED arg.  Select non-unity default when
16132         possible.
16133         (oacc_loop_fixed_partitions): Return mask of used partitions.
16134         (oacc_loop_auto_partitions): Emit dump info.
16135         (oacc_loop_partition): Return mask of used partitions.
16136         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
16137         loop partitioning and validation calls.
16139 2016-02-01  Richard Biener  <rguenther@suse.de>
16141         PR middle-end/69556
16142         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
16144 2016-02-01  Richard Biener  <rguenther@suse.de>
16146         PR tree-optimization/69574
16147         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
16148         of asserting return chrec_dont_know.
16150 2016-02-01  Martin Liska  <mliska@suse.cz>
16152         * mem-stats-traits.h: Add copyright header.
16153         * mem-stats.h: Likewise.
16155 2016-02-01  Richard Biener  <rguenther@suse.de>
16157         PR tree-optimization/69579
16158         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
16159         Do not propagate through abnormal PHI results.
16161 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
16163         * postreload.c (reload_cse_simplify): Remove dead code.
16165 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
16167         PR rtl-optimization/69570
16168         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
16169         if there is more than one set, not if there is a single set.
16171 2016-02-01  Richard Henderson  <rth@redhat.com>
16173         PR rtl-opt/69535
16174         * combine.c (make_compound_operation): When looking through a
16175         subreg, make sure to re-extend to the width of the outer mode.
16177 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
16179         PR tree-optimization/69546
16180         * wide-int.cc (wi::divmod_internal): For unsigned division
16181         where both operands fit into uhwi, if o1 is 1 and o0 has
16182         msb set, if divident_prec is larger than bits per hwi,
16183         clear another quotient word and return 2 instead of 1.
16184         Similarly for remainder with msb in HWI set, if dividend_prec
16185         is larger than bits per hwi.
16187 2016-01-29  Martin Jambor  <mjambor@suse.cz>
16189         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
16190         Use short lowercase names.
16191         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
16192         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
16193         acq_rel one.  Protect warning agains segfaults if
16194         get_memory_order_name returns NULL.
16195         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
16196         with release semantics.  Do not warn if get_memory_order already did.
16197         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
16198         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
16199         if get_memory_order already did.
16201 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
16203         * doc/install.texi: Document that isl-0.16 is supported.
16205 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
16207         PR target/69299
16208         * config/i386/constraints.md (Bm): Describe as special memory
16209         constraint.
16210         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
16211         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16212         * genpreds.c (struct constraint_data): Add is_special_memory.
16213         (have_special_memory_constraints, special_memory_start): New
16214         static vars.
16215         (special_memory_end): Ditto.
16216         (add_constraint): Add new arg is_special_memory.  Add code to
16217         process its true value.  Update have_special_memory_constraints.
16218         (process_define_constraint): Pass the new arg.
16219         (process_define_register_constraint): Ditto.
16220         (choose_enum_order): Process special memory.
16221         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
16222         function insn_extra_special_memory_constraint.
16223         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16224         * gensupport.c (process_rtx): Process
16225         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
16226         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
16227         * ira-lives.c (single_reg_class): Use
16228         insn_extra_special_memory_constraint.
16229         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
16230         * lra-constraints.c (process_alt_operands): Ditto.
16231         (curr_insn_transform): Use insn_extra_special_memory_constraint.
16232         * recog.c (asm_operand_ok, preprocess_constraints): Process
16233         CT_SPECIAL_MEMORY.
16234         * reload.c (find_reloads): Ditto.
16235         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
16236         * stmt.c (parse_input_constraint): Use
16237         insn_extra_special_memory_constraint.
16239 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16241         PR target/69530
16242         * lra-splill.c (lra_final_code_change): Revert r229087 by
16243         removing all sub-registers.
16245 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
16247         PR target/65604
16248         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
16250 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
16252         PR target/69551
16253         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
16254         SSE1, copy target into the temporary reg first before recursing
16255         on it.
16257 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
16259         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
16260         with vm.
16262 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16264         * ginclude/stdarg.h: Test __cplusplus instead of
16265         __GXX_EXPERIMENTAL_CXX0X__.
16267 2016-01-29  Richard Biener  <rguenther@suse.de>
16269         PR tree-optimization/69547
16270         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
16271         Do not mark clobbers necessary.
16272         (mark_all_reaching_defs_necessary_1): Likewise.
16274 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16276         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
16277         declaration name with %qs and print it in both error messages.
16278         Also fix indentation.
16280 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16282         PR other/69006
16283         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
16284         trailing blank line from error message.
16286 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
16288         PR c++/69462
16289         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
16290         for C++-11.
16292 2016-01-29  Richard Biener  <rguenther@suse.de>
16294         PR middle-end/69537
16295         * match.pd: Allow all integral types when simplifying a
16296         widening or sign-changing conversion.
16298 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16300         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
16301         back to setting codegen_error to fail codegen.
16303 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
16305         PR target/69459
16306         * config/i386/constraints.md (C): Only accept constant zero operand.
16307         (BC): New constraint.
16308         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
16309         instead of C constraint.
16310         * doc/md.texi (Machine Constraints): Update description
16311         of C constraint.
16313 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
16315         PR target/68400
16316         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
16318 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
16320         PR middle-end/69542
16321         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
16322         non-debug insns.
16324 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
16326         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
16327         branches if using guessed profile.
16329 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
16331         * graphite-optimize-isl.c (optimize_isl): Fix dump.
16333 2016-01-28  Richard Henderson  <rth@redhat.com>
16335         PR target/69305
16336         * config/aarch64/aarch64-modes.def (CC_Cmode): New
16337         * config/aarch64/aarch64-protos.h: Update.
16338         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
16339         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
16340         (aarch64_get_condition_code_1): Handle CC_Cmode.
16341         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
16342         (*add<mode>3_compareC_cconly_imm): New.
16343         (*add<mode>3_compareC_cconly): New.
16344         (*add<mode>3_compareC_imm): New.
16345         (add<mode>3_compareC): New.
16346         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
16347         to be first.  Use aarch64_carry_operation.
16348         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
16349         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
16350         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
16351         (subti3): Use subdi3_compare1.
16352         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
16353         (sub<mode>3_compare1): New.
16354         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
16355         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
16356         (*subsi3_carryin_uxtw): Likewise.
16357         (*ngc<mode>, *ngcsi_uxtw): Likewise.
16358         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
16359         * config/aarch64/iterators.md (DWI): New.
16360         * config/aarch64/predicates.md (aarch64_carry_operation): New.
16361         (aarch64_borrow_operation): New.
16363 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16365         * graphite-optimize-isl.c (optimize_isl): Print a different debug
16366         message when isl does not return a valid schedule.
16368 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16370         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
16371         Remove comments from class declarations: they are already in the code
16372         close by the defs.
16374 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16376         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
16377         codegen_error_p.
16378         (ternary_op_to_tree): Same.
16379         (unary_op_to_tree): Same.
16380         (nary_op_to_tree): Same.
16381         (gcc_expression_from_isl_expr_op): Same.
16382         (gcc_expression_from_isl_expression): Same.
16383         (graphite_create_new_loop): Same.
16384         (graphite_create_new_loop_guard): Same.
16385         (build_iv_mapping): Same.
16386         (graphite_create_new_guard): Same.
16387         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
16388         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
16390 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
16392         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
16393         instead of setting codegen_error to fail codegen.
16395 2016-01-28  Jason Merrill  <jason@redhat.com>
16397         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
16399 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16401         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
16402         Remove CONST_INT_P check in CCMP cost calculation.
16404 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16406         * config/aarch64/aarch64.c (generic_vector_cost):
16407         Set vec_permute_cost.
16408         (cortexa57_vector_cost): Likewise.
16409         (exynosm1_vector_cost): Likewise.
16410         (xgene1_vector_cost): Likewise.
16411         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
16412         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
16413         Add vec_permute_cost entry.
16415 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
16417         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
16418         immediate as %1.
16419         (add<mode>3_compare0): Likewise.
16420         (addsi3_compare0_uxtw): Likewise.
16421         (add<mode>3nr_compare0): Likewise.
16422         (compare_neg<mode>): Likewise.
16423         (<optab><mode>3): Likewise.
16425 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
16427         * tree-vect-stmts.c (vectorizable_comparison): Add
16428         NULL check for vectype.
16430 2016-01-28  Richard Biener  <rguenther@suse.de>
16432         PR tree-optimization/69466
16433         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
16434         Account for PHIs we couldn't duplicate.
16436 2016-01-28  Martin Liska  <mliska@suse.cz>
16438         PR pch/68758
16439         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
16440         instead of ENABLE_VALGRIND_CHECKING.
16442 2016-01-27  Richard Henderson  <rth@redhat.com>
16444         PR rtl-opt/69447
16445         * lra-remat.c (subreg_regs): New.
16446         (dump_candidates_and_remat_bb_data): Dump it.
16447         (operand_to_remat): Reject if operand in subreg_regs.
16448         (set_bb_regs): Collect subreg_regs.
16449         (lra_remat): Init and free subreg_regs.  Compute
16450         calculate_local_reg_remat_bb_data before create_cands.
16452 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
16454         PR target/68986
16455         * config/i386/i386.c (ix86_update_stack_boundary): Don't
16456         change stack_alignment_needed for __tls_get_addr call.
16458 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
16460         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
16462 2016-01-27  Jeff Law  <law@redhat.com>
16464         PR tree-optimization/68398
16465         PR tree-optimization/69196
16466         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
16467         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
16468         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16469         Only count PHIs in the last block in the path.  The others will
16470         const/copy propagate away.  Add heuristic to allow more irreducible
16471         subloops to be created when it is likely profitable to do so.
16473         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
16474         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
16475         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
16477 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16479         PR lto/69254
16480         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
16481         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
16482         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
16483         * tree-streamer-in.c: Include asan.h.
16484         (streamer_get_builtin_tree): For builtins in sanitizer
16485         range call initialize_sanitizer_builtins and retry.
16487 2016-01-27  Ian Lance Taylor  <iant@google.com>
16489         * common.opt (fkeep-gc-roots-live): New undocumented option.
16490         * tree-ssa-loop-ivopts.c (add_candidate_1): If
16491         -fkeep-gc-roots-live, skip pointers.
16492         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
16493         NULL.
16495 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
16497         PR target/69512
16498         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
16499         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
16501 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
16503         PR target/68380
16504         * configure.ac: NetBSD provides SSP in its C library.
16505         * configure: Updated.
16507 2016-01-27  Richard Biener  <rguenther@suse.de>
16509         PR tree-optimization/69166
16510         * tree-vect-loop.c (vect_is_simple_reduction): Always check
16511         reduction code for commutativity / associativity.
16513 2016-01-27  Martin Jambor  <mjambor@suse.cz>
16515         PR tree-optimization/69355
16516         * tree-sra.c (analyze_access_subtree): Correct hole detection when
16517         total_scalarization fails.
16519 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
16521         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
16522         power9.
16524 2016-01-27  Christian Bruel  <christian.bruel@st.com>
16526         PR target/69245
16527         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
16528         Move arm_reset_previous_fndecl and set_target_option_current_node in
16529         the conditional part.  Call save_restore_target_globals.
16530         * config/arm/arm.c (arm_set_current_function):
16531         Refactor to better support #pragma target and attribute mix.
16532         Call save_restore_target_globals.
16533         * config/arm/arm-protos.h (save_restore_target_globals): New function.
16535 2016-01-27  Martin Liska  <mliska@suse.cz>
16537         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
16538         reference for an HSA kernel and its host function.
16540 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
16542         PR tree-optimization/69399
16543         * wide-int.h (wi::lrshift): For larger precisions, only
16544         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
16546 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
16548         * config/arc/predicates.md (proper_comparison_operator): Reject
16549         constant-constant comparison.
16551 2016-01-26  Tom de Vries  <tom@codesourcery.com>
16553         PR tree-optimization/69110
16554         * tree-data-ref.c (initialize_data_dependence_relation): Handle
16555         DR_NUM_DIMENSIONS == 0.
16557 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
16558             Sebastian Pop  <s.pop@samsung.com>
16560         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
16561         isl_ast_op_cond and isl_ast_op_select.
16562         (gcc_expression_from_isl_expr_op): Same.
16564 2016-01-26  Jason Merrill  <jason@redhat.com>
16566         PR c++/68782
16567         * tree.c (recompute_constructor_flags): Split out from
16568         build_constructor.
16569         (verify_constructor_flags): New.
16570         * tree.h: Declare them.
16572 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
16574         PR rtl-optimization/69217
16575         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
16576         are no TYPE_FIELDS set for the record type.
16578 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16580         PR target/68662
16581         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
16582         toc_label_name unconditionally.
16583         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
16584         SYMBOL_REF string.  Use toc_label_name instead of constructing
16585         LCTOC1.
16586         (rs6000_elf_declare_function_name): Use toc_label_name instead of
16587         constructing LCTOC1.
16589 2016-01-26  Martin Sebor  <msebor@redhat.com>
16591         PR other/69477
16592         * doc/extend.texi (Common Type Attributes): Move text that talks about
16593         attribute packed from attribute aligned to the section discussing
16594         the former attribute for clarity.
16596 2016-01-26  Richard Henderson  <rth@redhat.com>
16598         PR middle-end/60908
16599         * trans-mem.c (tm_region_init): Mark entry block as visited.
16601 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
16603         PR other/69006
16604         * diagnostic-show-locus.c (layout::print_source_line): Replace
16605         call to pp_newline with call to layout::print_newline.
16606         (layout::print_annotation_line): Likewise.
16607         (layout::move_to_column): Likewise.
16608         (layout::print_any_fixits): After printing any fixits, print a
16609         trailing newline, if necessary.
16610         (layout::print_newline): New method, resetting any colorization
16611         before a newline.
16612         (diagnostic_show_locus): Move the pp_newline to before the
16613         early bailout.  Remove dummy block enclosing the layout instance.
16614         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
16615         of pp_newline_and_flush with pp_flush.
16616         (diagnostic_append_note): Delete use of pp_newline.
16617         (diagnostic_append_note_at_rich_loc): Delete.
16618         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
16619         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
16620         when newline characters are added to the buffer.
16622 2016-01-26  Michael Matz  <matz@suse.de>
16624         * configure.ac (ac_cv_std_swap_in_utility): New test.
16625         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
16626         * configure: Regenerate.
16627         * config.in: Regenerate.
16629 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
16631         * config/arc/arc.md (cstoresi4): Force operand into register.
16632         (arcset<code>): Fix predicate.
16633         (arcsetltu): Likewise.
16634         (arcsetgeu): Likewise.
16635         (arcsethi): Likewise.
16636         (arcsetls): Likewise.
16638 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16640         PR tree-optimization/69483
16641         * gimple-fold.c (canonicalize_constructor_val): Return NULL
16642         if base has error_mark_node type.
16644 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
16646         PR target/68620
16647         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
16648         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
16649         New helper macros.
16650         (vget_lane_f16): Handle big-endian.
16651         (vgetq_lane_f16): Likewise.
16652         (vset_lane_f16): Likewise.
16653         (vsetq_lane_f16): Likewise.
16654         * config/arm/iterators.md (VQXMOV): Add V8HF.
16655         (VDQ): Add V4HF and V8HF.
16656         (V_reg): Handle V4HF and V8HF.
16657         (Is_float_mode): Likewise.
16658         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
16659         neon_vdup_nv8hf): New patterns.
16660         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
16661         Use VD_LANE iterator.
16662         (neon_vld1_dup<mode>): Use VQ2 iterator.
16664 2016-01-26  Nathan Sidwell  <nathan@acm.org>
16666         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
16667         (set_oacc_fn_attrib): Add IS_KERNEL arg.
16668         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
16669         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
16670         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
16671         (oacc_validate_dims): Add LEVEL arg, don't return level.
16672         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
16673         oacc_validate_dims.
16674         (execute_oacc_device_lower): Adjust, add more dump output.
16675         * tree-ssa-loop.c (gate_oacc_kernels): Use
16676         oacc_fn_attrib_kernels_p.
16677         * tree-parloops.c (create_parallel_loop): Adjust
16678         set_oacc_fn_attrib call.
16680 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16682         PR lto/69254
16683         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
16684         (append_compiler_options): Handle -fcilkplus.
16685         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
16687 2016-01-26  Nick Clifton  <nickc@redhat.com>
16689         PR target/66655
16690         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
16691         been marked as DECL_ONE_ONLY but we do not the means to make it
16692         so, then do not allow it to bind locally.
16694 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16696         PR lto/69254
16697         * opts.h (parse_sanitizer_options): New prototype.
16698         * opts.c (sanitizer_opts): New array.
16699         (parse_sanitizer_options): New function.
16700         (common_handle_option): Use parse_sanitizer_options.
16702 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
16704         PR target/68986
16705         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
16706         alignment adjustment to ...
16707         (ix86_update_stack_boundary): Here.  Don't over-align stack for
16708         __tls_get_addr.
16709         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
16710         if __tls_get_addr is called.
16712 2016-01-26  Christian Bruel  <christian.bruel@st.com>
16714         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
16716 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
16718         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
16720 2016-01-26  Richard Biener  <rguenther@suse.de>
16722         PR middle-end/69467
16723         * match.pd: Guard X * CST CMP 0 pattern with single_use.
16725 2016-01-26  Richard Biener  <rguenther@suse.de>
16727         PR tree-optimization/69452
16728         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
16729         (move_computations_dom_walker::before_dom_children): Rename
16730         to ...
16731         (move_computations_worker): This.
16732         (move_computations): Perform an RPO rather than a DOM walk.
16734 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
16736         PR target/69442
16737         * combine.c (combine_instructions): For REG_EQUAL note with
16738         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
16739         to the underlying register.
16740         * doc/rtl.texi (REG_EQUAL): Document the behavior of
16741         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
16743 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
16745         PR target/67896
16746         * config/aarch64/aarch64-builtins.c
16747         (aarch64_init_simd_builtin_types): Do not set structural
16748         equality to __Poly{8,16,64,128}_t types.
16750 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
16752         PR tree-optimization/69400
16753         * wide-int.cc (wi_pack): Take the precision as argument and
16754         perform canonicalization here rather than in the callers.
16755         Use the main loop to handle all full-width HWIs.  Add a
16756         zero HWI if in_len isn't a full result.
16757         (wi::divmod_internal): Update accordingly.
16758         (wi::mul_internal): Likewise.  Simplify.
16760 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16761             Sebastian Pop  <s.pop@samsung.com>
16763         * graphite-poly.c (apply_poly_transforms): Simplify.
16764         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
16765         (print_isl_map): Same.
16766         (print_isl_union_map): Same.
16767         (print_isl_schedule): New.
16768         (debug_isl_schedule): New.
16769         * graphite-dependences.c (scop_get_reads): Do not call
16770         isl_union_map_add_map that is undocumented isl functionality.
16771         (scop_get_must_writes): Same.
16772         (scop_get_may_writes): Same.
16773         (scop_get_original_schedule): Remove.
16774         (scop_get_dependences): Do not call isl_union_map_compute_flow that
16775         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
16776         (compute_deps): Remove.
16777         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
16778         (debug_schedule_ast): New.
16779         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
16780         set_separate_option.
16781         (graphite_regenerate_ast_isl): Add dump.
16782         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
16783         from scop->transformed_schedule.
16784         (graphite_regenerate_ast_isl): Add more dump.
16785         * graphite-optimize-isl.c (optimize_isl): Set
16786         scop->transformed_schedule.  Check whether schedules are equal.
16787         (apply_poly_transforms): Move here.
16788         * graphite-poly.c (apply_poly_transforms): ... from here.
16789         (free_poly_bb): Static.
16790         (free_scop): Static.
16791         (pbb_number_of_iterations_at_time): Remove.
16792         (print_isl_ast): New.
16793         (debug_isl_ast): New.
16794         (debug_scop_pbb): New.
16795         * graphite-scop-detection.c (print_edge): Move.
16796         (print_sese): Move.
16797         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
16798         (build_scop_scattering): Remove.
16799         (create_pw_aff_from_tree): Assert instead of bailing out.
16800         (add_condition_to_pbb): Remove unused code, do not fail.
16801         (add_conditions_to_domain): Same.
16802         (add_conditions_to_constraints): Remove.
16803         (build_scop_context): New.
16804         (add_iter_domain_dimension): New.
16805         (build_iteration_domains): Initialize pbb->iterators.
16806         Call add_conditions_to_domain.
16807         (nested_in): New.
16808         (loop_at): New.
16809         (index_outermost_in_loop): New.
16810         (index_pbb_in_loop): New.
16811         (outermost_pbb_in): New.
16812         (add_in_sequence): New.
16813         (add_outer_projection): New.
16814         (outer_projection_mupa): New.
16815         (add_loop_schedule): New.
16816         (build_schedule_pbb): New.
16817         (build_schedule_loop): New.
16818         (embed_in_surrounding_loops): New.
16819         (build_schedule_loop_nest): New.
16820         (build_original_schedule): New.
16821         (build_poly_scop): Call build_original_schedule.
16822         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
16823         (free_poly_dr): Remove.
16824         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
16825         (free_poly_bb): Remove.
16826         (debug_loop_vec): Remove.
16827         (print_isl_ast): Declare.
16828         (debug_isl_ast): Declare.
16829         (scop_do_interchange): Remove.
16830         (scop_do_strip_mine): Remove.
16831         (scop_do_block): Remove.
16832         (flatten_all_loops): Remove.
16833         (optimize_isl): Remove.
16834         (pbb_number_of_iterations_at_time): Remove.
16835         (debug_scop_pbb): Declare.
16836         (print_schedule_ast): Declare.
16837         (debug_schedule_ast): Declare.
16838         (struct scop): Remove schedule.  Add original_schedule,
16839         transformed_schedule.
16840         (free_gimple_poly_bb): Remove.
16841         (print_generated_program): Remove.
16842         (debug_generated_program): Remove.
16843         (unify_scattering_dimensions): Remove.
16844         * sese.c (print_edge): ... here.
16845         (print_sese): ... here.
16846         (debug_edge): ... here.
16847         (debug_sese): ... here.
16848         * sese.h (print_edge): Declare.
16849         (print_sese): Declare.
16850         (dump_edge): Declare.
16851         (dump_sese): Declare.
16853 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
16854             Sebastian Pop  <s.pop@samsung.com>
16856         * Makefile.in: Set ISLVER in site.exp.
16858 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
16860         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
16861         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
16862         through DECL_VALUE_EXPR for expansion.
16864 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16866         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
16867         the frame info after reload completed.
16869 2016-01-25  Jeff Law  <law@redhat.com>
16871         PR tree-optimization/69196
16872         PR tree-optimization/68398
16873         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
16874         tree-ssa-threadupdate.c.
16875         (determine_bb_domination_status): Prototype
16876         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
16877         (determine_bb_domination_status): No longer static.
16878         (valid_jump_thread_path): Remove code to detect characteristics
16879         of the jump thread path not associated with correctness.
16880         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
16881         Correct test for thread path length.  Count PHIs for real operands as
16882         statements that need to be copied.  Do not count ASSERT_EXPRs.
16883         Look at all the blocks in the thread path.  Compute and selectively
16884         filter thread paths based on threading through the latch, threading
16885         a multiway branch or crossing a multiway branch.
16887 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16889         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
16890         decl with __attribute__ ((unused)) annotation.
16892 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
16894         PR target/69421
16895         * tree-vect-stmts.c (vectorizable_condition): Check vectype
16896         of operands is compatible with a statement vectype.
16898 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
16900         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
16901         improve wording for mixed storage order support.
16903 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
16905         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
16906         (vcvt_u64_f64): Likewise.
16907         (vcvta_s64_f64): Likewise.
16908         (vcvta_u64_f64): Likewise.
16909         (vcvtm_s64_f64): Likewise.
16910         (vcvtm_u64_f64): Likewise.
16911         (vcvtn_s64_f64): Likewise.
16912         (vcvtn_u64_f64): Likewise.
16913         (vcvtp_s64_f64): Likewise.
16914         (vcvtp_u64_f64): Likewise.
16916 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
16918         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
16919         (arc_init): Check validity mll64 option.
16920         (arc_save_restore): Use double load/store instruction.
16921         (arc_expand_movmem): Likewise.
16922         (arc_split_move): Don't split if we have double load/store
16923         instructions. Returns a boolean.
16924         (arc_process_double_reg_moves): Change function to return boolean
16925         instead of a sequence of instructions.
16926         (arc_dwarf_register_span): New function.
16927         * config/arc/arc-protos.h (arc_split_move): Change prototype.
16928         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
16929         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
16930         (*movdf_insn): Likewise.
16931         * config/arc/arc.opt (mll64): New option.
16932         * config/arc/predicates.md (even_register_operand): New predicate.
16933         * doc/invoke.texi (ARC Options): Add mll64 documentation.
16935 2016-01-25  Richard Biener  <rguenther@suse.de>
16937         PR lto/69393
16938         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
16939         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
16940         DECL_NAMELESS.
16941         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
16943 2016-01-25  Richard Biener  <rguenther@suse.de>
16945         PR tree-optimization/69376
16946         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
16947         flag.
16948         (VN_INFO_ANTI_RANGE_P): New inline.
16949         (VN_INFO_RANGE_TYPE): Likewise.
16950         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
16951         SSA_NAME_ANTI_RANGE_P.
16952         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
16953         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16954         Properly query VN_INFO_RANGE_TYPE.
16956 2016-01-25  Nick Clifton  <nickc@redhat.com>
16958         PR target/66655
16959         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
16961 2016-01-23  Tom de Vries  <tom@codesourcery.com>
16963         PR tree-optimization/69426
16964         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
16965         removed clobber.
16967 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
16969         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
16970         "the the" with "the" in the comments.
16971         * ipa-devirt.c (build_type_inheritance_graph,
16972         update_type_inheritance_graph): Likewise.
16973         * tree.c (build_function_type_list_1): Likewise.
16974         * cfgloopmanip.c (scale_loop_profile): Likewise.
16975         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
16976         * gimple-ssa-split-paths.c
16977         (find_block_to_duplicate_for_splitting_paths): Likewise.
16978         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
16979         * expr.c (convert_move): Likewise.
16980         * var-tracking.c (vt_stack_adjustments): Likewise.
16981         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
16982         * tree-vrp.c (test_for_singularity): Likewise.
16984         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
16985         directly instead of building a temporary tree.
16987         PR bootstrap/69434
16988         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
16989         remove <algorithm> include.
16991 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
16993         PR target/69432
16994         * config/i386/i386.c: Include dojump.h.
16995         (expand_small_movmem_or_setmem,
16996         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
16997         fixes.
16998         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
16999         if dynamic_check != -1.
17001 2016-01-21  Jeff Law  <law@redhat.com>
17003         PR middle-end/69347
17004         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
17005         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
17006         into dominated_by_p.
17007         (cprop_into_successor_phis): Avoid unnecessary tests.
17009 2016-01-22  Richard Henderson  <rth@redhat.com>
17011         PR target/69416
17012         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
17013         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
17015 2016-01-22  Michael Matz  <matz@suse.de>
17017         * system.h (string, algorithm): Include only conditionally.
17018         (new): Include always under C++.
17019         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
17020         * final.c (toplevel): Ditto.
17021         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
17022         * genconditions.c (write_header): Make gencondmd.c define
17023         INCLUDE_STRING.
17024         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
17026         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
17027         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
17029 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17031         PR target/68674
17032         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
17034 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17036         PR target/69403
17037         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
17038         define_insn_and_split.  Ensure operands[1] and operands[0] do not
17039         get assigned the same register.
17041 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17043         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
17045 2016-01-22  Christian Bruel  <christian.bruel@st.com>
17047         * config/arm/arm-c.c (arm_pragma_target_parse):
17048         Remove warn_builtin_macro_redefined overwrite.
17050 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17052         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
17053         flag_non_call_exceptions compatibility.
17055 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
17057         PR debug/66668
17058         * dwarf2out.c (add_child_die_after): New function.
17059         (dwarf_qual_info_t): New type.
17060         (dwarf_qual_info): New variable.
17061         (qualified_die_p): New function.
17062         (modified_type_die): For -fdebug-types-section, ensure
17063         canonical order of qualifiers.  Put qualified DIEs adjacent
17064         to the corresponding non-qualified type DIE and search there
17065         for existing qualified DIEs.
17067 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17069         * doc/extend.texi (scalar_storage_order type attribute): Document
17070         restriction on type punning and aliasing, and remove future tense.
17072 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
17074         PR target/69252
17075         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
17076         first stage.
17078 2016-01-21  Jeff Law  <law@redhat.com>
17080         PR middle-end/69347
17081         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
17082         useless call to record_temporary_equivalences.
17083         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
17084         allocate 10 slots in the bb_path vector and let it grow as needed.
17085         (fsm_find_control_statement_thread_paths): Similarly for the next_path
17086         vector.
17088 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17090         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
17091         Detangle.
17092         * configure: Regenerate.
17094 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
17096         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
17097         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
17099 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
17101         PR middle-end/66178
17102         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
17103         drop EXPAND_INITIALIZER.
17104         * rtl.h (contains_symbolic_reference_p): Declare.
17105         * rtlanal.c (contains_symbolic_reference_p): New function.
17106         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
17107         a subtraction into a NOT if symbolic constants are involved.
17109 2016-01-21  Anton Blanchard  <anton@samba.org>
17110             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17112         PR target/63354
17113         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
17114         #define.
17115         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
17116         function.
17118 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17120         * config/microblaze/microblaze.c
17121         (get_branch_target): New.
17122         (insert_wic_for_ilb_runout): New.
17123         (insert_wic): New.
17124         (microblaze_machine_dependent_reorg): New.
17125         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
17126         * config/microblaze/microblaze.md
17127         (UNSPEC_IPREFETCH): Define.
17128         (iprefetch): New pattern
17129         * config/microblaze/microblaze.opt
17130         (mxl-prefetch): New flag.
17132 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
17134         * config/microblaze/microblaze.h
17135         (FIXED_REGISTERS): Update in macro.
17136         (CALL_USED_REGISTERS): Update in macro.
17138 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
17140         PR rtl-optimization/68920
17141         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
17142         moves.
17144 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
17146         PR rtl-optimization/68990
17147         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
17148         pseudo instead of inheritance ones.
17150 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17151             Nick Clifton  <nickc@redhat.com>
17153         PR target/69129
17154         PR target/69012
17155         * config/mips/mips.c (mips_compute_frame_info): Initialise
17156         args_size and hard_frame_pointer_offset fields of the frame
17157         structure before calling mips_global_pointer.
17159 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
17161         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
17162         label reference.
17163         * configure: Regenerate.
17165 2016-01-21  Richard Biener  <rguenther@suse.de>
17167         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
17169 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17171         * config/s390/s390.c (s390_asm_declare_function_size): Add code
17172         to actually emit the .size directive.
17174 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
17175              Jakub Jelinek  <jakub@redhat.com>
17177         PR target/69187
17178         PR target/65624
17179         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
17180         args array size by one to avoid buffer overflow.
17182 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
17184         * config/s390/s390.md (pool_section_start): Use switch_to_section
17185         to select proper read-only data section instead of hardcoding
17186         .rodata.
17187         (pool_section_end): Use switch_to_section to match the above.
17189 2016-01-21  Richard Biener  <rguenther@suse.de>
17191         PR tree-optimization/69378
17192         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
17193         (set_ssa_val_to): Use it for dominance checks taking into
17194         account not executable edges.
17196 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17198         PR c++/69355
17199         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
17200         for bitsize instead of GET_MODE_PRECISION (mode).
17202 2016-01-20  Martin Sebor  <msebor@redhat.com>
17204         PR c/52291
17205         * extend.texi (__sync Builtins): Clarify the semantics of
17206         __sync_fetch_and_OP built-ins on pointers.
17207         (__atomic Builtins): Same.
17209 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17210             Sebastian Pop  <s.pop@samsung.com>
17212         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
17213         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
17214         (is_valid_rename): Same.
17215         (translate_isl_ast_to_gimple::get_rename): Same.
17216         (translate_isl_ast_to_gimple::rename_all_uses): Same.
17217         (translate_isl_ast_to_gimple::rename_uses): Same.
17218         (get_new_name): Check for close_phi nodes.
17219         (copy_loop_phi_args): Use phi_node_kind.
17220         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
17221         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
17223 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17224             Sebastian Pop  <s.pop@samsung.com>
17226         Revert commit r229783.
17227         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17228         Remove use of parameter_rename_map.
17229         (copy_def): Remove.
17230         (copy_internal_parameters): Remove.
17231         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
17232         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
17233         (free_sese_info): Do not free parameter_rename_map.
17234         (set_rename): Do not use parameter_rename_map.
17235         (rename_uses): Update call to set_rename.
17236         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
17237         * sese.h (parameter_rename_map_t): Remove.
17238         (struct sese_info_t): Remove field parameter_rename_map.
17240 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17241             Sebastian Pop  <s.pop@samsung.com>
17243         * graphite-isl-ast-to-gimple.c: Fix comment.
17244         * graphite-scop-detection.c (defined_in_loop_p): New.
17245         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
17246         names defined in loop.
17248 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17249             Sebastian Pop  <s.pop@samsung.com>
17251         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
17252         Discard unstructured if-then-else regions.
17254 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17255             Sebastian Pop  <s.pop@samsung.com>
17257         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
17258         (cleanup_loop_iter_dom): Remove.
17259         (build_loop_iteration_domains): Remove.
17260         (build_scop_context): Remove.
17261         (build_scop_iteration_domain): Remove.
17262         (add_loop_constraints): New.
17263         (build_iteration_domains): New.
17264         (build_poly_scop): Call build_iteration_domains.
17266 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17267             Sebastian Pop  <s.pop@samsung.com>
17269         * graphite-scop-detection.c
17270         (scop_detection::harmful_loop_in_region): Free dom and loops.
17271         (scop_detection::loop_body_is_valid_scop): Free bbs.
17273 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17274             Sebastian Pop  <s.pop@samsung.com>
17276         * graphite-scop-detection.c (record_loop_in_sese): New.
17277         (gather_bbs::before_dom_children): Call record_loop_in_sese.
17278         (build_scops): Remove call to build_sese_loop_nests.
17279         * sese.c (sese_record_loop): Remove.
17280         (build_sese_loop_nests): Remove.
17281         (new_sese_info): Remove region->loops.
17282         (free_sese_info): Same.
17283         * sese.h (sese_contains_loop): Same.
17284         (build_sese_loop_nests): Remove.
17285         (sese_contains_loop): Remove.
17287 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17288             Sebastian Pop  <s.pop@samsung.com>
17290         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
17291         loop_is_valid_in_scop.
17292         (scop_detection::harmful_stmt_in_region): Renamed
17293         harmful_loop_in_region.
17294         Call loop_is_valid_in_scop.
17296 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17297             Sebastian Pop  <s.pop@samsung.com>
17299         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
17300         isl_ast_node_mark.
17302 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17303             Sebastian Pop  <s.pop@samsung.com>
17305         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
17306         * graphite.h (struct poly_bb): Remove field is_reduction.
17307         (PBB_IS_REDUCTION): Remove.
17309 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
17310             Sebastian Pop  <s.pop@samsung.com>
17312         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
17313         (add_pdr_constraints): Same.
17314         (scop_get_reads): Same.
17315         (scop_get_must_writes): Same.
17316         (scop_get_may_writes): Same.
17317         (scop_get_original_schedule): Same.
17318         (extend_schedule): Same.
17319         (apply_schedule_on_deps): Same.
17320         (carries_deps): Same.
17321         (compute_deps): Same.
17322         (scop_get_dependences): Same.
17323         * graphite-isl-ast-to-gimple.c
17324         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
17325         * graphite-optimize-isl.c (get_schedule_for_band): Same.
17326         (get_schedule_for_band_list): Same.
17327         (get_schedule_map): Same.
17328         (apply_schedule_map_to_scop): Same.
17329         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
17330         (build_loop_iteration_domains): Same.
17331         (add_condition_to_pbb): Same.
17332         (add_param_constraints): Same.
17333         (pdr_add_memory_accesses): Same.
17334         (pdr_add_data_dimensions): Same.
17336 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17338         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
17339         requirements.
17341 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
17343         * common.opt (feliminate-dwarf2-dups): Replace references to
17344         "DWARF 2" with just "DWARF".
17345         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
17346         * doc/extend.texi: Likewise.
17347         * doc/cpp.texi: Likewise.
17348         * doc/invoke.texi: Likewise.
17349         (Option Summary): Add -gdwarf to list of Debugging Options.
17350         (Debugging Options): Document -gdwarf.
17351         * doc/contrib.texi: Spell "DWARF" like that.
17353 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
17355         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
17356         warning.  Fix up formatting.
17358         PR middle-end/67653
17359         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
17360         attempt to mark memory input operand addressable and
17361         call prepare_gimple_addressable in that case.  Don't adjust
17362         input_location for diagnostics, use error_at instead.
17364 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
17366         * config/rs6000/ppc-auxv.h: New file.
17367         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
17368         (cpu_is): Likewise.
17369         (cpu_supports): Likewise.
17370         * config/rs6000/rs6000.c: include "ppc-auxv.h".
17371         (cpu_is_info): New variable.
17372         (cpu_supports_info): Likewise.
17373         (tcb_verification_symbol): Likewise.
17374         (cpu_builtin_p): Likewise.
17375         (cpu_expand_builtin): New function.
17376         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
17377         (rs6000_init_builtins): Likewise.
17378         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
17379         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
17380         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
17381         * configure: Regenerate.
17382         * config.in: Likewise.
17383         * doc/extend.texi (PowerPC Built-in Functions): Document
17384         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
17386 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
17388         PR target/68609
17389         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
17390         domain check.
17391         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
17392         for V4SFmode.
17394 2016-01-20  Richard Henderson  <rth@redhat.com>
17396         PR bootstrap/69343
17397         PR bootstrap/69339
17398         PR tree-opt/68964
17399         Revert:
17400         * tree.c (tm_define_builtin): New.
17401         (find_tm_vector_type): New.
17402         (build_tm_vector_builtins): New.
17403         (build_common_builtin_nodes): Call it.
17405 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
17407         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
17408         (arm_fp_ok): Likewise.
17409         (arm_fp): Likewise.
17410         (arm_crypto): Likewise.
17412 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
17413             Richard Biener  <rguenther@suse.de>
17415         PR tree-optimization/69328
17416         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
17417         vectors have same number of elements.
17418         (vectorizable_condition): Fix masked version recognition.
17420 2016-01-20  Richard Biener  <rguenther@suse.de>
17422         PR tree-optimization/69345
17423         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
17424         (VN_INFO_PTR_INFO): Likewise.
17425         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
17426         info when it is equal between non-dominating SSA names.
17427         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17428         Make sure to look at original SSA infos.
17430 2016-01-20  Jeff Law  <law@redhat.com>
17432         PR target/25114
17433         * config/m68k/predicates.md (pow2_m1_operand): New predicate
17434         extracted from ...
17435         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
17436         (pc_or_label_operand): New predicate.
17437         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
17438         tests for small integers that are 2^n - 1.
17440 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
17442         * doc/invoke.texi (Options Summary): Add '.' after @xref.
17444 2016-01-19  Jeff Law  <law@redhat.com>
17446         PR middle-end/69347
17447         * tree-ssa-threadbackwards.c
17448         (fsm_find_control_statement_thread_paths): Do not try to lookup
17449         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
17451 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
17453         * doc/lto.texi: Remove text that says only Gold has linker plugin
17454         support.
17456 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
17458         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
17459         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
17460         the DIE accordingly.
17461         (modified_type_die): Add REVERSE parameter and pass it recursively,
17462         as well as to base_type_die.  Adjust presence check accordingly.
17463         (base_type_for_mode): Adjust call to modified_type_die.
17464         (add_type_attribute): Add REVERSE parameter and pass it to
17465         modified_type_die.
17466         (generic_parameter_die): Adjust call to add_type_attribute.
17467         (add_scalar_info): Likewise.
17468         (add_subscript_info): Likewise.
17469         (gen_array_type_die): Likewise.
17470         (gen_descr_array_type_die): Likewise.
17471         (gen_entry_point_die): Likewise.
17472         (gen_enumeration_type_die): Likewise.
17473         (gen_formal_parameter_die): Likewise.
17474         (gen_subprogram_die): Likewise.
17475         (gen_variable_die ): Likewise.
17476         (gen_const_die): Likewise.
17477         (gen_field_die): Likewise.
17478         (gen_pointer_type_die): Likewise.
17479         (gen_reference_type_die): Likewise.
17480         (gen_ptr_to_mbr_type_die): Likewise.
17481         (gen_inheritance_die): Likewise.
17482         (gen_subroutine_type_die): Likewise.
17483         (gen_typedef_die): Likewise.
17484         (force_type_die): Adjust call to modified_type_die.
17486 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
17488         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
17489         flow throughout the file.  Fix broken link to Objective-C 2.0
17490         documentation.
17491         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
17492         errors.
17494 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17496         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
17498 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17500         PR ipa/66223
17501         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
17502         (maybe_record_node): Record cxa_pure_virtual as the only possible
17503         target if there are not ohter candidates.
17504         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
17506 2016-01-19  Richard Biener  <rguenther@suse.de>
17508         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
17509         (get_memory_order): Likewise.
17511 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
17513         * tree-vect-stmts.c (vectorizable_store): Check
17514         rhs vectype.
17516 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
17518         PR jit/68446
17519         * gcc.c (driver::decode_argv): Add call to
17520         init_opts_obstack before init_options_struct.
17521         * opts.c (init_opts_obstack): Remove idempotency.
17522         (init_options_struct): Replace call to init_opts_obstack
17523         with a gcc_assert to verify that it has already been called.
17524         * toplev.c (toplev::main): Add call to init_opts_obstack before
17525         calls to init_options_struct.
17526         (toplev::finalize): Move cleanup of opts_obstack next to
17527         cleanup of save_decoded_options, clearing the latter, and
17528         save_decoded_options_count.
17530 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17532         PR target/69135
17533         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
17534         attribute to unconditional.  Remove %? from output template.
17536 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17537             Jiong Wang  <jiong.wang@arm.com>
17539         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
17540         generated from different expand order.
17542 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17544         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
17545         Add support for CCMP costing.
17547 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17549         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
17550         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
17551         (fccmpe<mode>): Likewise.
17552         (fcmp): Rename to fcmp and globalize pattern.
17553         (fcmpe): Likewise.
17554         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
17555         (aarch64_gen_ccmp_next): Add FP support.
17557 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
17559         * target.def (gen_ccmp_first): Update documentation.
17560         (gen_ccmp_next): Likewise.
17561         * doc/tm.texi (gen_ccmp_first): Update documentation.
17562         (gen_ccmp_next): Likewise.
17563         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
17564         expand_ccmp_expr_1.  Improve comments.
17565         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
17566         (ccmp_ior<mode>): Remove pattern.
17567         (cmp<mode>): Remove expand.
17568         (cmp): Globalize pattern.
17569         (cstorecc4): Use cc_register.
17570         (mov<mode>cc): Remove ccmp_cc_register check.
17571         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
17572         Simplify after removal of CC_DNE/* modes.
17573         (aarch64_ccmp_mode_to_code): Remove.
17574         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
17575         In 'k' case use integer as condition.
17576         (aarch64_nzcv_codes): Remove inverted cases.
17577         (aarch64_code_to_ccmode): Remove.
17578         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
17579         comparison with CC register to be used in folowing CCMP/branch/CSEL.
17580         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
17581         pattern.  Return the comparison with CC register.  Invert conditions
17582         when bitcode is OR.
17583         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
17584         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
17586 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17588         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
17589         instrumented_version.
17591 2016-01-19  Richard Biener  <rguenther@suse.de>
17593         PR tree-optimization/69336
17594         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
17595         handled components with get_ref_base_and_extent.
17596         (equal_mem_array_ref_p): Adjust.
17598 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17600         PR debug/65779
17601         * shrink-wrap.c: Include valtrack.h.
17602         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
17603         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
17604         in between insn and where it will be moved to.  Call
17605         dead_debug_insert_temp.
17606         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
17607         first and dead_debug_local_finish at the end.
17608         For uses and defs bitmap, handle all regs in between REGNO and
17609         END_REGNO, not just the first one.
17611 2016-01-19  Richard Biener  <rguenther@suse.de>
17613         PR tree-optimization/69352
17614         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
17615         (equal_mem_array_ref_p): Constrain size and max size properly.
17616         Compare the reverse flag.
17618 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
17620         * ira.c (ira): Update regstat data if we deleted insns.
17622 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
17624         PR rtl-optimization/68955
17625         PR rtl-optimization/64557
17626         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
17627         here.  Fix up formatting.
17628         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
17630 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17632         PR lto/69133
17633         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
17634         assume that the node has body.
17635         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
17636         check.
17638 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17640         * lto-streamer-out.c (lto_output): Do not stream instrumentation
17641         thunks.
17643 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
17645         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
17646         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
17648 2016-01-19  Martin Jambor  <mjambor@suse.cz>
17649             Martin Liska  <mliska@suse.cz>
17650             Michael Matz  <matz@suse.de>
17652         * Makefile.in (OBJS): Add new source files.
17653         (GTFILES): Add hsa.c.
17654         * common.opt (disable_hsa): New variable.
17655         (-Whsa): New warning.
17656         * config.in (ENABLE_HSA): New.
17657         * configure.ac: Treat hsa differently from other accelerators.
17658         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
17659         $enable_offloading.
17660         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
17661         * doc/install.texi (Configuration): Document --with-hsa-runtime,
17662         --with-hsa-runtime-include, --with-hsa-runtime-lib and
17663         --with-hsa-kmt-lib.
17664         * doc/invoke.texi (-Whsa): Document.
17665         (hsa-gen-debug-stores): Likewise.
17666         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
17667         to invoke offload compiler for hsa acclerator.
17668         * opts.c (common_handle_option): Determine whether HSA offloading
17669         should be performed.
17670         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
17671         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
17672         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
17673         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
17674         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
17675         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
17676         GF_OMP_FOR_KIND_GRID_LOOP.
17677         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
17678         (pp_gimple_stmt_1): Likewise.
17679         * gimple-walk.c (walk_gimple_stmt): Likewise.
17680         * gimple.c (gimple_build_omp_grid_body): New function.
17681         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
17682         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
17683         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
17684         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
17685         GF_OMP_TEAMS_GRID_PHONY.
17686         (gimple_statement_omp_single_layout): Updated comments.
17687         (gimple_build_omp_grid_body): New function.
17688         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
17689         (gimple_omp_for_grid_phony): New function.
17690         (gimple_omp_for_set_grid_phony): Likewise.
17691         (gimple_omp_parallel_grid_phony): Likewise.
17692         (gimple_omp_parallel_set_grid_phony): Likewise.
17693         (gimple_omp_teams_grid_phony): Likewise.
17694         (gimple_omp_teams_set_grid_phony): Likewise.
17695         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
17696         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
17697         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
17698         (BUILT_IN_GOMP_TARGET): Updated type.
17699         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
17700         (adjust_for_condition): New function.
17701         (get_omp_for_step_from_incr): Likewise.
17702         (extract_omp_for_data): Moved parts to adjust_for_condition and
17703         get_omp_for_step_from_incr.
17704         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
17705         (fixup_child_record_type): Bail out if receiver_decl is NULL.
17706         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
17707         (scan_omp_parallel): Do not create child functions for phony
17708         constructs.
17709         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
17710         (scan_omp_1_op): Checking assert we are not remapping to
17711         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
17712         (parallel_needs_hsa_kernel_p): New function.
17713         (expand_parallel_call): Register apprpriate parallel child
17714         functions as HSA kernels.
17715         (grid_launch_attributes_trees): New type.
17716         (grid_attr_trees): New variable.
17717         (grid_create_kernel_launch_attr_types): New function.
17718         (grid_insert_store_range_dim): Likewise.
17719         (grid_get_kernel_launch_attributes): Likewise.
17720         (get_target_argument_identifier_1): Likewise.
17721         (get_target_argument_identifier): Likewise.
17722         (get_target_argument_value): Likewise.
17723         (push_target_argument_according_to_value): Likewise.
17724         (get_target_arguments): Likewise.
17725         (expand_omp_target): Call get_target_arguments instead of looking
17726         up for teams and thread limit.
17727         (grid_expand_omp_for_loop): New function.
17728         (grid_arg_decl_map): New type.
17729         (grid_remap_kernel_arg_accesses): New function.
17730         (grid_expand_target_kernel_body): New function.
17731         (expand_omp): Call it.
17732         (lower_omp_for): Do not emit phony constructs.
17733         (lower_omp_taskreg): Do not emit phony constructs but create for them
17734         a temporary variable receiver_decl.
17735         (lower_omp_taskreg): Do not emit phony constructs.
17736         (lower_omp_teams): Likewise.
17737         (lower_omp_grid_body): New function.
17738         (lower_omp_1): Call it.
17739         (grid_reg_assignment_to_local_var_p): New function.
17740         (grid_seq_only_contains_local_assignments): Likewise.
17741         (grid_find_single_omp_among_assignments_1): Likewise.
17742         (grid_find_single_omp_among_assignments): Likewise.
17743         (grid_find_ungridifiable_statement): Likewise.
17744         (grid_target_follows_gridifiable_pattern): Likewise.
17745         (grid_remap_prebody_decls): Likewise.
17746         (grid_copy_leading_local_assignments): Likewise.
17747         (grid_process_kernel_body_copy): Likewise.
17748         (grid_attempt_target_gridification): Likewise.
17749         (grid_gridify_all_targets_stmt): Likewise.
17750         (grid_gridify_all_targets): Likewise.
17751         (execute_lower_omp): Call grid_gridify_all_targets.
17752         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
17753         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
17754         (tree_omp_clause): Added union field dimension.
17755         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
17756         * tree.c (omp_clause_num_ops): Added number of arguments of
17757         OMP_CLAUSE__GRIDDIM_.
17758         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
17759         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
17760         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
17761         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
17762         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
17763         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
17764         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
17765         * tree-pass.h (make_pass_gen_hsail): Declare.
17766         (make_pass_ipa_hsa): Likewise.
17767         * ipa-hsa.c: New file.
17768         * lto-section-in.c (lto_section_name): Add hsa section name.
17769         * lto-streamer.h (lto_section_type): Add hsa section.
17770         * timevar.def (TV_IPA_HSA): New.
17771         * hsa-brig-format.h: New file.
17772         * hsa-brig.c: New file.
17773         * hsa-dump.c: Likewise.
17774         * hsa-gen.c: Likewise.
17775         * hsa.c: Likewise.
17776         * hsa.h: Likewise.
17777         * toplev.c (compile_file): Call hsa_output_brig.
17778         * hsa-regalloc.c: New file.
17780 2016-01-18  Jeff Law  <law@redhat.com>
17782         PR tree-optimization/69320
17783         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
17784         ranged object, do nothing if the RHS constant is not [0..1].
17785         (optimize_stmt): Comparing a boolean ranged object against a
17786         constant outside [0..1] results in a compile-time constant.
17788         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
17789         test.
17791 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
17793         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17794         (Option Summary): Update to reflect new section and moved options.
17795         (C++ Dialect Options): Move -fstats to new section.
17796         (Debugging Options): Move all dump, statistics, and other GCC
17797         developer options to new section.  Rewrite section introduction
17798         and re-order remaining options to put the more basic ones first.
17799         (Optimization Options): Move -fira-verbose and -flto-report* to
17800         new section.
17801         (Developer Options): New section incorporating moved options.
17802         * doc/cppopts.texi (-dM): Update cross-reference.
17804 2016-01-18  Richard Henderson  <rth@redhat.com>
17806         PR target/69176
17807         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
17808         operands to pseudo only if CSE is expected.  Split long immediate
17809         operands only after reload, and for the stack pointer.
17810         (*add<GPI>3_pluslong): Remove.
17811         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
17812         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
17813         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
17814         (*add<GPI>3 peepholes): New.
17815         (*add<GPI>3 splitters): New.
17816         * config/aarch64/constraints.md (Upl): New.
17817         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
17819 2016-01-18  Richard Biener  <rguenther@suse.de>
17821         PR tree-optimization/69297
17822         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
17823         stmt at most once.
17824         (vect_bb_vectorization_profitable_p): Clear visited flag again.
17826 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
17828         PR middle-end/68542
17829         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
17830         of mixind vector and scalar types.
17831         (fold_relational_const): Add handling of vector
17832         comparison with boolean result.
17833         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
17834         comparison of vector operands with boolean result for EQ/NE only.
17835         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
17836         (verify_gimple_cond): Likewise.
17837         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
17838         valid type of VAL.
17840 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
17842         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
17843         !TARGET_OCTEON.
17845 2016-01-18  Richard Biener  <rguenther@suse.de>
17847         PR middle-end/69308
17848         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
17850 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17852         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
17854 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17856         * omp-low.c (set_oacc_fn_attrib): Make extern.
17857         * omp-low.h (set_oacc_fn_attrib): Declare.
17858         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
17859         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
17860         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
17861         Add and handle function parameter oacc_kernels_p.
17862         (find_reduc_addr, get_omp_data_i_param): New function.
17863         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
17864         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
17865         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
17866         Calculate dominance info.  Skip loops that are not in a kernels region
17867         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
17868         (pass_parallelize_loops::execute): Call parallelize_loops with
17869         oacc_kernels_p argument.
17870         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
17871         New member function.
17872         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
17873         * passes.def: Add argument to pass_parallelize_loops instantation.
17875 2016-01-18  Tom de Vries  <tom@codesourcery.com>
17877         * tree-parloops.c (pass_parallelize_loops::execute): Allow
17878         pass_parallelize_loops to be run outside the loop pipeline.
17880 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17882         * tree-scalar-evolution.c (follow_copies_to_constant): New.
17883         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
17885 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17887         PR target/63679
17888         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
17889         using get_ref_base_and_extent.
17890         (equal_mem_array_ref_p): New.
17891         (hashable_expr_equal_p): Add call to previous.
17893 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
17895         PR target/63679
17896         * tree-sra.c (disqualified_constants, constant_decl_p): New.
17897         (sra_initialize): Allocate disqualified_constants.
17898         (sra_deinitialize): Free disqualified_constants.
17899         (disqualify_candidate): Update disqualified_constants when appropriate.
17900         (create_access): Scan for constant-pool entries as we go along.
17901         (scalarizable_type_p): Add check against type_contains_placeholder_p.
17902         (maybe_add_sra_candidate): Allow constant-pool entries.
17903         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
17904         (initialize_constant_pool_replacements): New.
17905         (sra_modify_assign): Avoid mangling assignments created by previous,
17906         and don't generate writes into constant pool.
17907         (sra_modify_function_body): Call initialize_constant_pool_replacements.
17909 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
17911         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
17912         andnot instruction.
17913         (scalar_chain::convert_op): Likewise.
17914         * config/i386/i386.md (*andndi3_doubleword): New.
17916 2016-01-18  Richard Biener  <rguenther@suse.de>
17918         PR tree-optimization/69170
17919         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
17920         building a vector from scalar results of a pattern stmt.
17922 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
17924         * haifa-sched.c (autopref_multipass_init): Work around
17925         -Wmaybe-uninitialized warning.
17927 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17929         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
17930         against the constant 0.
17932 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17934         PR tree-optimization/68799
17935         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
17936         look up phi candidates in the statement-candidate map.
17937         (phi_add_costs): Likewise.
17938         (record_phi_increments): Likewise.
17939         (phi_incr_cost): Likewise.
17940         (ncd_with_phi): Likewise.
17941         (all_phi_incrs_profitable): Likewise.
17943 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
17945         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
17946         -Wmaybe-uninitialized warning.
17948 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
17950         * doc/invoke.texi (Invoking GCC): Add new section to menu.
17951         (Option Summary): Update to reflect new section and moved options.
17952         (C++ Dialect Options): Move -fvtable-verify and related options.
17953         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
17954         and profiling-related options.
17955         (Optimization Options): Move profile generation options and
17956         -fstack-protector and related options.
17957         (Instrumentation Options): New section incorporating moved options.
17958         (Code Generation Options): Move -finstrument-functions and
17959         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
17961 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17963         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
17965 2016-01-16  Tom de Vries  <tom@codesourcery.com>
17967         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
17969 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
17971         * hash-table.h (hash_table::empty): Turn into an inline wrapper
17972         that checks whether the table is already empty.  Rename the
17973         original implementation to...
17974         (hash_table::empty_slot): ...this new private function.
17976 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
17978         PR diagnostic/68899
17979         * diagnostic-show-locus.c (layout::print_source_line): Move x
17980         offset of line until after call to
17981         get_line_width_without_trailing_whitespace.
17983 2016-01-15  Jeff Law  <law@redhat.com>
17985         PR tree-optimization/69270
17986         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
17987         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
17988         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
17989         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
17990         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
17991         ssa_name_has_boolean_range and constant_boolean_node.
17993 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
17995         PR rtl-optimization/69030
17996         * lra-spills.c (remove_pseudos): Check nrefs and make the function
17997         returning bool.
17998         (spill_pseudos): Delete debug insn for dead pseudo.
17999         (lra_spill): Initiate spill_hard_reg and slots memory separately.
18001 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
18003         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
18004         New.
18005         (TYPES_UNOPUS): Likewise.
18006         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
18007         builtin type, from UNOP to UNOPUS.
18008         (lbtruncuv4sf): Likewise.
18009         (lbtruncuv2df): Likewise.
18010         (lrounduv2sf): Likewise.
18011         (lrounduv4sf): Likewise.
18012         (lrounduv2df): Likewise.
18013         (lroundusf): Likewise.
18014         (lroundusf): Likewise.
18015         (lceiluv2sf): Likewise.
18016         (lceiluv4sf): Likewise.
18017         (lceiluv2df): Likewise.
18018         (lceilusf): Likewise.
18019         (lceiludf): Likewise.
18020         (lflooruv2sf): Likewise.
18021         (lflooruv4sf): Likewise.
18022         (lflooruv2df): Likewise.
18023         (lfloorusf): Likewise.
18024         (lfloorudf): Likewise.
18025         (lfrintnuv2sf): Likewise.
18026         (lfrintnuv4sf): Likewise.
18027         (lfrintnuv2df): Likewise.
18028         (lfrintnusf): Likewise.
18029         (lfrintnudf): Likewise.
18030         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
18031         conversion.
18032         (vcvtq_u32_f32): Likewise.
18033         (vcvtq_u64_f64): Likewise.
18034         (vcvta_u32_f32): Likewise.
18035         (vcvtaq_u32_f32): Likewise.
18036         (vcvtaq_u64_f64): Likewise.
18037         (vcvtm_u32_f32): Likewise.
18038         (vcvtmq_u32_f32): Likewise.
18039         (vcvtmq_u64_f64): Likewise.
18040         (vcvtn_u32_f32): Likwise.
18041         (vcvtnq_u32_f32): Likewise.
18042         (vcvtnq_u64_f64): Likewise.
18043         (vcvtp_u32_f32): Likewise.
18044         (vcvtpq_u32_f32): Likewise.
18045         (vcvtpq_u64_f64): Likewise.
18046         (vcvtmd_u64_f64): Likewise.
18047         (vcvtms_u32_f32): Likewise.
18048         (vcvtad_u64_f64): Likewise.
18049         (vcvtas_u32_f32): Likewise.
18050         (vcvtnd_u64_f64): Likewise.
18051         (vcvtns_u32_f32): Likewise.
18052         (vcvtpd_u64_f64): Likewise.
18053         (vcvtps_u32_f32): Likewise.
18055 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18057         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
18058         CSEL of zero_extended registers.
18060 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18062         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
18063         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
18065 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18067         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
18068         false when argument string is not found in the attributes table
18069         at all.
18071 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
18073         PR target/68609
18074         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
18075         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
18076         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
18077         precision estimate.
18079 2016-01-15  Richard Biener  <rguenther@suse.de>
18081         PR tree-optimization/66856
18082         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
18083         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
18084         (vect_create_new_slp_node): Increment stmt reference count.
18085         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
18086         an SLP tree before swapping operands.
18087         (vect_build_slp_tree): Likewise.
18088         (destroy_bb_vec_info): Free stmt info after SLP instances.
18089         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
18090         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
18091         (STMT_VINFO_NUM_SLP_USES): New macro.
18093 2016-01-15  Richard Biener  <rguenther@suse.de>
18095         PR debug/69137
18096         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
18097         (add_linkage_name): ... here.
18098         (gen_typedef_die): Use add_linkage_name_raw instead of
18099         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
18100         if necessary.
18102 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
18104         * gimplify.c (oacc_default_clause): Decode reference and pointer
18105         types for both kernels and parallel regions.
18107 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
18109         PR middle-end/69246
18110         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
18112 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18114         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
18115         (convert_scalars_to_vector): Likewise.
18117 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
18119         * doc/extend.texi (Type Traits): Fix grammar.
18121 2016-01-15  Martin Jambor  <mjambor@suse.cz>
18123         * tree-inline.c (remap_decl): Use existing dclarations if
18124         remapping a type and prevent_decl_creation_for_types.
18125         (replace_locals_stmt): Do an initial remapping of non-VLA typed
18126         decls first.  Do real remapping with
18127         prevent_decl_creation_for_types set.
18128         * tree-inline.h (copy_body_data): New field
18129         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
18130         padding.
18132 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18134         * config/s390/s390.opt (mmvcle): More verbose help text.
18136 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18138         * config/s390/s390.opt: Add period to -mzvector option text.
18140 2016-01-15  Richard Biener  <rguenther@suse.de>
18142         PR tree-optimization/68961
18143         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
18144         of invariants in stores again.
18146 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18148         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
18150 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
18152         * config/i386/i386.c (ix86_expand_branch): Don't split
18153         DI mode xor instruction to SI mode.
18155 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18157         PR ipa/68148
18158         * ipa-icf.c (sem_function::merge): Virtual functions may become
18159         reachable even if they address is not taken and there are no
18160         idrect calls.
18162 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
18164         * lto-streamer-out.c (subtract_estimated_size): New function.
18165         (get_symbol_initial_value): Use it.
18167 2016-01-15  Christian Bruel  <christian.bruel@st.com>
18169         PR target/65837
18170         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
18171         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
18172         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
18173         use add_builtin_function_ext_scope instead of add_builtin_function.
18174         (neon_set_p, neon_crypto_set_p): Remove.
18175         (arm_init_builtins): Always call arm_init_neon_builtins and
18176         arm_init_crypto_builtins.
18177         (arm_expand_builtin): Check that builtins are allowed for the arch.
18178         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
18179         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
18180         arm_init_neon_builtins call.
18182 2016-01-15  Richard Biener  <rguenther@suse.de>
18184         PR tree-optimization/69117
18185         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
18186         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
18187         of the leader conservatively.
18188         (free_scc_vn): Restore original SSA name infos.
18190 2016-01-14  Jeff Law  <law@redhat.com>
18192         PR tree-optimization/69270
18193         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
18194         single bit of precision, verify it's also unsigned.
18195         (record_edge_info): Use constant_boolean_node rather than fold_convert
18196         to convert boolean_true/boolean_false to the right type.
18198 2016-01-14  Richard Henderson  <rth@redhat.com>
18200         PR rtl-opt/69014
18201         * loop-doloop.c (record_reg_sets): New.
18202         (doloop_optimize): Reject the transform if the sequence
18203         clobbers registers live at the end of the loop block.
18204         (doloop_optimize_loops): Enable df_live if needed.
18206 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18208         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
18209         * config/rs6000/rs6000.c: Likewise.
18210         * config/rs6000/rs6000.h: Likewise.
18211         * config/rs6000/rs6000.md: Likewise.
18212         * doc/extend.texi: Likewsie.
18214 2016-01-14  Jeff Law  <law@redhat.com>
18216         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
18217         typo.
18219 2016-01-14  Richard Henderson  <rth@redhat.com>
18221         PR c/69272
18222         PR tree-opt/68964
18223         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
18224         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
18225         instead of builtin_decl_declared_p to test for declaration.
18227 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
18229         * doc/loop.texi (Loop Analysis and Representation): Document
18230         loop_depth function.
18232 2016-01-14  Tom de Vries  <tom@codesourcery.com>
18234         PR tree-optimization/68773
18235         * omp-low.c (expand_omp_target): Don't set force_output.
18236         * varpool.c (varpool_node::get_create): Same.
18237         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
18238         offload_funcs with force_output.
18240 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18242         PR debug/69244
18243         * lra-eliminations.c (move_plus_up): Don't change anything if either
18244         the outer or inner subreg mode is not MODE_INT.
18245         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
18246         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
18248 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18250         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
18251         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
18252         reduc_uplus_@var{m}): Remove.
18253         * expr.c (expand_expr_real_2): Remove expansion path for
18254         reduc_[us](min|max|plus) optabs.
18255         * optabs-tree.c (scalar_reduc_to_vector): Remove.
18256         * optabs-tree.h (scalar_reduc_to_vector): Remove.
18257         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
18258         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
18259         * tree-vect-loop.c (vectorizable_reduction): Remove test for
18260         reduc_[us](min|max|plus) optabs.
18262 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
18264         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
18265         (reduc_plus_scal_v2sf): New.
18266         (reduc_smax_v2sf): Rename to...
18267         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
18268         (reduc_smin_v2sf): Rename to...
18269         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
18271 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
18273         * alias.c (compare_base_symbol_refs): New function.
18274         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
18275         it.
18277 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18279         PR middle-end/68146
18280         PR tree-optimization/69155
18281         * tree-complex.c: Include cfganal.h.
18282         (phis_to_revisit): New variable.
18283         (extract_component): Add phiarg_p argument.  Assert that returned
18284         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
18285         (update_phi_components): Partly rewrite to use loop over real/imag
18286         components instead of code duplication.  If extract_component returns
18287         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
18288         create_tmp_reg into the PHI node instead, and mention the phi triplet
18289         in phis_to_revisit.
18290         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
18291         in phis_to_revisit at the end.
18293 2016-01-14  Richard Biener  <rguenther@suse.de>
18295         PR tree-optimization/68060
18296         * tree-vect-loop.c (vect_is_simple_reduction): Check the
18297         outer loop reduction is only used in the inner loop before
18298         detecting a double reduction.
18300 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
18302         PR target/68269
18303         * combine.c (expand_field_assignment): Punt if compute_mode is
18304         unsupported scalar mode.
18306 2016-01-14  Richard Biener  <rguenther@suse.de>
18308         PR tree-optimization/66856
18309         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
18310         SLP node only if it built successfully.
18311         (vect_analyze_slp_instance): Adjust.
18313 2016-01-14  Jeff Law  <law@redhat.com>
18315         PR tree-optimization/69270
18316         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
18317         (record_edge_info): Use it.  Convert boolean_{true,false}_node
18318         to the type of op0.
18320 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
18322         PR ipa/66487
18323         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
18324         use block_ultimate_origin
18325         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
18327 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18329         * doc/invoke.texi (Submodel Options): Rename section to
18330         "Machine-Dependent Options" to better reflect its content.
18331         Rewrite introductory text to remove archaic CPU names.
18332         Update references.
18334 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
18336         * doc/invoke.texi (Code Gen Options): Move section up in file,
18337         before target-specific options.  Update menu and option summary
18338         to reflect the new section ordering.
18340 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18342         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
18343         (C++ Dialect Options): Add cross-reference to -std option.
18344         * doc/standards.texi (C++ Language): Document C++14 support.
18346 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
18348         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
18349         for pack/unpack functions for __ibm128.
18350         (PACK_IF): Likewise.
18351         (UNPACK_IF): Likewise.
18353         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18354         support for __ibm128 pack/unpack functions.
18355         (rs6000_invalid_builtin): Likewise.
18356         (rs6000_init_builtins): Likewise.
18357         (rs6000_opt_masks): Likewise.
18359         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
18360         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
18361         functions
18362         (RS6000_BTM_COMMON): Likewise.
18364         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
18365         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
18366         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
18367         128-bit floating point.  Add support for the double values to be
18368         in Altivec registers for TF/IF packing and unpacking, but restrict
18369         TD packing sub-fields to be FPR registers.  Don't allow overlapped
18370         register support for packing.  Allow pack inputs to be memory
18371         locations.  Don't build generator functions for unpack<mode>_dm
18372         and unpack<mode>_nodm.
18373         (unpack<mode>_dm): Likewise.
18374         (unpack<mode>_nodm): Likewise.
18375         (pack<mode>): Likewise.
18377         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
18378         built-in functions to pack/unpack explicit __ibm128 values.
18379         (__builtin_unpack_ibm128): Likewise.
18381         * doc/extend.texi (PowerPC Built-in Functions): Document
18382         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
18384 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
18386         PR c/66208
18387         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
18388         Add new arg loc and pass it down as context.
18389         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
18390         to the location to use for the warning.
18391         (check_function_arguments): New arg loc.  All callers changed.  Pass
18392         it to check_function_nonnull.
18393         * c-common.h (check_function_arguments): Adjust declaration.
18395 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
18397         PR tree-optimization/69156
18398         * gimple.c (validate_type): Removed.
18399         (gimple_builtin_call_types_compatible_p): Use
18400         useless_type_conversion_p instead of validate_type.
18401         * value-prof.c (gimple_stringop_fixed_value): Fold
18402         icall_size to correct type.
18404 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
18406         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
18407         effects.
18409 2016-01-13  Richard Henderson  <rth@redhat.com>
18411         PR tree-opt/68964
18412         * target.def (builtin_tm_load, builtin_tm_store): Remove.
18413         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
18414         (ix86_builtin_tm_store): Remove.
18415         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18416         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18417         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
18418         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
18419         * doc/tm.texi: Rebuild.
18421         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
18422         (BUILT_IN_TM_MEMCPY_RTWN): New.
18423         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
18424         fallback from vector to integer helpers.
18425         (build_tm_load): Handle vector types directly, instead of
18426         via target hook.
18427         (build_tm_store): Likewise.
18428         (expand_assign_tm): Prepare for register types not handled by
18429         the above.  Copy them to memory and use memcpy.
18430         * tree.c (tm_define_builtin): New.
18431         (find_tm_vector_type): New.
18432         (build_tm_vector_builtins): New.
18433         (build_common_builtin_nodes): Call it.
18435 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
18437         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
18438         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
18440 2016-01-13  Tom de Vries  <tom@codesourcery.com>
18442         PR tree-optimization/69169
18443         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
18444         handled_struct_type param.
18445         (create_variable_info_for, intra_create_variable_infos): Call
18446         create_variable_info_for_1 with extra arg.
18448 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
18450         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
18451         and "armv8.1-a+crc" entries.
18453 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
18455         PR target/69228
18456         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
18457         Change first operand predicate from register_or_constm1_operand
18458         to register_operand.
18459         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
18460         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
18461         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
18462         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
18463         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
18464         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
18465         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
18466         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
18467         comparison with constm1_rtx from vec_prefetch_gen part.
18469 2016-01-13  Richard Biener  <rguenther@suse.de>
18471         PR tree-optimization/69013
18472         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
18473         Exchange assert for a test.
18475 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18477         PR target/69247
18478         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
18480 2016-01-13  Richard Biener  <rguenther@suse.de>
18482         PR tree-optimization/69242
18483         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
18484         assert with a check.
18486 2016-01-13  Richard Biener  <rguenther@suse.de>
18488         PR tree-optimization/69186
18489         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18490         Properly guard vect_update_misalignment_for_peel call.
18492 2016-01-12  Jeff Law  <law@redhat.com>
18494         PR tree-optimization/pr67755
18495         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
18496         "need_profile_correction".
18497         (thread_block_1): Initialize new field to false by default.  If we
18498         have multiple thread paths through a common joiner to different
18499         final targets, then set new field to true.
18500         (compute_path_counts): Only do count adjustment when it's really
18501         needed.
18503 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18505         * doc/invoke.texi (Spec Files): Move section down in file, past
18506         all command-line option descriptions.
18508 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18510         PR middle-end/54809
18511         * doc/gty.texi: Remove documentation of mark_hook.
18512         * gengtype.c (struct write_types_data): Remove code to support
18513         mark_hook attribute.
18514         (walk_type): Likewise.
18515         (write_func_for_structure): Likewise.
18517 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18519         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
18520         Directory Options, and -specs= to Overall Options.
18521         (Overall Options): Adjust similarly.  Reorder to group related
18522         options together.  Make -specs= cross-reference the spec file details.
18523         (Directory Options): Adjust similarly.
18525 2016-01-12  Jeff Law  <law@redhat.com>
18527         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
18529 2016-01-12  Olivier Hainque  <hainque@adacore.com>
18531         * gcc.c (spec_undefvar_allowed): New global.
18532         (process_command): Set to true when running for --version or --help,
18533         alone or together.
18534         (getenv_spec_function): When the variable is not defined, use the
18535         variable name as the variable value if we're allowed not to issue
18536         a fatal error.
18538 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
18540         PR tree-optimization/68911
18541         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
18542         information computed for expression "init + nit * step".
18544 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
18546         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
18547         about name of GCC executable.  Remove deleted node from menu.
18548         (Directory Options) <-B>: Remove cross-reference to deleted node.
18549         (Target Options): Delete section.
18551 2016-01-12  Christian Bruel  <christian.bruel@st.com>
18553         PR target/69180
18554         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
18555         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
18557 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
18559         PR target/69198
18560         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
18561         aligned_mem is properly set for AVX512-VL floating point masked
18562         stores.
18564         PR target/69175
18565         * ifcvt.c (cond_exec_process_if_block): When removing the last
18566         insn from then_bb, remove also any possible barriers that follow it.
18568 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
18570         PR target/68456
18571         PR target/69226
18572         * config/i386/iamcu.h (SIZE_TYPE): New macro.
18573         (PTRDIFF_TYPE): Likewise.
18574         (WCHAR_TYPE): Likewise.
18575         (WCHAR_TYPE_SIZE): Likewise.
18576         (STDINT_LONG32): Likewise.
18578 2016-01-12  Richard Biener  <rguenther@suse.de>
18580         PR tree-optimization/69053
18581         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
18582         convert initial value for cond reductions.
18584 2016-01-12  Richard Biener  <rguenther@suse.de>
18586         PR tree-optimization/69007
18587         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
18588         widen_sum after dot_prod and sad.
18590 2016-01-12  Richard Biener  <rguenther@suse.de>
18592         PR tree-optimization/69168
18593         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
18594         pattern stmt SLP type.
18595         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
18596         end up unused so cope with that case.
18598 2016-01-12  Richard Biener  <rguenther@suse.de>
18600         PR tree-optimization/69157
18601         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
18602         stmts def type only during analyze phase.
18603         (vectorizable_call): Likewise.
18604         (vectorizable_simd_clone_call): Likewise.
18605         (vectorizable_conversion): Likewise.
18606         (vectorizable_assignment): Likewise.
18607         (vectorizable_shift): Likewise.
18608         (vectorizable_operation): Likewise.
18609         (vectorizable_store): Likewise.
18610         (vectorizable_load): Likewise.
18612 2016-01-12  Richard Biener  <rguenther@suse.de>
18614         PR tree-optimization/69174
18615         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
18616         space.
18617         (vectorizable_load): Properly compute the number of loads needed
18618         for permuted strided SLP loads and do not spuriously assign
18619         to SLP_TREE_VEC_STMTS.
18621 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
18623         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
18624         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
18625         (MD_EXEC_PREFIX): Remove.
18626         (MD_STARTFILE_PREFIX) Removee.
18627         (FILE_NAME_ABSOLUTE_P): Remove.
18628         (CPP_SPEC): Do not read macros from sys/version.h.
18629         (LINK_COMMAND_SPEC): Remove.
18630         (LOCAL_INCLUDE_DIR): Remove.
18631         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
18632         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
18633         (POST_LINK_SPEC): Define to invoke stubify after linker
18634         (LIBSTDCXX): Remove define
18635         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
18636         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
18637         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
18638         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
18639         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
18640         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
18641         (i386_djgpp_asm_named_section): Add propotype of new procedure
18643         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
18644         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
18645         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
18646         in config/i386/djgpp.h).
18647         (STANDARD_STARTFILE_PREFIX_2): Define identical to
18648         STANDARD_STARTFILE_PREFIX_1.
18649         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
18650         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
18651         installation errors.
18652         (MAX_OFILE_ALIGNMENT): Define to 128.
18653         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
18655         * config/i386/djgpp.c: New file. Add implementation of
18656         i386_djgpp_asm_named_section.
18658         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
18660         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
18661         Add rule for building djgpp.o.
18663 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18665         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
18666         (rtx_is_swappable_p): Reductions are swappable.
18667         (insn_is_swappable_p): V2DF reductions are swappable.
18669 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
18671         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
18672         reloads for other unsupported memory operands.
18674 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
18675             Jim Wilson  <jim.wilson@linaro.org>
18677         PR target/69194
18678         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
18679         copy_to_mode_reg instead of force_reg.
18681 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18683         PR target/69225
18684         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
18685         TARGET_80387 is true.
18687 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
18689         PR target/69071
18690         * lra-eliminations.c (move_plus_up): Only move plus up
18691         if subreg of the constant can be simplified into constant
18692         and use the simplified subreg of the constant instead of
18693         the original constant.
18695         * fold-const.c (fold_convertible_p): Don't return true
18696         for conversion of VECTOR_TYPE to same sized integral type.
18697         (fold_convert_loc): Fix up formatting.  Fold conversion of
18698         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
18699         instead of NOP_EXPR.
18701         PR tree-optimization/69214
18702         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
18703         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18704         Formatting fix.
18706         PR tree-optimization/69207
18707         * tree-vect-slp.c (vect_get_constant_vectors): For
18708         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
18709         fold_convertible_p to vector_type's element type, and always
18710         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
18712 2016-01-11  Richard Biener  <rguenther@suse.de>
18714         PR tree-optimization/69173
18715         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
18716         fixup the cycle if all stmts are in a pattern.
18718 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
18720         PR middle-end/68999
18721         * alias.c (base_alias_check): Move check for addresses with
18722         alignment ANDs before the call for compare_base_decls.
18723         (memrefs_conflict_p): Return -1 for different decls
18724         that went through alignment adjustments.
18726 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18728         PR rtl-optimization/68796
18729         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
18730         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
18731         and QImode comparisons against zero with CC_NZmode.
18732         * config/aarch64/iterators.md (short_mask): New mode_attr.
18734 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
18736         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
18737         (<avx512>_store<mode>_mask): Likewise.
18739 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
18740             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18742         PR rtl-optimization/68841
18743         * ifcvt.c (struct noce_if_info): Add orig_x field.
18744         (bbs_ok_for_cmove_arith): Add to_rename parameter.
18745         Don't record conflicts on to_rename if it's present.
18746         Allow memory destinations in sets.
18747         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
18748         blocks, passing orig_x to the checks.
18749         (noce_process_if_block): Set if_info->orig_x appropriately.
18751 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18753         PR tree-optimization/69069
18754         * tree-parloops.c (create_parallel_loop): Add missing phi args.
18756 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18758         PR rtl-optimization/68920
18759         * config/i386/i386.c (ix86_option_override_internal): Restrict number
18760         of conditional moves for  RTL if-conversion to 1 for
18761         TARGET_ONE_IF_CONV_INSN.
18762         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
18763         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
18764         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
18765         parameter to restirct number of conditional moves for
18766         RTL if-conversion.
18767         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
18768         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
18769         conditionl moves.
18771 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
18773         PR bootstrap/69123
18774         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
18775         onepart vars.  Fix typo in comment.  Fix reversed condition in
18776         unshare test.
18777         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
18779         PR bootstrap/69123
18780         * var-tracking.c (dump_onepart_variable_differences): New.
18781         (dataflow_set_different): If a detailed dump is requested,
18782         delay early returns and dump differences between onepart
18783         variables present before and after, and added variables.
18785 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18787         PR target/69010
18788         * expr.c (expand_expr_real_1): For boolean vector constants
18789         with a scalar mode use const_scalar_mask_from_tree.
18790         (const_scalar_mask_from_tree): New.
18791         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
18792         assigned to a mask type to handle constants.
18794 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18796         PR ipa/69044
18797         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
18798         useless parameters if we cannot change function signature.
18800 2016-01-11  Martin Jambor  <mjambor@suse.cz>
18802         PR ipa/66616
18803         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
18804         flag.
18806 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18808         PR tree-optimization/69109
18809         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
18810         latch with phi.
18812 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18814         PR tree-optimization/69108
18815         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
18816         res is not used in a phi.
18818 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
18820         PR 67425
18821         * common.opt (frandom-seed): Fix parameter name.
18822         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
18824 2016-01-11  Tom de Vries  <tom@codesourcery.com>
18826         PR tree-optimization/69058
18827         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
18828         not supported.
18830 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
18832         * config/arc/arc.opt (mdiv-rem): Add period to the end.
18833         (mcode-density): Likewise.
18835 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18837         PR tree-optimization/69062
18838         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
18839         (parallelize_loops): Don't paralelize loop that has phi with address
18840         arg.
18842 2016-01-10  Tom de Vries  <tom@codesourcery.com>
18844         PR tree-optimization/69039
18845         * tree-parloops.c (try_create_reduction_list): Only allow single exit
18846         phi for reduction.
18848 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
18850         PR middle-end/68743
18851         * match.pd: Require target has function_c99_misc before doing
18852         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
18854 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
18856         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
18857         use GMPINC.
18858         * configure: Regenerate.
18860 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
18862         PR middle-end/50865
18863         PR tree-optimization/69097
18864         * fold-const.h (expr_not_equal_to): New prototype.
18865         * fold-const.c: Include stringpool.h and tree-ssanames.h.
18866         (expr_not_equal_to): New function.
18867         * match.pd (X % -Y is the same as X % Y): Don't optimize
18868         unless X is known not to be equal to minimum or Y is known
18869         not to be equal to -1.
18870         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
18871         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
18872         (simplify_stmt_using_ranges): Adjust caller.
18873         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
18874         substitute_and_fold.
18876 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
18878         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
18879         w/o DECL_NAME.
18881 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18883         PR tree-optimization/69167
18884         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
18885         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
18886         ops[0] comparison.
18887         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
18889 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18890             Richard Biener  <rguenther@suse.de>
18892         PR tree-optimization/68707
18893         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
18894         instances that can be handled via vect_load_lanes.
18896 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
18898         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
18899         if we can't determine address equivalence.
18900         * alias.c (compare_base_decl): Update for changed return value of
18901         symtab_node::equal_address_to.
18903 2016-01-08  Jason Merrill  <jason@redhat.com>
18905         PR c++/68983
18906         PR c++/67557
18907         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
18908         * expr.c (store_field): Not here.
18909         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
18910         call with TREE_ADDRESSABLE type.
18911         * tree-cfg.c (verify_gimple_call): Adjust.
18913 2016-01-08  Olivier Hainque  <hainque@adacore.com>
18915         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
18916         libc_internal.
18918 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
18920         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
18921         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
18922         (reduc_smin_v2sf): Rename to...
18923         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
18924         (reduc_splus_v2sf): Rename to...
18925         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
18927 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18929         PR tree-optimization/69162
18930         * gimplify.c (gimplify_va_arg_expr): Encode original type of
18931         valist argument in another argument.
18932         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
18933         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
18934         to determine the va_list type, build a MEM_REF instead of
18935         build_fold_indirect_ref.
18937         PR tree-optimization/69172
18938         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
18939         gimple_build.
18941 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18943         PR tree-optimization/67781
18944         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
18945         and cmpnop in two steps: first the ones not accessed in original
18946         gimple expression in a endian independent way and then the ones not
18947         accessed in the final result in an endian-specific way.
18949 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
18951         PR tree-optimization/69083
18952         * tree-vect-slp.c (vect_get_constant_vectors): For
18953         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
18954         element type.  If op is fold_convertible_p to vector_type's element
18955         type, use NOP_EXPR instead of VCE.
18957 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
18959         PR rtl-optimization/67778
18960         PR rtl-optimization/68634
18961         PR rtl-optimization/68909
18962         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
18963         block from the stack until done with it.  Remove a superfluous
18964         bitmap set.  Remove a superfluous bitmap test.
18966 2016-01-07  Martin Sebor  <msebor@redhat.com>
18968         PR c/68966
18969         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
18970         constraint on the type of arguments.
18972 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
18974         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
18975         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
18976         unaligned_access on the gcc_options set.
18977         * config/arm/arm.c (arm_option_override_internal): Use
18978         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
18980 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18982         PR target/69140
18983         * config/i386/i386.c (ix86_frame_pointer_required): Enable
18984         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
18986 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
18988         Revert
18989         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
18991         PR target/69140
18992         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
18993         depending on frame_pointer_needed before remaining integer and SSE
18994         registers are saved.
18996 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
18998         PR 1078
18999         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
19001 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19003         PR target/69171
19004         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
19005         Use the "xBm" constraint.
19006         (float<sseintvecmodelower><mode>2<mask_name><round_name):
19007         Likewise.
19008         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
19009         (sse_cvtsi2ssq<round_name>): Likewise.
19010         (sse_cvtss2si<round_name>): Likewise.
19011         (sse_cvtss2siq<round_name>): Likewise.
19012         (sse2_cvtsi2sdq<round_name>): Likewise.
19013         (sse2_cvtsd2si<round_name>): Likewise.
19014         (sse2_cvtsd2siq<round_name>): Likewise.
19015         * config/i386/subst.md (round_nimm_scalar_predicate): New
19016         predicate.
19018 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
19020         PR middle-end/67639
19021         * varasm.c (make_decl_rtl): Mark invalid register vars as
19022         DECL_EXTERNAL.
19024         PR rtl-optimization/66206
19025         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
19026         All callers changed.
19028 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
19030         PR tree-optimization/69141
19031         * tree-ssa-pre.c: Include langhooks.h.
19032         (eliminate_dom_walker::before_dom_children): Use
19033         lang_hooks.decl_printable_name instead of
19034         cgraph_node::get ()->name ().
19036         PR middle-end/68960
19037         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
19038         it and DECL_ALIGN too.
19040 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
19042         * config/mips/mips-ftypes.def: Sort to lexicographical order.
19044 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
19046         PR target/69140
19047         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
19048         depending on frame_pointer_needed before remaining integer and SSE
19049         registers are saved.
19051 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19053         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
19054         mode iterator with VSX_M2.
19055         (*p9_vecstore_<mode>): Likewise.
19056         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
19057         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
19058         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
19059         (define_split for VSX_LE128 stores): Likewise.
19060         (define_peephole2 for TImode LE swaps): Likewise.
19061         (define_split for VSX_LE128 post-reload stores): Likewise.
19063 2016-01-06  Marek Polacek  <polacek@redhat.com>
19065         PR sanitizer/69099
19066         * convert.c (convert_to_integer_1): Adjust call to
19067         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
19068         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
19069         EXPR instead of ARG.
19070         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
19072 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19074         PR 1078
19075         * doc/extend.texi (RL78 Variable Attributes): New section.
19077 2016-01-05  Marek Polacek  <polacek@redhat.com>
19079         PR c/69104
19080         * builtins.c (get_memmodel): Use expansion point location rather than
19081         the input location.  Call warning_at rather than warning.
19082         (expand_builtin_atomic_compare_exchange): Likewise.
19083         (expand_builtin_atomic_load): Likewise.
19084         (expand_builtin_atomic_store): Likewise.
19085         (expand_builtin_atomic_clear): Likewise.
19087 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19089         PR target/68991
19090         * config/i386/i386.c (ix86_expand_vector_logical_operator):
19091         Replace nonimmediate_operand with vector_operand.
19092         * config/i386/predicates.md (vector_operand): New predicate.
19093         (general_vector_operand): Replace nonimmediate_operand with
19094         vector_operand.
19095         * config/i386/sse.md: Replace nonimmediate_operand with
19096         vector_operand and m constraint with Bm constraint on SSE
19097         patterns with 16-byte memory operand.
19098         * config/i386/subst.md (round_nimm_predicate): Replace
19099         nonimmediate_operand with vector_operand.
19100         (round_saeonly_nimm_predicate): Likewise.
19101         (round_saeonly_nimm_scalar_predicate): New.
19103 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
19105         PR target/68991
19106         * config/i386/constraints.md (Bm): New constraint.
19107         * config/i386/predicates.md (vector_memory_operand): New
19108         predicate.
19109         * config/i386/sse.md: Replace xm with xBm in plusminus and
19110         any_logic patterns.
19112 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19114         PR 1078
19115         * doc/extend.texi (V850 Function Attributes): New section.
19116         (V850 Variable Attributes): New section.
19118 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
19120         PR 1078
19121         * doc/extend.texi (MicroBlaze Function Attributes): Document
19122         interrupt_handler and fast_interrupt attributes.
19124 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
19126         PR other/60465
19127         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
19128         for local symbolic operands.
19129         * config/ia64/predicates.md (local_symbolic_operand64): New
19130         predicate.
19132 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19134         PR rtl-optimization/68651
19135         * combine.c (combine_simplify_rtx): Canonicalize x + x into
19136         x << 1.
19138 2016-01-05  Nathan Sidwell  <nathan@acm.org>
19140         * alias.c (compare_base_decls): Use symtab_node::get.
19142 2016-01-05  Nick Clifton  <nickc@redhat.com>
19144         PR target/68770
19145         * ira-costs.c (copy_cost): Initialise the t_icode field of the
19146         secondary_reload_info structure.
19148         PR target/66655
19149         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
19150         decls if weak support is available.
19152 2016-01-04  Martin Sebor  <msebor@redhat.com>
19154         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
19156 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
19158         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19159         OPTION_MASK_P9_DFORM.
19161         * config/rs6000/constraints.md (wo constraint): New constraint for
19162         ISA 3.0 (power9).
19164         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
19165         for wo constraint.
19166         (rs6000_init_hard_regno_mode_ok): Likewise.
19168         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
19169         wo constraint.
19171         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
19172         expanders not to have constraints.  Add support for ISA 3.0 xxperm
19173         instruction.  Add support for fusing xxlor with xxperm.
19174         (altivec_vperm_<mode>_internal): Likewise.
19175         (altivec_vperm_v8hiv16qi): Likewise.
19176         (altivec_vperm_<mode>v16q): Likewise.
19177         (altivec_vperm_<mode>_uns): Likewise.
19178         (vperm_v8hiv4si): Likewise.
19179         (vperm_v16qiv8hi): Likewise.
19181         * doc/md.texi (RS/6000 constraints): Document wo constraint.
19183 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
19185         Update copyright years.
19187         * gcc.c (process_command): Update copyright notice dates.
19188         * gcov-dump.c (print_version): Ditto.
19189         * gcov.c (print_version): Ditto.
19190         * gcov-tool.c (print_version): Ditto.
19191         * gengtype.c (create_file): Ditto.
19192         * doc/cpp.texi: Bump @copying's copyright year.
19193         * doc/cppinternals.texi: Ditto.
19194         * doc/gcc.texi: Ditto.
19195         * doc/gccint.texi: Ditto.
19196         * doc/gcov.texi: Ditto.
19197         * doc/install.texi: Ditto.
19198         * doc/invoke.texi: Ditto.
19200 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19202         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
19203         modes larger than TImode as TImode if NEON is not enabled.
19205 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19207         PR target/69100
19208         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
19209         mode for %f0-%f31 only if TARGET_FPU.
19211 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
19213         PR target/69072
19214         * config/sparc/sparc.c (scan_record_type): Take into account subfields
19215         to compute the PACKED_P predicate.
19216         (function_arg_record_value): Minor tweaks.
19218 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19220         * doc/install.texi (--with-multilib-list): Describe the meaning of the
19221         option for arm*-*-* targets.
19223 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
19225         * doc/extend.texi (Common Function Attributes): Move docs for
19226         MSP430-specific attributes to....
19227         (MSP430 Function Attributes): ...here.  Delete the redundant
19228         entries and copy-edit the remaining text.
19229         (MSP430 Variable Attributes): Use uniform format for index
19230         entries and add a cross-reference to the corresponding function
19231         attribute docs.
19233 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
19235         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
19236         -finite-math typo.
19237         (x86 Options): Likewise.
19239 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19241         PR 1078
19243         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
19244         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
19245         to corresponding attribute.
19247 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
19249         * doc/extend.texi (Common Function Attributes) <noplt>: Move
19250         to correct alphabetization of table.  Copy-edit and correct
19251         markup.
19252         <stack_protect>: Likewise.
19253         <target_clones>: Likewise.
19254         <simd>: Likewise.
19255         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
19256         Correct punctuation.
19257         (Code Gen Options) <-fno-plt>: Copy-edit.
19259 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19261         PR target/68917
19262         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
19263         SI values.  Explicitly convert SI to DI and vice-versa.
19265 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
19267         PR tree-optimization/69070
19268         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
19269         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
19271         PR sanitizer/69055
19272         * ubsan.c (ubsan_instrument_float_cast): Call
19273         initialize_sanitizer_builtins.
19275         PR target/69015
19276         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
19278 Copyright (C) 2016 Free Software Foundation, Inc.
19280 Copying and distribution of this file, with or without modification,
19281 are permitted in any medium without royalty provided the copyright
19282 notice and this notice are preserved.