GCC expands switch statements in a very simplistic way and tries to use a table...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
2
3         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
4         Return a better case_values_threshold when optimizing.
5
6 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
7
8         * config/aarch64/aarch64-simd.md (aarch64_combinez):
9         Add ? to integer variant.
10         (aarch64_combinez_be): Likewise.
11
12 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13
14         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15         instead of x constraint.
16         (vcvtps2ph256<mask_name>): Likewise.
17
18         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
19         alternative.  Formatting fix.
20
21         * config/i386/sse.md
22         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
23         to ...
24         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
25         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
26         maybe_evex prefix instead of vex.
27         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
28         EXT_REX_SSE_REG_P (op0) case in the splitter.
29
30 2016-05-25  Jeff Law  <law@redhat.com>
31
32         PR tree-optimization/71272
33         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
34         Update comments.  Add test for empty path.
35
36 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
37
38         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
39         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
40         special case builtin.
41         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
42         code for ALTIVEC_BUILTIN_VEC_CMPNE.
43         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
44         for __builtin_vec_cmpne.
45
46 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
47
48         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
49         redundant test and bail out if the type of the new operand is not
50         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
51
52 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
53
54         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
55         (x_ix86_target_flags_explicit): Remove.
56         * config/i386/i386.c (ix86_function_specific_save): Do not copy
57         x_ix86_target_flags_explicit.
58         (ix86_function_specific_restore): Ditto.
59
60 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
61             H.J. Lu  <hongjiu.lu@intel.com>
62
63         PR target/70738
64         * common/config/i386/i386-common.c
65         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
66         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
67         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
68         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
69         (-mgeneral-regs-only): Add new option.
70         * config/i386/i386.c (ix86_option_override_internal): Don't enable
71         x87 instructions if only general registers are allowed.
72         (ix86_target_string): Add ix86_flags argument. Handle additional
73         flags options through ix86_flags argument.  Update all callers.
74         * doc/invoke.texi: Document -mgeneral-regs-only.
75
76 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
77
78         PR rtl-optimization/66940
79         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
80         decrementing desired_val will not overflow before performing these
81         operations.
82
83 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
84
85         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
86         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
87         * config/i386/i386.c (enum ix86_builtins): Add
88         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
89         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
90         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
91         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
92         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
93         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
94         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
95         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
96         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
97         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
98         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
99         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
100         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
101         __builtin_ia32_cvtps2dq512_mask.
102         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
103         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
104         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
105         * config/i386/sse.md
106         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
107         Rename to ...
108         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
109         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
110         to ...
111         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
112         (avx512f_vec_pack_sfix_v8df): New define_expand.
113         (avx512f_roundpd512): Rename to ...
114         (avx512f_round<castmode>512): ... this.  Change iterator.
115         (avx512f_roundps512_sfix): New define_expand.
116         (round<mode>2_sfix): Change iterator.
117
118 2016-05-25  Nick Clifton  <nickc@redhat.com>
119
120         * config/msp430/msp430.c (msp430_attr): Produce an error if a
121         static interrupt handler is detected.
122         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
123         default linker script.
124         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
125         the low part of a symbolic pointer.
126
127 2016-05-25  Richard Biener  <rguenther@suse.de>
128
129         PR tree-optimization/71261
130         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
131         interesting stmt instead of immediate uses when looking
132         for the use operand to replace.
133
134 2016-05-25  Martin Liska  <mliska@suse.cz>
135
136         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
137
138 2016-05-25  Richard Biener  <rguenther@suse.de>
139
140         PR tree-optimization/71264
141         * tree-vect-stmts.c (vect_init_vector): Properly deal with
142         vector type val.
143
144 2016-05-25  Martin Liska  <mliska@suse.cz>
145
146         PR tree-optimization/71239
147         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
148         if DECL_SIZE is NULL.
149
150 2016-05-25  Richard Biener  <rguenther@suse.de>
151
152         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
153         * tree-if-conv.c (pass_data_if_conversion): Use it.
154
155 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
156
157         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
158         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
159         * varpool.c (varpool_node::get_availability): Likewise.
160
161 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
162
163         * config/rs6000/altivec.md (VNEG iterator): New iterator for
164         VNEGW/VNEGD instructions.
165         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
166         (neg<mode>2): Add expander for V2DImode added in ISA 2.06, and
167         support for ISA 3.0 VNEGW/VNEGD instructions.
168
169 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
170
171         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
172         pointers inside OACC_DATA regions.
173         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
174         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
175         (gimplify_adjust_omp_clauses): Fix typo in comment.
176
177 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
178
179         * config/rs6000/altivec.md (VParity): New mode iterator for vector
180         parity built-in functions.
181         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
182         zeros.
183         (p9v_parity<mode>2): Likewise.
184         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
185         parity.
186         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
187         (parity<mode>2): ISA 3.0 expander for vector parity.
188         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
189         power9 built-ins.
190         (BU_P9_64BIT_MISC_0): Likewise.
191         (BU_P9_MISC_0): Likewise.
192         (BU_P9V_AV_1): Likewise.
193         (BU_P9V_AV_2): Likewise.
194         (BU_P9V_AV_3): Likewise.
195         (BU_P9V_AV_P): Likewise.
196         (BU_P9V_VSX_1): Likewise.
197         (BU_P9V_OVERLOAD_1): Likewise.
198         (BU_P9V_OVERLOAD_2): Likewise.
199         (BU_P9V_OVERLOAD_3): Likewise.
200         (VCTZB): Add vector count trailing zeros support.
201         (VCTZH): Likewise.
202         (VCTZW): Likewise.
203         (VCTZD): Likewise.
204         (VPRTYBD): Add vector parity support.
205         (VPRTYBQ): Likewise.
206         (VPRTYBW): Likewise.
207         (VCTZ): Add overloaded vector count trailing zeros support.
208         (VPRTYB): Add overloaded vector parity support.
209         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
210         overloaded vector count trailing zeros and parity instructions.
211         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
212         vector parity support.
213         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
214         trailing zeros support.
215         (vec_cntlz): Likewise.
216         (vec_vctzb): Likewise.
217         (vec_vctzd): Likewise.
218         (vec_vctzh): Likewise.
219         (vec_vctzw): Likewise.
220         (vec_vprtyb): Add ISA 3.0 vector parity support.
221         (vec_vprtybd): Likewise.
222         (vec_vprtybw): Likewise.
223         (vec_vprtybq): Likewise.
224         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
225         the ISA 3.0 vector count trailing zeros and vector parity built-in
226         functions.
227
228 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
229
230         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
231         when there is stmt_to_insert.
232
233 2016-05-24  Martin Sebor  <msebor@redhat.com>
234
235         PR c++/71147
236         * gcc/tree.h (complete_or_array_type_p): New inline function.
237
238 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
239
240         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
241         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
242         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
243
244         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
245         Limit 1st alternative to noavx isa, split 2nd alternative into one
246         noavx and one avx alternative, use *x and Bm in the former and
247         x and m in the latter.
248
249         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
250         of sse4 for the first alternative, drop %v from the template
251         and d operand modifier.  Split second alternative into one sse4_noavx
252         and one avx alternative, use *x instead of *v in the former and v
253         instead of *v in the latter.
254         (*sse4_1_extractps): Use noavx isa instead of * for the first
255         alternative, drop %v from the template.  Split second alternative into
256         one noavx and one avx alternative, use *x instead of *v in the
257         former and v instead of *v in the latter.
258         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
259         with noavx and the last one with avx.
260         (sse4_1_phminposuw): Guard first alternative with noavx isa,
261         split the second one into one noavx and one avx alternative,
262         use *x and Bm in the former and x and m in the latter one.
263         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
264         alternatives.
265
266         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
267         first two alternatives to noavx, use *x instead of *v in the second
268         one, add avx alternative without *.
269         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
270         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
271         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
272
273 2016-05-24  Jeff Law  <law@redhat.com>
274
275         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
276         New function, extracted from...
277         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
278         Allow simple copies and constant initializations in the SSA chain.
279
280 2016-05-24  Marek Polacek  <polacek@redhat.com>
281
282         PR c/71249
283         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
284         scope.
285
286 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
287
288         PR c++/71257
289         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
290         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
291         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
292         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
293         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
294
295 2016-05-24  Richard Biener  <rguenther@suse.de>
296
297         PR tree-optimization/71240
298         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
299         has integral type.
300
301 2016-05-24  Richard Biener  <rguenther@suse.de>
302
303         PR tree-optimization/71230
304         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
305
306 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
307
308         * tree-vectorizer.h (vectorizable_comparison): Delete.
309         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
310         PURE_SLP_STMT check.
311         * tree-vect-stmts.c (vectorizable_call): Likewise.
312         (vectorizable_simd_clone_call): Likewise.
313         (vectorizable_conversion): Likewise.
314         (vectorizable_assignment): Likewise.
315         (vectorizable_shift): Likewise.
316         (vectorizable_operation): Likewise.
317         (vectorizable_load): Likewise.
318         (vectorizable_condition): Likewise.
319         (vectorizable_store): Likewise.  Assert that we don't have
320         hybrid SLP.
321         (vectorizable_comparison): Make static.  Remove redundant
322         PURE_SLP_STMT check.
323         (vect_transform_stmt): Assert that we always have an slp_node
324         if PURE_SLP_STMT.
325
326 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
327
328         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
329         operands[2] against 1 with comparison against CONST1_RTX.
330         (<shift>di3_neon): Likewise.
331         * config/arm/predicates.md (const0_operand): Replace with comparison
332         against CONST0_RTX.
333
334 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
335
336         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
337         operands[2] against 1 with comparison against CONST1_RTX.
338         (ashrdi3): Likewise.
339         (lshrdi3): Likewise.
340         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
341         UINTVAL.
342         (ashrsi3): Likewise.
343         (lshrsi3): Likewise.
344         (rotrsi3): Likewise.
345         (define_split above *compareqi_eq0): Likewise.
346         (define_split above "prologue"): Likewise.
347         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
348         * config/arm/predicates.md (shift_operator): Likewise.
349         (shift_nomul_operator): Likewise.
350         (sat_shift_operator): Likewise.
351         (thumb1_cmp_operand): Likewise.
352         (const_neon_scalar_shift_amount_operand): Replace manual range
353         check with IN_RANGE.
354         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
355         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
356
357 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
358
359         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
360         with HOST_WIDE_INT_1.
361         (insv): Likewise.
362         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
363         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
364         (arm_canonicalize_comparison): Likewise.
365         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
366         HOST_WIDE_INT_1.
367         (thumb1_size_rtx_costs): Likewise.
368         (vfp_const_double_index): Replace cast of 1 to unsigned
369         HOST_WIDE_INT with HOST_WIDE_INT_1U.
370         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
371         HOST_WIDE_INT_1.
372         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
373         HOST_WIDE_INT with HOST_WIDE_INT_1U.
374         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
375         HOST_WIDE_INT with HOST_WIDE_INT_1.
376
377 2016-05-24  Marek Polacek  <polacek@redhat.com>
378
379         * tree-cfg.h (should_remove_lhs_p): New predicate.
380         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
381         * gimplify.c (gimplify_modify_expr): Likewise.
382         * tree-cfg.c (verify_gimple_call): Likewise.
383         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
384         * gimple-fold.c: Include "tree-cfg.h".
385         (gimple_fold_call): Use should_remove_lhs_p.
386
387 2016-05-24  Richard Biener  <rguenther@suse.de>
388
389         PR tree-optimization/71253
390         * cfganal.h (control_dependences): Make robust against edge
391         and BB removal.
392         (control_dependences::control_dependences): Remove edge_list argument.
393         (control_dependences::get_edge): Remove.
394         (control_dependences::get_edge_src): Add.
395         (control_dependences::get_edge_dest): Likewise.
396         (control_dependences::m_el): Make a vector of edge src/dest index.
397         * cfganal.c (control_dependences::find_control_dependence): Adjust.
398         (control_dependences::control_dependences): Likewise.
399         (control_dependences::~control_dependence): Likewise.
400         (control_dependences::get_edge): Remove.
401         (control_dependences::get_edge_src): Add.
402         (control_dependences::get_edge_dest): Likewise.
403         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
404         get_edge_src.
405         (perform_tree_ssa_dce): Adjust.
406         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
407         get_edge_src.
408         (pass_loop_distribution::execute): Adjust.  Do loop destroying
409         conditional on changed.
410
411 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
412
413         PR target/69857
414         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
415         return.  Reindent transformation comment and mention the ARM state
416         behavior.
417
418 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
419
420         PR middle-end/71252
421         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
422         after build_and_add_sum creates new use stmt.
423
424 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
425
426         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
427         load_lanes/grouped_load classification comes first.  Don't check
428         whether the vectorization factor is a multiple of the group size
429         for load_lanes.
430
431 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
432
433         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
434         GROUP_GAP for single-element interleaving.
435         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
436         variable.
437
438 2016-05-24  Richard Biener  <rguenther@suse.de>
439
440         PR middle-end/70434
441         PR c/69504
442         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
443         bases which are accessed with non-invariant indices.
444         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
445         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
446
447 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
448
449         PR middle-end/71170
450         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
451         (add_to_ops_vec): Add stmt_to_insert.
452         (add_repeat_to_ops_vec): Init stmt_to_insert.
453         (insert_stmt_before_use): New.
454         (transform_add_to_multiply): Remove mult_stmt insertion and add it
455         to ops vector.
456         (get_ops): Init stmt_to_insert.
457         (maybe_optimize_range_tests): Likewise.
458         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
459         (rewrite_expr_tree_parallel): Likewise.
460         (reassociate_bb): Likewise.
461
462 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
463
464         PR target/71201
465         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
466         ISA 3.0 xxperm fusion alternative.
467         (altivec_vperm_v8hiv16qi): Likewise.
468         (altivec_vperm_<mode>_uns_internal): Likewise.
469         (vperm_v8hiv4si): Likewise.
470         (vperm_v16qiv8hi): Likewise.
471
472 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
473             Kelvin Nilsen  <kelvin@gcc.gnu.org>
474
475         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
476         vpermr/xxpermr on ISA 3.0.
477         (altivec_expand_vec_perm_le): Likewise.
478         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
479         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
480         ISA 3.0.
481
482 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
483
484         * config/i386/i386.h (IS_STACK_MODE): Enable for
485         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
486         SSE_FLOAT_MODE_P macros.
487         * config/i386/i386.c (ix86_preferred_reload_class): Use
488         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
489         Cleanup regclass processing for CONST_DOUBLE_P.
490         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
491         (ix86_rtx_costs): Remove redundant TARGET_80387 check
492         with IS_STACK_MODE macro.
493         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
494         with TARGET_SSE2.
495         (*movdf_internal): Use IS_STACK_MODE macro.
496         (*movsf_internal): Ditto.
497
498 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
499
500         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
501         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
502
503 2016-05-23  Jeff Law  <law@redhat.com>
504
505         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
506         extracted from ...
507         (fsm_find_control_statement_thread_paths): Call it.
508
509 2016-05-23  Martin Jambor  <mjambor@suse.cz>
510
511         PR ipa/71234
512         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
513         from_global_constant if t is not NULL.
514
515 2016-05-23  Marek Polacek  <polacek@redhat.com>
516
517         PR c/49859
518         * common.opt (Wswitch-unreachable): New option.
519         * doc/invoke.texi: Document -Wswitch-unreachable.
520         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
521         warning.
522
523 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
524
525         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
526         TMR_INDEX is non-NULL.
527
528 2016-05-23  Richard Biener  <rguenther@suse.de>
529
530         PR tree-optimization/71230
531         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
532         (try_special_add_to_ops): ... here.  Always test for single-use.
533
534 2016-05-23  Martin Jambor  <mjambor@suse.cz>
535
536         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
537         default block if a PHI node in the original one would be resized.
538
539 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
540
541         PR tree-optimization/58135
542         * tree-vect-slp.c: When group size is not multiple
543         of vector size, allow splitting of store group at
544         vector boundary.
545
546 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
547
548         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
549
550 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
551
552         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
553         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
554         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
555         of 64x2.
556
557         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
558         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
559         v constraint instead of x and vinserti32x4 insn.
560
561         * config/i386/sse.md (i128vldq): New mode iterator.
562         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
563         avx512dq and avx512vl alternatives.
564
565         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
566         constraint, use maybe_evex prefix instead of vex.
567         (vec_dupv4sf): Use v constraint instead of x for output
568         operand except for noavx alternative, use Yv constraint
569         instead of x for input.  Use maybe_evex prefix instead of vex.
570         (*vec_dupv4si): Likewise.
571         (*vec_dupv2di): Likewise.
572
573 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
574
575         PR middle-end/40921
576         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
577         (linearize_expr_tree): Call try_special_add_to_ops.
578         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
579
580 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
581
582         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
583         to computed stack_usage.
584
585 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
586
587         PR target/71103
588         * config/avr/avr.md (define_expand "mov<mode>"): If the source
589         operand is subreg (symbol_ref) then move the symbol ref to register.
590
591 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
592
593         * tree.c (array_at_struct_end_p): Look through MEM_REF.
594
595 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
596
597         PR middle-end/71179
598         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
599         VECTOR type.
600
601 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
602
603         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
604         ranges by calling get_single_symbol and tidy up.  Look more closely
605         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
606
607 2016-05-20  Jeff Law  <law@redhat.com>
608
609         * bitmap.c (bitmap_find_bit): Remove useless test.
610
611 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
612
613         * function.c (thread_prologue_and_epilogue_insns): Commit the
614         insertion of the epilogue.
615
616 2016-05-20  Martin Jambor  <mjambor@suse.cz>
617
618         PR tree-optimization/70884
619         * tree-sra.c (initialize_constant_pool_replacements): Do not check
620         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
621         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
622         of constant pool data as a reason for scalarization.
623
624 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
625
626         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
627         for naked functions.
628         (thumb1_expand_prologue): Likewise.
629
630 2016-05-20  Nathan Sidwell  <nathan@acm.org>
631
632         * config/nvptx/nptx.c (nvptx_option_override): Only set
633         flag_toplevel_reorder, if not explicitly specified.  Set
634         flag_no_common, unless explicitly specified.
635
636 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
637
638         * calls.c (can_implement_as_sibling_call_p): Mark param
639         reg_parm_stack_space with ATTRIBUTE_UNUSED.
640
641 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
642
643         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
644         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
645         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
646         constants.
647         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
648         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
649         and CASE_CONST_ANY.
650
651 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
652
653         * config/nvptx/nvptx.md (sincossf3): New pattern.
654
655 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
656
657         * calls.c (maybe_complain_about_tail_call): New function.
658         (initialize_argument_information): Call
659         maybe_complain_about_tail_call when clearing *may_tailcall.
660         (can_implement_as_sibling_call_p): Call
661         maybe_complain_about_tail_call when returning false.
662         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
663         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
664         if tail-call optimization fails.
665         * cfgexpand.c (expand_call_stmt): Initialize
666         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
667         * gimple-pretty-print.c (dump_gimple_call): Dump
668         gimple_call_must_tail_p.
669         * gimple.c (gimple_build_call_from_tree): Call
670         gimple_call_set_must_tail with the value of
671         CALL_EXPR_MUST_TAIL_CALL.
672         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
673         (gimple_call_set_must_tail): New function.
674         (gimple_call_must_tail_p): New function.
675         * print-tree.c (print_node): Update printing of TREE_STATIC
676         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
677         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
678         trailing comment listing applicable flags.
679         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
680
681 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
682
683         * calls.c (expand_call): Move "Rest of purposes for tail call
684         optimizations to fail" to...
685         (can_implement_as_sibling_call_p): ...this new function, and
686         split into multiple "if" statements.
687
688 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
689
690         * cfgloop.h (expected_loop_iterations_unbounded,
691         expected_loop_iterations): Unconstify.
692         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
693         profile with known upper bound; return 3 when profile is absent.
694         (expected_loop_iterations): Update.
695
696 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
697
698         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
699         and get_max_loop_iterations_int.
700
701 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
702
703         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
704         realistic upper bounds here.
705
706 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
707
708         PR c++/71210
709         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
710         calls if the LHS is variable length or has addressable type.
711         If targets[0]->decl is a noreturn call with void return type and
712         zero arguments, adjust fntype and remove lhs in that case.
713
714 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
715
716         PR tree-optimization/71079
717         PR tree-optimization/71206
718         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
719
720 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
721
722         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
723         (get_vec_alignment_for_array_decl): Likewise.
724         (get_vec_alignment_for_record_decl): Likewise.
725         (increase_alignment::execute): Move code to find alignment to
726         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
727         (type_align_map): New hash_map.
728
729 2016-05-20  Richard Guenther  <rguenther@suse.de>
730
731         PR tree-optimization/29756
732         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
733         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
734         * fold-const.c (operand_equal_p): Likewise.
735         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
736         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
737         * tree-inline.c (estimate_operator_cost): Likewise.
738         * tree-pretty-print.c (dump_generic_node): Likewise.
739         * tree-ssa-operands.c (get_expr_operands): Likewise.
740         * cfgexpand.c (expand_debug_expr): Likewise.
741         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
742         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
743         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
744         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
745         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
746         (execute_update_addresses_taken): Do it.
747
748 2016-05-20  Richard Biener  <rguenther@suse.de>
749
750         PR tree-optimization/71185
751         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
752         register operations.
753
754 2016-05-20  Richard Biener  <rguenther@suse.de>
755
756         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
757         gimple_seq_add_seq_without_update.
758         (release_bb_predicate): Assert we have no operands to free.
759         (if_convertible_loop_p_1): Calculate post dominators later.
760         Do not free BB predicates here.
761         (combine_blocks): Do not recompute BB predicates.
762         (version_loop_for_if_conversion): Save BB predicates around
763         loop versioning.
764
765 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
766
767         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
768         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
769         code.  Ignore sibcalls on EDGE_IGNORE edges.
770         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
771         on edges for sibcalls that run without prologue.  The rest of the
772         function is combined from...
773         (fix_fake_fallthrough_edge): ... this, and ...
774         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
775         function argument, make it a local variable.
776
777 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
778
779         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
780         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
781         for 32-bit mode and SEH for 64-bit.
782         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
783         TARGET_64BIT_DEFAULT.
784
785 2016-05-19  Ryan Burn  <contact@rnburn.com>
786
787         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
788         * gengtype.c (open_base_files): Add cilk.h to ifiles.
789
790 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
791
792         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
793         force pending loads from memory.
794
795 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
796
797         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
798         (UNSPEC_DARN_32): New unspec constant.
799         (UNSPEC_DARN_RAW): New unspec constant.
800         (darn_32): New instruction.
801         (darn_raw): New instruction.
802         (darn): New instruction.
803         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
804         support and documentation for this macro.
805         (BU_P9_MISC_1): New macro definition.
806         (BU_P9_64BIT_MISC_0): New macro definition.
807         (BU_P9_MISC_0): New macro definition.
808         (darn_32): New builtin definition.
809         (darn_raw): New builtin definition.
810         (darn): New builtin definition.
811         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
812         RS6000_BUILTIN_0 directives to surround each occurrence of
813         #include "rs6000-builtin.def".
814         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
815         RS6000_BTM_64BIT flags to the returned mask, depending on
816         configuration.
817         (def_builtin): Correct an error in the assignments made to the
818         debugging variable attr_string.
819         (rs6000_expand_builtin): Add support for no-operand built-in
820         functions.
821         (builtin_function_type): Remove fatal_error assertion that is no
822         longer valid.
823         (rs6000_common_init_builtins): Add support for no-operand built-in
824         functions.
825         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
826         definition.
827         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
828         definition.
829         (RS6000_BTM_64BIT): New macro definition.
830         * doc/extend.texi: Document __builtin_darn (void),
831         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
832         functions.
833
834 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
835
836         * tree-vect-loop.c (vect_analyze_loop_2): Use also
837         max_loop_iterations_int.
838
839 2016-05-19  Marek Polacek  <polacek@redhat.com>
840
841         PR tree-optimization/71031
842         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
843         condition and adjust the code a bit.
844
845 2016-05-19  Martin Liska  <mliska@suse.cz>
846
847         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
848         auto_vec instead of vec.
849
850 2016-05-19  Martin Liska  <mliska@suse.cz>
851
852         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
853
854 2016-05-19  Martin Liska  <mliska@suse.cz>
855
856         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
857
858 2016-05-19  Martin Liska  <mliska@suse.cz>
859
860         * ipa-pure-const.c (set_function_state): Remove an existing
861         funct_state.
862         (remove_node_data): Do not free it as it's released
863         in set_function_state.
864
865 2016-05-19  Martin Liska  <mliska@suse.cz>
866
867         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
868         bitmap.
869
870 2016-05-19  Martin Liska  <mliska@suse.cz>
871
872         * omp-simd-clone.c (simd_clone_adjust): Release vector.
873
874 2016-05-19  Martin Liska  <mliska@suse.cz>
875
876         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
877         an auto_vec instead of re-creating it.
878
879 2016-05-19  Martin Liska  <mliska@suse.cz>
880
881         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
882         auto_vec instead of vec.
883
884 2016-05-19  Martin Liska  <mliska@suse.cz>
885
886         * lto-section-in.c (lto_get_section_data): Call
887         lto_check_version with additional argument.
888         * lto-streamer.c (lto_check_version): Add new argument.
889         * lto-streamer.h (lto_check_version): Likewise.
890
891 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
892
893         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
894         Don't add cost of inner memory when handling sign-extended loads.
895
896 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
897
898         PR rtl-optimization/71148
899         * cse.c (cse_main): Free dominance info.
900         (rest_of_handle_cse): Don't free dominance info.
901         (rest_of_handle_cse2): Likewise.
902         (rest_of_handle_cse_after_global_opts): Likewise.
903
904 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
905
906         PR target/71056
907         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
908         NULL_TREE early if NEON is not available.  Remove now redundant check
909         in ARM_CHECK_BUILTIN_MODE.
910
911 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
912
913         PR sanitizer/64354
914         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
915         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
916         * doc/cpp.texi: Document new macros.
917
918 2016-05-19 Bin Cheng  <bin.cheng@arm.com>
919
920         PR tree-optimization/69848
921         * tree-vect-loop.c (vectorizable_reduction): Don't factor
922         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
923
924 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
925
926         * function.c (thread_prologue_and_epilogue_insn): Move the
927         "goto epilogue_done" one block later.
928
929 2016-05-19  Richard Biener  <rguenther@suse.de>
930
931         PR tree-optimization/70729
932         * passes.def: Move LIM pass before PRE.  Remove no longer
933         required copyprop and move first DCE out of the loop pipeline.
934
935 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
936
937         PR driver/69265
938         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
939         (OBJS-libcommon-target): ...here.
940         * opts-common.c: Include spellcheck.h.
941         (cmdline_handle_error): Build a vec of valid options and use it
942         to suggest provide hints for misspelled arguments.
943
944 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
945
946         PR c++/71100
947         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
948         lhs if it has TREE_ADDRESSABLE type.
949
950 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
951
952         PR target/71145
953         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
954         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
955
956 2016-05-18  Martin Jambor  <mjambor@suse.cz>
957
958         PR ipa/69708
959         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
960         input for NOP_EXPR pass-through functions.
961         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
962         aggregate global constant VAR_DECLs in constant jump functions.
963
964 2016-05-18  Martin Jambor  <mjambor@suse.cz>
965
966         PR ipa/69708
967         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
968         from TREE_READONLY parameters.
969
970 2016-05-18  Martin Jambor  <mjambor@suse.cz>
971
972         PR ipa/69708
973         * cgraph.h (cgraph_indirect_call_info): New field
974         guaranteed_unmodified.
975         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
976         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
977         appropriate.
978         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
979         pass the parameter value to ipa_find_agg_cst_for_param.
980         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
981         guaranteed_unmodified, store AA results there instead of bailing out
982         if present.
983         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
984         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
985         (find_constructor_constant_at_offset): New function.
986         (ipa_find_agg_cst_from_init): Likewise.
987         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
988         static initializers of contants, report back through a new paameter
989         from_global_constant if that was the case.
990         (try_make_edge_direct_simple_call): Also pass parameter value to
991         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
992         appropriate.
993         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
994         (ipa_read_indirect_edge_info): Likewise.
995         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
996         (ipa_load_from_parm_agg): Likewise.
997
998 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
999
1000         PR rtl-optimization/71150
1001         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
1002         check.
1003
1004 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1005
1006         PR target/70915
1007         * config/rs6000/constraints.md (wE constraint): New constraint
1008         for a vector constant that can be loaded with XXSPLTIB.
1009         (wM constraint): New constraint for a vector constant of a 1's.
1010         (wS constraint): New constraint for a vector constant that can be
1011         loaded with XXSPLTIB and a vector sign extend instruction.
1012         * config/rs6000/predicates.md (xxspltib_constant_split): New
1013         predicates for wE/wS constraints.
1014         (xxspltib_constant_nosplit): Likewise.
1015         (easy_vector_constant): Add support for constants that can be
1016         loaded via XXSPLTIB.
1017         (all_ones_constant): New predicate for vector constant with all
1018         1's set.
1019         (splat_input_operand): Add support for ISA 3.0 word splat operations.
1020         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
1021         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
1022         instruction and possibly with a sign extension.
1023         (output_vec_const_move): Add support for XXSPLTIB. If we are
1024         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
1025         instead of XXLXOR/XXLORC.
1026         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
1027         operations.
1028         (rs6000_legitimize_reload_address): Likewise.
1029         (rs6000_output_move_128bit): Use output_vec_const_move to emit
1030         constants.
1031         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
1032         combine VSX_M and VSX_M2 into one iterator.
1033         (VSX_M2): Likewise.
1034         (VSINT_84): New iterators for loading constants with XXSPLTIB.
1035         (VSINT_842): Likewise.
1036         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
1037         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
1038         XXSPLTIB instruction.
1039         (xxspltib_<mode>_nosplit): Likewise.
1040         (xxspltib_<mode>_split): New insn to load up constants with
1041         XXSPLTIB and a sign extend instruction.
1042         (vsx_mov<mode>): Replace single move that handled all vector types
1043         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
1044         moves (when -mvsx-timode is in effect) into the main vector
1045         moves.  Eliminate separate moves for <VSr> <VSa>, where the
1046         preferred register class (<VSr>) is listed first, and the
1047         secondary register class (<VSa>) is listed second with a '?' to
1048         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
1049         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
1050         that if the register was involved in a slow operation, the
1051         clear/set operation does not wait for the slow operation to
1052         finish.  Adjust the length attributes for 32-bit mode.  Use
1053         rs6000_output_move_128bit and drop the use of the string
1054         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
1055         spacing so that the alternatives and attributes don't generate
1056         long lines, and put things in columns, so that it is easier to
1057         match up the operands and attributes with the insn alternatives.
1058         (vsx_mov<mode>_64bit): Likewise.
1059         (vsx_mov<mode>_32bit): Likewise.
1060         (vsx_movti_64bit): Fold movti into normal vector moves.
1061         (vsx_movti_32bit): Likewise.
1062         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
1063         splat instructions.
1064         (vsx_splat_v4si_internal): Likewise.
1065         (vsx_splat_v4sf_internal): Likewise.
1066         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
1067         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
1068         extend vector elements.
1069         (vsx_sign_extend_hi_<mode>): Likewise.
1070         (vsx_sign_extend_si_v2di): Likewise.
1071         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
1072         declaration.
1073         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
1074         constraints.  Add trailing period to wL documentation.
1075
1076 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
1077
1078         PR middle-end/71020
1079         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
1080         * tree-dfa.c (replace_abnormal_ssa_names): New function.
1081         * tree-call-cdce.c: Include tree-dfa.h.
1082         (can_guard_call_p): New function, extracted from...
1083         (can_use_internal_fn): ...here.
1084         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
1085         and return void.
1086         (shrink_wrap_one_built_in_call): Likewise.
1087         (use_internal_fn): Likewise.
1088         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
1089         and return void.  Call replace_abnormal_ssa_names.
1090         (pass_call_cdce::execute): Check can_guard_call_p during the
1091         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
1092         will always change something.
1093
1094 2016-05-18  Martin Jambor  <mjambor@suse.cz>
1095
1096         PR ipa/70646
1097         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
1098         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
1099
1100 2016-05-18  Martin Jambor  <mjambor@suse.cz>
1101
1102         PR ipa/70646
1103         * ipa-inline.h (condition): New field size.
1104         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
1105         for comaprison and store it into the new condition.
1106         (evaluate_conditions_for_known_args): Use condition size to check
1107         access sizes for all but CHANGED conditions.
1108         (unmodified_parm_1): New parameter size_p, store access size into it.
1109         (unmodified_parm): Likewise.
1110         (unmodified_parm_or_parm_agg_item): Likewise.
1111         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
1112         (set_cond_stmt_execution_predicate): Extract access sizes and store
1113         them to conditions.
1114         (set_switch_stmt_execution_predicate): Likewise.
1115         (will_be_nonconstant_expr_predicate): Likewise.
1116         (will_be_nonconstant_predicate): Likewise.
1117         (inline_read_section): Stream condition size.
1118         (inline_write_summary): Likewise.
1119
1120 2016-05-18  Richard Biener  <rguenther@suse.de>
1121
1122         * tree-ssa-loop-im.c (determine_max_movement): Properly add
1123         condition cost to PHI cost instead of total_cost.
1124
1125 2016-05-18  Martin Liska  <mliska@suse.cz>
1126
1127         PR fortran/70856
1128         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
1129         merged variables.
1130
1131 2016-05-18  Richard Biener  <rguenther@suse.de>
1132
1133         * lto-streamer.h (LTO_major_version): Bump to 6.
1134
1135 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
1136
1137         * function.c (make_split_prologue_seq, make_prologue_seq,
1138         make_epilogue_seq): New functions, factored out from...
1139         (thread_prologue_and_epilogue_insns): Here.
1140
1141 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
1142
1143         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
1144         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
1145         of before.  Add a comment.
1146
1147 2016-05-18 Bin Cheng  <bin.cheng@arm.com>
1148
1149         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
1150         expression pointer, not pointer to the pointer.
1151
1152 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
1153
1154         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
1155         (avx2_pbroadcast<mode>): Add another alternative with v instead
1156         of x constraints in it, using <pbroadcast_evex_isa> isa.
1157         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
1158
1159         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
1160         constraint x instead of v in second alternative, add avx512bw
1161         alternative.
1162
1163         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
1164         constraint x instead of v in second alternative, add avx512bw
1165         alternative.
1166
1167         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
1168         constraint x instead of v in second alternative, add avx512bw
1169         alternative.
1170
1171         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
1172         avx512bw alternative.
1173
1174 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1175
1176         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
1177         array to 128 chars.
1178         (define_insn "*andnottf3"): Ditto.
1179         (define_insn "*<code><mode>3"/any_logic): Ditto.
1180         (define_insn "*<code>tf3"/any_logic): Ditto.
1181         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
1182         operand to block AVX-512VL insn variant emit when it is not enabled.
1183
1184 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1185
1186         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
1187         constraint fot SF mode.
1188
1189 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
1190             Kirill Yukhin  <kirill.yukhin@intel.com>
1191
1192         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
1193         modifiers.
1194         (define_insn "rsqrt14<mode>"): Ditto.
1195         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1196         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
1197         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
1198         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
1199         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
1200         Ditto.
1201         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
1202         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
1203         * config/i386/i386.c (ix86_print_operand): Expand check for size
1204         override codes for Intel syntax.
1205
1206 2016-05-18  Richard Biener  <rguenther@suse.de>
1207
1208         PR tree-optimization/71168
1209         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
1210         initialization earlier.
1211
1212 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
1213
1214         * config/aarch64/aarch64-simd.md
1215         (aarch64_reduc_plus_internal<mode>): Rename to...
1216         (reduc_plus_scal): ...This, and remove previous implementation.
1217
1218 2016-05-18  Richard Biener  <rguenther@suse.de>
1219
1220         * passes.def: Put late dse and cd_dce in canonical order.
1221
1222 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
1223
1224         * ipa-inline-transform.c (preserve_function_body_p): Look for
1225         first non-thunk clone.
1226         (save_function_body): Save into first non-thunk.
1227         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
1228         up call stmt id.
1229         (lto_output_node): Inline thunks don't need body in every
1230         partition.
1231         * lto-streamer-in.c: Do not fixup thunk clones.
1232         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
1233         thunks.
1234         * tree-inline.c (copy_bb): Be prepared for target node to be new after
1235         folding suceeds.
1236
1237 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
1238
1239         PR middle-end/63586
1240         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
1241         (reassociate_bb): Call transform_add_to_multiply.
1242
1243 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
1244
1245         * config/aarch64/aarch64.c (all_extensions): Removed unused
1246         static variable.
1247
1248 2016-05-17  Nathan Sidwell  <nathan@acm.org>
1249
1250         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
1251         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
1252
1253 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
1254
1255         PR tree-optimization/54579
1256         PR middle-end/55299
1257         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
1258
1259 2016-05-17  Marek Polacek  <polacek@redhat.com>
1260
1261         PR ipa/71146
1262         * tree-inline.c (expand_call_inline): Call
1263         maybe_remove_unused_call_args.
1264
1265 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
1266
1267         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
1268         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
1269         * doc/md.texi (fmin@var{m}3): Likewise.
1270
1271 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
1272
1273         * match.pd (X & C): New transformation.
1274
1275 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
1276
1277         * match.pd (~X & Y): New transformation.
1278
1279 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
1280
1281         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
1282         information for new SSA_NAME.
1283         (simplify_conversion_using_ranges): Get range through get_range_info
1284         instead of get_value_range.
1285
1286 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
1287
1288         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
1289         Remove inline assembly.
1290         (vmvn_s16): Likewise.
1291         (vmvn_s32): Likewise.
1292         (vmvn_u8): Likewise.
1293         (vmvn_u16): Likewise.
1294         (vmvn_u32): Likewise.
1295         (vmvnq_s8): Likewise.
1296         (vmvnq_s16): Likewise.
1297         (vmvnq_s32): Likewise.
1298         (vmvnq_u8): Likewise.
1299         (vmvnq_u16): Likewise.
1300         (vmvnq_u32): Likewise.
1301         (vmvn_p8): Likewise.
1302         (vmvnq_p16): Likewise.
1303
1304 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
1305
1306         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
1307         Use builtin.
1308         (vmul_n_s16): Likewise.
1309         (vmul_n_s32): Likewise.
1310         (vmul_n_u16): Likewise.
1311         (vmul_n_u32): Likewise.
1312         (vmulq_n_f32): Likewise.
1313         (vmulq_n_f64): Likewise.
1314         (vmulq_n_s16): Likewise.
1315         (vmulq_n_s32): Likewise.
1316         (vmulq_n_u16): Likewise.
1317         (vmulq_n_u32): Likewise.
1318
1319 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
1320
1321         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
1322         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
1323
1324 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
1325
1326         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
1327         to *aarch64_fma4_elt_from_dup<mode>.
1328         (*aarch64_fnma4_elt_to_128df): Rename to
1329         *aarch64_fnma4_elt_from_dup<mode>.
1330         * config/aarch64/arm_neon.h (vfma_n_f64): New.
1331         (vfms_n_f32): Likewise.
1332         (vfms_n_f64): Likewise.
1333         (vfmsq_n_f32): Likewise.
1334         (vfmsq_n_f64): Likewise.
1335
1336 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
1337
1338         * wide-int.h: Change fixed_wide_int_storage from class to struct.
1339
1340 2016-05-17  Richard Biener  <rguenther@suse.de>
1341
1342         PR tree-optimization/71132
1343         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
1344         Only add control dependences for blocks in the loop.
1345         (build_rdg): Adjust.
1346         (generate_code_for_partition): Return whether loop should
1347         be destroyed and delay that.
1348         (distribute_loop): Likewise.
1349         (pass_loop_distribution::execute): Record loops to be destroyed
1350         and perform delayed destroying of loops.
1351
1352 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1353
1354         PR target/70809
1355         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
1356
1357 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1358
1359         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
1360
1361 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
1362
1363         PR target/71114
1364         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
1365         insertion point for instructions generated by validize_mem.
1366
1367 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1368
1369         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
1370         in brackets.
1371
1372 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
1373
1374         * config/aarch64/aarch64.c
1375         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
1376         rather than a macro.
1377
1378 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
1379
1380         * doc/invoke.texi (AArch64 Options): Various updates.
1381
1382 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1383
1384         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
1385         into instrumentation thunks.
1386         * cif-code.def (CIF_CHKP): New.
1387
1388 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
1389
1390         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
1391
1392 2016-05-16  Martin Jambor  <mjambor@suse.cz>
1393
1394         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
1395         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
1396
1397 2016-05-16  Marek Polacek  <polacek@redhat.com>
1398
1399         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
1400         commentary.
1401
1402 2016-05-16  Martin Jambor  <mjambor@suse.cz>
1403
1404         PR hsa/70857
1405         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
1406         the outlined kernel function.
1407
1408 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
1409
1410         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
1411         (ISA_HAS_DLSA): Ditto.
1412
1413 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
1414
1415         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
1416
1417 2016-05-16  Nathan Sidwell  <nathan@acm.org>
1418
1419         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
1420         (nvptx_name_replacement): Restore.  Add comment.
1421         (write_fn_proto, write_fn_proto_from_insn,
1422         nvptx_output_call_insn): Restore
1423         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
1424
1425 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
1426
1427         * config/aarch64/aarch64.md
1428         (add<mode>3_compareC_cconly_imm): Remove use of %w.
1429         (add<mode>3_compareC_imm): Likewise.
1430         (<optab>si3_uxtw): Split into register and immediate variants.
1431         (andsi3_compare0_uxtw): Likewise.
1432         (and<mode>3_compare0): Likewise.
1433         (and<mode>3nr_compare0): Likewise.
1434         (stack_protect_test_<mode>): Don't use %x for memory operands.
1435
1436 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
1437
1438         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
1439
1440 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
1441
1442         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1443         Split integer shifts into shift_reg and bfm.
1444         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1445         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1446         (ror<mode>3_insn): Likewise.
1447         (<optab>si3_insn_uxtw): Likewise.
1448         (<optab><mode>3_insn): Change to rotate_imm.
1449         (extr<mode>5_insn_alt): Likewise.
1450         (extrsi5_insn_uxtw): Likewise.
1451         (extrsi5_insn_uxtw_alt): Likewise.
1452
1453 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1454
1455         * doc/tm.texi: Regenerate.
1456         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
1457         (TARGET_INVALID_RETURN_TYPE): Remove.
1458         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
1459         TARGET_INVALID_RETURN_TYPE.
1460         * target.def (invalid_parameter_type): Remove.
1461         (invalid_return_type): Remove.
1462
1463 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1464
1465         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
1466         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
1467         calls from thunk.
1468         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
1469         gimple body.
1470         (preserve_function_body_p): No need to preserve function body
1471         * cif-codes.def (CIF_THUNK): Remove.
1472         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
1473
1474 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1475
1476         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
1477
1478 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1479
1480         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
1481         for thunks.
1482
1483 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1484
1485         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
1486         (inline_small_functions): Do not look for function symbol when
1487         resetting caches.
1488
1489 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
1490
1491         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
1492         of inline thunks
1493
1494 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1495             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1496             Jiong Wang  <jiong.wang@arm.com>
1497
1498         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1499         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
1500         Define __ARM_FP16_ARGS when appropriate.
1501         * config/arm/arm.c (arm_invalid_parameter_type): Remove
1502         declaration.
1503         (arm_invalid_return_type): Likewise.
1504         (TARGET_INVALID_PARAMETER_TYPE): Remove.
1505         (TARGET_INVALID_RETURN_TYPE): Remove.
1506         (aapcs_vfp_sub_candidate): Allow HFmode.
1507         (aapcs_vfp_allocate): Add comment.  Support HFmode.
1508         (aapcs_vfp_allocate_return_reg): Likewise.
1509         (struct aapcs_cp_arg_layout): Slightly reword comments for
1510         is_return_candidate and allocate_return_reg.
1511         (output_mov_vfp): Update assert.
1512         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
1513         condition.
1514         (arm_invalid_parameter_type): Remove.
1515         (amr_invalid_return_type): Remove.
1516         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
1517         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
1518         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
1519
1520 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
1521
1522         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
1523         * config/aarch64/arch64-protos.h
1524         (aarch64_legitimize_reload_address): Remove.
1525         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
1526         Remove.
1527
1528 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
1529
1530         * configure.ac: Add ACX_NONCANONICAL_HOST.
1531         * configure: Regenerate.
1532         * Makefile.in: Set host_noncanonical.
1533
1534 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
1535
1536         PR target/71097
1537         * config/i386/i386.md (*movtf_internal): Before register allocation,
1538         do not allow FP constants for CM_MEDIUM memory model, allow only
1539         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
1540         (*movxf_internal): Ditto.
1541         (*movdf_internal): Ditto.
1542         (*movsf_internal): Ditto.
1543
1544 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1545
1546         PR rtl-optimization/67483
1547         * combine.c (make_compound_operation): Don't call extract_left_shift
1548         with negative shift amounts.
1549
1550 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
1551
1552         PR bootstrap/71071
1553         * fold-const.c (fold_checksum_tree): Allow modification
1554         of TYPE_ALIAS_SET during folding.
1555
1556         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
1557         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
1558         (ix86_split_to_parts): Likewise.  Fix up formatting.
1559
1560 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1561
1562         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
1563         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
1564         printf format.
1565
1566 2016-05-13  Nathan Sidwell  <nathan@acm.org>
1567
1568         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
1569         (nvptx_name_replacement): Delete.
1570         (write_fn_proto, write_fn_proto_from_insn,
1571         nvptx_output_call_insn): Remove nvptx_name_replacement call.
1572         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
1573         * langhooks.c (add_builtin_funcction_common): Call
1574         targetm.mangle_decl_assembler_name.
1575
1576         * config/nvptx/nvptx.c (write_fn_proto): Handle
1577         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
1578
1579 2016-05-13  Martin Liska  <mliska@suse.cz>
1580
1581         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
1582         and PRIu64 in printf format.
1583
1584 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1585
1586         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
1587         comment.
1588
1589 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1590
1591         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1592         Change --param max-completely-peeled-times to
1593         --param max-completely-peel-times in dump file printing.
1594
1595 2016-05-13  Richard Biener  <rguenther@suse.de>
1596
1597         PR tree-optimization/42587
1598         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
1599         (find_bswap_or_nop_1): Likewise.
1600         (bswap_replace): Likewise.
1601
1602 2016-05-13  Martin Liska  <mliska@suse.cz>
1603
1604         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
1605         Initialize a variable with default value.
1606
1607 2016-05-13  Martin Liska  <mliska@suse.cz>
1608
1609         * doc/invoke.texi: Enhance explanation of error recovery
1610         of sanitizers.
1611
1612 2016-05-13  Martin Liska  <mliska@suse.cz>
1613
1614         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
1615         (struct cost_pair): Change inv_expr_id (int) to inv_expr
1616         (iv_inv_expr_ent *).
1617         (struct iv_inv_expr_ent): Comment struct fields.
1618         (sort_iv_inv_expr_ent): New function.
1619         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
1620         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
1621         a hash_map between iv_inv_expr_ent and number of usages.
1622         (niter_for_exit): Fix coding style.
1623         (tree_ssa_iv_optimize_init): Use renamed variable.
1624         (determine_base_object): Fix coding style.
1625         (alloc_iv): Likewise.
1626         (find_interesting_uses_outside): Likewise.
1627         (add_candidate_1): Likewise.
1628         (add_standard_iv_candidates): Likewise.
1629         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
1630         (prepare_decl_rtl): Fix coding style.
1631         (get_address_cost): Likewise.
1632         (get_shiftadd_cost): Likewise.
1633         (force_expr_to_var_cost): Likewise.
1634         (compare_aff_trees): Likewise.
1635         (get_expr_id): Restructure the function.
1636         (get_loop_invariant_expr_id): Renamed to
1637         get_loop_invariant_expr.
1638         (get_computation_cost_at): Replace usage of inv_expr_id with
1639         inv_expr.
1640         (get_computation_cost): Likewise.
1641         (determine_group_iv_cost_generic): Likewise.
1642         (determine_group_iv_cost_address): Likewise.
1643         (iv_period): Fix coding style.
1644         (iv_elimination_compare_lt): Likewise.
1645         (may_eliminate_iv): Likewise.
1646         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
1647         inv_expr.
1648         (determine_group_iv_costs): Dump invariant expressions.
1649         (iv_ca_recount_cost): Use the newly added hash_map.
1650         (iv_ca_set_remove_invariants): Fix coding style.
1651         (iv_ca_set_add_invariants): Fix coding style.
1652         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
1653         invariants.
1654         (iv_ca_set_cp): Likewise.
1655         (iv_ca_new): Initialize the newly added hash_map and remove
1656         initialization of fields.
1657         (iv_ca_free): Delete the hash_map.
1658         (iv_ca_dump): Dump invariant expressions.
1659         (iv_ca_extend): Fix coding style.
1660         (try_add_cand_for): Likewise.
1661         (create_new_ivs): Dump information about # of avg iterations and
1662         # of used invariant expressions.
1663         (rewrite_use_compare): Fix coding style.
1664         (free_loop_data): Set default value for max_inv_expr_id.
1665
1666 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1667
1668         * cse.c (rest_of_handle_cse): Use cleanup_cfg
1669         returned value cse_cfg_altered computation.
1670         (rest_of_handle_cse2): Likewise.
1671         (rest_of_handle_cse_after_global_opts): Likewise.
1672
1673 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1674
1675         PR target/53440
1676         * config/arm/arm.c (arm32_output_mi_thunk): New.
1677         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
1678         to split Thumb1 vs TARGET_32BIT functionality.
1679         (arm_thumb1_mi_thunk): New.
1680
1681 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1682
1683         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
1684         to true.
1685
1686 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1687
1688         PR target/71080
1689         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
1690
1691 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1692
1693         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
1694         (expand_builtin_trap): Emit a regular call.
1695         (set_builtin_user_assembler_name): Remove obsolete cases.
1696         * dse.c (scan_insn): Adjust.
1697         * except.c: Include calls.h.
1698         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
1699         emit a regular call to setjmp.
1700         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
1701         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
1702         (emit_block_move_via_libcall): Delete.
1703         (block_move_fn): Delete.
1704         (init_block_move_fn): Likewise.
1705         (emit_block_move_libcall_fn): Likewise.
1706         (emit_block_op_via_libcall): New function.
1707         (set_storage_via_libcall): Tidy up and use memset builtin.
1708         (block_clear_fn): Delete.
1709         (init_block_clear_fn): Likewise.
1710         (clear_storage_libcall_fn): Likewise.
1711         (expand_assignment): Call emit_block_move_via_libcall.
1712         Do not include gt-expr.h.
1713         * expr.h (emit_block_op_via_libcall): Declare.
1714         (emit_block_copy_via_libcall): New inline function.
1715         (emit_block_move_via_libcall): Likewise.
1716         (emit_block_comp_via_libcall): Likewise.
1717         (block_clear_fn): Delete.
1718         (init_block_move_fn): Likewise.
1719         (init_block_clear_fn): Likewise.
1720         (emit_block_move_via_libcall): Likewise.
1721         (set_storage_via_libcall): Add default parameter value.
1722         * libfuncs.h (enum libfunc_index): Remove obsolete values.
1723         (abort_libfunc): Delete.
1724         (memcpy_libfunc): Likewise.
1725         (memmove_libfunc): Likewise.
1726         (memcmp_libfunc): Likewise.
1727         (memset_libfunc): Likewise.
1728         (setbits_libfunc): Likewise.
1729         (setjmp_libfunc): Likewise.
1730         (longjmp_libfunc): Likewise.
1731         (profile_function_entry_libfunc): Likewise.
1732         (profile_function_exit_libfunc): Likewise.
1733         (gcov_flush_libfunc): Likewise.
1734         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
1735         and DECL_VISIBILITY on the declaration.
1736         (init_optabs): Do not initialize obsolete libfuncs.
1737         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
1738         * tree-core.h (ECF_RET1): Define.
1739         (ECF_TM_PURE): Adjust.
1740         (ECF_TM_BUILTIN): Likewise.
1741         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
1742         (build_common_builtin_nodes): Initialize abort builtin.
1743         Add ECF_RET1 on memcpy, memmove and memset builtins.
1744         Pass final flags for alloca and alloca_with_align builtins.
1745         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
1746         obsolete builtins.
1747         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
1748         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
1749         set_storage_via_libcall and call emit_block_copy_via_libcall.
1750
1751 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
1752
1753         * config/i386/i386.md (*call_got_x32): Change operand 0 to
1754         DImode before it is passed to ix86_output_call_operand.
1755         (*call_value_got_x32): Ditto for operand 1.
1756
1757 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
1758
1759         PR rtl-optimization/70904
1760         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
1761         reload for wide mode.
1762
1763 2016-05-12  Marek Polacek  <polacek@redhat.com>
1764
1765         PR c/70756
1766         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
1767         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
1768         * langhooks.h (incomplete_type_error): Likewise.
1769         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
1770         parameter, pass it down to incomplete_type_error.
1771         * tree.h (size_in_bytes): New inline overload.
1772         (size_in_bytes_loc): Renamed from size_in_bytes.
1773
1774 2016-05-12  Richard Biener  <rguenther@suse.de>
1775
1776         PR tree-optimization/71059
1777         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
1778         nary before looking up or entering the expression into the VN
1779         hashes.
1780         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
1781         Make sure to re-use NARYs without result as inserted by
1782         phi-translation.
1783
1784 2016-05-12  Richard Biener  <rguenther@suse.de>
1785
1786         PR tree-optimization/71062
1787         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
1788         field.
1789         * tree-ssa-structalias.c (set_uids_in_ptset): Set
1790         vars_contains_restrict if the var is a restrict tag.
1791         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
1792         do not disambiguate pointers against it.
1793         (dump_points_to_solution): Re-structure and adjust for new
1794         vars_contains_restrict flag.
1795         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
1796
1797 2016-05-12  Martin Liska  <mliska@suse.cz>
1798
1799         * doc/invoke.texi: Explain connection between
1800         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
1801
1802 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
1803
1804         PR tree-optimization/71006
1805         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1806         consider COND_EXPR as a mask producer.
1807
1808 2016-05-12  Marek Polacek  <polacek@redhat.com>
1809
1810         PR driver/71063
1811         * opts.c (common_handle_option): Detect missing argument for --help^.
1812
1813 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1814
1815         PR target/70830
1816         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
1817         when popping the PC and within an interrupt handler routine.
1818         Add missing tab to output of "ldmfd".
1819         (output_return_instruction): Output LDMFD with SP update rather
1820         than POP when returning from interrupt handler.
1821
1822 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
1823
1824         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
1825         TARGET_64BIT && TARGET_AVX512DQ.
1826         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
1827         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
1828         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
1829         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
1830         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
1831         (*vec_extractv4si_zext): Add avx512dq alternative.
1832         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
1833         use v instead of x constraint in other alternatives where possible.
1834
1835         * config/i386/sse.md (sse2_loadld): Use v instead of x
1836         constraint in alternatives 0,1,4.
1837
1838         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
1839         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
1840         v constraints instead of x and <pinsr_evex_isa> isa attribute.
1841
1842         PR target/71019
1843         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
1844         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
1845         is not emitted unless TARGET_AVX512BW.
1846         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
1847         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
1848         for the result operand.
1849
1850         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
1851         constraint instead of x in avx alternatives.  Use maybe_evex instead
1852         of vex prefix.
1853
1854         * config/i386/constraints.md (Yv): New constraint.
1855         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
1856         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
1857         * config/i386/i386.md (avx512fvecmode): New mode attr.
1858         (*pushtf): Use v constraint instead of x.
1859         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
1860         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
1861         (*absneg<mode>2): Use Yv constraint instead of x constraint.
1862         (*absnegtf2_sse): Likewise.
1863         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
1864         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
1865         avx512f alternatives.
1866         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
1867
1868 2016-05-12  Richard Biener  <rguenther@suse.de>
1869
1870         PR tree-optimization/71060
1871         * tree-data-ref.c (initialize_data_dependence_relation): Do not
1872         require exact match of DR_BASE_OBJECT but only matching address and
1873         type.
1874
1875 2016-05-12  Richard Biener  <rguenther@suse.de>
1876
1877         PR tree-optimization/70986
1878         * cfganal.c: Include cfgloop.h.
1879         (dfs_find_deadend): Prefer to take edges exiting loops.
1880
1881 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1882
1883         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
1884         compile and run time.
1885
1886 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
1887
1888         PR c/43651
1889         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
1890
1891 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
1892
1893         * config/i386/i386.c (legitimize_pic_address): Use
1894         copy_to_suggested_reg instead of gen_movsi.
1895
1896 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1897
1898         * config/rs6000/predicates.md (quad_memory_operand): Move most of
1899         the code into quad_address_p and call it to share code with
1900         vsx_quad_dform_memory_operand.
1901         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
1902         d-form support.
1903         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
1904         bit instead of being a separate word.  Split -mpower9-dform into
1905         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
1906         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
1907         for the register class supporting 128-bit quad word memory offsets.
1908         (mode_supports_vsx_dform_quad): Helper function to return if the
1909         register class uses quad word memory offsets.
1910         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
1911         (rs6000_debug_reg_global): Always print if we are using LRA or not.
1912         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
1913         instructions are enabled, set up the appropriate addr_masks for
1914         128-bit types.
1915         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
1916         -mpower9-dform-scalar, instead of -mpower9-dform.
1917         (rs6000_option_override_internal): Split -mpower9-dform into two
1918         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
1919         -mpower9-dform switch sets or clears both.  If we are not using
1920         the LRA register allocator, do not enable -mpower9-dform-vector by
1921         default.  If we are using LRA, enable -mpower9-dform-vector and
1922         -mvsx-timode if it is appropriate.  Issue a warning if either
1923         -mpower9-dform-vector or -mvsx-timode are explicitly used without
1924         enabling LRA.
1925         (quad_address_offset_p): New helper function to return if the
1926         offset is legal for quad word memory instructions.
1927         (quad_address_p): New function to determin if GPR or vector
1928         register quad word memory addresses are legal.
1929         (mem_operand_gpr): Validate quad word address offsets.
1930         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
1931         d-form (register + offset) instructions.
1932         (offsettable_ok_by_alignment): Likewise.
1933         (rs6000_legitimate_offset_address_p): Likewise.
1934         (legitimate_lo_sum_address_p): Likewise.
1935         (rs6000_legitimize_address): Likewise.
1936         (rs6000_legitimize_reload_address): Add more debug statements for
1937         -mdebug=addr.
1938         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
1939         d-form instructions.
1940         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
1941         d-form instructions.  Distinguish different cases in debug
1942         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
1943         d-form instructions.
1944         (rs6000_preferred_reload_class): Likewise.
1945         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
1946         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
1947         of the ISA 2.06 indexed memory instructions.
1948         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
1949         use them to save/restore the saved vector registers instead of
1950         using Altivec instructions.
1951         (rs6000_emit_epilogue): Likewise.
1952         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
1953         (rs6000_opt_masks): Split -mpower9-dform into
1954         -mpower9-dform-scalar and -mpower9-dform-vector.
1955         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
1956         was not selected.
1957         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
1958         ISA 3.0 vector indexed memory instructions, and fold the code into
1959         the normal mov<mode> patterns.
1960         (p9_vecstore_<mode>): Likewise.
1961         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
1962         instructions.
1963         (vsx_movti_64bit): Likewise.
1964         (vsx_movti_32bit): Likewise.
1965         * config/rs6000/constraints.md (wO constraint): New constraint for
1966         ISA 3.0 vector d-form support.
1967         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
1968         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
1969         include -mpower9-dform-vector until we switch over to LRA.
1970         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
1971         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
1972         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
1973         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
1974         for -mpower9-dform and -mlra.
1975         * doc/md.texi (wO constraint): Document wO constraint.
1976
1977 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
1978
1979         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
1980         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
1981         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
1982         Move handling of non-insn arguments inline into the sole user:
1983         (output_trans_func): ...here.
1984         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
1985         in emitted function prototype.
1986         (output_internal_insn_latency_func): Ditto.  Simplify.
1987         (output_internal_maximal_insn_latency_func): Ditto.  Delete
1988         always-unused argument.
1989         (output_insn_latency_func): Ditto.
1990         (output_maximal_insn_latency_func): Ditto.
1991
1992 2016-05-11  Richard Biener  <rguenther@suse.de>
1993
1994         PR tree-optimization/71055
1995         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
1996         sth with precision not equal to access size verify we don't chop
1997         off bits.
1998
1999 2016-05-11  Richard Biener  <rguenther@suse.de>
2000
2001         PR debug/71057
2002         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
2003         (dwarf2out_finish): Move retry_incomplete_types call ...
2004         (dwarf2out_early_finish): ... here.
2005
2006 2016-05-11  Richard Biener  <rguenther@suse.de>
2007
2008         PR middle-end/71002
2009         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
2010         if the langhook insists on it.
2011         * fold-const.c (make_bit_field_ref): Add arg for the original
2012         reference and preserve its alias-set.
2013         (decode_field_reference): Take exp by reference and adjust it
2014         to the original memory reference.
2015         (optimize_bit_field_compare): Adjust callers.
2016         (fold_truth_andor_1): Likewise.
2017         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
2018
2019 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
2020
2021         PR middle-end/70807
2022         * cfgrtl.h (delete_insn_and_edges): Now return bool.
2023         * cfgrtl.c (delete_insn_and_edges): Likewise.
2024         * config/i386/i386.c (convert_scalars_to_vector): Remove
2025         redundant code.
2026         * cse.c (cse_insn): Compute cse_cfg_altered.
2027         (delete_trivially_dead_insns): Likewise.
2028         (cse_cc_succs): Likewise.
2029         (rest_of_handle_cse): Free dominance info if required.
2030         (rest_of_handle_cse2): Likewise.
2031         (rest_of_handle_cse_after_global_opts): Likewise.
2032
2033 2016-05-11  Alan Modra  <amodra@gmail.com>
2034
2035         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
2036         abi_v4_pass_in_fpr): New functions.
2037         (rs6000_function_arg_boundary): Exclude complex IBM long double
2038         from 64-bit alignment when ABI_V4.
2039         (rs6000_function_arg, rs6000_function_arg_advance_1,
2040         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
2041
2042 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
2043
2044         PR rtl-optimization/71028
2045         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
2046         jump with just a return in the fallthrough block if the branch
2047         block contains just a return as well.
2048
2049 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
2050
2051         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
2052         * match.pd ((X & Y) ^ Y): ... this.
2053         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
2054         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
2055
2056 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
2057
2058         * read-md.c (require_char_ws): New function.
2059         (read_string): Simplify using require_char_ws.
2060         (handle_constants): Likewise.
2061         (handle_enum): Likewise.
2062         (handle_file): Likewise.
2063         * read-md.h (require_char_ws): New declaration.
2064         * read-rtl.c (read_conditions): Simplify using require_char_ws.
2065         (read_mapping): Likewise.
2066         (read_rtx_code): Likewise.
2067         (read_nested_rtx): Likewise.
2068
2069 2016-05-10  James Norris  <jnorris@codesourcery.com>
2070
2071         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
2072         if offloading is enabled and -fopenacc or -fopenmp is specified.
2073         (CRTOFFLOADEND): Likewise.
2074         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
2075         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
2076
2077 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
2078
2079         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
2080         gotoff_operand code paths.  Use copy_to_suggested_regs and
2081         expand_simple_binop where appropriate.  Cleanup.
2082
2083 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
2084
2085         PR target/70799
2086         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
2087         integer constants.
2088         (dimode_scalar_chain::vector_const_cost): New.
2089         (dimode_scalar_chain::compute_convert_gain): Handle constants.
2090         (dimode_scalar_chain::convert_op): Likewise.
2091         (dimode_scalar_chain::convert_insn): Likewise.
2092
2093 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
2094
2095         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
2096         unary operation, not a binary one.
2097
2098 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
2099
2100         PR middle-end/70877
2101         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
2102         calls with type casted fndecl.
2103
2104 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
2105
2106         PR tree-optimization/70786
2107         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
2108         * calls.c (initialize_argument_information): Bind bounds
2109         with corresponding args passed by reference.
2110
2111 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
2112
2113         PR target/70927
2114         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
2115         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
2116         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
2117         accordingly.
2118
2119 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2120
2121         PR target/70963
2122         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
2123         code for a zero scale factor.
2124         (vsx_xvcvdpuxds_scale): Likewise.
2125
2126 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
2127
2128         * diagnostic-show-locus.c (layout::layout): Call show_ruler
2129         if show_ruler_p was set on the context.
2130         (layout::show_ruler): New method.
2131         * diagnostic.h (struct diagnostic_context): Add field
2132         "show_ruler_p".
2133
2134 2016-05-10  Richard Biener  <rguenther@suse.de>
2135
2136         PR tree-optimization/71039
2137         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
2138         (chk_uses): New function.
2139         (propagate_with_phi): Verify we can safely replicate the lhs of an
2140         aggregate assignment on all incoming edges.
2141
2142 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
2143
2144         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
2145         Forward declare.
2146         (rx_atomic_sequence): New class.
2147         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
2148         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
2149         non-inline.
2150         (rx_atomic_sequence::rx_atomic_sequence,
2151         rx_atomic_sequence::~rx_atomic_sequence): New functions.
2152         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
2153         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
2154         CTRLREG_INTB): New constants.
2155         (FETCHOP): New code iterator.
2156         (fethcop_name, fetchop_name2): New iterator code attributes.
2157         (QIHI): New mode iterator.
2158         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
2159         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
2160         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
2161
2162 2016-05-10  Martin Liska  <mliska@suse.cz>
2163
2164         * tree-inline.c (remap_dependence_clique): Do not remap
2165         debugging statements.
2166
2167 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2168
2169         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
2170         ("*fixuns_truncdfdi2_z13")
2171         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
2172         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
2173         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
2174
2175 2016-05-10  Richard Biener  <rguenther@suse.de>
2176
2177         PR tree-optimization/70497
2178         PR tree-optimization/28367
2179         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
2180         split out from ...
2181         (visit_reference_op_load): ... here.
2182         (vn_reference_lookup_3): Use it to handle subreg-like accesses
2183         with simplified BIT_FIELD_REFs.
2184         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
2185         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
2186         correctly.
2187
2188 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
2189
2190         * dwarf2out.c (add_abstract_origin_attribute): Adjust
2191         documentation comment.  For BLOCK nodes, add a
2192         DW_AT_abstract_origin attribute that points to the DIE generated
2193         for the origin BLOCK.
2194         (gen_lexical_block_die): Call add_abstract_origin_attribute for
2195         blocks from inlined functions.
2196
2197 2016-05-10  Alan Modra  <amodra@gmail.com>
2198
2199         PR target/70947
2200         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
2201         regrename modifying insns saving lr before __morestack call.
2202         * config/rs6000/rs6000.md (split_stack_return): Similarly for
2203         insns restoring lr after __morestack call.
2204
2205 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
2206
2207         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
2208         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
2209         expanders.
2210         * config/i386/sse.md (vec_interleave_high<mode>,
2211         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
2212         <avx512>_vpermt2var<mode>3_maskz): Likewise.
2213
2214 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2215
2216         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
2217         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
2218         parallel reassociation for power8 and forward.
2219
2220 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
2221
2222         * config/i386/i386.md (absneg splitters with general regs): Use
2223         general_reg_operand predicate.
2224         (btsq peephole2): Use x86_64_immediate_operand to check if new
2225         value is suitable for immediate operand.  Generate emitted insn
2226         using RTL expressions.
2227         (btcq peephole2): Ditto.
2228         (btrq peephole2): Ditto.  Generate correct immediate operand
2229         for AND masking.
2230
2231 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
2232
2233         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
2234         bitpos.
2235
2236 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
2237
2238         * tree-affine.c (wide_int_constant_multiple_p): Add missing
2239         pointer dereference.
2240
2241 2016-05-09  Richard Biener  <rguenther@suse.de>
2242
2243         PR tree-optimization/70985
2244         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
2245         op0 isn't a gimple register.
2246
2247 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
2248
2249         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
2250         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
2251         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
2252         (i6400_fpu_mult): New cpu units.
2253         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
2254         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
2255         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
2256         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
2257         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
2258         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
2259         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
2260         (i6400_msa_long_float4, i6400_msa_long_float5)
2261         (i6400_msa_long_float8, i6400_msa_fdiv_df)
2262         (i6400_msa_fdiv_sf): New reservations.
2263         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
2264         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
2265         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
2266         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
2267         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
2268         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
2269         (msa_short_cmp, msa_short_float2, msa_short_logic3)
2270         (msa_short_store4, msa_long_load, msa_short_store)
2271         (msa_long_logic, msa_long_float2, msa_long_float4)
2272         (msa_long_float5, msa_long_float8, msa_long_mult)
2273         (msa_long_fdiv, msa_long_div): New reservations.
2274
2275 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
2276             Sameera Deshpande  <sameera.deshpande@imgtec.com>
2277             Matthew Fortune  <matthew.fortune@imgtec.com>
2278             Graham Stott  <graham.stott@imgtec.com>
2279             Chao-ying Fu  <chao-ying.fu@imgtec.com>
2280
2281         * config.gcc: Add MSA header file for mips*-*-* target.
2282         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
2283         (Ubv8i, Urv8):  New constraints.
2284         * config/mips/mips-ftypes.def: Add function types for MSA
2285         builtins.
2286         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
2287         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
2288         * config/mips/mips-msa.md: New file.
2289         * config/mips/mips-protos.h
2290         (mips_split_128bit_const_insns): New prototype.
2291         (mips_msa_idiv_insns): Likewise.
2292         (mips_split_128bit_move): Likewise.
2293         (mips_split_128bit_move_p): Likewise.
2294         (mips_split_msa_copy_d): Likewise.
2295         (mips_split_msa_insert_d): Likewise.
2296         (mips_split_msa_fill_d): Likewise.
2297         (mips_expand_msa_branch): Likewise.
2298         (mips_const_vector_same_val_p): Likewise.
2299         (mips_const_vector_same_bytes_p): Likewise.
2300         (mips_const_vector_same_int_p): Likewise.
2301         (mips_const_vector_shuffle_set_p): Likewise.
2302         (mips_const_vector_bitimm_set_p): Likewise.
2303         (mips_const_vector_bitimm_clr_p): Likewise.
2304         (mips_msa_vec_parallel_const_half): Likewise.
2305         (mips_msa_output_division): Likewise.
2306         (mips_ldst_scaled_shift): Likewise.
2307         (mips_expand_vec_cond_expr): Likewise.
2308         * config/mips/mips.c (enum mips_builtin_type): Add
2309         MIPS_BUILTIN_MSA_TEST_BRANCH.
2310         (mips_gen_const_int_vector_shuffle): New prototype.
2311         (mips_const_vector_bitimm_set_p): New function.
2312         (mips_const_vector_bitimm_clr_p): Likewise.
2313         (mips_const_vector_same_val_p): Likewise.
2314         (mips_const_vector_same_bytes_p): Likewise.
2315         (mips_const_vector_same_int_p): Likewise.
2316         (mips_const_vector_shuffle_set_p): Likewise.
2317         (mips_symbol_insns): Forbid loading symbols via immediate for
2318         MSA.
2319         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
2320         stores.
2321         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
2322         MSA.
2323         (mips_lx_address_p): Add support load indexed address for MSA.
2324         (mips_address_insns): Add calculation of instructions needed for
2325         stores and loads for MSA.
2326         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
2327         CONST_VECTOR for MSA and let it fall through.
2328         (mips_ldst_scaled_shift): New function.
2329         (mips_subword_at_byte): Likewise.
2330         (mips_msa_idiv_insns): Likewise.
2331         (mips_legitimize_move): Validate MSA moves.
2332         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
2333         calculation of costs for MSA division.
2334         (mips_split_move_p): Check if MSA moves need splitting.
2335         (mips_split_move): Split MSA moves if necessary.
2336         (mips_split_128bit_move_p): New function.
2337         (mips_split_128bit_move): Likewise.
2338         (mips_split_msa_copy_d): Likewise.
2339         (mips_split_msa_insert_d): Likewise.
2340         (mips_split_msa_fill_d): Likewise.
2341         (mips_output_move): Handle MSA moves.
2342         (mips_expand_msa_branch): New function.
2343         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
2344         Reinstate 'y' modifier.
2345         (mips_file_start): Add MSA .gnu_attribute.
2346         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
2347         FPRs.
2348         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
2349         (mips_class_max_nregs): Add register size for MSA supported mode.
2350         (mips_cannot_change_mode_class): Allow conversion between MSA
2351         vector modes and TImode.
2352         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
2353         instruction.
2354         (mips_secondary_reload_class): Force MSA loads/stores via memory.
2355         (mips_preferred_simd_mode): Add preffered modes for MSA.
2356         (mips_vector_mode_supported_p): Add MSA supported modes.
2357         (mips_autovectorize_vector_sizes): New function.
2358         (mips_msa_output_division): Likewise.
2359         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
2360         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
2361         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
2362         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
2363         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
2364         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
2365         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
2366         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
2367         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
2368         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
2369         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
2370         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
2371         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
2372         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
2373         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
2374         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
2375         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
2376         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
2377         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
2378         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
2379         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
2380         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
2381         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
2382         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
2383         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
2384         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
2385         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
2386         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
2387         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
2388         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
2389         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
2390         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
2391         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
2392         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
2393         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
2394         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
2395         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
2396         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
2397         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
2398         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
2399         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
2400         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
2401         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
2402         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
2403         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
2404         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
2405         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
2406         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
2407         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
2408         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
2409         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
2410         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
2411         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
2412         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
2413         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
2414         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
2415         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
2416         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
2417         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
2418         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
2419         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
2420         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
2421         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
2422         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
2423         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
2424         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
2425         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
2426         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
2427         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
2428         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
2429         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
2430         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
2431         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
2432         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
2433         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
2434         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
2435         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
2436         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
2437         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
2438         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
2439         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
2440         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
2441         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
2442         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
2443         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
2444         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
2445         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
2446         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
2447         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
2448         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
2449         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
2450         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
2451         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
2452         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
2453         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
2454         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
2455         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
2456         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
2457         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
2458         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
2459         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
2460         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
2461         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
2462         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
2463         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
2464         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
2465         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
2466         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
2467         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
2468         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
2469         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
2470         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
2471         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
2472         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
2473         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
2474         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
2475         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
2476         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
2477         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
2478         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
2479         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
2480         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
2481         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
2482         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
2483         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
2484         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
2485         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
2486         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
2487         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
2488         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
2489         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
2490         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
2491         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
2492         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
2493         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
2494         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
2495         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
2496         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
2497         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
2498         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
2499         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
2500         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
2501         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
2502         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
2503         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
2504         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
2505         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
2506         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
2507         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
2508         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
2509         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
2510         move_v builtins.
2511         (mips_get_builtin_decl_index): New array.
2512         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
2513         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
2514         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
2515         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
2516         (mips_init_builtins): Initialize mips_get_builtin_decl_index
2517         array.
2518         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
2519         hook.
2520         (mips_expand_builtin_insn): Prepare operands for
2521         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
2522         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
2523         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
2524         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
2525         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
2526         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
2527         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
2528         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
2529         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
2530         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
2531         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
2532         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
2533         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
2534         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
2535         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
2536         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
2537         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
2538         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
2539         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
2540         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
2541         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
2542         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
2543         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
2544         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
2545         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
2546         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
2547         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
2548         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
2549         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
2550         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
2551         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
2552         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
2553         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
2554         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
2555         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
2556         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
2557         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
2558         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
2559         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
2560         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
2561         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
2562         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
2563         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
2564         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
2565         These are set implicitly and an error is reported if overridden.
2566         (mips_expand_builtin_msa_test_branch): New function.
2567         (mips_expand_msa_shuffle): Likewise.
2568         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
2569         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
2570         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
2571         (mips_expand_vec_unpack): Add support for MSA.
2572         (mips_expand_vector_init): Likewise.
2573         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
2574         instead of const0_rtx.
2575         (mips_msa_vec_parallel_const_half): New function.
2576         (mips_gen_const_int_vector): Likewise.
2577         (mips_gen_const_int_vector_shuffle): Likewise.
2578         (mips_expand_msa_cmp): Likewise.
2579         (mips_expand_vec_cond_expr): Likewise.
2580         * config/mips/mips.h
2581         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
2582         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
2583         specified.
2584         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
2585         (ISA_HAS_MSA): New macro.
2586         (UNITS_PER_MSA_REG): Likewise.
2587         (BITS_PER_MSA_REG): Likewise.
2588         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
2589         (MSA_REG_FIRST): New macro.
2590         (MSA_REG_LAST): Likewise.
2591         (MSA_REG_NUM): Likewise.
2592         (MSA_REG_P): Likewise.
2593         (MSA_REG_RTX_P): Likewise.
2594         (MSA_SUPPORTED_MODE_P): Likewise.
2595         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
2596         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
2597         * config/mips/mips.md: Include mips-msa.md.
2598         (alu_type): Add simd_add.
2599         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
2600         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
2601         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
2602         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
2603         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
2604         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
2605         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
2606         simd_move, simd_load, simd_store.  Choose "multi" for moves
2607         for "qword_mode".
2608         (qword_mode): New attribute.
2609         (insn_count): Add instruction count for quad moves.
2610         Increase the count for MIPS SIMD division.
2611         (UNITMODE): Add UNITMODEs for vector types.
2612         (addsub): New code iterator.
2613         * config/mips/mips.opt (mmsa): New option.
2614         * config/mips/msa.h: New file.
2615         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
2616         specified.
2617         * config/mips/mti-linux.h: Likewise.
2618         * config/mips/predicates.md
2619         (const_msa_branch_operand): New constraint.
2620         (const_uimm3_operand): Likewise.
2621         (const_uimm4_operand): Likewise.
2622         (const_uimm5_operand): Likewise.
2623         (const_uimm8_operand): Likewise.
2624         (const_imm5_operand): Likewise.
2625         (aq10b_operand): Likewise.
2626         (aq10h_operand): Likewise.
2627         (aq10w_operand): Likewise.
2628         (aq10d_operand): Likewise.
2629         (const_m1_operand): Likewise.
2630         (reg_or_m1_operand): Likewise.
2631         (const_exp_2_operand): Likewise.
2632         (const_exp_4_operand): Likewise.
2633         (const_exp_8_operand): Likewise.
2634         (const_exp_16_operand): Likewise.
2635         (const_vector_same_val_operand): Likewise.
2636         (const_vector_same_simm5_operand): Likewise.
2637         (const_vector_same_uimm5_operand): Likewise.
2638         (const_vector_same_uimm6_operand): Likewise.
2639         (const_vector_same_uimm8_operand): Likewise.
2640         (par_const_vector_shf_set_operand): Likewise.
2641         (reg_or_vector_same_val_operand): Likewise.
2642         (reg_or_vector_same_simm5_operand): Likewise.
2643         (reg_or_vector_same_uimm6_operand): Likewise.
2644         * doc/extend.texi (MIPS SIMD Architecture Functions): New
2645         section.
2646         * doc/invoke.texi (-mmsa): Document new option.
2647
2648 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2649
2650         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
2651         * configure: Regenerate.
2652         * config.in: Regenerate.
2653         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
2654         on -fvtable-verify.
2655         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
2656         (ENDFILE_VTV_SPEC): Define.
2657
2658 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
2659
2660         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
2661         registers in all interrupt handlers if necessary.
2662         (rl78_option_override): Add warning.
2663         (MUST_SAVE_MDUC_REGISTERS): New macro.
2664         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
2665         * config/rl78/rl78.c (check_mduc_usage): New function.
2666         (mduc_regs): New structure to hold MDUC register data.
2667         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
2668         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
2669         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
2670         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
2671         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
2672         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
2673
2674 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
2675
2676         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
2677         (tree-ssa-loop-niter.h): Ditto.
2678         (idx_within_array_bound, ref_within_array_bound): New functions.
2679         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
2680         Factor out check on writable base object to ...
2681         (base_object_writable): ... here.
2682
2683 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2684
2685         * config/arm/arm.md (probe_stack): Add modes to set source
2686         and destination.
2687
2688 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
2689
2690         * regrename.c (base_reg_class_for_rename): New static function.
2691         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
2692
2693 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
2694
2695         * cgraph.c (thunk_adjust): Export.
2696         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
2697         * cgraphunit.c (thunk_adjust): Export.
2698         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
2699         thunks.
2700         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
2701         inlinable.
2702         * tree-inline.c (expand_call_inline): Expand thunks inline.
2703
2704 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
2705
2706         PR target/70998
2707         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
2708         (*sse2_vd_cvtss2sd): Ditto.
2709         * config/i386/i386.md
2710         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
2711         Generate *sse2_vd_cvtsd2ss pattern.
2712         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
2713         Generate *sse2_vd_cvtss2sd pattern.
2714
2715 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
2716
2717         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
2718         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
2719         users.
2720
2721 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
2722
2723         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
2724         * config/sh/sh.c: Define and declare variables on first use throughout
2725         the file.
2726         (current_function_interrupt): Change to bool type.
2727         (frame_insn): Rename to emit_frame_insn and update users.
2728         (push_regs): Use bool for 'interrupt_handler' argument.
2729         (save_schedule_s): Remove.
2730         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
2731         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
2732         targetm.asm_out.unaligned_op.di.
2733         (gen_far_branch): Remove redundant forward declaration.
2734         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
2735         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
2736         (sh_set_return_address, sh_function_ok_for_sibcall,
2737         scavenge_reg): Update comments.
2738         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
2739         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
2740         (sh_attr_renesas_p): Remove unnecessary parentheses.
2741         (branch_dest): Simplify.
2742         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
2743         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
2744         (CUMULATIVE_ARGS): Change macro to typedef.
2745         (current_function_interrupt): Change to bool type.
2746         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
2747         Surround with __cplusplus ifdef.
2748         (sh_compare_op0, sh_compare_op1): Remove.
2749         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
2750
2751 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
2752
2753         * config/arm/arm.md: (arch): Add neon.
2754         (arch_enabled): Return yes for arch neon when TARGET_NEON.
2755         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
2756         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
2757         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
2758         attributes for alt renumbering.  Mark alt 3 as non-predicable.
2759         (thumb2_movdf_vfp): Likewise.
2760
2761 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
2762
2763         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
2764         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
2765         (*andqi_1): Add preferred_for_speed attribute to disparage
2766         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
2767         (*<code>qi_1): Ditto.
2768         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
2769         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
2770         (*ashlqi3_1): Ditto.
2771         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
2772         Add preferred_for_size attribute to disparage alternative 0 and
2773         preferred_for_speed attribute to disparage alternative 1 for
2774         TARGET_PARTIAL_REG_STALL targets.
2775
2776 2016-05-07  Tom de Vries  <tom@codesourcery.com>
2777
2778         PR tree-optimization/70956
2779         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
2780         def.
2781
2782 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
2783
2784         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
2785         * config/sh/sh.c (sh_cbranch_distance): Implement it.
2786         * config/sh/sh.md (branch_zero): Remove define_attr.
2787         (define_delay): Disable delay slot if branch distance is one insn.
2788
2789 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
2790
2791         * config/i386/i386.md (LEAMODE): New mode attribute.
2792         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
2793         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
2794         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
2795         operand 2 predicate.
2796         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
2797         (*lea<mode>_general_3): Ditto.
2798         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
2799
2800 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
2801
2802         * genmddump.c (main): Convert argv from char ** to const char **.
2803
2804 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
2805
2806         * coretypes.h (OVERRIDE): New macro.
2807         (FINAL): New macro.
2808
2809 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
2810
2811         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
2812         allow coalescing if the types are compatible.
2813
2814 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
2815
2816         * pass_manager.h (pass_manager::register_pass_name): New method.
2817         (pass_manager::get_pass_by_name): New method.
2818         (pass_manager::create_pass_tab): New method.
2819         (pass_manager::m_name_to_pass_map): New field.
2820         * passes.c (name_to_pass_map): Delete global in favor of field
2821         "m_name_to_pass_map" of pass_manager.
2822         (register_pass_name): Rename from a function to...
2823         (pass_manager::register_pass_name): ...this method, updating
2824         for renaming of global "name_to_pass_map" to field
2825         "m_name_to_pass_map".
2826         (create_pass_tab): Rename from a function to...
2827         (pass_manager::create_pass_tab): ...this method, updating
2828         for renaming of global "name_to_pass_map" to field.
2829         (get_pass_by_name): Rename from a function to...
2830         (pass_manager::get_pass_by_name): ...this method.
2831         (enable_disable_pass): Convert use of get_pass_by_name to
2832         a method call, locating the pass_manager singleton.
2833
2834 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
2835
2836         * genattr-common.c (main): Convert argv from char ** to const char **.
2837         * genattr.c (main): Likewise.
2838         * genattrtab.c (main): Likewise.
2839         * genautomata.c (initiate_automaton_gen): Likewise.
2840         (main): Likewise.
2841         * gencodes.c (main): Likewise.
2842         * genconditions.c (main): Likewise.
2843         * genconfig.c (main): Likewise.
2844         * genconstants.c (main): Likewise.
2845         * genemit.c (main): Likewise.
2846         * genenums.c (main): Likewise.
2847         * genextract.c (main): Likewise.
2848         * genflags.c (main): Likewise.
2849         * genmddeps.c (main): Likewise.
2850         * genopinit.c (main): Likewise.
2851         * genoutput.c (main): Likewise.
2852         * genpeep.c (main): Likewise.
2853         * genpreds.c (main): Likewise.
2854         * genrecog.c (main): Likewise.
2855         * gensupport.c (init_rtx_reader_args_cb): Likewise.
2856         (init_rtx_reader_args): Likewise.
2857         * gensupport.h (init_rtx_reader_args_cb): Likewise.
2858         (init_rtx_reader_args): Likewise.
2859         * gentarget-def.c (main): Likewise.
2860         * read-md.c (read_md_files): Likewise.
2861         * read-md.h (read_md_files): Likewise.
2862
2863 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
2864
2865         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
2866         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
2867         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
2868         Remove unused predicate.
2869         (register_and_not_fp_reg_operand): Ditto.
2870
2871 2016-05-06  Martin Liska  <mliska@suse.cz>
2872
2873         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
2874         instead of vec as the vector is local to the function.
2875
2876 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
2877
2878         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
2879         avx512bw alternative.
2880
2881         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
2882         before the ashr<mode>3 pattern.
2883
2884         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
2885         v instead of x in vex or maybe_vex alternatives, use
2886         maybe_evex instead of vex in prefix.
2887
2888         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
2889         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
2890         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
2891         in vex or maybe_vex alternatives, use maybe_evex instead of vex
2892         in prefix.
2893
2894         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
2895         v instead of x in vex or maybe_vex alternatives, use
2896         maybe_evex instead of vex in prefix.
2897
2898         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
2899         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
2900         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
2901         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
2902         alternatives, use maybe_evex instead of vex in prefix.
2903
2904         * config/i386/sse.md (vec_interleave_lowv4sf,
2905         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
2906         v instead of x in vex or maybe_vex alternatives, use
2907         maybe_evex instead of vex in prefix.
2908
2909         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
2910         v instead of x in vex or maybe_vex alternatives, use
2911         maybe_evex instead of vex in prefix.
2912
2913         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
2914         v constraint instead of x.
2915
2916 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
2917
2918         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
2919         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
2920         equality first.
2921
2922 2016-05-06  Richard Biener  <rguenther@suse.de>
2923
2924         PR tree-optimization/70948
2925         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2926         Properly clobber all fields of va_list for __builtin_va_start.
2927
2928 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
2929
2930         PR debug/70935
2931         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
2932         loop latch destination.
2933
2934 2016-05-06  Martin Liska  <mliska@suse.cz>
2935
2936         * tree-ssa-uninit.c: Apply manual changes
2937         to the GNU coding style.
2938         (prune_uninit_phi_opnds): Rename from
2939         prune_uninit_phi_opnds_in_unrealizable_paths.
2940
2941 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2942
2943         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
2944         mspace): Remove deprecated options.
2945         * doc/invoke.texi (SH options): Remove -mspace.
2946
2947 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2948
2949         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
2950
2951 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2952
2953         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
2954         corresponding combine split pattern.
2955
2956 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2957
2958         PR target/58219
2959         * config/sh/predicates.md (long_displacement_mem_operand): New.
2960         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
2961         Add movi20, movi20s alternatives.  Adjust length attribute for
2962         alternatives.
2963         (movsi_ie): Allow for any FPU.  Adjust length attribute for
2964         alternatives.
2965         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
2966         attribute for alternatives.
2967         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
2968         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
2969         length attribute for alternatives.
2970
2971 2016-05-06  Richard Biener  <rguenther@suse.de>
2972
2973         PR tree-optimization/70960
2974         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
2975
2976 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2977
2978         PR target/52933
2979         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
2980         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
2981
2982 2016-05-06  Marek Polacek  <polacek@redhat.com>
2983
2984         PR sanitizer/70875
2985         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
2986
2987 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
2988
2989         PR target/54089
2990         * config/sh/sh.md (*rotcr): Add another variant.
2991
2992 2016-05-06  Richard Biener  <rguenther@suse.de>
2993
2994         PR middle-end/70931
2995         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
2996
2997 2016-05-06  Richard Biener  <rguenther@suse.de>
2998
2999         PR middle-end/70941
3000         * fold-const.c (split_tree): Always convert to the original type
3001         before negating.
3002
3003 2016-05-06  Richard Biener  <rguenther@suse.de>
3004
3005         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
3006         (fwprop_addr): Likewise.
3007
3008 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
3009
3010         PR target/70873
3011         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
3012         New prototype.
3013         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
3014         * config/i386/i386.md (push mem splitter): Use find_constant_src in
3015         the splitter condition.
3016         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
3017         the splitter condition.
3018         (FP float_extend load splitter): Ditto.
3019
3020 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
3021
3022         * config/i386/i386.md (peehole2 patterns): Change true_regnum
3023         to REGNO in all peephole2 patterns.
3024         (post-reload splitters): Change true_regnum to REGNO in
3025         post-reload splitters.
3026         (zero_extend splitters): Use general_reg_operand and
3027         nonimmediate_gr_operand predicates.
3028
3029 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
3030
3031         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
3032         v constraint instead of x.
3033
3034 2016-05-05  Alan Modra  <amodra@gmail.com>
3035
3036         PR target/68662
3037         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
3038         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
3039         TARGET_NO_FP_IN_TOC for -mrelocatable.
3040         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
3041         TARGET_RELOCATABLE test.
3042         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3043         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3044         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3045         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3046         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3047         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
3048         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
3049         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3050         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
3051         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3052         Likewise.
3053         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
3054         (rs6000_stack_info): Likewise.
3055         (rs6000_elf_asm_out_constructor): Likewise.
3056         (rs6000_elf_asm_out_destructor): Likewise.
3057         (rs6000_elf_declare_function_name): Likewise.
3058         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
3059         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
3060         Don't define.
3061
3062 2016-05-05  Alan Modra  <amodra@gmail.com>
3063
3064         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
3065
3066 2016-05-05  Alan Modra  <amodra@gmail.com>
3067
3068         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
3069         out-of-line gpr restore for one or two regs if that would add
3070         a save of lr.
3071
3072 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
3073
3074         PR target/70873
3075         * config/i386/i386.md
3076         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
3077         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
3078         as operand 0 predicate.
3079         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
3080         Ditto.
3081         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
3082         Ditto.  Emit the pattern using RTX.
3083
3084         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
3085         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
3086         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
3087         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
3088         Ditto.
3089         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
3090         sse_reg_operand as operand 0 predicate.
3091
3092         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
3093         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
3094         instead of gen_rtx_REG.
3095         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
3096         Ditto.
3097
3098 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3099
3100         * function.c (emit_use_return_register_into_block): Delete.
3101         (gen_return_pattern): Delete.
3102         (emit_return_into_block): Delete.
3103         (active_insn_between): Delete.
3104         (convert_jumps_to_returns): Delete.
3105         (emit_return_for_exit): Delete.
3106         (thread_prologue_and_epilogue_insns): Delete all code dealing with
3107         simple_return for shrink-wrapped blocks.
3108         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
3109         end of blocks that need one.
3110         (get_unconverted_simple_return): Delete.
3111         (convert_to_simple_return): Delete.
3112         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
3113         (convert_to_simple_return): Ditto.
3114
3115 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3116
3117         * cfgcleanup.c (bb_is_just_return): New function.
3118         (try_optimize_cfg): Simplify jumps to return, branches to return,
3119         and branches around return.
3120
3121 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
3122
3123         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
3124         branch to a return.
3125
3126 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
3127
3128         PR c++/70906
3129         PR c++/70933
3130         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
3131         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
3132         assert flags & OEP_HASH_CHECK, instead of asserting it
3133         never happens.  Handle TARGET_EXPR.
3134         * fold-const.c (operand_equal_p): For hash verification,
3135         or in OEP_HASH_CHECK into flags.
3136
3137 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3138
3139         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
3140         comment.
3141         (compute_samebase_partition_bases): Fix typo.
3142
3143 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
3144
3145         * config/i386/sse.md (vec_interleave_highv8sf,
3146         vec_interleave_lowv8sf, vec_interleave_highv4df,
3147         vec_interleave_lowv4df): Remove constraints from expanders.
3148
3149         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
3150
3151 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
3152
3153         * tree-inline.c (expand_call_inline): Fix path dealing with
3154         making lhs of call statement undefined.
3155
3156 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
3157
3158         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
3159         Check availability on NODE, too.
3160         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
3161         (cgraph_node::call_for_symbol_and_aliases): Likewise.
3162         (varpool_node::call_for_symbol_and_aliase): Likewise.
3163         * ipa-pure-const.c (add_new_function): Analyze all bodies.
3164         (propagate_pure_const): Propagate across interposable functions, too.
3165         (skip_function_for_local_pure_const): Do not skip interposable bodies
3166         with aliases.
3167         (pass_local_pure_const::execute): Update.
3168
3169 2016-05-04  Marek Polacek  <polacek@redhat.com>
3170
3171         * doc/invoke.texi: Document -Wdangling-else.
3172
3173 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3174
3175         * config.gcc: Error out when conflicting multilib is detected.  Do not
3176         loop over multilibs since no combination is legal.
3177
3178 2016-05-04  Alan Modra  <amodra@gmail.com>
3179
3180         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
3181         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
3182         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
3183         Align .toc.
3184
3185 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
3186
3187         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
3188         Clean up p5600 comments.
3189
3190 2016-05-04  Richard Biener  <rguenther@suse.de>
3191
3192         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
3193         constructor simplifications.
3194         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
3195
3196 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
3197
3198         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
3199         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
3200         result.set_rtx is null instead of aborting.
3201         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
3202         Always enable.
3203         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
3204         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
3205         *mov<mode>_store_postinc): New patterns.
3206
3207 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
3208
3209         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
3210         as commutative.  Check both conversions are NOP.
3211         ((A & B) OP (C & B)): Remove.
3212
3213 2016-05-04  Alan Modra  <amodra@gmail.com>
3214
3215         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
3216
3217 2016-05-04  Alan Modra  <amodra@gmail.com>
3218
3219         PR target/70866
3220         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
3221         when cr2,3,4 are all fixed regs.
3222
3223 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
3224
3225         PR rtl-optimization/57193
3226         * opts.c (default_options_table): Revert OPT_frename_registers change.
3227         * doc/invoke.texi (-frename-registers, -O2): Likewise.
3228
3229 2016-05-03  Martin Sebor  <msebor@redhat.com>
3230
3231         PR c++/66561
3232         * builtins.c (fold_builtin_FILE): New function.
3233         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
3234         (fold_builtin_0): Call them.
3235         * gimplify.c (gimplify_call_expr): Remove the handling of
3236         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
3237
3238         PR c++/66561
3239         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
3240         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
3241         constants.
3242
3243         PR c++/66639
3244         * doc/extend.texi (Function Names as Strings): Update __func__,
3245         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
3246         constants.
3247
3248 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
3249             Richard Biener  <rguenther@suse.de>
3250
3251         PR tree-optimization/70916
3252         * tree-if-conv.c: Include cfganal.h.
3253         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
3254         and remove_fake_exit_edges around the optimization pass.
3255
3256 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
3257
3258         * cgraph.c (symbol_table::create_edge): Set inline_failed.
3259         (cgraph_edge::make_direct): Likewise.
3260         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
3261         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
3262         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
3263         (CIF_THUNK): New code.
3264         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
3265         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
3266         (compute_inline_parameters): Set inline_failed for thunks.
3267         (inline_analyze_function): Cleanup.
3268         * ipa-inline.c (can_inline_edge_p): Do not deal with
3269         call_stmt_cannot_inline_p.
3270         (can_early_inline_edge_p): Likewise.
3271         (early_inliner): Initialize inline_failed.
3272         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
3273
3274 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
3275
3276         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
3277         from nonimm_ssenomem_operand.
3278         (nonimm_ssenomem_operand): New predicate.
3279         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
3280         as operand 0 predicate.
3281         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
3282         Disable unsupported alternatives using "enabled" attribute.
3283         Use register_ssemem_operand as operand 0 predicate.
3284         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
3285
3286 2016-05-03  Marek Polacek  <polacek@redhat.com>
3287
3288         PR c/70859
3289         * input.c (expansion_point_location): New function.
3290         * input.h (expansion_point_location): Declare.
3291
3292 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3293
3294         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
3295         occurence with frame_offset_ ones.
3296
3297 2016-05-03  Alan Modra  <amodra@gmail.com>
3298
3299         PR rtl-optimization/70890
3300         * ira.c (combine_and_move_insns): When moving def_insn, remove
3301         equivs on use_insn.
3302
3303 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3304
3305         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
3306         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
3307         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
3308         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
3309
3310 2016-05-03  Alan Modra  <amodra@gmail.com>
3311
3312         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
3313         for SAVE_MULTIPLE/STORE_MULTIPLE.
3314
3315 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
3316
3317         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
3318         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
3319
3320 2016-05-03  Richard Biener  <rguenther@suse.de>
3321
3322         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
3323         default true.
3324         (gimplify_arg): Likewise.
3325         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
3326         re-writing the result to a decl if required.
3327         (internal_get_tmp_var): Add allow_ssa parameter
3328         and override into_ssa with it.
3329         (get_formal_tmp_var): Adjust.
3330         (get_initialized_tmp_var): Add allow_ssa parameter.
3331         (gimplify_arg): Add allow_ssa parameter and avoid generating
3332         SSA names for the result false.
3333         (gimplify_call_expr): If the call may return twice do not
3334         gimplify parameters into SSA.
3335         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
3336         (gimplify_modify_expr): Adjust assert.  For noreturn calls
3337         with a SSA name LHS adjust its def.
3338         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
3339         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
3340         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
3341         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
3342         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
3343         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
3344         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
3345         (optimize_target_teams): Do not allow SSA names for clause operands.
3346         (gimplify_expr): Likewise for where we mark the result addressable.
3347         * passes.def (pass_init_datastructures): Remove.
3348         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
3349         (rewrite_stmt): Likewise.
3350         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
3351         (replace_locals_op): Replace SSA names.
3352         (copy_gimple_seq_and_replace_locals): Init src_cfun.
3353         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
3354         * cgraph.c (release_function_body): Free CFG annotations only
3355         when we have a CFG.  Simplify.
3356         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
3357         force_gimple_operand instead of get_initialized_tmp_var.
3358         * tree-pass.h (make_pass_init_datastructures): Remove.
3359         * tree-ssa.c (execute_init_datastructures): Remove.
3360         (pass_data_init_datastructures): Likewise.
3361         (class pass_init_datastructures): Likewise.
3362         (make_pass_init_datastructures): Likewise.
3363         * omp-low.c (create_omp_child_function): Init SSA data structures.
3364         (grid_expand_target_grid_body): Likewise.
3365         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
3366         name before adding it to names_to_release.
3367         (remove_bb): Always release SSA defs.
3368         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
3369         before dereferencing it.
3370         * cgraphunit.c (init_lowered_empty_function): Always
3371         int SSA data structures.
3372         * tree-ssanames.c (release_defs): Remove assert that we are in
3373         SSA form.
3374         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
3375
3376 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
3377             Uros Bizjak  <ubizjak@gmail.com>
3378
3379         PR rtl-optimization/70467
3380         * config/i386/predicates.md (x86_64_hilo_int_operand,
3381         x86_64_hilo_general_operand): New predicates.
3382         * config/i386/constraints.md (Wd): New constraint.
3383         * config/i386/i386.md (mode attr di): Use Wd instead of e.
3384         (general_hilo_operand): New mode attr.
3385         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
3386         instead of <general_operand>.
3387         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
3388         x86_64_hilo_general_operand instead of <general_operand>.
3389
3390 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
3391
3392         PR tree-optimization/70916
3393         * tree-if-conv.c (constant_or_ssa_name): Removed.
3394         (fold_build_cond_expr): Use is_gimple_val instead of
3395         constant_or_ssa_name.
3396
3397         PR tree-optimization/70916
3398         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
3399         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
3400
3401         PR target/49244
3402         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
3403         (optimize_atomic_bit_test_and): New function.
3404         (pass_fold_builtins::execute): Use it.
3405         * optabs.def (atomic_bit_test_and_set_optab,
3406         atomic_bit_test_and_complement_optab,
3407         atomic_bit_test_and_reset_optab): New optabs.
3408         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
3409         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
3410         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
3411         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
3412         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
3413         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
3414         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
3415         * doc/md.texi (atomic_bit_test_and_set@var{mode},
3416         atomic_bit_test_and_complement@var{mode},
3417         atomic_bit_test_and_reset@var{mode}): Document.
3418         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
3419         atomic_bit_test_and_complement<mode>,
3420         atomic_bit_test_and_reset<mode>): New expanders.
3421         (atomic_bit_test_and_set<mode>_1,
3422         atomic_bit_test_and_complement<mode>_1,
3423         atomic_bit_test_and_reset<mode>_1): New insns.
3424
3425 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
3426
3427         PR rtl-optimization/70687
3428         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
3429         instead of unsigned HOST_WIDE_INT.
3430
3431 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
3432
3433         PR rtl-optimization/44281
3434         * hard-reg-set.h (struct target_hard_regs): New field
3435         x_fixed_nonglobal_reg_set.
3436         (fixed_nonglobal_reg_set): New macro.
3437         * reginfo.c (init_reg_sets_1): Initialize it.
3438         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
3439         of fixed_reg_set.
3440         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
3441
3442 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
3443
3444         PR tree-optimization/56541
3445         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
3446         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
3447         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
3448         (any_complicated_phi): new static variable.
3449         (aggressive_if_conv): delete.
3450         (if_convertible_phi_p): support phis with more than two arguments.
3451         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
3452         critical pred edges.
3453         (ifcvt_split_critical_edges): support phis with more than two
3454         arguments by checking new parameter.  only split critical edges
3455         if needed.
3456         (tree_if_conversion): handle simd pragma marked loop using new
3457         local variable aggressive_if_conv.  check any_complicated_phi.
3458
3459 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
3460
3461         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
3462         before using it.
3463
3464 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
3465
3466         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
3467         cbase.
3468
3469 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
3470
3471         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
3472         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
3473         define_insn_and_split.
3474         (mulsi3_i): New define_insn_and_split.
3475         (mulsi3_call): Convert to define_insn.
3476         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
3477         Remove constraints.
3478
3479 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3480
3481         * machmode.h (mode_complex): Add support to give the complex mode
3482         for a given mode.
3483         (GET_MODE_COMPLEX_MODE): Likewise.
3484         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
3485         stored by build_complex_type and gfc_build_complex_type instead of
3486         trying to figure out the appropriate mode based on the size. Raise
3487         an assertion error, if the type was not set.
3488         * genmodes.c (struct mode_data): Add field for the complex type of
3489         the given type.
3490         (blank_mode): Likewise.
3491         (make_complex_modes): Remember the complex mode created in the
3492         base type.
3493         (emit_mode_complex): Write out the mode_complex array to map a
3494         type mode to the complex version.
3495         (emit_insn_modes_c): Likewise.
3496         * tree.c (build_complex_type): Set the complex type to use before
3497         calling layout_type.
3498         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
3499         support for __float128 complex datatypes.
3500         (rs6000_hard_regno_mode_ok): Likewise.
3501         (rs6000_setup_reg_addr_masks): Likewise.
3502         (rs6000_complex_function_value): Likewise.
3503         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
3504         __float128 and __ibm128 complex.
3505         (FLOAT128_IBM_P): Likewise.
3506         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3507         * doc/extend.texi (Additional Floating Types): Document that
3508         -mfloat128 must be used to enable __float128.  Document complex
3509         __float128 and __ibm128 support.
3510
3511 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
3512
3513         PR target/49244
3514         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
3515         char/short arguments promoted to int because of promote_prototypes.
3516
3517 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
3518
3519         * config/i386/predicates.md (register_ssemem_operand): New predicate.
3520         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
3521         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
3522         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
3523         alternatives using "enabled" attribute.  Use register_ssemem_operand
3524         as operand 1 predicate.
3525         (*cmpi<unord>xf_i387): Split XFmode pattern from
3526         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
3527         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
3528         *absneg<mode>2_i387.  Disable unsupported alternatives using
3529         "enabled" attribute.
3530         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
3531
3532 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
3533
3534         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
3535         marker.
3536         (oacc_loop_process): Check mask for loop termination.
3537
3538 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
3539
3540         * cif-code.def (CIF_THUNK): Add.
3541         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
3542         accidental change.
3543
3544 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
3545
3546         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
3547         (dump_inline_summary): Dump it.
3548         (fp_expression_p): New predicate.
3549         (estimate_function_body_sizes): Use it.
3550         (inline_merge_summary): Merge fp_expressions.
3551         (inline_read_section): Read fp_expressions.
3552         (inline_write_summary): Write fp_expressions.
3553         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
3554         codegen boundary if either caller or callee is !fp_expressions.
3555         * ipa-inline.h (inline_summary): Add fp_expressions.
3556         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
3557         to fp_expressions be sure the fp generation flags are updated.
3558
3559 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
3560
3561         PR rtl-optimization/70467
3562         * cse.c (cse_insn): Handle no-op MEM moves after folding.
3563
3564         PR rtl-optimization/70467
3565         * ipa-pure-const.c (check_call): Handle internal calls even in
3566         ipa mode like in local mode.
3567
3568 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3569
3570         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
3571
3572 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
3573
3574         * match.pd (X u< X, X u> X): New transformations.
3575
3576 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
3577
3578         * flag-types.h (enum warn_strict_overflow_code): Move ...
3579         * coretypes.h: ... here.
3580         * fold-const.h (fold_overflow_warning): Declare.
3581         * fold-const.c (fold_overflow_warning): Make non-static.
3582         (fold_comparison): Move the transformation of X +- C1 CMP C2
3583         into X CMP C2 -+ C1 ...
3584         * match.pd: ... here.
3585         * gimple-fold.c (fold_stmt_1): Protect with
3586         fold_defer_overflow_warnings.
3587
3588 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
3589
3590         * omp-low.c (struct oacc_loop): Add 'inner' field.
3591         (new_oacc_loop_raw): Initialize it to zero.
3592         (oacc_loop_fixed_partitions): Initialize it.
3593         (oacc_loop_auto_partitions): Partition outermost loop to outermost
3594         available partitioning.
3595
3596 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
3597
3598         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
3599         register_operand.
3600         (umulsidi3): Likewise.
3601         (indirect_jump): Fix jump instruction assembly patterns.
3602
3603 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
3604
3605         PR target/70860
3606         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
3607         (nvptx_function_value): Assert non-NULL cfun.
3608
3609 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
3610
3611         PR rtl-optimization/70886
3612         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
3613
3614         * cselib.h (rtx_equal_for_cselib_1): Declare.
3615         (rtx_equal_for_cselib_p: New inline function.
3616         * cselib.c (rtx_equal_for_cselib_p): Delete.
3617         (rtx_equal_for_cselib_1): Make public.
3618
3619 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
3620
3621         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
3622         (register_mixssei387nonimm_operand): Remove predicate.
3623         * config/i386/i386.md (*fop_<mode>_comm): Merge from
3624         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
3625         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
3626         for TARGET_MIX_SSE_I387 alternatives.
3627         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
3628         Disable unsupported alternatives using "enabled" attribute.  Use
3629         nonimm_ssenomem_operand as operand 1 predicate.  Also check
3630         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
3631
3632 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3633
3634         * tree.c (cst_and_fits_in_hwi): Simplify.
3635
3636 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3637
3638         * tree.h (wi::to_wide): New function.
3639         * expr.c (expand_expr_real_1): Use wi::to_wide.
3640         * fold-const.c (int_const_binop_1): Likewise.
3641         (extract_muldiv_1): Likewise.
3642
3643 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3644
3645         * wide-int.h: Update offset_int and widest_int documentation.
3646         (WI_SIGNED_SHIFT_RESULT): New macro.
3647         (wi::binary_shift): Define signed_shift_result_type for
3648         shifts on offset_int- and widest_int-like types.
3649         (generic_wide_int): Support <<= and >>= if << and >> are supported.
3650         * tree.h (int_bit_position): Use shift operators instead of wi::
3651          shifts.
3652         * alias.c (adjust_offset_for_component_ref): Likewise.
3653         * expr.c (get_inner_reference): Likewise.
3654         * fold-const.c (fold_comparison): Likewise.
3655         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
3656         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
3657         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3658         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3659         (stmt_kills_ref_p): Likewise.
3660         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
3661         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
3662         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3663         (ao_ref_init_from_vn_reference): Likewise.
3664
3665 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
3666
3667         * wide-int.h: Update offset_int and widest_int documentation.
3668         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
3669         (wi::binary_traits): Allow ordered comparisons between offset_int and
3670         offset_int, between widest_int and widest_int, and between either
3671         of these types and basic C types.
3672         (operator <, <=, >, >=): Define for the same combinations.
3673         * tree.h (tree_int_cst_lt): Use comparison operators instead
3674         of wi:: comparisons.
3675         (tree_int_cst_le): Likewise.
3676         * gimple-fold.c (fold_array_ctor_reference): Likewise.
3677         (fold_nonarray_ctor_reference): Likewise.
3678         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
3679         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
3680         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
3681         * tree-sra.c (completely_scalarize): Likewise.
3682         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
3683         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
3684         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
3685         (check_for_binary_op_overflow): Likewise.
3686         (search_for_addr_array): Likewise.
3687         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
3688
3689 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
3690
3691         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
3692         (arc_save_restore): Likewise.
3693         (arc_dwarf_register_span): Likewise.
3694         (arc_output_pic_addr_const): Initialize suffix variable.
3695
3696 2016-05-02  Martin Liska  <mliska@suse.cz>
3697
3698         * symbol-summary.h (function_summary::function_summary):
3699         Remove checking assert for all cgraph nodes.
3700         (function_summary::get): Check summary_uid.
3701         (symtab_insertion): Check summary_uid.
3702
3703 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
3704
3705         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
3706         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
3707         bmaskn instruction.
3708         (arc_dwarf_register_span): Remove enum keyword.
3709         (compact_memory_operand_p): New function.
3710         * config/arc/arc.h (reg_class): Add code density register classes.
3711         (REG_CLASS_NAMES): Likewise.
3712         (REG_CLASS_CONTENTS): Likewise.
3713         * config/arc/arc.md (*movqi_insn): Add code density instructions.
3714         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
3715         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
3716         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
3717         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
3718         constraints.
3719         (h, Rcd, Rsd, Rzd): New register constraints.
3720         (T): Use compact_memory_operand_p function.
3721         * config/arc/predicates.md (compact_load_memory_operand): Remove.
3722
3723 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
3724
3725         * config/sh/sh.md (*negnegt, *movtt): Remove.
3726
3727 2016-05-02  Marek Polacek  <polacek@redhat.com>
3728             Tom de Vries  <tom@codesourcery.com>
3729
3730         PR tree-optimization/70700
3731         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
3732         bigger than FIRST_REF_NODE.
3733
3734 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
3735
3736         PR target/52898
3737         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
3738         TARGET_CMPEQDI_T.
3739         (prepare_cbranch_operands): Don't use scratch register.  Assume that
3740         function is used when pseudos can be created.
3741         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
3742         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
3743         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
3744         define_expand.  Allow it only when pseudos can be created.
3745         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
3746
3747 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
3748
3749         * config/i386/constraints.md (BC): Only allow -1 operands.
3750         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
3751         Add "enabled" attribute.  Update XI mode attribute calculation.
3752         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
3753         (*movoi_internal_avx): Update XI mode attribute calculation.
3754         (*movti_internal): Ditto.
3755
3756 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
3757
3758         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
3759         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
3760
3761 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
3762
3763         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
3764         statement on instruction code.  Remove trailing spaces.
3765         (altivec_expand_stv_builtin): Likewise.
3766
3767 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
3768
3769         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
3770         (TARGET_FPU_DOUBLE): Simplify.
3771         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
3772         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
3773         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
3774         with 'TARGET_FPU_DOUBLE'.
3775         * config/sh/sh.md: Likewise.
3776
3777 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
3778
3779         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
3780         SH_DIV_STR_FOR_SIZE): Remove.
3781         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
3782         SH_DIV_STR_FOR_SIZE): Remove.
3783
3784 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
3785
3786         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
3787         logical_reg_operand): Delete.
3788         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
3789         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
3790         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
3791         match_operand and match_test.
3792         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
3793         variables on their first use.  Return bool values.
3794         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
3795         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
3796         arith_reg_operand for input operand.  Remove empty constraints.
3797         (xorsi3): Delete.
3798         (*xorsi3_compact): Rename to xorsi3.
3799         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
3800         (*zero_extend<mode>si2_disp_mem): Update comment.
3801         (mov_nop): Delete.
3802
3803 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
3804
3805         * config/sh/t-sh: Remove SH5 support.
3806         * config.gcc: Likewise.
3807         * configure: Likewise.
3808
3809 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3810
3811         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
3812
3813 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
3814
3815         * config/sh/sh.c (register_sh_passes, sh_option_override,
3816         sh_print_operand, prepare_move_operands,
3817         sh_can_follow_jump): Remove TARGET_SH1 checks.
3818         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
3819         PROMOTE_MODE): Likewise.
3820         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
3821         movdi): Likewise.
3822
3823 2016-04-30  Alan Modra  <amodra@gmail.com>
3824
3825         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
3826         restoring when fixed_reg_p, but allow out-of-line or stmw save.
3827         Check for user regs later to avoid unnecessary looping over regs.
3828         Merge user reg check with non-saved reg check.  Don't force
3829         inline VR restore when static chain used.
3830         (rs6000_frame_related): Omit eh_frame info for user regs when
3831         saving.
3832         (fixed_regs_p): Delete.
3833
3834 2016-04-30  Alan Modra  <amodra@gmail.com>
3835
3836         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
3837         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
3838         Update all uses.
3839
3840 2016-04-30  Alan Modra  <amodra@gmail.com>
3841
3842         PR target/69645
3843         * config/rs6000/rs6000.c (fixed_reg_p): New function.
3844         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
3845         Update all uses.
3846
3847 2016-04-30  Alan Modra  <amodra@gmail.com>
3848
3849         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
3850         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
3851         flag_pic test for Darwin.
3852
3853 2016-04-30  Alan Modra  <amodra@gmail.com>
3854
3855         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
3856         throw_calls_crossed.
3857         (REG_FREQ_CALLS_CROSSED): Delete.
3858         (REG_N_THROWING_CALLS_CROSSED): Delete.
3859         * regstat.c (regstat_bb_compute_ri): Don't calculate
3860         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
3861         (dump_reg_info): Don't print call cross frequency.
3862         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
3863         and REG_N_THROWING_CALLS_CROSSED.
3864
3865 2016-04-30  Alan Modra  <amodra@gmail.com>
3866
3867         * regs.h (struct reg_info_t): Delete live_length.
3868         (REG_LIVE_LENGTH): Delete macro.
3869         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
3870         local_live, local_processed and local_live_last_luid params.
3871         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
3872         Formatting fixes.
3873         (regstat_compute_ri): Adjust for above.  Don't set
3874         REG_LIVE_LENGTH.
3875         (dump_reg_info): Don't print live length.
3876         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
3877         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
3878         Localize loop_depth var.
3879
3880 2016-04-30  Alan Modra  <amodra@gmail.com>
3881
3882         * ira.c (enum valid_equiv): New.
3883         (validate_equiv_mem): Return enum.
3884         (update_equiv_mem): Create replacement in more cases.
3885         (add_store_equivs): Update validate_equiv_mem call.
3886
3887 2016-04-30  Alan Modra  <amodra@gmail.com>
3888
3889         * ira.c (combine_and_move_insns): Rather than scanning insns,
3890         use DF infrastucture to find use and def insns.
3891
3892 2016-04-30  Alan Modra  <amodra@gmail.com>
3893
3894         ira.c (combine_and_move_insns): Move invariant conditions..
3895         (ira.c): ..to here.  Call combine_and_move_insns before
3896         add_store_equivs.  Call grow_reg_equivs later.  Allocate
3897         req_equiv later using max_reg_num() rather than global max_regno.
3898         (contains_replace_regs): Delete.
3899         (add_store_equivs): Remove contains_replace_regs test.
3900
3901 2016-04-30  Alan Modra  <amodra@gmail.com>
3902
3903         * ira.c (struct equiv_mem_data): New.
3904         (equiv_mem, equiv_mem_modified): Delete static vars.
3905         (validate_equiv_mem_from_store): Use "data" param to communicate..
3906         (validate_equiv_mem): ..from here.
3907
3908 2016-04-30  Alan Modra  <amodra@gmail.com>
3909
3910         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
3911         split out from..
3912         (update_reg_equivs): ..here.  Move allocation and freeing of
3913         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
3914         end_alias_analysis to..
3915         (ira): ..here.
3916
3917 2016-04-30  Alan Modra  <amodra@gmail.com>
3918
3919         * ira.c (pdx_subregs): Delete.
3920         (struct equivalence): Add pdx_subregs field.
3921         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
3922         pdx_subregs access.
3923         (update_equiv_regs): Don't create or free pdx_subregs.  Update
3924         pdx_subregs access.
3925
3926 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3927
3928         * config/rs6000/altivec.h: Change definitions of vec_xl and
3929         vec_xst.
3930         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
3931         (LD_ELEMREV_V2DI): New.
3932         (LD_ELEMREV_V4SF): New.
3933         (LD_ELEMREV_V4SI): New.
3934         (LD_ELEMREV_V8HI): New.
3935         (LD_ELEMREV_V16QI): New.
3936         (ST_ELEMREV_V2DF): New.
3937         (ST_ELEMREV_V2DI): New.
3938         (ST_ELEMREV_V4SF): New.
3939         (ST_ELEMREV_V4SI): New.
3940         (ST_ELEMREV_V8HI): New.
3941         (ST_ELEMREV_V16QI): New.
3942         (XL): New.
3943         (XST): New.
3944         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3945         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
3946         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
3947         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
3948         (altivec_expand_builtin): Add handling for
3949         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
3950         (rs6000_invalid_builtin): Add error-checking for
3951         RS6000_BTM_P9_VECTOR.
3952         (altivec_init_builtins): Define builtins used to implement vec_xl
3953         and vec_xst.
3954         (rs6000_builtin_mask_names): Define power9-vector.
3955         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
3956         (RS6000_BTM_P9_VECTOR): Define.
3957         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
3958         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
3959         (vsx_ld_elemrev_v2df): Likewise.
3960         (vsx_ld_elemrev_v4sf): Likewise.
3961         (vsx_ld_elemrev_v4si): Likewise.
3962         (vsx_ld_elemrev_v8hi): Likewise.
3963         (vsx_ld_elemrev_v16qi): Likewise.
3964         (vsx_st_elemrev_v2df): Likewise.
3965         (vsx_st_elemrev_v2di): Likewise.
3966         (vsx_st_elemrev_v4sf): Likewise.
3967         (vsx_st_elemrev_v4si): Likewise.
3968         (vsx_st_elemrev_v8hi): Likewise.
3969         (vsx_st_elemrev_v16qi): Likewise.
3970         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
3971         grammar.
3972
3973 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
3974
3975         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
3976         out into ...
3977         (simplify_control_stmt_condition_1): ... here.  Recurse into
3978         BIT_AND_EXPRs and BIT_IOR_EXPRs.
3979
3980 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
3981
3982         PR target/69810
3983         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
3984         (zero_extendqi<mode>2_dot): Revert earlier conversion from
3985         define_insn_and_split to define_insn.
3986         (zero_extendqi<mode>2_dot2): Same.
3987         (extendqi<mode>2_dot): Same.
3988         (extendqi<mode>2_dot2): Same.
3989
3990 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
3991
3992         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
3993         (probe_stack): New expander.
3994         (probe_stack_<mode>): New insn pattern.
3995
3996 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
3997
3998         * config/i386/i386.md
3999         (operations with memory inputs setting flags peephole2):
4000         Remove uneeded REG_P checks.  Cleanup pattern generation.
4001
4002 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
4003
4004         * tree-vect-loop.c (vect_transform_loop): Fix
4005         nb_iterations_upper_bound computation for vectorized loop.
4006
4007 2016-04-29  Marek Polacek  <polacek@redhat.com>
4008             Jakub Jelinek  <jakub@redhat.com>
4009
4010         PR sanitizer/70342
4011         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
4012         TARGET_EXPR_SLOT as a base.
4013
4014 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
4015
4016         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
4017         with 'rCm2' constraints to limit possible immediate size.
4018         (*load_zeroextendqisi_update): Likewise.
4019         (*load_signextendqisi_update): Likewise.
4020         (*loadhi_update): Likewise.
4021         (*load_zeroextendhisi_update): Likewise.
4022         (*load_signextendhisi_update): Likewise.
4023         (*loadsi_update): Likewise.
4024         (*loadsf_update): Likewise.
4025
4026 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
4027
4028         * config/i386/predicates.md (constm1_operand): Fix comparison.
4029
4030 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
4031
4032         * testsuite/gcc.target/arc/ieee_eq.c: New test.
4033
4034 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
4035
4036         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
4037         remaining SH5 related settings.
4038         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
4039         shmedia_prepare_call_address): Delete.
4040         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
4041         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
4042         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
4043         UNSUPPORTED_SH2A): Remove m5 checks.
4044         (sh_divide_strategy_e): Remove SH5 division strategies.
4045         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
4046         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
4047
4048 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4049
4050         * config/s390/s390.c (s390_rtx_costs): Update documentation.
4051
4052 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4053
4054         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
4055         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
4056         Change lder to ldr.
4057         * config/s390/vector.md ("mov<mode>"): Likewise.
4058
4059 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
4060
4061         * config/s390/constraints.md ("U", "W"): Invoke
4062         s390_mem_constraint with "ZR" and "ZT".
4063         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
4064         addresses when using LRA.  Accept also short displacements for S
4065         and T constraints.  Do not check for long displacement target for
4066         S and T constraints.
4067         (s390_mem_constraint): Remove handling of U and W constraints.
4068         * config/s390/s390.md (various patterns): Remove the short
4069         displacement constraints (Q and R) if a long displacement
4070         constraint is present.  Add longdisp as required CPU capability.
4071         * config/s390/vector.md: Likewise.
4072         * config/s390/vx-builtins.md: Likewise.
4073
4074 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4075
4076         PR target/60040
4077         * reload1.c (reload): Call finish_spills before
4078         restarting reload loop. Skip select_reload_regs
4079         if update_eliminables_and_spill returns true.
4080
4081 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
4082
4083         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
4084         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
4085         (umulhisi3_imm): Update predicates and constraint letters.
4086         (umulhisi3_reg): Declare instruction as commutative.
4087         * config/arc/constraints.md (J12, J16): New constraints.
4088         * config/arc/predicates.md (short_unsigned_const_operand): New
4089         predicate.
4090         (arc_short_operand): Likewise.
4091         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
4092
4093 2016-04-29  Richard Biener  <rguenther@suse.de>
4094
4095         PR tree-optimization/13962
4096         PR tree-optimization/65686
4097         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
4098         * tree-ssa-alias.c (ptrs_compare_unequal): New function
4099         using PTA to compare pointers.
4100         * match.pd: Add pattern for pointer equality compare simplification
4101         using ptrs_compare_unequal.
4102
4103 2016-04-29  Richard Biener  <rguenther@suse.de>
4104
4105         * stor-layout.c (layout_type): Do not build a pointer-to-element
4106         type for arrays.
4107
4108 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
4109
4110         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
4111         Use SWI mode iterator.  Use general_reg_operand predicate.
4112         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
4113         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
4114         predicates.
4115
4116 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
4117
4118         PR middle-end/70843
4119         * fold-const.c (operand_equal_p): Don't verify hash value equality
4120         if arg0 == arg1.
4121         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
4122         and OMP_CLAUSE.
4123
4124 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4125
4126         PR target/70858
4127         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
4128         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
4129         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
4130         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
4131         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
4132
4133 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
4134
4135         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
4136         to info.  Don't initialize separate fields to 0.  Clean up
4137         formatting a bit.
4138
4139 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
4140
4141         * config/i386/i386.md (peephole2s for operations with memory inputs):
4142         Use SWI mode iterator.
4143         (peephole2s for operations with memory outputs): Ditto.
4144         Do not check for stack checking probe.
4145
4146         (probe_stack): Remove expander.
4147
4148 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4149             Andrew Burgess  <andrew.burgess@embecosm.com>
4150
4151         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
4152         operands as 32-bits.
4153
4154 2016-04-28  Jason Merrill  <jason@redhat.com>
4155
4156         * gdbinit.in: Skip line-map.h.
4157
4158 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4159             Andrew Burgess  <andrew.burgess@embecosm.com>
4160
4161         * config/arc/arc.c (arc_conditional_register_usage): Take
4162         TARGET_RRQ_CLASS into account.
4163         (arc_print_operand): Support printing 'p' and 's' operands.
4164         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
4165         as 0.
4166         (TARGET_RRQ_CLASS): Define.
4167         (IS_POWEROF2_OR_0_P): Define.
4168         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
4169         alternatives.
4170         (*tst_movb): New define_insn.
4171         (*tst): Avoid recognition if it could prevent '*tst_movb'
4172         combination; replace c/CnL with c/Chs alternative.
4173         (*tst_bitfield_tst): New define_insn.
4174         (*tst_bitfield_asr): New define_insn.
4175         (*tst_bitfield): New define_insn.
4176         (andsi3_i): Add Rrq variant.
4177         (extzv): New define_expand.
4178         (insv): New define_expand.
4179         (*insv_i): New define_insn.
4180         (*movb): New define_insn.
4181         (*movb_signed): New define_insn.
4182         (*movb_high): New define_insn.
4183         (*movb_high_signed): New define_insn.
4184         (*movb_high_signed + 1): New define_split pattern.
4185         (*mrgb): New define_insn.
4186         (*mrgb + 1): New define_peephole2 pattern.
4187         (*mrgb + 2): New define_peephole2 pattern.
4188         * config/arc/arc.opt (mbitops): New option for nps400, uses
4189         TARGET_NPS_BITOPS_DEFAULT.
4190         * config/arc/constraints.md (q): Make register class conditional.
4191         (Rrq): New register constraint.
4192         (Chs): New constraint.
4193         (Clo): New constraint.
4194         (Chi): New constraint.
4195         (Cbf): New constraint.
4196         (Cbn): New constraint.
4197         (C18): New constraint.
4198         (Cbi): New constraint.
4199
4200 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
4201
4202         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
4203         dst->popcount.
4204         (bitmap_intersection_of_preds): Ditto.
4205         (bitmap_union_of_succs): Ditto.
4206         (bitmap_union_of_preds): Ditto.
4207         * sbitmap.c (do_popcount): Delete.
4208         (BITMAP_DEBUGGING): Delete.
4209         (sbitmap_verify_popcount): Delete.
4210         (sbitmap_alloc): Don't initialize the popcount field.
4211         (sbitmap_alloc_with_popcount): Delete.
4212         (sbitmap_resize): Don't resize the popcount array.
4213         (sbitmap_vector_alloc): Don't initialize the popcount field.
4214         (bitmap_copy): Don't copy the popcount array.
4215         (bitmap_clear): Don't clear the popcount array.
4216         (bitmap_clear): Delete the popcount array handling.
4217         (bitmap_ior_and_compl): Delete the popcount assert.
4218         (bitmap_not): Ditto.
4219         (bitmap_and_compl): Ditto.
4220         (bitmap_and): Delete the popcount array handling.
4221         (bitmap_xor): Ditto.
4222         (bitmap_ior): Ditto.
4223         (bitmap_or_and): Delete the popcount assert.
4224         (bitmap_and_or): Ditto.
4225         (popcount_table): Delete.
4226         (sbitmap_elt_popcount): Delete.
4227         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
4228         (bitmap_set_bit): Delete the popcount assert.
4229         (bitmap_clear_bit): Ditto.
4230         (sbitmap_free): Don't free the popcount array.
4231         (sbitmap_alloc_with_popcount): Delete declaration.
4232         (sbitmap_popcount): Ditto.
4233
4234 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4235             Andrew Burgess  <andrew.burgess@embecosm.com>
4236
4237         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
4238         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
4239         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
4240         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
4241         * config/arc/arc.opt (mcmem): New option.
4242         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
4243         supply length for r/m alternative.
4244         (*extendqisi2_ac): Likewise.
4245         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
4246         r/Uex alternative.
4247         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
4248         (movhi_insn): Likewise.
4249         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
4250         (*zero_extendqihi2_i): Add r/Ucm alternative.
4251         (*zero_extendqisi2_ac): Likewise.
4252         (*zero_extendhisi2_i): Likewise.
4253         * config/arc/constraints.md (Uex): New memory constraint.
4254         (Ucm): New define_constraint.
4255         * config/arc/predicates.md (long_immediate_loadstore_operand):
4256         Return 0 for MEM with cmem_address address.
4257         (cmem_address_0): New predicates.
4258         (cmem_address_1): Likewise.
4259         (cmem_address_2): Likewise.
4260         (cmem_address): Likewise.
4261
4262 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
4263
4264         * config/rs6000/rs6000.c (machine_function): Rename
4265         insn_chain_scanned_p to spe_insn_chain_scanned_p.
4266         (rs6000_stack_info): Adjust.
4267
4268 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
4269             Andrew Burgess  <andrew.burgess@embecosm.com>
4270
4271         * config/arc/constraints.md (Usd): Convert to define_constraint.
4272         (Us<): Likewise.
4273         (Us>): Likewise.
4274
4275 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4276
4277         PR target/70821
4278         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
4279         Add new peephole2 where the first insn is *mov<mode>_or instead of
4280         *mov<mode>_internal.
4281
4282 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
4283
4284         * tracer.c (bb_seen): Make static.
4285
4286 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
4287
4288         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
4289         support, setup defaults.
4290         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
4291         * config/arc/arc.c (arc_init): Add NPS400 support.
4292         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
4293         (TARGET_ARC700): NPS400 is also an ARC700.
4294         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
4295
4296 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
4297
4298         PR target/70668
4299         * config/nds32/nds32.md (casesi): Don't access the operands array
4300         out of bounds.
4301
4302 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
4303
4304         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
4305         (or $-1,reg peephole2): Ditto.
4306         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
4307
4308 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
4309
4310         * doc/extend.texi (Common Function Attributes) [optimize]:
4311         Discourage use of the optimize attribute.
4312
4313 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
4314
4315         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
4316         special case builtin.
4317         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
4318         ALTIVEC_BUILTIN_VEC_ADDE.
4319         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4320         support for ALTIVEC_BUILTIN_VEC_ADDE.
4321         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
4322         for __builtin_vec_adde.
4323
4324 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
4325
4326         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
4327         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
4328
4329 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4330
4331         PR testsuite/70595
4332         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4333         attributes): Document cilkplus_runtime.
4334
4335 2016-04-28  Martin Jambor  <mjambor@suse.cz>
4336
4337         * tree-cfg.c (verify_expr): Verify that local declarations belong to
4338         this function.  Call verify_expr on MEM_REFs and bases of other
4339         handled_components.
4340
4341 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4342
4343         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
4344         for WORD_REGISTER_OPERATIONS to runtime check.
4345
4346 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
4347
4348         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
4349
4350 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
4351
4352         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
4353         big-endian compilation.
4354         * config/arc/arc.md (addf3): Likewise.
4355         (subdf3): Likewise.
4356         (muldf3): Likewise.
4357
4358 2016-04-28  Richard Biener  <rguenther@suse.de>
4359
4360         PR tree-optimization/70840
4361         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
4362         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
4363         Mark x * pow(x,c) -> pow(x,c+1) commutative.
4364         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
4365
4366 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4367
4368         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
4369         and explain why in a comment.
4370
4371 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
4372
4373         * config/arc/arc.md (cpu_facility): Add fpx variant.
4374         (subdf3): Prohibit use reverse sub when assist operations option
4375         is enabled.
4376         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
4377         instructions only when FPX is enabled.
4378         * testsuite/gcc.target/arc/trsub.c: New test.
4379
4380 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
4381
4382         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
4383         mult_operator when calculating "type" attribute.
4384         (*fop_<mode>_1_i387): Ditto.
4385         (*fop_xf_1_i387): Ditto.
4386         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
4387         Use std::swap to swap operands.  Use RTL expressions to generate
4388         converted pattern.
4389
4390 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
4391             Joern Rennecke  <joern.rennecke@embecosm.com>
4392
4393         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
4394         declaration.
4395         (emit_pic_move): Remove.
4396         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
4397         * config/arc/arc.c (emit_pic_move): Removed.
4398         (TARGET_HAVE_TLS): Define.
4399         (arc_conditional_register_usage): Test for arc_tp_regno.
4400         (arc_print_operand, arc_print_operand_address): Handle TLS
4401         unspecs.
4402         (arc_needs_pcl_p): New function.
4403         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
4404         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
4405         (arc_raw_symbolic_reference_mentioned_p): Likewise.
4406         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
4407         (arc_legitimize_tls_address): Likewise.
4408         (DTPOFF_ZERO_SYM): Define.
4409         (arc_legitimize_pic_address): Make it static, handle TLS cases.
4410         (arc_output_pic_addr_const): Print TLS unspecs.
4411         (prepare_pic_move): New function, replaces emit_pic_move.
4412         (arc_legitimate_constant_p): Handle TLS unspecs.
4413         (arc_legitimate_address_p): Likewise.
4414         (arc_rewrite_small_data_p): Use assert for TLS constants.
4415         (prepare_move_operands): Use prepare_pic_move.
4416         (arc_legitimize_address): Legitimize tls addresses.
4417         (arc_epilogue_uses): Check for arc_tp_regno.
4418         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
4419         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
4420         Define.
4421         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
4422         Likewise.
4423         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
4424         %(arc_tls_extra_start_spec).
4425         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
4426         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
4427         (EH_USES): Define.
4428         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
4429         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
4430         (UNSPEC_TLS_OFF): Add.
4431         (R10_REG): Define.
4432         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
4433         (get_thread_pointersi): New patterns.
4434         * config/arc/arc.opt (mtp-regno): New option.
4435         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
4436         (move_dest_operand): Likewise.
4437         * configure: Regenerate.
4438         * configure.ac: Add arc*-*-* case to test for tls.
4439         * doc/invoke.texi (ARC options): Document mtp-regno.
4440
4441 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
4442
4443         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
4444         the new ARC HS SIMD instructions.
4445         (arc_preferred_simd_mode): New function.
4446         (arc_autovectorize_vector_sizes): Likewise.
4447         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
4448         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4449         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
4450         (arc_init_builtins): Add new SIMD builtin types.
4451         (arc_split_move): Handle 64 bit vector moves.
4452         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
4453         (TARGET_PLUS_QMACW): Define.
4454         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
4455         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
4456         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
4457         (VSUBADD4H): New builtins.
4458         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
4459         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
4460
4461 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
4462             Matthias Klose  <doko@debian.org>
4463
4464         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
4465
4466 2016-04-28  Richard Biener  <rguenther@suse.de>
4467
4468         PR middle-end/70777
4469         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
4470         canonicalization.
4471
4472 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
4473
4474         * common/config/sh/sh-common.c: Remove SH5 support.
4475         * config/sh/constraints.md: Likewise.
4476         * config/sh/config/sh/elf.h: Likewise.
4477         * config/sh/linux.h: Likewise.
4478         * config/sh/netbsd-elf.h: Likewise.
4479         * config/sh/predicates.md: Likewise.
4480         * config/sh/sh-c.c: Likewise.
4481         * config/sh/sh-protos.h: Likewise.
4482         * config/sh/sh.c: Likewise.
4483         * config/sh/sh.h: Likewise.
4484         * config/sh/sh.md: Likewise.
4485         * config/sh/sh.opt: Likewise.
4486         * config/sh/sync.md: Likewise.
4487         * config/sh/sh64.h: Delete.
4488         * config/sh/shmedia.h: Likewise.
4489         * config/sh/shmedia.md: Likewise.
4490         * config/sh/sshmedia.h: Likewise.
4491         * config/sh/t-netbsd-sh5-64: Likewise.
4492         * config/sh/t-sh64: Likewise.
4493         * config/sh/ushmedia.h: Likewise.
4494
4495 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
4496
4497         * config/i386/i386.md (sign_extend to memory peephole2s): Use
4498         general_reg_operand instead of register_operand predicate.
4499
4500 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4501
4502         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
4503
4504 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
4505
4506         * match.pd (A - B > A, A + B < A): New transformations.
4507
4508 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
4509
4510         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
4511         which defaults to true.  Emit an outer pair of parentheses only if
4512         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
4513         don't emit parentheses for the right-hand operand.
4514
4515 2016-04-27  Jeff Law  <law@redhat.com>
4516
4517         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
4518
4519 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4520
4521         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
4522         (altivec_lvx_<mode>_internal): Document.
4523         (altivec_lvx_<mode>_2op): New define_insn.
4524         (altivec_lvx_<mode>_1op): Likewise.
4525         (altivec_lvx_<mode>_2op_si): Likewise.
4526         (altivec_lvx_<mode>_1op_si): Likewise.
4527         (altivec_stvx_<mode>): Remove.
4528         (altivec_stvx_<mode>_internal): Document.
4529         (altivec_stvx_<mode>_2op): New define_insn.
4530         (altivec_stvx_<mode>_1op): Likewise.
4531         (altivec_stvx_<mode>_2op_si): Likewise.
4532         (altivec_stvx_<mode>_1op_si): Likewise.
4533         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4534         Expand vec_ld and vec_st during parsing.
4535         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
4536         changes.
4537         (altivec_expand_stvx_be): Likewise.
4538         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
4539         address-masking behavior in RTL.
4540         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
4541         address-masking behavior in RTL.
4542         (altivec_expand_builtin): Change builtin code arguments for calls
4543         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
4544         (insn_is_swappable_p): Avoid incorrect swap optimization in the
4545         presence of lvx/stvx patterns.
4546         (alignment_with_canonical_addr): New function.
4547         (alignment_mask): Likewise.
4548         (find_alignment_op): Likewise.
4549         (recombine_lvx_pattern): Likewise.
4550         (recombine_stvx_pattern): Likewise.
4551         (recombine_lvx_stvx_patterns): Likewise.
4552         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
4553         stvx patterns from expand.
4554         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
4555         expansions.
4556         (vector_altivec_store_<mode>): Likewise.
4557
4558 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
4559
4560         * config/aarch64/aarch64.md
4561         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
4562         remove the "fp" attributes.
4563         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
4564         add the "simd" attributes.
4565         (*movdf_aarch64): Likewise.
4566         (*movtf_aarch64): Remove the "fp" attributes.
4567         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
4568         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
4569
4570 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
4571
4572         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
4573         rtx to rtx_code_label *.
4574         * rtl.h (maybe_set_first_label_num): Likewise.
4575
4576 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
4577
4578         * df-core.c (df_add_problem): Make the problem param be const.
4579         (df_remove_problem): Make local "problem" be const.
4580         * df-problems.c (problem_RD): Make const.
4581         (problem_LR): Likewise.
4582         (problem_LIVE): Likewise.
4583         (problem_MIR): Likewise.
4584         (problem_CHAIN): Likewise.
4585         (problem_WORD_LR): Likewise.
4586         (problem_NOTE): Likewise.
4587         (problem_MD): Likewise.
4588         * df-scan.c (problem_SCAN): Likewise.
4589         * df.h (struct df_problem): Make field "dependent_problem" be
4590         const.
4591         (struct dataflow): Likewise for field "problem".
4592         (df_add_problem): Make param const.
4593
4594 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
4595
4596         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
4597         inter-unit moves to/from vector registers are enabled.  Do not disable
4598         for TARGET_MMX.
4599
4600 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
4601
4602         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
4603         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
4604         #define to...
4605         (enum df_problem_id): ...this new enum.
4606         (struct df_problem): Convert field "id" from "int" to
4607         enum df_problem_id.
4608
4609 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
4610
4611         * rtl.def: Update comment for "things in the instruction chain" to
4612         reflect the removal of the leading "i" field for INSN_UID in
4613         r210360.  Fix bogus apostrophe.
4614
4615 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
4616
4617         * config/i386/i386.md
4618         (lea arith with mem operand + setcc peephole2): Set operator mode.
4619
4620 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
4621
4622         PR target/70155
4623         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
4624         (dimode_scalar_to_vector_candidate_p): This.
4625         (timode_scalar_to_vector_candidate_p): New function.
4626         (scalar_to_vector_candidate_p): Likewise.
4627         (timode_check_non_convertible_regs): Likewise.
4628         (timode_remove_non_convertible_regs): Likewise.
4629         (remove_non_convertible_regs): Likewise.
4630         (remove_non_convertible_regs): Renamed to ...
4631         (dimode_remove_non_convertible_regs): This.
4632         (scalar_chain::~scalar_chain): Make it virtual.
4633         (scalar_chain::compute_convert_gain): Make it pure virtual.
4634         (scalar_chain::mark_dual_mode_def): Likewise.
4635         (scalar_chain::convert_insn): Likewise.
4636         (scalar_chain::convert_registers): Likewise.
4637         (scalar_chain::add_to_queue): Make it protected.
4638         (scalar_chain::emit_conversion_insns): Likewise.
4639         (scalar_chain::replace_with_subreg): Likewise.
4640         (scalar_chain::replace_with_subreg_in_insn): Likewise.
4641         (scalar_chain::convert_op): Likewise.
4642         (scalar_chain::convert_reg): Likewise.
4643         (scalar_chain::make_vector_copies): Likewise.
4644         (scalar_chain::convert_registers): New pure virtual function.
4645         (class dimode_scalar_chain): New class.
4646         (class timode_scalar_chain): Likewise.
4647         (scalar_chain::mark_dual_mode_def): Renamed to ...
4648         (dimode_scalar_chain::mark_dual_mode_def): This.
4649         (timode_scalar_chain::mark_dual_mode_def): New function.
4650         (timode_scalar_chain::convert_insn): Likewise.
4651         (dimode_scalar_chain::convert_registers): Likewise.
4652         (scalar_chain::compute_convert_gain): Renamed to ...
4653         (dimode_scalar_chain::compute_convert_gain): This.
4654         (scalar_chain::replace_with_subreg): Renamed to ...
4655         (dimode_scalar_chain::replace_with_subreg): This.
4656         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
4657         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
4658         (scalar_chain::make_vector_copies): Renamed to ...
4659         (dimode_scalar_chain::make_vector_copies): This.
4660         (scalar_chain::convert_reg): Renamed to ...
4661         (dimode_scalar_chain::convert_reg ): This.
4662         (scalar_chain::convert_op): Renamed to ...
4663         (dimode_scalar_chain::convert_op): This.
4664         (scalar_chain::convert_insn): Renamed to ...
4665         (dimode_scalar_chain::convert_insn): This.
4666         (scalar_chain::convert): Call convert_registers.
4667         (convert_scalars_to_vector): Change to scalar_chain pointer to
4668         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
4669         in 32-bit mode.  Delete scalar_chain pointer.  Call
4670         free_dominance_info in 64-bit mode.
4671         (pass_stv::gate): Remove TARGET_64BIT check.
4672         (ix86_option_override): Put the 64-bit STV pass before the CSE
4673         pass.
4674
4675 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
4676
4677         * dwarf2out.h (struct dw_loc_descr_node): Remove the
4678         dw_loc_frame_offset field.
4679         * dwarf2out.c (new_loc_descr): Likewise.
4680         (resolve_args_picking_1): Turn the VISITED hash set into a
4681         FRAME_OFFSET hash map. Use it to associate a frame offset to
4682         visited nodes. Remove uses of the CHECKING_P macro.
4683         (resolve_args_picking): Update call to resolve_args_picking_1.
4684
4685 2016-04-27  Martin Liska  <mliska@suse.cz>
4686
4687         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
4688         (free_loop_data): Release vuses of groups.
4689
4690 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
4691
4692         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
4693         instead of redundant use_id and boolean have_use_for.
4694         (struct iv_use): Change sub_id into group_id.  Remove field next.
4695         Move fields: related_cands, n_map_members, cost_map and selected
4696         to ...
4697         (struct iv_group): ... here.  New structure.
4698         (struct iv_common_cand): Use structure declaration directly.
4699         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
4700         (MAX_CONSIDERED_USES): Rename macro to ...
4701         (MAX_CONSIDERED_GROUPS): ... here.
4702         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
4703         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
4704         (dump_uses): Rename to ...
4705         (dump_groups): ... here.  Update all uses.
4706         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
4707         (find_induction_variables): Refactor format of dump information.
4708         (record_sub_use): Delete.
4709         (record_use): Update all uses.
4710         (record_group): New function.
4711         (record_group_use, find_interesting_uses_op): Call above functions.
4712         Update all uses.
4713         (find_interesting_uses_cond): Ditto.
4714         (group_compare_offset): New function.
4715         (split_all_small_groups): Rename to ...
4716         (split_small_address_groups_p): ... here.  Update all uses.
4717         (split_address_groups):  Update all uses.
4718         (find_interesting_uses): Refactor format of dump information.
4719         (add_candidate_1): Update all uses.  Remove redundant check on iv,
4720         base and step.
4721         (add_candidate, record_common_cand): Remove redundant assert.
4722         (add_iv_candidate_for_biv): Update use.
4723         (add_iv_candidate_derived_from_uses): Update all uses.
4724         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
4725         (alloc_use_cost_map): Ditto.
4726         (set_use_iv_cost, get_use_iv_cost): Rename to ...
4727         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
4728         (determine_use_iv_cost_generic): Ditto.
4729         (determine_group_iv_cost_generic): Ditto.
4730         (determine_use_iv_cost_address): Ditto.
4731         (determine_group_iv_cost_address): Ditto.
4732         (determine_use_iv_cost_condition): Ditto.
4733         (determine_group_iv_cost_cond): Ditto.
4734         (determine_use_iv_cost): Ditto.
4735         (determine_group_iv_cost): Ditto.
4736         (set_autoinc_for_original_candidates): Update all uses.
4737         (find_iv_candidates): Update all uses.  Refactor dump information.
4738         (determine_use_iv_costs): Ditto.
4739         (determine_iv_costs): Ditto.
4740         (iv_ca_cand_for_use): Rename to ...
4741         (iv_ca_cand_for_group): ... here.  Update all uses.
4742         (iv_ca_add_use, iv_ca_add_group): Ditto.
4743         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
4744         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
4745         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
4746         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
4747         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
4748         (create_new_iv, adjust_iv_update_pos): Ditto.
4749         (rewrite_use_address): Delete.
4750         (rewrite_use_address_1): Rename to ...
4751         (rewrite_use_address): ... here.
4752         (rewrite_use_compare): Update all uses.
4753         (rewrite_use): Delete.
4754         (rewrite_uses): Rename to ...
4755         (rewrite_groups): ... here.  Update all uses.
4756         (remove_unused_ivs, free_loop_data): Update all uses.
4757         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
4758
4759 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4760
4761         * rtlanal.c (nonzero_bits1): Convert preprocessor check
4762         for WORD_REGISTER_OPERATIONS to runtime check.
4763
4764 2016-04-27  Richard Biener  <rguenther@suse.de>
4765
4766         PR ipa/70760
4767         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
4768         aggregate_value_p to determine if a function result is
4769         returned by reference.
4770         (ipa_pta_execute): Functions having their address taken are
4771         not automatically nonlocal.
4772
4773 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4774
4775         PR sanitizer/70683
4776         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
4777         * fold-const.c (operand_equal_p): If flag_checking and
4778         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
4779         and if it returns non-zero, assert iterative_hash_expr on both
4780         args is the same.
4781
4782 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
4783
4784         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
4785
4786 2016-04-27  Nick Clifton  <nickc@redhat.com>
4787
4788         PR middle-end/49889
4789         * varasm.c (merge_weak): Generate an error if an attempt is made
4790         to convert a non-weak static function into a weak, public function.
4791
4792 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4793
4794         * params.def (MAX_PARTITION_SIZE): New param.
4795         * doc/invoke.texi: Document lto-max-partition.
4796
4797 2016-04-27  Richard Biener  <rguenther@suse.de>
4798
4799         PR ipa/70785
4800         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
4801         function cummulating used_from_other_partition, externally_visible
4802         and force_output from aliases.
4803         (refered_from_nonlocal_var): Likewise.
4804         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
4805         node flags properly.
4806
4807 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
4808
4809         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
4810         (-Wmemset-elt-size): New item.
4811
4812 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
4813
4814         PR ada/70759
4815         * stor-layout.h (internal_reference_types): Delete.
4816         * stor-layout.c (reference_types_internal): Likewise.
4817         (internal_reference_types): Likewise.
4818         (layout_type) <REFERENCE_TYPE>: Adjust.
4819
4820 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
4821
4822         PR sanitizer/70683
4823         * tree.h (inchash::add_expr): Add FLAGS argument.
4824         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
4825         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
4826         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
4827         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
4828         if swap_tree_comparison (code) is smaller than code, hash that
4829         and arguments in the other order.  Hash CONVERT_EXPR the same
4830         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
4831         of ADDR_EXPR of decl as the decl itself.  Add or remove
4832         OEP_ADDRESS_OF from recursive flags as needed.  For
4833         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
4834         operands commutatively and only the third one normally.
4835         For internal CALL_EXPR hash in CALL_EXPR_IFN.
4836
4837 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4838
4839         * config/rtems.h (LIB_SPEC): Add -latomic.
4840
4841 2016-04-27  Joel Sherrill  <joel@rtems.org>
4842
4843         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
4844         xilink.ld and flags not relevant to RTEMS.
4845
4846 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
4847
4848         * toplev.c (backend_init_target): Avoid calling init_reload when using
4849         LRA.
4850
4851 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
4852
4853         * reorg.c (try_merge_delay_insns): Declare i and j inside the
4854         for loops rather than one for the whole function.
4855
4856 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
4857
4858         * match.pd (X + CST CMP X): New transformation.
4859
4860 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
4861
4862         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
4863         * fold-const.c (fold_binary_loc): Remove 2 transformations
4864         superseded by match.pd.
4865         * match.pd (x+x -> x*2): Generalize to integers.
4866
4867 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
4868
4869         * config/i386/i386.md (operation on memory peephole): Duplicate an
4870         existing peephole and adapt it to match lea rather than an operation
4871         that clobbers CC.
4872
4873         PR rtl-optimization/57193
4874         * opts.c (default_options_table): Add OPT_frename_registers at -O2
4875         and above.
4876         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
4877
4878 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
4879
4880         * tree-if-conv.c (any_pred_load_store): New static variable.
4881         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
4882         any_pred_load_store instead of and_mask_load_store.
4883         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
4884         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
4885         (combine_blocks, tree_if_conversion): Ditto.
4886
4887 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
4888
4889         PR tree-optimization/70771
4890         PR tree-optimization/70775
4891         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
4892         virtual PHI nodes.  Delete parameter.
4893         (if_convertible_loop_p_1): Delete argument to above function.
4894         (predicate_all_scalar_phis): Delete code handling single-argument
4895         PHIs.
4896         (tree_if_conversion): Mark and update virtual SSA.
4897
4898 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4899
4900         PR target/61821
4901         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
4902         (x86_elf_aligned_common): Rename to ...
4903         (x86_elf_aligned_decl_common): ... this.
4904         Add decl arg.  Switch to .lbss for largecomm object.  Use
4905         LARGECOMM_SECTION_ASM_OP.
4906         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
4907         renaming.
4908         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
4909         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
4910         Pass new decl arg.
4911         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4912         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
4913
4914 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4915
4916         PR target/59407
4917         * config/i386/i386.c (SECTION_LARGE): Define.
4918         (x86_64_elf_select_section): Set it for large data/bss sections.
4919         Only clear SECTION_WRITE for .lrodata.
4920         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
4921         data/bss sections.
4922         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
4923         * varasm.c (default_elf_asm_named_section): Grow flagchars.
4924         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
4925         SECTION_MACH_DEP.
4926         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
4927         * doc/tm.texi: Regenerate.
4928
4929 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
4930
4931         PR bootstrap/70704
4932         * configure.ac (--enable-checking): Document extra flag, for
4933         non-release builds default to --enable-checking=yes,extra.
4934         If misc checking and extra checking, define CHECKING_P to 2 instead
4935         of 1.
4936         * common.opt (fchecking=): Add.
4937         * doc/invoke.texi (-fchecking=): Document.
4938         * doc/install.texi: Document --enable-checking changes.
4939         * configure: Regenerated.
4940         * config.in: Regenerated.
4941
4942 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
4943
4944         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
4945         attribute instead of which_alternative.
4946         * config/i386/sse.md (*mov<mode>_internal): Ditto.
4947         Use EXT_REX_SSE_REG_P where appropriate.
4948
4949 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
4950
4951         * config/i386/predicates.md (const0_operand): Do not match
4952         const_wide_int code.
4953         (const1_operand): Ditto.
4954
4955 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
4956
4957         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
4958         for SSE constm1 operands and TARGET_AVX512VL.
4959         (*movti_internal): Ditto.
4960         (*mov<mode>_or): Use constm1_operand predicate.
4961         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
4962         for SSE vector_all_ones operands and TARGET_AVX512VL.
4963         * config/i386/predicates.md (constm1_operand): New predicate.
4964         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
4965         emission of constant -1 load.
4966
4967 2016-04-25  Jason Merrill  <jason@redhat.com>
4968
4969         * gdbinit.in: Skip is-a.h.
4970
4971         * attribs.c (register_scoped_attributes): Fix logic.
4972         * attribs.h: Declare register_scoped_attributes.
4973
4974 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4975
4976         * config/rs6000/rs6000-builtin.def: Correct pasto error for
4977         stxvd2x and stxvw4x built-in functions.
4978
4979 2016-04-25  DJ Delorie  <dj@redhat.com>
4980
4981         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
4982         (ashrhi3): Likewise.
4983         (lshrhi3): Likewise.
4984
4985 2016-04-25  Richard Biener  <rguenther@suse.de>
4986
4987         PR tree-optimization/70780
4988         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
4989         wasn't visited yet.
4990         (compute_antic): Mark blocks with abnormal preds as visited as
4991         they have a final empty antic-in solution already.
4992
4993 2016-04-25  Michael Collison  <michael.collison@linaro.org>
4994
4995         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
4996
4997 2016-04-25  Michael Collison  <michael.collison@linaro.org>
4998
4999         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
5000         mode is VQI to improve mixed mode vectorization.
5001         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
5002         define_insn to match low half of signed vaddw.
5003         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
5004         define_insn to match high half of signed vaddw.
5005         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
5006         define_insn to match low half of unsigned vaddw.
5007         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
5008         define_insn to match high half of unsigned vaddw.
5009         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
5010         (arm_simd_check_vect_par_cnst_half_p): Likewise.
5011         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
5012         for new function.
5013         (arm_simd_check_vect_par_cnst_half_p): Likewise.
5014         * config/arm/predicates.md (vect_par_constant_high): Support
5015         big endian and simplify by calling
5016         arm_simd_check_vect_par_cnst_half
5017         (vect_par_constant_low): Likewise.
5018
5019 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
5020
5021         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
5022         predicate for operand 2.
5023
5024 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
5025             H.J. Lu  <hongjiu.lu@intel.com>
5026
5027         * config/i386/i386-protos.h (standard_sse_constant_p): Add
5028         machine_mode argument.
5029         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
5030         constm1_rtx operands.  For VOIDmode constants, get mode from
5031         pred_mode.  Check mode size if the mode is supported by ABI.
5032         (standard_sse_constant_opcode): Do not use standard_constant_p.
5033         Strictly check ABI support for all-ones operands.
5034         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
5035         immediates. Update calls to standard_sse_constant_p.
5036         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
5037         (ix86_rtx_costs): Ditto.
5038         * config/i386/i386.md (*movxi_internal_avx512f): Use
5039         nonimmediate_or_sse_const_operand instead of vector_move_operand.
5040         Use (v,BC) alternative instead of (v,C). Use register_operand
5041         checks instead of MEM_P.
5042         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
5043         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
5044         isa attribute.  Use register_operand checks instead of MEM_P.
5045         (*movti_internal): Use nonimmediate_or_sse_const_operand for
5046         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
5047         alternative and corresponding sse2 isa attribute.
5048         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
5049         to standard_sse_constant_p.
5050         (FP constant splitters): Ditto.
5051         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
5052         (C): Ditto.
5053         * config/i386/predicates.md (constm1_operand): Remove.
5054         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
5055         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
5056         vector_all_ones_operand instead of constm1_operand.
5057
5058 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5059
5060         * print-rtl.c (print_rtx_insn_vec): New function.
5061         * print-rtl.h: New prototype.
5062         * store-motion.c (struct st_expr): Make avail_stores a vector.
5063         (st_expr_entry): Adjust.
5064         (free_st_expr_entry): Likewise.
5065         (print_store_motion_mems): Likewise.
5066         (find_moveable_store): Likewise.
5067         (compute_store_table): Likewise.
5068         (delete_store): Likewise.
5069         (build_store_vectors): Likewise.
5070
5071 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5072
5073         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
5074
5075 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5076
5077         * vec.h (vec_safe_contains): New function.
5078         (vec::contains): Likewise.
5079         (vec::begin): Likewise.
5080         (vec::end): Likewise.
5081
5082 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
5083
5084         PR sanitizer/70712
5085         * cfgexpand.c (expand_stack_vars): Fix typo.
5086
5087 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5088
5089         * system.h (list, map, set, vector): Include conditionally.
5090         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
5091         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
5092         * ipa-icf.c (INCLUDE_LIST): Define.
5093         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
5094         * config/sh/sh.c (INCLUDE_VECTOR): Define.
5095         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
5096         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
5097         * cp/logic.cc (INCLUDE_LIST): Define.
5098         * fortran/trans-common.c (INCLUDE_MAP): Define.
5099
5100 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5101
5102         * auto-profile.c: Remove <string.h> include.
5103         * ipa-icf-gimple.c: Remove <list> include.
5104         * diagnostic.c: Remove <new> include.
5105         * genmatch.c: Likewise.
5106         * pretty-print.c: Likewise.
5107         * toplev.c: Likewise
5108         * c/c-objc-common.c: Likewise.
5109         * cp/error.c: Likewise.
5110         * fortran/error.c: Likewise.
5111
5112 2016-04-22  Richard Biener  <rguenther@suse.de>
5113
5114         * lto-streamer-in.c (input_ssa_names): Do not allocate
5115         GIMPLE_NOP for all SSA names.
5116         * lto-streamer-out.c (output_ssa_names): Do not output
5117         SSA names that should have been released.
5118
5119 2016-04-22  Richard Biener  <rguenther@suse.de>
5120
5121         PR tree-optimization/70740
5122         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
5123         VDEF.
5124
5125 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
5126
5127         PR target/70750
5128         * config/i386/predicates.md (call_insn_operand): Replace
5129         sibcall_memory_operand with memory_operand.
5130
5131 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
5132
5133         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
5134         has_single_use() tests.
5135         (register_edge_assert_for_1): Likewise.
5136         (find_assert_locations_1): Check the liveness bitmap instead of
5137         checking has_single_use().
5138
5139 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5140
5141         PR target/70728
5142         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
5143         Extract AVX-512BW constraint from AVX.
5144
5145 2016-04-21  Richard Biener  <rguenther@suse.de>
5146
5147         PR tree-optimization/70725
5148         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
5149         for phi_convertible_by_degenerating_args.
5150         (predicate_all_scalar_phis): Handle single-argument PHIs.
5151
5152 2016-04-21  Richard Biener  <rguenther@suse.de>
5153
5154         PR middle-end/70747
5155         * fold-const.c (fold_comparison): Return properly typed
5156         constant boolean.
5157
5158 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
5159
5160         PR tree-optimization/70715
5161         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5162         after expanding BASE using expand_simple_operations.
5163
5164 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
5165
5166         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
5167         New transformations.
5168
5169 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
5170
5171         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
5172
5173 2016-04-20  Jan Hubicka  <jh@suse.cz>
5174
5175         * ipa-inline.c (can_inline_edge_p): Pass caller info to
5176         ultiimate_alias_target.
5177         (update_callee_keys): Likewise.
5178         (lookup_recursive_calls): Likewise.
5179         (speculation_useful_p): Likewise.
5180
5181 2016-04-20  Jan Hubicka  <jh@suse.cz>
5182
5183         PR ipa/70018
5184         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
5185         (set_nothrow_flag_1): ... this; handle interposition correctly;
5186         recurse on aliases and thunks.
5187         (cgraph_node::set_nothrow_flag): New.
5188         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
5189         functions compiled with non-call exceptions that binds to current
5190         def.
5191         (propagate_nothrow): Be safe WRT interposition.
5192         * cgraph.h (set_nothrow_flag): Update prototype.
5193
5194 2016-04-18  Jan Hubicka  <jh@suse.cz>
5195
5196         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
5197         max_loop_iterations_int.
5198         (tree_unswitch_outer_loop): Likewise.
5199
5200 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
5201
5202         PR tree-optimization/69489
5203         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
5204         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
5205         Revise dump message.
5206         (if_convertible_bb_p): Remove check on edge count of basic block's
5207         predecessors.
5208
5209 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
5210
5211         PR tree-optimization/56625
5212         PR tree-optimization/69489
5213         * tree-data-ref.h (DR_INNERMOST): New macro.
5214         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
5215         hashing struct innermost_loop_behavior.
5216         (ref_DR_map): Remove.
5217         (innermost_DR_map): New map.
5218         (baseref_DR_map): Revise comment.
5219         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
5220         to innermost_DR_map accroding to its innermost loop behavior.
5221         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
5222         to its innermost loop behavior.
5223         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
5224         Add initialization for innermost_DR_map.  Record memory reference
5225         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
5226         have innermost loop behavior.
5227         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
5228         innermost_DR_map.
5229
5230 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
5231
5232         * config/i386/i386.md (*lea<mode>_general_1): Rename from
5233         *lea_general_1.  Use explicit SWI12 mode interator.
5234         (*lea<mode>_general_2): Rename from *lea_general_2.
5235         Use explicit SWI12 mode interator.
5236         (*lea<mode>_general_3): Rename from *lea_general_3.
5237         Use explicit SWI12 mode interator.
5238         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
5239         Use explicit SWI12 mode interator.
5240         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
5241         Use explicit SWI48 mode interator.
5242
5243 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
5244
5245         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5246         Short-cut unaligned load and store cases.  Handle all integer
5247         vector modes.
5248         (ix86_expand_vector_move_misalign): Short-cut unaligned load
5249         and store cases.  Call ix86_avx256_split_vector_move_misalign
5250         directly without checking mode class.
5251
5252 2016-04-20  Andrew Pinski  <apinski@cavium.com>
5253             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5254
5255         PR target/64971
5256         * config/aarch64/aarch64.md (sibcall): Force call
5257         address to be DImode for ILP32.
5258         (sibcall_value): Likewise.
5259
5260 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
5261
5262         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
5263
5264 2016-04-20  Richard Biener  <rguenther@suse.de>
5265
5266         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
5267         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
5268         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
5269         (maybe_push_res_to_seq): Adjust.
5270         * gimple-fold.c (maybe_build_generic_op): Likewise.
5271
5272 2016-04-20  Marek Polacek  <polacek@redhat.com>
5273
5274         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
5275         rather than true.
5276
5277 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
5278
5279         * config/i386/sse.md (vec_unpacks_lo_hi): Always
5280         use kmovw to support AVX512F target.
5281
5282 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
5283
5284         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
5285
5286 2016-04-20  Marek Polacek  <polacek@redhat.com>
5287
5288         PR tree-optimization/70725
5289         * tree-if-conv.c (is_false_predicate): New function.
5290         (predicate_mem_writes): Use it.
5291
5292 2016-04-20  Richard Biener  <rguenther@suse.de>
5293
5294         PR tree-optimization/70726
5295         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
5296         shift amounts from a pattern stmt operand.
5297
5298 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5299
5300         PR target/70674
5301         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
5302         stack_restore_from_fpr pattern when restoring r15.
5303         (s390_optimize_prologue): Strip away the memory barrier in the
5304         parallel when trying to get rid of restore insns.
5305         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
5306         definition for loading the stack pointer from an FPR.  Compared to
5307         the normal move insn this pattern includes a full memory barrier.
5308
5309 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
5310
5311         PR middle-end/70680
5312         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
5313         implicitly linear or lastprivate iterator on the outer context.
5314
5315 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
5316
5317         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
5318         alignment check.
5319         * config/i386/i386.md (ssememalign): Removed.
5320         * config/i386/sse.md: Remove ssememalign attribute from patterns.
5321
5322 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
5323
5324         PR target/69201
5325         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
5326         const short * to __builtin_ia32_loaddquhi512_mask.
5327         (_mm512_maskz_loadu_epi16): Likewise.
5328         (_mm512_mask_storeu_epi16): Pass short * to
5329         __builtin_ia32_storedquhi512_mask.
5330         (_mm512_mask_loadu_epi8): Pass const char * to
5331         __builtin_ia32_loaddquqi512_mask.
5332         (_mm512_maskz_loadu_epi8): Likewise.
5333         (_mm512_mask_storeu_epi8): Pass char * to
5334         __builtin_ia32_storedquqi512_mask.
5335         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
5336         const double * to __builtin_ia32_loadupd512_mask.
5337         (_mm512_mask_loadu_pd): Likewise.
5338         (_mm512_maskz_loadu_pd): Likewise.
5339         (_mm512_storeu_pd): Pass double * to
5340         __builtin_ia32_storeupd512_mask.
5341         (_mm512_mask_storeu_pd): Likewise.
5342         (_mm512_loadu_ps): Pass const float * to
5343         __builtin_ia32_loadups512_mask.
5344         (_mm512_mask_loadu_ps): Likewise.
5345         (_mm512_maskz_loadu_ps): Likewise.
5346         (_mm512_storeu_ps): Pass float * to
5347         __builtin_ia32_storeups512_mask.
5348         (_mm512_mask_storeu_ps): Likewise.
5349         (_mm512_mask_loadu_epi64): Pass const long long * to
5350         __builtin_ia32_loaddqudi512_mask.
5351         (_mm512_maskz_loadu_epi64): Likewise.
5352         (_mm512_mask_storeu_epi64): Pass long long *
5353         to __builtin_ia32_storedqudi512_mask.
5354         (_mm512_loadu_si512): Pass const int * to
5355         __builtin_ia32_loaddqusi512_mask.
5356         (_mm512_mask_loadu_epi32): Likewise.
5357         (_mm512_maskz_loadu_epi32): Likewise.
5358         (_mm512_storeu_si512): Pass int * to
5359         __builtin_ia32_storedqusi512_mask.
5360         (_mm512_mask_storeu_epi32): Likewise.
5361         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
5362         char * to __builtin_ia32_storedquqi256_mask.
5363         (_mm_mask_storeu_epi8): Likewise.
5364         (_mm256_mask_loadu_epi16): Pass const short * to
5365         __builtin_ia32_loaddquhi256_mask.
5366         (_mm256_maskz_loadu_epi16): Likewise.
5367         (_mm_mask_loadu_epi16): Pass const short * to
5368         __builtin_ia32_loaddquhi128_mask.
5369         (_mm_maskz_loadu_epi16): Likewise.
5370         (_mm256_mask_loadu_epi8): Pass const char * to
5371         __builtin_ia32_loaddquqi256_mask.
5372         (_mm256_maskz_loadu_epi8): Likewise.
5373         (_mm_mask_loadu_epi8): Pass const char * to
5374         __builtin_ia32_loaddquqi128_mask.
5375         (_mm_maskz_loadu_epi8): Likewise.
5376         (_mm256_mask_storeu_epi16): Pass short * to.
5377         __builtin_ia32_storedquhi256_mask.
5378         (_mm_mask_storeu_epi16): Pass short * to.
5379         __builtin_ia32_storedquhi128_mask.
5380         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
5381         const double * to __builtin_ia32_loadupd256_mask.
5382         (_mm256_maskz_loadu_pd): Likewise.
5383         (_mm_mask_loadu_pd): Pass onst double * to
5384         __builtin_ia32_loadupd128_mask.
5385         (_mm_maskz_loadu_pd): Likewise.
5386         (_mm256_mask_storeu_pd): Pass double * to
5387         __builtin_ia32_storeupd256_mask.
5388         (_mm_mask_storeu_pd): Pass double * to
5389         __builtin_ia32_storeupd128_mask.
5390         (_mm256_mask_loadu_ps): Pass const float * to
5391         __builtin_ia32_loadups256_mask.
5392         (_mm256_maskz_loadu_ps): Likewise.
5393         (_mm_mask_loadu_ps): Pass const float * to
5394         __builtin_ia32_loadups128_mask.
5395         (_mm_maskz_loadu_ps): Likewise.
5396         (_mm256_mask_storeu_ps): Pass float * to
5397         __builtin_ia32_storeups256_mask.
5398         (_mm_mask_storeu_ps): ass float * to
5399         __builtin_ia32_storeups128_mask.
5400         (_mm256_mask_loadu_epi64): Pass const long long * to
5401         __builtin_ia32_loaddqudi256_mask.
5402         (_mm256_maskz_loadu_epi64): Likewise.
5403         (_mm_mask_loadu_epi64): Pass const long long * to
5404         __builtin_ia32_loaddqudi128_mask.
5405         (_mm_maskz_loadu_epi64): Likewise.
5406         (_mm256_mask_storeu_epi64): Pass long long * to
5407         __builtin_ia32_storedqudi256_mask.
5408         (_mm_mask_storeu_epi64): Pass long long * to
5409         __builtin_ia32_storedqudi128_mask.
5410         (_mm256_mask_loadu_epi32): Pass const int * to
5411         __builtin_ia32_loaddqusi256_mask.
5412         (_mm256_maskz_loadu_epi32): Likewise.
5413         (_mm_mask_loadu_epi32): Pass const int * to
5414         __builtin_ia32_loaddqusi128_mask.
5415         (_mm_maskz_loadu_epi32): Likewise.
5416         (_mm256_mask_storeu_epi32): Pass int * to
5417         __builtin_ia32_storedqusi256_mask.
5418         (_mm_mask_storeu_epi32): Pass int * to
5419         __builtin_ia32_storedqusi128_mask.
5420         * config/i386/i386-builtin-types.def (PCSHORT): New.
5421         (PINT64): Likewise.
5422         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
5423         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
5424         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
5425         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
5426         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
5427         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
5428         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
5429         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
5430         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
5431         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
5432         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
5433         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
5434         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
5435         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
5436         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
5437         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
5438         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
5439         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
5440         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
5441         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
5442         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
5443         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
5444         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
5445         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
5446         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
5447         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
5448         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
5449         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
5450         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
5451         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
5452         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
5453         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
5454         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
5455         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
5456         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
5457         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
5458         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
5459         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
5460         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
5461         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
5462         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
5463         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
5464         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
5465         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
5466         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
5467         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
5468         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
5469         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
5470         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
5471         use UNSPEC_STOREU.
5472         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
5473         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
5474         load nor store.
5475         (ix86_expand_vector_move_misalign): Likewise.
5476         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
5477         to scalar function prototype for unaligned load/store builtins.
5478         (ix86_expand_special_args_builtin): Updated.
5479         * config/i386/sse.md (UNSPEC_LOADU): Removed.
5480         (UNSPEC_STOREU): Likewise.
5481         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
5482         (VI_ULOADSTORE_F_AVX512VL): Likewise.
5483         (ssescalarsize): Handle V4TI, V2TI and V1TI.
5484         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
5485         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
5486         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
5487         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
5488         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
5489         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
5490         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
5491         (<avx512>_storedqu<mode>_mask): Likewise.
5492         (*sse4_2_pcmpestr_unaligned): Likewise.
5493         (*sse4_2_pcmpistr_unaligned): Likewise.
5494         (*mov<mode>_internal): Renamed to ...
5495         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
5496         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
5497         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
5498         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
5499
5500 2016-04-19  Richard Biener  <rguenther@suse.de>
5501
5502         PR tree-optimization/70171
5503         * tree-ssa-phiprop.c: Include stor-layout.h.
5504         (phiprop_insert_phi): Handle the aggregate copy case.
5505         (propagate_with_phi): Likewise.
5506
5507 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
5508
5509         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
5510         instead of simplify_gen_subreg (... , 0).
5511         (ix86_delegitimize_address): Ditto.
5512         (ix86_split_divmod): Ditto.
5513         (ix86_split_copysign_const): Ditto.
5514         (ix86_split_copysign_var): Ditto.
5515         (ix86_expand_args_builtin): Ditto.
5516         (ix86_expand_round_builtin): Ditto.
5517         (ix86_expand_special_args_builtin): Ditto.
5518         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
5519         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
5520         (udivmodqi4): Ditto.
5521         (absneg splitters): Ditto.
5522         (*jcc_bt<mode>_1): Ditto.
5523
5524 2016-04-19  Richard Biener  <rguenther@suse.de>
5525
5526         PR tree-optimization/70724
5527         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
5528         restoring out from ...
5529         (free_scc_vn): ... here.
5530         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
5531         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
5532         tail merging.
5533         (pass_fre::execute): Restore SSA info.
5534
5535 2016-04-19  Richard Biener  <rguenther@suse.de>
5536
5537         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
5538         * gimple-walk.c (walk_gimple_op): Initialize it.
5539         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
5540         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
5541         remapping SSA names of defs.
5542         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
5543         adjustment.
5544
5545 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
5546
5547         PR middle-end/70689
5548         * lra-constraints.c (equiv_substition_p): New.
5549         (process_alt_operands): Use it.
5550         (swap_operands): Swap it.
5551         (curr_insn_transform): Update it.
5552
5553 2016-04-18  Michael Matz  <matz@suse.de>
5554
5555         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
5556         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
5557         * tree-core.h (tree_type_common.align): Use bit-field.
5558         (tree_type_common.spare): New.
5559         (tree_decl_common.off_align): Make smaller.
5560         (tree_decl_common.align): Use bit-field.
5561
5562         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
5563         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
5564         (scan_sharing_clauses): Ditto.
5565         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
5566         (omp_finish_file): Ditto.
5567         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
5568         (layout_decl): Ditto.
5569         (relayout_decl): Ditto.
5570         (finalize_record_size): Use SET_TYPE_ALIGN.
5571         (finalize_type_size): Ditto.
5572         (finish_builtin_struct): Ditto.
5573         (layout_type): Ditto.
5574         (initialize_sizetypes): Ditto.
5575         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
5576         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
5577         (lookup_field_for_decl): Use SET_DECL_ALIGN.
5578         (get_chain_field): Ditto.
5579         (get_trampoline_type): Ditto.
5580         (get_nl_goto_field): Ditto.
5581         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
5582         SET_DECL_ALIGN.
5583         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
5584         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
5585         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
5586         (build_qualified_type): Use SET_TYPE_ALIGN.
5587         (build_aligned_type, build_range_type_1): Ditto.
5588         (build_atomic_base): Ditto.
5589         (build_common_tree_nodes): Ditto.
5590         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
5591         (expand_one_stack_var_at): Ditto.
5592         * coverage.c (build_var): Use SET_DECL_ALIGN.
5593         * except.c (init_eh): Ditto.
5594         * function.c (assign_parm_setup_block): Ditto.
5595         * symtab.c (increase_alignment_1): Ditto.
5596         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
5597         * tree-vect-stmts.c (ensure_base_align): Ditto.
5598         * varasm.c (align_variable): Ditto.
5599         (assemble_variable): Ditto.
5600         (build_constant_desc): Ditto.
5601         (output_constant_def_contents): Ditto.
5602
5603         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
5604         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
5605         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
5606         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
5607         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
5608
5609 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
5610
5611         PR target/70708
5612         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
5613         replace %vmovsd with "%vmovq".
5614         (vec_concatv2df): Likewise.
5615
5616 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
5617
5618         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
5619         (*vec_extractv2si_0): Ditto.
5620         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
5621         (zero_extended_scalar_load_operand splitters): Ditto.
5622         (vec_extract splitters): Ditto.
5623         (*vec_extractv4si_0_zext): Ditto.
5624         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
5625         and lowpart_subreg.
5626         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
5627         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
5628         (*sse4_1_extractps): Use lowpart_subreg.
5629         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
5630
5631 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5632
5633         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
5634         gld requirements.
5635         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
5636         Mention Solaris 11 packaging changes.
5637         Update gas and gld requirements.
5638         Remove reference to pre-Solaris 10 bug.
5639         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
5640         systems and bugs.
5641         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
5642         with cc.
5643
5644 2016-04-17  Jan Hubicka  <jh@suse.cz>
5645
5646         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
5647         max_loop_iterations_int.
5648
5649 2016-04-18  Richard Biener  <rguenther@suse.de>
5650
5651         PR tree-optimization/43434
5652         * tree-ssa-structalias.c (struct vls_data): New.
5653         (visit_loadstore): Handle all pointer-based accesses.
5654         (compute_dependence_clique): Compute a bitmap of restrict tags
5655         assigned bases and pass it to visit_loadstore.
5656
5657 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
5658
5659         PR target/70711
5660         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
5661         armv8.1-a and armv8.1-a+crc.
5662
5663 2016-04-18  Richard Biener  <rguenther@suse.de>
5664
5665         PR tree-optimization/70701
5666         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
5667         references after translating through a memcpy.
5668
5669 2016-04-18  Richard Biener  <rguenther@suse.de>
5670
5671         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
5672         (compute_antic): ... here.  For partial antic use regular
5673         postorder and scrap iteration.
5674         (compute_partial_antic_aux): Remove unused return value.
5675         (init_pre): Do not allocate postorder.
5676         (fini_pre): Do not free postorder.
5677
5678 2016-04-18  Richard Biener  <rguenther@suse.de>
5679
5680         PR middle-end/37870
5681         * expmed.c (extract_bit_field_1): Remove broken case
5682         using a wider MODE_INT mode.
5683
5684 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
5685
5686         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
5687         unless compiling with at least GCC-4.8.
5688
5689 2016-04-17  Jan Hubicka  <jh@suse.cz>
5690
5691         PR bootstrap/70706
5692         * graphite.c (graphite_finalize): Update call to
5693         tree_estimate_probability.
5694         * predict.h (tree_estimate_probability): Update prototype.
5695
5696 2016-04-17  Jan Hubicka  <jh@suse.cz>
5697
5698         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
5699         (tree_estimate_probability): Likewise.
5700         (pass_profile::execute): Update.
5701         (report_predictor_hitrates): New function.
5702         * profile.c (compute_branch_probabilities): Use it.
5703         * predict.h (report_predictor_hitrates): Declare.
5704
5705 2016-04-17  Jan Hubicka  <jh@suse.cz>
5706
5707         PR ipa/70018
5708         * cgraph.h (cgraph_node::set_const_flag,
5709         cgraph_node::set_pure_flag): Update prototype to return bool;
5710         update comment.
5711         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
5712         of interposable symbol are interposable, too.
5713         (cgraph_set_const_flag_1): Rename to ...
5714         (set_const_flag_1): ... this one; change to self recursive function
5715         instead of call_for_symbol_thunks_and_aliases. Handle correctly
5716         clearnig the flag in all variants and also virtual thunks of const
5717         functions are pure; track if any change was done.
5718         (cgraph_node::set_const_flag): Update.
5719         (struct set_pure_flag_info): New struct.
5720         (cgraph_set_pure_flag_1): Rename to ...
5721         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
5722         rather than pointer encoded flags; track if any changes was done;
5723         handle correctly clearning flag and setting flag of aliases already
5724         declared const.
5725         (cgraph_node::set_pure_flag): Update.
5726         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
5727
5728 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5729
5730         PR other/70433
5731         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
5732         backslash in label.
5733
5734 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5735
5736         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
5737         '{}<> ' as escape-for-record.
5738
5739 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5740
5741         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
5742         structure.
5743
5744 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5745
5746         PR other/70185
5747         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
5748         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
5749         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
5750         * passes.c (finish_optimization_passes): Only call
5751         finish_graph_dump_file if dfi->graph_dump_initialized.
5752         (execute_function_dump, pass_init_dump_file): Use
5753         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
5754
5755 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5756
5757         PR tree-optimization/70256
5758         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
5759         (debug_varmap): New function.
5760
5761 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5762
5763         PR other/70183
5764         * passes.c (pass_manager::register_pass): Propagate pflags.
5765
5766 2016-04-17  Tom de Vries  <tom@codesourcery.com>
5767
5768         PR other/68875
5769         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
5770         * passes.c (pass_manager::pass_manager): Declare and init p_start in
5771         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
5772         check if it's equal to p_start.
5773         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
5774
5775 2016-04-15  Jan Hubicka  <jh@suse.cz>
5776
5777         PR ipa/70018
5778         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
5779         function does not bind to current def.
5780         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
5781         handle conservatively calls to functions that does not need to bind
5782         to current def.
5783         (check_call): Update call of worse_state.
5784         (ignore_edge_for_nothrow): Update.
5785         (ignore_edge_for_pure_const): Likewise.
5786         (propagate_pure_const): Update calls to worse_state.
5787         (skip_function_for_local_pure_const): Reformat comments.
5788
5789 2016-04-15  Jan Hubicka  <jh@suse.cz>
5790
5791         PR ipa/70018
5792         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
5793         (cgraph_node::function_symbol): Likewise.
5794         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
5795         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
5796         (symtab_node::ultimate_alias_target): Add REF parameter.
5797         (symtab_node::binds_to_current_def_p): Declare.
5798         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
5799         (cgraph_node::function_symbol): Likewise.
5800         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
5801         (cgraph_node::get_availability): Likewise.
5802         (cgraph_edge::binds_to_current_def_p): New inline function.
5803         (varpool_node::get_availability): Add REF parameter.
5804         (varpool_node::ultimate_alias_target): Likewise.
5805         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
5806         (symtab_node::binds_to_current_def_p): Likewise.
5807         * varpool.c (varpool_node::get_availability): Likewise.
5808
5809 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
5810
5811         PR target/70662
5812         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
5813         Fix mode size check.
5814
5815 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
5816
5817         * BASE-VER: Set to 7.0.0.
5818
5819 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
5820
5821         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
5822
5823 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5824
5825         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
5826         architecture revisions.
5827
5828 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
5829
5830         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
5831         * config/i386/i386.c (ix86_using_red_zone): No longer static.
5832         * config/i386/i386.md (stack decrement to push peepholes): Guard
5833         with !x86_using_red_zone ().
5834
5835 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
5836
5837         PR c++/70675
5838         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
5839         to dump_generic_node.
5840         (NIY): Pass also flags to do_niy.
5841
5842 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5843
5844         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
5845         (simd_clone_vector_of_formal_parm_types)
5846         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
5847         (simd_clone_mangle, simd_clone_create)
5848         (simd_clone_adjust_return_type, create_tmp_simd_array)
5849         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
5850         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
5851         (ipa_simd_modify_function_body, simd_clone_linear_addend)
5852         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
5853         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
5854         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
5855         * omp-simd-clone.c: ... this new file.
5856         (simd_clone_vector_of_formal_parm_types): Make it static.
5857         * Makefile.in (OBJS): Add omp-simd-clone.o.
5858
5859 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
5860
5861         PR target/70662
5862         * config/i386/sse.md: Use proper memory operand modifiers.
5863
5864
5865 2016-04-15  Richard Biener  <rguenther@suse.de>
5866         Alan Modra  <amodra@gmail.com>
5867
5868         PR tree-optimization/70130
5869         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
5870         when alignment stays not the same and no not use the realign
5871         scheme then.
5872
5873 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5874
5875         PR target/70669
5876         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
5877         direct move handlers for KFmode. Change TFmode handlers test from
5878         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
5879
5880 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
5881
5882         PR c++/70594
5883         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
5884         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
5885         (inlined_polymorphic_ctor_dtor_block_p): Use it.
5886         * tree-ssa-live.c (remove_unused_scope_block_p): When
5887         in_ctor_dtor_block, avoid discarding not just BLOCKs with
5888         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
5889         block_ultimate_origin is FUNCTION_DECL.
5890         (remove_unused_locals): If current_function_decl is
5891         polymorphic_ctor_dtor_p, pass initial true to
5892         remove_unused_scope_block_p' is_ctor_dtor_block.
5893
5894 2016-04-14  Martin Sebor  <msebor@redhat.com>
5895
5896         PR c++/69517
5897         PR c++/70019
5898         PR c++/70588
5899         * doc/extend.texi (Variable Length): Revert.
5900
5901 2016-04-14  Marek Polacek  <polacek@redhat.com>
5902             Jan Hubicka  <hubicka@ucw.cz>
5903
5904         PR c++/70029
5905         * tree.c (verify_type): Disable the canonical type of main variant
5906         check.
5907
5908 2016-04-14  Jason Merrill  <jason@redhat.com>
5909
5910         * cfgexpand.c, expr.c: Revert previous change.
5911
5912 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5913
5914         PR middle-end/70643
5915         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
5916         when building a mem ref for the incoming reduction variable.
5917
5918 2016-04-14  Richard Biener  <rguenther@suse.de>
5919
5920         PR tree-optimization/70614
5921         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
5922         loop if the evolution dropped to chrec_dont_know.
5923         (interpret_condition_phi): Likewise.
5924
5925 2016-04-14  Richard Biener  <rguenther@suse.de>
5926
5927         PR tree-optimization/70623
5928         * tree-ssa-pre.c (changed_blocks): Make global ...
5929         (compute_antic): ... local here.  Move and fix worklist
5930         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
5931         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
5932         worklist handling, dump when ANTIC_IN changed.
5933         (compute_partial_antic_aux): Remove worklist handling.
5934         (init_pre): Do not compute post dominators.  Add a comment about
5935         the CFG order chosen.
5936         (fini_pre): Do not free post dominators.
5937
5938 2016-04-13  Martin Sebor  <msebor@redhat.com>
5939
5940         PR c++/69517
5941         PR c++/70019
5942         PR c++/70588
5943         * doc/extend.texi (Variable Length): Document C++ specifics.
5944
5945 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
5946
5947         PR c++/70641
5948         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
5949         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
5950         eh edges have been purged.
5951
5952         PR c++/70594
5953         * tree-sra.c (create_access_replacement,
5954         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
5955         gets fancy name.
5956         * tree-pretty-print.c (dump_fancy_name): New function.
5957         (dump_decl_name, dump_generic_node): Use it.
5958
5959 2016-04-13  Jason Merrill  <jason@redhat.com>
5960
5961         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
5962         * expr.c (expand_expr_real_1): Likewise.
5963
5964 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5965
5966         * config/i386/i386.md (kunpckhi): Swap operands.
5967         (kunpcksi): Likewise.
5968         (kunpckdi): Likewise.
5969         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
5970         (vec_pack_trunc_<mode>): Likewise.
5971
5972 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
5973
5974         PR debug/70628
5975         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
5976
5977         PR middle-end/70633
5978         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
5979         gimplification turns some element into non-constant.
5980
5981         PR debug/70628
5982         * rtl.h (convert_memory_address_addr_space_1): New prototype.
5983         * explow.c (convert_memory_address_addr_space_1): No longer static,
5984         add NO_EMIT argument and don't call convert_modes if true, pass
5985         it down recursively, remove break after return.
5986         (convert_memory_address_addr_space): Adjust caller.
5987         * simplify-rtx.c (simplify_unary_operation_1): Call
5988         convert_memory_address_addr_space_1 instead of convert_memory_address,
5989         if it returns NULL, don't simplify.
5990
5991 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
5992
5993         PR target/70630
5994         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
5995
5996 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
5997
5998         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5999         Bump the upper SIMDLEN limits, so that if the return type or
6000         characteristic type if the return type is void can be passed in
6001         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
6002         allowed.
6003
6004 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6005
6006         PR target/70640
6007         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
6008         Do not use "=" constraint on an input constraint.
6009         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6010         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6011         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
6012         generates (neg (abs ...)) instead of (abs ...).
6013
6014 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
6015
6016         PR rtl-optimization/70596
6017         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
6018         just invalidate LRA data and reset them.  Adjust dump wording.
6019
6020 2016-04-12  Martin Liska  <mliska@suse.cz>
6021
6022         Revert
6023         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
6024
6025         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6026         estimates here.
6027         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6028         max_loop_iterations_int.
6029         (tree_unswitch_outer_loop): Likewise.
6030         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6031         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6032
6033 2016-04-12  Tom de Vries  <tom@codesourcery.com>
6034
6035         PR tree-optimization/68756
6036         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
6037         instead of new_name.
6038
6039 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
6040
6041         PR tree-optimization/70602
6042         * tree-sra.c (generate_subtree_copies): Don't write anything into
6043         constant pool decls.
6044
6045         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
6046         regardless whether there are depend clauses or not.
6047
6048 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6049
6050         PR target/70381
6051         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
6052         target attribute and pragma from changing the -mfloat128
6053         and -mfloat128-hardware options.
6054
6055         * doc/extend.texi (Additional Floating Types): Document PowerPC
6056         __float128 restrictions.
6057
6058 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6059
6060         PR target/70133
6061         * config/aarch64/driver-aarch64.c
6062         (aarch64_get_extension_string_for_isa_flags): New.
6063         (arch_extension): Rename to...
6064         (aarch64_arch_extension): ...This.
6065         (ext_to_feat_string): Rename to...
6066         (aarch64_extensions): ...This.
6067         (aarch64_core_data): Keep track of architecture extension flags.
6068         (cpu_data): Rename to...
6069         (aarch64_cpu_data): ...This.
6070         (aarch64_arch_driver_info): Keep track of architecture extension
6071         flags.
6072         (get_arch_name_from_id): Rename to...
6073         (get_arch_from_id): ...This, change return type.
6074         (host_detect_local_cpu): Update and reformat for renames, handle
6075         extensions through common infrastructure.
6076
6077 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6078
6079         PR target/70133
6080         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
6081         track of a canonical flag name.
6082         (all_extensions): Likewise.
6083         (arch_to_arch_name): Also track extension flags enabled by the arch.
6084         (all_architectures): Likewise.
6085         (aarch64_parse_extension): Move to here.
6086         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
6087         rework.
6088         (aarch64_rewrite_selected_cpu): Update for above change.
6089         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
6090         are handled, such that the single explicit value enabled by an
6091         extension is kept seperate from the implicit values it also enables.
6092         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
6093         to here.
6094         (aarch64_parse_extension): New.
6095         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
6096         here to config/aarch64/aarch64-protos.h.
6097         (aarch64_parse_extension): Move from here to
6098         common/config/aarch64/aarch64-common.c.
6099         (aarch64_option_print): Update.
6100         (aarch64_declare_function_name): Likewise.
6101         (aarch64_start_file): Likewise.
6102         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
6103         the canonical flag for extensions.
6104         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
6105         flags.
6106
6107 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
6108
6109         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
6110         AARCH64_FL_CRC.
6111
6112 2016-04-09  Tom de Vries  <tom@codesourcery.com>
6113
6114         PR tree-optimization/68953
6115         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
6116         first to last subscript.
6117
6118 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
6119
6120         PR tree-optimization/70586
6121         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
6122         for any calls.
6123
6124 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
6125
6126         PR lto/70289
6127         PR ipa/70348
6128         PR tree-optimization/70373
6129         PR middle-end/70533
6130         PR middle-end/70534
6131         PR middle-end/70535
6132         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
6133         clauses for acc parallel reductions as necessary.  Error on those
6134         that are private.
6135         * omp-low.c (scan_sharing_clauses): Don't install variables which
6136         are used in acc parallel reductions.
6137         (lower_rec_input_clauses): Remove dead code.
6138         (lower_oacc_reductions): Add support for reference reductions.
6139         (lower_reduction_clauses): Remove dead code.
6140         (lower_omp_target): Don't remap variables appearing in acc parallel
6141         reductions.
6142         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
6143
6144 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
6145
6146         PR middle-end/70593
6147         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
6148         with multiple SSA_NAME defs, force the outputs other than first
6149         to be live before calling live_track_process_def on each output.
6150
6151         PR rtl-optimization/70574
6152         * fwprop.c (forward_propagate_and_simplify): Don't add
6153         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
6154         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
6155         paradoxical subregs within *loc.
6156
6157 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
6158
6159         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
6160         -ftree-parallelize-loops={0,1}.
6161         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
6162         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
6163         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6164         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6165         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6166
6167 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
6168
6169         PR sanitizer/70541
6170         * asan.c (instrument_derefs): If we get unknown location, extract it
6171         with EXPR_LOCATION.
6172         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
6173
6174 2016-04-08  Tom de Vries  <tom@codesourcery.com>
6175
6176         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
6177         implicit firstprivate clause.
6178
6179 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6180
6181         PR target/70566
6182         * config/arm/thumb2.md (tst + branch-> lsls + branch
6183         peephole below *orsi_not_shiftsi_si): Require that condition
6184         register is dead after the peephole.
6185         (second peephole after the above): Likewise.
6186
6187 2016-04-08  Alan Modra  <amodra@gmail.com>
6188
6189         PR target/70117
6190         * builtins.c (fold_builtin_classify): For IBM extended precision,
6191         look at just the high-order double to test for NaN.
6192         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
6193         test just the high double for Inf but both doubles for subnormal
6194         limit.
6195
6196 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
6197
6198         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
6199         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
6200         node->simdclone->mask_mode != VOIDmode masks.
6201         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
6202         earlier, use it instead of node->simdclone.
6203         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6204         Set clonei->mask_mode.
6205
6206 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
6207
6208         PR c/70436
6209         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
6210         Pass it through to cp_parser_already_scoped_statement.
6211         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
6212         it through to cp_parser_statement.
6213         (cp_parser_statement): Pass IF_P through to
6214         cp_parser_iteration_statement.
6215         (cp_parser_pragma): Adjust call to
6216         cp_parser_iteration_statement.
6217
6218 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
6219
6220         PR c/70436
6221         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
6222         resolve a future -Wparentheses warning.
6223         * omp-low.c (scan_sharing_clauses): Likewise.
6224         * tree-parloops.c (eliminate_local_variables): Likewise.
6225
6226 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
6227
6228         PR rtl-optimization/70398
6229         * lra-constraints.c (process_address_1): Check zero scale and code
6230         for reloading with zero scale.
6231
6232 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
6233
6234         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
6235         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
6236
6237 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
6238
6239         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6240         Add support for AVX512F clones, include them by default for
6241         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
6242         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
6243         up to 128.
6244
6245         PR middle-end/70550
6246         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
6247         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
6248         firstprivate clauses.
6249         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
6250         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
6251         (lower_omp_target): Set TREE_NO_WARNING for
6252         non-addressable possibly uninitialized vars which are copied into
6253         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
6254
6255 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
6256
6257         * config/pa/predicates.md (integer_store_memory_operand): Accept
6258         REG+D operands with a large offset when reload_in_progress is true.
6259         (floating_point_store_memory_operand): Likewise.
6260
6261 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
6262
6263         PR c++/70336
6264         * match.pd (nested int casts): Limit to GIMPLE.
6265
6266 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
6267
6268         PR ipa/66223
6269         * ipa-devirt.c (maybe_record_node): Fix comment; use
6270         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
6271
6272 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
6273
6274         PR rtl-optimization/70542
6275         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
6276         if there are any uses other than insn or debug insns.
6277
6278 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
6279             Jakub Jelinek  <jakub@redhat.com>
6280
6281         PR tree-optimization/70509
6282         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
6283         Shift HOST_WIDE_INT_1U instead of 1.
6284
6285 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
6286
6287         PR tree-optimization/70509
6288         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
6289         of the vector base type for index.
6290
6291 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
6292
6293         PR target/70510
6294         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
6295
6296 2016-04-05  Richard Biener  <rguenther@suse.de>
6297
6298         PR tree-optimization/70526
6299         * tree-sra.c (build_ref_for_offset): Use prev_base to
6300         extract the alias pointer type.
6301
6302 2016-04-05  Richard Biener  <rguenther@suse.de>
6303
6304         * dse.c (struct store_info): Remove alias_set member.
6305         (struct read_info_type): Likewise.
6306         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
6307         spill_deleted, clear_alias_set_lookup): Remove.
6308         (get_group_info): Remove dead base == NULL_RTX case.
6309         (dse_step0): Remove initialization of removed variables.
6310         (delete_dead_store_insn): Reomve alias set dumping.
6311         (free_read_records): Remove alias_set handling.
6312         (canon_address): Remove alias_set_out parameter.
6313         (record_store): Remove spill_alias_set, it's always zero.
6314         (check_mem_read_rtx): Likewise.
6315         (dse_step2): Rename from ...
6316         (dse_step2_nospill): ... this.  Adjust.
6317         (scan_stores): Rename from ...
6318         (scan_stores_nospill): ... this.
6319         (scan_reads): Rename from ...
6320         (scan_reads_nospill): ... this.
6321         (scan_stores_spill, scan_reads_spill): Remove.
6322         (dse_step3_scan): Remove for_spills argument which is always false.
6323         (dse_step3): Likewise.
6324         (dse_step5): Rename from ...
6325         (dse_step5_nospill): ... this.  Remove alias_set handling.
6326         (rest_of_handle_dse): Adjust.
6327
6328 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
6329
6330         PR target/70525
6331         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
6332         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
6333         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
6334         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
6335
6336 2016-04-05  Richard Biener  <rguenther@suse.de>
6337
6338         PR middle-end/70499
6339         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
6340         non-register type temporaries into SSA.
6341
6342 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
6343
6344         PR ipa/66223
6345         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
6346         calls when sanitizing.
6347         (possible_polymorphic_call_target_p): Fix formatting.
6348
6349 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6350             Jakub Jelinek <jakub@redhat.com>
6351
6352         PR middle-end/70457
6353         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
6354         to ensure a call statement is compatible with a built-in's
6355         prototype.
6356         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
6357         Likewise.
6358
6359 2016-04-04  Richard Biener  <rguenther@suse.de>
6360
6361         PR rtl-optimization/70484
6362         * rtl.h (canon_output_dependence): Declare.
6363         * alias.c (canon_output_dependence): New function.
6364         * dse.c (record_store): Use canon_output_dependence rather
6365         than canon_true_dependence.
6366
6367 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
6368
6369         PR ipa/68881
6370         * cgraph.h (symtab_node::copy_visibility_from): New function.
6371         * symtab.c (symtab_node::copy_visibility_from): New function.
6372         * ipa-visibility.c (optimize_weakref): New function.
6373         (function_and_variable_visibility): Use it.
6374
6375 2016-04-04  Martin Liska  <mliska@suse.cz>
6376
6377         PR hsa/70402
6378         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
6379         value that is really in range handled by SBR instruction.
6380         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
6381         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
6382         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
6383
6384 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
6385
6386         PR target/70416
6387         PR target/67391
6388         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
6389         set, but not for SP_REG operands.
6390
6391 2016-04-02  Martin Sebor  <msebor@redhat.com>
6392
6393         PR c++/67376
6394         * fold-const.c (maybe_nonzero_address): New function.
6395         (fold_comparison): Call it.  Fold equality and relational
6396         expressions involving null pointers.
6397         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
6398
6399 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
6400
6401         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
6402         the "Y" constraint (scalar FP 0.0 immediate).
6403
6404         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
6405         Add the "const_double" to the list of operand constraints.
6406
6407 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
6408
6409         PR rtl-optimization/70467
6410         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
6411         If low word of the last operand is 0, just emit addition/subtraction
6412         for the high word.
6413
6414 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6415
6416         PR target/70404
6417         * config/s390/s390.c (s390_expand_insv): Check for everything
6418         constant instead of just VOIDmode stuff.
6419
6420 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6421
6422         PR target/70496
6423         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
6424
6425 2016-04-01  Nathan Sidwell  <nathan@acm.org>
6426
6427         * tree.def (TRY_CATCH_EXPR): Correct documentation.
6428
6429 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
6430
6431         PR rtl-optimization/70461
6432         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
6433         is necessary.
6434
6435 2016-03-31  Martin Liska  <mliska@suse.cz>
6436
6437         PR hsa/70399
6438         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
6439         a tree value or an immediate integer value to a buffer
6440         that is eventually copied to a BRIG section.
6441         (emit_immediate_operand): Call the function here.
6442         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
6443         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
6444         of class' fields that are removed.
6445         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
6446         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
6447         m_brig_repr_size fields.
6448
6449 2016-03-31  Martin Liska  <mliska@suse.cz>
6450
6451         PR hsa/70391
6452         * hsa-gen.c (hsa_function_representation::update_dominance): New
6453         function.
6454         (convert_addr_to_flat_segment): Likewise.
6455         (gen_hsa_memory_set): New alignment argument.
6456         (gen_hsa_ctor_assignment): Likewise.
6457         (gen_hsa_insns_for_single_assignment): Provide alignment
6458         to gen_hsa_ctor_assignment.
6459         (gen_hsa_insns_for_direct_call): Add new argument.
6460         (expand_lhs_of_string_op): New function.
6461         (expand_string_operation_builtin): Likewise.
6462         (expand_memory_copy): New function.
6463         (expand_memory_set): New function.
6464         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
6465         (convert_switch_statements): Change signature.
6466         (generate_hsa): Use a return value of the function.
6467         (pass_gen_hsail::execute): Do not call
6468         convert_switch_statements here.
6469         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
6470         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
6471         (hsa_function_representation::update_dominance): New function.
6472
6473 2016-03-31  Martin Liska  <mliska@suse.cz>
6474
6475         PR hsa/70391
6476         * hsa-brig.c (emit_directive_variable): Emit alignment
6477         according to hsa_symbol::m_align.
6478         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
6479         (dump_hsa_symbol): Dump alignment of HSA symbols.
6480         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
6481         (gen_hsa_addr_with_align): New function.
6482         (hsa_bitmemref_alignment): Use newly added function.
6483         (gen_hsa_insns_for_load): Likewise.
6484         (gen_hsa_insns_for_store): Likewise.
6485         (gen_hsa_memory_copy): New argument added.
6486         (gen_hsa_insns_for_single_assignment): Respect
6487         alignment for assignments processed via gen_hsa_memory_copy.
6488         (gen_hsa_insns_for_direct_call): Likewise.
6489         (gen_hsa_insns_for_return): Likewise.
6490         (gen_function_def_parameters): Set default alignment.
6491         * hsa.c (hsa_object_alignment): New function.
6492         (hsa_byte_alignment): Pasted function.
6493         * hsa.h (hsa_symbol::m_align): New field.
6494
6495 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
6496
6497         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
6498         scratch field for goto case.
6499
6500 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
6501
6502         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
6503
6504 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
6505
6506         PR target/70442
6507         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
6508         (scalar_chain::convert_insn): Call convert_op for reg
6509         moves to handle undefined registers.
6510
6511 2016-03-31  Nathan Sidwell  <nathan@acm.org>
6512
6513         PR c++/70393
6514         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
6515         Assert we don't want to move backwards.
6516
6517 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
6518
6519         PR target/70453
6520         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
6521
6522 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
6523
6524         PR rtl-optimization/70460
6525         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
6526         with operand from REG_LABEL_OPERAND, instead substitute
6527         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
6528         Don't do anything for REG_NON_LOCAL_GOTO jumps.
6529
6530 2016-03-31  Martin Liska  <mliska@suse.cz>
6531
6532         * passes.c (execute_one_pass): Do not call
6533         todo_after for a discarded function.
6534
6535 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
6536
6537         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
6538         (no_cost, infinite_cost): Initialize the new field.
6539         (get_computation_cost_at): Record setup cost.
6540         (determine_use_iv_cost_address): Skip cost computation for sub
6541         uses if we can estimate it without losing accuracy.
6542
6543 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
6544
6545         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6546         estimates here.
6547         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6548         max_loop_iterations_int.
6549         (tree_unswitch_outer_loop): Likewise.
6550         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6551         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6552
6553 2016-03-30  Richard Biener  <rguenther@suse.de>
6554
6555         PR middle-end/70450
6556         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
6557
6558 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
6559
6560         PR target/70421
6561         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
6562         in gen_blendm expander.
6563
6564 2016-03-30  Nick Clifton  <nickc@redhat.com>
6565
6566         PR target/62254
6567         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
6568         case where we are already provided with an SImode SUBREG.
6569
6570 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6571
6572         PR target/70439
6573         * config/i386/i386.c (ix86_expand_epilogue): Properly check
6574         conflict between DRAP register and __builtin_eh_return.
6575
6576 2016-03-30  Michael Matz  <matz@suse.de>
6577             Richard Biener  <rguenther@suse.de>
6578
6579         PR ipa/12392
6580         * ipa-polymorphic-call.c (struct type_change_info): Change
6581         speculative to an unsigned allowing to limit the work we do.
6582         (csftc_abort_walking_p): New inline function..
6583         (check_stmt_for_type_change): Limit the number of may-defs
6584         skipped for speculative devirtualization to
6585         max-speculative-devirt-maydefs.
6586         * params.def (max-speculative-devirt-maydefs): New param.
6587         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
6588
6589 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
6590
6591         PR target/63890
6592         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
6593         and TARGET_MACHO.
6594
6595 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
6596
6597         PR tree-optimization/59124
6598         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
6599         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
6600
6601 2016-03-29  Jeff Law  <law@redhat.com>
6602
6603         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
6604
6605 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6606
6607         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
6608         to HOST_WIDE_INT.
6609
6610 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
6611
6612         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
6613         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
6614         gcrt0.o if linking dynamically.
6615
6616 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
6617
6618         PR ipa/70283
6619         * ipa-devirt.c (methods_equal_p): New function.
6620         (compare_virtual_tables): Use it.
6621         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
6622         * cgraphclones.c (clone_function_name_1): Use
6623         symbol_table::symbol_suffix_separator.
6624         * coverage.c (build_var): Likewise.
6625         * symtab.c (symbol_table::symbol_suffix_separator): New.
6626
6627 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
6628
6629         PR rtl-optimization/70429
6630         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
6631         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
6632         mode != result_mode.
6633
6634         PR c++/70353
6635         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
6636
6637         PR tree-optimization/70405
6638         * ssa-iterators.h (num_imm_uses): Add missing braces.
6639
6640 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6641
6642         PR rtl-optimization/68695
6643         * ira-color.c (allocno_copy_cost_saving): New.
6644         (improve_allocation): Use it.
6645
6646 2016-03-29  Richard Henderson  <rth@redhat.com>
6647
6648         PR middle-end/70355
6649         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
6650
6651 2016-03-29  Richard Biener  <rguenther@suse.de>
6652
6653         PR middle-end/70424
6654         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
6655         use alignment returned by get_pointer_alignment_1 if it is
6656         bigger than BITS_PER_UNIT.
6657         * builtins.c (get_pointer_alignment_1): Do not return true
6658         for alignment extracted from SSA info.
6659
6660 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
6661
6662         * config/ft32/ft32.opt (mnodiv): New.
6663         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
6664         * doc/invoke.texi (FT32 Options -mnodiv): New.
6665
6666 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
6667
6668         PR target/70406
6669         * config/i386/i386.md (define_split, andn): Fix modes.
6670
6671 2016-03-26  Richard Biener  <rguenther@suse.de>
6672             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6673
6674         PR ipa/70366
6675         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
6676         instead of
6677         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
6678         as 2nd argument to cl_optimization_restore().
6679
6680 2016-03-25  Richard Henderson  <rth@redhat.com>
6681
6682         PR target/70120
6683         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
6684         * config/aarch64/aarch64-protos.h: Declare it.
6685         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
6686
6687 2016-03-25  Alan Modra  <amodra@gmail.com>
6688
6689         PR target/70052
6690         * config/rs6000/constraints.md (j): Simplify.
6691         * config/rs6000/predicates.md (easy_fp_constant): Exclude
6692         decimal float 0.D.
6693         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
6694         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
6695          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
6696         in all constraint alternatives.
6697         (movtd_64bit_nodm): Delete "j" constraint alternative.
6698
6699 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
6700
6701         * tree-ssa-propagate.c: Enhance docs for
6702         SSA_PROP_NOT_INTERESTING.
6703
6704 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
6705
6706         * doc/extend.texi: Fix typo in documentation to pure attribute.
6707
6708 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
6709
6710         PR target/70319
6711         * config/pa/pa.md (bswapdi2): Use a scratch register.
6712
6713 2016-03-24  Richard Henderson  <rth@redhat.com>
6714
6715         PR middle-end/69845
6716         * fold-const.c (extract_muldiv_1): Correct test for multiplication
6717         overflow.
6718
6719 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
6720
6721         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
6722         using ix86_expand_binary_operator instead of gen_andsi3.
6723
6724 2016-03-24  Richard Biener  <rguenther@suse.de>
6725
6726         PR tree-optimization/70396
6727         * tree-vect-stmts.c (vectorizable_comparison): Use
6728         get_vectype_for_scalar_type.
6729
6730 2016-03-24  Richard Biener  <rguenther@suse.de>
6731
6732         PR middle-end/70370
6733         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
6734         with register bases.
6735
6736 2016-03-24  Richard Biener  <rguenther@suse.de>
6737
6738         PR tree-optimization/70372
6739         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
6740         build_all_ones_cst to also handle vector types correctly.
6741
6742 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6743
6744         PR target/70381
6745         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
6746         -mfloat128 here.
6747
6748 2016-03-23  Marek Polacek  <polacek@redhat.com>
6749
6750         PR c++/69884
6751         * doc/invoke.texi: Document -Wignored-attributes.
6752
6753 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
6754
6755         PR tree-optimization/69042
6756         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
6757         parameter from 30 to 40.
6758
6759 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
6760
6761         PR tree-optimization/69042
6762         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
6763         for use with constant offset stripped in base.
6764
6765 2016-03-23  Richard Biener  <rguenther@suse.de>
6766
6767         PR middle-end/70251
6768         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
6769         mode compatibility check.
6770         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
6771
6772 2016-03-23  Jeff Law  <law@redhat.com>
6773
6774         PR tree-optimization/64058
6775         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
6776         CONFLICT_COUNT.
6777         (struct ssa_conflicts): Move up earlier in the file.
6778         (conflicts_, var_map_): New static variables.
6779         (initialize_conflict_count): New function to initialize the
6780         CONFLICT_COUNT field for each conflict pair.
6781         (compare_pairs): Lazily initialize the conflict count and use it
6782         as the first tie-breaker.
6783         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
6784         and wipe conflicts_ and map_ around the call to qsort.  Remove
6785         special case for 2 coalesce pairs.
6786         * bitmap.c (bitmap_count_unique_bits): New function.
6787         (bitmap_count_bits_in_word): New function, extracted from
6788         bitmap_count_bits.
6789         (bitmap_count_bits): Use bitmap_count_bits_in_word.
6790         * bitmap.h (bitmap_count_unique_bits): Declare it.
6791
6792 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
6793
6794         PR target/69917
6795         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
6796         transparent alias chain for decl assembler name.
6797         * config/sol2.c (solaris_assemble_visibility): Likewise.
6798
6799 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6800
6801         * config/arm/arm1020e.md (1020call_op): Reduce reservation
6802         duration.
6803         (v10_fdivs): Likewise.
6804         (v10_fdivd): Likewise.
6805
6806 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6807
6808         PR driver/70132
6809         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
6810         to not call fclose twice on file.
6811
6812 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
6813
6814         PR tree-optimization/70354
6815         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
6816         oprnd0 is wider than oprnd1 and there is a cast from the wider
6817         type to oprnd1, mask it with the mask of the narrower type.
6818
6819         PR target/70321
6820         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
6821         Optimize TARGET_STV splitters, if high or low word of last argument
6822         is 0 or -1.
6823
6824 2016-03-22  Jeff Law  <law@redhat.com>
6825
6826         PR target/70232
6827         tree-ssa-threadbackward.c
6828         (fsm_find_control_statement_thread_paths): Correctly distinguish
6829         between old style jump threads vs FSM jump threads.
6830
6831 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
6832
6833         PR target/70302
6834         * config/i386/i386.c (scalar_chain::convert_op): Support
6835         uninitialized register usage case.
6836
6837 2016-03-22  Richard Biener  <rguenther@suse.de>
6838
6839         PR middle-end/70251
6840         * genmatch.c (gen_transform): Adjust last parameter to a three-state
6841         int...
6842         (capture::gen_transform): ... to change behavior when substituting
6843         a condition into cond or not-cond expr context.
6844         (dt_simplify::gen_1): Adjust.
6845         * gimple-match-head.c: Include gimplify.h for unshare_expr.
6846         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
6847         last change and instead change to
6848         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
6849         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
6850
6851 2016-03-22  Anthony Green  <green@moxielogic.com>
6852
6853         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
6854         issue for moxiebox targets.
6855         (CC1PLUS_SPEC): Ditto.
6856
6857 2016-03-22  Richard Biener  <rguenther@suse.de>
6858
6859         PR middle-end/70333
6860         * fold-const.c (extract_muldiv_1): Properly perform multiplication
6861         in the wide type.
6862
6863 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6864
6865         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
6866
6867 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6868
6869         PR target/70325
6870         * config/i386/i386.c (def_builtin): Handle
6871         OPTION_MASK_ISA_AVX512VL to be and-ed with other
6872         bits.
6873         (const struct builtin_description bdesc_special_args[]):
6874         Remove duplicate ISA bits.
6875
6876 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
6877
6878         PR target/70329
6879         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
6880         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
6881         in a way that works also for AVX512BW.
6882
6883         PR target/70300
6884         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
6885         instead of source if operands[1] is xmm16 and above and
6886         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
6887         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
6888
6889         PR c++/70295
6890         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
6891         on assign if (*from_p) is a comparison, set it to
6892         TREE_NO_WARNING (*from_p).
6893
6894 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
6895
6896         PR middle-end/70326
6897         * lra.c (restore_scratches): Ignore deleted insns.
6898
6899 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
6900             Jakub Jelinek  <jakub@redhat.com>
6901
6902         PR tree-optimization/70317
6903         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
6904         to HONOR_NANS.
6905
6906 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
6907
6908         PR target/70327
6909         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
6910         of ix86_expand_move.
6911         (movoi): Ditto.
6912         (movti): Use general_operand for operand 1 predicate.
6913
6914 2016-03-21  Martin Liska  <mliska@suse.cz>
6915
6916         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
6917         insns.
6918         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
6919
6920 2016-03-21  Martin Liska  <mliska@suse.cz>
6921
6922         PR ipa/70306
6923         * ipa-icf.c (sem_function::parse): Skip static
6924         constructors and destructors.
6925
6926 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
6927
6928         PR target/70296
6929         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
6930         function-like macro, peek following token(s) if it is followed
6931         by CPP_OPEN_PAREN token with optional padding in between, and
6932         if not, don't treat it like a macro.
6933
6934 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
6935             Alexander Monakov  <amonakov@ispras.ru>
6936
6937         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
6938         for the stabs debug format.
6939
6940 2016-03-21  Richard Biener  <rguenther@suse.de>
6941
6942         PR tree-optimization/70310
6943         * tree-vect-generic.c (expand_vector_condition): Fold the built
6944         condition.
6945
6946 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
6947
6948         PR target/70293
6949         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
6950         Block third alternative for AVX-512VL target,
6951
6952 2016-03-21  Martin Liska  <mliska@suse.cz>
6953
6954         PR hsa/70234
6955         * hsa-brig.c (emit_function_directives): Mark unemitted
6956         global variables for emission.
6957         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
6958         (get_symbol_for_decl): Likewise.
6959         * hsa.h (struct hsa_symbol): New flag.
6960
6961 2016-03-21  Richard Biener  <rguenther@suse.de>
6962
6963         PR tree-optimization/70288
6964         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
6965         we do not estimate unsimplified all-constant conditionals or
6966         switches as optimized away.
6967
6968 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
6969
6970         PR rtl-optimization/69102
6971         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
6972         when we have a readonly dependency context.
6973
6974 2016-03-18  Jeff Law  <law@redhat.com>
6975
6976         PR rtl-optimization/70263
6977         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
6978         (update_equiv_regs): When trying to move a store to after the insn
6979         that sets the source of the store, make sure the store occurs after
6980         the insn that sets the source of the store.  When successful note
6981         the REG_EQUIV note created in the dump file.
6982
6983 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
6984             Bernd Schmidt  <bschmidt@redhat.com>
6985
6986         * doc/extend.texi: Document more potential problems with basic asms.
6987
6988 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
6989
6990         PR rtl-optimization/70278
6991         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
6992         VOIDmode.
6993
6994 2016-03-18  Jason Merrill  <jason@redhat.com>
6995
6996         * calls.c (load_register_parameters): Fix zero size sibcall logic.
6997
6998 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
6999
7000         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
7001         values to 128b regs.
7002
7003 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7004
7005         PR tree-optimization/70252
7006         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
7007         boolean vector has a proper number of elements.
7008         (supportable_narrowing_operation): Likewise.
7009
7010 2016-03-18  Tom de Vries  <tom@codesourcery.com>
7011
7012         PR ipa/70269
7013         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
7014
7015 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
7016
7017         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
7018         instead of replace_rtx for DEBUG_INSNs.
7019
7020 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7021
7022         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
7023         load type reservations.
7024
7025 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
7026
7027         PR target/70188
7028         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
7029         define_constraint for "Q" and "T" constraints.
7030
7031 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
7032
7033         Tweak the pipeline model for Exynos M1
7034
7035         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
7036         model.
7037
7038 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
7039
7040         PR c/70264
7041         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
7042         where one or both locations aren't within a line_map.
7043
7044 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7045
7046         PR driver/70192
7047         * opts.c (finish_options): Don't set flag_pie to the default if
7048         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
7049         if it is -1.
7050
7051 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
7052
7053         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
7054         true as ALL_REGS argument to replace_rtx.
7055
7056 2016-03-17  Richard Biener  <rguenther@suse.de>
7057
7058         PR debug/70271
7059         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
7060         last.
7061
7062 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
7063
7064         PR target/70245
7065         * rtl.h (replace_rtx): Add ALL_REGS argument.
7066         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
7067         equality and assert mode is the same, instead of just rtx pointer
7068         equality.
7069         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
7070         true as ALL_REGS argument to replace_rtx.
7071
7072 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
7073
7074         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
7075         for boolean vector with vector mode only.
7076         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7077
7078 2016-03-17  Nick Clifton  <nickc@redhat.com>
7079
7080         PR target/70162
7081         * config/rx/rx.c (rx_print_integer): Print negative constants in
7082         decimal.
7083
7084 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
7085
7086         PR target/70261
7087         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
7088
7089 2016-03-16  Richard Henderson  <rth@redhat.com>
7090             Richard Biener  <rguenth@suse.de>
7091
7092         PR middle-end/70240
7093         PR middle-end/68215
7094         PR tree-opt/68714
7095         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
7096         first operand as is_gimple_condexpr.
7097
7098         PR middle-end/70240
7099         PR middle-end/68215
7100         Revert r231575
7101         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
7102         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
7103         Do not gimplify the result.
7104         (do_unop): Adjust call to tree_vec_extract.
7105         (do_binop): Likewise.
7106         (do_compare): Likewise.
7107         (do_plus_minus): Likewise.
7108         (do_negate): Likewise.
7109         (expand_vector_condition): Likewise.
7110         (do_cond): Likewise.
7111
7112 2016-03-16  Richard Henderson  <rth@redhat.com>
7113
7114         PR target/70048
7115         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
7116         (aarch64_classify_address): Use it.
7117         (aarch64_legitimize_address): Force all subexpressions of PLUS
7118         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
7119
7120 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
7121             Richard Biener  <rguenth@suse.de>
7122
7123         PR target/70245
7124         * rtlanal.c (replace_rtx): For REG, if from is a REG,
7125         return to even if only REGNO is equal, and assert
7126         mode is the same.
7127
7128 2016-03-11  Jeff Law  <law@redhat.com>
7129
7130         PR rtl-optimization/70224
7131         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
7132
7133 2016-03-16  Richard Henderson  <rth@redhat.com>
7134
7135         PR middle-end/70199
7136         * function.h (struct function): Add has_forced_label_in_static.
7137         * gimplify.c (force_labels_r): Set it.
7138         * lto-streamer-in.c (input_struct_function_base): Read it.
7139         * lto-streamer-out.c (output_struct_function_base): Write it.
7140         * tree-inline.c (has_label_address_in_static_1): Remove.
7141         (copy_forbidden): Remove fndecl parameter; test
7142         has_forced_label_in_static.
7143         (inline_forbidden_p): Update call to copy_forbidden.
7144         (tree_versionable_function_p): Likewise.
7145         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
7146         (chkp_versioning): Likewise.
7147         * tree-inline.h (copy_forbidden): Update decl.
7148
7149 2016-03-16  Marek Polacek  <polacek@redhat.com>
7150
7151         PR c/70093
7152         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
7153         function being thunked if the result type doesn't have fixed size.
7154         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
7155         doesn't have fixed size.
7156
7157 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
7158
7159         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
7160         reporting malformed loop nest.
7161
7162 2016-03-16  Tom de Vries  <tom@codesourcery.com>
7163
7164         PR lto/70187
7165         * ipa-devirt.c (possible_polymorphic_call_targets): Move
7166         nodes.length () == 1 test to before first nodes[0] access.
7167
7168 2016-03-16  Tom de Vries  <tom@codesourcery.com>
7169
7170         PR tree-optimization/68715
7171         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
7172         single_pred_p test.
7173
7174 2016-03-16  Tom de Vries  <tom@codesourcery.com>
7175
7176         PR tree-optimization/68809
7177         * graphite-scop-detection.c (same_close_phi_node): Test if result types
7178         are the same.
7179
7180 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
7181             Sandra Loosemore  <sandra@codesourcery.com>
7182
7183         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
7184         on leaf attribute. Mention ELF interposition problems.
7185
7186 2016-03-16  Alan Modra  <amodra@gmail.com>
7187
7188         PR rtl-optimization/69195
7189         PR rtl-optimization/47992
7190         * ira.c (indirect_jump_optimize): Ignore artificial defs.
7191         Add comments.
7192
7193 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
7194
7195         PR bootstrap/69513
7196         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
7197
7198 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7199
7200         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
7201
7202 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
7203
7204         PR rtl-optimization/70222
7205         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
7206         optimization if mode is different from result_mode, queue up masking
7207         of the result in outer_op.  Formatting fix.
7208
7209         PR middle-end/70239
7210         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
7211         of safe_grow.
7212
7213 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
7214
7215         PR rtl-optimization/69032
7216         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
7217         looping backwards over basic block insns.
7218
7219 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
7220
7221         PR target/66660
7222         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
7223         to non-speculative when propagating trap bits.
7224
7225 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
7226
7227         PR rtl-optimization/63384
7228         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
7229         DEBUG_INSN_P insns.
7230
7231 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
7232
7233         PR target/64411
7234         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
7235         factored out from ...
7236         (sched_analyze_insn): ... here.
7237         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
7238         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
7239         get_implicit_reg_pending_clobbers in it.
7240         (setup_id_reg_sets): Use setup_id_implicit_regs.
7241         (deps_init_id): Ditto.
7242
7243 2016-03-15  Tom de Vries  <tom@codesourcery.com>
7244
7245         PR ipa/70161
7246         * cgraph.c (cgraph_node::get_body): Save, reset and restore
7247         dump_file_name.
7248         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
7249         execute_function_dump.
7250         (execute_one_pass): Don't dump function if it will be dumped after ipa
7251         transform.
7252
7253 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
7254
7255         * genrecog.c (match_pattern_2): If pred is NULL don't call
7256         safe_predicate_mode on it.
7257
7258 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
7259
7260         PR middle-end/70219
7261         * lra-constraints.c (delete_move_and_clobber): Change assertion
7262         to also allow dregno == 0.
7263
7264 2016-03-14  Richard Henderson  <rth@redhat.com>
7265
7266         PR tree-opt/68714
7267         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
7268         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
7269         (reassociate_bb): Use optimize_vec_cond_expr; avoid
7270         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
7271         on vectors.
7272
7273 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
7274
7275         PR target/70083
7276         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
7277         regs.
7278         (lra_create_live_ranges_1): initialize hard register biggest_mode to
7279         VOIDmode.
7280         * lra-constraints.c (split_reg): For hard regs, try to find the
7281         biggest single-register mode used in the function.
7282
7283 2016-03-14  Richard Biener  <rguenther@suse.de>
7284
7285         PR tree-optimization/56365
7286         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
7287         constants to compare against.
7288
7289 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
7290
7291         PR target/70098
7292         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7293         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
7294         (define_split for the GPR case): Use int_reg_operand instead of
7295         gpc_reg_operand for the output.
7296
7297 2016-03-14  Tom de Vries  <tom@codesourcery.com>
7298
7299         PR tree-optimization/70045
7300         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
7301         create_empty_if_region_on_edge argument.
7302
7303 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
7304
7305         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
7306         (STACK_CHECK_PROTECT): Likewise.
7307         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7308         (STACK_CHECK_PROTECT): Likewise.
7309         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7310         (STACK_CHECK_PROTECT): Likewise.
7311         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
7312         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7313         (STACK_CHECK_PROTECT): Likewise.
7314
7315 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
7316
7317         PR rtl-optimization/69307
7318         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
7319         registers in modes that span more than one register.
7320
7321 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
7322
7323         PR target/69614
7324         * lra-constraints.c (delete_move_and_clobber): New.
7325         (remove_inheritance_pseudos): Use it.
7326
7327 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
7328
7329         PR ada/70017
7330         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
7331         the libcall is LCT_THROW.
7332         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
7333         for the checking routine.
7334
7335 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7336
7337         PR target/70131
7338         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
7339         optimization if we have direct move.
7340         (roundu32<mode>2_fprs): Likewise.
7341
7342 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
7343
7344         PR target/70123
7345         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
7346         be rematerialized.
7347         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
7348         Arguments swapped.  All callers changed.  Take reg_renumber into
7349         account, and Calculate and compare register ranges for hard regs.
7350
7351 2016-03-11  Jeff Law  <law@redhat.com>
7352
7353         PR tree-optimization/70190
7354         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7355         Handle cases where we can not extract the taken edge, even though we
7356         found a constant value.
7357
7358         PR tree-optimization/64058
7359         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
7360         (num_coalesce_pairs): Move up earlier in file.
7361         (find_coalesce_pair): Initialize the INDEX field for each pair
7362         discovered.
7363         (compare_pairs): No longer sort on the elements in each pair.
7364         Instead break ties with the index of the coalesce pair.
7365
7366 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7367
7368         PR target/70002
7369         * config/aarch64/aarch64-protos.h
7370         (aarch64_save_restore_target_globals): New prototype.
7371         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
7372         Call the above when popping pragma.
7373         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
7374         New function.
7375         (aarch64_set_current_function): Rewrite using the above.
7376
7377 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
7378
7379         PR tree-optimization/70177
7380         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
7381         (extract_ops_from_tree): ... this.  In the 2 argument
7382         overload remove _1 suffix.
7383         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
7384         (extract_ops_from_tree): ... this.
7385         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
7386         Adjust callers.
7387         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7388         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
7389         extract_ops_from_tree instead of 2 operand one.
7390
7391 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
7392
7393         PR tree-optimization/70013
7394         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
7395         for constant-pool entries.
7396
7397 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
7398
7399         PR rtl-optimization/70174
7400         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
7401         followed by gen_lowpart on force_reg instead of just gen_lowpart.
7402
7403         PR tree-optimization/70169
7404         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
7405         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
7406         for unknown codes.
7407
7408 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
7409             Jakub Jelinek  <jakub@redhat.com>
7410
7411         PR target/70160
7412         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
7413         of uninitialized values.
7414
7415 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7416
7417         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
7418         define_expand.
7419         ("*trunctddd2"): New pattern definition.
7420         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
7421         TD->DD truncation.
7422
7423 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7424
7425         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
7426         definitions for BFP and DFP rounding modes.
7427         ("fixuns_truncdddi2", "fixuns_trunctddi2")
7428         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
7429         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
7430         ("fix_trunctf<mode>2"): Use the new constants instead of magic
7431         numbers.
7432
7433 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7434
7435         * config/s390/constraints.md: Adjust comment.
7436         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
7437         s390_decompose_addrstyle_without_index.
7438         * config/s390/predicates.md (shift_count_or_setmem_operand):
7439         Rename to setmem_operand.
7440         * config/s390/s390-protos.h
7441         (s390_decompose_shift_count): Rename to
7442         s390_decompose_addrstyle_without_index.
7443         * config/s390/s390.c (s390_decompose_shift_count)
7444         (s390_mem_constraint, print_shift_count_operand)
7445         (print_operand_address, print_operand): Rename
7446         s390_decompose_shift_count to
7447         s390_decompose_addrstyle_without_index and rename
7448         print_shift_count_operand to print_addrstyle_operand troughout the
7449         file.
7450         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
7451         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
7452         Rename shift_count_or_setmem_operand to setmem_operand.
7453         * config/s390/vx-builtins.md ("vec_insert<mode>")
7454         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
7455         nonmemory_operand.
7456
7457 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7458
7459         PR target/70168
7460         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
7461         Handle overlapping retval and newval.
7462
7463 2016-03-10  Nick Clifton  <nickc@redhat.com>
7464
7465         PR target/7044
7466         * config/aarch64/aarch64.c
7467         (aarch64_override_options_after_change_1): When forcing
7468         flag_omit_frame_pointer to be true, use a special value that can
7469         be detected if this function is called again, thus preventing
7470         flag_omit_leaf_frame_pointer from being forced to be false.
7471
7472 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7473
7474         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
7475         Set x_flag_omit_leaf_frame_pointer when handling
7476         -momit-leaf-frame-pointer.
7477
7478 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7479
7480         PR lto/69589
7481         * cgraph.c (cgraph_node::dump): Dump split_part and
7482         indirect_call_target.
7483         * cgraph.h (cgraph_node): Add indirect_call_target flag.
7484         * ipa.c (has_addr_references_p): Cleanup.
7485         (is_indirect_call_target_p): New.
7486         (walk_polymorphic_call_targets): Do not mark virtuals that may be
7487         called indirectly as local.
7488         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
7489
7490 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7491
7492         PR ipa/69630
7493         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7494         on cxa_pure_virtual.
7495
7496 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7497
7498         PR lto/69589
7499         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
7500
7501 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
7502
7503         PR lto/69589
7504         * tree.c (need_assembler_name_p): Only record main variant type names.
7505
7506 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
7507
7508         PR target/70113.
7509         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
7510         Always define to 0 or 1.
7511         (TARGET_FIX_ERR_A53_843419): New macro.
7512         * config/aarch64/aarch64-elf-raw.h
7513         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
7514         * config/aarch64/aarch64-linux.h: Likewise.
7515         * config/aarch64/aarch64.c
7516         (aarch64_override_options_after_change_1): Do not default
7517         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
7518         843419 is on.
7519         (aarch64_attributes): Handle fix-cortex-a53-843419.
7520         (aarch64_can_inline_p): Likewise.
7521         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
7522
7523 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
7524         Jakub Jelinek <jakub@redhat.com>
7525
7526         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
7527         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
7528         DECL_COMMONS if flag_unconstrained_commons is set.
7529         * tree-dfa.c (get_ref_base_and_extent): Likewise.
7530         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
7531         (funconstrained-commons): Document.
7532
7533 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
7534
7535         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
7536         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
7537
7538 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
7539
7540         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
7541         has a proper number of elements.
7542
7543 2016-03-10  Alan Modra  <amodra@gmail.com>
7544
7545         PR rtl-optimization/69195
7546         PR rtl-optimization/47992
7547         * ira.c (recorded_label_ref): Delete.
7548         (update_equiv_regs): Return void.
7549         (indirect_jump_optimize): New function.
7550         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
7551         before regstat_compute_ri.  Don't rebuild_jump_labels here.
7552         Delete update_regstat.
7553
7554 2016-03-10  Richard Biener  <rguenther@suse.de>
7555
7556         PR tree-optimization/70128
7557         * tree-ssa-structalias.c (set_uids_in_ptset): Set
7558         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
7559
7560 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
7561
7562         PR tree-optimization/70152
7563         * tree-sra.c (replace_removed_params_ssa_names): Copy over
7564         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
7565
7566         PR target/70086
7567         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
7568         instead of gen_sse2_loadlpd.
7569         * config/i386/sse.md (*vec_concatv2df): Rename to...
7570         (vec_concatv2df): ... this.
7571
7572         PR tree-optimization/70127
7573         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
7574
7575 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
7576
7577         PR c/68473
7578         PR c++/70105
7579         * diagnostic-show-locus.c (compatible_locations_p): New function.
7580         (layout::layout): Sanitize ranges using compatible_locations_p.
7581
7582 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
7583
7584         PR c/68473
7585         PR c++/70105
7586         * diagnostic-show-locus.c (layout_range::layout_range): Replace
7587         location_range param with three const expanded_locations * and a
7588         bool.
7589         (layout::layout): Replace call to
7590         rich_location::lazily_expand_location with get_expanded_location.
7591         Extract the range and perform location expansion here, passing
7592         the results to the layout_range ctor.
7593         * diagnostic.c (source_range::debug): Delete.
7594         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
7595         of rich_location::get_expanded_location.
7596         * gcc-rich-location.c (get_range_for_expr): Delete.
7597         (gcc_rich_location::add_expr): Reimplement to avoid the
7598         rich_location::add_range overload that took a location_range,
7599         passing a location_t instead.
7600
7601 2016-03-09  Richard Biener  <rguenther@suse.de>
7602         Jakub Jelinek  <jakub@redhat.com>
7603
7604         PR tree-optimization/70138
7605         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
7606         Also skip vect_double_reduction_def.
7607
7608 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
7609
7610         PR target/70049
7611         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
7612         if the operand is "m".
7613
7614 2016-03-09  Nathan Sidwell  <nathan@acm.org>
7615
7616         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
7617
7618 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7619
7620         * config/i386/i386.c (processor_target_table): Fix cost table
7621         intialization order for znver1.
7622
7623 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
7624
7625         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
7626         - becuase -> because.
7627         * ipa-reference.c (ignore_module_statics): Likewise.
7628         * cgraph.c (cgraph_node::get_body): Likewise.
7629         * ipa-inline.c (early_inliner): Likewise.
7630         * ipa-devirt.c (types_same_for_odr): Likewise.
7631         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
7632         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
7633
7634 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7635
7636         * tree-ssa-math-opts.c: Fix typo in comment.
7637
7638 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
7639
7640         PR target/70110
7641         * config/i386/i386.c (scalar_chain::make_vector_copies,
7642         scalar_chain::convert_reg): Call end_sequence in between
7643         get_insns and emit_conversion_insns rather than after both
7644         calls.
7645
7646 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
7647
7648         PR target/70064
7649         * config/i386/i386.h (machine_function): Add
7650         pc_thunk_call_expanded flag.
7651         (ix86_pc_thunk_call_expanded): New define.
7652         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
7653         (*set_got): Rename insn pattern from set_got.
7654         (*set_got_labelled): Rename inst pattern from set_got_labelled.
7655         * config/i386/i386.c (ix86_compute_frame_layout): Use
7656         ix86_pc_thunk_call_expanded to prevent red-zone.
7657
7658 2016-03-07  Martin Jambor  <mjambor@suse.cz>
7659
7660         * hsa.h (hsa_get_ctor_statements): Declare.
7661         (hsa_get_dtor_statements): Likewise.
7662         (hsa_get_kernel_dispatch_type): Likewise.
7663         * hsa.c (hsa_get_ctor_statements): New function.
7664         (hsa_get_dtor_statements): Likewise.
7665         (hsa_get_kernel_dispatch_type): Likewise.
7666         * hsa-brig.c (hsa_cdtor_statements): Removed.
7667         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
7668         hsa_get_dtor_statements.
7669         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
7670         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
7671
7672 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
7673
7674         * config/arm/arm-cores.def (cortex-r8): New.
7675         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
7676         * config/arm/arm-tune.md: Likewise.
7677         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
7678
7679 2016-03-07  Martin Sebor  <msebor@redhat.com>
7680
7681         PR rtl-optimization/19705
7682         * doc/invoke.texi (Options That Control Optimization): Clarify
7683         -fno-branch-count-reg.
7684
7685 2016-02-26  Richard Biener  <rguenther@suse.de>
7686             Jeff Law  <law@redhat.com>
7687
7688         PR tree-optimization/69740
7689         * cfghooks.c (remove_edge): Request loop fixups if we delete
7690         an edge that might turn an irreducible loop into a natural
7691         loop.
7692         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
7693         Move after definition of loops_state_clear.
7694
7695 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
7696
7697         PR rtl-optimization/69052
7698         * rtlanal.c (commutative_operand_precedence): Set higher precedence
7699         to CONST_WIDE_INT.
7700
7701 2016-03-07  Tom de Vries  <tom@codesourcery.com>
7702
7703         PR tree-optimization/70116
7704         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
7705         is_tm_ending stmts and ubsan/asan internal functions.
7706         (find_duplicate): Use it.  Don't test is_tm_ending here.
7707
7708 2016-03-07  Richard Biener  <rguenther@suse.de>
7709
7710         PR tree-optimization/70115
7711         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
7712         (propagate_constants_for_unrolling): Use replace_uses_by.
7713
7714 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
7715
7716         PR middle-end/69916
7717         * omp-low.c (struct oacc_loop): Add ifns.
7718         (new_oacc_loop_raw): Initialize it.
7719         (finish_oacc_loop): Clear mask & flags if no ifns.
7720         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
7721         (oacc_loop_xform_loop): Add ifns arg & adjust.
7722         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
7723
7724 2016-03-07  Richard Henderson  <rth@redhat.com>
7725
7726         PR rtl-opt/70061
7727         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
7728         (insert_value_copy_on_edge): Likewise.
7729
7730 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7731
7732         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
7733
7734 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7735
7736         PR target/62281
7737         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
7738
7739 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7740
7741         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
7742
7743 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
7744
7745         Fix sseimul type attribute.
7746         * config/i386/znver1.md
7747         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
7748         znver1_sseimul_avx256_load) : Fix the type attribute.
7749         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
7750         pipe usage and latency.
7751
7752 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
7753
7754         PR c++/70084
7755         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
7756         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
7757         to the right type.
7758
7759 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
7760
7761         PR c/69973
7762         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
7763
7764         PR rtl-optimization/69941
7765         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
7766         the reg share its mode.
7767
7768 2016-03-04  Jeff Law  <law@redhat.com>
7769
7770         PR tree-optimization/69196
7771         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7772         If the both SSA_NAMEs are anonymous, then consider them unassociated
7773         and include the PHI in the statement count.
7774
7775 2016-03-05  Tom de Vries  <tom@codesourcery.com>
7776
7777         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
7778         construct in oacc routine.  Check for oacc region in oacc routine.
7779
7780 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
7781
7782         PR target/70062
7783         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
7784         2016-02-22 changes, instead don't recurse if RECUR is already true.
7785         Don't change *dynamic_check if RECUR.  Adjust recursive caller
7786         to pass true to the new argument.
7787         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
7788
7789         PR target/70059
7790         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
7791         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
7792         fixes.
7793         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
7794
7795 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
7796
7797         PR rtl-optimization/57676
7798         * lra-assigns.c (lra_assign): Guard test for maximum iterations
7799         with flag_checking.
7800
7801 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
7802
7803         * tree-vect-patterns.c (search_type_for_mask): Handle
7804         comparison of booleans.
7805
7806 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
7807
7808         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
7809         Fix @xref usage.
7810
7811         PR debug/69947
7812         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
7813         all other ops that have dw_val_class_die_ref operands,
7814         and DW_OP_GNU_entry_value.
7815
7816 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7817
7818         PR rtl-optimization/69904
7819         * config/arm/arm.c (arm_cannot_copy_insn_p):
7820         Return true for load-exclusive instructions.
7821
7822 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
7823
7824         PR target/70021
7825         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
7826         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
7827         the pattern no matter if it is used just by non-pattern, pattern
7828         or mix thereof.
7829         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
7830         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7831         oprnd1 def_stmt is in pattern, don't look through it.
7832
7833 2016-03-03  Marek Polacek  <polacek@redhat.com>
7834
7835         PR middle-end/70050
7836         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
7837
7838 2016-03-03  Martin Liska  <mliska@suse.cz>
7839
7840         PR tree-optimization/70043
7841         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
7842         previous statement if we see a debug statement.
7843
7844 2016-03-03  Richard Biener  <rguenther@suse.de>
7845
7846         PR tree-optimization/55936
7847         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
7848         parameter and guard unsafe equivalence use.
7849         (vrp_evaluate_conditional_warnv_with_ops): Always use
7850         safe equivalences but not via the quadratic compare_names
7851         helper.
7852
7853 2016-03-03  Michael Collison  <michael.collison@linaro.org>
7854
7855         PR target/70014
7856         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
7857         for operand 1 to s_register_operand. Change predicate for operand
7858         2 to arm_not_immediate_operand.
7859
7860 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
7861
7862         * doc/tm.texi: Regenerated.
7863
7864 2016-03-02  Richard Henderson  <rth@redhat.com>
7865
7866         PR rtl-opt/67145
7867         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
7868         simplification when all args are positive non-fixed registers.
7869
7870 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7871
7872         * target.def (lra_p): Specify that new ports should use LRA.
7873
7874 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
7875
7876         PR libgomp/69555
7877         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
7878         gimplify_type_sizes the type they refer to.
7879         (omp_notice_variable): Handle reference vars to VLAs.
7880         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
7881         reference to VLA decls in the second pass instead of first pass.
7882
7883 2016-03-02  Tom de Vries  <tom@codesourcery.com>
7884
7885         PR tree-optimization/68659
7886         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
7887         new_expr == NULL_TREE.
7888         (get_new_name): Handle ADDR_EXPR.
7889
7890 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
7891
7892         PR rtl-optimization/69052
7893         * loop-invariant.c (canonicalize_address): New function.
7894         (inv_can_prop_to_addr_use): Check validity of address expression
7895         which is canonicalized by above function.
7896
7897 2016-03-02  Alan Modra  <amodra@gmail.com>
7898
7899         PR ipa/69990
7900         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
7901         larger alignment.
7902
7903 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
7904
7905         PR target/70028
7906         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
7907         (*movhi_internal): Put mask moves from and to memory separately
7908         from moves from/to GPRs.
7909
7910 2016-03-02  Richard Biener  <rguenther@suse.de>
7911
7912         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
7913         GENERIC expressions in GIMPLE.
7914
7915 2016-03-02  Richard Biener  <rguenther@suse.de>
7916
7917         * config/i386/i386.c (type_natural_mode): Fix typo.
7918
7919 2016-03-02  Nick Clifton  <nickc@redhat.com>
7920
7921         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
7922
7923 2016-03-02  Richard Biener  <rguenther@suse.de>
7924             Uros Bizjak  <ubizjak@gmail.com>
7925
7926         PR target/67278
7927         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
7928
7929 2016-03-02  Richard Biener  <rguenther@suse.de>
7930
7931         PR middle-end/67278
7932         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
7933
7934 2016-03-02  Marek Polacek  <polacek@redhat.com>
7935
7936         PR c/67854
7937         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
7938         "is promoted to" warning.
7939
7940 2016-03-01  DJ Delorie  <dj@redhat.com>
7941
7942         * config.gcc: Deprecate mep-*.
7943
7944 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
7945
7946         PR middle-end/70025
7947         * lra-constraints.c (regno_val_use_in): New.
7948         (match_reload): Use it instead of regno_use_in.
7949
7950 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
7951
7952         PR rtl-optimization/70007
7953         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
7954         references present in REG_EQUAL notes attached to non-SET patterns.
7955
7956 2016-03-01  Jeff Law  <law@redhat.com>
7957
7958         PR tree-optimization/69196
7959         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7960         Appropriately clamp the number of statements to copy when the
7961         thread path does not traverse a loop backedge.
7962
7963         PR tree-optimization/69196
7964         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7965         Do count some PHIs in the thread path against the insn count.  Decrease
7966         final statement count by one as the control statement in the last
7967         block will get removed.  Remove special cased code for handling PHIs
7968         in the last block.
7969
7970 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
7971
7972         PR target/70027
7973         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
7974         asm dialect alternatives to explicit GOTPCREL calls.
7975
7976 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
7977
7978         PR ada/70017
7979         * ira.c (do_reload): Issue warning for generic stack checking here...
7980         * reload1.c (reload): ...instead of here and streamline it.
7981
7982 2016-03-01  Nick Clifton  <nickc@redhat.com>
7983
7984         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
7985
7986 2016-03-01  Richard Biener  <rguenther@suse.de>
7987
7988         PR tree-optimization/69983
7989         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
7990         types and fall back to operand_equal_p.
7991
7992 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7993
7994         Revert
7995         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7996
7997         * config/s390/constraints.md ("jm8"): New constraint.
7998         * config/s390/predicates.md ("const_int_8bitset_operand"): New
7999         predicate.
8000         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
8001         into ...
8002         ("*setmem_long<setmem_and>"): New pattern.
8003         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
8004         into ...
8005         ("*setmem_long_31z<setmem_and>"): New pattern.
8006         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
8007         New substitution rules with the required attributes.
8008
8009
8010 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8011
8012         Revert
8013         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8014
8015         * gensupport.c (process_substs_on_one_elem): Split loop to
8016         complete mark_operands_used_in_match_dup on all expressions in the
8017         vector first.
8018         (adjust_operands_numbers): Inline into process_substs_on_one_elem
8019         and remove function.
8020
8021 2016-03-01  Richard Biener  <rguenther@suse.de>
8022
8023         PR middle-end/70022
8024         * fold-const.c (fold_indirect_ref_1): Fix range checking for
8025         vector BIT_FIELD_REF extract.
8026
8027 2016-03-01  Richard Biener  <rguenther@suse.de>
8028
8029         PR tree-optimization/69994
8030         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
8031
8032 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
8033
8034         PR tree-optimization/69956
8035         * tree-vect-stmts.c (supportable_widening_operation): Support
8036         multi-step conversion of boolean vectors.
8037         (supportable_narrowing_operation): Likewise.
8038
8039 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8040
8041         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
8042         anymore.
8043
8044 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8045
8046         * config/s390/subst.md (DSI_VI): New mode iterator.
8047         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
8048         * config/s390/vector.md ("vec_set<mode>"): Move expander before
8049         the insn definition.
8050         ("*vec_set<mode>"): Change predicate and add alternative to
8051         support only either register or const_int operands as element
8052         selector.
8053         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
8054         operands.
8055         ("vec_extract<mode>"): New expander.
8056         ("*vec_extract<mode>"): New insn definition supporting reg and
8057         const_int element selectors.
8058         ("*vec_extract<mode>_plus"): New insn definition supporting
8059         reg+const_int element selectors.
8060         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
8061         following expander+insn definition.
8062         ("<vec_shifts_name><mode>3"): New expander.
8063         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
8064
8065 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8066
8067         * config/s390/s390.md ("*tabort_1"): Change predicate to
8068         nonmemory_operand.  Add a second alternative to cover
8069         register as well as const int operands.
8070         ("*tabort_1_plus"): New pattern definition.
8071
8072 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8073
8074         * config/s390/s390.md ("*ashrdi3_cc_31")
8075         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
8076         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
8077         Merge insn definitions into ...
8078         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8079         New pattern definition.
8080         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
8081         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
8082         ("*ashr<mode>3_and"): Merge insn definitions into ...
8083         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8084         New pattern definition.
8085         * config/s390/subst.md ("addr_style_op_cc_subst")
8086         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
8087         substitutions patterns plus attributes.
8088         Add ashiftrt to SUBST iterator.
8089
8090 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8091
8092         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
8093         op2 to nonmemory_operand.
8094         ("*<shift>di3_31", "*<shift>di3_31_and"):
8095         Merge into single pattern definition ...
8096         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
8097         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
8098         pattern definition ...
8099         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
8100         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
8101         iterator.
8102
8103 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8104
8105         * config/s390/predicates.md (const_int_6bitset_operand): New
8106         predicate.
8107         * config/s390/s390.md: Include subst.md.
8108         ("rotl<mode>3"): New expander.
8109         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
8110         ...
8111         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
8112         * config/s390/subst.md: New file.
8113
8114 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8115
8116         * config/s390/s390.md ("op_type", "atype", "length" attributes):
8117         Remove RRR type.  It doesn't really exist.
8118         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
8119         attributes.
8120         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
8121         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
8122         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
8123         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
8124         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
8125         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
8126         `enabled' attribute.
8127
8128 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8129
8130         * gensupport.c (process_substs_on_one_elem): Split loop to
8131         complete mark_operands_used_in_match_dup on all expressions in the
8132         vector first.
8133         (adjust_operands_numbers): Inline into process_substs_on_one_elem
8134         and remove function.
8135
8136 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
8137
8138         PR target/69706
8139         * config/sparc/sparc.c (NWORDS_UP): Rename to...
8140         (CEIL_NWORDS): ...this.  Use CEIL macro.
8141         (compute_fp_layout): Adjust to above renaming.
8142         (function_arg_union_value): Likewise.
8143         (sparc_arg_partial_bytes): Likewise.
8144         (sparc_function_arg_advance): Likewise.
8145
8146 2016-02-29  Jeff Law  <law@redhat.com>
8147
8148         PR tree-optimization/70005
8149         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
8150         where an object with a boolean range is compared against a value
8151         outside [0..1].
8152
8153         PR tree-optimization/69999
8154         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
8155         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
8156         loop cleanups.
8157
8158 2016-02-29  Richard Biener  <rguenther@suse.de>
8159
8160         PR tree-optimization/69994
8161         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
8162         (get_unary_op): Look through nop conversions.
8163         (ops_equal_values_p): New function, look for equality diregarding
8164         nop conversions.
8165         (eliminate_plus_minus_pair): Use ops_equal_values_p
8166         (repropagate_negates): Do not use get_unary_op here.
8167
8168 2016-02-29  Martin Liska  <mliska@suse.cz>
8169
8170         * system.h: Poison ENABLE_CHECKING macro.
8171
8172 2016-02-29  Martin Liska  <mliska@suse.cz>
8173
8174         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
8175         is presented in dump flags.
8176         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8177         (hsa_regalloc): Likewise.
8178
8179 2016-02-19  Richard Biener  <rguenther@suse.de>
8180
8181         PR tree-optimization/69980
8182         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
8183         permutation of those we need to keep.
8184
8185 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
8186
8187         PR target/69706
8188         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
8189         (NWORDS_UP): ...this
8190         (init_cumulative_args): Minor tweaks.
8191         (sparc_promote_function_mode): Likewise.
8192         (scan_record_type): Delete.
8193         (traverse_record_type): New function template.
8194         (classify_data_t): New structure type.
8195         (classify_registers): New inline function.
8196         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
8197         exhausted.  Instantiate traverse_record_type on classify_registers and
8198         deal with the case of a structure passed in slot #15 with no FP field
8199         in the first word.
8200         (assign_data_t): New structure type.
8201         (compute_int_layout): New static function.
8202         (compute_fp_layout): Likewise.
8203         (count_registers): New inline function.
8204         (assign_int_registers): New static function.
8205         (assign_fp_registers): Likewise.
8206         (assign_registers): New inline function.
8207         (function_arg_record_value_1): Delete.
8208         (function_arg_record_value_2): Likewise.
8209         (function_arg_record_value_3): Likewise.
8210         (function_arg_record_value): Adjust to above changes.  Instantiate
8211         traverse_record_type on count_registers to first count the number of
8212         registers to be used and then on assign_registers to assign them.
8213         (function_arg_union_value): Adjust to above renaming.
8214         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
8215         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
8216         case of a structure passed in slot #15
8217         (sparc_function_arg_advance): Likewise.
8218         (function_arg_padding): Minor tweak.
8219
8220 2016-02-29  Richard Biener  <rguenther@suse.de>
8221
8222         PR tree-optimization/69720
8223         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
8224         the adjustment_def path for possibly vectorized defs.
8225         (vect_create_epilog_for_reduction): Handle vectorized initial
8226         defs properly.
8227
8228 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
8229
8230         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
8231
8232 2016-02-27  Jeff Law  <law@redhat.com>
8233
8234         Revert
8235         2016-02-26  Richard Biener  <rguenther@suse.de>
8236                     Jeff Law  <law@redhat.com>
8237
8238         PR tree-optimization/69740
8239         * cfghooks.c (remove_edge): Request loop fixups if we delete
8240         an edge that might turn an irreducible loop into a natural
8241         loop.
8242
8243 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
8244
8245         PR rtl-optimization/69896
8246         * tree-vect-generic.c (get_compute_type): Avoid single element
8247         vector types.
8248
8249 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
8250
8251         Rename the AArch64 tuning option and related functions to enable the
8252         Newton series for the reciprocal square root to reflect its
8253         approximative characteristic.
8254
8255         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
8256         function to "aarch64_emit_approx_rsqrt".
8257         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
8258         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
8259         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
8260         (xgene1_tunings): Likewise.
8261         (use_rsqrt_p): Likewise.
8262         (aarch64_emit_swrsqrt): Use new function name.
8263         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
8264         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
8265         text explaining this option.
8266         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
8267
8268 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
8269
8270         PR target/69969
8271         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8272         complain about -mallow-movmisalign without -mvsx if
8273         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
8274
8275 2016-02-26  Joel Sherrill  <joel@rtems.org>
8276
8277         * config.gcc: Add x86_64-*-rtems*.
8278         * config/i386/rtems-64.h: New file.
8279
8280 2016-02-26  Joel Sherrill  <joel@rtems.org>
8281
8282         * config.gcc: Add aarch64-*-rtems*.
8283         * config/aarch64/rtems.h: New file.
8284
8285 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
8286
8287         PR target/69946
8288         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
8289         shift amount using %h.  Add comment.
8290
8291 2016-02-26  Richard Biener  <rguenther@suse.de>
8292             Jeff Law  <law@redhat.com>
8293
8294         PR tree-optimization/69740
8295         * cfghooks.c (remove_edge): Request loop fixups if we delete
8296         an edge that might turn an irreducible loop into a natural
8297         loop.
8298
8299 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8300
8301         PR middle-end/69920
8302         * tree-sra.c (sra_modify_assign): Do not remove loads of
8303         uninitialized aggregates to SSA_NAMEs.
8304
8305 2016-02-26  Richard Henderson  <rth@redhat.com>
8306
8307         PR target/69709
8308         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
8309         pseudo in case the target rtx matches the source of the left
8310         shift.
8311
8312 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8313
8314         PR hsa/69568
8315         * hsa.h (hsa_type_packed_p): Declare.
8316         * hsa.c (hsa_type_packed_p): New function.
8317         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
8318         loads.
8319         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
8320         * hsa-brig.c (emit_basic_insn): Likewise.
8321
8322 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8323
8324         pr hsa/69674
8325         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
8326         pointers.
8327         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
8328
8329 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8330
8331         * hsa.h (is_a_helper): New overload for hsa_op_immed for
8332         hsa_op_with_type operands.
8333         (hsa_unsigned_type_for_type): Declare.
8334         * hsa.c (hsa_unsigned_type_for_type): New function.
8335         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
8336         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
8337         the finalizer.  Do not emit extra move.
8338
8339 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8340
8341         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
8342         atomic operations in private segment.
8343
8344 2016-02-26  Martin Jambor  <mjambor@suse.cz>
8345
8346         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
8347         statements to wi->info.  Also disallow omp simd constructs.
8348         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
8349         for not gridifying.  Dump special string for omp_for.
8350
8351 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8352
8353         PR target/69245
8354         * config/aarch64/aarch64.c (aarch64_set_current_function):
8355         Save/restore target globals when switching to
8356         target_option_default_node.
8357
8358 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8359
8360         PR target/69613
8361         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
8362         Return 0 if !SHIFT_COUNT_TRUNCATED.
8363
8364 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
8365             Eric Botcazou  <ebotcazou@adacore.com>
8366
8367         PR rtl-optimization/69891
8368         * dse.c (scan_insn): If we can't figure out memset arguments
8369         or they are non-constant, call clear_rhs_from_active_local_stores.
8370
8371 2016-02-26  Martin Liska  <mliska@suse.cz>
8372
8373         * doc/extend.texi: Mention clog10, clog10f an clog10l
8374         in Builtins section.
8375
8376 2016-02-26  Martin Liska  <mliska@suse.cz>
8377
8378         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
8379         CHECKING_P.
8380         (resolve_args_picking_1): Likewise.
8381         * dwarf2out.h (struct GTY): Likewise.
8382
8383 2016-02-26  Martin Liska  <mliska@suse.cz>
8384
8385         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
8386         with flag_checking.
8387         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8388
8389 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
8390             Martin Liska  <mliska@suse.cz>
8391
8392         * doc/install.texi: Mention --enable-valgrind-annotations.
8393
8394 2016-02-26  Richard Biener  <rguenther@suse.de>
8395
8396         PR tree-optimization/69551
8397         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
8398         looking through aliases adjust DECL_PT_UID to refer to the
8399         ultimate alias target.
8400
8401 2016-02-25  Martin Liska  <mliska@suse.cz>
8402
8403         PR middle-end/69919
8404         * alloc-pool.c (after_memory_report): New variable.
8405         * alloc-pool.h (base_pool_allocator ::release): Do not use
8406         the infrastructure if after_memory_report.
8407         * toplev.c (toplev::main): Mark after memory report.
8408
8409 2016-02-25  Richard Biener  <rguenther@suse.de>
8410
8411         PR tree-optimization/48795
8412         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
8413
8414 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
8415
8416         PR driver/68463
8417         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
8418         offloading is enabled and -fopenacc or -fopenmp is specified.
8419         (CRTOFFLOADEND): Likewise.
8420         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
8421         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
8422         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
8423         (offload_objects_file_name): New static var.
8424         (tool_cleanup): Remove offload_objects_file_name file.
8425         (find_offloadbeginend): Replace with ...
8426         (find_crtoffloadtable): ... this.
8427         (run_gcc): Remove offload_argc and offload_argv.
8428         Get offload_objects_file_name from -foffload-objects=... option.
8429         Read names of object files with offload from this file, pass them to
8430         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
8431         don't pass offloadbegin and offloadend to the linker.  Don't pass
8432         offload non-LTO files to the linker, because now they're not claimed.
8433
8434 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
8435
8436         PR ipa/69630
8437         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8438         on builtin_unreachable.
8439
8440 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
8441
8442         PR rtl-optimization/69896
8443         * regcprop.c: Include cfgrtl.h.
8444         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
8445         than remembered mode, either delete it (if noop_move_p), or
8446         treat like copy_p but not noop_p instruction.
8447
8448 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
8449
8450         PR debug/69705
8451         * dwarf2out.c (gen_variable_die): Work around buggy LTO
8452         - allow NULL decl for Fortran DW_TAG_common_block variables.
8453
8454 2016-02-24  Jason Merrill  <jason@redhat.com>
8455
8456         * common.opt (flifetime-dse): Add -flifetime-dse=1.
8457
8458 2016-02-24  Richard Biener  <rguenther@suse.de>
8459             Jakub Jelinek  <jakub@redhat.com>
8460
8461         PR middle-end/69760
8462         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
8463         conditionally executed ops to well-defined overflow behavior.
8464
8465 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
8466
8467         PR middle-end/69915
8468         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
8469         elements.
8470
8471 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8472
8473         PR rtl-optimization/69886
8474         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
8475         argument.  Use it when checking validity of set instructions.
8476         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
8477         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
8478         callsite.
8479         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
8480         * store-motion.c (find_moveable_store): Update
8481         can_assign_to_reg_without_clobbers_p callsite.
8482
8483 2016-02-24  Richard Biener  <rguenther@suse.de>
8484
8485         PR middle-end/68963
8486         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
8487         bogus check.
8488         (record_nonwrapping_iv): Do not fall back to the low/high bound
8489         for non-constant IV bases if the stmt is not always executed.
8490
8491 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8492
8493         * config/arm/arm-cores.def (cortex-a32): New entry.
8494         * config/arm/arm-tables.opt: Regenerate.
8495         * config/arm/arm-tune.md: Regenerate.
8496         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
8497         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
8498         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
8499         for -mcpu and -mtune.
8500
8501 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8502
8503         PR target/69875
8504         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
8505         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
8506         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
8507         (atomic_loaddi_1): Delete.
8508         (atomic_loaddi): Rewrite expander using the above changes.
8509
8510 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
8511
8512         PR c/69918
8513         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
8514         2 to 3.
8515
8516 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
8517             Richard Biener  <rguenth@suse.de>
8518
8519         PR middle-end/69909
8520         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
8521         set_mem_attributes if tem is SSA_NAME which got expanded
8522         as a MEM.
8523
8524 2016-02-24  Richard Biener  <rguenther@suse.de>
8525
8526         PR tree-optimization/69907
8527         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
8528         end of permutations for BB vectorization.
8529
8530 2016-02-24  Christian Bruel  <christian.bruel@st.com>
8531
8532         * config/arm/arm-c.c (arm_option_override): Initialize
8533         target_option_current_node.
8534         * config/arm/arm.c (arm_pragma_target_parse): Replace
8535         build_target_option_node call by target_option_current_node.
8536         Set target_option_current_node.
8537         Fix comments.
8538
8539 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
8540
8541         PR target/69810
8542         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
8543         define_insn_and_split to define_insn.
8544         (zero_extendqi<mode>2_dot2): Same.
8545         (extendqi<mode>2_dot): Same.
8546         (extendqi<mode>2_dot2): Same.
8547
8548 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
8549
8550         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
8551         and add bypass for AES{D,E} and AESMC pairs.
8552         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
8553         and AESMC pairs.
8554
8555 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
8556
8557         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
8558         series for reciprocal square root in Exynos M1.
8559
8560 2016-02-23  Martin Sebor  <msebor@redhat.com>
8561
8562         PR c/69759
8563         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
8564         __builtin_alloca_with_align.
8565
8566 2016-02-23  Richard Henderson  <rth@redhat.com>
8567
8568         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
8569         (ix86_register_pragmas): Remove __seg_tls.
8570         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
8571         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
8572         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
8573         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
8574         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
8575         * doc/extend.texi (__seg_tls): Remove item.
8576
8577 2016-02-23  Richard Biener  <rguenther@suse.de>
8578
8579         * alloc-pool.h (struct allocation_object): Make id member
8580         conditional on CHECKING_P again.
8581         (get_instance): Adjust.
8582         (base_pool_allocator): Likewise.
8583
8584 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
8585
8586         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
8587         (parallelize_loops): In OpenACC kernels mode, set n_threads to
8588         zero.
8589         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
8590         flag_openacc.
8591         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
8592
8593 2016-02-23  Richard Biener  <rguenther@suse.de>
8594
8595         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
8596         * bitmap.h (struct bitmap_usage): Likewise.
8597         (bitmap_move): Declare.
8598         * bitmap.c (register_overhead): Take size_t argument.
8599         (bitmap_move): New function.
8600         * df-problems.c (df_rd_transfer_function): Use bitmap_move
8601         to properly account overhead.
8602         * tree.c (free_node): Use tree_size.
8603
8604 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
8605
8606         PR c++/69902
8607         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
8608         when inverting comparison.
8609
8610         PR c/69900
8611         * common.opt (Wunreachable-code): Add Warning flag.
8612
8613 2016-02-23  Mark Wielaard  <mjw@redhat.com>
8614             Jakub Jelinek  <jakub@redhat.com>
8615
8616         PR c/69911
8617         * cgraphunit.c (check_global_declaration): Check main_input_filename
8618         and DECL_SOURCE_FILE are not NULL.
8619
8620 2016-02-23  Martin Jambor  <mjambor@suse.cz>
8621
8622         PR tree-optimization/69666
8623         * tree-sra.c (sra_modify_assign): Do not attempt to create
8624         default_def replacements for unscalarizable regions.
8625
8626 2016-02-20  Mark Wielaard  <mjw@redhat.com>
8627
8628         PR c/28901
8629         * cgraphunit.c (check_global_declaration): Check level of
8630         warn_unused_const_variable and main_input_filename.
8631         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
8632         (-Wunused-variable): For C implies -Wunused-const-variable=1.
8633         (-Wunused-const-variable): Explain levels 1 and 2.
8634
8635 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
8636
8637         PR target/69888
8638         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
8639         identical arguments.  Formatting and spelling fixes.
8640
8641         PR target/69885
8642         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
8643         be specified.
8644
8645         PR target/69894
8646         PR target/69895
8647         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
8648         and m68k-devices.def.
8649         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
8650         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
8651
8652 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
8653
8654         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
8655         and HImode registers.
8656
8657 2016-02-22  Richard Biener  <rguenther@suse.de>
8658
8659         PR tree-optimization/69882
8660         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
8661         preserve permutations present because of gaps.
8662         (vect_supported_load_permutation_p): Always continue checking
8663         permutations after vect_attempt_slp_rearrange_stmts.
8664
8665 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
8666
8667         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
8668         min_profitable_estimate, rather than min_profitable_iters.
8669
8670 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
8671
8672         PR target/69885
8673         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
8674         SImode for last match_operand.
8675
8676 2016-02-22  Martin Liska  <mliska@suse.cz>
8677
8678         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
8679         return bitsize - 1 as the return value.
8680
8681 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
8682
8683         PR target/69806
8684         PR target/54089
8685         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
8686         Handle negative shift counts.
8687         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
8688         force_reg on the shift constant.
8689         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
8690         (lshrsi3_d): Handle negative shift counts.
8691
8692 2016-02-22  Richard Biener  <rguenther@suse.de>
8693             Tom de Vries  <tom@codesourcery.com>
8694
8695         * graph.c: Include dumpfile.h.
8696         (print_graph_cfg): Split into three overloads.
8697         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
8698
8699 2016-02-22  Tom de Vries  <tom@codesourcery.com>
8700
8701         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
8702         dump-fn.
8703
8704 2016-02-22  Richard Biener  <rguenther@suse.de>
8705
8706         PR ipa/37448
8707         * ipa-inline-transform.c (inline_call): When not updating
8708         overall summaries adjust self size by the growth estimate.
8709         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
8710         hash-set, do not update overall summaries here.  Renamed from ...
8711         (inline_to_all_callers): ... this which is now wrapping the
8712         above and performing delayed overall summary update.
8713         (early_inline_small_functions): Delay updating of the overall
8714         summary.
8715
8716 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8717
8718         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
8719         variable.
8720
8721 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8722
8723         PR driver/69805
8724         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
8725         :%* in %:gt() argument.
8726         (greater_than_spec_func): Adjust for expecting only numbers,
8727         if there are more than two numbers, compare the last two.
8728
8729 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
8730
8731         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
8732         -Wnarrowing with -std.
8733
8734 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8735
8736         PR c++/69851
8737         * expr.c (store_field): Don't use bit-field path if exp is
8738         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
8739         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
8740         and the assignment can be performed by bitwise copy.  Formatting
8741         fix.
8742
8743         PR middle-end/69838
8744         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
8745         call copy_reg_eh_region_note_forward on before and/or after sequences
8746         and remove note from insn if it no longer can throw.
8747
8748         PR target/69820
8749         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
8750         if TARGET_AVX512BW.
8751
8752 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8753
8754         * config/s390/vector.md: Add missing commutative operand markers
8755         to the patterns which qualify for one.
8756         * config/s390/vx-builtins.md: Likewise.
8757
8758 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8759
8760         * config/s390/vector.md (VI, VI_QHS): Add single element vector
8761         types to mode iterators.
8762         (vec_double): ... and mode attribute.
8763         * config/s390/vx-builtins.md (non_vec_int): Likewise.
8764
8765 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8766
8767         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
8768         Change the predicate of op2 from nonimmediate to general and let
8769         reload fix it if necessary.
8770
8771 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8772
8773         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
8774
8775 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8776
8777         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
8778         mode.
8779
8780 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8781
8782         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
8783         * config/s390/s390.c (s390_expand_vec_movstr): New function.
8784         * config/s390/s390.md ("movstr<P:mode>"): Call
8785         s390_expand_vec_movstr.
8786
8787 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8788
8789         * config/s390/s390.md: Add missing output modifier for operand 1
8790         to print it as address properly.
8791
8792 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8793
8794         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
8795         * config/s390/2964.md: New file.
8796         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
8797         of insn grouping attributes depending on the CPU level.
8798         (s390_get_unit_mask): New function.
8799         (s390_sched_score): Remove the OOO from the scheduling macros.
8800         Add loop to calculate a score for the instruction mix.
8801         (s390_sched_reorder): Likewise plus improve debug output.
8802         (s390_sched_variable_issue): Rename macros as above.  Calculate
8803         the unit distances after actually scheduling an insn.  Improve
8804         debug output.
8805         (s390_sched_init): Clear last_scheduled_unit_distance array.
8806         * config/s390/s390.md: Include 2964.md.
8807
8808 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
8809
8810         PR target/69671
8811         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
8812         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
8813         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
8814         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
8815         *avx512f_<code>v8div16qi2_mask_1): New insns.
8816
8817 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8818
8819         PR target/68404
8820         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
8821         2016-02-09 change.
8822
8823         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
8824         earlyclobber from target.  Use wF constraint for fused memory
8825         address.
8826         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
8827
8828 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
8829             Martin Liska  <mliska@suse.cz>
8830
8831         PR sanitizer/69863
8832         * cfgexpand.c (asan_sanitize_stack_p): New function.
8833         (partition_stack_vars): Use the function.
8834         (expand_stack_vars): Likewise.
8835         (defer_stack_allocation): Likewise.
8836         (expand_used_vars): Likewise.
8837
8838 2016-02-18  Richard Biener  <rguenther@suse.de>
8839
8840         PR middle-end/69553
8841         * fold-const.c (operand_equal_p): Properly compare offsets for
8842         IMAGPART_EXPR and ARRAY_REF.
8843
8844 2016-02-18  Nick Clifton  <nickc@redhat.com>
8845
8846         PR target/62254
8847         PR target/69610
8848         * config/arm/arm.c (arm_option_override_internal): Disable
8849         interworking if the target does not support thumb instructions.
8850         (arm_reload_in_hi): Handle the case where a register to register
8851         move needs reloading because there is no simple pattern to handle
8852         it.
8853         (arm_reload_out_hi): Likewise.
8854
8855 2016-02-18  Richard Biener  <rguenther@suse.de>
8856
8857         PR middle-end/69854
8858         * match.pd: Don't use fold_binary or fold_unary for folding
8859         constants.
8860
8861 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
8862
8863         PR c++/69850
8864         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
8865         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
8866         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
8867         warn on gimple_no_warning_p statements.
8868
8869 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
8870
8871         * doc/extend.texi (C++ Attributes): Correct description of
8872         warn_unused type attribute.
8873
8874 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8875
8876         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
8877         correct instruction.
8878
8879 2016-02-17  Richard Biener  <rguenther@suse.de>
8880
8881         PR rtl-optimization/69609
8882         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
8883         (find_traces_1_round): When ending a trace update cached priority
8884         of successors.
8885         (bb_to_key): Use cached priority when available.
8886         (copy_bb): Initialize cached priority.
8887         (reorder_basic_blocks_software_trace_cache): Likewise.
8888
8889 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8890
8891         PR target/69161
8892         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
8893         New predicate.
8894         (aarch64_comparison_operator): Break overly long line into two.
8895         (aarch64_comparison_operation): Likewise.
8896         * config/aarch64/aarch64.md (cstorecc4): Use
8897         aarch64_comparison_operator_mode instead of
8898         aarch64_comparison_operator.
8899         (cstore<mode>4): Likewise.
8900         (aarch64_cstore<mode>): Likewise.
8901         (*cstoresi_insn_uxtw): Likewise.
8902         (cstore<mode>_neg): Likewise.
8903         (*cstoresi_neg_uxtw): Likewise.
8904
8905 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8906
8907         PR target/69161
8908         * config/arm/predicates.md (arm_comparison_operator_mode):
8909         New predicate.
8910         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
8911         instead of arm_comparison_operator.
8912         (*mov_negscc): Likewise.
8913         (*mov_notscc): Likewise.
8914         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
8915         (*thumb2_mov_negscc): Likewise.
8916         (*thumb2_mov_negscc_strict_it): Likewise.
8917         (*thumb2_mov_notscc): Likewise.
8918         (*thumb2_mov_notscc_strict_it): Likewise.
8919
8920 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
8921
8922         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
8923         Add missing return.
8924
8925 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
8926
8927         * config/visium/visium.c (machine_libfunc_index): New enum.
8928         (machine_libfuncs): New structure.
8929         (visium_libfuncs): New static variable.
8930         (TARGET_INIT_LIBFUNCS): Define to...
8931         (visium_init_libfuncs): ...this.  New function.
8932         (expand_block_move_4): Use the appropriate libfunc.
8933         (expand_block_move_2): Likewise.
8934         (expand_block_move_1): Likewise.
8935         (expand_block_set_4): Likewise.
8936         (expand_block_set_2): Likewise.
8937         (expand_block_set_1): Likewise.
8938         (visium_trampoline_init): Likewise.
8939
8940 2016-02-17  Nick Clifton  <nickc@redhat.com>
8941
8942         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
8943         TI's devices.csv file as of March 2016.
8944
8945 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8946
8947         PR Target/48344
8948         * opts-global.c (handle_common_deferred_options): Introduce and
8949         initialize two global variables to remember command-line options
8950         specifying a stack-limiting register.
8951         * opts.h: Add extern declarations of the two new global variables.
8952         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
8953         variable based on the values of the two new global variables.
8954
8955 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
8956
8957         PR c/69835
8958         * common.opt (Wnonnull-compare): New warning.
8959         * doc/invoke.texi (-Wnonnull): Remove text about comparison
8960         of arguments against NULL.
8961         (-Wnonnull-compare): Document.
8962         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
8963         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
8964         * passes.def (pass_warn_nonnull_compare): Add.
8965         * gimple-ssa-nonnull-compare.c: New file.
8966
8967 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8968
8969         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
8970         AARCH64_EXTRA_TUNE_RECIP_SQRT.
8971
8972 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8973
8974         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
8975         reciprocal sqrt for -mlow-precision-recip-sqrt.
8976
8977 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8978             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8979
8980         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
8981         always use lane loads to construct non-constant vectors.
8982
8983 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8984
8985         * config/aarch64/aarch64.md
8986         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
8987         constraints for operand 3.
8988         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
8989
8990 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
8991             Richard Biener  <rguenther@suse.de>
8992
8993         PR tree-optimization/69820
8994         * tree-vect-patterns.c (type_conversion_p): Return false if
8995         *orig_type is unsigned single precision or boolean.
8996         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
8997         Formatting fix.
8998
8999 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
9000
9001         PR rtl-optimization/69764
9002         PR rtl-optimization/69771
9003         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
9004         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
9005
9006 2016-02-16  Richard Biener  <rguenther@suse.de>
9007
9008         PR tree-optimization/69776
9009         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
9010         sets from caller.
9011         (indirect_refs_may_alias_p): Likewise.
9012         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
9013         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
9014         according to tbaa_p.
9015         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
9016         (optimize_stmt): For redundant store discovery do not allow tbaa.
9017
9018 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
9019
9020         PR tree-optimization/69714
9021         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
9022         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
9023
9024 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
9025
9026         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
9027         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
9028         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
9029         * config/arc/arc.c (arc_init): Check FPU options.
9030         (get_arc_condition_code): Handle new CC_FPU* modes.
9031         (arc_select_cc_mode): Likewise.
9032         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
9033         register pair only. Allow access for ARCv2 accumulator.
9034         (gen_compare_reg): Whenever we have FPU support use FPU compare
9035         instructions.
9036         (arc_reorg): Don't generate brcc insns when FPU compare
9037         instructions are involved.
9038         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
9039         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
9040         floating point emulation.
9041         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
9042         (REVERSE_CONDITION): Add new CC_FPU* modes.
9043         (TARGET_FP_SP_BASE): Define.
9044         (TARGET_FP_DP_BASE): Likewise.
9045         (TARGET_FP_SP_FUSED): Likewise.
9046         (TARGET_FP_DP_FUSED): Likewise.
9047         (TARGET_FP_SP_CONV): Likewise.
9048         (TARGET_FP_DP_CONV): Likewise.
9049         (TARGET_FP_SP_SQRT): Likewise.
9050         (TARGET_FP_DP_SQRT): Likewise.
9051         (TARGET_FP_DP_AX): Likewise.
9052         * config/arc/arc.md (ARCV2_ACC): New constant.
9053         (type): New fpu type attribute.
9054         (SDF): Conditional iterator.
9055         (cstore<mode>, cbranch<mode>): Change expand condition.
9056         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
9057         handles FPU/FPX cases as well.
9058         * config/arc/arc.opt (mfpu): New option.
9059         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
9060         Renamed.
9061         (adddf3, muldf3, subdf3): Removed.
9062         * config/arc/predicates.md (proper_comparison_operator): Recognize
9063         CC_FPU* modes.
9064         * config/arc/fpu.md: New file.
9065         * doc/invoke.texi (ARC Options): Document mfpu option.
9066
9067 2016-02-16  Richard Biener  <rguenther@suse.de>
9068
9069         PR rtl-optimization/69291
9070         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
9071         noce_operand_ok check.
9072
9073 2016-02-16  Tom de Vries  <tom@codesourcery.com>
9074
9075         PR lto/67709
9076         * omp-low.c (simd_clone_create): Remove call to
9077         symtab->call_cgraph_insertion_hooks.
9078
9079 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
9080
9081         PR tree-optimization/69802
9082         * tree-ssa-reassoc.c (update_range_test): If op is
9083         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
9084         op == 1 test of precision 1 integral op, otherwise handle
9085         that case as op itself.  Fix up formatting.
9086         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
9087         up formatting.
9088
9089 2016-02-16  Richard Biener  <rguenther@suse.de>
9090
9091         PR tree-optimization/69586
9092         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
9093         types for conversion sources.
9094
9095 2016-02-16  Richard Biener  <rguenther@suse.de>
9096
9097         PR middle-end/69801
9098         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
9099         mask OEP_ADDRESS_OF.
9100
9101 2016-02-16  Alan Modra  <amodra@gmail.com>
9102
9103         PR target/68973
9104         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
9105         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
9106         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
9107         (p8_mtvsrwz): New.
9108         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
9109         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
9110         (p8_fmrgow_<mode>): Likewise.
9111         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
9112         changes.
9113         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
9114         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
9115         to use movdi_internal64.  Remove op0_di.
9116         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
9117
9118 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
9119
9120         Add support for the FCCMP insn types
9121
9122         * config/aarch64/aarch64.md (fccmp): Change insn type.
9123         (fccmpe): Likewise.
9124         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
9125         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
9126         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
9127         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
9128         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
9129         * config/arm/types.md (fccmps): Add new insn type.
9130         (fccmpd): Likewise.
9131
9132 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9133
9134         * alias.c (get_alias_set): Fix a typo in comment.
9135
9136 2016-02-15  Richard Biener  <rguenther@suse.de>
9137
9138         PR tree-optimization/69595
9139         * match.pd: Complete range test simplification to true.
9140
9141 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
9142
9143         PR rtl-optimization/69648
9144         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
9145         pic_offset_table_rtx.
9146
9147         PR rtl-optimization/69752
9148         * ira.c (update_equiv_regs): When looking for more than a single SET,
9149         also take other side effects into account.
9150
9151 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
9152
9153         * config/s390/s390.c (s390_function_profiler): Add a new sequence
9154         for z900+ CPUs in 31-bit mode.
9155
9156 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
9157
9158         * common/config/s390/s390-common.c (s390_supports_split_stack):
9159         New function.
9160         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
9161         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
9162         * config/s390/s390.c (struct machine_function): New field
9163         split_stack_varargs_pointer.
9164         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
9165         in s390_emit_prologue.
9166         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
9167         vararg pointer.
9168         (morestack_ref): New global.
9169         (SPLIT_STACK_AVAILABLE): New macro.
9170         (s390_expand_split_stack_prologue): New function.
9171         (s390_live_on_entry): New function.
9172         (s390_va_start): Use split-stack vararg pointer if appropriate.
9173         (s390_asm_file_end): Emit the split-stack note sections.
9174         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
9175         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
9176         (UNSPECV_SPLIT_STACK_CALL): New unspec.
9177         (UNSPECV_SPLIT_STACK_DATA): New unspec.
9178         (split_stack_prologue): New expand.
9179         (split_stack_space_check): New expand.
9180         (split_stack_data): New insn.
9181         (split_stack_call): New expand.
9182         (split_stack_call_*): New insn.
9183         (split_stack_cond_call): New expand.
9184         (split_stack_cond_call_*): New insn.
9185
9186 2016-02-15  Richard Biener  <rguenther@suse.de>
9187
9188         PR tree-optimization/69783
9189         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9190         Add trivially correct cases.
9191
9192 2016-02-15  Tom de Vries  <tom@codesourcery.com>
9193
9194         PR lto/69655
9195         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
9196         do_force_output.
9197         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
9198
9199 2016-02-15  Richard Biener  <rguenther@suse.de>
9200
9201         PR tree-optimization/69776
9202         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9203         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
9204         indicate whether we can use TBAA to disambiguate against stores.
9205         Use alias-set zero if not.
9206         (visit_reference_op_store): Do not use TBAA when looking up
9207         redundant stores.
9208         * tree-ssa-pre.c (compute_avail): Use TBAA here.
9209         (eliminate_dom_walker::before_dom_children): But not when looking
9210         up redundant stores.
9211
9212 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
9213
9214         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
9215
9216 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9217
9218         *  config/i386/znver1.md
9219         (znver1_pop, znver1_pop_mem,
9220         znver1_load_imov_double_store,
9221         znver1_load_imov_direct_store,
9222         znver1_load_imov_direct_load,
9223         znver1_load_imov_double_load): Add new.
9224         (znver1_insn, znver1_insn_load): Add icmov type.
9225         (znver1_sseavx_fma,
9226         znver1_sseavx_fma_load,
9227         znver1_avx256_fma,
9228         znver1_avx256_fma_load): Fix pipe usage.
9229
9230 2016-02-14  Alan Modra  <amodra@gmail.com>
9231
9232         PR target/68973
9233         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
9234         with an invalid hard reg, reload just the reg not the entire
9235         pre/post-inc/dec address expression.
9236
9237 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
9238
9239         PR target/67260
9240         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
9241         fixed R1_REG scratch reg.
9242         (sibcall_value_pcrel_fdpic): Likewise.
9243
9244 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
9245
9246         PR target/67636
9247         PR target/64345
9248         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
9249
9250 2016-02-12  Walter Lee  <walt@tilera.com>
9251
9252         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
9253         * config/tilegx/t-tilegx: Likewise.
9254
9255 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
9256
9257         PR other/69554
9258         * diagnostic-show-locus.c (struct line_span): New struct.
9259         (layout::get_first_line): Delete.
9260         (layout::get_last_line): Delete.
9261         (layout::get_num_line_spans): New member function.
9262         (layout::get_line_span): Likewise.
9263         (layout::print_heading_for_line_span_index_p): Likewise.
9264         (layout::get_expanded_location): Likewise.
9265         (layout::calculate_line_spans): Likewise.
9266         (layout::m_first_line): Delete.
9267         (layout::m_last_line): Delete.
9268         (layout::m_line_spans): New field.
9269         (layout::layout): Update comment.  Replace m_first_line and
9270         m_last_line with m_line_spans, replacing their initialization
9271         with a call to calculate_line_spans.
9272         (diagnostic_show_locus): When printing source lines and
9273         annotations, rather than looping over a single span
9274         of lines, instead loop over each line_span within
9275         the layout, with an inner loop over the lines within them.
9276         Call the context's start_span callback when changing line spans.
9277         * diagnostic.c (diagnostic_initialize): Initialize start_span.
9278         (diagnostic_build_prefix): Break out the building of the location
9279         part of the string into...
9280         (diagnostic_get_location_text): ...this new function, rewriting
9281         it from nested ternary expressions to a sequence of "if"
9282         statements.
9283         (default_diagnostic_start_span_fn): New function.
9284         * diagnostic.h (diagnostic_start_span_fn): New typedef.
9285         (diagnostic_context::start_span): New field.
9286         (default_diagnostic_start_span_fn): New prototype.
9287
9288 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
9289
9290         PR driver/69779
9291         * gcc.c (driver::finalize): Fix cleanup of "specs".
9292
9293 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
9294
9295         PR driver/69265
9296         PR driver/69453
9297         * gcc.c (driver::driver): Initialize m_option_suggestions.
9298         (driver::~driver): Clean up m_option_suggestions.
9299         (suggest_option): Convert to...
9300         (driver::suggest_option): ...this, and split out into
9301         driver::build_option_suggestions and find_closest_string.
9302         (driver::build_option_suggestions): New function, from
9303         first half of suggest_option.  Special-case
9304         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
9305         the sanitizer_opts array.  For options of enum types, add the
9306         various enum values to the candidate strings.
9307         (driver::handle_unrecognized_options): Remove "const".
9308         * gcc.h (driver::handle_unrecognized_options): Likewise.
9309         (driver::build_option_suggestions): New decl.
9310         (driver::suggest_option): New decl.
9311         (driver::m_option_suggestions): New field.
9312         * opts-common.c (add_misspelling_candidates): New function.
9313         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
9314         and make non-static.
9315         * opts.h (sanitizer_opts): New array decl.
9316         (add_misspelling_candidates): New function decl.
9317         * spellcheck.c (find_closest_string): New function.
9318         * spellcheck.h (find_closest_string): New function decl.
9319
9320 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
9321
9322         PR rtl-optimization/69764
9323         PR rtl-optimization/69771
9324         * optabs.c (expand_binop_directly): For shift_optab_p, force
9325         convert_modes with VOIDmode if xop1 has VOIDmode.
9326
9327 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
9328
9329         PR target/69729
9330         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
9331         to correctly determine instrumentation thunks.
9332
9333 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR ipa/69241
9336         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
9337         type by reference, force lhs on the call.
9338
9339         PR ipa/68672
9340         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
9341         Compute retval and retbnd early in all cases if split_part_return_p
9342         and return_bb is not EXIT.  Remove all clobber stmts and reset
9343         all debug stmts that refer to SSA_NAMEs defined in split part,
9344         except if it is retval, in that case replace the old retval with the
9345         lhs of the call to the split part.
9346
9347 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9348
9349         revert:
9350         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9351
9352         PR middle-end/66726
9353         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9354         whose result is used in PHI.
9355         (maybe_optimize_range_tests): Likewise.
9356         (final_range_test_p): Likweise.
9357
9358 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9359
9360         PR middle-end/66726
9361         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9362         whose result is used in PHI.
9363         (maybe_optimize_range_tests): Likewise.
9364         (final_range_test_p): Likweise.
9365
9366 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
9367
9368         * cgraph.c: Spelling fixes - behaviour -> behavior and
9369         neighbour -> neighbor.
9370         * target.def: Likewise.
9371         * sel-sched.c: Likewise.
9372         * config/mips/mips.c: Likewise.
9373         * config/arc/arc.md: Likewise.
9374         * config/arm/cortex-a57.md: Likewise.
9375         * config/arm/arm.c: Likewise.
9376         * config/arm/neon.md: Likewise.
9377         * config/arm/arm-c.c: Likewise.
9378         * config/vms/vms-c.c: Likewise.
9379         * config/s390/s390.c: Likewise.
9380         * config/i386/znver1.md: Likewise.
9381         * config/i386/i386.c: Likewise.
9382         * config/ia64/hpux-unix2003.h: Likewise.
9383         * config/msp430/msp430.md: Likewise.
9384         * config/rx/rx.c: Likewise.
9385         * config/rx/rx.md: Likewise.
9386         * config/aarch64/aarch64-simd.md: Likewise.
9387         * config/aarch64/aarch64.c: Likewise.
9388         * config/nvptx/nvptx.c: Likewise.
9389         * config/bfin/bfin.c: Likewise.
9390         * config/cris/cris.opt: Likewise.
9391         * config/rs6000/rs6000.c: Likewise.
9392         * target.h: Likewise.
9393         * spellcheck.c: Likewise.
9394         * ira-build.c: Likewise.
9395         * tree-inline.c: Likewise.
9396         * builtins.c: Likewise.
9397         * lra-constraints.c: Likewise.
9398         * explow.c: Likewise.
9399         * hwint.h: Likewise.
9400         * targhooks.c: Likewise.
9401         * tree-vect-data-refs.c: Likewise.
9402         * expr.c: Likewise.
9403         * doc/tm.texi: Likewise.
9404         * doc/extend.texi: Likewise.
9405         * doc/install.texi: Likewise.
9406         * doc/md.texi: Likewise.
9407         * tree-ssa-tail-merge.c: Likewise.
9408         * sched-int.h: Likewise.
9409         * match.pd: Likewise.
9410         * sched-ebb.c: Likewise.
9411         * target.def (omit_struct_return_reg): Likewise.
9412         * gimple-ssa-isolate-paths.c: Likewise.
9413         (find_implicit_erroneous_behaviour): Renamed to...
9414         (find_implicit_erroneous_behavior): ... this.
9415         (find_explicit_erroneous_behaviour): Renamed to...
9416         (find_explicit_erroneous_behavior): ... this.
9417         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
9418
9419 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
9420
9421         PR rtl-optimization/64682
9422         PR rtl-optimization/69567
9423         PR rtl-optimization/69737
9424         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
9425         in I2 as well, just lose it.
9426
9427 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9428
9429         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
9430         New variable.
9431         (aarch64_last_printed_tune_string): Likewise.
9432         (aarch64_declare_function_name): Only output .arch assembler
9433         directive if it will be different from the previously output
9434         directive.  Same for .tune comment but only if -dA is set.
9435         (aarch64_start_file): New function.
9436         (TARGET_ASM_FILE_START): Define.
9437
9438 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
9439
9440         PR plugins/69758
9441         * Makefile.in (PLUGIN_HEADERS): Add params.list.
9442
9443 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
9444
9445         PR target/65313
9446         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
9447         -Wmaybe-uninitialized warning.
9448
9449 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
9450
9451         PR target/69713
9452         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
9453
9454 2016-02-11  Richard Biener  <rguenther@suse.de>
9455
9456         PR rtl-optimization/69291
9457         * ifcvt.c (noce_try_store_flag_constants): Do not allow
9458         subexpressions affected by changing the result.
9459
9460 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
9461
9462         PR target/69148
9463         * lra-constraints.c (curr_insn_transform): Find in/out operands
9464         for secondary memory moves.  Update dups.
9465
9466 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
9467
9468         PR tree-optimization/69652
9469         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
9470         to nested loop, did source re-formatting, skip debug statements,
9471         add check on statement with volatile operand, remove dead scalar
9472         statements.
9473
9474 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
9475             Patrick Palka  <ppalka@gcc.gnu.org>
9476
9477         PR ipa/69241
9478         PR c++/69649
9479         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
9480         calls if the return type is TREE_ADDRESSABLE.
9481         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
9482         * ipa-split.c (split_function): Fix doubled "we" in comment.
9483         Use void return type for the split part even if
9484         !split_point->split_part_set_retval.
9485
9486 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
9487
9488         PR tree-optimization/68021
9489         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
9490         when computing the value of biv cand by itself.
9491
9492 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
9493
9494         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
9495         (cortexa57_tunings): Likewise.
9496         (cortexa72_tunings): Likewise.
9497         (arch_macro_fusion_pair_p): Add support for AES fusion.
9498         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
9499         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
9500         Allow virtual registers before reload so early scheduling works.
9501         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
9502         correct latency and pipeline.
9503         (cortex_a57_crypto_complex): Likewise.
9504         (cortex_a57_crypto_xor): Likewise.
9505         (define_bypass): Add AES bypass.
9506
9507 2016-02-10  Richard Biener  <rguenther@suse.de>
9508
9509         PR tree-optimization/69726
9510         * passes.def: Add DCE pass before late uninit.
9511         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
9512         really fixup if-conversions job.
9513
9514 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
9515
9516         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
9517         (arm_cortex_a57_tune): Likewise.
9518         (aarch_macro_fusion_pair_p): Add support for AES fusion.
9519         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
9520
9521 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
9522
9523         * timevar.def (TV_PHASE_DBGINFO): Delete.
9524         (TV_PHASE_CHECK_DBGINFO): Likewise.
9525         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
9526
9527 2016-02-10  Richard Biener  <rguenther@suse.de>
9528
9529         PR tree-optimization/69719
9530         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9531         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
9532
9533 2016-02-09  Andrew Pinski  <apinski@cavium.com>
9534
9535         PR tree-opt/69282
9536         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
9537         get_vcond_mask_icode returns false.
9538
9539 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
9540
9541         PR target/68404
9542         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
9543         an ADDIS that adds a pointer to a large constant that sets the
9544         upper16 bits with a load operation.
9545
9546 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
9547
9548         PR target/68532
9549         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
9550         order.
9551         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
9552         endian.
9553         (vzipq_s16): Likewise.
9554         (vzipq_s32): Likewise.
9555         (vzipq_f32): Likewise.
9556         (vzipq_u8): Likewise.
9557         (vzipq_u16): Likewise.
9558         (vzipq_u32): Likewise.
9559         (vzipq_p8): Likewise.
9560         (vzipq_p16): Likewise.
9561
9562 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
9563
9564         PR target/68532
9565         * config/arm/arm.c (neon_endian_lane_map): New function.
9566         (neon_vector_pair_endian_lane_map): New function.
9567         (arm_evpc_neon_vuzp): Allow for big endian lane order.
9568         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
9569         endian.
9570         (vuzpq_s16): Likewise.
9571         (vuzpq_s32): Likewise.
9572         (vuzpq_f32): Likewise.
9573         (vuzpq_u8): Likewise.
9574         (vuzpq_u16): Likewise.
9575         (vuzpq_u32): Likewise.
9576         (vuzpq_p8): Likewise.
9577         (vuzpq_p16): Likewise.
9578
9579 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
9580
9581         PR target/69634
9582         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
9583         debug insns.
9584
9585 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
9586
9587         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
9588         truncate const_int operand 1 to QImode.
9589
9590 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
9591
9592         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
9593         corresponding to an abnormal edge.
9594
9595 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9596
9597         PR tree-optimization/69599
9598         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
9599         function.
9600         (find_func_aliases_for_builtin_call, find_func_clobbers)
9601         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
9602         partition.
9603
9604 2016-02-09  Richard Biener  <rguenther@suse.de>
9605
9606         PR tree-optimization/69715
9607         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
9608         LHS on calls as non-rewritable.
9609
9610 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9611
9612         PR lto/69707
9613         * lto-wrapper.c (append_diag_options): New function.
9614         (compile_offload_image): Call append_diag_options.
9615
9616 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
9617
9618         PR other/69722
9619         * doc/extend.texi (Flag Output Operands): Correct sectioning.
9620         Minor copy-edit to fix verb tenses.
9621
9622 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
9623
9624         PR tree-optimization/69209
9625         * ipa-split.c (split_function): If split part is not
9626         returning retval, retval has gimple type but is not
9627         gimple value, force it into a SSA_NAME first.
9628
9629 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
9630
9631         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
9632         outdated section.
9633
9634 2016-02-08  Jason Merrill  <jason@redhat.com>
9635
9636         PR c++/69631
9637         * convert.c (convert_to_integer_1): Check dofold on truncation
9638         distribution.
9639         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
9640         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
9641         Rename from *_nofold.
9642         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
9643         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
9644
9645 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
9646
9647         PR target/60410
9648         * tree.c (build_common_tree_nodes): Remove short_double argument.
9649         All callers changed.
9650         * tree.h (build_common_tree_nodes): Adjust declaration.
9651         * doc/invoke.texi (-fshort-double): Remove documentation.
9652         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
9653         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
9654         * lto-wrapper.c (merge_and_complain, append_compiler_options)
9655         (append_linker_options): Don't handle OPT_fshort_double.
9656
9657         PR rtl-optimization/68730
9658         * lra-remat.c (insn_to_cand_activation): New static variable.
9659         (lra_remat): Allocate and free it.
9660         (create_cand): New arg activation. Initialize a field in
9661         insn_to_cand_activation if it is nonnull.
9662         (create_cands): Pass the activation insn to create_cand when making
9663         a candidate involving an output reload.  Reorganize code a little.
9664         (do_remat): Keep track of active status of candidates in a separate
9665         bitmap.
9666
9667 2016-02-08  Richard Biener  <rguenther@suse.de>
9668
9669         PR tree-optimization/69719
9670         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9671         Properly use absolute of the difference of the two offsets to
9672         compare or adjust the segment length.
9673
9674 2016-02-08  Richard Biener  <rguenther@suse.de>
9675             Jeff Law  <law@redhat.com>
9676
9677         PR target/68273
9678         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
9679         types for anonymous SSA names.
9680
9681 2016-02-08   Richard Biener  <rguenther@suse.de>
9682
9683         PR rtl-optimization/69274
9684         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
9685
9686 2016-02-08  Jeff Law  <law@redhat.com>
9687
9688         PR tree-optimization/65917
9689         * tree-ssa-dom.c (record_temporary_equivalences): Record both
9690         equivalences from if (x == y) style conditionals.
9691         (loop_depth_of_name): Remove.
9692         (record_equality): Remove loop depth check.
9693         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
9694         (const_and_copies::record_const_or_copy_raw): New member function.
9695         * tree-ssa-scopedtables.c
9696         (const_and_copies::record_const_or_copy_raw): New, factored out of
9697         (const_and_copies::record_const_or_copy): Call new member function.
9698
9699 2016-02-05  Jeff Law  <law@redhat.com>
9700
9701         PR tree-optimization/68541
9702         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
9703         (count_stmts_in_block): New function.
9704         (poor_ifcvt_candidate_code): Likewise.
9705         (is_feasible_trace): Add some heuristics to determine when path
9706         splitting is profitable.
9707         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
9708         is a diamond with a single exit.
9709
9710 2016-02-05  Martin Sebor  <msebor@redhat.com>
9711
9712         PR c++/69662
9713         * doc/invoke.texi: Update -Wplacement-new to take an optional
9714         argument.
9715
9716 2016-02-06  Richard Henderson  <rth@redhat.com>
9717
9718         PR c/69643
9719         * tree.c (tree_nop_conversion_p): Do not strip casts into or
9720         out of non-standard address spaces.
9721
9722 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
9723
9724         PR rtl-optimization/69691
9725         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
9726
9727 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
9728
9729         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
9730         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
9731         (*ieee128_mfvsrd_64bit): Likewise.
9732         (*ieee128_mfvsrd_32bit): Likewise.
9733
9734 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
9735
9736         PR target/69369
9737         Revert r232560:
9738         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
9739
9740         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
9741         instrumented_version.
9742
9743 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
9744
9745         * doc/invoke.texi (Optimize Options): In table of --param options
9746         rename second occurrence of tracer-min-branch-ratio to
9747         tracer-min-branch-probability, rename
9748         tracer-min-branch-ratio-feedback to
9749         tracer-min-branch-probability-feedback and clarify description,
9750         rename sched-spec-state-edge-prob-cutoff to
9751         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
9752         to selsched-insns-to-rename, rename lto-minpartition to
9753         lto-min-partition, delete reorder-blocks-duplicate and
9754         reorder-blocks-duplicate-feedback.
9755
9756 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9757
9758         * config/s390/s390.c (s390_register_info_set_ranges): Remove
9759         superfluous loops.
9760
9761 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9762
9763         * doc/extend.texi: S/390: Correct some typos.
9764
9765 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9766
9767         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
9768
9769 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9770
9771         PR target/69625
9772         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
9773         (s390_register_info_gprtofpr): Use new macros above.
9774         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
9775         its name.
9776         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
9777         its name.  Adjust restore and save gpr ranges.
9778         (s390_register_info_set_ranges): New function.
9779         (s390_register_info): Use new macros above.  Call
9780         s390_register_info_set_ranges.
9781         (s390_optimize_register_info): Likewise.
9782         (s390_hard_regno_rename_ok): Use new macros.
9783         (s390_hard_regno_scratch_ok): Likewise.
9784         (s390_emit_epilogue): Likewise.
9785         (s390_can_use_return_insn): Likewise.
9786         (s390_optimize_prologue): Likewise.
9787         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
9788
9789 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
9790
9791         PR bootstrap/69677
9792         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
9793         alignment fixes.
9794         (ix86_option_override_internal): Disable TARGET_STV even for
9795         -m{incoming,preferred}-stack-boundary=3.
9796
9797 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9798
9799         * config.gcc: Mark deprecated rtems targets as obsolete.
9800
9801 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
9802
9803         PR rtl-optimization/64682
9804         PR rtl-optimization/69567
9805         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
9806         before I2 only if the register is both used and set in I2.
9807
9808 2016-02-04  DJ Delorie  <dj@redhat.com>
9809
9810         * config/msp430/msp430.c (msp430_start_function): Add function type.
9811
9812 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
9813
9814         PR fortran/69368
9815         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
9816
9817 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
9818
9819         PR rtl-optimization/69577
9820         Revert:
9821         2015-10-29  Richard Henderson  <rth@redhat.com>
9822
9823         PR target/68124
9824         PR rtl-opt/67609
9825         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
9826         sse check to the exact conditions of PR 67609.
9827
9828 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
9829
9830         PR target/69667
9831         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
9832         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
9833         not allowed into the traditional Altivec registers.
9834         (movtd_64bit_nodm): Likewise.
9835         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9836
9837 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
9838
9839         * config/aarch64/cortex-a57-fma-steering.c
9840         (aarch64_register_fma_steering): Remove "static" from arguments
9841         to register_pass.
9842
9843 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
9844
9845         PR target/69619
9846         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
9847         twice when complex.
9848
9849 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
9850
9851         * doc/invoke.texi: Delete -mno-fma4.
9852
9853 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
9854
9855         PR rtl-optimization/69577
9856         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
9857         (find_subregs_of_mode): Update accordingly.  Iterate over partial
9858         definitions.
9859
9860 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
9861
9862         * config/arm/arm-protos.h (neon_reinterpret): Remove.
9863         * config/arm/arm.c (neon_reinterpret): Remove.
9864         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
9865         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
9866         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
9867         vreinterpretti): Remove.
9868         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
9869         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
9870         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
9871         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
9872         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
9873         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
9874         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
9875         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
9876         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
9877         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
9878         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
9879         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
9880         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
9881         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
9882         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
9883         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
9884         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
9885         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
9886         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
9887         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
9888         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
9889         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
9890         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
9891         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
9892         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
9893         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
9894         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
9895         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
9896         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
9897         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
9898         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
9899         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
9900         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
9901         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
9902         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
9903         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
9904         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
9905         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
9906         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
9907         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
9908         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
9909         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
9910         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
9911         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
9912         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
9913         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
9914         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
9915         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
9916         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
9917         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
9918         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
9919         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
9920         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
9921         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
9922         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
9923         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
9924         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
9925         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
9926         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
9927         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
9928         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
9929         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
9930         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
9931         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
9932         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
9933         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
9934         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
9935         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
9936         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
9937         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
9938         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
9939         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
9940         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
9941         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
9942         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
9943         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
9944         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
9945         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
9946         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
9947         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
9948         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
9949         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
9950         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
9951         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
9952         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
9953         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
9954         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
9955         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
9956         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
9957         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
9958         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
9959         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
9960         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
9961         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
9962         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
9963         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
9964         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
9965         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
9966         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
9967         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
9968         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
9969         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
9970         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
9971
9972 2016-02-04  Martin Liska  <mliska@suse.cz>
9973
9974         PR sanitizer/69276
9975         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
9976         that are gimple_store_p.
9977         (maybe_instrument_call): Likewise.
9978
9979 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
9980
9981         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
9982         register scaling out of memory reference and comment why.
9983
9984 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9985
9986         PR target/65932
9987         PR target/67714
9988         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
9989         folding the source of a SET.
9990
9991 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9992
9993         PR target/65932
9994         PR target/67714
9995         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
9996         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
9997
9998 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
9999
10000         PR target/65932
10001         PR target/67714
10002         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
10003         HImode.
10004
10005 2016-02-04  Christian Bruel  <christian.bruel@st.com>
10006
10007         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
10008         * config/arm/arm.c (arm_set_current_function): Likewise.
10009
10010 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
10011             Ilya Enkovich  <enkovich.gnu@gmail.com>
10012             H.J. Lu  <hongjiu.lu@intel.com>
10013
10014         PR target/69454
10015         * config/i386/i386.c (convert_scalars_to_vector): Remove
10016         stack alignment fixes.
10017         (ix86_option_override_internal): Disable TARGET_STV if stack
10018         might not be aligned enough.
10019         (ix86_minimum_alignment): Assert that TARGET_STV is false.
10020
10021 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
10022
10023         * config/i386/x86-tune.def: Disable default prefetching
10024         for -march=znver1.
10025
10026 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10027             Vladimir Makarov  <vmakarov@redhat.com>
10028
10029         PR target/69461
10030         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
10031         in validating fused toc addresses.
10032
10033 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
10034
10035         PR c/69627
10036         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
10037         range->m_caret fields if range->m_show_caret_p is false.
10038
10039         PR target/69644
10040         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10041         Force oldval into register if it does not satisfy reg_or_short_operand
10042         predicate.  Fix up formatting.
10043
10044 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
10045             Alexandre Oliva  <aoliva@redhat.com>
10046
10047         PR target/69461
10048         * lra-constraints.c (simplify_operand_subreg): Check additionally
10049         address validity after potential reloading.
10050         (process_address_1): Check insns validity.  In case of failure do
10051         nothing.
10052
10053 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
10054
10055         PR target/69118
10056         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
10057         Fix target.
10058
10059 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
10060
10061         * wide-int.cc (canonize_uhwi): New function.
10062         (wi::divmod_internal): Use it.
10063
10064 2016-02-02  James Norris  <jnorris@codesourcery.com
10065
10066         * gimplify.c (omp_notice_variable): Add usage check.
10067
10068 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
10069
10070         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
10071         like LE, GE, LT, GT when emitting relational operator.
10072
10073 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
10074
10075         * ira-costs.c (find_costs_and_classes): Add extra argument.
10076         * target.def (ira_change_pseudo_allocno_class): Add parameter.
10077         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
10078         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
10079         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
10080         Add best_class parameter, and return it if not ALL_REGS.
10081         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
10082         Add parameter.
10083         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
10084         Update target hook.
10085
10086 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
10087
10088         * config/aarch64/aarch64.c
10089         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
10090         (aarch64_ira_change_pseudo_allocno_class): New function.
10091
10092 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
10093
10094         PR target/67032
10095         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
10096
10097 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10098
10099         * config/avr/avr.c (avr_option_override): Set
10100         PARAM_ALLOW_STORE_DATA_RACES to 1.
10101
10102 2016-02-02  Richard Biener  <rguenther@suse.de>
10103
10104         PR tree-optimization/69595
10105         * match.pd: Add range test simplifications to true/false.
10106
10107 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
10108
10109         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
10110         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
10111         instead.
10112
10113 2016-02-02  Richard Biener  <rguenther@suse.de>
10114
10115         PR tree-optimization/69606
10116         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
10117         info on the result before moving a stmt.
10118
10119 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
10120
10121         PR middle-end/68542
10122         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
10123         branch with vector comparison.
10124         * config/i386/sse.md (VI48_AVX): New mode iterator.
10125         (define_expand "cbranch<mode>4): Add support for conditional branch
10126         with vector comparison.
10127         * tree-vect-loop.c (optimize_mask_stores): New function.
10128         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
10129         has_mask_store field of vect_info.
10130         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
10131         vectorized loops having masked stores after vec_info destroy.
10132         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
10133         correspondent macros.
10134         (optimize_mask_stores): Add prototype.
10135
10136 2016-02-02  Alan Modra  <amodra@gmail.com>
10137
10138         PR target/69548
10139         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
10140         allow subregs.
10141
10142 2016-02-02  Alan Modra  <amodra@gmail.com>
10143
10144         PR target/68662
10145         * config/rs6000/rs6000.c (need_toc_init): New var, set it
10146         whenever toc_label_name used.
10147         (rs6000_file_start): Don't set up toc section here,
10148         (rs6000_output_function_epilogue): do so here instead,
10149         (rs6000_xcoff_file_start): and here.
10150         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
10151         (load_toc_aix_di): Likewise.
10152
10153 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
10154
10155         PR rtl-optimization/69592
10156         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
10157         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
10158         (num_sign_bit_copies_binary_arith_p): New inline function.
10159         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
10160
10161 2016-02-01  Jeff Law  <law@redhat.com>
10162
10163         PR tree-optimization/69580
10164         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
10165         * tree-ssa-threadbackward.c
10166         (fsm_find_control_statement_thread_paths): Do not try to walk
10167         through large PHI nodes.
10168
10169 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
10170
10171         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
10172         when count is incremented above limit, don't analyze further
10173         insns afterwards.
10174
10175         * omp-low.c (oacc_parse_default_dims): Avoid
10176         -Wsign-compare warning, make sure value fits into int
10177         rather than just unsigned int.
10178
10179 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
10180
10181         PR tree-optimization/67921
10182         * fold-const.c (split_tree): New parameters.  Convert pointer
10183         type variable part to proper type before negating.
10184         (fold_binary_loc): Pass new arguments to split_tree.
10185
10186 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
10187
10188         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
10189         (nvptx_goacc_validate_dims): Extend to handle global defaults.
10190         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
10191         * doc/tm.texti: Rebuilt.
10192         * doc/invoke.texi (fopenacc-dim): Document.
10193         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
10194         (append_compiler_options): Likewise.
10195         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
10196         (oacc_parse_default_dims): New.
10197         (oacc_validate_dims): Add USED arg.  Select non-unity default when
10198         possible.
10199         (oacc_loop_fixed_partitions): Return mask of used partitions.
10200         (oacc_loop_auto_partitions): Emit dump info.
10201         (oacc_loop_partition): Return mask of used partitions.
10202         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
10203         loop partitioning and validation calls.
10204
10205 2016-02-01  Richard Biener  <rguenther@suse.de>
10206
10207         PR middle-end/69556
10208         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
10209
10210 2016-02-01  Richard Biener  <rguenther@suse.de>
10211
10212         PR tree-optimization/69574
10213         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
10214         of asserting return chrec_dont_know.
10215
10216 2016-02-01  Martin Liska  <mliska@suse.cz>
10217
10218         * mem-stats-traits.h: Add copyright header.
10219         * mem-stats.h: Likewise.
10220
10221 2016-02-01  Richard Biener  <rguenther@suse.de>
10222
10223         PR tree-optimization/69579
10224         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
10225         Do not propagate through abnormal PHI results.
10226
10227 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
10228
10229         * postreload.c (reload_cse_simplify): Remove dead code.
10230
10231 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
10232
10233         PR rtl-optimization/69570
10234         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
10235         if there is more than one set, not if there is a single set.
10236
10237 2016-02-01  Richard Henderson  <rth@redhat.com>
10238
10239         PR rtl-opt/69535
10240         * combine.c (make_compound_operation): When looking through a
10241         subreg, make sure to re-extend to the width of the outer mode.
10242
10243 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
10244
10245         PR tree-optimization/69546
10246         * wide-int.cc (wi::divmod_internal): For unsigned division
10247         where both operands fit into uhwi, if o1 is 1 and o0 has
10248         msb set, if divident_prec is larger than bits per hwi,
10249         clear another quotient word and return 2 instead of 1.
10250         Similarly for remainder with msb in HWI set, if dividend_prec
10251         is larger than bits per hwi.
10252
10253 2016-01-29  Martin Jambor  <mjambor@suse.cz>
10254
10255         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
10256         Use short lowercase names.
10257         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
10258         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
10259         acq_rel one.  Protect warning agains segfaults if
10260         get_memory_order_name returns NULL.
10261         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
10262         with release semantics.  Do not warn if get_memory_order already did.
10263         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
10264         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
10265         if get_memory_order already did.
10266
10267 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
10268
10269         * doc/install.texi: Document that isl-0.16 is supported.
10270
10271 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
10272
10273         PR target/69299
10274         * config/i386/constraints.md (Bm): Describe as special memory
10275         constraint.
10276         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
10277         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10278         * genpreds.c (struct constraint_data): Add is_special_memory.
10279         (have_special_memory_constraints, special_memory_start): New
10280         static vars.
10281         (special_memory_end): Ditto.
10282         (add_constraint): Add new arg is_special_memory.  Add code to
10283         process its true value.  Update have_special_memory_constraints.
10284         (process_define_constraint): Pass the new arg.
10285         (process_define_register_constraint): Ditto.
10286         (choose_enum_order): Process special memory.
10287         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
10288         function insn_extra_special_memory_constraint.
10289         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10290         * gensupport.c (process_rtx): Process
10291         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10292         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
10293         * ira-lives.c (single_reg_class): Use
10294         insn_extra_special_memory_constraint.
10295         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
10296         * lra-constraints.c (process_alt_operands): Ditto.
10297         (curr_insn_transform): Use insn_extra_special_memory_constraint.
10298         * recog.c (asm_operand_ok, preprocess_constraints): Process
10299         CT_SPECIAL_MEMORY.
10300         * reload.c (find_reloads): Ditto.
10301         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
10302         * stmt.c (parse_input_constraint): Use
10303         insn_extra_special_memory_constraint.
10304
10305 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
10306
10307         PR target/69530
10308         * lra-splill.c (lra_final_code_change): Revert r229087 by
10309         removing all sub-registers.
10310
10311 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
10312
10313         PR target/65604
10314         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
10315
10316 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
10317
10318         PR target/69551
10319         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
10320         SSE1, copy target into the temporary reg first before recursing
10321         on it.
10322
10323 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
10324
10325         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
10326         with vm.
10327
10328 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
10329
10330         * ginclude/stdarg.h: Test __cplusplus instead of
10331         __GXX_EXPERIMENTAL_CXX0X__.
10332
10333 2016-01-29  Richard Biener  <rguenther@suse.de>
10334
10335         PR tree-optimization/69547
10336         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
10337         Do not mark clobbers necessary.
10338         (mark_all_reaching_defs_necessary_1): Likewise.
10339
10340 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10341
10342         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
10343         declaration name with %qs and print it in both error messages.
10344         Also fix indentation.
10345
10346 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10347
10348         PR other/69006
10349         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
10350         trailing blank line from error message.
10351
10352 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
10353
10354         PR c++/69462
10355         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
10356         for C++-11.
10357
10358 2016-01-29  Richard Biener  <rguenther@suse.de>
10359
10360         PR middle-end/69537
10361         * match.pd: Allow all integral types when simplifying a
10362         widening or sign-changing conversion.
10363
10364 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
10365
10366         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
10367         back to setting codegen_error to fail codegen.
10368
10369 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
10370
10371         PR target/69459
10372         * config/i386/constraints.md (C): Only accept constant zero operand.
10373         (BC): New constraint.
10374         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
10375         instead of C constraint.
10376         * doc/md.texi (Machine Constraints): Update description
10377         of C constraint.
10378
10379 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
10380
10381         PR target/68400
10382         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
10383
10384 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
10385
10386         PR middle-end/69542
10387         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
10388         non-debug insns.
10389
10390 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
10391
10392         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
10393         branches if using guessed profile.
10394
10395 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
10396
10397         * graphite-optimize-isl.c (optimize_isl): Fix dump.
10398
10399 2016-01-28  Richard Henderson  <rth@redhat.com>
10400
10401         PR target/69305
10402         * config/aarch64/aarch64-modes.def (CC_Cmode): New
10403         * config/aarch64/aarch64-protos.h: Update.
10404         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
10405         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
10406         (aarch64_get_condition_code_1): Handle CC_Cmode.
10407         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
10408         (*add<mode>3_compareC_cconly_imm): New.
10409         (*add<mode>3_compareC_cconly): New.
10410         (*add<mode>3_compareC_imm): New.
10411         (add<mode>3_compareC): New.
10412         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
10413         to be first.  Use aarch64_carry_operation.
10414         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
10415         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
10416         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
10417         (subti3): Use subdi3_compare1.
10418         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
10419         (sub<mode>3_compare1): New.
10420         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
10421         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
10422         (*subsi3_carryin_uxtw): Likewise.
10423         (*ngc<mode>, *ngcsi_uxtw): Likewise.
10424         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
10425         * config/aarch64/iterators.md (DWI): New.
10426         * config/aarch64/predicates.md (aarch64_carry_operation): New.
10427         (aarch64_borrow_operation): New.
10428
10429 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
10430
10431         * graphite-optimize-isl.c (optimize_isl): Print a different debug
10432         message when isl does not return a valid schedule.
10433
10434 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
10435
10436         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10437         Remove comments from class declarations: they are already in the code
10438         close by the defs.
10439
10440 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
10441
10442         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
10443         codegen_error_p.
10444         (ternary_op_to_tree): Same.
10445         (unary_op_to_tree): Same.
10446         (nary_op_to_tree): Same.
10447         (gcc_expression_from_isl_expr_op): Same.
10448         (gcc_expression_from_isl_expression): Same.
10449         (graphite_create_new_loop): Same.
10450         (graphite_create_new_loop_guard): Same.
10451         (build_iv_mapping): Same.
10452         (graphite_create_new_guard): Same.
10453         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
10454         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
10455
10456 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
10457
10458         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
10459         instead of setting codegen_error to fail codegen.
10460
10461 2016-01-28  Jason Merrill  <jason@redhat.com>
10462
10463         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
10464
10465 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
10466
10467         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10468         Remove CONST_INT_P check in CCMP cost calculation.
10469
10470 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
10471
10472         * config/aarch64/aarch64.c (generic_vector_cost):
10473         Set vec_permute_cost.
10474         (cortexa57_vector_cost): Likewise.
10475         (exynosm1_vector_cost): Likewise.
10476         (xgene1_vector_cost): Likewise.
10477         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
10478         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
10479         Add vec_permute_cost entry.
10480
10481 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
10482
10483         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
10484         immediate as %1.
10485         (add<mode>3_compare0): Likewise.
10486         (addsi3_compare0_uxtw): Likewise.
10487         (add<mode>3nr_compare0): Likewise.
10488         (compare_neg<mode>): Likewise.
10489         (<optab><mode>3): Likewise.
10490
10491 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
10492
10493         * tree-vect-stmts.c (vectorizable_comparison): Add
10494         NULL check for vectype.
10495
10496 2016-01-28  Richard Biener  <rguenther@suse.de>
10497
10498         PR tree-optimization/69466
10499         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
10500         Account for PHIs we couldn't duplicate.
10501
10502 2016-01-28  Martin Liska  <mliska@suse.cz>
10503
10504         PR pch/68758
10505         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
10506         instead of ENABLE_VALGRIND_CHECKING.
10507
10508 2016-01-27  Richard Henderson  <rth@redhat.com>
10509
10510         PR rtl-opt/69447
10511         * lra-remat.c (subreg_regs): New.
10512         (dump_candidates_and_remat_bb_data): Dump it.
10513         (operand_to_remat): Reject if operand in subreg_regs.
10514         (set_bb_regs): Collect subreg_regs.
10515         (lra_remat): Init and free subreg_regs.  Compute
10516         calculate_local_reg_remat_bb_data before create_cands.
10517
10518 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
10519
10520         PR target/68986
10521         * config/i386/i386.c (ix86_update_stack_boundary): Don't
10522         change stack_alignment_needed for __tls_get_addr call.
10523
10524 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
10525
10526         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
10527
10528 2016-01-27  Jeff Law  <law@redhat.com>
10529
10530         PR tree-optimization/68398
10531         PR tree-optimization/69196
10532         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
10533         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
10534         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10535         Only count PHIs in the last block in the path.  The others will
10536         const/copy propagate away.  Add heuristic to allow more irreducible
10537         subloops to be created when it is likely profitable to do so.
10538
10539         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10540         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
10541         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
10542
10543 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
10544
10545         PR lto/69254
10546         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
10547         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
10548         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
10549         * tree-streamer-in.c: Include asan.h.
10550         (streamer_get_builtin_tree): For builtins in sanitizer
10551         range call initialize_sanitizer_builtins and retry.
10552
10553 2016-01-27  Ian Lance Taylor  <iant@google.com>
10554
10555         * common.opt (fkeep-gc-roots-live): New undocumented option.
10556         * tree-ssa-loop-ivopts.c (add_candidate_1): If
10557         -fkeep-gc-roots-live, skip pointers.
10558         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
10559         NULL.
10560
10561 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
10562
10563         PR target/69512
10564         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
10565         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
10566
10567 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
10568
10569         PR target/68380
10570         * configure.ac: NetBSD provides SSP in its C library.
10571         * configure: Updated.
10572
10573 2016-01-27  Richard Biener  <rguenther@suse.de>
10574
10575         PR tree-optimization/69166
10576         * tree-vect-loop.c (vect_is_simple_reduction): Always check
10577         reduction code for commutativity / associativity.
10578
10579 2016-01-27  Martin Jambor  <mjambor@suse.cz>
10580
10581         PR tree-optimization/69355
10582         * tree-sra.c (analyze_access_subtree): Correct hole detection when
10583         total_scalarization fails.
10584
10585 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
10586
10587         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
10588         power9.
10589
10590 2016-01-27  Christian Bruel  <christian.bruel@st.com>
10591
10592         PR target/69245
10593         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
10594         Move arm_reset_previous_fndecl and set_target_option_current_node in
10595         the conditional part.  Call save_restore_target_globals.
10596         * config/arm/arm.c (arm_set_current_function):
10597         Refactor to better support #pragma target and attribute mix.
10598         Call save_restore_target_globals.
10599         * config/arm/arm-protos.h (save_restore_target_globals): New function.
10600
10601 2016-01-27  Martin Liska  <mliska@suse.cz>
10602
10603         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
10604         reference for an HSA kernel and its host function.
10605
10606 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
10607
10608         PR tree-optimization/69399
10609         * wide-int.h (wi::lrshift): For larger precisions, only
10610         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
10611
10612 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
10613
10614         * config/arc/predicates.md (proper_comparison_operator): Reject
10615         constant-constant comparison.
10616
10617 2016-01-26  Tom de Vries  <tom@codesourcery.com>
10618
10619         PR tree-optimization/69110
10620         * tree-data-ref.c (initialize_data_dependence_relation): Handle
10621         DR_NUM_DIMENSIONS == 0.
10622
10623 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
10624             Sebastian Pop  <s.pop@samsung.com>
10625
10626         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
10627         isl_ast_op_cond and isl_ast_op_select.
10628         (gcc_expression_from_isl_expr_op): Same.
10629
10630 2016-01-26  Jason Merrill  <jason@redhat.com>
10631
10632         PR c++/68782
10633         * tree.c (recompute_constructor_flags): Split out from
10634         build_constructor.
10635         (verify_constructor_flags): New.
10636         * tree.h: Declare them.
10637
10638 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
10639
10640         PR rtl-optimization/69217
10641         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
10642         are no TYPE_FIELDS set for the record type.
10643
10644 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
10645
10646         PR target/68662
10647         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
10648         toc_label_name unconditionally.
10649         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
10650         SYMBOL_REF string.  Use toc_label_name instead of constructing
10651         LCTOC1.
10652         (rs6000_elf_declare_function_name): Use toc_label_name instead of
10653         constructing LCTOC1.
10654
10655 2016-01-26  Martin Sebor  <msebor@redhat.com>
10656
10657         PR other/69477
10658         * doc/extend.texi (Common Type Attributes): Move text that talks about
10659         attribute packed from attribute aligned to the section discussing
10660         the former attribute for clarity.
10661
10662 2016-01-26  Richard Henderson  <rth@redhat.com>
10663
10664         PR middle-end/60908
10665         * trans-mem.c (tm_region_init): Mark entry block as visited.
10666
10667 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
10668
10669         PR other/69006
10670         * diagnostic-show-locus.c (layout::print_source_line): Replace
10671         call to pp_newline with call to layout::print_newline.
10672         (layout::print_annotation_line): Likewise.
10673         (layout::move_to_column): Likewise.
10674         (layout::print_any_fixits): After printing any fixits, print a
10675         trailing newline, if necessary.
10676         (layout::print_newline): New method, resetting any colorization
10677         before a newline.
10678         (diagnostic_show_locus): Move the pp_newline to before the
10679         early bailout.  Remove dummy block enclosing the layout instance.
10680         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
10681         of pp_newline_and_flush with pp_flush.
10682         (diagnostic_append_note): Delete use of pp_newline.
10683         (diagnostic_append_note_at_rich_loc): Delete.
10684         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
10685         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
10686         when newline characters are added to the buffer.
10687
10688 2016-01-26  Michael Matz  <matz@suse.de>
10689
10690         * configure.ac (ac_cv_std_swap_in_utility): New test.
10691         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
10692         * configure: Regenerate.
10693         * config.in: Regenerate.
10694
10695 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
10696
10697         * config/arc/arc.md (cstoresi4): Force operand into register.
10698         (arcset<code>): Fix predicate.
10699         (arcsetltu): Likewise.
10700         (arcsetgeu): Likewise.
10701         (arcsethi): Likewise.
10702         (arcsetls): Likewise.
10703
10704 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
10705
10706         PR tree-optimization/69483
10707         * gimple-fold.c (canonicalize_constructor_val): Return NULL
10708         if base has error_mark_node type.
10709
10710 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
10711
10712         PR target/68620
10713         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
10714         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
10715         New helper macros.
10716         (vget_lane_f16): Handle big-endian.
10717         (vgetq_lane_f16): Likewise.
10718         (vset_lane_f16): Likewise.
10719         (vsetq_lane_f16): Likewise.
10720         * config/arm/iterators.md (VQXMOV): Add V8HF.
10721         (VDQ): Add V4HF and V8HF.
10722         (V_reg): Handle V4HF and V8HF.
10723         (Is_float_mode): Likewise.
10724         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
10725         neon_vdup_nv8hf): New patterns.
10726         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
10727         Use VD_LANE iterator.
10728         (neon_vld1_dup<mode>): Use VQ2 iterator.
10729
10730 2016-01-26  Nathan Sidwell  <nathan@acm.org>
10731
10732         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
10733         (set_oacc_fn_attrib): Add IS_KERNEL arg.
10734         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
10735         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
10736         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
10737         (oacc_validate_dims): Add LEVEL arg, don't return level.
10738         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
10739         oacc_validate_dims.
10740         (execute_oacc_device_lower): Adjust, add more dump output.
10741         * tree-ssa-loop.c (gate_oacc_kernels): Use
10742         oacc_fn_attrib_kernels_p.
10743         * tree-parloops.c (create_parallel_loop): Adjust
10744         set_oacc_fn_attrib call.
10745
10746 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
10747
10748         PR lto/69254
10749         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
10750         (append_compiler_options): Handle -fcilkplus.
10751         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
10752
10753 2016-01-26  Nick Clifton  <nickc@redhat.com>
10754
10755         PR target/66655
10756         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
10757         been marked as DECL_ONE_ONLY but we do not the means to make it
10758         so, then do not allow it to bind locally.
10759
10760 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
10761
10762         PR lto/69254
10763         * opts.h (parse_sanitizer_options): New prototype.
10764         * opts.c (sanitizer_opts): New array.
10765         (parse_sanitizer_options): New function.
10766         (common_handle_option): Use parse_sanitizer_options.
10767
10768 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
10769
10770         PR target/68986
10771         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
10772         alignment adjustment to ...
10773         (ix86_update_stack_boundary): Here.  Don't over-align stack for
10774         __tls_get_addr.
10775         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
10776         if __tls_get_addr is called.
10777
10778 2016-01-26  Christian Bruel  <christian.bruel@st.com>
10779
10780         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
10781
10782 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
10783
10784         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
10785
10786 2016-01-26  Richard Biener  <rguenther@suse.de>
10787
10788         PR middle-end/69467
10789         * match.pd: Guard X * CST CMP 0 pattern with single_use.
10790
10791 2016-01-26  Richard Biener  <rguenther@suse.de>
10792
10793         PR tree-optimization/69452
10794         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
10795         (move_computations_dom_walker::before_dom_children): Rename
10796         to ...
10797         (move_computations_worker): This.
10798         (move_computations): Perform an RPO rather than a DOM walk.
10799
10800 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
10801
10802         PR target/69442
10803         * combine.c (combine_instructions): For REG_EQUAL note with
10804         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
10805         to the underlying register.
10806         * doc/rtl.texi (REG_EQUAL): Document the behavior of
10807         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
10808
10809 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
10810
10811         PR target/67896
10812         * config/aarch64/aarch64-builtins.c
10813         (aarch64_init_simd_builtin_types): Do not set structural
10814         equality to __Poly{8,16,64,128}_t types.
10815
10816 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
10817
10818         PR tree-optimization/69400
10819         * wide-int.cc (wi_pack): Take the precision as argument and
10820         perform canonicalization here rather than in the callers.
10821         Use the main loop to handle all full-width HWIs.  Add a
10822         zero HWI if in_len isn't a full result.
10823         (wi::divmod_internal): Update accordingly.
10824         (wi::mul_internal): Likewise.  Simplify.
10825
10826 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
10827             Sebastian Pop  <s.pop@samsung.com>
10828
10829         * graphite-poly.c (apply_poly_transforms): Simplify.
10830         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
10831         (print_isl_map): Same.
10832         (print_isl_union_map): Same.
10833         (print_isl_schedule): New.
10834         (debug_isl_schedule): New.
10835         * graphite-dependences.c (scop_get_reads): Do not call
10836         isl_union_map_add_map that is undocumented isl functionality.
10837         (scop_get_must_writes): Same.
10838         (scop_get_may_writes): Same.
10839         (scop_get_original_schedule): Remove.
10840         (scop_get_dependences): Do not call isl_union_map_compute_flow that
10841         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
10842         (compute_deps): Remove.
10843         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
10844         (debug_schedule_ast): New.
10845         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
10846         set_separate_option.
10847         (graphite_regenerate_ast_isl): Add dump.
10848         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
10849         from scop->transformed_schedule.
10850         (graphite_regenerate_ast_isl): Add more dump.
10851         * graphite-optimize-isl.c (optimize_isl): Set
10852         scop->transformed_schedule.  Check whether schedules are equal.
10853         (apply_poly_transforms): Move here.
10854         * graphite-poly.c (apply_poly_transforms): ... from here.
10855         (free_poly_bb): Static.
10856         (free_scop): Static.
10857         (pbb_number_of_iterations_at_time): Remove.
10858         (print_isl_ast): New.
10859         (debug_isl_ast): New.
10860         (debug_scop_pbb): New.
10861         * graphite-scop-detection.c (print_edge): Move.
10862         (print_sese): Move.
10863         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
10864         (build_scop_scattering): Remove.
10865         (create_pw_aff_from_tree): Assert instead of bailing out.
10866         (add_condition_to_pbb): Remove unused code, do not fail.
10867         (add_conditions_to_domain): Same.
10868         (add_conditions_to_constraints): Remove.
10869         (build_scop_context): New.
10870         (add_iter_domain_dimension): New.
10871         (build_iteration_domains): Initialize pbb->iterators.
10872         Call add_conditions_to_domain.
10873         (nested_in): New.
10874         (loop_at): New.
10875         (index_outermost_in_loop): New.
10876         (index_pbb_in_loop): New.
10877         (outermost_pbb_in): New.
10878         (add_in_sequence): New.
10879         (add_outer_projection): New.
10880         (outer_projection_mupa): New.
10881         (add_loop_schedule): New.
10882         (build_schedule_pbb): New.
10883         (build_schedule_loop): New.
10884         (embed_in_surrounding_loops): New.
10885         (build_schedule_loop_nest): New.
10886         (build_original_schedule): New.
10887         (build_poly_scop): Call build_original_schedule.
10888         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
10889         (free_poly_dr): Remove.
10890         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
10891         (free_poly_bb): Remove.
10892         (debug_loop_vec): Remove.
10893         (print_isl_ast): Declare.
10894         (debug_isl_ast): Declare.
10895         (scop_do_interchange): Remove.
10896         (scop_do_strip_mine): Remove.
10897         (scop_do_block): Remove.
10898         (flatten_all_loops): Remove.
10899         (optimize_isl): Remove.
10900         (pbb_number_of_iterations_at_time): Remove.
10901         (debug_scop_pbb): Declare.
10902         (print_schedule_ast): Declare.
10903         (debug_schedule_ast): Declare.
10904         (struct scop): Remove schedule.  Add original_schedule,
10905         transformed_schedule.
10906         (free_gimple_poly_bb): Remove.
10907         (print_generated_program): Remove.
10908         (debug_generated_program): Remove.
10909         (unify_scattering_dimensions): Remove.
10910         * sese.c (print_edge): ... here.
10911         (print_sese): ... here.
10912         (debug_edge): ... here.
10913         (debug_sese): ... here.
10914         * sese.h (print_edge): Declare.
10915         (print_sese): Declare.
10916         (dump_edge): Declare.
10917         (dump_sese): Declare.
10918
10919 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
10920             Sebastian Pop  <s.pop@samsung.com>
10921
10922         * Makefile.in: Set ISLVER in site.exp.
10923
10924 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
10925
10926         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
10927         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
10928         through DECL_VALUE_EXPR for expansion.
10929
10930 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10931
10932         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
10933         the frame info after reload completed.
10934
10935 2016-01-25  Jeff Law  <law@redhat.com>
10936
10937         PR tree-optimization/69196
10938         PR tree-optimization/68398
10939         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
10940         tree-ssa-threadupdate.c.
10941         (determine_bb_domination_status): Prototype
10942         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
10943         (determine_bb_domination_status): No longer static.
10944         (valid_jump_thread_path): Remove code to detect characteristics
10945         of the jump thread path not associated with correctness.
10946         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
10947         Correct test for thread path length.  Count PHIs for real operands as
10948         statements that need to be copied.  Do not count ASSERT_EXPRs.
10949         Look at all the blocks in the thread path.  Compute and selectively
10950         filter thread paths based on threading through the latch, threading
10951         a multiway branch or crossing a multiway branch.
10952
10953 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10954
10955         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
10956         decl with __attribute__ ((unused)) annotation.
10957
10958 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
10959
10960         PR target/69421
10961         * tree-vect-stmts.c (vectorizable_condition): Check vectype
10962         of operands is compatible with a statement vectype.
10963
10964 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
10965
10966         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
10967         improve wording for mixed storage order support.
10968
10969 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
10970
10971         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
10972         (vcvt_u64_f64): Likewise.
10973         (vcvta_s64_f64): Likewise.
10974         (vcvta_u64_f64): Likewise.
10975         (vcvtm_s64_f64): Likewise.
10976         (vcvtm_u64_f64): Likewise.
10977         (vcvtn_s64_f64): Likewise.
10978         (vcvtn_u64_f64): Likewise.
10979         (vcvtp_s64_f64): Likewise.
10980         (vcvtp_u64_f64): Likewise.
10981
10982 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
10983
10984         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
10985         (arc_init): Check validity mll64 option.
10986         (arc_save_restore): Use double load/store instruction.
10987         (arc_expand_movmem): Likewise.
10988         (arc_split_move): Don't split if we have double load/store
10989         instructions. Returns a boolean.
10990         (arc_process_double_reg_moves): Change function to return boolean
10991         instead of a sequence of instructions.
10992         (arc_dwarf_register_span): New function.
10993         * config/arc/arc-protos.h (arc_split_move): Change prototype.
10994         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
10995         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
10996         (*movdf_insn): Likewise.
10997         * config/arc/arc.opt (mll64): New option.
10998         * config/arc/predicates.md (even_register_operand): New predicate.
10999         * doc/invoke.texi (ARC Options): Add mll64 documentation.
11000
11001 2016-01-25  Richard Biener  <rguenther@suse.de>
11002
11003         PR lto/69393
11004         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
11005         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
11006         DECL_NAMELESS.
11007         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
11008
11009 2016-01-25  Richard Biener  <rguenther@suse.de>
11010
11011         PR tree-optimization/69376
11012         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
11013         flag.
11014         (VN_INFO_ANTI_RANGE_P): New inline.
11015         (VN_INFO_RANGE_TYPE): Likewise.
11016         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
11017         SSA_NAME_ANTI_RANGE_P.
11018         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
11019         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11020         Properly query VN_INFO_RANGE_TYPE.
11021
11022 2016-01-25  Nick Clifton  <nickc@redhat.com>
11023
11024         PR target/66655
11025         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
11026
11027 2016-01-23  Tom de Vries  <tom@codesourcery.com>
11028
11029         PR tree-optimization/69426
11030         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
11031         removed clobber.
11032
11033 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
11034
11035         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
11036         "the the" with "the" in the comments.
11037         * ipa-devirt.c (build_type_inheritance_graph,
11038         update_type_inheritance_graph): Likewise.
11039         * tree.c (build_function_type_list_1): Likewise.
11040         * cfgloopmanip.c (scale_loop_profile): Likewise.
11041         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
11042         * gimple-ssa-split-paths.c
11043         (find_block_to_duplicate_for_splitting_paths): Likewise.
11044         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
11045         * expr.c (convert_move): Likewise.
11046         * var-tracking.c (vt_stack_adjustments): Likewise.
11047         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11048         * tree-vrp.c (test_for_singularity): Likewise.
11049
11050         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
11051         directly instead of building a temporary tree.
11052
11053         PR bootstrap/69434
11054         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
11055         remove <algorithm> include.
11056
11057 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
11058
11059         PR target/69432
11060         * config/i386/i386.c: Include dojump.h.
11061         (expand_small_movmem_or_setmem,
11062         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
11063         fixes.
11064         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
11065         if dynamic_check != -1.
11066
11067 2016-01-21  Jeff Law  <law@redhat.com>
11068
11069         PR middle-end/69347
11070         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
11071         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
11072         into dominated_by_p.
11073         (cprop_into_successor_phis): Avoid unnecessary tests.
11074
11075 2016-01-22  Richard Henderson  <rth@redhat.com>
11076
11077         PR target/69416
11078         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
11079         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
11080
11081 2016-01-22  Michael Matz  <matz@suse.de>
11082
11083         * system.h (string, algorithm): Include only conditionally.
11084         (new): Include always under C++.
11085         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
11086         * final.c (toplevel): Ditto.
11087         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
11088         * genconditions.c (write_header): Make gencondmd.c define
11089         INCLUDE_STRING.
11090         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
11091
11092         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
11093         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
11094
11095 2016-01-22  Christian Bruel  <christian.bruel@st.com>
11096
11097         PR target/68674
11098         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
11099
11100 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11101
11102         PR target/69403
11103         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
11104         define_insn_and_split.  Ensure operands[1] and operands[0] do not
11105         get assigned the same register.
11106
11107 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
11108
11109         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
11110
11111 2016-01-22  Christian Bruel  <christian.bruel@st.com>
11112
11113         * config/arm/arm-c.c (arm_pragma_target_parse):
11114         Remove warn_builtin_macro_redefined overwrite.
11115
11116 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
11117
11118         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
11119         flag_non_call_exceptions compatibility.
11120
11121 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
11122
11123         PR debug/66668
11124         * dwarf2out.c (add_child_die_after): New function.
11125         (dwarf_qual_info_t): New type.
11126         (dwarf_qual_info): New variable.
11127         (qualified_die_p): New function.
11128         (modified_type_die): For -fdebug-types-section, ensure
11129         canonical order of qualifiers.  Put qualified DIEs adjacent
11130         to the corresponding non-qualified type DIE and search there
11131         for existing qualified DIEs.
11132
11133 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
11134
11135         * doc/extend.texi (scalar_storage_order type attribute): Document
11136         restriction on type punning and aliasing, and remove future tense.
11137
11138 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
11139
11140         PR target/69252
11141         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
11142         first stage.
11143
11144 2016-01-21  Jeff Law  <law@redhat.com>
11145
11146         PR middle-end/69347
11147         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
11148         useless call to record_temporary_equivalences.
11149         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
11150         allocate 10 slots in the bb_path vector and let it grow as needed.
11151         (fsm_find_control_statement_thread_paths): Similarly for the next_path
11152         vector.
11153
11154 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
11155
11156         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
11157         Detangle.
11158         * configure: Regenerate.
11159
11160 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
11161
11162         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
11163         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
11164
11165 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
11166
11167         PR middle-end/66178
11168         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
11169         drop EXPAND_INITIALIZER.
11170         * rtl.h (contains_symbolic_reference_p): Declare.
11171         * rtlanal.c (contains_symbolic_reference_p): New function.
11172         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
11173         a subtraction into a NOT if symbolic constants are involved.
11174
11175 2016-01-21  Anton Blanchard  <anton@samba.org>
11176             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11177
11178         PR target/63354
11179         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
11180         #define.
11181         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
11182         function.
11183
11184 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
11185
11186         * config/microblaze/microblaze.c
11187         (get_branch_target): New.
11188         (insert_wic_for_ilb_runout): New.
11189         (insert_wic): New.
11190         (microblaze_machine_dependent_reorg): New.
11191         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
11192         * config/microblaze/microblaze.md
11193         (UNSPEC_IPREFETCH): Define.
11194         (iprefetch): New pattern
11195         * config/microblaze/microblaze.opt
11196         (mxl-prefetch): New flag.
11197
11198 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
11199
11200         * config/microblaze/microblaze.h
11201         (FIXED_REGISTERS): Update in macro.
11202         (CALL_USED_REGISTERS): Update in macro.
11203
11204 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
11205
11206         PR rtl-optimization/68920
11207         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
11208         moves.
11209
11210 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
11211
11212         PR rtl-optimization/68990
11213         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
11214         pseudo instead of inheritance ones.
11215
11216 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11217             Nick Clifton  <nickc@redhat.com>
11218
11219         PR target/69129
11220         PR target/69012
11221         * config/mips/mips.c (mips_compute_frame_info): Initialise
11222         args_size and hard_frame_pointer_offset fields of the frame
11223         structure before calling mips_global_pointer.
11224
11225 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
11226
11227         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
11228         label reference.
11229         * configure: Regenerate.
11230
11231 2016-01-21  Richard Biener  <rguenther@suse.de>
11232
11233         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
11234
11235 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
11236
11237         * config/s390/s390.c (s390_asm_declare_function_size): Add code
11238         to actually emit the .size directive.
11239
11240 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
11241              Jakub Jelinek  <jakub@redhat.com>
11242
11243         PR target/69187
11244         PR target/65624
11245         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
11246         args array size by one to avoid buffer overflow.
11247
11248 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
11249
11250         * config/s390/s390.md (pool_section_start): Use switch_to_section
11251         to select proper read-only data section instead of hardcoding
11252         .rodata.
11253         (pool_section_end): Use switch_to_section to match the above.
11254
11255 2016-01-21  Richard Biener  <rguenther@suse.de>
11256
11257         PR tree-optimization/69378
11258         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
11259         (set_ssa_val_to): Use it for dominance checks taking into
11260         account not executable edges.
11261
11262 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
11263
11264         PR c++/69355
11265         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
11266         for bitsize instead of GET_MODE_PRECISION (mode).
11267
11268 2016-01-20  Martin Sebor  <msebor@redhat.com>
11269
11270         PR c/52291
11271         * extend.texi (__sync Builtins): Clarify the semantics of
11272         __sync_fetch_and_OP built-ins on pointers.
11273         (__atomic Builtins): Same.
11274
11275 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11276             Sebastian Pop  <s.pop@samsung.com>
11277
11278         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
11279         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
11280         (is_valid_rename): Same.
11281         (translate_isl_ast_to_gimple::get_rename): Same.
11282         (translate_isl_ast_to_gimple::rename_all_uses): Same.
11283         (translate_isl_ast_to_gimple::rename_uses): Same.
11284         (get_new_name): Check for close_phi nodes.
11285         (copy_loop_phi_args): Use phi_node_kind.
11286         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
11287         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
11288
11289 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11290             Sebastian Pop  <s.pop@samsung.com>
11291
11292         Revert commit r229783.
11293         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11294         Remove use of parameter_rename_map.
11295         (copy_def): Remove.
11296         (copy_internal_parameters): Remove.
11297         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
11298         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
11299         (free_sese_info): Do not free parameter_rename_map.
11300         (set_rename): Do not use parameter_rename_map.
11301         (rename_uses): Update call to set_rename.
11302         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
11303         * sese.h (parameter_rename_map_t): Remove.
11304         (struct sese_info_t): Remove field parameter_rename_map.
11305
11306 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11307             Sebastian Pop  <s.pop@samsung.com>
11308
11309         * graphite-isl-ast-to-gimple.c: Fix comment.
11310         * graphite-scop-detection.c (defined_in_loop_p): New.
11311         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
11312         names defined in loop.
11313
11314 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11315             Sebastian Pop  <s.pop@samsung.com>
11316
11317         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11318         Discard unstructured if-then-else regions.
11319
11320 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11321             Sebastian Pop  <s.pop@samsung.com>
11322
11323         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
11324         (cleanup_loop_iter_dom): Remove.
11325         (build_loop_iteration_domains): Remove.
11326         (build_scop_context): Remove.
11327         (build_scop_iteration_domain): Remove.
11328         (add_loop_constraints): New.
11329         (build_iteration_domains): New.
11330         (build_poly_scop): Call build_iteration_domains.
11331
11332 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11333             Sebastian Pop  <s.pop@samsung.com>
11334
11335         * graphite-scop-detection.c
11336         (scop_detection::harmful_loop_in_region): Free dom and loops.
11337         (scop_detection::loop_body_is_valid_scop): Free bbs.
11338
11339 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11340             Sebastian Pop  <s.pop@samsung.com>
11341
11342         * graphite-scop-detection.c (record_loop_in_sese): New.
11343         (gather_bbs::before_dom_children): Call record_loop_in_sese.
11344         (build_scops): Remove call to build_sese_loop_nests.
11345         * sese.c (sese_record_loop): Remove.
11346         (build_sese_loop_nests): Remove.
11347         (new_sese_info): Remove region->loops.
11348         (free_sese_info): Same.
11349         * sese.h (sese_contains_loop): Same.
11350         (build_sese_loop_nests): Remove.
11351         (sese_contains_loop): Remove.
11352
11353 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11354             Sebastian Pop  <s.pop@samsung.com>
11355
11356         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
11357         loop_is_valid_in_scop.
11358         (scop_detection::harmful_stmt_in_region): Renamed
11359         harmful_loop_in_region.
11360         Call loop_is_valid_in_scop.
11361
11362 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11363             Sebastian Pop  <s.pop@samsung.com>
11364
11365         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
11366         isl_ast_node_mark.
11367
11368 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11369             Sebastian Pop  <s.pop@samsung.com>
11370
11371         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
11372         * graphite.h (struct poly_bb): Remove field is_reduction.
11373         (PBB_IS_REDUCTION): Remove.
11374
11375 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
11376             Sebastian Pop  <s.pop@samsung.com>
11377
11378         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
11379         (add_pdr_constraints): Same.
11380         (scop_get_reads): Same.
11381         (scop_get_must_writes): Same.
11382         (scop_get_may_writes): Same.
11383         (scop_get_original_schedule): Same.
11384         (extend_schedule): Same.
11385         (apply_schedule_on_deps): Same.
11386         (carries_deps): Same.
11387         (compute_deps): Same.
11388         (scop_get_dependences): Same.
11389         * graphite-isl-ast-to-gimple.c
11390         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
11391         * graphite-optimize-isl.c (get_schedule_for_band): Same.
11392         (get_schedule_for_band_list): Same.
11393         (get_schedule_map): Same.
11394         (apply_schedule_map_to_scop): Same.
11395         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11396         (build_loop_iteration_domains): Same.
11397         (add_condition_to_pbb): Same.
11398         (add_param_constraints): Same.
11399         (pdr_add_memory_accesses): Same.
11400         (pdr_add_data_dimensions): Same.
11401
11402 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
11403
11404         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
11405         requirements.
11406
11407 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
11408
11409         * common.opt (feliminate-dwarf2-dups): Replace references to
11410         "DWARF 2" with just "DWARF".
11411         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
11412         * doc/extend.texi: Likewise.
11413         * doc/cpp.texi: Likewise.
11414         * doc/invoke.texi: Likewise.
11415         (Option Summary): Add -gdwarf to list of Debugging Options.
11416         (Debugging Options): Document -gdwarf.
11417         * doc/contrib.texi: Spell "DWARF" like that.
11418
11419 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
11420
11421         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
11422         warning.  Fix up formatting.
11423
11424         PR middle-end/67653
11425         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
11426         attempt to mark memory input operand addressable and
11427         call prepare_gimple_addressable in that case.  Don't adjust
11428         input_location for diagnostics, use error_at instead.
11429
11430 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
11431
11432         * config/rs6000/ppc-auxv.h: New file.
11433         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
11434         (cpu_is): Likewise.
11435         (cpu_supports): Likewise.
11436         * config/rs6000/rs6000.c: include "ppc-auxv.h".
11437         (cpu_is_info): New variable.
11438         (cpu_supports_info): Likewise.
11439         (tcb_verification_symbol): Likewise.
11440         (cpu_builtin_p): Likewise.
11441         (cpu_expand_builtin): New function.
11442         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
11443         (rs6000_init_builtins): Likewise.
11444         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
11445         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
11446         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
11447         * configure: Regenerate.
11448         * config.in: Likewise.
11449         * doc/extend.texi (PowerPC Built-in Functions): Document
11450         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
11451
11452 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
11453
11454         PR target/68609
11455         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
11456         domain check.
11457         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
11458         for V4SFmode.
11459
11460 2016-01-20  Richard Henderson  <rth@redhat.com>
11461
11462         PR bootstrap/69343
11463         PR bootstrap/69339
11464         PR tree-opt/68964
11465         Revert:
11466         * tree.c (tm_define_builtin): New.
11467         (find_tm_vector_type): New.
11468         (build_tm_vector_builtins): New.
11469         (build_common_builtin_nodes): Call it.
11470
11471 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
11472
11473         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
11474         (arm_fp_ok): Likewise.
11475         (arm_fp): Likewise.
11476         (arm_crypto): Likewise.
11477
11478 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
11479             Richard Biener  <rguenther@suse.de>
11480
11481         PR tree-optimization/69328
11482         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
11483         vectors have same number of elements.
11484         (vectorizable_condition): Fix masked version recognition.
11485
11486 2016-01-20  Richard Biener  <rguenther@suse.de>
11487
11488         PR tree-optimization/69345
11489         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
11490         (VN_INFO_PTR_INFO): Likewise.
11491         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
11492         info when it is equal between non-dominating SSA names.
11493         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11494         Make sure to look at original SSA infos.
11495
11496 2016-01-20  Jeff Law  <law@redhat.com>
11497
11498         PR target/25114
11499         * config/m68k/predicates.md (pow2_m1_operand): New predicate
11500         extracted from ...
11501         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
11502         (pc_or_label_operand): New predicate.
11503         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
11504         tests for small integers that are 2^n - 1.
11505
11506 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
11507
11508         * doc/invoke.texi (Options Summary): Add '.' after @xref.
11509
11510 2016-01-19  Jeff Law  <law@redhat.com>
11511
11512         PR middle-end/69347
11513         * tree-ssa-threadbackwards.c
11514         (fsm_find_control_statement_thread_paths): Do not try to lookup
11515         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
11516
11517 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11518
11519         * doc/lto.texi: Remove text that says only Gold has linker plugin
11520         support.
11521
11522 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
11523
11524         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
11525         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
11526         the DIE accordingly.
11527         (modified_type_die): Add REVERSE parameter and pass it recursively,
11528         as well as to base_type_die.  Adjust presence check accordingly.
11529         (base_type_for_mode): Adjust call to modified_type_die.
11530         (add_type_attribute): Add REVERSE parameter and pass it to
11531         modified_type_die.
11532         (generic_parameter_die): Adjust call to add_type_attribute.
11533         (add_scalar_info): Likewise.
11534         (add_subscript_info): Likewise.
11535         (gen_array_type_die): Likewise.
11536         (gen_descr_array_type_die): Likewise.
11537         (gen_entry_point_die): Likewise.
11538         (gen_enumeration_type_die): Likewise.
11539         (gen_formal_parameter_die): Likewise.
11540         (gen_subprogram_die): Likewise.
11541         (gen_variable_die ): Likewise.
11542         (gen_const_die): Likewise.
11543         (gen_field_die): Likewise.
11544         (gen_pointer_type_die): Likewise.
11545         (gen_reference_type_die): Likewise.
11546         (gen_ptr_to_mbr_type_die): Likewise.
11547         (gen_inheritance_die): Likewise.
11548         (gen_subroutine_type_die): Likewise.
11549         (gen_typedef_die): Likewise.
11550         (force_type_die): Adjust call to modified_type_die.
11551
11552 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
11553
11554         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
11555         flow throughout the file.  Fix broken link to Objective-C 2.0
11556         documentation.
11557         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
11558         errors.
11559
11560 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
11561
11562         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
11563
11564 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11565
11566         PR ipa/66223
11567         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
11568         (maybe_record_node): Record cxa_pure_virtual as the only possible
11569         target if there are not ohter candidates.
11570         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
11571
11572 2016-01-19  Richard Biener  <rguenther@suse.de>
11573
11574         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
11575         (get_memory_order): Likewise.
11576
11577 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
11578
11579         * tree-vect-stmts.c (vectorizable_store): Check
11580         rhs vectype.
11581
11582 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
11583
11584         PR jit/68446
11585         * gcc.c (driver::decode_argv): Add call to
11586         init_opts_obstack before init_options_struct.
11587         * opts.c (init_opts_obstack): Remove idempotency.
11588         (init_options_struct): Replace call to init_opts_obstack
11589         with a gcc_assert to verify that it has already been called.
11590         * toplev.c (toplev::main): Add call to init_opts_obstack before
11591         calls to init_options_struct.
11592         (toplev::finalize): Move cleanup of opts_obstack next to
11593         cleanup of save_decoded_options, clearing the latter, and
11594         save_decoded_options_count.
11595
11596 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11597
11598         PR target/69135
11599         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
11600         attribute to unconditional.  Remove %? from output template.
11601
11602 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
11603             Jiong Wang  <jiong.wang@arm.com>
11604
11605         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
11606         generated from different expand order.
11607
11608 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
11609
11610         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
11611         Add support for CCMP costing.
11612
11613 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
11614
11615         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
11616         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
11617         (fccmpe<mode>): Likewise.
11618         (fcmp): Rename to fcmp and globalize pattern.
11619         (fcmpe): Likewise.
11620         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
11621         (aarch64_gen_ccmp_next): Add FP support.
11622
11623 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
11624
11625         * target.def (gen_ccmp_first): Update documentation.
11626         (gen_ccmp_next): Likewise.
11627         * doc/tm.texi (gen_ccmp_first): Update documentation.
11628         (gen_ccmp_next): Likewise.
11629         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
11630         expand_ccmp_expr_1.  Improve comments.
11631         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
11632         (ccmp_ior<mode>): Remove pattern.
11633         (cmp<mode>): Remove expand.
11634         (cmp): Globalize pattern.
11635         (cstorecc4): Use cc_register.
11636         (mov<mode>cc): Remove ccmp_cc_register check.
11637         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
11638         Simplify after removal of CC_DNE/* modes.
11639         (aarch64_ccmp_mode_to_code): Remove.
11640         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
11641         In 'k' case use integer as condition.
11642         (aarch64_nzcv_codes): Remove inverted cases.
11643         (aarch64_code_to_ccmode): Remove.
11644         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
11645         comparison with CC register to be used in folowing CCMP/branch/CSEL.
11646         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
11647         pattern.  Return the comparison with CC register.  Invert conditions
11648         when bitcode is OR.
11649         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
11650         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
11651
11652 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11653
11654         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
11655         instrumented_version.
11656
11657 2016-01-19  Richard Biener  <rguenther@suse.de>
11658
11659         PR tree-optimization/69336
11660         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
11661         handled components with get_ref_base_and_extent.
11662         (equal_mem_array_ref_p): Adjust.
11663
11664 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
11665
11666         PR debug/65779
11667         * shrink-wrap.c: Include valtrack.h.
11668         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
11669         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
11670         in between insn and where it will be moved to.  Call
11671         dead_debug_insert_temp.
11672         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
11673         first and dead_debug_local_finish at the end.
11674         For uses and defs bitmap, handle all regs in between REGNO and
11675         END_REGNO, not just the first one.
11676
11677 2016-01-19  Richard Biener  <rguenther@suse.de>
11678
11679         PR tree-optimization/69352
11680         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
11681         (equal_mem_array_ref_p): Constrain size and max size properly.
11682         Compare the reverse flag.
11683
11684 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
11685
11686         * ira.c (ira): Update regstat data if we deleted insns.
11687
11688 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
11689
11690         PR rtl-optimization/68955
11691         PR rtl-optimization/64557
11692         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
11693         here.  Fix up formatting.
11694         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
11695
11696 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11697
11698         PR lto/69133
11699         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
11700         assume that the node has body.
11701         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
11702         check.
11703
11704 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11705
11706         * lto-streamer-out.c (lto_output): Do not stream instrumentation
11707         thunks.
11708
11709 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
11710
11711         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
11712         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
11713
11714 2016-01-19  Martin Jambor  <mjambor@suse.cz>
11715             Martin Liska  <mliska@suse.cz>
11716             Michael Matz  <matz@suse.de>
11717
11718         * Makefile.in (OBJS): Add new source files.
11719         (GTFILES): Add hsa.c.
11720         * common.opt (disable_hsa): New variable.
11721         (-Whsa): New warning.
11722         * config.in (ENABLE_HSA): New.
11723         * configure.ac: Treat hsa differently from other accelerators.
11724         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
11725         $enable_offloading.
11726         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
11727         * doc/install.texi (Configuration): Document --with-hsa-runtime,
11728         --with-hsa-runtime-include, --with-hsa-runtime-lib and
11729         --with-hsa-kmt-lib.
11730         * doc/invoke.texi (-Whsa): Document.
11731         (hsa-gen-debug-stores): Likewise.
11732         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
11733         to invoke offload compiler for hsa acclerator.
11734         * opts.c (common_handle_option): Determine whether HSA offloading
11735         should be performed.
11736         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
11737         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
11738         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
11739         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
11740         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
11741         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
11742         GF_OMP_FOR_KIND_GRID_LOOP.
11743         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
11744         (pp_gimple_stmt_1): Likewise.
11745         * gimple-walk.c (walk_gimple_stmt): Likewise.
11746         * gimple.c (gimple_build_omp_grid_body): New function.
11747         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
11748         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
11749         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
11750         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
11751         GF_OMP_TEAMS_GRID_PHONY.
11752         (gimple_statement_omp_single_layout): Updated comments.
11753         (gimple_build_omp_grid_body): New function.
11754         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
11755         (gimple_omp_for_grid_phony): New function.
11756         (gimple_omp_for_set_grid_phony): Likewise.
11757         (gimple_omp_parallel_grid_phony): Likewise.
11758         (gimple_omp_parallel_set_grid_phony): Likewise.
11759         (gimple_omp_teams_grid_phony): Likewise.
11760         (gimple_omp_teams_set_grid_phony): Likewise.
11761         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
11762         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
11763         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
11764         (BUILT_IN_GOMP_TARGET): Updated type.
11765         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
11766         (adjust_for_condition): New function.
11767         (get_omp_for_step_from_incr): Likewise.
11768         (extract_omp_for_data): Moved parts to adjust_for_condition and
11769         get_omp_for_step_from_incr.
11770         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
11771         (fixup_child_record_type): Bail out if receiver_decl is NULL.
11772         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
11773         (scan_omp_parallel): Do not create child functions for phony
11774         constructs.
11775         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
11776         (scan_omp_1_op): Checking assert we are not remapping to
11777         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
11778         (parallel_needs_hsa_kernel_p): New function.
11779         (expand_parallel_call): Register apprpriate parallel child
11780         functions as HSA kernels.
11781         (grid_launch_attributes_trees): New type.
11782         (grid_attr_trees): New variable.
11783         (grid_create_kernel_launch_attr_types): New function.
11784         (grid_insert_store_range_dim): Likewise.
11785         (grid_get_kernel_launch_attributes): Likewise.
11786         (get_target_argument_identifier_1): Likewise.
11787         (get_target_argument_identifier): Likewise.
11788         (get_target_argument_value): Likewise.
11789         (push_target_argument_according_to_value): Likewise.
11790         (get_target_arguments): Likewise.
11791         (expand_omp_target): Call get_target_arguments instead of looking
11792         up for teams and thread limit.
11793         (grid_expand_omp_for_loop): New function.
11794         (grid_arg_decl_map): New type.
11795         (grid_remap_kernel_arg_accesses): New function.
11796         (grid_expand_target_kernel_body): New function.
11797         (expand_omp): Call it.
11798         (lower_omp_for): Do not emit phony constructs.
11799         (lower_omp_taskreg): Do not emit phony constructs but create for them
11800         a temporary variable receiver_decl.
11801         (lower_omp_taskreg): Do not emit phony constructs.
11802         (lower_omp_teams): Likewise.
11803         (lower_omp_grid_body): New function.
11804         (lower_omp_1): Call it.
11805         (grid_reg_assignment_to_local_var_p): New function.
11806         (grid_seq_only_contains_local_assignments): Likewise.
11807         (grid_find_single_omp_among_assignments_1): Likewise.
11808         (grid_find_single_omp_among_assignments): Likewise.
11809         (grid_find_ungridifiable_statement): Likewise.
11810         (grid_target_follows_gridifiable_pattern): Likewise.
11811         (grid_remap_prebody_decls): Likewise.
11812         (grid_copy_leading_local_assignments): Likewise.
11813         (grid_process_kernel_body_copy): Likewise.
11814         (grid_attempt_target_gridification): Likewise.
11815         (grid_gridify_all_targets_stmt): Likewise.
11816         (grid_gridify_all_targets): Likewise.
11817         (execute_lower_omp): Call grid_gridify_all_targets.
11818         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
11819         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
11820         (tree_omp_clause): Added union field dimension.
11821         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
11822         * tree.c (omp_clause_num_ops): Added number of arguments of
11823         OMP_CLAUSE__GRIDDIM_.
11824         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
11825         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
11826         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
11827         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
11828         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
11829         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
11830         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
11831         * tree-pass.h (make_pass_gen_hsail): Declare.
11832         (make_pass_ipa_hsa): Likewise.
11833         * ipa-hsa.c: New file.
11834         * lto-section-in.c (lto_section_name): Add hsa section name.
11835         * lto-streamer.h (lto_section_type): Add hsa section.
11836         * timevar.def (TV_IPA_HSA): New.
11837         * hsa-brig-format.h: New file.
11838         * hsa-brig.c: New file.
11839         * hsa-dump.c: Likewise.
11840         * hsa-gen.c: Likewise.
11841         * hsa.c: Likewise.
11842         * hsa.h: Likewise.
11843         * toplev.c (compile_file): Call hsa_output_brig.
11844         * hsa-regalloc.c: New file.
11845
11846 2016-01-18  Jeff Law  <law@redhat.com>
11847
11848         PR tree-optimization/69320
11849         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
11850         ranged object, do nothing if the RHS constant is not [0..1].
11851         (optimize_stmt): Comparing a boolean ranged object against a
11852         constant outside [0..1] results in a compile-time constant.
11853
11854         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
11855         test.
11856
11857 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
11858
11859         * doc/invoke.texi (Invoking GCC): Add new section to menu.
11860         (Option Summary): Update to reflect new section and moved options.
11861         (C++ Dialect Options): Move -fstats to new section.
11862         (Debugging Options): Move all dump, statistics, and other GCC
11863         developer options to new section.  Rewrite section introduction
11864         and re-order remaining options to put the more basic ones first.
11865         (Optimization Options): Move -fira-verbose and -flto-report* to
11866         new section.
11867         (Developer Options): New section incorporating moved options.
11868         * doc/cppopts.texi (-dM): Update cross-reference.
11869
11870 2016-01-18  Richard Henderson  <rth@redhat.com>
11871
11872         PR target/69176
11873         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
11874         operands to pseudo only if CSE is expected.  Split long immediate
11875         operands only after reload, and for the stack pointer.
11876         (*add<GPI>3_pluslong): Remove.
11877         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
11878         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
11879         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
11880         (*add<GPI>3 peepholes): New.
11881         (*add<GPI>3 splitters): New.
11882         * config/aarch64/constraints.md (Upl): New.
11883         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
11884
11885 2016-01-18  Richard Biener  <rguenther@suse.de>
11886
11887         PR tree-optimization/69297
11888         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
11889         stmt at most once.
11890         (vect_bb_vectorization_profitable_p): Clear visited flag again.
11891
11892 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
11893
11894         PR middle-end/68542
11895         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
11896         of mixind vector and scalar types.
11897         (fold_relational_const): Add handling of vector
11898         comparison with boolean result.
11899         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
11900         comparison of vector operands with boolean result for EQ/NE only.
11901         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
11902         (verify_gimple_cond): Likewise.
11903         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
11904         valid type of VAL.
11905
11906 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
11907
11908         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
11909         !TARGET_OCTEON.
11910
11911 2016-01-18  Richard Biener  <rguenther@suse.de>
11912
11913         PR middle-end/69308
11914         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
11915
11916 2016-01-18  Tom de Vries  <tom@codesourcery.com>
11917
11918         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
11919
11920 2016-01-18  Tom de Vries  <tom@codesourcery.com>
11921
11922         * omp-low.c (set_oacc_fn_attrib): Make extern.
11923         * omp-low.h (set_oacc_fn_attrib): Declare.
11924         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
11925         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
11926         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
11927         Add and handle function parameter oacc_kernels_p.
11928         (find_reduc_addr, get_omp_data_i_param): New function.
11929         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
11930         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
11931         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
11932         Calculate dominance info.  Skip loops that are not in a kernels region
11933         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
11934         (pass_parallelize_loops::execute): Call parallelize_loops with
11935         oacc_kernels_p argument.
11936         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
11937         New member function.
11938         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
11939         * passes.def: Add argument to pass_parallelize_loops instantation.
11940
11941 2016-01-18  Tom de Vries  <tom@codesourcery.com>
11942
11943         * tree-parloops.c (pass_parallelize_loops::execute): Allow
11944         pass_parallelize_loops to be run outside the loop pipeline.
11945
11946 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
11947
11948         * tree-scalar-evolution.c (follow_copies_to_constant): New.
11949         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
11950
11951 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
11952
11953         PR target/63679
11954         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
11955         using get_ref_base_and_extent.
11956         (equal_mem_array_ref_p): New.
11957         (hashable_expr_equal_p): Add call to previous.
11958
11959 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
11960
11961         PR target/63679
11962         * tree-sra.c (disqualified_constants, constant_decl_p): New.
11963         (sra_initialize): Allocate disqualified_constants.
11964         (sra_deinitialize): Free disqualified_constants.
11965         (disqualify_candidate): Update disqualified_constants when appropriate.
11966         (create_access): Scan for constant-pool entries as we go along.
11967         (scalarizable_type_p): Add check against type_contains_placeholder_p.
11968         (maybe_add_sra_candidate): Allow constant-pool entries.
11969         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
11970         (initialize_constant_pool_replacements): New.
11971         (sra_modify_assign): Avoid mangling assignments created by previous,
11972         and don't generate writes into constant pool.
11973         (sra_modify_function_body): Call initialize_constant_pool_replacements.
11974
11975 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
11976
11977         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
11978         andnot instruction.
11979         (scalar_chain::convert_op): Likewise.
11980         * config/i386/i386.md (*andndi3_doubleword): New.
11981
11982 2016-01-18  Richard Biener  <rguenther@suse.de>
11983
11984         PR tree-optimization/69170
11985         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
11986         building a vector from scalar results of a pattern stmt.
11987
11988 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
11989
11990         * haifa-sched.c (autopref_multipass_init): Work around
11991         -Wmaybe-uninitialized warning.
11992
11993 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11994
11995         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
11996         against the constant 0.
11997
11998 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11999
12000         PR tree-optimization/68799
12001         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
12002         look up phi candidates in the statement-candidate map.
12003         (phi_add_costs): Likewise.
12004         (record_phi_increments): Likewise.
12005         (phi_incr_cost): Likewise.
12006         (ncd_with_phi): Likewise.
12007         (all_phi_incrs_profitable): Likewise.
12008
12009 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
12010
12011         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
12012         -Wmaybe-uninitialized warning.
12013
12014 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
12015
12016         * doc/invoke.texi (Invoking GCC): Add new section to menu.
12017         (Option Summary): Update to reflect new section and moved options.
12018         (C++ Dialect Options): Move -fvtable-verify and related options.
12019         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
12020         and profiling-related options.
12021         (Optimization Options): Move profile generation options and
12022         -fstack-protector and related options.
12023         (Instrumentation Options): New section incorporating moved options.
12024         (Code Generation Options): Move -finstrument-functions and
12025         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
12026
12027 2016-01-16  Tom de Vries  <tom@codesourcery.com>
12028
12029         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
12030
12031 2016-01-16  Tom de Vries  <tom@codesourcery.com>
12032
12033         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
12034
12035 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
12036
12037         * hash-table.h (hash_table::empty): Turn into an inline wrapper
12038         that checks whether the table is already empty.  Rename the
12039         original implementation to...
12040         (hash_table::empty_slot): ...this new private function.
12041
12042 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
12043
12044         PR diagnostic/68899
12045         * diagnostic-show-locus.c (layout::print_source_line): Move x
12046         offset of line until after call to
12047         get_line_width_without_trailing_whitespace.
12048
12049 2016-01-15  Jeff Law  <law@redhat.com>
12050
12051         PR tree-optimization/69270
12052         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
12053         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
12054         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
12055         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
12056         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12057         ssa_name_has_boolean_range and constant_boolean_node.
12058
12059 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
12060
12061         PR rtl-optimization/69030
12062         * lra-spills.c (remove_pseudos): Check nrefs and make the function
12063         returning bool.
12064         (spill_pseudos): Delete debug insn for dead pseudo.
12065         (lra_spill): Initiate spill_hard_reg and slots memory separately.
12066
12067 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
12068
12069         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
12070         New.
12071         (TYPES_UNOPUS): Likewise.
12072         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
12073         builtin type, from UNOP to UNOPUS.
12074         (lbtruncuv4sf): Likewise.
12075         (lbtruncuv2df): Likewise.
12076         (lrounduv2sf): Likewise.
12077         (lrounduv4sf): Likewise.
12078         (lrounduv2df): Likewise.
12079         (lroundusf): Likewise.
12080         (lroundusf): Likewise.
12081         (lceiluv2sf): Likewise.
12082         (lceiluv4sf): Likewise.
12083         (lceiluv2df): Likewise.
12084         (lceilusf): Likewise.
12085         (lceiludf): Likewise.
12086         (lflooruv2sf): Likewise.
12087         (lflooruv4sf): Likewise.
12088         (lflooruv2df): Likewise.
12089         (lfloorusf): Likewise.
12090         (lfloorudf): Likewise.
12091         (lfrintnuv2sf): Likewise.
12092         (lfrintnuv4sf): Likewise.
12093         (lfrintnuv2df): Likewise.
12094         (lfrintnusf): Likewise.
12095         (lfrintnudf): Likewise.
12096         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
12097         conversion.
12098         (vcvtq_u32_f32): Likewise.
12099         (vcvtq_u64_f64): Likewise.
12100         (vcvta_u32_f32): Likewise.
12101         (vcvtaq_u32_f32): Likewise.
12102         (vcvtaq_u64_f64): Likewise.
12103         (vcvtm_u32_f32): Likewise.
12104         (vcvtmq_u32_f32): Likewise.
12105         (vcvtmq_u64_f64): Likewise.
12106         (vcvtn_u32_f32): Likwise.
12107         (vcvtnq_u32_f32): Likewise.
12108         (vcvtnq_u64_f64): Likewise.
12109         (vcvtp_u32_f32): Likewise.
12110         (vcvtpq_u32_f32): Likewise.
12111         (vcvtpq_u64_f64): Likewise.
12112         (vcvtmd_u64_f64): Likewise.
12113         (vcvtms_u32_f32): Likewise.
12114         (vcvtad_u64_f64): Likewise.
12115         (vcvtas_u32_f32): Likewise.
12116         (vcvtnd_u64_f64): Likewise.
12117         (vcvtns_u32_f32): Likewise.
12118         (vcvtpd_u64_f64): Likewise.
12119         (vcvtps_u32_f32): Likewise.
12120
12121 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12122
12123         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
12124         CSEL of zero_extended registers.
12125
12126 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12127
12128         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12129         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
12130
12131 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12132
12133         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
12134         false when argument string is not found in the attributes table
12135         at all.
12136
12137 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
12138
12139         PR target/68609
12140         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
12141         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
12142         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
12143         precision estimate.
12144
12145 2016-01-15  Richard Biener  <rguenther@suse.de>
12146
12147         PR tree-optimization/66856
12148         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
12149         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
12150         (vect_create_new_slp_node): Increment stmt reference count.
12151         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
12152         an SLP tree before swapping operands.
12153         (vect_build_slp_tree): Likewise.
12154         (destroy_bb_vec_info): Free stmt info after SLP instances.
12155         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
12156         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
12157         (STMT_VINFO_NUM_SLP_USES): New macro.
12158
12159 2016-01-15  Richard Biener  <rguenther@suse.de>
12160
12161         PR debug/69137
12162         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
12163         (add_linkage_name): ... here.
12164         (gen_typedef_die): Use add_linkage_name_raw instead of
12165         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
12166         if necessary.
12167
12168 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
12169
12170         * gimplify.c (oacc_default_clause): Decode reference and pointer
12171         types for both kernels and parallel regions.
12172
12173 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
12174
12175         PR middle-end/69246
12176         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
12177
12178 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
12179
12180         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
12181         (convert_scalars_to_vector): Likewise.
12182
12183 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
12184
12185         * doc/extend.texi (Type Traits): Fix grammar.
12186
12187 2016-01-15  Martin Jambor  <mjambor@suse.cz>
12188
12189         * tree-inline.c (remap_decl): Use existing dclarations if
12190         remapping a type and prevent_decl_creation_for_types.
12191         (replace_locals_stmt): Do an initial remapping of non-VLA typed
12192         decls first.  Do real remapping with
12193         prevent_decl_creation_for_types set.
12194         * tree-inline.h (copy_body_data): New field
12195         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
12196         padding.
12197
12198 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12199
12200         * config/s390/s390.opt (mmvcle): More verbose help text.
12201
12202 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12203
12204         * config/s390/s390.opt: Add period to -mzvector option text.
12205
12206 2016-01-15  Richard Biener  <rguenther@suse.de>
12207
12208         PR tree-optimization/68961
12209         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
12210         of invariants in stores again.
12211
12212 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12213
12214         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
12215
12216 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
12217
12218         * config/i386/i386.c (ix86_expand_branch): Don't split
12219         DI mode xor instruction to SI mode.
12220
12221 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
12222
12223         PR ipa/68148
12224         * ipa-icf.c (sem_function::merge): Virtual functions may become
12225         reachable even if they address is not taken and there are no
12226         idrect calls.
12227
12228 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
12229
12230         * lto-streamer-out.c (subtract_estimated_size): New function.
12231         (get_symbol_initial_value): Use it.
12232
12233 2016-01-15  Christian Bruel  <christian.bruel@st.com>
12234
12235         PR target/65837
12236         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
12237         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
12238         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
12239         use add_builtin_function_ext_scope instead of add_builtin_function.
12240         (neon_set_p, neon_crypto_set_p): Remove.
12241         (arm_init_builtins): Always call arm_init_neon_builtins and
12242         arm_init_crypto_builtins.
12243         (arm_expand_builtin): Check that builtins are allowed for the arch.
12244         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
12245         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
12246         arm_init_neon_builtins call.
12247
12248 2016-01-15  Richard Biener  <rguenther@suse.de>
12249
12250         PR tree-optimization/69117
12251         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
12252         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
12253         of the leader conservatively.
12254         (free_scc_vn): Restore original SSA name infos.
12255
12256 2016-01-14  Jeff Law  <law@redhat.com>
12257
12258         PR tree-optimization/69270
12259         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
12260         single bit of precision, verify it's also unsigned.
12261         (record_edge_info): Use constant_boolean_node rather than fold_convert
12262         to convert boolean_true/boolean_false to the right type.
12263
12264 2016-01-14  Richard Henderson  <rth@redhat.com>
12265
12266         PR rtl-opt/69014
12267         * loop-doloop.c (record_reg_sets): New.
12268         (doloop_optimize): Reject the transform if the sequence
12269         clobbers registers live at the end of the loop block.
12270         (doloop_optimize_loops): Enable df_live if needed.
12271
12272 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12273
12274         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
12275         * config/rs6000/rs6000.c: Likewise.
12276         * config/rs6000/rs6000.h: Likewise.
12277         * config/rs6000/rs6000.md: Likewise.
12278         * doc/extend.texi: Likewsie.
12279
12280 2016-01-14  Jeff Law  <law@redhat.com>
12281
12282         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
12283         typo.
12284
12285 2016-01-14  Richard Henderson  <rth@redhat.com>
12286
12287         PR c/69272
12288         PR tree-opt/68964
12289         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
12290         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
12291         instead of builtin_decl_declared_p to test for declaration.
12292
12293 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
12294
12295         * doc/loop.texi (Loop Analysis and Representation): Document
12296         loop_depth function.
12297
12298 2016-01-14  Tom de Vries  <tom@codesourcery.com>
12299
12300         PR tree-optimization/68773
12301         * omp-low.c (expand_omp_target): Don't set force_output.
12302         * varpool.c (varpool_node::get_create): Same.
12303         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
12304         offload_funcs with force_output.
12305
12306 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
12307
12308         PR debug/69244
12309         * lra-eliminations.c (move_plus_up): Don't change anything if either
12310         the outer or inner subreg mode is not MODE_INT.
12311         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
12312         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
12313
12314 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
12315
12316         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
12317         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
12318         reduc_uplus_@var{m}): Remove.
12319         * expr.c (expand_expr_real_2): Remove expansion path for
12320         reduc_[us](min|max|plus) optabs.
12321         * optabs-tree.c (scalar_reduc_to_vector): Remove.
12322         * optabs-tree.h (scalar_reduc_to_vector): Remove.
12323         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
12324         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
12325         * tree-vect-loop.c (vectorizable_reduction): Remove test for
12326         reduc_[us](min|max|plus) optabs.
12327
12328 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
12329
12330         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
12331         (reduc_plus_scal_v2sf): New.
12332         (reduc_smax_v2sf): Rename to...
12333         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
12334         (reduc_smin_v2sf): Rename to...
12335         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
12336
12337 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
12338
12339         * alias.c (compare_base_symbol_refs): New function.
12340         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
12341         it.
12342
12343 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
12344
12345         PR middle-end/68146
12346         PR tree-optimization/69155
12347         * tree-complex.c: Include cfganal.h.
12348         (phis_to_revisit): New variable.
12349         (extract_component): Add phiarg_p argument.  Assert that returned
12350         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
12351         (update_phi_components): Partly rewrite to use loop over real/imag
12352         components instead of code duplication.  If extract_component returns
12353         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
12354         create_tmp_reg into the PHI node instead, and mention the phi triplet
12355         in phis_to_revisit.
12356         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
12357         in phis_to_revisit at the end.
12358
12359 2016-01-14  Richard Biener  <rguenther@suse.de>
12360
12361         PR tree-optimization/68060
12362         * tree-vect-loop.c (vect_is_simple_reduction): Check the
12363         outer loop reduction is only used in the inner loop before
12364         detecting a double reduction.
12365
12366 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
12367
12368         PR target/68269
12369         * combine.c (expand_field_assignment): Punt if compute_mode is
12370         unsupported scalar mode.
12371
12372 2016-01-14  Richard Biener  <rguenther@suse.de>
12373
12374         PR tree-optimization/66856
12375         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
12376         SLP node only if it built successfully.
12377         (vect_analyze_slp_instance): Adjust.
12378
12379 2016-01-14  Jeff Law  <law@redhat.com>
12380
12381         PR tree-optimization/69270
12382         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
12383         (record_edge_info): Use it.  Convert boolean_{true,false}_node
12384         to the type of op0.
12385
12386 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
12387
12388         PR ipa/66487
12389         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
12390         use block_ultimate_origin
12391         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
12392
12393 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
12394
12395         * doc/invoke.texi (Submodel Options): Rename section to
12396         "Machine-Dependent Options" to better reflect its content.
12397         Rewrite introductory text to remove archaic CPU names.
12398         Update references.
12399
12400 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
12401
12402         * doc/invoke.texi (Code Gen Options): Move section up in file,
12403         before target-specific options.  Update menu and option summary
12404         to reflect the new section ordering.
12405
12406 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
12407
12408         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
12409         (C++ Dialect Options): Add cross-reference to -std option.
12410         * doc/standards.texi (C++ Language): Document C++14 support.
12411
12412 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12413
12414         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
12415         for pack/unpack functions for __ibm128.
12416         (PACK_IF): Likewise.
12417         (UNPACK_IF): Likewise.
12418
12419         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12420         support for __ibm128 pack/unpack functions.
12421         (rs6000_invalid_builtin): Likewise.
12422         (rs6000_init_builtins): Likewise.
12423         (rs6000_opt_masks): Likewise.
12424
12425         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
12426         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
12427         functions
12428         (RS6000_BTM_COMMON): Likewise.
12429
12430         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
12431         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
12432         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
12433         128-bit floating point.  Add support for the double values to be
12434         in Altivec registers for TF/IF packing and unpacking, but restrict
12435         TD packing sub-fields to be FPR registers.  Don't allow overlapped
12436         register support for packing.  Allow pack inputs to be memory
12437         locations.  Don't build generator functions for unpack<mode>_dm
12438         and unpack<mode>_nodm.
12439         (unpack<mode>_dm): Likewise.
12440         (unpack<mode>_nodm): Likewise.
12441         (pack<mode>): Likewise.
12442
12443         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
12444         built-in functions to pack/unpack explicit __ibm128 values.
12445         (__builtin_unpack_ibm128): Likewise.
12446
12447         * doc/extend.texi (PowerPC Built-in Functions): Document
12448         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
12449
12450 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
12451
12452         PR c/66208
12453         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
12454         Add new arg loc and pass it down as context.
12455         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
12456         to the location to use for the warning.
12457         (check_function_arguments): New arg loc.  All callers changed.  Pass
12458         it to check_function_nonnull.
12459         * c-common.h (check_function_arguments): Adjust declaration.
12460
12461 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
12462
12463         PR tree-optimization/69156
12464         * gimple.c (validate_type): Removed.
12465         (gimple_builtin_call_types_compatible_p): Use
12466         useless_type_conversion_p instead of validate_type.
12467         * value-prof.c (gimple_stringop_fixed_value): Fold
12468         icall_size to correct type.
12469
12470 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
12471
12472         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
12473         effects.
12474
12475 2016-01-13  Richard Henderson  <rth@redhat.com>
12476
12477         PR tree-opt/68964
12478         * target.def (builtin_tm_load, builtin_tm_store): Remove.
12479         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
12480         (ix86_builtin_tm_store): Remove.
12481         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12482         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12483         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12484         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12485         * doc/tm.texi: Rebuild.
12486
12487         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
12488         (BUILT_IN_TM_MEMCPY_RTWN): New.
12489         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
12490         fallback from vector to integer helpers.
12491         (build_tm_load): Handle vector types directly, instead of
12492         via target hook.
12493         (build_tm_store): Likewise.
12494         (expand_assign_tm): Prepare for register types not handled by
12495         the above.  Copy them to memory and use memcpy.
12496         * tree.c (tm_define_builtin): New.
12497         (find_tm_vector_type): New.
12498         (build_tm_vector_builtins): New.
12499         (build_common_builtin_nodes): Call it.
12500
12501 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
12502
12503         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
12504         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
12505
12506 2016-01-13  Tom de Vries  <tom@codesourcery.com>
12507
12508         PR tree-optimization/69169
12509         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
12510         handled_struct_type param.
12511         (create_variable_info_for, intra_create_variable_infos): Call
12512         create_variable_info_for_1 with extra arg.
12513
12514 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
12515
12516         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
12517         and "armv8.1-a+crc" entries.
12518
12519 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
12520
12521         PR target/69228
12522         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
12523         Change first operand predicate from register_or_constm1_operand
12524         to register_operand.
12525         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
12526         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
12527         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
12528         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
12529         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
12530         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
12531         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
12532         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
12533         comparison with constm1_rtx from vec_prefetch_gen part.
12534
12535 2016-01-13  Richard Biener  <rguenther@suse.de>
12536
12537         PR tree-optimization/69013
12538         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
12539         Exchange assert for a test.
12540
12541 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12542
12543         PR target/69247
12544         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
12545
12546 2016-01-13  Richard Biener  <rguenther@suse.de>
12547
12548         PR tree-optimization/69242
12549         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
12550         assert with a check.
12551
12552 2016-01-13  Richard Biener  <rguenther@suse.de>
12553
12554         PR tree-optimization/69186
12555         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12556         Properly guard vect_update_misalignment_for_peel call.
12557
12558 2016-01-12  Jeff Law  <law@redhat.com>
12559
12560         PR tree-optimization/pr67755
12561         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
12562         "need_profile_correction".
12563         (thread_block_1): Initialize new field to false by default.  If we
12564         have multiple thread paths through a common joiner to different
12565         final targets, then set new field to true.
12566         (compute_path_counts): Only do count adjustment when it's really
12567         needed.
12568
12569 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12570
12571         * doc/invoke.texi (Spec Files): Move section down in file, past
12572         all command-line option descriptions.
12573
12574 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12575
12576         PR middle-end/54809
12577         * doc/gty.texi: Remove documentation of mark_hook.
12578         * gengtype.c (struct write_types_data): Remove code to support
12579         mark_hook attribute.
12580         (walk_type): Likewise.
12581         (write_func_for_structure): Likewise.
12582
12583 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12584
12585         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
12586         Directory Options, and -specs= to Overall Options.
12587         (Overall Options): Adjust similarly.  Reorder to group related
12588         options together.  Make -specs= cross-reference the spec file details.
12589         (Directory Options): Adjust similarly.
12590
12591 2016-01-12  Jeff Law  <law@redhat.com>
12592
12593         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
12594
12595 2016-01-12  Olivier Hainque  <hainque@adacore.com>
12596
12597         * gcc.c (spec_undefvar_allowed): New global.
12598         (process_command): Set to true when running for --version or --help,
12599         alone or together.
12600         (getenv_spec_function): When the variable is not defined, use the
12601         variable name as the variable value if we're allowed not to issue
12602         a fatal error.
12603
12604 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
12605
12606         PR tree-optimization/68911
12607         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
12608         information computed for expression "init + nit * step".
12609
12610 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12611
12612         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
12613         about name of GCC executable.  Remove deleted node from menu.
12614         (Directory Options) <-B>: Remove cross-reference to deleted node.
12615         (Target Options): Delete section.
12616
12617 2016-01-12  Christian Bruel  <christian.bruel@st.com>
12618
12619         PR target/69180
12620         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
12621         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
12622
12623 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
12624
12625         PR target/69198
12626         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
12627         aligned_mem is properly set for AVX512-VL floating point masked
12628         stores.
12629
12630         PR target/69175
12631         * ifcvt.c (cond_exec_process_if_block): When removing the last
12632         insn from then_bb, remove also any possible barriers that follow it.
12633
12634 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
12635
12636         PR target/68456
12637         PR target/69226
12638         * config/i386/iamcu.h (SIZE_TYPE): New macro.
12639         (PTRDIFF_TYPE): Likewise.
12640         (WCHAR_TYPE): Likewise.
12641         (WCHAR_TYPE_SIZE): Likewise.
12642         (STDINT_LONG32): Likewise.
12643
12644 2016-01-12  Richard Biener  <rguenther@suse.de>
12645
12646         PR tree-optimization/69053
12647         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
12648         convert initial value for cond reductions.
12649
12650 2016-01-12  Richard Biener  <rguenther@suse.de>
12651
12652         PR tree-optimization/69007
12653         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
12654         widen_sum after dot_prod and sad.
12655
12656 2016-01-12  Richard Biener  <rguenther@suse.de>
12657
12658         PR tree-optimization/69168
12659         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
12660         pattern stmt SLP type.
12661         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
12662         end up unused so cope with that case.
12663
12664 2016-01-12  Richard Biener  <rguenther@suse.de>
12665
12666         PR tree-optimization/69157
12667         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
12668         stmts def type only during analyze phase.
12669         (vectorizable_call): Likewise.
12670         (vectorizable_simd_clone_call): Likewise.
12671         (vectorizable_conversion): Likewise.
12672         (vectorizable_assignment): Likewise.
12673         (vectorizable_shift): Likewise.
12674         (vectorizable_operation): Likewise.
12675         (vectorizable_store): Likewise.
12676         (vectorizable_load): Likewise.
12677
12678 2016-01-12  Richard Biener  <rguenther@suse.de>
12679
12680         PR tree-optimization/69174
12681         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
12682         space.
12683         (vectorizable_load): Properly compute the number of loads needed
12684         for permuted strided SLP loads and do not spuriously assign
12685         to SLP_TREE_VEC_STMTS.
12686
12687 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
12688
12689         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
12690         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
12691         (MD_EXEC_PREFIX): Remove.
12692         (MD_STARTFILE_PREFIX) Removee.
12693         (FILE_NAME_ABSOLUTE_P): Remove.
12694         (CPP_SPEC): Do not read macros from sys/version.h.
12695         (LINK_COMMAND_SPEC): Remove.
12696         (LOCAL_INCLUDE_DIR): Remove.
12697         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
12698         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
12699         (POST_LINK_SPEC): Define to invoke stubify after linker
12700         (LIBSTDCXX): Remove define
12701         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
12702         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
12703         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
12704         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
12705         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
12706         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
12707         (i386_djgpp_asm_named_section): Add propotype of new procedure
12708
12709         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
12710         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
12711         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
12712         in config/i386/djgpp.h).
12713         (STANDARD_STARTFILE_PREFIX_2): Define identical to
12714         STANDARD_STARTFILE_PREFIX_1.
12715         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
12716         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
12717         installation errors.
12718         (MAX_OFILE_ALIGNMENT): Define to 128.
12719         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
12720
12721         * config/i386/djgpp.c: New file. Add implementation of
12722         i386_djgpp_asm_named_section.
12723
12724         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
12725
12726         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
12727         Add rule for building djgpp.o.
12728
12729 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12730
12731         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
12732         (rtx_is_swappable_p): Reductions are swappable.
12733         (insn_is_swappable_p): V2DF reductions are swappable.
12734
12735 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
12736
12737         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
12738         reloads for other unsupported memory operands.
12739
12740 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
12741             Jim Wilson  <jim.wilson@linaro.org>
12742
12743         PR target/69194
12744         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
12745         copy_to_mode_reg instead of force_reg.
12746
12747 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
12748
12749         PR target/69225
12750         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
12751         TARGET_80387 is true.
12752
12753 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
12754
12755         PR target/69071
12756         * lra-eliminations.c (move_plus_up): Only move plus up
12757         if subreg of the constant can be simplified into constant
12758         and use the simplified subreg of the constant instead of
12759         the original constant.
12760
12761         * fold-const.c (fold_convertible_p): Don't return true
12762         for conversion of VECTOR_TYPE to same sized integral type.
12763         (fold_convert_loc): Fix up formatting.  Fold conversion of
12764         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
12765         instead of NOP_EXPR.
12766
12767         PR tree-optimization/69214
12768         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
12769         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12770         Formatting fix.
12771
12772         PR tree-optimization/69207
12773         * tree-vect-slp.c (vect_get_constant_vectors): For
12774         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
12775         fold_convertible_p to vector_type's element type, and always
12776         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
12777
12778 2016-01-11  Richard Biener  <rguenther@suse.de>
12779
12780         PR tree-optimization/69173
12781         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
12782         fixup the cycle if all stmts are in a pattern.
12783
12784 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
12785
12786         PR middle-end/68999
12787         * alias.c (base_alias_check): Move check for addresses with
12788         alignment ANDs before the call for compare_base_decls.
12789         (memrefs_conflict_p): Return -1 for different decls
12790         that went through alignment adjustments.
12791
12792 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12793
12794         PR rtl-optimization/68796
12795         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
12796         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
12797         and QImode comparisons against zero with CC_NZmode.
12798         * config/aarch64/iterators.md (short_mask): New mode_attr.
12799
12800 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
12801
12802         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
12803         (<avx512>_store<mode>_mask): Likewise.
12804
12805 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
12806             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12807
12808         PR rtl-optimization/68841
12809         * ifcvt.c (struct noce_if_info): Add orig_x field.
12810         (bbs_ok_for_cmove_arith): Add to_rename parameter.
12811         Don't record conflicts on to_rename if it's present.
12812         Allow memory destinations in sets.
12813         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
12814         blocks, passing orig_x to the checks.
12815         (noce_process_if_block): Set if_info->orig_x appropriately.
12816
12817 2016-01-11  Tom de Vries  <tom@codesourcery.com>
12818
12819         PR tree-optimization/69069
12820         * tree-parloops.c (create_parallel_loop): Add missing phi args.
12821
12822 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
12823
12824         PR rtl-optimization/68920
12825         * config/i386/i386.c (ix86_option_override_internal): Restrict number
12826         of conditional moves for  RTL if-conversion to 1 for
12827         TARGET_ONE_IF_CONV_INSN.
12828         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
12829         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
12830         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
12831         parameter to restirct number of conditional moves for
12832         RTL if-conversion.
12833         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
12834         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
12835         conditionl moves.
12836
12837 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
12838
12839         PR bootstrap/69123
12840         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
12841         onepart vars.  Fix typo in comment.  Fix reversed condition in
12842         unshare test.
12843         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
12844
12845         PR bootstrap/69123
12846         * var-tracking.c (dump_onepart_variable_differences): New.
12847         (dataflow_set_different): If a detailed dump is requested,
12848         delay early returns and dump differences between onepart
12849         variables present before and after, and added variables.
12850
12851 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
12852
12853         PR target/69010
12854         * expr.c (expand_expr_real_1): For boolean vector constants
12855         with a scalar mode use const_scalar_mask_from_tree.
12856         (const_scalar_mask_from_tree): New.
12857         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
12858         assigned to a mask type to handle constants.
12859
12860 2016-01-11  Martin Jambor  <mjambor@suse.cz>
12861
12862         PR ipa/69044
12863         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
12864         useless parameters if we cannot change function signature.
12865
12866 2016-01-11  Martin Jambor  <mjambor@suse.cz>
12867
12868         PR ipa/66616
12869         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
12870         flag.
12871
12872 2016-01-11  Tom de Vries  <tom@codesourcery.com>
12873
12874         PR tree-optimization/69109
12875         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
12876         latch with phi.
12877
12878 2016-01-11  Tom de Vries  <tom@codesourcery.com>
12879
12880         PR tree-optimization/69108
12881         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
12882         res is not used in a phi.
12883
12884 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
12885
12886         PR 67425
12887         * common.opt (frandom-seed): Fix parameter name.
12888         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
12889
12890 2016-01-11  Tom de Vries  <tom@codesourcery.com>
12891
12892         PR tree-optimization/69058
12893         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
12894         not supported.
12895
12896 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
12897
12898         * config/arc/arc.opt (mdiv-rem): Add period to the end.
12899         (mcode-density): Likewise.
12900
12901 2016-01-10  Tom de Vries  <tom@codesourcery.com>
12902
12903         PR tree-optimization/69062
12904         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
12905         (parallelize_loops): Don't paralelize loop that has phi with address
12906         arg.
12907
12908 2016-01-10  Tom de Vries  <tom@codesourcery.com>
12909
12910         PR tree-optimization/69039
12911         * tree-parloops.c (try_create_reduction_list): Only allow single exit
12912         phi for reduction.
12913
12914 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
12915
12916         PR middle-end/68743
12917         * match.pd: Require target has function_c99_misc before doing
12918         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
12919
12920 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
12921
12922         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
12923         use GMPINC.
12924         * configure: Regenerate.
12925
12926 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
12927
12928         PR middle-end/50865
12929         PR tree-optimization/69097
12930         * fold-const.h (expr_not_equal_to): New prototype.
12931         * fold-const.c: Include stringpool.h and tree-ssanames.h.
12932         (expr_not_equal_to): New function.
12933         * match.pd (X % -Y is the same as X % Y): Don't optimize
12934         unless X is known not to be equal to minimum or Y is known
12935         not to be equal to -1.
12936         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
12937         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
12938         (simplify_stmt_using_ranges): Adjust caller.
12939         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
12940         substitute_and_fold.
12941
12942 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
12943
12944         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
12945         w/o DECL_NAME.
12946
12947 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
12948
12949         PR tree-optimization/69167
12950         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
12951         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
12952         ops[0] comparison.
12953         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
12954
12955 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
12956             Richard Biener  <rguenther@suse.de>
12957
12958         PR tree-optimization/68707
12959         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
12960         instances that can be handled via vect_load_lanes.
12961
12962 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
12963
12964         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
12965         if we can't determine address equivalence.
12966         * alias.c (compare_base_decl): Update for changed return value of
12967         symtab_node::equal_address_to.
12968
12969 2016-01-08  Jason Merrill  <jason@redhat.com>
12970
12971         PR c++/68983
12972         PR c++/67557
12973         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
12974         * expr.c (store_field): Not here.
12975         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
12976         call with TREE_ADDRESSABLE type.
12977         * tree-cfg.c (verify_gimple_call): Adjust.
12978
12979 2016-01-08  Olivier Hainque  <hainque@adacore.com>
12980
12981         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
12982         libc_internal.
12983
12984 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
12985
12986         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
12987         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
12988         (reduc_smin_v2sf): Rename to...
12989         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
12990         (reduc_splus_v2sf): Rename to...
12991         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
12992
12993 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
12994
12995         PR tree-optimization/69162
12996         * gimplify.c (gimplify_va_arg_expr): Encode original type of
12997         valist argument in another argument.
12998         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
12999         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
13000         to determine the va_list type, build a MEM_REF instead of
13001         build_fold_indirect_ref.
13002
13003         PR tree-optimization/69172
13004         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
13005         gimple_build.
13006
13007 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13008
13009         PR tree-optimization/67781
13010         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
13011         and cmpnop in two steps: first the ones not accessed in original
13012         gimple expression in a endian independent way and then the ones not
13013         accessed in the final result in an endian-specific way.
13014
13015 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
13016
13017         PR tree-optimization/69083
13018         * tree-vect-slp.c (vect_get_constant_vectors): For
13019         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
13020         element type.  If op is fold_convertible_p to vector_type's element
13021         type, use NOP_EXPR instead of VCE.
13022
13023 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
13024
13025         PR rtl-optimization/67778
13026         PR rtl-optimization/68634
13027         PR rtl-optimization/68909
13028         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
13029         block from the stack until done with it.  Remove a superfluous
13030         bitmap set.  Remove a superfluous bitmap test.
13031
13032 2016-01-07  Martin Sebor  <msebor@redhat.com>
13033
13034         PR c/68966
13035         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
13036         constraint on the type of arguments.
13037
13038 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
13039
13040         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
13041         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
13042         unaligned_access on the gcc_options set.
13043         * config/arm/arm.c (arm_option_override_internal): Use
13044         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
13045
13046 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
13047
13048         PR target/69140
13049         * config/i386/i386.c (ix86_frame_pointer_required): Enable
13050         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
13051
13052 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
13053
13054         Revert
13055         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
13056
13057         PR target/69140
13058         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13059         depending on frame_pointer_needed before remaining integer and SSE
13060         registers are saved.
13061
13062 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
13063
13064         PR 1078
13065         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
13066
13067 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13068
13069         PR target/69171
13070         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
13071         Use the "xBm" constraint.
13072         (float<sseintvecmodelower><mode>2<mask_name><round_name):
13073         Likewise.
13074         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
13075         (sse_cvtsi2ssq<round_name>): Likewise.
13076         (sse_cvtss2si<round_name>): Likewise.
13077         (sse_cvtss2siq<round_name>): Likewise.
13078         (sse2_cvtsi2sdq<round_name>): Likewise.
13079         (sse2_cvtsd2si<round_name>): Likewise.
13080         (sse2_cvtsd2siq<round_name>): Likewise.
13081         * config/i386/subst.md (round_nimm_scalar_predicate): New
13082         predicate.
13083
13084 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
13085
13086         PR middle-end/67639
13087         * varasm.c (make_decl_rtl): Mark invalid register vars as
13088         DECL_EXTERNAL.
13089
13090         PR rtl-optimization/66206
13091         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
13092         All callers changed.
13093
13094 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
13095
13096         PR tree-optimization/69141
13097         * tree-ssa-pre.c: Include langhooks.h.
13098         (eliminate_dom_walker::before_dom_children): Use
13099         lang_hooks.decl_printable_name instead of
13100         cgraph_node::get ()->name ().
13101
13102         PR middle-end/68960
13103         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
13104         it and DECL_ALIGN too.
13105
13106 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
13107
13108         * config/mips/mips-ftypes.def: Sort to lexicographical order.
13109
13110 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
13111
13112         PR target/69140
13113         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13114         depending on frame_pointer_needed before remaining integer and SSE
13115         registers are saved.
13116
13117 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13118
13119         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
13120         mode iterator with VSX_M2.
13121         (*p9_vecstore_<mode>): Likewise.
13122         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
13123         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
13124         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
13125         (define_split for VSX_LE128 stores): Likewise.
13126         (define_peephole2 for TImode LE swaps): Likewise.
13127         (define_split for VSX_LE128 post-reload stores): Likewise.
13128
13129 2016-01-06  Marek Polacek  <polacek@redhat.com>
13130
13131         PR sanitizer/69099
13132         * convert.c (convert_to_integer_1): Adjust call to
13133         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
13134         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
13135         EXPR instead of ARG.
13136         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
13137
13138 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13139
13140         PR 1078
13141         * doc/extend.texi (RL78 Variable Attributes): New section.
13142
13143 2016-01-05  Marek Polacek  <polacek@redhat.com>
13144
13145         PR c/69104
13146         * builtins.c (get_memmodel): Use expansion point location rather than
13147         the input location.  Call warning_at rather than warning.
13148         (expand_builtin_atomic_compare_exchange): Likewise.
13149         (expand_builtin_atomic_load): Likewise.
13150         (expand_builtin_atomic_store): Likewise.
13151         (expand_builtin_atomic_clear): Likewise.
13152
13153 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
13154
13155         PR target/68991
13156         * config/i386/i386.c (ix86_expand_vector_logical_operator):
13157         Replace nonimmediate_operand with vector_operand.
13158         * config/i386/predicates.md (vector_operand): New predicate.
13159         (general_vector_operand): Replace nonimmediate_operand with
13160         vector_operand.
13161         * config/i386/sse.md: Replace nonimmediate_operand with
13162         vector_operand and m constraint with Bm constraint on SSE
13163         patterns with 16-byte memory operand.
13164         * config/i386/subst.md (round_nimm_predicate): Replace
13165         nonimmediate_operand with vector_operand.
13166         (round_saeonly_nimm_predicate): Likewise.
13167         (round_saeonly_nimm_scalar_predicate): New.
13168
13169 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
13170
13171         PR target/68991
13172         * config/i386/constraints.md (Bm): New constraint.
13173         * config/i386/predicates.md (vector_memory_operand): New
13174         predicate.
13175         * config/i386/sse.md: Replace xm with xBm in plusminus and
13176         any_logic patterns.
13177
13178 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13179
13180         PR 1078
13181         * doc/extend.texi (V850 Function Attributes): New section.
13182         (V850 Variable Attributes): New section.
13183
13184 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
13185
13186         PR 1078
13187         * doc/extend.texi (MicroBlaze Function Attributes): Document
13188         interrupt_handler and fast_interrupt attributes.
13189
13190 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
13191
13192         PR other/60465
13193         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
13194         for local symbolic operands.
13195         * config/ia64/predicates.md (local_symbolic_operand64): New
13196         predicate.
13197
13198 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13199
13200         PR rtl-optimization/68651
13201         * combine.c (combine_simplify_rtx): Canonicalize x + x into
13202         x << 1.
13203
13204 2016-01-05  Nathan Sidwell  <nathan@acm.org>
13205
13206         * alias.c (compare_base_decls): Use symtab_node::get.
13207
13208 2016-01-05  Nick Clifton  <nickc@redhat.com>
13209
13210         PR target/68770
13211         * ira-costs.c (copy_cost): Initialise the t_icode field of the
13212         secondary_reload_info structure.
13213
13214         PR target/66655
13215         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
13216         decls if weak support is available.
13217
13218 2016-01-04  Martin Sebor  <msebor@redhat.com>
13219
13220         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
13221
13222 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
13223
13224         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13225         OPTION_MASK_P9_DFORM.
13226
13227         * config/rs6000/constraints.md (wo constraint): New constraint for
13228         ISA 3.0 (power9).
13229
13230         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
13231         for wo constraint.
13232         (rs6000_init_hard_regno_mode_ok): Likewise.
13233
13234         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
13235         wo constraint.
13236
13237         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
13238         expanders not to have constraints.  Add support for ISA 3.0 xxperm
13239         instruction.  Add support for fusing xxlor with xxperm.
13240         (altivec_vperm_<mode>_internal): Likewise.
13241         (altivec_vperm_v8hiv16qi): Likewise.
13242         (altivec_vperm_<mode>v16q): Likewise.
13243         (altivec_vperm_<mode>_uns): Likewise.
13244         (vperm_v8hiv4si): Likewise.
13245         (vperm_v16qiv8hi): Likewise.
13246
13247         * doc/md.texi (RS/6000 constraints): Document wo constraint.
13248
13249 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
13250
13251         Update copyright years.
13252
13253         * gcc.c (process_command): Update copyright notice dates.
13254         * gcov-dump.c (print_version): Ditto.
13255         * gcov.c (print_version): Ditto.
13256         * gcov-tool.c (print_version): Ditto.
13257         * gengtype.c (create_file): Ditto.
13258         * doc/cpp.texi: Bump @copying's copyright year.
13259         * doc/cppinternals.texi: Ditto.
13260         * doc/gcc.texi: Ditto.
13261         * doc/gccint.texi: Ditto.
13262         * doc/gcov.texi: Ditto.
13263         * doc/install.texi: Ditto.
13264         * doc/invoke.texi: Ditto.
13265
13266 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13267
13268         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
13269         modes larger than TImode as TImode if NEON is not enabled.
13270
13271 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13272
13273         PR target/69100
13274         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
13275         mode for %f0-%f31 only if TARGET_FPU.
13276
13277 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13278
13279         PR target/69072
13280         * config/sparc/sparc.c (scan_record_type): Take into account subfields
13281         to compute the PACKED_P predicate.
13282         (function_arg_record_value): Minor tweaks.
13283
13284 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13285
13286         * doc/install.texi (--with-multilib-list): Describe the meaning of the
13287         option for arm*-*-* targets.
13288
13289 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13290
13291         * doc/extend.texi (Common Function Attributes): Move docs for
13292         MSP430-specific attributes to....
13293         (MSP430 Function Attributes): ...here.  Delete the redundant
13294         entries and copy-edit the remaining text.
13295         (MSP430 Variable Attributes): Use uniform format for index
13296         entries and add a cross-reference to the corresponding function
13297         attribute docs.
13298
13299 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
13300
13301         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
13302         -finite-math typo.
13303         (x86 Options): Likewise.
13304
13305 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
13306
13307         PR 1078
13308
13309         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
13310         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
13311         to corresponding attribute.
13312
13313 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
13314
13315         * doc/extend.texi (Common Function Attributes) <noplt>: Move
13316         to correct alphabetization of table.  Copy-edit and correct
13317         markup.
13318         <stack_protect>: Likewise.
13319         <target_clones>: Likewise.
13320         <simd>: Likewise.
13321         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
13322         Correct punctuation.
13323         (Code Gen Options) <-fno-plt>: Copy-edit.
13324
13325 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13326
13327         PR target/68917
13328         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
13329         SI values.  Explicitly convert SI to DI and vice-versa.
13330
13331 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
13332
13333         PR tree-optimization/69070
13334         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
13335         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
13336
13337         PR sanitizer/69055
13338         * ubsan.c (ubsan_instrument_float_cast): Call
13339         initialize_sanitizer_builtins.
13340
13341         PR target/69015
13342         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
13343 \f
13344 Copyright (C) 2016 Free Software Foundation, Inc.
13345
13346 Copying and distribution of this file, with or without modification,
13347 are permitted in any medium without royalty provided the copyright
13348 notice and this notice are preserved.