1 2019-08-14 Richard Biener <rguenther@suse.de>
2 Uroš Bizjak <ubizjak@gmail.com>
5 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7 (scalar_chain::smode): New member.
8 (scalar_chain::vmode): Likewise.
9 (dimode_scalar_chain): Rename to...
10 (general_scalar_chain): ... this.
11 (general_scalar_chain::general_scalar_chain): Take mode arguments.
12 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13 base with TImode and V1TImode.
14 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
15 (general_scalar_chain::vector_const_cost): Adjust for SImode
17 (general_scalar_chain::compute_convert_gain): Likewise. Add
18 {S,U}{MIN,MAX} support.
19 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
20 (general_scalar_chain::make_vector_copies): Likewise. Handle
21 non-DImode chains appropriately.
22 (general_scalar_chain::convert_reg): Likewise.
23 (general_scalar_chain::convert_op): Likewise.
24 (general_scalar_chain::convert_insn): Likewise. Add
25 fatal_insn_not_found if the result is not recognized.
26 (convertible_comparison_p): Pass in the scalar mode and use that.
27 (general_scalar_to_vector_candidate_p): Likewise. Rename from
28 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
29 (scalar_to_vector_candidate_p): Remove by inlining into single
31 (general_remove_non_convertible_regs): Rename from
32 dimode_remove_non_convertible_regs.
33 (remove_non_convertible_regs): Remove by inlining into single caller.
34 (convert_scalars_to_vector): Handle SImode and DImode chains
35 in addition to TImode chains.
36 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
37 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
38 (*<maxmin>di3_doubleword): Likewise.
40 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
41 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
43 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
44 (*cond_bic<mode>_any): New patterns.
46 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
48 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
49 take the equivalent mask, as well as a bit count.
50 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
51 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
52 (aarch64_sve_pred_and_operand): New predicates.
53 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
55 * config/aarch64/aarch64-sve.md
56 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
57 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
59 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
61 * config/aarch64/aarch64-sve.md
62 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
63 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
66 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
67 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
69 * config/aarch64/aarch64-sve.md
70 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
71 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
73 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
74 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
76 * config/aarch64/aarch64-sve.md
77 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
78 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
80 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
82 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
83 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
86 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
87 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
89 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
91 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
92 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
94 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
95 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
96 (aarch64_print_operand): Add support for %I.
97 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
98 Bitcast floating-point constants to the corresponding integer constant.
99 (aarch64_float_const_representable_p): Handle vectors as well
101 (aarch64_expand_sve_vcond): Make sure that the operands are valid
102 for the new vcond_mask_<mode><vpred> expander.
103 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
104 test aarch64_float_const_representable_p.
105 (aarch64_sve_reg_or_dup_imm): New predicate.
106 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
107 gen_vcond_mask_<mode><vpred> instead of
108 gen_aarch64_sve_dup<mode>_const.
109 (vcond_mask_<mode><vpred>): Turn into a define_expand that
110 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
111 for operands 1 and 2 respectively. Force operand 2 into a
112 register if operand 1 is a register. Fold old define_insn...
113 (aarch64_sve_dup<mode>_const): ...and this define_insn...
114 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
115 floating-point constants that can be moved as integers. Add
116 alternatives for MOV /M and FMOV /M.
117 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
118 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
119 1 and 2 respectively.
120 * config/aarch64/constraints.md (Ufc): Handle vectors as well
122 (vss): New constraint.
124 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
126 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
127 (aarch64_sve_float_maxmin_operand): New predicates.
128 * config/aarch64/constraints.md (vsB): New constraint.
130 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
131 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
133 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
134 Use aarch64_sve_float_maxmin_operand for operand 2.
135 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
136 Add alternatives for the constant forms.
138 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
140 * config/aarch64/constraints.md (vsb): New constraint.
141 (vsm): Generalize description.
142 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
144 (sve_imm_con): Handle smax, smin, umax and umin.
145 (sve_imm_prefix): New code attribute.
146 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
147 (aarch64_sve_vsb_operand): New predicates.
148 (aarch64_sve_mul_immediate): Rename to...
149 (aarch64_sve_vsm_immediate): ...this.
150 (aarch64_sve_mul_operand): Rename to...
151 (aarch64_sve_vsm_operand): ...this.
152 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
153 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
154 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
155 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
156 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
157 add movprfx support for the immediate alternatives.
158 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
160 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
163 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
165 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
166 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
167 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
169 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
171 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
172 (optab, sve_int_op): Handle them.
173 * config/aarch64/aarch64-sve.md: Expand comment.
175 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
177 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
178 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
179 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
183 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
184 (aarch64_expand_sve_const_pred_trn): New functions.
185 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
186 use the above functions when the parameter is true.
187 (aarch64_expand_sve_const_pred): Update call accordingly.
188 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
190 (@aarch64_sve_<perm_insn><mode>): ...this.
192 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
194 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
196 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
197 (aarch64_sve_emit_int_cmp): New functions.
198 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
199 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
200 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
201 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
202 (UNSPEC_PRED_Z): New unspec.
203 (set_clobber_cc_nzc): Delete.
204 * config/aarch64/aarch64-sve.md: Add a block comment about
206 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
207 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
208 the old pattern with that name. Use UNSPEC_PRED_Z instead of
210 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
211 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
212 check for compatible predicates.
213 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
214 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
215 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
220 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
221 * config/aarch64/aarch64-sve.md: Add a section describing it.
222 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
223 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
224 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
225 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
226 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
227 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
228 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
229 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
230 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
231 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
232 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
233 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
234 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
235 (aarch64_evpc_rev_local): Update accordingly.
237 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
239 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
241 (SVE_BHSI, SVE_SDI): Tweak comment.
242 (SVE_HSDI): Likewise. Fix definition.
243 (SVE_SDF): New mode iterator.
244 (elem_bits): New mode attribute.
245 (SVE_COND_FCVT): New int iterator.
246 * config/aarch64/aarch64-sve.md
247 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
248 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
249 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
250 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
251 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
252 ...these new patterns.
253 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
254 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
255 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
257 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
258 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
259 ...these new patterns.
260 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
261 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
262 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
264 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
265 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
267 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
269 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
271 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
272 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
273 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
275 (optab, su): Handle them.
276 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
277 * config/aarch64/aarch64-sve.md
278 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
279 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
280 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
281 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
282 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
283 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
284 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
285 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
286 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
288 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
289 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
290 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
291 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
292 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
293 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
294 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
295 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
296 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
297 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
298 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
299 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
300 of UNSPEC_FLOAT_CONVERT.
301 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
302 aarch64_sve_extend<mode><Vwide>2.
304 2019-08-14 Richard Biener <rguenther@suse.de>
307 * config/i386/i386-features.c
308 (dimode_scalar_chain::compute_convert_gain): Compute and dump
309 individual instruction gain. Fix reg-reg copy GRP cost. Use
310 ix86_cost->sse_op for vector instruction costs.
312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
314 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
316 (SVE_COND_FP_CMP): Rename to...
317 (SVE_COND_FP_CMP_I0): ...this.
318 (SVE_FP_CMP): Remove.
319 * config/aarch64/aarch64-sve.md
320 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
321 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
322 using unspecs to represent the comparison.
323 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
324 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
326 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
327 (aarch64_unspec_cond_code): Move after integer code. Handle
329 (aarch64_emit_sve_predicated_cond): Replace with...
330 (aarch64_emit_sve_fp_cond): ...this new function.
331 (aarch64_emit_sve_or_conds): Replace with...
332 (aarch64_emit_sve_or_fp_conds): ...this new function.
333 (aarch64_emit_sve_inverted_cond): Replace with...
334 (aarch64_emit_sve_invert_fp_cond): ...this new function.
335 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
337 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
339 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
340 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
341 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
342 SVE_HSD instead of SVE_SD.
344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
345 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
347 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
349 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
351 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
352 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
353 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
354 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
355 (*div<SVE_F:mode>3): Generalize to...
356 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
358 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
359 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
361 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
363 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
365 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
367 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
369 * config/aarch64/aarch64-sve.md: Add a block comment about the
370 handling of predicated FP operations.
371 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
372 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
373 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
374 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
375 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
377 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
378 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
380 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
381 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
382 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
383 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
384 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
385 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
386 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
387 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
388 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
389 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
390 strictness operands. Use aarch64_sve_pred_dominates_p to check
391 whether the predicate on the conditional operation is suitable
392 for merging. Split patterns into the canonical equal-predicate form.
393 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
394 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
399 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
400 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
401 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
403 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
404 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
407 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
408 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
410 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
411 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
412 actually has, rather than relying on REG_EQUAL notes.
413 Make the insn operand order match the SVE operand order.
414 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
415 the SVE operand order.
417 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
419 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
420 (aarch64_emit_set_immediate): Likewise.
421 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
422 (aarch64_pfalse_reg): Likewise.
423 (aarch64_convert_sve_data_to_pred): New function.
424 (aarch64_sve_move_pred_via_while): Take an optional target register
425 and the required register mode.
426 (aarch64_expand_sve_const_pred_1): New function.
427 (aarch64_expand_sve_const_pred): Likewise.
428 (aarch64_expand_mov_immediate): Build an all-true predicate
429 if the significant bits of the immediate are all true. Use
430 aarch64_expand_sve_const_pred for all compile-time predicate constants.
431 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
432 before register allocation.
433 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
434 a VNx16BI PTRUE when splitting the memory alternative.
435 (vec_duplicate<mode>): Update accordingly.
436 (*pred_cmp<cmp_op><mode>): Rename to...
437 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
439 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
441 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
442 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
443 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
444 (UNSPEC_PTEST): New unspec.
445 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
446 * config/aarch64/iterators.md (data_bytes): New mode attribute.
447 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
448 * config/aarch64/aarch64-sve.md: Add a new section describing the
449 handling of UNSPEC_PTEST.
450 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
451 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
452 (ptest_ptrue<mode>): Replace with...
453 (aarch64_ptest<mode>): ...this new pattern.
454 (cbranch<mode>4): Update after above changes.
455 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
457 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
458 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
459 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
461 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
464 * builtins.c (builtin_with_linkage_p): New function.
465 * builtins.h (builtin_with_linkage_p): New function.
466 * symtab.c (write_symbol): Remove redundant assert.
467 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
468 Remove FIXME and use builtin_with_linkage_p.
470 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
473 * tree-core.h (function_decl::function_code): Change type to
475 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
476 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
477 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
478 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
480 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
481 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
482 (fndecl_built_in_p): Change the type of the "name" argument to
484 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
485 after check for DECL_BUILT_IN_CLASS.
486 * cgraphclones.c (build_function_decl_skip_args): Use
487 set_decl_built_in_function.
488 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
489 * ipa-split.c (split_function): Likewise.
490 * langhooks.c (add_builtin_function_common): Likewise.
491 * omp-simd-clone.c (simd_clone_create): Likewise.
492 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
493 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
494 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
496 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
497 instead of DECL_FUNCTION_CODE.
498 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
499 instead of DECL_FUNCTION_CODE.
500 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
501 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
502 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
503 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
504 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
505 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
506 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
507 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
508 (alpha_gimple_fold_builtin): Likewise.
509 * config/arc/arc.c (arc_expand_builtin): Likewise.
510 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
511 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
512 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
513 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
514 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
515 * config/frv/frv.c (frv_expand_builtin): Likewise.
516 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
517 (gcn_expand_builtin): Likewise.
518 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
519 (fold_builtin_cpu): Likewise.
520 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
521 * config/i386/i386.c (ix86_fold_builtin): Likewise.
522 (ix86_gimple_fold_builtin): Likewise.
523 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
524 (ia64_expand_builtin): Likewise.
525 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
526 * config/mips/mips.c (mips_expand_builtin): Likewise.
527 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
528 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
529 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
530 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
531 * config/pa/pa.c (pa_expand_builtin): Likewise.
532 * config/pru/pru.c (pru_expand_builtin): Likewise.
533 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
534 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
536 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
537 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
538 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
539 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
540 (rs6000_builtin_reciprocal): Likewise.
541 * config/rx/rx.c (rx_expand_builtin): Likewise.
542 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
543 * config/s390/s390.c (s390_expand_builtin): Likewise.
544 * config/sh/sh.c (sh_expand_builtin): Likewise.
545 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
546 (sparc_fold_builtin): Likewise.
547 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
548 * config/spu/spu.c (spu_expand_builtin): Likewise.
549 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
550 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
551 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
552 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
553 (xtensa_expand_builtin): Likewise.
555 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
558 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
559 before the DECL_FUNCTION_CODE.
560 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
561 to check for a BUILT_IN_ALLOCA call.
562 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
563 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
564 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
565 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
566 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
567 for BUILT_IN_NORMAL functions.
568 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
569 test for BUILT_IN_TM_ABORT.
570 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
571 to check for a BUILT_IN_STACK_RESTORE call.
572 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
573 * tree-ssa-threadedge.c
574 (record_temporary_equivalences_from_stmts_at_dest): Check for a
575 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
576 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
577 test for a BUILT_IN_NORMAL call instead of a negative test for
578 an internal function call.
580 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
582 * tree.h (build_vector_a_then_b): Declare.
583 * tree.c (build_vector_a_then_b): New function.
584 * fold-const-call.c (fold_while_ult): Likewise.
585 (fold_const_call): Use it to handle IFN_WHILE_ULT.
586 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
587 (aarch64_svpattern): New enum.
588 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
589 constants through aarch64_expand_mov_immediate.
590 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
591 than general_operand as the predicate for operand 1.
592 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
593 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
595 (simd_immediate_info::simd_immediate_info): New overload that
596 takes a scalar_int_mode and an svpattern.
597 (simd_immediate_info::u): Add a "pattern" field.
598 (svpattern_token): New function.
599 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
600 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
601 (aarch64_sve_move_pred_via_while): New functions.
602 (aarch64_expand_mov_immediate): Try using
603 aarch64_sve_move_pred_via_while for predicates that contain N ones
604 followed by M zeros but that do not correspond to a VLnnn pattern.
605 (aarch64_sve_pred_valid_immediate): New function.
606 (aarch64_simd_valid_immediate): Use it instead of dealing directly
607 with PTRUE and PFALSE.
608 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
611 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
613 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
615 (darwin_override_options): Likewise.
616 * config/darwin.h: Likewise.
617 * config/darwin.opt: Likewise.
618 * config/i386/i386.c (output_pic_addr_const): Likewise.
619 * config/rs6000/darwin.h: Likewise.
620 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
621 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
622 ... this TARGET_MACHO_SYMBOL_STUBS.
623 (FUNCTION_PROFILER):Likewise.
624 * config/i386/i386.h: Likewise.
626 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
628 * config/i386/i386.md (ix86_expand_vector_extract) <case E_V2SImode>:
629 Use vec_extr path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
630 <case E_V8QImode>: Ditto.
631 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
632 Use SWI48 mode iterator. Use %k to output operand 0.
633 (*mmx_pextrw): New insn pattern.
634 (*mmx_pextrb): Ditto.
635 (*mmx_pextrb_zext): Ditto.
637 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
639 * target.def (libc_has_function, libc_has_fast_function): Improve
640 documentation strings.
641 * doc/tm.texi: Regenerate.
643 2019-08-13 Caroline Tice <cmtice@google.com>
646 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
647 vtv_end.o or vtv_end_preinit.o files if !static.
649 2019-08-13 Olivier Hainque <hainque@adacore.com>
651 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
653 2019-08-13 Olivier Hainque <hainque@adacore.com>
655 * rtlanal.c (tablejump_casesi_pattern): New function, to
656 determine if a tablejump insn is a casesi dispatcher. Extracted
657 from patch_jump_insn.
658 * rtl.h (tablejump_casesi_pattern): Declare.
659 * cfgrtl.c (patch_jump_insn): Use it.
660 * dwarf2cfi.c (create_trace_edges): Use it.
662 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
665 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
666 operand is larger than a long int.
668 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
670 * machmode.h (opt_mode::else_mode): New function.
671 (opt_mode::else_blk): Use it.
672 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
673 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
674 (aarch64_gen_stepped_int_parallel): Likewise.
675 (aarch64_stepped_int_parallel_p): Likewise.
676 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
678 * config/aarch64/aarch64.c
679 (aarch64_expand_sve_widened_duplicate): Delete.
680 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
681 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
682 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
683 argument. Use early returns in the !CONST_INT_P handling.
684 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
685 than handling some inline.
686 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
688 (aarch64_simd_container_mode): ...here.
689 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
690 (aarch64_sve_ld1rq_operand_p): New functions.
691 * config/aarch64/predicates.md (descending_int_parallel)
692 (aarch64_sve_ld1rq_operand): New predicates.
693 * config/aarch64/constraints.md (UtQ): New constraint.
694 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
695 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
696 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
697 (@aarch64_sve_reinterpret<mode>): New expander.
698 (*aarch64_sve_reinterpret<mode>): New pattern.
699 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
700 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
701 (*sve_ld1rq<Vesize>): Replace with...
702 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
704 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
706 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
709 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
711 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
712 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
713 (msp430_check_path_for_devices): New.
714 (parse_devices_csv_1): New.
715 (parse_devices_csv): New.
716 (msp430_extract_mcu_data): Try to find devices.csv and search for the
717 MCU data in devices.csv before using the hard-coded data.
718 Warn if devices.csv isn't found and the MCU wasn't found in the
719 hard-coded data either.
720 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
721 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
722 Search for devices.csv on -I and -L paths.
723 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
724 msp430_set_driver_var.
725 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
727 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
728 searched for devices.csv.
729 (mwarn-devices-csv): Document option.
731 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
733 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
734 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
735 Use a single Dn alternative instead of separate Dz and Dm
736 alternatives. Use aarch64_output_sve_move_immediate.
737 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
739 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
741 (aarch64_output_sve_mov_immediate): Handle predicate modes.
742 (aarch64_output_ptrue): Delete.
744 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
746 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
748 (simd_immediate_info::value, simd_immediate_info::step)
749 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
751 (simd_immediate_info::u): ...this new union.
752 (simd_immediate_info::simd_immediate_info): Update accordingly.
753 (aarch64_output_simd_mov_immediate): Likewise.
754 (aarch64_output_sve_mov_immediate): Likewise.
756 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
758 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
760 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
761 (msp430_select_cpu): New spec function.
762 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
764 * config/msp430/msp430-devices.c: New file.
765 * config/msp430/msp430-devices.h: New file.
766 * config/msp430/msp430.c: Remove msp430_mcu_data.
767 (msp430_option_override): Use msp430_extract_mcu_data to extract
769 (msp430_use_f5_series_hwmult): Likewise.
770 (use_32bit_hwmult): Likewise.
771 (msp430_no_hwmult): Likewise.
772 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
774 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
776 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
777 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
778 Remove hard-coded MCU multilib data.
780 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
782 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
783 based on the mode instead of testing properties of it.
785 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
787 * doc/md.texi: Document the x and y constraints for AArch64.
788 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
789 (FP_LO8_REGS): New reg_class.
790 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
791 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
792 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
793 * config/aarch64/predicates.md (aarch64_simd_register): Use
794 FP_REGNUM_P instead of checking the classes manually.
795 * config/aarch64/constraints.md (y): New constraint.
797 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
799 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
800 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
801 * config/aarch64/aarch64-simd.md
802 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
803 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
804 from the asm template.
805 * config/aarch64/aarch64-sve.md
806 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
807 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
808 from the asm template.
809 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
810 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
811 from the asm template.
812 * config/aarch64/aarch64-simd-builtins.def: Update comment.
814 2019-08-13 Martin Liska <mliska@suse.cz>
816 * value-prof.c (gimple_ic_transform): Add new line.
817 Print details with MSG_NOTE.
819 2019-08-13 Martin Liska <mliska@suse.cz>
821 * doc/invoke.texi: Document automatic detection of jobserver.
822 * lto-wrapper.c (run_gcc): Detect jobserver always.
824 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
826 * config/i386/i386.md (ix86_expand_vector_set) <case E_V2SImode>:
827 Use vec_merge path for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
828 <case E_V8QImode>: Ditto.
829 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
830 (*mmx_pinsrb): Ditto.
832 2019-08-12 Jakub Jelinek <jakub@redhat.com>
836 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
837 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
838 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
839 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
840 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
842 2019-08-12 Richard Biener <rguenther@suse.de>
845 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
848 2019-08-12 Richard Biener <rguenther@suse.de>
851 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
852 lang_mask option, always use CL_DRIVER.
853 (get_options_from_collect_gcc_options): Adjust.
854 (find_and_merge_options): Likewise.
857 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
859 * ipa-predicate.c (add_condition): Restore inverted test.
861 2019-08-10 Jakub Jelinek <jakub@redhat.com>
863 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
864 (enum omp_clause_device_type_kind): New enum.
865 (struct tree_omp_clause): Add subcode.device_type_kind.
866 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
867 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
868 for device_type clause.
869 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
870 * tree-pretty-print.c (dump_omp_clause): Likewise.
873 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
876 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
878 * reload1.c (finish_spills): Do not check ira_conflicts_p when
879 handling spilled pseudos.
881 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
884 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
885 to preserve the contents of the original insns.
887 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
889 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
890 (addsi3_compare_op2): Likewise.
892 2019-08-09 Martin Liska <mliska@suse.cz>
894 * alias.c (alias_ptr_types_compatible_p): Strengten
895 type comparison in LTO mode.
897 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
900 * tree-tailcall.c (find_tail_calls): Reject calls that might
901 read from an escaped RESULT_DECL.
903 2019-08-09 Martin Liska <mliska@suse.cz>
905 * doc/invoke.texi: Document the option value.
906 * lto-wrapper.c (run_gcc): Set auto_parallel
907 only with -flto=auto.
909 2019-08-09 Martin Liska <mliska@suse.cz>
911 * opts.c (common_handle_option): Error for an invalid argument
914 2019-08-09 Martin Liska <mliska@suse.cz>
916 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
917 use dump_printf to report optimization.
918 (sem_variable::merge): Likwise.
919 (sem_item_optimizer::merge_classes): Use dump_printf to report
922 2019-08-09 Martin Liska <mliska@suse.cz>
924 * value-prof.c (gimple_divmod_fixed_value_transform):
926 (gimple_mod_pow2_value_transform): Likewise.
927 (gimple_mod_subtract_transform): Likewise.
928 (init_node_map): Likewise.
929 (gimple_ic_transform): Likewise.
930 (gimple_stringops_transform): Likewise.
932 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
934 * doc/extend.texi: Add const qualifier to ld intrinsics.
936 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
938 * config/rs6000/dfp.md (D64_D128): Rename to ...
939 (DDTD): ... this, throughout.
940 (dfp_suffix): Rename to ...
941 (q): ... this, throughout.
943 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
945 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
947 (adddd3, addtd3): Merge to ...
948 (add<mode>3 for D64_D128): ... this.
949 (subdd3, subtd3): Merge to ...
950 (sub<mode>3 for D64_D128): ... this.
951 (muldd3, multd3): Merge to ...
952 (mul<mode>3 for D64_D128): ... this.
953 (divdd3, divtd3): Merge to ...
954 (div<mode>3 for D64_D128): ... this.
955 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
956 (*cmp<mode>_internal1 for D64_D128): ... this.
957 (ftruncdd2, ftrunctd2): Merge to ...
958 (ftrunc<mode>2 for D64_D128): ... this.
959 (fixdddi2, fixtddi2): Merge to ...
960 (fix<mode>di2 for D64_D128): ... this.
962 2019-08-08 Jim Wilson <jimw@sifive.com>
965 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
966 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
967 Pass into recursive call.
968 (riscv_flatten_aggregate_argument): New arg. Pass to
969 riscv_flatten_aggregate_field.
970 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
971 riscv_flatten_aggregate_argument twice, with false and true as last
972 arg. Process result twice. Compare results and warn if different.
973 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
975 2019-08-08 Martin Liska <mliska@suse.cz>
978 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
979 * lto-wrapper.c (jobserver_active_p): Likewise.
981 2019-08-08 Martin Liska <mliska@suse.cz>
983 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
984 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
985 (create_version_clone_with_body): Likewise.
987 2019-08-08 Jakub Jelinek <jakub@redhat.com>
989 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
990 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
991 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
993 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
994 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
995 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
996 call install_var_field with mask 11 instead of 3.
997 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
998 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
1000 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1002 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
1003 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
1005 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1007 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
1008 MOVPRFX alternatives. Make the GPR alternatives more expensive
1011 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1013 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
1014 Disparage the GPR alternative relative to the FPR one.
1015 Fix handling of 8-bit and 16-bit FPR values.
1017 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1019 * config/aarch64/iterators.md (BITWISEV): Delete.
1020 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
1021 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
1022 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1023 UNSPEC_FMINNMV, UNSPEC_FMINV.
1024 (bit_reduc_op): Delete.
1025 (sve_int_op): New int attribute.
1026 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
1027 UNSPEC_FMINNMV, UNSPEC_FMINV.
1028 * config/aarch64/aarch64-sve.md
1029 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1030 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
1031 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
1032 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
1033 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
1034 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
1036 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
1037 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
1038 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
1039 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
1040 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
1043 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1045 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
1046 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
1047 (fms<mode>4, *fms<mode>4): Replace with...
1048 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1049 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
1050 Use unspecs instead of rtx codes.
1051 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
1052 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
1054 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1056 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
1058 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
1059 * config/aarch64/aarch64-sve.md
1060 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
1061 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
1062 use a single unspec for the rhs.
1063 (*<su><maxmin><mode>3): Delete.
1064 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
1066 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1068 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
1069 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
1070 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
1071 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
1072 (optab, sve_fp_op): Handle them.
1073 (SVE_FP_UNARY): Delete.
1074 (optab): Remove sqrt entry.
1075 (sve_fp_op): Remove neg, abs and sqrt entries.
1076 (SVE_COND_FP_UNARY): New int iterator.
1077 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
1078 (*<frint_pattern><mode>2): Delete.
1079 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1080 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1081 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
1082 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
1084 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1086 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
1088 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1090 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
1091 (UNSPEC_COND_FADD): ...this.
1092 (UNSPEC_COND_SUB): Rename to...
1093 (UNSPEC_COND_FSUB): ...this.
1094 (UNSPEC_COND_MUL): Rename to...
1095 (UNSPEC_COND_FMUL): ...this.
1096 (UNSPEC_COND_DIV): Rename to...
1097 (UNSPEC_COND_FDIV): ...this.
1098 (UNSPEC_COND_MAX): Rename to...
1099 (UNSPEC_COND_FMAXNM): ...this.
1100 (UNSPEC_COND_MIN): Rename to...
1101 (UNSPEC_COND_FMINNM): ...this.
1102 (UNSPEC_COND_LT): Rename to...
1103 (UNSPEC_COND_FCMLT): ...this.
1104 (UNSPEC_COND_LE): Rename to...
1105 (UNSPEC_COND_FCMLE): ...this.
1106 (UNSPEC_COND_EQ): Rename to...
1107 (UNSPEC_COND_FCMEQ): ...this.
1108 (UNSPEC_COND_NE): Rename to...
1109 (UNSPEC_COND_FCMNE): ...this.
1110 (UNSPEC_COND_GE): Rename to...
1111 (UNSPEC_COND_FCMGE): ...this.
1112 (UNSPEC_COND_GT): Rename to...
1113 (UNSPEC_COND_FCMGT): ...this.
1114 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
1115 (sve_fp_op_rev): Update accordingly.
1116 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
1118 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1120 * config/aarch64/aarch64-sve.md: Reorganize contents and add
1122 * config/aarch64/check-sve-md.awk: New file.
1123 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
1124 (insn-conditions.md): Depend on it.
1126 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
1129 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
1130 (*negsi2_cmpz_zext): Ditto.
1132 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1134 * config/aarch64/iterators.md (commutative): Remove.
1136 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
1139 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
1140 processing COLLECT_GCC_OPTIONS.
1141 (run_gcc): Likewise.
1143 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
1145 PR tree-optimization/91109
1146 * lra-remat.c (update_scratch_ops): Remove assignment of the
1149 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
1151 * data-streamer.h (streamer_write_poly_uint64): Declare.
1152 (streamer_read_poly_uint64): Likewise.
1153 * data-streamer-in.c (streamer_read_poly_uint64): New function.
1154 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
1155 * ipa-predicate.h (condition::size): Turn into a poly_int64.
1156 (add_condition): Take a poly_int64 size.
1157 * ipa-predicate.c (add_condition): Likewise.
1158 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
1159 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
1160 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
1161 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
1162 condition::size as a poly_int64.
1163 (unmodified_parm_1): Take a poly_int64 size pointer.
1164 (unmodified_parm): Likewise.
1165 (unmodified_parm_or_parm_agg_item): Likewise.
1166 (set_cond_stmt_execution_predicate): Update accordingly.
1167 (set_switch_stmt_execution_predicate): Likewise.
1168 (will_be_nonconstant_expr_predicate): Likewise.
1169 (will_be_nonconstant_predicate): Likewise.
1170 (inline_read_section): Stream condition::size as a poly_int.
1171 (ipa_fn_summary_write): Likewise.
1173 2019-08-07 Martin Liska <mliska@suse.cz>
1175 * fold-const.c (twoval_comparison_p): Replace int
1176 with bool as a return type.
1177 (simple_operand_p): Likewise.
1178 (operand_equal_p): Replace int with bool as a return type.
1179 * fold-const.h (operand_equal_p): Likewise.
1181 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1183 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
1184 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
1185 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
1186 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
1187 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
1188 * tree-pretty-print.c (dump_omp_clause): Likewise.
1189 * tree-nested.c (convert_nonlocal_omp_clauses,
1190 convert_local_omp_clauses): Likewise.
1191 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1193 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
1194 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
1195 clause with array or reference to array types, no matter what type
1196 except for reference it has.
1198 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
1200 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
1202 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
1204 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
1205 (arch_canonicalize): Support rv32g and rv64g and fix error
1208 2019-08-06 Martin Liska <mliska@suse.cz>
1210 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
1211 and DECL_IS_OPERATOR_DELETE_P.
1213 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1215 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
1216 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
1217 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
1218 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
1219 (gimplify_omp_for): Don't do C++ random access iterator clause
1220 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
1221 don't predetermine the artificial iterator in case of C++ random
1222 access iterators as lastprivate, but private. For OMP_LOOP, force
1223 bind expr around simd body and force for_pre_body before the
1224 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
1225 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
1226 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
1227 diff var of C++ random access iterators. Handle
1228 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
1229 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
1230 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
1231 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
1232 * omp-low.c (lower_rec_input_clauses): For
1233 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
1234 variables instead of default constructing them.
1235 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
1236 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
1237 is_taskloop_ctx check from the assert to the guarding condition.
1239 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
1241 * config/riscv/multilib-generator: (canonical_order): New.
1242 (arch_canonicalize): Dito.
1243 Apply arch_canonicalize for alts.
1245 2019-08-05 Martin Sebor <msebor@redhat.com>
1247 * doc/extend.texi (Common Variable Attributes): Document alias
1250 2019-08-05 Marek Polacek <polacek@redhat.com>
1252 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
1253 * doc/invoke.texi: Document -Wcomma-subscript.
1255 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1257 * tree-core.h (tree_function_decl): Make function_code an
1258 independent field. Group the remaining bitfields into bytes
1259 and move decl_type so that it contines to be at a byte boundary.
1260 Leave 12 bits for future expansion.
1262 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1264 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
1265 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
1266 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
1269 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
1271 * gimple.h (gimple_move_vops): Declare.
1272 * gimple.c (gimple_move_vops): New function
1273 * gimple-fold.c (replace_call_with_call_and_fold)
1274 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
1275 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
1276 (gimple_fold_call): Use it.
1277 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
1278 * tree-call-cdce.c (use_internal_fn): Likewise.
1279 * tree-if-conv.c (predicate_load_or_store): Likewise.
1280 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1281 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1282 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
1283 (update_call_from_tree): Likewise.
1284 * tree-vect-stmts.c (vectorizable_load): Likewise.
1285 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
1287 2019-08-05 Martin Liska <mliska@suse.cz>
1290 * tree-ssa-dce.c (propagate_necessity): Handle new operators
1292 (eliminate_unnecessary_stmts): Likewise.
1294 2019-08-05 Richard Biener <rguenther@suse.de>
1297 * fold-const.c (get_array_ctor_element_at_index): Create
1298 offset_ints according to the sign of the index type and treat
1299 that as signed if it is obviously so.
1301 2019-08-05 Jakub Jelinek <jakub@redhat.com>
1304 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
1305 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
1306 _mm256_storeu2_m128i): New function.
1308 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
1310 * config/riscv/riscv.c (riscv_promote_function_mode): New.
1311 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
1313 2019-08-05 Alan Modra <amodra@gmail.com>
1316 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
1317 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
1319 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
1321 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
1322 bug that was fixed in Tcl 8.6.1.
1324 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
1326 * config/rs6000/future.md: New file.
1327 * config/rs6000/rs6000.md: Include future.md.
1328 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
1330 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1332 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
1333 check to use targetm.slow_unaligned_access instead.
1335 * function.c (assign_param_data_one): Remove unused data members.
1337 2019-08-02 Steve Ellcey <sellcey@marvell.com>
1339 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
1340 build_distinct_type_copy.
1341 (simd_clone_adjust_argument_types): Ditto.
1342 (simd_clone_adjust): Call build_distinct_type_copy here.
1343 (expand_simd_clones): Ditto.
1345 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1348 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
1350 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
1352 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
1353 from 'const void *'.
1354 (sort_locs_in_loop_postorder_cmp): Likewise.
1356 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
1358 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
1359 (hot-bb-count-ws-permille): Likewise.
1360 (hot-bb-frequency-fraction): Likewise.
1361 (unlikely-bb-count-fraction): Likewise.
1362 * params.def (hot-bb-count-fraction): Rework description.
1363 (hot-bb-count-ws-permille): Likewise.
1364 (hot-bb-frequency-fraction): Likewise.
1365 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
1366 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
1368 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
1371 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
1374 2019-08-02 Richard Biener <rguenther@suse.de>
1376 * vec.h (vec::sort): Add gcc_qsort_r support.
1377 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
1378 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
1379 to gcc_qsort_r style callback.
1380 (sort_locs_in_loop_postorder_cmp): Likewise.
1381 (analyze_memory_references): Use gcc_sort_r interfaces.
1382 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
1384 2019-08-02 Martin Liska <mliska@suse.cz>
1387 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
1388 to detect working job server.
1389 (driver::detect_jobserver): Test whether jobserver
1390 is active from GCC driver. That will prevent situation where
1391 GCC is invoked from a LD plugin and the linker already uses
1392 file descriptors suggested by make. That leads to a wrong
1394 * gcc.h (driver): Add detect_jobserver.
1395 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
1396 not scanning for --jobserver-auth prefix.
1398 2019-08-02 Jakub Jelinek <jakub@redhat.com>
1400 PR tree-optimization/91201
1401 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
1402 V16QImode extraction without sse4.1 try to use V4SImode lowpart
1405 2019-08-01 Martin Sebor <msebor@redhat.com>
1408 * tree.c (type_initializer_zero_p): Define.
1409 * tree.h (type_initializer_zero_p): New function.
1411 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1413 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
1415 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
1417 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
1418 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
1419 * predict.c (maybe_hot_count_p): Likewise.
1420 (maybe_hot_bb_p): Tweak comment.
1421 (maybe_hot_edge_p): Likewise.
1422 (probably_never_executed): Likewise. Minor tweak.
1423 (probably_never_executed_bb_p): Likewise.
1424 (unlikely_executed_edge_p): Likewise.
1425 (probably_never_executed_edge_p): Likewise.
1426 (optimize_function_for_size_p): Likewise.
1427 (optimize_function_for_speed_p): Likewise.
1428 (function_optimization_type): Likewise.
1429 (optimize_bb_for_size_p): Likewise.
1430 (optimize_bb_for_speed_p): Likewise.
1431 (bb_optimization_type): Likewise.
1432 (optimize_edge_for_size_p): Likewise.
1433 (optimize_edge_for_speed_p): Likewise.
1434 (optimize_insn_for_size_p): Likewise.
1435 (optimize_insn_for_speed_p): Likewise.
1436 (optimize_loop_for_size_p): Likewise.
1437 (optimize_loop_for_speed_p): Likewise.
1438 (optimize_loop_nest_for_speed_p): Likewise.
1439 (optimize_loop_nest_for_size_p): Likewise.
1440 (predictable_edge_p): Likewise.
1441 (handle_missing_profiles): Minor tweak.
1443 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
1445 * config/rs6000/predicates.md (pcrel_external_address): Update
1448 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1451 * config/i386/mmx.md (usadv8qi): New expander.
1453 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
1456 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
1457 with reserved names that are in a system header.
1459 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
1461 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
1462 (*vec_extractv2si_0_zext_sse4): New insn pattern.
1463 (*vec_extractv2si_0_zext): Ditto.
1464 (*vec_extractv2si_1): Add (rm,x) alternative.
1465 (*vec_extractv2si_1_zext): New insn pattern.
1466 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
1469 2019-08-01 Richard Biener <rguenther@suse.de>
1471 * domwalk.c (bb_postorder): Remove static variable.
1472 (cmp_bb_postorder): Adjust.
1473 (sort_bbs_postorder): Adjust and use gcc_sort_r.
1474 (dom_walker::walk): Adjust.
1476 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
1478 * sort.cc (sort_r_ctx): New struct.
1479 (reorder23): Make templated on context type.
1481 (cmp1): Ditto. Adjust signature.
1484 [CHECKING_P] (cmp2to3): New static function. Use it...
1485 (gcc_qsort) [CHECKING_P]: ...here.
1486 (gcc_sort_r): New function.
1487 * system.h (sort_r_cmp_fn): New function typedef.
1488 (qsort_chk): Adjust signature.
1489 (gcc_sort_r): Declare.
1490 * vec.c (qsort_chk_error): Adjust.
1491 (qsort_chk): Adjust.
1493 2019-08-01 Richard Biener <rguenther@suse.de>
1495 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
1496 (compute_antic): Localize it here.
1498 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
1500 * common/config/riscv/riscv-common.c: Check -march string ends
1503 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
1505 * ipa-devirt.c (type_warning_cmp): Make static.
1506 (decl_warning_cmp): Ditto.
1508 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
1511 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
1512 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1513 use of deleted rs6000_dejagnu_cpu_index variable.
1514 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
1515 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1516 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
1517 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
1518 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
1519 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
1521 2019-07-31 Richard Biener <rguenther@suse.de>
1523 PR tree-optimization/91280
1524 * tree-ssa-structalias.c (get_constraint_for_component_ref):
1525 Decompose MEM_REF manually for offset handling.
1527 2019-07-31 Richard Biener <rguenther@suse.de>
1529 PR tree-optimization/91293
1530 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
1533 2019-07-31 Matt Thomas <matt@3am-software.com>
1534 Nick Hudson <nick@nthcliff.demon.co.uk>
1535 Matthew Green <mrg@eterna.com.au>
1536 Maya Rashish <coypu@sdf.org>
1538 * config.gcc (hppa*-*-netbsd*): New target.
1539 * config/pa/pa-netbsd.h: New file.
1540 * config/pa/pa32-netbsd.h: New file.
1542 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1544 PR tree-optimization/91201
1545 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
1547 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
1549 * config/gcn/gcn-valu.md
1550 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
1551 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
1552 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
1553 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
1554 struct ilist. Add nops for delayeduse insns.
1555 * config/gcn/gcn.md (delayeduse): New attribute.
1556 (*movbi): Remove s_waitcnt from stores.
1557 (*mov<mode>_insn): Likewise.
1558 (*movti_insn): Likewise. Add delayeduse attribute.
1559 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
1560 (atomic_store<mode>): Remove or adjust s_waitcnt.
1562 2019-07-31 Richard Biener <rguenther@suse.de>
1564 * vr-values.h (vr_values::swap_vr_value): New.
1565 (vr_values::free_value_range): likewise.
1566 * vr-values.c (vr_values::swap_vr_value): Implement.
1567 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
1568 Do not return a range or take a var.
1569 (evrp_range_analyzer::stack): Change back to recording a non-const
1571 * gimple-ssa-evrp-analyze.c
1572 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
1574 (evrp_range_analyzer::pop_to_marker): Adjust.
1575 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
1576 (evrp_range_analyzer::pop_value_range): Likewise. Free the
1577 no longer needed value-range.
1579 2019-07-31 Martin Liska <mliska@suse.cz>
1581 * tree-ssa-dce.c (propagate_necessity): Delete operator can
1582 have size and (or) alignment as 2nd and later arguments.
1583 Mark all of them as necessary.
1585 2019-07-31 Richard Biener <rguenther@suse.de>
1587 PR tree-optimization/91178
1588 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1591 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1593 PR tree-optimization/91201
1594 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
1595 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
1597 (reduc_plus_scal_<mode>): Improve formatting by introducing
1600 2019-07-31 Sudakshina Das <sudi.das@arm.com>
1602 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1603 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
1604 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
1605 (aarch64_init_tme_builtins): New.
1606 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
1607 (aarch64_expand_builtin_tme): New.
1608 (aarch64_expand_builtin): Handle TME builtins.
1609 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1610 __ARM_FEATURE_TME when enabled.
1611 * config/aarch64/aarch64-option-extensions.def: Add "tme".
1612 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
1614 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
1615 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
1617 (tstart, ttest, tcommit, tcancel): New instructions.
1618 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
1619 (__tcancel, __ttest): New.
1620 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
1621 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
1622 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
1623 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
1624 * config/arm/types.md: Add new tme type attr.
1625 * doc/invoke.texi: Document "tme".
1627 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
1629 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
1630 warn_unused_result attribute.
1631 (cmse_check_address_range): Add warn_unused_result attribute.
1633 2019-07-31 Richard Biener <rguenther@suse.de>
1635 PR tree-optimization/91257
1636 * tree-vrp.c (union_ranges): Unify equality and less tests
1637 by using compare_values. Re-order cheap tests first.
1639 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1642 * gimplify.c (gimplify_omp_for): If for class iterator on
1643 distribute parallel for there is no data sharing clause
1644 on inner_for_stmt, look for private clause on combined
1645 parallel too and if found, move it to inner_for_stmt.
1647 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
1649 * lra-int.h (lra_operand_data): Remove early_clobber field.
1650 (lra_insn_reg): Likewise.
1651 * lra.c (debug_operand_data): Update accordingly.
1652 (setup_operand_alternative): Likewise.
1653 (new_insn_reg): Likewise. Remove early_clobber parameter.
1654 (collect_non_operand_hard_regs): Update call accordingly.
1655 Don't assign to lra_insn_reg::early_clobber.
1656 (add_regs_to_insn_regno_info): Remove early_clobber parameter
1657 and update calls to new_insn_reg.
1658 (lra_update_insn_regno_info): Update calls accordingly.
1659 * lra-constraints.c (update_and_check_small_class_inputs): Take the
1660 alternative number as a parameter and test whether the operand
1661 is earlyclobbered in that particular alternative.
1662 (process_alt_operands): Update call accordingly. Use per-alternative
1663 checks for earyclobber here too.
1664 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
1665 against zero for IRA_UNKNOWN_ALT.
1667 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1669 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
1671 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
1673 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
1674 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1676 2019-07-30 Martin Liska <mliska@suse.cz>
1679 * cgraph.c (cgraph_edge::make_direct): Use
1680 edge->indirect_unknown_callee as edge->resolve_speculation can
1681 deallocate edge which is this pointer.
1683 2019-07-30 Richard Biener <rguenther@suse.de>
1685 PR tree-optimization/91257
1686 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
1688 2019-07-30 Martin Liska <mliska@suse.cz>
1690 * doc/invoke.texi: Document new behavior.
1691 * lto-wrapper.c (cpuset_popcount): New function
1692 is a copy of libgomp/config/linux/proc.c.
1693 (init_num_threads): Likewise.
1694 (run_gcc): Automatically detect core count for -flto.
1695 (jobserver_active_p): New function.
1697 2019-07-30 Richard Biener <rguenther@suse.de>
1699 PR tree-optimization/91257
1700 * bitmap.h (bitmap_ior_into_and_free): Declare.
1701 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
1702 whether to add the unliked element to the freelist.
1703 (bitmap_list_insert_element_after): Add defaulted param for
1704 an already allocated element.
1705 (bitmap_ior_into_and_free): New function.
1706 * tree-ssa-structalias.c (condense_visit): Reduce the
1707 ponts-to and edge bitmaps of the SCC members in a
1708 logarithmic fashion rather than all to one.
1710 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
1712 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
1713 parameter. When nonnull, make sure that the addition or subtraction
1714 has the same condition.
1715 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
1716 for CFN_COND_MUL too.
1718 2019-07-30 Richard Biener <rguenther@suse.de>
1720 PR tree-optimization/91291
1721 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
1724 2019-07-30 Jakub Jelinek <jakub@redhat.com>
1727 * omp-low.c (global_nonaddressable_vars): New variable.
1728 (use_pointer_for_field): For global decls, if they are non-addressable,
1729 remember it in the global_nonaddressable_vars bitmap, if they are
1730 addressable and in the global_nonaddressable_vars bitmap, ignore their
1731 TREE_ADDRESSABLE bit.
1732 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
1733 vars in global_nonaddressable_vars bitmap.
1734 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
1737 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
1738 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
1739 comparison to unsigned HOST_WIDE_INT before shifting it left.
1741 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
1743 * config/i386/i386.md (movstrict<mode>): Use register_operand
1744 predicate for operand 0. Add expander condition. Assert that
1745 operand 0 is a SUBREG RTX.
1746 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
1747 Update operand constraints and insn condition.
1748 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
1749 (zero_extendqihi2_and): Do not call gen_movstrictqi.
1750 (*setcc_qi_slp): Use register_operand predicate for operand 0.
1751 Update operand 0 constraints.
1752 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
1754 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1756 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
1757 when -m{code,data}-region are used without -mlarge.
1758 * config/msp430/msp430.c (msp430_option_override): Error when a
1759 non-default code or data region is used without -mlarge.
1760 (msp430_section_attr): Emit a warning and do not add upper/lower/either
1761 attributes when they are used without -mlarge.
1763 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1766 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
1768 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1771 * wide-int.h (generic_wide_int::sext_elt): New function.
1772 * inchash.h (hash::add_wide_int): Use it instead of elt.
1774 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1776 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
1778 * config/arm/arm.md (<crc_variant>): Rename to...
1779 (arm_<crc_variant>): ... This.
1780 (<cdp>): Rename to...
1781 (arm_<cdp>): ... This.
1782 (<ldc>): Rename to...
1783 (arm_<ldc>): ... This.
1784 (<stc>): Rename to...
1785 (arm_<stc>): ... This.
1786 (<mcr>): Rename to...
1787 (arm_<mcr>): ... This.
1788 (<mrc>): Rename to...
1789 (arm_<mrc>): ... This.
1790 (<mcrr>): Rename to...
1791 (arm_<mcrr>): ... This.
1792 (<mrrc>): Rename to...
1793 (arm_<mrrc>): ... This.
1795 2019-07-29 Richard Biener <rguenther@suse.de>
1797 PR tree-optimization/91257
1798 * tree-ssa-sccvn.h (struct vn_avail): New.
1799 (struct vn_ssa_aux): Add avail member.
1800 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
1801 member, add m_avail_freelist one.
1802 (rpo_elim::~rpo_elim): Remove.
1803 (rpo_elim::eliminate_avail): Adjust to new avail tracking
1805 (rpo_elim::eliminate_push_avail): Likewise.
1806 (do_unwind): Likewise.
1807 (do_rpo_vn): Likewise.
1809 2019-07-29 Richard Biener <rguenther@suse.de>
1811 PR tree-optimization/91257
1812 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
1813 most cases, instead call compare_values which handles the
1814 symbolic ranges we handle specially.
1815 (compare_values_warnv): Do not call operand_less_p but open-code
1816 the effective fold calls. Avoid converting so much.
1818 2019-07-29 Martin Liska <mliska@suse.cz>
1820 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
1821 remove LHS of operator new call. It's handled latter.
1823 2019-07-29 Richard Biener <rguenther@suse.de>
1825 PR tree-optimization/91267
1826 * vr-values.c (vr_values::update_value_range): Add early return
1827 for effectively VARYING lattice entry.
1829 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1832 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
1833 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
1834 necessary if keep_all_vdefs_p is true.
1835 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
1836 that keep_all_vdefs_p is false.
1837 (mark_all_reaching_defs_necessary): Likewise.
1838 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
1840 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1842 * common.opt (Og): Change the initial value of flag_dse to 0.
1843 * opts.c (default_options_table): Move OPT_ftree_dse from
1844 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
1845 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
1846 entry before the OPT_ftree_sra entry.
1847 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
1848 of flags disabled by Og.
1850 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1852 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
1855 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1857 * doc/sourcebuild.texi (check-function-bodies): Document.
1859 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1861 * simplify-rtx.c (simplify_const_unary_operation): Fold a
1862 VEC_DUPLICATE of a fixed-length vector even if the result
1863 is variable-length. Likewise fold a duplicate of a
1864 variable-length vector if the variable-length vector is
1865 itself a duplicate of a fixed-length sequence.
1866 (test_vector_ops_duplicate): Test more cases.
1868 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
1870 * vector-builder.h (vector_builder): Add a shape template parameter.
1871 (vector_builder::new_unary_operation): New function, generalizing
1872 the old tree_vector_builder function.
1873 (vector_builder::new_binary_operation): Likewise.
1874 (vector_builder::binary_encoded_nelts): Likewise.
1875 * int-vector-builder.h (int_vector_builder): Update template
1876 parameters to vector_builder.
1877 (int_vector_builder::shape_nelts): New function.
1878 * rtx-vector-builder.h (rtx_vector_builder): Update template
1879 parameters to vector_builder.
1880 (rtx_vector_builder::shape_nelts): New function.
1881 (rtx_vector_builder::nelts_of): Likewise.
1882 (rtx_vector_builder::npatterns_of): Likewise.
1883 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
1884 * tree-vector-builder.h (tree_vector_builder): Update template
1885 parameters to vector_builder.
1886 (tree_vector_builder::shape_nelts): New function.
1887 (tree_vector_builder::nelts_of): Likewise.
1888 (tree_vector_builder::npatterns_of): Likewise.
1889 (tree_vector_builder::nelts_per_pattern_of): Likewise.
1890 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
1891 (tree_vector_builder::new_binary_operation): Delete.
1892 (tree_vector_builder::binary_encoded_nelts): Likewise.
1893 * simplify-rtx.c: Include rtx-vector-builder.h.
1894 (distributes_over_addition_p): New function.
1895 (simplify_const_unary_operation)
1896 (simplify_const_binary_operation): Generalize handling of vector
1897 constants to include variable-length vectors.
1898 (test_vector_ops_series): Add more tests.
1900 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
1903 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
1904 than INDENTIFIER_POINTER.
1906 2019-07-28 Martin Liska <mliska@suse.cz>
1909 * cgraph.c (symbol_table::create_edge): Always allocate
1911 (symbol_table::free_edge): Store summary_id to
1912 edge_released_summary_ids if != -1;
1913 * cgraph.h (NEXT_FREE_NODE): Remove.
1914 (SET_NEXT_FREE_NODE): Likewise.
1915 (NEXT_FREE_EDGE): Likewise.
1916 (symbol_table::release_symbol): Store summary_id to
1917 cgraph_released_summary_ids if != -1;
1918 (symbol_table::allocate_cgraph_symbol): Always allocate
1921 2019-07-28 Alan Modra <amodra@gmail.com>
1923 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
1926 2019-07-28 Alan Modra <amodra@gmail.com>
1929 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
1931 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
1932 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
1933 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
1935 2019-07-28 Alan Modra <amodra@gmail.com>
1938 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
1939 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
1940 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
1941 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
1942 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
1943 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
1944 in asm_default spec.
1945 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
1946 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
1948 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
1950 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
1952 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1955 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
1956 * config/aarch64/aarch64-option-extensions.def: Add new comments
1957 and restore easier to read options.
1959 2019-07-26 Tamar Christina <tamar.christina@arm.com>
1961 * convert.c (convert_to_real_1): Move part of conversion code...
1962 * match.pd: ...To here.
1964 2019-07-26 Martin Jambor <mjambor@suse.cz>
1967 * ipa-inline-transform.c (check_speculations_1): New function.
1968 (push_all_edges_in_set_to_vec): Likewise.
1969 (check_speculations): Use check_speculations_1, new parameter
1971 (inline_call): Pass new_edges to check_speculations.
1972 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
1974 (speculation_useful_p): Early return true if edge is inlined, remove
1975 later checks for inline_failed.
1977 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
1979 PR rtl-optimization/91223
1980 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
1981 matching with INOUT operand.
1983 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1985 * stmt.c (expand_case): Try to narrow the index type if it's larger
1986 than a word. Tidy up.
1988 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
1990 * cif-code.def (NEVER_CALL): New code.
1991 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
1992 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
1994 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
1996 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
1997 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1999 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2001 * ipa-devirt.c (add_type_duplicate): Fix return value.
2003 2019-07-25 Richard Biener <rguenther@suse.de>
2005 * tree-vrp.c (extract_range_from_multiplicative_op): Add
2006 type parameter and use it instead of guessing expression
2007 type from the first operand.
2008 (extract_range_from_binary_expr): Pass expr_type down.
2010 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2012 * config/arm/arm.md (SATrev): Change to code attribute.
2013 (*satsi_<SAT:code>): Adjust for the above.
2014 (*satsi_<SAT:code>_shift): Likewise.
2016 2019-07-25 Richard Biener <rguenther@suse.de>
2018 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
2019 Make value_range * temporary const.
2020 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
2022 (evrp_range_analyzer::record_ranges_from_): Likewise.
2023 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
2024 deal with having recorded a const one.
2025 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
2026 Return a const value_range *.
2027 (evrp_range_analyzer::pop_value_range): Likewise.
2028 (evrp_range_analyzer::stack): Record const value_range *s.
2029 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
2031 * gimple-ssa-sprintf.c (get_int_range): Likewise.
2032 (format_integer): Likewise.
2033 (sprintf_dom_walker::handle_gimple_call): Likewise.
2034 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
2035 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
2036 (vrp_prop::get_value_range): Adjust.
2037 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
2038 modifying the lattice in-place.
2039 (vrp_prop::visit_stmt): Likewise.
2040 * vr-values.c (vr_values::get_lattice_entry): New private method.
2041 (vr_values::get_value_range): Wrap it and return a const
2043 (vr_values::set_def_to_varying): New.
2044 (vr_values::set_defs_to_varying): Use it.
2045 (vr_values::update_value_range): Likewise.
2046 (vr_values::vrp_stmt_computes_nonzero): Adjust.
2047 (values::op_with_constant_singleton_va): Likewise.
2048 (vr_values::extract_range_for_var_from_co): Likewise.
2049 (vr_values::extract_range_from_ssa_name): Likewise.
2050 (vr_values::extract_range_from_cond_expr): Likewise.
2051 (vr_values::extract_range_basic): Likewise.
2052 (compare_ranges): Take const value_range *, adjust.
2053 (compare_range_with_value): Likewise.
2054 (vrp_valueize): Adjust.
2055 (vrp_valueize_1): Likewise.
2056 (vr_values::get_vr_for_comparison): Return a const value_range *.
2057 (vr_values::compare_name_with_value): Adjust.
2058 (vr_values::compare_names): Likewise.
2059 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2061 (vr_values::vrp_evaluate_conditional): Likewise.
2062 (find_case_label_ranges): Take a const value_range *.
2063 (vr_values::vrp_visit_switch_stmt): Adjust.
2064 (vr_values::extract_range_from_phi_node): Likewise.
2065 (vr_values::simplify_div_or_mod_using_ran): Likewise.
2066 (vr_values::simplify_abs_using_ranges): Likewise.
2067 (test_for_singularity): Take a const value_range *.
2068 (range_fits_type_p): Likewise.
2069 (vr_values::simplify_cond_using_ranges_1): Adjust.
2070 (vr_values::simplify_cond_using_ranges_2): Likewise.
2071 (vr_values::simplify_switch_using_ranges): Likewise.
2072 (vr_values::simplify_float_conversion_usi): Likewise.
2073 (vr_values::two_valued_val_range_p): Likewise.
2074 * vr-values.h (vr_values::get_value_range): Return a const
2076 (vr_values::set_def_to_varying): New.
2077 (vr_values::get_lattice_entry): New private method.
2078 (vr_values::get_vr_for_comparison): Return a const value_range *.
2080 2019-07-25 Martin Liska <mliska@suse.cz>
2081 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
2084 * common.opt: Add -fallocation-dce
2085 * gimple.c (gimple_call_operator_delete_p): New.
2086 * gimple.h (gimple_call_operator_delete_p): Likewise.
2087 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
2088 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2089 DECL_IS_OPERATOR_DELETE_P.
2090 (mark_all_reaching_defs_necessary_1): Likewise.
2091 (propagate_necessity): Likewise.
2092 (eliminate_unnecessary_stmts): Handle
2093 gimple_call_operator_delete_p.
2094 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
2095 Add packing of OPERATOR_DELETE.
2096 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
2098 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
2099 (DECL_SET_IS_OPERATOR_DELETE): New.
2100 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
2102 2019-07-25 Martin Liska <mliska@suse.cz>
2104 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
2105 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
2106 * coverage.c (coverage_begin_function): Likewise.
2107 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
2108 * gimple.c (gimple_call_nonnull_result_p): Likewise.
2109 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
2110 (sem_item::hash_referenced_symbol_properties): Likewise.
2111 * lto-streamer-out.c (hash_tree): Likewise.
2112 * predict.c (expr_expected_value_1): Likewise.
2113 * tree-inline.c (expand_call_inline): Likewise.
2114 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2115 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2116 * tree-core.h (enum function_decl_type): New enum.
2117 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
2118 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
2119 (set_function_decl_type): Likewise.
2120 (DECL_IS_OPERATOR_NEW_P): New.
2121 (DECL_SET_IS_OPERATOR_NEW): Likewise.
2122 (DECL_LAMBDA_FUNCTION): Likewise.
2123 (DECL_LAMBDA_FUNCTION_P): Likewise.
2124 (DECL_IS_OPERATOR_NEW): Remove.
2125 (DECL_SET_LAMBDA_FUNCTION): Likewise.
2127 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
2129 * ipa-profile.c (get_most_common_single_value): Use
2130 get_nth_most_common_value.
2131 * profile.c (sort_hist_value): New function.
2132 (compute_value_histograms): Call sort_hist_value to sort the
2133 values after loading from disk.
2134 * value-prof.c (get_most_common_single_value): Rename to ...
2135 get_nth_most_common_value. Add input params n, return
2136 the n_th value and count.
2137 (gimple_divmod_fixed_value_transform): Use
2138 get_nth_most_common_value.
2139 (gimple_ic_transform): Likewise.
2140 (gimple_stringops_transform): Likewise.
2141 * value-prof.h (get_most_common_single_value): Add input params
2144 2019-07-25 Richard Biener <rguenther@suse.de>
2146 PR tree-optimization/91236
2147 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2148 size of CONSTRUCTOR write. Fix buffer size we pass to
2151 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2153 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
2154 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
2157 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2159 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
2160 explicitly disabled with --disable-initfini-array.
2162 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2164 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
2167 2019-07-24 Martin Sebor <msebor@redhat.com>
2169 PR tree-optimization/91183
2170 PR tree-optimization/86688
2171 * builtins.c (compute_objsize): Handle MEM_REF.
2172 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
2173 (get_min_string_length): Remove.
2174 (count_nonzero_bytes): New function.
2175 (handle_char_store): Rename...
2176 (handle_store): to this. Handle multibyte stores via integer types.
2177 (strlen_check_and_optimize_stmt): Adjust conditional and the called
2180 2019-07-24 Martin Sebor <msebor@redhat.com>
2183 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
2184 (diagnostic_report_diagnostic): Same.
2185 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
2186 (diagnostic_context::lang_mask): New data member.
2187 * ipa-pure-const.c (suggest_attribute): Use
2188 lang_hooks.option_lang_mask ().
2189 * opts-common.c (option_enabled): Handle new argument.
2190 (get_option_state): Pass an additional argument.
2191 * opts.c (print_filtered_help): Print supported languages for
2192 unsupported options. Adjust printing of current state.
2193 * opts.h (option_enabled): Add argument.
2194 * toplev.c (print_switch_values): Use lang_mask.
2195 (general_init): Set global_dc->lang_mask.
2197 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2200 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
2202 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
2204 * cgraphunit.c (symbol_table::compile): Start and stop
2205 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
2206 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
2208 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
2210 * gimplify.c (flag_instrument_functions_exclude_p): Include
2211 namespace/class information in the printable name.
2212 * opts.c (add_comma_separated_to_vector): Add NUL terminator
2213 to tokens entered into the vector.
2215 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
2217 * tree-nested.c (build_simple_mem_ref_notrap): New function.
2218 (get_static_chain): Call it instead of build_simple_mem_ref.
2219 (get_frame_field): Likewise.
2220 (get_nonlocal_debug_decl): Likewise.
2221 (convert_nonlocal_reference_op): Likewise.
2223 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
2225 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
2227 (arc_compute_frame_size): Millicode is disabled when compiling
2229 (arc_return_address_register): Likewise.
2230 (arc_compute_function_type): Likewise.
2231 (arc_compute_frame_size): Likewise.
2232 (secondary_reload_info): Likewise.
2233 (arc_get_unalign): Likewise.
2234 (arc_can_use_return_insn): Declare.
2235 * config/arc/arc.c (AUX_LP_START): Define
2236 (AUX_LP_END): Likewise.
2237 (arc_frame_info): Update gmask member to 64-bit datum.
2238 (GMASK_LEN): Update.
2239 (arc_compute_function_type): Make it static, move it forward.
2240 (arc_must_save_register): Update, consider the extra regs.
2241 (arc_compute_millicode_save_restore_regs): Update to use the 64
2243 (arc_compute_frame_size): Likewise.
2244 (arc_enter_leave_p): Likewise.
2245 (arc_save_callee_saves): Likewise.
2246 (arc_restore_callee_saves): Likewise.
2247 (arc_save_callee_enter): Likewise.
2248 (arc_restore_callee_leave): Likewise.
2249 (arc_save_callee_milli): Likewise.
2250 (arc_restore_callee_milli): Likewise.
2251 (arc_expand_prologue): Add new interrupt handling.
2252 (arc_return_address_register): Make it static, move it forward.
2253 (arc_expand_epilogue): Add new interrupt handling.
2254 (arc_get_unalign): Delete.
2255 (arc_epilogue_uses): Make sure we do not remove the extra
2256 saved/restored registers when interrupt.
2257 (arc_can_use_return_insn): New function.
2258 (push_reg): Likewise.
2259 (pop_reg): Likewise.
2260 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
2262 (arc_restore_callee_saves): Likewise, but restoring.
2263 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
2264 (R33_REG): Likewise.
2265 (R34_REG): Likewise.
2266 (R35_REG): Likewise.
2267 (R36_REG): Likewise.
2268 (R37_REG): Likewise.
2269 (R38_REG): Likewise.
2270 (R39_REG): Likewise.
2271 (R45_REG): Likewise.
2272 (R46_REG): Likewise.
2273 (R47_REG): Likewise.
2274 (R48_REG): Likewise.
2275 (R49_REG): Likewise.
2276 (R50_REG): Likewise.
2277 (R51_REG): Likewise.
2278 (R52_REG): Likewise.
2279 (R53_REG): Likewise.
2280 (R54_REG): Likewise.
2281 (R55_REG): Likewise.
2282 (R56_REG): Likewise.
2283 (R58_REG): Likewise.
2284 (type): Add rtie attribute.
2285 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
2286 (movsi_insn): Accept moves to lp_count.
2287 (rtie): Update pattern.
2288 (simple_return): Simplify it, don't use this pattern as a return
2290 (arc600_rtie): New pattern.
2291 (p_return_i): Clean up.
2293 * config/arc/builtins.def (rtie): Only available for non ARC6xx
2295 * config/arc/predicates.md (move_src_operand): Consider lp_count
2298 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
2300 * config/s390/predicates.md (addv_const_operand): New predicate.
2301 * config/s390/s390-modes.def (CCO): New condition code mode.
2302 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
2303 (s390_branch_condition_mask): Likewise.
2304 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
2305 ("mulv<mode>4"): New expanders.
2306 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
2307 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
2308 pattern definitions.
2310 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2313 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
2314 (define_predicates): Add entry for uniform_vector_p.
2315 (vec_same_elem_p): New match pattern.
2317 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
2320 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
2321 * config/i386/darwin32-biarch.h .. to here.
2322 * config/i386/darwin64-biarch.h: Adjust comments.
2323 * config/rs6000/darwin32-biarch.h: Likewise.
2324 * config/rs6000/darwin64-biarch.h: Likewise.
2325 * config.gcc: Missed commit from r273746
2326 (*-*-darwin*): Don't include CPU t-darwin here.
2327 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2328 an error message if i686-darwin configuration is attempted for
2331 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
2334 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
2335 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
2336 an error message if i686-darwin configuration is attempted for
2338 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
2339 (powerpc-*-darwin*): Use biarch files where needed.
2340 (powerpc64-*-darwin*): Likewise.
2341 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
2342 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2344 * config/i386/darwin32-biarch.h: New.
2345 * config/i386/darwin64.h: Rename.
2346 * config/i386/darwin64-biarch.h: To this.
2347 * config/i386/t-darwin: Rename.
2348 * config/i386/t-darwin32-biarch: To this.
2349 * config/i386/t-darwin64: Rename.
2350 * config/i386/t-darwin64-biarch: To this.
2351 * config/rs6000/darwin32-biarch.h: New.
2352 * config/rs6000/darwin64.h: Rename.
2353 * config/rs6000/darwin64-biarch.h: To this.
2354 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
2356 * config/rs6000/t-darwin8: Rename.
2357 * config/rs6000/t-darwin32-biarch: To this.
2358 * config/rs6000/t-darwin64 Rename.
2359 * config/rs6000/t-darwin64-biarch: To this.
2361 2019-07-23 Martin Sebor <msebor@redhat.com>
2363 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
2365 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2367 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
2368 (rh): New alias for it.
2370 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
2372 * gdbhooks.py: Pass replace=True to
2373 gdb.printing.register_pretty_printer.
2375 2019-07-23 Richard Biener <rguenther@suse.de>
2378 * lto-streamer-in.c (input_function): Drop inline-entry markers
2379 that ended up with an unknown location block.
2381 2019-07-23 Richard Biener <rguenther@suse.de>
2383 PR tree-optimization/83518
2384 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
2385 init from a constant even when partial defs are already recorded.
2387 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2389 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
2390 * config/i386/znver1.md: Enable patterns for znver2 and add store
2391 variants which use extra AGU unit.
2393 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2395 * config/i386/i386-options.c (ix86_option_override_internal): Default
2396 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
2397 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
2400 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
2402 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
2403 (znver2_costs): Update 256 bit SSE costs and multiplication.
2405 2019-07-23 Jan Beulich <jbeulich@suse.com>
2407 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
2408 Require only AVX512F.
2409 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
2410 alternative expanding to vpternlog.
2412 2019-07-23 Martin Liska <mliska@suse.cz>
2414 * dwarf2out.c (gen_producer_string): Canonize -flto=N
2415 to -flto in dwarf producer string.
2417 2019-07-23 Richard Biener <rguenther@suse.de>
2419 * tree-cfg.c (label_for_bb): Remove global var.
2420 (main_block_label): Take label_for_bb as argument.
2421 (cleanup_dead_labels_eh): Likewise, adjust.
2422 (cleanup_dead_labels): Adjust.
2424 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2426 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
2427 Configurations): Add documentation for __builtin_mtfsf.
2429 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
2431 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
2432 * config/riscv/riscv.c (riscv_constant_alignment): Use
2433 riscv_align_data_type.
2434 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
2435 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2436 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
2437 * config/riscv/riscv.opt (malign-data): New.
2438 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
2440 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
2442 * cgraph.c (dump_graphviz): New function.
2443 * cgraph.h (dump_graphviz): New function.
2444 * symtab.c (dump_graphviz): New function.
2446 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
2448 * config/aarch64/aarch64-simd.md
2449 (*aarch64_simd_sra<mode>): New.
2450 * config/aarch64/iterators.md
2451 (SHIFTRT): New iterator.
2452 (sra_op): New attribute.
2454 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2456 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
2457 callee-saved regs R4->R10 in an interrupt function that calls another
2460 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
2462 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
2463 (_mm_blendv_epi8): New.
2465 2019-07-22 Richard Biener <rguenther@suse.de>
2467 PR tree-optimization/91221
2468 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
2469 restrict partial-def handling of empty constructors and
2470 memset to refs with known offset.
2472 2019-07-22 Jan Beulich <jbeulich@suse.com>
2474 * config/i386/sse.md (ternlogsuffix): New.
2475 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
2477 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
2479 2019-07-22 Martin Liska <mliska@suse.cz>
2481 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
2483 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
2485 2019-07-22 Martin Liska <mliska@suse.cz>
2487 * lto-section-in.c (lto_get_section_data):
2488 Use new function get_compression.
2489 * lto-streamer-out.c (produce_lto_section): Use
2490 set_compression to encode compression algorithm.
2491 * lto-streamer.h (struct lto_section): Do not
2492 use bitfields in the format.
2494 2019-07-22 Martin Liska <mliska@suse.cz>
2497 * opts-common.c (decode_cmdline_option): Decode
2498 argument of -Werror and check it for a wrong language.
2499 * opts-global.c (complain_wrong_lang): Remove such case.
2501 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
2503 * config/arc/arc.c (prepare_move_operands): Always use an
2504 intermediate register when storing a TLS symbols.
2506 2019-07-22 Stafford Horne <shorne@gmail.com>
2508 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
2511 2019-07-22 Stafford Horne <shorne@gmail.com>
2513 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
2514 and munordered-float validations.
2515 * config/or1k/constraints.md (d): New register constraint.
2516 * config/or1k/predicates.md (fp_comparison_operator): New.
2517 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
2519 (or1k_expand_compare): Normalize unordered comparisons.
2520 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
2521 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
2522 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
2523 * config/or1k/or1k.md (type): Add fpu.
2524 (fpu): New instruction reservation.
2525 (F, f, fr, fi, FI, FOP, fop): New.
2526 (<fop><F:mode>3): New ALU instruction definition.
2527 (float<fi><F:mode>2): New conversion instruction definition.
2528 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
2529 (fpcmpcc): New code iterator.
2530 (*sf_fp_insn): New instruction definition.
2531 (cstore<F:mode>4): New expand definition.
2532 (cbranch<F:mode>4): New expand definition.
2533 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
2534 munordered-float): New options.
2535 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
2538 2019-07-22 Stafford Horne <shorne@gmail.com>
2540 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
2541 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
2542 documenation to be more clear.
2543 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
2545 * config/or1k/or1k.opt (mrori): New option.
2546 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
2547 msfimm, mshftimm): Rewrite documentation to be more clear.
2548 * config/or1k/or1k.md (insn_support): Add ror and rori.
2549 (enabled): Add conditions for ror and rori.
2550 (rotrsi3): Replace condition for shftimm with ror and rori.
2552 2019-07-22 Stafford Horne <shorne@gmail.com>
2555 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
2556 (extend<mode>si2): Update predicate.
2557 * config/or1k/predicates.md (volatile_mem_operand): New.
2558 (reg_or_mem_operand): New.
2560 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
2562 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
2563 * config/rs6000/rs6000-call.c: ... to here.
2565 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2567 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
2570 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2572 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
2574 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2576 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
2578 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2580 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
2581 (any_memory_operand): New predicate.
2582 (reg_or_mem_operand): Use it.
2584 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2587 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
2589 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
2591 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
2592 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
2594 2019-07-20 Jakub Jelinek <jakub@redhat.com>
2596 * tree.def (OMP_LOOP): New tree code.
2597 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
2598 (enum omp_clause_bind_kind): New enum.
2599 (struct tree_omp_clause): Add subcode.bind_kind.
2600 * tree.h (OMP_LOOP_CHECK): Rename to ...
2601 (OMP_LOOPING_CHECK): ... this.
2602 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2603 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
2604 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
2605 (OMP_CLAUSE_BIND_KIND): Define.
2606 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
2607 bind clause entries.
2608 (walk_tree_1): Handle OMP_CLAUSE_BIND.
2609 * tree-pretty-print.c (dump_omp_clause): Likewise.
2610 (dump_generic_node): Handle OMP_LOOP.
2611 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
2612 (in_omp_construct): New variable.
2613 (is_gimple_stmt): Handle OMP_LOOP.
2614 (gimplify_scan_omp_clauses): For lastprivate don't set
2615 check_non_private if code == OMP_LOOP. For reduction clause
2616 on OMP_LOOP combined with parallel or teams propagate as shared
2617 on the combined construct. Handle OMP_CLAUSE_BIND.
2618 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
2619 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
2620 for constructs from a loop construct to gimplify_scan_omp_clauses.
2621 Don't predetermine iterator linear on OMP_SIMD from loop construct.
2622 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
2623 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
2624 to match the implicit ORT_TARGET construct around whole body.
2625 Temporarily clear in_omp_construct when processing body.
2626 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
2627 etc. temporarily set in_omp_construct when processing body.
2628 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
2629 * omp-low.c (struct omp_context): Add loop_p.
2630 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
2631 in that the original var might be private.
2632 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
2633 (check_omp_nesting_restrictions): Adjust nesting restrictions for
2634 addition of loop construct.
2635 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
2637 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
2638 lastprivate non-addressable iterator of a collapse(1) simd.
2640 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
2642 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
2645 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
2647 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
2648 refer to default conditions. Warn for the 'y' spec which is ignored
2651 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
2653 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
2654 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2655 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2656 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2657 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2658 init_cumulative_args, rs6000_promote_function_mode,
2659 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2660 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2661 rs6000_function_arg_boundary, rs6000_parm_offset,
2662 rs6000_parm_start, rs6000_arg_size,
2663 rs6000_darwin64_record_arg_advance_flush,
2664 rs6000_darwin64_record_arg_advance_recurse,
2665 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2666 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2667 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2668 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2669 rs6000_finish_function_arg, rs6000_function_arg,
2670 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2671 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2672 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2673 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2674 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2675 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2676 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2677 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2678 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2679 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2680 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2681 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2682 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2683 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2684 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2685 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2686 get_element_number, altivec_expand_vec_set_builtin,
2687 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2688 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2689 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2690 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2691 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2692 rs6000_expand_builtin, rs6000_vector_type,
2693 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2694 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2695 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
2697 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
2698 cpu_supports_info, builtin_hash_struct, builtin_hasher,
2699 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
2700 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
2701 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
2702 init_cumulative_args, rs6000_promote_function_mode,
2703 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
2704 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
2705 rs6000_function_arg_boundary, rs6000_parm_offset,
2706 rs6000_parm_start, rs6000_arg_size,
2707 rs6000_darwin64_record_arg_advance_flush,
2708 rs6000_darwin64_record_arg_advance_recurse,
2709 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
2710 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
2711 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
2712 rs6000_mixed_function_arg, rs6000_psave_function_arg,
2713 rs6000_finish_function_arg, rs6000_function_arg,
2714 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
2715 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
2716 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
2717 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
2718 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
2719 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
2720 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
2721 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
2722 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
2723 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
2724 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
2725 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
2726 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
2727 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
2728 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
2729 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
2730 get_element_number, altivec_expand_vec_set_builtin,
2731 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
2732 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
2733 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
2734 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
2735 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
2736 rs6000_expand_builtin, rs6000_vector_type,
2737 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
2738 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
2739 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
2740 to here from rs6000.c.
2741 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
2742 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
2743 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
2744 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
2745 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
2746 rs6000_return_in_memory, rs6000_return_in_msb,
2747 rs6000_pass_by_reference, setup_incoming_varargs,
2748 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
2749 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
2750 rs6000_function_arg_padding, rs6000_function_arg,
2751 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
2752 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
2753 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
2754 rs6000_passes_long_double, rs6000_passes_vector,
2755 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
2756 altivec_builtin_mask_for_load) Add declarations.
2757 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
2758 * config/config.gcc: Add new source file rs6000-call.c to garbage
2759 collector and extra_objs.
2761 2019-07-19 Jeff Law <law@redhat.com>
2763 PR tree-optimization/86061
2764 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
2765 strncpy. Drop some trivial dead code.
2766 (maybe_trim_memstar_call): Handle strncpy.
2768 2019-07-19 Richard Biener <rguenther@suse.de>
2770 PR tree-optimization/91211
2771 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
2772 memset encoding size.
2774 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
2777 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
2779 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
2782 * ipa-inline.c (recursive_inlining): Fix limits check.
2784 2019-07-19 Richard Biener <rguenther@suse.de>
2786 PR tree-optimization/91200
2787 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
2788 no PHI nodes in middle-bb.
2790 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
2792 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
2794 * config/aarch64/aarch64-option-extensions.def: Likewise.
2796 2019-07-19 Jakub Jelinek <jakub@redhat.com>
2799 * function.c (insert_temp_slot_address): Store into the hash table
2800 a copy of address to avoid RTL sharing issues.
2802 2019-07-19 Richard Biener <rguenther@suse.de>
2804 PR tree-optimization/91207
2806 2019-07-17 Richard Biener <rguenther@suse.de>
2808 PR tree-optimization/91178
2809 * tree-vect-stmts.c (get_group_load_store_type): For SLP
2810 loads with a gap larger than the vector size always use
2812 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
2813 avoid loading vectors that are only contained in the gap
2814 and thus are not needed.
2816 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2818 * config/i386/i386.md (*addqi_2_slp): Remove.
2819 (*<code>qi_2_slp): Ditto.
2821 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
2823 * config/rs6000/predicates.md (prefixed_mem_operand): Call
2824 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
2825 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
2826 Rename function from rs6000_prefixed_address.
2827 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2829 (TARGET_TOC): Likewise.
2830 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2832 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2834 (TARGET_TOC): Likewise.
2835 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2837 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2839 (TARGET_TOC): Likewise.
2840 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2841 check to require -mcmodel=medium for pc-relative addressing.
2842 (create_TOC_reference): Add assertion for TARGET_TOC.
2843 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
2845 (rs6000_emit_move): Likewise.
2846 (TOC_alias_set): Rename TOC alias set static variable from 'set'
2848 (get_TOC_alias_set): Likewise.
2849 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
2851 (rs6000_can_eliminate): Likewise.
2852 (rs6000_prefixed_address_mode_p): Rename function from
2853 rs6000_prefixed_address.
2854 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
2855 TARGET_HAS_TOC and not pc-relative.
2856 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
2857 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
2859 (TARGET_TOC): Likewise.
2860 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
2863 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
2866 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
2867 for operand 0. Do not use (match_dup) to match operand 1 with
2868 operand 0. Add check in insn constraint that either input operand
2869 matches operand 0. Use SWI12 mode iterator to also handle
2871 (*and<mode>_1_slp): Ditto.
2872 (*<code>qi_1_slp): Ditto.
2873 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
2874 Do not use (match_dup) to match operand 1 with operand 0. Add
2875 check in insn constraint that operand 1 matches operand 0.
2876 Use SWI12 mode iterator to also handle HImode operands.
2877 (*ashl<mode>3_1_slp): Ditto.
2878 (*<shift_insn><mode>3_1_slp): Ditto.
2879 (*<rotate_insn><mode>3_1_slp): Ditto.
2881 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2883 * config/arm/arm-builtins.c
2884 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
2885 (arm_expand_unop_builtin): Likewise.
2886 * config/arm/crypto.md
2887 (crypto_sha1h): Convert from define_insn to define_expand.
2888 (crypto_<crypto_pattern>): Likewise.
2889 (crypto_sha1h_lb): New define_insn.
2890 (crypto_<crypto_pattern>_lb): Likewise.
2892 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
2895 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
2896 (vsha1cq_u32): Likewise.
2897 (vsha1pq_u32): Likewise.
2898 (vsha1mq_u32): Likewise.
2899 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
2901 (crypto_sha1c): Correct vec select.
2902 (crypto_sha1m): Likewise.
2903 (crypto_sha1p): Likewise.
2905 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
2907 * config/arm/predicates.md (arm_borrow_operation): New predicate.
2908 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
2909 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
2910 (subdi_zesidi_zesidi): Likewise.
2911 (negdi2_compare, negdi2_insn): Likewise.
2912 (negdi_extensidi): Likewise.
2913 (negdi_zero_extendsidi): Likewise.
2914 (arm_cmpdi_insn): Likewise.
2915 (subsi3_carryin): Use arm_borrow_operation.
2916 (subsi3_carryin_const): Likewise.
2917 (subsi3_carryin_const0): Likewise.
2918 (subsi3_carryin_compare): Likewise.
2919 (subsi3_carryin_compare_const): Likewise.
2920 (subsi3_carryin_compare_const0): Likewise.
2921 (subsi3_carryin_shift): Likewise.
2922 (rsbsi3_carryin_shift): Likewise.
2923 (negsi2_carryin_compare): Likewise.
2925 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
2927 PR tree-optimization/91137
2928 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
2929 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
2930 Init, use and fini the above new field.
2931 (determine_base_object_1): New function.
2932 (determine_base_object): Reimplement using walk_tree.
2934 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
2936 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
2937 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
2938 CLEANUP_FORCE_FAST_DCE is set.
2939 * ifcvt.c (rest_of_handle_if_conversion): Pass
2940 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
2941 if-conversion succeeded.
2943 2019-07-18 Richard Biener <rguenther@suse.de>
2945 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
2946 branches to make code less indented.
2948 2019-07-17 Alexandre Oliva <oliva@adacore.com>
2951 * attribs.c (decls_mismatched_attributes): Simplify the logic
2952 that avoids duplicates and false positives.
2954 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
2956 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
2957 data into data section when generating PIC code.
2958 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
2959 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
2960 generating code for SOM targets earlier than HP-UX 11. Otherwise,
2961 return 2 for SOM and 0 for other targets.
2963 2019-07-17 Jeff Law <law@redhat.com>
2965 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
2966 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
2967 avoid unexpected switch statement fallthru.
2969 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
2971 * config/i386/i386.md (*add<dwi>3_doubleword):
2972 Remove redundant constraints.
2973 (*add<mode>_1): Ditto.
2976 (*addqi_1_slp): Ditto.
2977 (*add<mode>_2): Ditto.
2978 (*addv<mode>4): Ditto.
2979 (*sub<dwi>3_doubleword): Ditto.
2980 (*sub<mode>_1): Ditto.
2981 (*subqi_1_slp): Ditto.
2982 (*sub<mode>_2): Ditto.
2983 (*subv<mode>4): Ditto.
2984 (*sub<mode>_3): Ditto.
2985 (@add<mode>3_carry): Ditto.
2986 (@sub<mode>3_carry): Ditto.
2987 (*add<mode>3_cc_overflow_1): Ditto.
2988 (*add<mode>3_zext_cc_overflow_2): Ditto.
2990 (*and<mode>_1): Ditto.
2992 (*andqi_1_slp): Ditto.
2994 (*andqi_2_maybe_si): Ditto.
2995 (*and<mode>_2): Ditto.
2996 (*andqi_2_slp): Ditto.
2997 (*<code><mode>_1): Ditto.
2998 (*<code>qi_1): Ditto.
2999 (*<code>qi_1_slp): Ditto.
3000 (*<code><mode>_2): Ditto.
3001 (*<code>qi_2_slp): Ditto.
3003 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
3005 * alias.c (record_component_aliases): Do not simplify pointed-to
3008 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
3010 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
3011 partial reg stall on alternative 2.
3013 2019-07-17 Richard Biener <rguenther@suse.de>
3015 PR tree-optimization/91178
3016 * tree-ssa.c (release_defs_bitset): Iterate from higher to
3017 lower SSA names to avoid quadratic behavior in the common case.
3018 * tree-data-ref.c (split_constant_offset): Add limit argument
3019 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3020 (split_constant_offset_1): Add limit argument and use it to
3021 limit SSA def walking. Optimize the common plus/minus case.
3023 2019-07-17 Richard Biener <rguenther@suse.de>
3025 PR tree-optimization/91178
3026 * tree-vect-stmts.c (get_group_load_store_type): For SLP
3027 loads with a gap larger than the vector size always use
3029 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
3030 avoid loading vectors that are only contained in the gap
3031 and thus are not needed.
3033 2019-07-17 Richard Biener <rguenther@suse.de>
3035 PR tree-optimization/91180
3036 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
3037 computation for memset partial defs.
3039 2019-07-17 Jakub Jelinek <jakub@redhat.com>
3041 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
3042 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
3043 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
3044 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
3045 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
3046 * omp-grid.c (grid_process_grid_body,
3047 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
3048 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
3049 == GF_OMP_FOR_KIND_SIMD.
3050 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
3051 check_omp_nesting_restrictions, scan_omp_1_stmt,
3052 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
3053 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
3054 omp_find_scan): Likewise.
3055 * omp-expand.c (expand_omp_for): Likewise.
3056 * omp-general.c (omp_extract_for_data): Likewise.
3058 PR tree-optimization/91157
3059 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
3060 a vector boolean with scalar mode.
3061 (expand_vector_condition): Handle first operand being a vector boolean
3063 (expand_vector_operations_1): For comparisons, don't bail out early
3064 if the return type is vector boolean with scalar mode, but comparison
3065 operand type is not.
3067 2019-07-17 Richard Biener <rguenther@suse.de>
3069 PR tree-optimization/91181
3070 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
3073 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
3075 * config/i386/i386.md (*testdi_1): Match CCZmode for
3076 constants that might have the SImode sign bit set.
3077 (*testqi_1_maybe_si): Remove "!" constraint modifier.
3078 Use correct constraints for pentium pairing.
3079 (*test<mode>_1): Ditto.
3081 2019-07-16 Jeff Law <law@redhat.com>
3083 PR rtl-optimization/91173
3084 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
3085 SSA_NAME with a constant value, fold its value into the offset
3086 and clear the base before calling gen_addr_rtx.
3088 2019-07-16 Jakub Jelinek <jakub@redhat.com>
3090 PR rtl-optimization/91164
3091 * dse.c (rest_of_handle_dse): If dead edges have been purged,
3092 invalidate dominance info.
3094 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3096 * read-md.h (md_reader::record_potential_iterator_use): Add a
3097 file_location parameter.
3098 * read-rtl.c (attribute_use::loc): New field.
3099 (map_attr_string): Take a file_location parameter. Report cases
3100 in which attributes map to multiple distinct values.
3101 (apply_attribute_uses): Update call accordingly.
3102 (md_reader::handle_overloaded_name): Likewise.
3103 (md_reader::apply_iterator_to_string): Likewise. Skip empty
3105 (record_attribute_use): Take a file_location parameter.
3106 Initialize attribute_use::loc.
3107 (md_reader::record_potential_iterator_use): Take a file_location
3108 parameter. Update call to record_attribute_use.
3109 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
3110 (rtx_reader::read_rtx_code): Likewise.
3111 (rtx_reader::read_rtx_operand): Likewise. Record a location
3112 for implicitly-expanded empty strings.
3114 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3116 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
3117 Use file_location instead of separate fields.
3118 (md_reader::set_md_ptr_loc): Take a file_location instead of a
3119 separate filename and line number.
3120 * read-md.c (ptr_loc): As above.
3121 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
3122 (md_reader::fprint_md_ptr_loc): Likewise.
3123 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
3124 instead of a separate filename and line number.
3125 (md_reader::read_string): Update call accordingly.
3127 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3129 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
3130 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
3131 leaving the choice between SFDF and P implicit.
3132 (*mov<mode>_update2): Likewise.
3133 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
3134 rather than leaving the choice betweem IBM128 and GPR implicit.
3135 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
3136 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
3138 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
3139 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
3140 * config/rs6000/vsx.md
3141 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
3142 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
3143 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
3144 and VSX_EXTRACT_I implicit.
3146 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
3148 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
3149 Explicitly use <MOVEP1:MODE> for the mode attribute.
3151 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
3154 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
3156 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
3159 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
3162 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
3164 * config/i386/i386.md (@test<mode>_ccno_1):
3165 Rename from test<mode>_ccno_1.
3166 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
3167 (*testqi_1_maybe_si): Remove modrm attribute.
3168 (*test<mode>_1): Ditto.
3169 * config/i386/i386-expand.c (ix86_split_idivmod): Use
3170 gen_test_ccno_1 and gen_extend_insn.
3172 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
3174 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
3177 2019-07-15 Richard Biener <rguenther@suse.de>
3180 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
3181 node make sure to replace all uses with something valid.
3183 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
3185 PR tree-optimization/88497
3186 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
3187 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
3188 function undistribute_bitref_for_vector.
3189 (undistribute_bitref_for_vector): New function.
3190 (cleanup_vinfo_map): Likewise.
3191 (sort_by_mach_mode): Likewise.
3193 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
3195 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
3196 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
3197 and testdi_ccno_1 using SWI48 mode attribute.
3198 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
3199 x86_64_szext_general_operand.
3200 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
3201 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
3202 instead of genera_operand mode attribute.
3204 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
3206 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
3207 fopen and fclose to their respective types.
3208 (DotFn.invoke): Ditto.
3210 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
3212 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
3213 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
3214 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
3215 (array_index_predicate): Remove.
3216 (analyze_function_body): Account cost for variable ofsetted array
3218 (estimate_node_size_and_time): Do not compute array index hint.
3219 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
3220 (inline_read_section): Do not read array index hint.
3221 (ipa_fn_summary_write): Do not write array index hint.
3222 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
3223 * ipa-cp.c (hint_time_bonus): Remove.
3224 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
3225 (ipa_fnsummary): Remove array_index.
3226 * ipa-inline.c (want_inline_small_function_p): Do not use
3228 (edge_badness): Likewise.
3229 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
3231 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
3234 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
3235 superfluous "builtin function" phrasing.
3237 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
3239 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
3241 (aliasing_component_refs_walk): Break out from ...
3242 (aliasing_component_refs_p): ... here.
3244 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
3247 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
3248 "builtin function" phrasing.
3250 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3253 * recog.h (temporary_volatile_ok): New class.
3254 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
3255 volatile_ok temporarily to true using temporary_volatile_ok.
3256 * expr.c (emit_block_move_via_cpymem): Likewise.
3257 * optabs.c (maybe_legitimize_operand): Likewise.
3259 2019-07-13 Jakub Jelinek <jakub@redhat.com>
3261 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
3262 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
3263 uses inside of order(concurrent) constructs.
3264 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
3265 OMP_CLAUSE_ORDER is seen.
3266 * omp-low.c (struct omp_context): Add order_concurrent member.
3267 (scan_sharing_clauses): Set ctx->order_concurrent if
3268 OMP_CLAUSE_ORDER is seen.
3269 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
3270 of simd order(concurrent). Diagnose constructs not allowed inside of
3271 for order(concurrent).
3272 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
3273 complaining about static double setjmp (double); or class static
3274 methods or non-global namespace setjmps.
3275 (omp_runtime_api_call): New function.
3276 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
3277 order(concurrent) loops.
3279 2019-07-12 Martin Sebor <msebor@redhat.com>
3281 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
3282 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
3283 * tree-vrp.c (vrp_prop::check_mem_ref): Use
3284 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
3286 2019-07-12 Jan Hubicka <jh@suse.cz>
3288 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
3289 (indirect_refs_may_alias_p): ... here.
3290 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
3291 mem refs in the access paths.
3293 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
3295 PR tree-optimization/89430
3296 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
3297 store elimination for local variable without address escape.
3299 2019-07-12 Jeff Law <law@redhat.com>
3301 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
3302 for the ".far" section.
3304 2019-07-12 Richard Biener <rguenther@suse.de>
3306 PR tree-optimization/91145
3307 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
3310 2019-07-12 Alexandre Oliva <oliva@adacore.com>
3312 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
3313 rather than this_state as the lowering context for the ELSE
3314 seq in a GIMPLE_EH_ELSE.
3316 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3318 * vector-builder.h (vector_builder::elt): Allow already-supplied
3319 elements to be read back before building is complete.
3321 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3323 PR rtl-optimization/91136
3324 * df-core.c (ACCESSING REFS): Fix typos in comment.
3325 * resource.c (mark_target_live_reg): Add artificial defs that occur at
3326 the beginning of the block to the initial set of live registers.
3328 2019-07-12 Richard Biener <rguenther@suse.de>
3330 * fold-const.h (get_array_ctor_element_at_index): Adjust.
3331 * fold-const.c (get_array_ctor_element_at_index): Add
3332 ctor_idx output parameter informing the caller where in
3333 the constructor the element was (not) found. Add early exit
3334 for when the ctor is sorted.
3335 * gimple-fold.c (fold_array_ctor_reference): Support constant
3336 folding across multiple array elements.
3338 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
3340 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
3341 doesn't have location, set the current location to the function's end.
3343 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3345 * config/aarch64/aarch64.md (*compare_condjump<mode>)
3346 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
3347 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
3348 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
3349 * config/aarch64/aarch64-simd.md
3350 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
3351 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
3352 * config/aarch64/aarch64-sve.md
3353 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
3354 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
3356 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
3358 * doc/md.texi: Document that @ patterns can have different
3359 numbers of operands.
3360 * genemit.c (handle_overloaded_gen): Handle this case.
3361 * genopinit.c (handle_overloaded_gen): Likewise.
3362 * gensupport.c (replace_operands_with_dups): Iterate over
3363 the new rtx's format rather than the old one's.
3365 2019-07-12 Jakub Jelinek <jakub@redhat.com>
3367 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
3368 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3369 order clause entries.
3370 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
3371 * tree-pretty-print.c (dump_omp_clause): Likewise.
3372 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3374 * omp-low.c (scan_sharing_clauses): Likewise.
3375 * tree-nested.c (convert_nonlocal_omp_clauses,
3376 convert_local_omp_clauses): Likewise.
3378 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
3380 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
3381 fallthrough target of current basic block isn't the placed
3384 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
3387 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
3388 (_mm512_storeu_epi64): Likewise.
3389 (_mm512_loadu_epi32): Likewise.
3390 (_mm512_storeu_epi32): Likewise.
3391 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
3392 (_mm_storeu_epi64): Likewise.
3393 (_mm256_storeu_epi32): Likewise.
3394 (_mm_storeu_epi32): Likewise.
3396 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3398 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
3400 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
3402 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
3405 2019-07-11 Jakub Jelinek <jakub@redhat.com>
3408 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
3409 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3410 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
3411 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
3412 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
3413 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
3415 (ufix_truncv2dfv2si2<mask_name>): Change into ...
3416 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
3417 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
3419 (sse2_cvttpd2dq<mask_name>): Change into ...
3420 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
3421 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
3422 (*sse2_cvtpd2dq<mask_name>): Change into ...
3423 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
3424 Add "C" constraint to const0_operand.
3425 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
3426 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
3430 * config/i386/i386-builtin-types.def
3431 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
3432 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
3433 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
3434 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
3435 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
3436 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
3437 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
3438 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
3439 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
3440 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
3441 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
3442 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
3443 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
3444 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
3445 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
3446 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
3447 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
3448 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
3449 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
3450 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
3451 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
3452 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
3453 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
3454 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
3455 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
3456 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
3457 __builtin_ia32_vpdpbusd_v4si_maskz,
3458 __builtin_ia32_vpdpbusds_v16si_mask,
3459 __builtin_ia32_vpdpbusds_v16si_maskz,
3460 __builtin_ia32_vpdpbusds_v8si_mask,
3461 __builtin_ia32_vpdpbusds_v8si_maskz,
3462 __builtin_ia32_vpdpbusds_v4si_mask,
3463 __builtin_ia32_vpdpbusds_v4si_maskz,
3464 __builtin_ia32_vpdpwssd_v16si_mask,
3465 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
3466 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
3467 __builtin_ia32_vpdpwssd_v4si_maskz,
3468 __builtin_ia32_vpdpwssds_v16si_mask,
3469 __builtin_ia32_vpdpwssds_v16si_maskz,
3470 __builtin_ia32_vpdpwssds_v8si_mask,
3471 __builtin_ia32_vpdpwssds_v8si_maskz,
3472 __builtin_ia32_vpdpwssds_v4si_mask,
3473 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
3474 suffixed types rather than *_INT.
3475 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
3476 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
3477 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
3478 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
3479 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
3480 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
3482 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
3484 * tree-vrp.c (intersect_ranges): If we know the intersection is
3485 empty, there is no need to conservatively add anything else to
3488 2019-07-11 Richard Biener <rguenther@suse.de>
3491 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
3492 when the object is volatile and we have not cleared it even though
3493 there are no nonzero elements.
3495 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
3497 * config/rs6000/predicates.md (cint34_operand): Update
3498 SIGNED_34BIT_OFFSET_P call.
3499 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
3500 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
3501 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
3502 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
3503 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
3505 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
3506 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
3507 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
3508 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
3509 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
3511 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
3513 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
3514 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
3515 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
3516 (DEF_MIN_OSX_VERSION): New.
3518 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3520 * fold-const.c (fold_relational_const): Fix folding of
3521 vector-to-scalar NE_EXPRs.
3522 (test_vector_folding): Add more tests.
3524 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
3527 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
3528 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
3529 (vec_setv2di_internal): Reexpress as...
3530 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
3531 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
3532 rather than gen_neon_vset_lane<mode>.
3534 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
3537 * lra-constraints.c (process_alt_operands): Don't match user
3538 defined regs only if they are early clobbers.
3540 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
3542 * wide-int.h (wi::lshift): Reject negative values for the fast path.
3544 2019-07-10 Richard Biener <rguenther@suse.de>
3546 PR tree-optimization/91126
3547 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
3548 native encoding offset for BYTES_BIG_ENDIAN.
3549 (vn_reference_lookup_3): Likewise.
3551 2019-07-10 Richard Biener <rguenther@suse.de>
3553 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
3554 LHS whenever possible.
3556 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
3558 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
3559 from ...; work also on duplicated types.
3560 (nonoverlapping_component_refs_since_match): ... here
3561 (ncr_type_uid): Break out from ...
3562 (ncr_compar): ... here; look for TYPE_UID of canonical type if
3564 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
3565 the types and nonoverlapping_component_refs_p_1 to disambiguate.
3567 2019-07-09 Martin Sebor <msebor@redhat.com>
3569 PR tree-optimization/90989
3570 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
3571 optimization to just single character stores.
3573 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
3575 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
3576 Swap operands only once.
3578 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3580 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
3581 for both call instructions.
3583 2019-07-09 John Darrington <john@darrington.wattle.id.au>
3585 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
3586 rather than GET_MODE_BITSIZE to better handle partial integer modes.
3588 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
3590 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
3591 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
3592 function from rs6000-logue.c back to rs6000.c.
3593 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
3595 2019-07-09 Martin Sebor <msebor@redhat.com>
3598 * auto-profile.c: Change class-key of PODs to struct and others
3600 * basic-block.h: Same.
3601 * bitmap.c (bitmap_alloc): Same.
3603 * builtins.c (expand_builtin_prefetch): Same.
3604 (expand_builtin_interclass_mathfn): Same.
3605 (expand_builtin_strlen): Same.
3606 (expand_builtin_mempcpy_args): Same.
3607 (expand_cmpstr): Same.
3608 (expand_builtin___clear_cache): Same.
3609 (expand_ifn_atomic_bit_test_and): Same.
3610 (expand_builtin_thread_pointer): Same.
3611 (expand_builtin_set_thread_pointer): Same.
3612 * caller-save.c (setup_save_areas): Same.
3613 (replace_reg_with_saved_mem): Same.
3614 (insert_restore): Same.
3615 (insert_save): Same.
3616 (add_used_regs): Same.
3617 * cfg.c (get_bb_copy): Same.
3618 (set_loop_copy): Same.
3621 * cfgexpand.c (alloc_stack_frame_space): Same.
3622 (add_stack_var): Same.
3623 (add_stack_var_conflict): Same.
3624 (add_scope_conflicts_1): Same.
3625 (update_alias_info_with_stack_vars): Same.
3626 (expand_used_vars): Same.
3627 * cfghooks.c (redirect_edge_and_branch_force): Same.
3628 (delete_basic_block): Same.
3630 (make_forwarder_block): Same.
3631 (force_nonfallthru): Same.
3632 (duplicate_block): Same.
3633 (lv_flush_pending_stmts): Same.
3635 * cfgloop.c (flow_loops_cfg_dump): Same.
3636 (flow_loop_nested_p): Same.
3637 (superloop_at_depth): Same.
3638 (get_loop_latch_edges): Same.
3639 (flow_loop_dump): Same.
3640 (flow_loops_dump): Same.
3641 (flow_loops_free): Same.
3642 (flow_loop_nodes_find): Same.
3643 (establish_preds): Same.
3644 (flow_loop_tree_node_add): Same.
3645 (flow_loop_tree_node_remove): Same.
3646 (flow_loops_find): Same.
3647 (find_subloop_latch_edge_by_profile): Same.
3648 (find_subloop_latch_edge_by_ivs): Same.
3649 (mfb_redirect_edges_in_set): Same.
3650 (form_subloop): Same.
3651 (merge_latch_edges): Same.
3652 (disambiguate_multiple_latches): Same.
3653 (disambiguate_loops_with_multiple_latches): Same.
3654 (flow_bb_inside_loop_p): Same.
3656 (get_loop_body_with_size): Same.
3657 (get_loop_body): Same.
3658 (fill_sons_in_loop): Same.
3659 (get_loop_body_in_dom_order): Same.
3660 (get_loop_body_in_custom_order): Same.
3661 (release_recorded_exits): Same.
3662 (get_loop_exit_edges): Same.
3663 (num_loop_branches): Same.
3664 (remove_bb_from_loops): Same.
3665 (find_common_loop): Same.
3666 (delete_loop): Same.
3667 (cancel_loop): Same.
3668 (verify_loop_structure): Same.
3669 (loop_preheader_edge): Same.
3670 (loop_exit_edge_p): Same.
3671 (single_exit): Same.
3672 (loop_exits_to_bb_p): Same.
3673 (loop_exits_from_bb_p): Same.
3674 (get_loop_location): Same.
3675 (record_niter_bound): Same.
3676 (get_estimated_loop_iterations_int): Same.
3677 (max_stmt_executions_int): Same.
3678 (likely_max_stmt_executions_int): Same.
3679 (get_estimated_loop_iterations): Same.
3680 (get_max_loop_iterations): Same.
3681 (get_max_loop_iterations_int): Same.
3682 (get_likely_max_loop_iterations): Same.
3683 * cfgloop.h (simple_loop_desc): Same.
3687 (loop_iterator::next): Same.
3688 (loop_outermost): Same.
3689 * cfgloopanal.c (mark_irreducible_loops): Same.
3690 (num_loop_insns): Same.
3691 (average_num_loop_insns): Same.
3692 (expected_loop_iterations_unbounded): Same.
3693 (expected_loop_iterations): Same.
3694 (mark_loop_exit_edges): Same.
3695 (single_likely_exit): Same.
3696 * cfgloopmanip.c (fix_bb_placement): Same.
3697 (fix_bb_placements): Same.
3698 (remove_path): Same.
3699 (place_new_loop): Same.
3701 (scale_loop_frequencies): Same.
3702 (scale_loop_profile): Same.
3703 (create_empty_if_region_on_edge): Same.
3704 (create_empty_loop_on_edge): Same.
3707 (fix_loop_placements): Same.
3708 (copy_loop_info): Same.
3709 (duplicate_loop): Same.
3710 (duplicate_subloops): Same.
3711 (loop_redirect_edge): Same.
3712 (can_duplicate_loop_p): Same.
3713 (duplicate_loop_to_header_edge): Same.
3714 (mfb_keep_just): Same.
3715 (has_preds_from_loop): Same.
3716 (create_preheader): Same.
3717 (create_preheaders): Same.
3718 (lv_adjust_loop_entry_edge): Same.
3719 (loop_version): Same.
3720 * cfgloopmanip.h: Same.
3722 * cgraphbuild.c: Same.
3723 * combine.c (make_extraction): Same.
3724 * config/i386/i386-features.c: Same.
3725 * config/i386/i386-features.h: Same.
3726 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
3727 (ix86_emit_outlined_ms2sysv_restore): Same.
3728 (ix86_noce_conversion_profitable_p): Same.
3729 (ix86_init_cost): Same.
3730 (ix86_simd_clone_usable): Same.
3731 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
3733 * coretypes.h: Same.
3734 * data-streamer-in.c (string_for_index): Change class-key of PODs
3735 to struct and others to class.
3736 (streamer_read_indexed_string): Same.
3737 (streamer_read_string): Same.
3738 (bp_unpack_indexed_string): Same.
3739 (bp_unpack_string): Same.
3740 (streamer_read_uhwi): Same.
3741 (streamer_read_hwi): Same.
3742 (streamer_read_gcov_count): Same.
3743 (streamer_read_wide_int): Same.
3744 * data-streamer.h (streamer_write_bitpack): Same.
3745 (bp_unpack_value): Same.
3746 (streamer_write_char_stream): Same.
3747 (streamer_write_hwi_in_range): Same.
3748 (streamer_write_record_start): Same.
3749 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
3750 (add_cross_iteration_register_deps): Same.
3751 (build_intra_loop_deps): Same.
3752 * df-core.c (df_analyze): Same.
3753 (loop_post_order_compute): Same.
3754 (loop_inverted_post_order_compute): Same.
3755 * df-problems.c (df_rd_alloc): Same.
3756 (df_rd_simulate_one_insn): Same.
3757 (df_rd_local_compute): Same.
3758 (df_rd_init_solution): Same.
3759 (df_rd_confluence_n): Same.
3760 (df_rd_transfer_function): Same.
3762 (df_rd_dump_defs_set): Same.
3763 (df_rd_top_dump): Same.
3764 (df_lr_alloc): Same.
3765 (df_lr_reset): Same.
3766 (df_lr_local_compute): Same.
3768 (df_lr_confluence_n): Same.
3770 (df_lr_top_dump): Same.
3771 (df_lr_verify_transfer_functions): Same.
3772 (df_live_alloc): Same.
3773 (df_live_reset): Same.
3774 (df_live_init): Same.
3775 (df_live_confluence_n): Same.
3776 (df_live_finalize): Same.
3777 (df_live_free): Same.
3778 (df_live_top_dump): Same.
3779 (df_live_verify_transfer_functions): Same.
3780 (df_mir_alloc): Same.
3781 (df_mir_reset): Same.
3782 (df_mir_init): Same.
3783 (df_mir_confluence_n): Same.
3784 (df_mir_free): Same.
3785 (df_mir_top_dump): Same.
3786 (df_word_lr_alloc): Same.
3787 (df_word_lr_reset): Same.
3788 (df_word_lr_init): Same.
3789 (df_word_lr_confluence_n): Same.
3790 (df_word_lr_free): Same.
3791 (df_word_lr_top_dump): Same.
3792 (df_md_alloc): Same.
3793 (df_md_simulate_one_insn): Same.
3794 (df_md_reset): Same.
3797 (df_md_top_dump): Same.
3798 * df-scan.c (df_insn_delete): Same.
3799 (df_insn_rescan): Same.
3800 (df_notes_rescan): Same.
3801 (df_sort_and_compress_mws): Same.
3802 (df_install_mws): Same.
3803 (df_refs_add_to_chains): Same.
3804 (df_ref_create_structure): Same.
3805 (df_ref_record): Same.
3806 (df_def_record_1): Same.
3807 (df_find_hard_reg_defs): Same.
3808 (df_uses_record): Same.
3809 (df_get_conditional_uses): Same.
3810 (df_get_call_refs): Same.
3811 (df_recompute_luids): Same.
3812 (df_get_entry_block_def_set): Same.
3813 (df_entry_block_defs_collect): Same.
3814 (df_get_exit_block_use_set): Same.
3815 (df_exit_block_uses_collect): Same.
3816 (df_mws_verify): Same.
3817 (df_bb_verify): Same.
3818 * df.h (df_scan_get_bb_info): Same.
3819 * doc/tm.texi: Same.
3820 * dse.c (record_store): Same.
3822 * emit-rtl.c (const_fixed_hasher::equal): Same.
3823 (set_mem_attributes_minus_bitpos): Same.
3824 (change_address): Same.
3825 (adjust_address_1): Same.
3826 (offset_address): Same.
3828 * except.c (dw2_build_landing_pads): Same.
3829 (sjlj_emit_dispatch_table): Same.
3830 * explow.c (allocate_dynamic_stack_space): Same.
3831 (emit_stack_probe): Same.
3832 (probe_stack_range): Same.
3833 * expmed.c (store_bit_field_using_insv): Same.
3834 (store_bit_field_1): Same.
3835 (store_integral_bit_field): Same.
3836 (extract_bit_field_using_extv): Same.
3837 (extract_bit_field_1): Same.
3838 (emit_cstore): Same.
3839 * expr.c (emit_block_move_via_cpymem): Same.
3840 (expand_cmpstrn_or_cmpmem): Same.
3841 (set_storage_via_setmem): Same.
3842 (emit_single_push_insn_1): Same.
3843 (expand_assignment): Same.
3844 (store_constructor): Same.
3845 (expand_expr_real_2): Same.
3846 (expand_expr_real_1): Same.
3849 * function.c (try_fit_stack_local): Same.
3850 (assign_stack_local_1): Same.
3851 (assign_stack_local): Same.
3852 (cut_slot_from_list): Same.
3853 (insert_slot_to_list): Same.
3854 (max_slot_level): Same.
3855 (move_slot_to_level): Same.
3856 (temp_address_hasher::equal): Same.
3857 (remove_unused_temp_slot_addresses): Same.
3858 (assign_temp): Same.
3859 (combine_temp_slots): Same.
3860 (update_temp_slot_address): Same.
3861 (preserve_temp_slots): Same.
3864 * gcc-rich-location.h: Same.
3866 * genattrtab.c (check_attr_test): Same.
3867 (check_attr_value): Same.
3868 (convert_set_attr_alternative): Same.
3869 (convert_set_attr): Same.
3871 (copy_boolean): Same.
3872 (get_attr_value): Same.
3873 (expand_delays): Same.
3874 (make_length_attrs): Same.
3876 (make_alternative_compare): Same.
3877 (simplify_test_exp): Same.
3878 (tests_attr_p): Same.
3879 (get_attr_order): Same.
3880 (clear_struct_flag): Same.
3882 (compares_alternatives_p): Same.
3885 (find_attrs_to_cache): Same.
3886 (write_test_expr): Same.
3887 (walk_attr_value): Same.
3888 (write_attr_get): Same.
3889 (eliminate_known_true): Same.
3890 (write_insn_cases): Same.
3891 (write_attr_case): Same.
3892 (write_attr_valueq): Same.
3893 (write_attr_value): Same.
3894 (write_dummy_eligible_delay): Same.
3895 (next_comma_elt): Same.
3897 (make_internal_attr): Same.
3898 (copy_rtx_unchanging): Same.
3899 (gen_insn_reserv): Same.
3900 (check_tune_attr): Same.
3901 (make_automaton_attrs): Same.
3903 * genextract.c (gen_insn): Same.
3904 (VEC_char_to_string): Same.
3905 * genmatch.c (print_operand): Same.
3907 (parser::parse_operation): Same.
3908 (parser::parse_capture): Same.
3909 (parser::parse_c_expr): Same.
3910 (parser::parse_simplify): Same.
3912 * genoutput.c (output_operand_data): Same.
3913 (output_get_insn_name): Same.
3914 (compare_operands): Same.
3915 (place_operands): Same.
3916 (process_template): Same.
3917 (validate_insn_alternatives): Same.
3918 (validate_insn_operands): Same.
3920 (note_constraint): Same.
3921 * genpreds.c (write_one_predicate_function): Same.
3922 (add_constraint): Same.
3923 (process_define_register_constraint): Same.
3924 (write_lookup_constraint_1): Same.
3925 (write_lookup_constraint_array): Same.
3926 (write_insn_constraint_len): Same.
3927 (write_reg_class_for_constraint_1): Same.
3928 (write_constraint_satisfied_p_array): Same.
3929 * genrecog.c (optimize_subroutine_group): Same.
3930 * gensupport.c (process_define_predicate): Same.
3931 (queue_pattern): Same.
3932 (remove_from_queue): Same.
3933 (process_rtx): Same.
3934 (is_predicable): Same.
3935 (change_subst_attribute): Same.
3936 (subst_pattern_match): Same.
3937 (alter_constraints): Same.
3938 (alter_attrs_for_insn): Same.
3939 (shift_output_template): Same.
3940 (alter_output_for_subst_insn): Same.
3941 (process_one_cond_exec): Same.
3943 (process_define_cond_exec): Same.
3944 (mnemonic_htab_callback): Same.
3945 (gen_mnemonic_attr): Same.
3946 (read_md_rtx): Same.
3948 * gimple-loop-interchange.cc (dump_reduction): Same.
3949 (dump_induction): Same.
3950 (loop_cand::~loop_cand): Same.
3951 (free_data_refs_with_aux): Same.
3952 (tree_loop_interchange::interchange_loops): Same.
3953 (tree_loop_interchange::map_inductions_to_loop): Same.
3954 (tree_loop_interchange::move_code_to_inner_loop): Same.
3955 (compute_access_stride): Same.
3956 (compute_access_strides): Same.
3957 (proper_loop_form_for_interchange): Same.
3958 (tree_loop_interchange_compute_ddrs): Same.
3959 (prune_datarefs_not_in_loop): Same.
3960 (prepare_data_references): Same.
3961 (pass_linterchange::execute): Same.
3962 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
3963 (unroll_jam_possible_p): Same.
3965 (adjust_unroll_factor): Same.
3966 (tree_loop_unroll_and_jam): Same.
3967 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
3968 (loop_versioning::expensive_stmt_p): Same.
3969 (loop_versioning::version_for_unity): Same.
3970 (loop_versioning::dump_inner_likelihood): Same.
3971 (loop_versioning::find_per_loop_multiplication): Same.
3972 (loop_versioning::analyze_term_using_scevs): Same.
3973 (loop_versioning::record_address_fragment): Same.
3974 (loop_versioning::analyze_expr): Same.
3975 (loop_versioning::analyze_blocks): Same.
3976 (loop_versioning::prune_conditions): Same.
3977 (loop_versioning::merge_loop_info): Same.
3978 (loop_versioning::add_loop_to_queue): Same.
3979 (loop_versioning::decide_whether_loop_is_versionable): Same.
3980 (loop_versioning::make_versioning_decisions): Same.
3981 (loop_versioning::implement_versioning_decisions): Same.
3982 * gimple-ssa-evrp-analyze.c
3983 (evrp_range_analyzer::record_ranges_from_phis): Same.
3984 * gimple-ssa-store-merging.c (split_store::split_store): Same.
3985 (count_multiple_uses): Same.
3986 (split_group): Same.
3987 (imm_store_chain_info::output_merged_store): Same.
3988 (pass_store_merging::process_store): Same.
3989 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
3990 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
3992 (alloca_call_type): Same.
3993 (pass_walloca::execute): Same.
3994 * gimple-streamer-in.c (input_phi): Same.
3995 (input_gimple_stmt): Same.
3996 * gimple-streamer.h: Same.
3997 * godump.c (go_force_record_alignment): Same.
3998 (go_format_type): Same.
3999 (go_output_type): Same.
4000 (go_output_fndecl): Same.
4001 (go_output_typedef): Same.
4002 (keyword_hash_init): Same.
4003 (find_dummy_types): Same.
4004 * graph.c (draw_cfg_nodes_no_loops): Same.
4005 (draw_cfg_nodes_for_loop): Same.
4006 * hard-reg-set.h (hard_reg_set_iter_next): Same.
4008 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
4009 * hsa-dump.c (dump_hsa_cfun): Same.
4010 * hsa-gen.c (gen_function_def_parameters): Same.
4011 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
4012 * input.c (dump_line_table_statistics): Same.
4015 * internal-fn.c (get_multi_vector_move): Same.
4016 (expand_load_lanes_optab_fn): Same.
4017 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
4018 (expand_GOMP_SIMT_EXIT): Same.
4019 (expand_GOMP_SIMT_LAST_LANE): Same.
4020 (expand_GOMP_SIMT_ORDERED_PRED): Same.
4021 (expand_GOMP_SIMT_VOTE_ANY): Same.
4022 (expand_GOMP_SIMT_XCHG_BFLY): Same.
4023 (expand_GOMP_SIMT_XCHG_IDX): Same.
4024 (expand_addsub_overflow): Same.
4025 (expand_neg_overflow): Same.
4026 (expand_mul_overflow): Same.
4027 (expand_call_mem_ref): Same.
4028 (expand_mask_load_optab_fn): Same.
4029 (expand_scatter_store_optab_fn): Same.
4030 (expand_gather_load_optab_fn): Same.
4031 * ipa-cp.c (ipa_get_parm_lattices): Same.
4032 (print_all_lattices): Same.
4033 (ignore_edge_p): Same.
4034 (build_toporder_info): Same.
4035 (free_toporder_info): Same.
4036 (push_node_to_stack): Same.
4037 (ipcp_lattice<valtype>::set_contains_variable): Same.
4038 (set_agg_lats_to_bottom): Same.
4039 (ipcp_bits_lattice::meet_with): Same.
4040 (set_single_call_flag): Same.
4041 (initialize_node_lattices): Same.
4042 (ipa_get_jf_ancestor_result): Same.
4043 (ipcp_verify_propagated_values): Same.
4044 (propagate_scalar_across_jump_function): Same.
4045 (propagate_context_across_jump_function): Same.
4046 (propagate_bits_across_jump_function): Same.
4047 (ipa_vr_operation_and_type_effects): Same.
4048 (propagate_vr_across_jump_function): Same.
4049 (set_check_aggs_by_ref): Same.
4050 (set_chain_of_aglats_contains_variable): Same.
4051 (merge_aggregate_lattices): Same.
4052 (agg_pass_through_permissible_p): Same.
4053 (propagate_aggs_across_jump_function): Same.
4054 (call_passes_through_thunk_p): Same.
4055 (propagate_constants_across_call): Same.
4056 (devirtualization_time_bonus): Same.
4057 (good_cloning_opportunity_p): Same.
4058 (context_independent_aggregate_values): Same.
4059 (gather_context_independent_values): Same.
4060 (perform_estimation_of_a_value): Same.
4061 (estimate_local_effects): Same.
4062 (value_topo_info<valtype>::add_val): Same.
4063 (add_all_node_vals_to_toposort): Same.
4064 (value_topo_info<valtype>::propagate_effects): Same.
4065 (ipcp_propagate_stage): Same.
4066 (ipcp_discover_new_direct_edges): Same.
4067 (same_node_or_its_all_contexts_clone_p): Same.
4068 (cgraph_edge_brings_value_p): Same.
4069 (gather_edges_for_value): Same.
4070 (create_specialized_node): Same.
4071 (find_more_scalar_values_for_callers_subset): Same.
4072 (find_more_contexts_for_caller_subset): Same.
4073 (copy_plats_to_inter): Same.
4074 (intersect_aggregates_with_edge): Same.
4075 (find_aggregate_values_for_callers_subset): Same.
4076 (cgraph_edge_brings_all_agg_vals_for_node): Same.
4077 (decide_about_value): Same.
4078 (decide_whether_version_node): Same.
4079 (spread_undeadness): Same.
4080 (identify_dead_nodes): Same.
4081 (ipcp_store_vr_results): Same.
4082 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
4083 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
4084 (redirect_to_unreachable): Same.
4085 (edge_set_predicate): Same.
4086 (evaluate_conditions_for_known_args): Same.
4087 (evaluate_properties_for_edge): Same.
4088 (ipa_fn_summary_t::duplicate): Same.
4089 (ipa_call_summary_t::duplicate): Same.
4090 (dump_ipa_call_summary): Same.
4091 (ipa_dump_fn_summary): Same.
4092 (eliminated_by_inlining_prob): Same.
4093 (set_cond_stmt_execution_predicate): Same.
4094 (set_switch_stmt_execution_predicate): Same.
4095 (compute_bb_predicates): Same.
4096 (will_be_nonconstant_expr_predicate): Same.
4097 (phi_result_unknown_predicate): Same.
4098 (analyze_function_body): Same.
4099 (compute_fn_summary): Same.
4100 (estimate_edge_devirt_benefit): Same.
4101 (estimate_edge_size_and_time): Same.
4102 (estimate_calls_size_and_time): Same.
4103 (estimate_node_size_and_time): Same.
4104 (remap_edge_change_prob): Same.
4105 (remap_edge_summaries): Same.
4106 (ipa_merge_fn_summary_after_inlining): Same.
4107 (ipa_fn_summary_generate): Same.
4108 (inline_read_section): Same.
4109 (ipa_fn_summary_read): Same.
4110 (ipa_fn_summary_write): Same.
4111 * ipa-fnsummary.h: Same.
4112 * ipa-hsa.c (ipa_hsa_read_section): Same.
4113 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
4114 * ipa-icf.c (sem_function::param_used_p): Same.
4115 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
4116 * ipa-inline.c (edge_badness): Same.
4117 (inline_small_functions): Same.
4118 * ipa-polymorphic-call.c
4119 (ipa_polymorphic_call_context::stream_out): Same.
4120 * ipa-predicate.c (predicate::remap_after_duplication): Same.
4121 (predicate::remap_after_inlining): Same.
4122 (predicate::stream_out): Same.
4123 * ipa-predicate.h: Same.
4124 * ipa-profile.c (ipa_profile_read_summary): Same.
4125 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
4126 (count_formal_params): Same.
4127 (ipa_dump_param): Same.
4128 (ipa_alloc_node_params): Same.
4129 (ipa_print_node_jump_functions_for_edge): Same.
4130 (ipa_print_node_jump_functions): Same.
4131 (ipa_load_from_parm_agg): Same.
4132 (get_ancestor_addr_info): Same.
4133 (ipa_compute_jump_functions_for_edge): Same.
4134 (ipa_analyze_virtual_call_uses): Same.
4135 (ipa_analyze_stmt_uses): Same.
4136 (ipa_analyze_params_uses_in_bb): Same.
4137 (update_jump_functions_after_inlining): Same.
4138 (try_decrement_rdesc_refcount): Same.
4139 (ipa_impossible_devirt_target): Same.
4140 (update_indirect_edges_after_inlining): Same.
4141 (combine_controlled_uses_counters): Same.
4142 (ipa_edge_args_sum_t::duplicate): Same.
4143 (ipa_write_jump_function): Same.
4144 (ipa_write_indirect_edge_info): Same.
4145 (ipa_write_node_info): Same.
4146 (ipa_read_edge_info): Same.
4147 (ipa_prop_read_section): Same.
4148 (read_replacements_section): Same.
4149 * ipa-prop.h (ipa_get_param_count): Same.
4150 (ipa_get_param): Same.
4151 (ipa_get_type): Same.
4152 (ipa_get_param_move_cost): Same.
4153 (ipa_set_param_used): Same.
4154 (ipa_get_controlled_uses): Same.
4155 (ipa_set_controlled_uses): Same.
4156 (ipa_get_cs_argument_count): Same.
4157 * ipa-pure-const.c (analyze_function): Same.
4158 (pure_const_read_summary): Same.
4160 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
4161 * ipa-split.c (test_nonssa_use): Same.
4162 (dump_split_point): Same.
4163 (dominated_by_forbidden): Same.
4164 (split_part_set_ssa_name_p): Same.
4165 (find_split_points): Same.
4166 * ira-build.c (finish_loop_tree_nodes): Same.
4167 (low_pressure_loop_node_p): Same.
4168 * ira-color.c (ira_reuse_stack_slot): Same.
4170 * ira.c (setup_reg_equiv): Same.
4171 (print_insn_chain): Same.
4173 * loop-doloop.c (doloop_condition_get): Same.
4175 (record_reg_sets): Same.
4176 (doloop_optimize): Same.
4177 * loop-init.c (loop_optimizer_init): Same.
4178 (fix_loop_structure): Same.
4179 * loop-invariant.c (merge_identical_invariants): Same.
4180 (compute_always_reached): Same.
4182 (may_assign_reg_p): Same.
4183 (find_invariants_bb): Same.
4184 (find_invariants_body): Same.
4185 (replace_uses): Same.
4186 (can_move_invariant_reg): Same.
4187 (free_inv_motion_data): Same.
4188 (move_single_loop_invariants): Same.
4189 (change_pressure): Same.
4190 (mark_ref_regs): Same.
4191 (calculate_loop_reg_pressure): Same.
4192 * loop-iv.c (biv_entry_hasher::equal): Same.
4193 (iv_extend_to_rtx_code): Same.
4194 (check_iv_ref_table_size): Same.
4195 (clear_iv_info): Same.
4196 (latch_dominating_def): Same.
4197 (iv_get_reaching_def): Same.
4198 (iv_constant): Same.
4204 (get_biv_step): Same.
4206 (analyzed_for_bivness_p): Same.
4208 (iv_analyze_biv): Same.
4209 (iv_analyze_expr): Same.
4210 (iv_analyze_def): Same.
4211 (iv_analyze_op): Same.
4213 (iv_analyze_result): Same.
4215 (eliminate_implied_conditions): Same.
4216 (simplify_using_initial_values): Same.
4217 (shorten_into_mode): Same.
4218 (canonicalize_iv_subregs): Same.
4219 (determine_max_iter): Same.
4220 (check_simple_exit): Same.
4221 (find_simple_exit): Same.
4222 (get_simple_loop_desc): Same.
4223 * loop-unroll.c (report_unroll): Same.
4224 (decide_unrolling): Same.
4225 (unroll_loops): Same.
4226 (loop_exit_at_end_p): Same.
4227 (decide_unroll_constant_iterations): Same.
4228 (unroll_loop_constant_iterations): Same.
4229 (compare_and_jump_seq): Same.
4230 (unroll_loop_runtime_iterations): Same.
4231 (decide_unroll_stupid): Same.
4232 (unroll_loop_stupid): Same.
4233 (referenced_in_one_insn_in_loop_p): Same.
4234 (reset_debug_uses_in_loop): Same.
4235 (analyze_iv_to_split_insn): Same.
4236 * lra-eliminations.c (lra_debug_elim_table): Same.
4237 (setup_can_eliminate): Same.
4239 (lra_get_elimination_hard_regno): Same.
4240 (lra_eliminate_regs_1): Same.
4241 (eliminate_regs_in_insn): Same.
4242 (update_reg_eliminate): Same.
4243 (init_elimination): Same.
4244 (lra_eliminate): Same.
4246 * lra-lives.c (initiate_live_solver): Same.
4247 * lra-remat.c (create_remat_bb_data): Same.
4248 * lra-spills.c (lra_spill): Same.
4249 * lra.c (lra_set_insn_recog_data): Same.
4250 (lra_set_used_insn_alternative_by_uid): Same.
4251 (init_reg_info): Same.
4252 (expand_reg_info): Same.
4253 * lto-cgraph.c (output_symtab): Same.
4254 (read_identifier): Same.
4255 (get_alias_symbol): Same.
4257 (input_varpool_node): Same.
4260 (input_cgraph_1): Same.
4262 (input_symtab): Same.
4263 (input_offload_tables): Same.
4264 (output_cgraph_opt_summary): Same.
4265 (input_edge_opt_summary): Same.
4266 (input_cgraph_opt_section): Same.
4267 * lto-section-in.c (lto_free_raw_section_data): Same.
4268 (lto_create_simple_input_block): Same.
4269 (lto_free_function_in_decl_state_for_node): Same.
4270 * lto-streamer-in.c (lto_tag_check_set): Same.
4271 (lto_location_cache::revert_location_cache): Same.
4272 (lto_location_cache::input_location): Same.
4273 (lto_input_location): Same.
4274 (stream_input_location_now): Same.
4275 (lto_input_tree_ref): Same.
4276 (lto_input_eh_catch_list): Same.
4277 (input_eh_region): Same.
4278 (lto_init_eh): Same.
4279 (make_new_block): Same.
4281 (fixup_call_stmt_edges): Same.
4282 (input_struct_function_base): Same.
4283 (input_function): Same.
4284 (lto_read_body_or_constructor): Same.
4285 (lto_read_tree_1): Same.
4286 (lto_read_tree): Same.
4287 (lto_input_scc): Same.
4288 (lto_input_tree_1): Same.
4289 (lto_input_toplevel_asms): Same.
4290 (lto_input_mode_table): Same.
4291 (lto_reader_init): Same.
4292 (lto_data_in_create): Same.
4293 * lto-streamer-out.c (output_cfg): Same.
4294 * lto-streamer.h: Same.
4295 * modulo-sched.c (duplicate_insns_of_cycles): Same.
4296 (generate_prolog_epilog): Same.
4297 (mark_loop_unsched): Same.
4298 (dump_insn_location): Same.
4299 (loop_canon_p): Same.
4300 (sms_schedule): Same.
4301 * omp-expand.c (expand_omp_for_ordered_loops): Same.
4302 (expand_omp_for_generic): Same.
4303 (expand_omp_for_static_nochunk): Same.
4304 (expand_omp_for_static_chunk): Same.
4305 (expand_omp_simd): Same.
4306 (expand_omp_taskloop_for_inner): Same.
4307 (expand_oacc_for): Same.
4308 (expand_omp_atomic_pipeline): Same.
4309 (mark_loops_in_oacc_kernels_region): Same.
4310 * omp-offload.c (oacc_xform_loop): Same.
4311 * omp-simd-clone.c (simd_clone_adjust): Same.
4312 * optabs-query.c (get_traditional_extraction_insn): Same.
4313 * optabs.c (expand_vector_broadcast): Same.
4314 (expand_binop_directly): Same.
4315 (expand_twoval_unop): Same.
4316 (expand_twoval_binop): Same.
4317 (expand_unop_direct): Same.
4318 (emit_indirect_jump): Same.
4319 (emit_conditional_move): Same.
4320 (emit_conditional_neg_or_complement): Same.
4321 (emit_conditional_add): Same.
4322 (vector_compare_rtx): Same.
4323 (expand_vec_perm_1): Same.
4324 (expand_vec_perm_const): Same.
4325 (expand_vec_cond_expr): Same.
4326 (expand_vec_series_expr): Same.
4327 (maybe_emit_atomic_exchange): Same.
4328 (maybe_emit_sync_lock_test_and_set): Same.
4329 (expand_atomic_compare_and_swap): Same.
4330 (expand_atomic_load): Same.
4331 (expand_atomic_store): Same.
4332 (maybe_emit_op): Same.
4333 (valid_multiword_target_p): Same.
4334 (create_integer_operand): Same.
4335 (maybe_legitimize_operand_same_code): Same.
4336 (maybe_legitimize_operand): Same.
4337 (create_convert_operand_from_type): Same.
4338 (can_reuse_operands_p): Same.
4339 (maybe_legitimize_operands): Same.
4340 (maybe_gen_insn): Same.
4341 (maybe_expand_insn): Same.
4342 (maybe_expand_jump_insn): Same.
4343 (expand_insn): Same.
4344 * optabs.h (create_expand_operand): Same.
4345 (create_fixed_operand): Same.
4346 (create_output_operand): Same.
4347 (create_input_operand): Same.
4348 (create_convert_operand_to): Same.
4349 (create_convert_operand_from): Same.
4352 * predict.c (optimize_insn_for_speed_p): Same.
4353 (optimize_loop_for_size_p): Same.
4354 (optimize_loop_for_speed_p): Same.
4355 (optimize_loop_nest_for_speed_p): Same.
4356 (get_base_value): Same.
4357 (predicted_by_loop_heuristics_p): Same.
4358 (predict_extra_loop_exits): Same.
4359 (predict_loops): Same.
4360 (predict_paths_for_bb): Same.
4361 (predict_paths_leading_to): Same.
4362 (propagate_freq): Same.
4363 (pass_profile::execute): Same.
4365 * profile-count.c (profile_count::differs_from_p): Same.
4366 (profile_probability::differs_lot_from_p): Same.
4367 * profile-count.h: Same.
4368 * profile.c (branch_prob): Same.
4369 * regrename.c (free_chain_data): Same.
4370 (mark_conflict): Same.
4371 (create_new_chain): Same.
4372 (merge_overlapping_regs): Same.
4373 (init_rename_info): Same.
4374 (merge_chains): Same.
4375 (regrename_analyze): Same.
4376 (regrename_do_replace): Same.
4377 (scan_rtx_reg): Same.
4378 (record_out_operands): Same.
4379 (build_def_use): Same.
4380 * regrename.h: Same.
4382 * reload1.c (init_reload): Same.
4383 (maybe_fix_stack_asms): Same.
4384 (copy_reloads): Same.
4385 (count_pseudo): Same.
4386 (count_spilled_pseudo): Same.
4388 (find_reload_regs): Same.
4389 (select_reload_regs): Same.
4390 (spill_hard_reg): Same.
4391 (fixup_eh_region_note): Same.
4392 (set_reload_reg): Same.
4393 (allocate_reload_reg): Same.
4394 (compute_reload_subreg_offset): Same.
4395 (reload_adjust_reg_for_icode): Same.
4396 (emit_input_reload_insns): Same.
4397 (emit_output_reload_insns): Same.
4398 (do_input_reload): Same.
4399 (inherit_piecemeal_p): Same.
4401 * sanopt.c (maybe_get_dominating_check): Same.
4402 (maybe_optimize_ubsan_ptr_ifn): Same.
4403 (can_remove_asan_check): Same.
4404 (maybe_optimize_asan_check_ifn): Same.
4405 (sanopt_optimize_walker): Same.
4406 * sched-deps.c (add_dependence_list): Same.
4407 (chain_to_prev_insn): Same.
4408 (add_insn_mem_dependence): Same.
4409 (create_insn_reg_set): Same.
4410 (maybe_extend_reg_info_p): Same.
4411 (sched_analyze_reg): Same.
4412 (sched_analyze_1): Same.
4413 (get_implicit_reg_pending_clobbers): Same.
4414 (chain_to_prev_insn_p): Same.
4415 (deps_analyze_insn): Same.
4416 (deps_start_bb): Same.
4417 (sched_free_deps): Same.
4419 (init_deps_reg_last): Same.
4421 * sched-ebb.c: Same.
4422 * sched-int.h: Same.
4423 * sched-rgn.c (add_branch_dependences): Same.
4424 (concat_insn_mem_list): Same.
4426 (sched_rgn_compute_dependencies): Same.
4427 * sel-sched-ir.c (reset_target_context): Same.
4428 (copy_deps_context): Same.
4429 (init_id_from_df): Same.
4430 (has_dependence_p): Same.
4431 (change_loops_latches): Same.
4432 (bb_top_order_comparator): Same.
4433 (make_region_from_loop_preheader): Same.
4434 (sel_init_pipelining): Same.
4435 (get_loop_nest_for_rgn): Same.
4436 (make_regions_from_the_rest): Same.
4437 (sel_is_loop_preheader_p): Same.
4438 * sel-sched-ir.h (inner_loop_header_p): Same.
4439 (get_all_loop_exits): Same.
4441 * sese.c (sese_build_liveouts): Same.
4442 (sese_insert_phis_for_liveouts): Same.
4443 * sese.h (defined_in_sese_p): Same.
4444 * sreal.c (sreal::stream_out): Same.
4446 * streamer-hooks.h: Same.
4447 * target-globals.c (save_target_globals): Same.
4448 * target-globals.h: Same.
4451 * targhooks.c (default_has_ifunc_p): Same.
4452 (default_empty_mask_is_expensive): Same.
4453 (default_init_cost): Same.
4454 * targhooks.h: Same.
4456 * tree-affine.c (aff_combination_mult): Same.
4457 (aff_combination_expand): Same.
4458 (aff_combination_constant_multiple_p): Same.
4459 * tree-affine.h: Same.
4460 * tree-cfg.c (build_gimple_cfg): Same.
4461 (replace_loop_annotate_in_block): Same.
4462 (replace_uses_by): Same.
4464 (dump_cfg_stats): Same.
4465 (gimple_duplicate_sese_region): Same.
4466 (gimple_duplicate_sese_tail): Same.
4467 (move_block_to_fn): Same.
4468 (replace_block_vars_by_duplicates): Same.
4469 (move_sese_region_to_fn): Same.
4470 (print_loops_bb): Same.
4472 (print_loops): Same.
4474 (debug_loops): Same.
4476 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
4477 (chrec_fold_multiply_poly_poly): Same.
4478 (chrec_evaluate): Same.
4479 (chrec_component_in_loop_num): Same.
4480 (reset_evolution_in_loop): Same.
4481 (is_multivariate_chrec): Same.
4482 (chrec_contains_symbols): Same.
4483 (nb_vars_in_chrec): Same.
4484 (chrec_convert_1): Same.
4485 (chrec_convert_aggressive): Same.
4486 * tree-chrec.h: Same.
4487 * tree-core.h: Same.
4488 * tree-data-ref.c (dump_data_dependence_relation): Same.
4489 (canonicalize_base_object_address): Same.
4490 (data_ref_compare_tree): Same.
4491 (prune_runtime_alias_test_list): Same.
4492 (get_segment_min_max): Same.
4493 (create_intersect_range_checks): Same.
4494 (conflict_fn_no_dependence): Same.
4495 (object_address_invariant_in_loop_p): Same.
4496 (analyze_ziv_subscript): Same.
4497 (analyze_siv_subscript_cst_affine): Same.
4498 (analyze_miv_subscript): Same.
4499 (analyze_overlapping_iterations): Same.
4500 (build_classic_dist_vector_1): Same.
4501 (add_other_self_distances): Same.
4502 (same_access_functions): Same.
4503 (build_classic_dir_vector): Same.
4504 (subscript_dependence_tester_1): Same.
4505 (subscript_dependence_tester): Same.
4506 (access_functions_are_affine_or_constant_p): Same.
4507 (get_references_in_stmt): Same.
4508 (loop_nest_has_data_refs): Same.
4509 (graphite_find_data_references_in_stmt): Same.
4510 (find_data_references_in_bb): Same.
4511 (get_base_for_alignment): Same.
4512 (find_loop_nest_1): Same.
4513 (find_loop_nest): Same.
4514 * tree-data-ref.h (dr_alignment): Same.
4515 (ddr_dependence_level): Same.
4516 * tree-if-conv.c (fold_build_cond_expr): Same.
4517 (add_to_predicate_list): Same.
4518 (add_to_dst_predicate_list): Same.
4519 (phi_convertible_by_degenerating_args): Same.
4520 (idx_within_array_bound): Same.
4521 (all_preds_critical_p): Same.
4522 (pred_blocks_visited_p): Same.
4523 (predicate_bbs): Same.
4524 (build_region): Same.
4525 (if_convertible_loop_p_1): Same.
4526 (is_cond_scalar_reduction): Same.
4527 (predicate_scalar_phi): Same.
4528 (remove_conditions_and_labels): Same.
4529 (combine_blocks): Same.
4530 (version_loop_for_if_conversion): Same.
4531 (versionable_outer_loop_p): Same.
4532 (ifcvt_local_dce): Same.
4533 (tree_if_conversion): Same.
4534 (pass_if_conversion::gate): Same.
4535 * tree-if-conv.h: Same.
4536 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
4537 * tree-loop-distribution.c (bb_top_order_cmp): Same.
4539 (stmt_has_scalar_dependences_outside_loop): Same.
4540 (copy_loop_before): Same.
4541 (create_bb_after_loop): Same.
4542 (const_with_all_bytes_same): Same.
4543 (generate_memset_builtin): Same.
4544 (generate_memcpy_builtin): Same.
4545 (destroy_loop): Same.
4546 (build_rdg_partition_for_vertex): Same.
4547 (compute_access_range): Same.
4548 (data_ref_segment_size): Same.
4549 (latch_dominated_by_data_ref): Same.
4550 (compute_alias_check_pairs): Same.
4551 (fuse_memset_builtins): Same.
4552 (finalize_partitions): Same.
4553 (find_seed_stmts_for_distribution): Same.
4554 (prepare_perfect_loop_nest): Same.
4555 * tree-parloops.c (lambda_transform_legal_p): Same.
4556 (loop_parallel_p): Same.
4557 (reduc_stmt_res): Same.
4558 (add_field_for_name): Same.
4559 (create_call_for_reduction_1): Same.
4560 (replace_uses_in_bb_by): Same.
4561 (transform_to_exit_first_loop_alt): Same.
4562 (try_transform_to_exit_first_loop_alt): Same.
4563 (transform_to_exit_first_loop): Same.
4565 (gen_parallel_loop): Same.
4566 (gather_scalar_reductions): Same.
4567 (get_omp_data_i_param): Same.
4568 (try_create_reduction_list): Same.
4569 (oacc_entry_exit_single_gang): Same.
4570 (parallelize_loops): Same.
4571 * tree-pass.h: Same.
4572 * tree-predcom.c (determine_offset): Same.
4573 (last_always_executed_block): Same.
4574 (split_data_refs_to_components): Same.
4575 (suitable_component_p): Same.
4576 (valid_initializer_p): Same.
4577 (find_looparound_phi): Same.
4578 (insert_looparound_copy): Same.
4579 (add_looparound_copies): Same.
4580 (determine_roots_comp): Same.
4581 (predcom_tmp_var): Same.
4582 (initialize_root_vars): Same.
4583 (initialize_root_vars_store_elim_1): Same.
4584 (initialize_root_vars_store_elim_2): Same.
4585 (finalize_eliminated_stores): Same.
4586 (initialize_root_vars_lm): Same.
4587 (remove_stmt): Same.
4588 (determine_unroll_factor): Same.
4589 (execute_pred_commoning_cbck): Same.
4590 (base_names_in_chain_on): Same.
4591 (combine_chains): Same.
4592 (pcom_stmt_dominates_stmt_p): Same.
4593 (try_combine_chains): Same.
4594 (prepare_initializers_chain_store_elim): Same.
4595 (prepare_initializers_chain): Same.
4596 (prepare_initializers): Same.
4597 (prepare_finalizers_chain): Same.
4598 (prepare_finalizers): Same.
4599 (insert_init_seqs): Same.
4600 * tree-scalar-evolution.c (loop_phi_node_p): Same.
4601 (compute_overall_effect_of_inner_loop): Same.
4602 (add_to_evolution_1): Same.
4603 (add_to_evolution): Same.
4604 (follow_ssa_edge_binary): Same.
4605 (follow_ssa_edge_expr): Same.
4606 (backedge_phi_arg_p): Same.
4607 (follow_ssa_edge_in_condition_phi_branch): Same.
4608 (follow_ssa_edge_in_condition_phi): Same.
4609 (follow_ssa_edge_inner_loop_phi): Same.
4610 (follow_ssa_edge): Same.
4611 (analyze_evolution_in_loop): Same.
4612 (analyze_initial_condition): Same.
4613 (interpret_loop_phi): Same.
4614 (interpret_condition_phi): Same.
4615 (interpret_rhs_expr): Same.
4616 (interpret_expr): Same.
4617 (interpret_gimple_assign): Same.
4618 (analyze_scalar_evolution_1): Same.
4619 (analyze_scalar_evolution): Same.
4620 (analyze_scalar_evolution_for_address_of): Same.
4621 (get_instantiated_value_entry): Same.
4622 (loop_closed_phi_def): Same.
4623 (instantiate_scev_name): Same.
4624 (instantiate_scev_poly): Same.
4625 (instantiate_scev_binary): Same.
4626 (instantiate_scev_convert): Same.
4627 (instantiate_scev_not): Same.
4628 (instantiate_scev_r): Same.
4629 (instantiate_scev): Same.
4630 (resolve_mixers): Same.
4631 (initialize_scalar_evolutions_analyzer): Same.
4632 (scev_reset_htab): Same.
4634 (derive_simple_iv_with_niters): Same.
4635 (simple_iv_with_niters): Same.
4636 (expression_expensive_p): Same.
4637 (final_value_replacement_loop): Same.
4638 * tree-scalar-evolution.h (block_before_loop): Same.
4639 * tree-ssa-address.h: Same.
4640 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
4641 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
4642 (record_edge_info): Same.
4643 * tree-ssa-live.c (var_map_base_fini): Same.
4644 (remove_unused_locals): Same.
4645 * tree-ssa-live.h: Same.
4646 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
4647 (pass_ch_vect::execute): Same.
4648 (pass_ch::process_loop_p): Same.
4649 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
4650 (movement_possibility): Same.
4651 (outermost_invariant_loop): Same.
4653 (determine_max_movement): Same.
4654 (invariantness_dom_walker::before_dom_children): Same.
4655 (move_computations): Same.
4656 (may_move_till): Same.
4657 (force_move_till_op): Same.
4658 (force_move_till): Same.
4659 (memref_free): Same.
4660 (record_mem_ref_loc): Same.
4661 (set_ref_stored_in_loop): Same.
4662 (mark_ref_stored): Same.
4663 (sort_bbs_in_loop_postorder_cmp): Same.
4664 (sort_locs_in_loop_postorder_cmp): Same.
4665 (analyze_memory_references): Same.
4666 (mem_refs_may_alias_p): Same.
4667 (find_ref_loc_in_loop_cmp): Same.
4668 (rewrite_mem_ref_loc::operator): Same.
4669 (first_mem_ref_loc_1::operator): Same.
4670 (sm_set_flag_if_changed::operator): Same.
4671 (execute_sm_if_changed_flag_set): Same.
4673 (hoist_memory_references): Same.
4674 (ref_always_accessed::operator): Same.
4675 (refs_independent_p): Same.
4676 (record_dep_loop): Same.
4677 (ref_indep_loop_p_1): Same.
4678 (ref_indep_loop_p): Same.
4679 (can_sm_ref_p): Same.
4680 (find_refs_for_sm): Same.
4681 (loop_suitable_for_sm): Same.
4682 (store_motion_loop): Same.
4683 (store_motion): Same.
4684 (fill_always_executed_in): Same.
4685 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
4686 (estimated_unrolled_size): Same.
4687 (loop_edge_to_cancel): Same.
4688 (remove_exits_and_undefined_stmts): Same.
4689 (remove_redundant_iv_tests): Same.
4690 (unloop_loops): Same.
4691 (estimated_peeled_sequence_size): Same.
4692 (try_peel_loop): Same.
4693 (canonicalize_loop_induction_variables): Same.
4694 (canonicalize_induction_variables): Same.
4695 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
4697 (stmt_after_inc_pos): Same.
4698 (contains_abnormal_ssa_name_p): Same.
4699 (niter_for_exit): Same.
4702 (find_givs_in_bb): Same.
4703 (find_induction_variables): Same.
4704 (find_interesting_uses_cond): Same.
4705 (outermost_invariant_loop_for_expr): Same.
4706 (idx_find_step): Same.
4707 (add_candidate_1): Same.
4708 (add_iv_candidate_derived_from_uses): Same.
4709 (alloc_use_cost_map): Same.
4710 (prepare_decl_rtl): Same.
4711 (generic_predict_doloop_p): Same.
4712 (computation_cost): Same.
4713 (determine_common_wider_type): Same.
4714 (get_computation_aff_1): Same.
4715 (get_use_type): Same.
4716 (determine_group_iv_cost_address): Same.
4718 (difference_cannot_overflow_p): Same.
4719 (may_eliminate_iv): Same.
4720 (determine_set_costs): Same.
4721 (cheaper_cost_pair): Same.
4722 (compare_cost_pair): Same.
4723 (iv_ca_cand_for_group): Same.
4724 (iv_ca_recount_cost): Same.
4725 (iv_ca_set_remove_invs): Same.
4726 (iv_ca_set_no_cp): Same.
4727 (iv_ca_set_add_invs): Same.
4728 (iv_ca_set_cp): Same.
4729 (iv_ca_add_group): Same.
4731 (iv_ca_compare_deps): Same.
4732 (iv_ca_delta_reverse): Same.
4733 (iv_ca_delta_commit): Same.
4734 (iv_ca_cand_used_p): Same.
4735 (iv_ca_delta_free): Same.
4739 (iv_ca_extend): Same.
4740 (iv_ca_narrow): Same.
4741 (iv_ca_prune): Same.
4742 (cheaper_cost_with_cand): Same.
4743 (iv_ca_replace): Same.
4744 (try_add_cand_for): Same.
4745 (get_initial_solution): Same.
4746 (try_improve_iv_set): Same.
4747 (find_optimal_iv_set_1): Same.
4748 (create_new_iv): Same.
4749 (rewrite_use_compare): Same.
4750 (remove_unused_ivs): Same.
4751 (determine_scaling_factor): Same.
4752 * tree-ssa-loop-ivopts.h: Same.
4753 * tree-ssa-loop-manip.c (create_iv): Same.
4754 (compute_live_loop_exits): Same.
4755 (add_exit_phi): Same.
4756 (add_exit_phis): Same.
4757 (find_uses_to_rename_use): Same.
4758 (find_uses_to_rename_def): Same.
4759 (find_uses_to_rename_in_loop): Same.
4760 (rewrite_into_loop_closed_ssa): Same.
4761 (check_loop_closed_ssa_bb): Same.
4762 (split_loop_exit_edge): Same.
4764 (ip_normal_pos): Same.
4765 (copy_phi_node_args): Same.
4766 (gimple_duplicate_loop_to_header_edge): Same.
4767 (can_unroll_loop_p): Same.
4768 (determine_exit_conditions): Same.
4769 (scale_dominated_blocks_in_loop): Same.
4770 (niter_for_unrolled_loop): Same.
4771 (tree_transform_and_unroll_loop): Same.
4772 (rewrite_all_phi_nodes_with_iv): Same.
4773 * tree-ssa-loop-manip.h: Same.
4774 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
4775 (number_of_iterations_ne): Same.
4776 (assert_no_overflow_lt): Same.
4777 (assert_loop_rolls_lt): Same.
4778 (number_of_iterations_lt): Same.
4779 (adjust_cond_for_loop_until_wrap): Same.
4780 (tree_simplify_using_condition): Same.
4781 (simplify_using_initial_conditions): Same.
4782 (simplify_using_outer_evolutions): Same.
4783 (loop_only_exit_p): Same.
4784 (ssa_defined_by_minus_one_stmt_p): Same.
4785 (number_of_iterations_popcount): Same.
4786 (number_of_iterations_exit): Same.
4787 (find_loop_niter): Same.
4788 (finite_loop_p): Same.
4789 (chain_of_csts_start): Same.
4790 (get_val_for): Same.
4791 (loop_niter_by_eval): Same.
4792 (derive_constant_upper_bound_ops): Same.
4793 (do_warn_aggressive_loop_optimizations): Same.
4794 (record_estimate): Same.
4795 (get_cst_init_from_scev): Same.
4796 (record_nonwrapping_iv): Same.
4797 (idx_infer_loop_bounds): Same.
4798 (infer_loop_bounds_from_ref): Same.
4799 (infer_loop_bounds_from_array): Same.
4800 (infer_loop_bounds_from_pointer_arith): Same.
4801 (infer_loop_bounds_from_signedness): Same.
4802 (bound_index): Same.
4803 (discover_iteration_bound_by_body_walk): Same.
4804 (maybe_lower_iteration_bound): Same.
4805 (estimate_numbers_of_iterations): Same.
4806 (estimated_loop_iterations): Same.
4807 (estimated_loop_iterations_int): Same.
4808 (max_loop_iterations): Same.
4809 (max_loop_iterations_int): Same.
4810 (likely_max_loop_iterations): Same.
4811 (likely_max_loop_iterations_int): Same.
4812 (estimated_stmt_executions_int): Same.
4813 (max_stmt_executions): Same.
4814 (likely_max_stmt_executions): Same.
4815 (estimated_stmt_executions): Same.
4816 (stmt_dominates_stmt_p): Same.
4817 (nowrap_type_p): Same.
4818 (loop_exits_before_overflow): Same.
4819 (scev_var_range_cant_overflow): Same.
4820 (scev_probably_wraps_p): Same.
4821 (free_numbers_of_iterations_estimates): Same.
4822 * tree-ssa-loop-niter.h: Same.
4823 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
4824 (idx_analyze_ref): Same.
4825 (analyze_ref): Same.
4826 (gather_memory_references_ref): Same.
4827 (mark_nontemporal_store): Same.
4828 (emit_mfence_after_loop): Same.
4829 (may_use_storent_in_loop_p): Same.
4830 (mark_nontemporal_stores): Same.
4831 (should_unroll_loop_p): Same.
4832 (volume_of_dist_vector): Same.
4833 (add_subscript_strides): Same.
4834 (self_reuse_distance): Same.
4835 (insn_to_prefetch_ratio_too_small_p): Same.
4836 * tree-ssa-loop-split.c (split_at_bb_p): Same.
4837 (patch_loop_exit): Same.
4838 (find_or_create_guard_phi): Same.
4839 (easy_exit_values): Same.
4840 (connect_loop_phis): Same.
4841 (connect_loops): Same.
4842 (compute_new_first_bound): Same.
4844 (tree_ssa_split_loops): Same.
4845 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
4846 (is_maybe_undefined): Same.
4847 (tree_may_unswitch_on): Same.
4848 (simplify_using_entry_checks): Same.
4849 (tree_unswitch_single_loop): Same.
4850 (tree_unswitch_loop): Same.
4851 (tree_unswitch_outer_loop): Same.
4852 (empty_bb_without_guard_p): Same.
4853 (used_outside_loop_p): Same.
4854 (get_vop_from_header): Same.
4855 (hoist_guard): Same.
4856 * tree-ssa-loop.c (gate_oacc_kernels): Same.
4857 (get_lsm_tmp_name): Same.
4858 * tree-ssa-loop.h: Same.
4859 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
4860 (build_and_add_sum): Same.
4861 (no_side_effect_bb): Same.
4863 (linearize_expr): Same.
4864 (should_break_up_subtract): Same.
4865 (linearize_expr_tree): Same.
4866 * tree-ssa-scopedtables.c: Same.
4867 * tree-ssa-scopedtables.h: Same.
4868 * tree-ssa-structalias.c (condense_visit): Same.
4869 (label_visit): Same.
4870 (dump_pred_graph): Same.
4871 (perform_var_substitution): Same.
4872 (move_complex_constraints): Same.
4873 (remove_preds_and_fake_succs): Same.
4874 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
4875 (determine_bb_domination_status): Same.
4876 (duplicate_thread_path): Same.
4877 (thread_through_all_blocks): Same.
4878 * tree-ssa-threadupdate.h: Same.
4879 * tree-streamer-in.c (streamer_read_string_cst): Same.
4880 (input_identifier): Same.
4881 (unpack_ts_type_common_value_fields): Same.
4882 (unpack_ts_block_value_fields): Same.
4883 (unpack_ts_translation_unit_decl_value_fields): Same.
4884 (unpack_ts_omp_clause_value_fields): Same.
4885 (streamer_read_tree_bitfields): Same.
4886 (streamer_alloc_tree): Same.
4887 (lto_input_ts_common_tree_pointers): Same.
4888 (lto_input_ts_vector_tree_pointers): Same.
4889 (lto_input_ts_poly_tree_pointers): Same.
4890 (lto_input_ts_complex_tree_pointers): Same.
4891 (lto_input_ts_decl_minimal_tree_pointers): Same.
4892 (lto_input_ts_decl_common_tree_pointers): Same.
4893 (lto_input_ts_decl_non_common_tree_pointers): Same.
4894 (lto_input_ts_decl_with_vis_tree_pointers): Same.
4895 (lto_input_ts_field_decl_tree_pointers): Same.
4896 (lto_input_ts_function_decl_tree_pointers): Same.
4897 (lto_input_ts_type_common_tree_pointers): Same.
4898 (lto_input_ts_type_non_common_tree_pointers): Same.
4899 (lto_input_ts_list_tree_pointers): Same.
4900 (lto_input_ts_vec_tree_pointers): Same.
4901 (lto_input_ts_exp_tree_pointers): Same.
4902 (lto_input_ts_block_tree_pointers): Same.
4903 (lto_input_ts_binfo_tree_pointers): Same.
4904 (lto_input_ts_constructor_tree_pointers): Same.
4905 (lto_input_ts_omp_clause_tree_pointers): Same.
4906 (streamer_read_tree_body): Same.
4907 * tree-streamer.h: Same.
4908 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
4909 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
4910 (vect_analyze_possibly_independent_ddr): Same.
4911 (vect_analyze_data_ref_dependence): Same.
4912 (vect_compute_data_ref_alignment): Same.
4913 (vect_enhance_data_refs_alignment): Same.
4914 (vect_analyze_data_ref_access): Same.
4915 (vect_check_gather_scatter): Same.
4916 (vect_find_stmt_data_reference): Same.
4917 (vect_create_addr_base_for_vector_ref): Same.
4918 (vect_setup_realignment): Same.
4919 (vect_supportable_dr_alignment): Same.
4920 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
4921 (adjust_phi_and_debug_stmts): Same.
4922 (vect_set_loop_mask): Same.
4923 (add_preheader_seq): Same.
4924 (vect_maybe_permute_loop_masks): Same.
4925 (vect_set_loop_masks_directly): Same.
4926 (vect_set_loop_condition_masked): Same.
4927 (vect_set_loop_condition_unmasked): Same.
4928 (slpeel_duplicate_current_defs_from_edges): Same.
4929 (slpeel_add_loop_guard): Same.
4930 (slpeel_can_duplicate_loop_p): Same.
4931 (create_lcssa_for_virtual_phi): Same.
4933 (vect_update_ivs_after_vectorizer): Same.
4934 (vect_gen_vector_loop_niters_mult_vf): Same.
4935 (slpeel_update_phi_nodes_for_loops): Same.
4936 (slpeel_update_phi_nodes_for_guard1): Same.
4937 (find_guard_arg): Same.
4938 (slpeel_update_phi_nodes_for_guard2): Same.
4939 (slpeel_update_phi_nodes_for_lcssa): Same.
4940 (vect_do_peeling): Same.
4941 (vect_create_cond_for_alias_checks): Same.
4942 (vect_loop_versioning): Same.
4943 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
4944 (vect_inner_phi_in_double_reduction_p): Same.
4945 (vect_analyze_scalar_cycles_1): Same.
4946 (vect_fixup_scalar_cycles_with_patterns): Same.
4947 (vect_get_loop_niters): Same.
4948 (bb_in_loop_p): Same.
4949 (vect_get_max_nscalars_per_iter): Same.
4950 (vect_verify_full_masking): Same.
4951 (vect_compute_single_scalar_iteration_cost): Same.
4952 (vect_analyze_loop_form_1): Same.
4953 (vect_analyze_loop_form): Same.
4954 (vect_active_double_reduction_p): Same.
4955 (vect_analyze_loop_operations): Same.
4956 (neutral_op_for_slp_reduction): Same.
4957 (vect_is_simple_reduction): Same.
4958 (vect_model_reduction_cost): Same.
4959 (get_initial_def_for_reduction): Same.
4960 (get_initial_defs_for_reduction): Same.
4961 (vect_create_epilog_for_reduction): Same.
4962 (vectorize_fold_left_reduction): Same.
4963 (vectorizable_reduction): Same.
4964 (vectorizable_induction): Same.
4965 (vectorizable_live_operation): Same.
4966 (loop_niters_no_overflow): Same.
4967 (vect_get_loop_mask): Same.
4968 (vect_transform_loop_stmt): Same.
4969 (vect_transform_loop): Same.
4970 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
4971 (vect_determine_precisions): Same.
4972 (vect_pattern_recog_1): Same.
4973 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
4974 * tree-vect-stmts.c (stmt_vectype): Same.
4975 (process_use): Same.
4976 (vect_init_vector_1): Same.
4977 (vect_truncate_gather_scatter_offset): Same.
4978 (get_group_load_store_type): Same.
4979 (vect_build_gather_load_calls): Same.
4980 (vect_get_strided_load_store_ops): Same.
4981 (vectorizable_simd_clone_call): Same.
4982 (vectorizable_store): Same.
4983 (permute_vec_elements): Same.
4984 (vectorizable_load): Same.
4985 (vect_transform_stmt): Same.
4986 (supportable_widening_operation): Same.
4987 * tree-vectorizer.c (vec_info::replace_stmt): Same.
4988 (vec_info::free_stmt_vec_info): Same.
4989 (vect_free_loop_info_assumptions): Same.
4990 (vect_loop_vectorized_call): Same.
4991 (set_uid_loop_bbs): Same.
4992 (vectorize_loops): Same.
4993 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
4994 * tree.c (add_tree_to_fld_list): Same.
4995 (fld_type_variant_equal_p): Same.
4996 (fld_decl_context): Same.
4997 (fld_incomplete_type_of): Same.
4998 (free_lang_data_in_binfo): Same.
4999 (need_assembler_name_p): Same.
5000 (find_decls_types_r): Same.
5001 (get_eh_types_for_runtime): Same.
5002 (find_decls_types_in_eh_region): Same.
5003 (find_decls_types_in_node): Same.
5004 (assign_assembler_name_if_needed): Same.
5005 * value-prof.c (stream_out_histogram_value): Same.
5006 * value-prof.h: Same.
5007 * var-tracking.c (use_narrower_mode): Same.
5008 (prepare_call_arguments): Same.
5009 (vt_expand_loc_callback): Same.
5010 (resolve_expansions_pending_recursion): Same.
5011 (vt_expand_loc): Same.
5012 * varasm.c (const_hash_1): Same.
5013 (compare_constant): Same.
5014 (tree_output_constant_def): Same.
5015 (simplify_subtraction): Same.
5016 (get_pool_constant): Same.
5017 (output_constant_pool_2): Same.
5018 (output_constant_pool_1): Same.
5019 (mark_constants_in_pattern): Same.
5020 (mark_constant_pool): Same.
5021 (get_section_anchor): Same.
5022 * vr-values.c (compare_range_with_value): Same.
5023 (vr_values::extract_range_from_phi_node): Same.
5024 * vr-values.h: Same.
5025 * web.c (unionfind_union): Same.
5028 2019-07-09 Martin Sebor <msebor@redhat.com>
5031 * align.h: Change class-key from class to struct and vice versa
5032 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
5033 * alloc-pool.h: Same.
5034 * asan.c (shadow_mem_size): Same.
5035 * auto-profile.c: Same.
5036 * basic-block.h: Same.
5038 * cfgexpand.c (set_rtl): Same.
5039 (expand_one_stack_var_at): Same.
5043 * config/i386/i386.h: Same.
5044 * df-problems.c (df_print_bb_index): Same.
5046 * df.h (df_single_use): Same.
5047 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
5048 (layout::annotation_line_showed_range_p): Same.
5049 (get_printed_columns): Same.
5050 (correction::ensure_terminated): Same.
5051 (line_corrections::~line_corrections): Same.
5054 * dump-context.h: Same.
5056 * dwarf2out.c: Same.
5057 * edit-context.c: Same.
5058 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
5060 * function.c (assign_stack_local): Same.
5063 * gcov.c (block_info::block_info): Same.
5064 * genattrtab.c: Same.
5065 * genextract.c: Same.
5066 * genmatch.c (comparison_code_p): Same.
5067 (id_base::id_base): Same.
5068 (decision_tree::print): Same.
5069 * genoutput.c: Same.
5070 * genpreds.c (write_one_predicate_function): Same.
5071 * genrecog.c (validate_pattern): Same.
5072 (find_operand_positions): Same.
5073 (optimize_subroutine_group): Same.
5074 (merge_pattern_transition::merge_pattern_transition): Same.
5075 (merge_pattern_info::merge_pattern_info): Same.
5076 (merge_state_result::merge_state_result): Same.
5077 (merge_into_state): Same.
5078 * gensupport.c: Same.
5079 * gensupport.h: Same.
5080 * ggc-common.c (init_ggc_heuristics): Same.
5081 * ggc-tests.c (test_union): Same.
5082 * gimple-loop-interchange.cc (dump_induction): Same.
5083 * gimple-loop-versioning.cc: Same.
5084 * gimple-match.h (gimple_match_cond::any_else): Same.
5085 * gimple-ssa-backprop.c: Same.
5086 * gimple-ssa-sprintf.c: Same.
5087 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
5089 (store_immediate_info::store_immediate_info): Same.
5090 (merged_store_group::apply_stores): Same.
5091 (get_location_for_stmts): Same.
5092 * gimple-ssa-strength-reduction.c: Same.
5093 * gimple-ssa-warn-alloca.c: Same.
5094 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
5095 * godump.c (go_type_decl): Same.
5096 * hash-map-tests.c (test_map_of_strings_to_int): Same.
5098 * hash-set-tests.c (test_set_of_strings): Same.
5100 * hsa-common.h: Same.
5101 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
5102 * input.c (assert_loceq): Same.
5105 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
5106 * ipa-fnsummary.h: Same.
5107 * ipa-inline.h: Same.
5109 * ipa-split.c (visit_bb): Same.
5110 * ira-int.h (minmax_set_iter_next): Same.
5111 * loop-invariant.c: Same.
5113 * lra-eliminations.c: Same.
5115 * lra-lives.c (mark_regno_dead): Same.
5116 * lra-remat.c: Same.
5117 * lra-spills.c: Same.
5118 * lto-streamer.h: Same.
5119 * mem-stats.h: Same.
5120 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
5121 * omp-low.c (omp_clause_aligned_alignment): Same.
5122 * optabs-query.h (get_vcond_eq_icode): Same.
5124 * opts.c (wrap_help): Same.
5126 * predict.c (predict_paths_leading_to_edge): Same.
5127 * pretty-print.h: Same.
5128 * profile-count.h: Same.
5130 * read-rtl-function.c: Same.
5133 * regrename.c: Same.
5134 * regrename.h: Same.
5137 * rtl.h (costs_add_n_insns): Same.
5139 * sched-int.h: Same.
5140 * sel-sched-ir.h: Same.
5142 * sese.h (vec_find): Same.
5144 * target-globals.h: Same.
5145 * tree-affine.c (aff_combination_find_elt): Same.
5146 * tree-affine.h: Same.
5147 * tree-data-ref.h: Same.
5148 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
5149 * tree-predcom.c: Same.
5150 * tree-scalar-evolution.c (find_var_scev_info): Same.
5151 * tree-ssa-alias.h: Same.
5152 * tree-ssa-ccp.c: Same.
5153 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
5154 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
5155 (rewrite_mem_refs): Same.
5156 (execute_sm_if_changed): Same.
5157 (hoist_memory_references): Same.
5158 * tree-ssa-loop-ivopts.c (operator<=): Same.
5159 * tree-ssa-loop.h: Same.
5160 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
5161 * tree-ssa-structalias.c: Same.
5162 * tree-switch-conversion.h (cluster::cluster): Same.
5163 (simple_cluster::simple_cluster): Same.
5164 * tree-vect-patterns.c (type_conversion_p): Same.
5165 * tree-vectorizer.c (dump_stmt_cost): Same.
5166 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
5167 * tree.c (protected_set_expr_location): Same.
5168 * tree.h (desired_pro_or_demotion_p): Same.
5169 (fndecl_built_in_p): Same.
5170 * unique-ptr-tests.cc: Same.
5171 * var-tracking.c (delete_variable_part): Same.
5172 * varasm.c (assemble_real): Same.
5173 (tree_output_constant_def): Same.
5175 * wide-int-bitmask.h: Same.
5176 * wide-int.h (decompose): Same.
5178 2019-07-09 Richard Biener <rguenther@suse.de>
5180 PR tree-optimization/91114
5181 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
5182 find a vector type isn't fatal.
5184 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5186 * config/aarch64/aarch64-simd.md
5187 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
5188 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
5189 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
5190 (*aarch64_crypto_aese_fused,
5191 *aarch64_crypto_aesd_fused): Update to new definition.
5192 * config/aarch64/aarch64.c
5193 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
5195 2019-07-09 Richard Biener <rguenther@suse.de>
5197 * gimple-match.h (gimple_match_op::resimplify): New.
5198 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
5199 gimple_resimplify4, gimple_resimplify5): Remove.
5200 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
5201 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
5203 (gimple_match_op::resimplify): New.
5204 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
5205 according to availability. Use gimple_match_op::resimplify.
5207 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
5209 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
5211 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
5213 * config/arm/crypto.md:
5214 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
5215 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
5216 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
5217 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
5219 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
5220 * config/arm/aarch-common-protos.h
5221 (aarch_crypto_can_dual_issue): Remove.
5222 * config/arm/aarch-common.c
5223 (aarch_crypto_can_dual_issue): Likewise.
5224 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
5225 * config/arm/cortex-a53.md: Likewise.
5226 * config/arm/cortex-a57.md: Likewise.
5227 * config/arm/iterators.md:
5228 (CRYPTO_BINARY): Redefine.
5229 (CRYPTO_UNARY): Removed.
5230 (CRYPTO_AES, CRYPTO_AESMC): New.
5232 2019-07-09 Richard Biener <rguenther@suse.de>
5234 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
5235 (vn_reference_lookup_3): If the main ref has no access path recorded
5236 but orig_ref has use it to do access-path based disambiguation.
5237 (vn_reference_lookup_pieces): Adjust.
5238 (vn_reference_lookup): Pass down original ref if we valueized.
5240 2019-07-09 Martin Liska <mliska@suse.cz>
5242 * doc/extend.texi: Document influence on loop
5245 2019-07-09 Martin Liska <mliska@suse.cz>
5247 * lto-compress.c (lto_normalized_zstd_level): Do not use
5248 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
5249 of libzstd. One can use 0 as a default compression level.
5251 2019-07-09 Martin Liska <mliska@suse.cz>
5253 * doc/invoke.texi: Add link from -fprofile-dir option.
5254 Use better wording for 'gcno filename'.
5256 2019-07-08 Martin Sebor <msebor@redhat.com>
5260 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
5262 (args_loc_t): New type.
5263 (args_loc_t, locmap_t): same.
5264 (diag_returned_locals): New function.
5265 (is_addr_local): Same.
5266 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
5267 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
5268 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
5270 2019-07-08 Jakub Jelinek <jakub@redhat.com>
5272 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
5273 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
5274 and casts in offset when different, both through gimple stmts
5275 and through trees. Rewritten using loops to minimize code duplication
5278 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
5280 * emit-rtl.c (set_insn_locations): New function moved from...
5281 * function.c (set_insn_locations): ...here.
5282 * ira-emit.c (emit_moves): Propagate location of the first instruction
5283 to the inserted move instructions.
5284 * reg-stack.c (compensate_edge): Set the location if the sequence is
5285 inserted on the edge.
5286 * rtl.h (set_insn_locations): Declare.
5288 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5290 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
5291 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
5294 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
5296 PR rtl-optimization/88233
5297 * common.opt (fsplit-wide-types-early): New option.
5298 * common/config/rs6000/rs6000-common.c
5299 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
5301 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
5302 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
5303 flag_split_wide_types_early.
5304 (pass_data_lower_subreg3): New.
5305 (pass_lower_subreg3): New.
5306 (make_pass_lower_subreg3): New.
5307 * passes.def (pass_lower_subreg2): Move after the loop passes.
5308 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
5309 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
5310 the pass pipeline; its previous place is taken by ...
5311 (make_pass_lower_subreg3): ... this.
5313 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5315 * config/s390/s390.c (s390_shift_truncation_mask): Define.
5316 (TARGET_SHIFT_TRUNCATION_MASK): Define.
5318 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
5320 * config/s390/constraints.md: Add new jsc constraint.
5321 * config/s390/predicates.md: New predicates.
5322 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
5323 * config/s390/s390.c (s390_valid_shift_count): New function.
5324 (print_shift_count_operand): Use s390_valid_shift_count.
5325 (print_operand): Likewise.
5326 * config/s390/s390.md: Use new predicate.
5327 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
5328 * config/s390/vector.md: Use new predicate.
5330 2019-07-08 Andrew Waterman <andrew@sifive.com>
5331 Jim Wilson <jimw@sifive.com>
5333 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
5334 bitsize instead of BITS_PER_WORD.
5336 2019-07-08 Martin Liska <mliska@suse.cz>
5338 * collect2.c (defined): Revert to before r254460.
5339 (scan_prog_file): Revert to before r254460.
5341 2019-07-08 Richard Biener <rguenther@suse.de>
5343 PR tree-optimization/83518
5344 * tree-ssa-sccvn.c: Include splay-tree.h.
5345 (struct pd_range, struct pd_data): New.
5346 (struct vn_walk_cb_data): Add data to track partial definitions.
5347 (vn_walk_cb_data::~vn_walk_cb_data): New.
5348 (vn_walk_cb_data::push_partial_def): New.
5349 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
5350 (vn_reference_lookup_2): When partial defs are registered give up.
5351 (vn_reference_lookup_3): Track partial defs for memset and
5352 constructor zeroing and for defs from constants.
5354 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5356 * doc/install.texi (bootstrap-Og): Document.
5358 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
5360 * config/riscv/pic.md (*local_pic_load_s<mode>)
5361 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
5362 referenced by <mode>, giving...
5363 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
5364 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
5365 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
5366 use <X:MODE> for the mode attribute.
5368 2019-07-07 Jeff Law <law@redhat.com>
5370 PR tree-optimization/91090
5371 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
5372 in handling of ranges to simplify switch statements.
5374 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5376 * config/darwin.c (darwin_override_options): Make a final check on PIC
5379 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
5381 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
5384 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5387 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
5388 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
5389 instead of matching them to "l" output operands.
5391 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
5393 * config/mips/mips.c (mips_split_move): Zero-initialize addr
5394 and check whether addr.reg is nonnull before using it.
5396 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5398 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
5399 ctx->for_simd_scan_phase simd copy the outer var to the privatized
5400 variable(s). For conditional lastprivate look through outer
5401 GIMPLE_OMP_SCAN context.
5402 (lower_omp_1): For conditional lastprivate look through outer
5403 GIMPLE_OMP_SCAN context.
5405 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
5406 member to combined_into_simd_safelen1.
5407 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
5408 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
5409 clauses if ctx->combined_into_simd_safelen1 put statements after the
5410 predicate conditionalized block rather than into it.
5412 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5414 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
5416 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
5417 Make the choice of <mode> explicit, giving...
5418 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
5420 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5422 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
5423 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
5425 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
5426 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
5427 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
5428 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
5429 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
5430 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
5431 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
5432 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
5433 (*avx512f_scatterdi<mode>): Likewise.
5434 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
5436 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5438 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
5439 specify the mode iterator referenced by <mode>, giving...
5440 (*push1_h8300hs_<QHI:mode>): ...this.
5442 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5444 * config/gcn/gcn-valu.md
5445 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
5446 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
5447 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
5448 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
5449 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
5450 but using the _exec comparison patterns.
5451 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
5452 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
5453 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
5454 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
5455 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
5456 but using the _exec comparison patterns.
5458 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
5460 * config/arm/sync.md
5461 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
5462 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
5463 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
5464 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
5467 2019-07-06 Jakub Jelinek <jakub@redhat.com>
5469 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
5470 (maybe_lookup_ctx): Add forward declaration.
5471 (omp_find_scan): Likewise. Walk into body of simd if composited
5472 with worksharing loop.
5473 (scan_omp_simd_scan): New function.
5474 (scan_omp_1_stmt): Call it.
5475 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
5476 ctx->for_simd_scan_phase.
5477 (lower_rec_input_clauses): Do much less work for inscan reductions
5478 in ctx->for_simd_scan_phase is_simd regions.
5479 (lower_omp_scan): Set is_simd also on simd constructs composited
5480 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
5481 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
5482 emit their body after in simd constructs composited with worksharing
5484 (lower_omp_for_scan): Handle worksharing loop composited with simd.
5486 * omp-low.c (omp_find_scan): Make static.
5487 (lower_omp_for_scan): Fix order of merge arguments in input phase of
5488 the second loop, var2 represents the first partial sum and so needs
5489 to go before rprivb[ivar].
5491 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
5493 * config/rs6000/rs6000-logue.c: Remove unused code.
5495 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5497 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
5499 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
5502 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
5503 check with a frame laid out check.
5505 2019-07-05 Richard Biener <rguenther@suse.de>
5507 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
5508 when comparing against a store with possibly the same value.
5510 2019-07-05 Richard Biener <rguenther@suse.de>
5512 PR tree-optimization/91091
5513 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
5514 (walk_non_aliased_vuses): Likewise.
5515 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
5516 (get_continuation_for_phi): New tbaa_p parameter and pass
5518 (walk_non_aliased_vuses): Likewise.
5519 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
5520 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
5521 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
5523 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
5524 (adjust_offsets_for_equal_base_address): New function.
5525 (vn_reference_lookup_3): Use it to catch more base equivalences.
5526 Handle and pass down tbaa_p flag.
5527 (vn_reference_lookup_pieces): Adjust.
5528 (vn_reference_lookup): Remove alias-set altering, instead pass
5529 down false as tbaa_p.
5531 2019-07-05 Richard Biener <rguenther@suse.de>
5533 PR tree-optimization/91091
5534 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
5535 accesses can happen with -fno-strict-aliasing.
5537 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
5539 * tree-ssa-alias.c (alias_stats): Add
5540 nonoverlapping_component_refs_since_match_p_must_overlap.
5541 (dump_alias_stats): Print it.
5542 (nonoverlapping_component_refs_since_match_p): Add early exit.
5543 (nonoverlapping_component_refs_p): Do not account early exit.
5545 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5547 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
5548 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
5549 (emit_eh_dispatch): Delete.
5550 (lower_catch): Emit the eh_dispatch manually and set the location of
5551 the first catch statement onto it.
5552 (lower_eh_filter): Emit the eh_dispatch manually and set location.
5553 (lower_eh_dispatch): Propagate location.
5554 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
5555 (eliminate_build): Likewise.
5557 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
5559 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
5560 phi nodes if possible.
5561 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
5562 location info on the newly created statement.
5563 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
5564 newly created increment if needed.
5566 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5569 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
5570 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
5571 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
5572 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
5573 ctx->add_safelen1 is set.
5575 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
5576 GOMP_loop_start at the start of second worksharing loop in a scan.
5577 For nowait, don't emit GOMP_loop_end_nowait at the end of first
5578 worksharing loop in a scan even if there are conditional lastprivates,
5579 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
5581 2019-07-04 Jan Hubicka <jh@suse.cz>
5583 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
5584 Fix check for match in the ref walk.
5586 2019-07-04 Martin Liska <mliska@suse.cz>
5588 * tree-ssa-loop-niter.c
5589 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
5590 (estimate_numbers_of_iterations):
5591 Support __builtin_expect_with_probability for analysis
5592 of # of loop iterations.
5594 2019-07-04 Alexandre Oliva <oliva@adacore.com>
5596 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
5597 * except.c: Likewise.
5598 * expr.c (expand_expr_real_1): Reject it.
5599 * gimplify.c (gimplify_expr): Gimplify it, within
5601 * tree-dump.c (dequeue_and_dump): Dump it.
5602 * tree-pretty-print.c (dump_generic_node): Likewise.
5603 * tree.c (block_may_fallthru): Handle it.
5604 * tree.def (EH_ELSE_EXPR): Introduce it.
5605 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
5606 with GIMPLE_EH_ELSE as try/finally/else.
5608 2019-07-04 Richard Biener <rguenther@suse.de>
5611 * tree-pass.h (execute_all_ipa_transforms): Add a flag
5612 parameter whether to disable GC collection.
5613 * passes.c (execute_one_ipa_transform_pass): Likewise, and
5615 (execute_all_ipa_transforms): Likewise and pass it down.
5616 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
5617 collection from applying IPA transforms.
5618 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
5619 from applying IPA transforms.
5621 2019-07-04 Richard Biener <rguenther@suse.de>
5623 PR tree-optimization/90911
5624 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
5625 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
5626 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5627 scalar_loop_scaling.
5628 (vect_transform_loop): Scale scalar loop profile if needed.
5629 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
5630 the loop copy from if-conversion adjust edge probabilities
5631 and scale the vectorized loop body profile, queue the scalar
5632 profile for updating after peeling.
5634 2019-07-04 Jan Hubicka <jh@suse.cz>
5636 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
5637 parameters; return early for must-alias.
5638 (indirect_ref_may_alias_decl_p): Likewise; when establishing
5639 outer types match, try nonoverlapping_component_refs
5640 if must-alias is not obvious.
5641 (indirect_refs_may_alias_p): Likewise.
5642 (refs_may_alias_p_2): Likewise.
5644 2019-07-04 Richard Biener <rguenther@suse.de>
5646 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
5648 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
5650 (struct vn_walk_cb_data): New callback data struct.
5651 (vn_reference_lookup_2): Adjust.
5652 (vn_reference_lookup_3): Likewise.
5653 (vn_reference_lookup_pieces): Likewise.
5654 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
5655 (visit_reference_op_load): Adjust.
5657 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5659 PR tree-optimization/91063
5660 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
5661 stmt from stmts sequence before calling vect_init_vector_1.
5664 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5667 * fwprop.c (reg_single_def_p): New function.
5668 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
5669 (forward_propagate_into): New parameter reg_prop_only
5670 with default value false.
5671 Propagate def's src into loop only if SET_SRC and SET_DEST
5672 of def_set have single definitions.
5673 Likewise if reg_prop_only is set to true.
5674 (fwprop): New param fwprop_addr_p.
5675 Integrate fwprop_addr into fwprop.
5676 (fwprop_addr): Remove.
5677 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
5679 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
5680 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
5681 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
5683 2019-07-04 Jakub Jelinek <jakub@redhat.com>
5685 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
5686 in worksharing loop scans.
5688 PR tree-optimization/91074
5689 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
5692 PR rtl-optimization/90756
5693 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
5696 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
5698 * config/aarch64/aarch64.md: Remove redundant constraints from
5699 define_expand but keep some patterns untouched if they are
5700 specially selected by TARGET_SECONDARY_RELOAD hook.
5701 * config/aarch64/aarch64-sve.md: Likewise.
5702 * config/aarch64/atomics.md: Remove redundant constraints from
5704 * config/aarch64/aarch64-simd.md: Likewise.
5706 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5708 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
5709 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
5710 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
5712 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
5715 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
5717 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
5718 (STARTFILE_SPEC): Split crt3 into a separate spec.
5719 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
5720 (DARWIN_CRT2_SPEC): New.
5721 (DARWIN_CRT3_SPEC): New.
5722 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
5723 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
5724 (DARWIN_CRT3_SPEC): New.
5726 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
5728 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
5729 Change the RTL attribute "length" from "4" to "*" to allow the
5730 length attribute to be adjusted automatically for prefixed load,
5731 store, and add immediate instructions.
5732 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
5734 (extendsi<mode>2, EXTSI iterator): Likewise.
5735 (movsi_internal1): Likewise.
5736 (movsi_from_sf): Likewise.
5737 (movdi_from_sf_zero_ext): Likewise.
5738 (mov<mode>_internal): Likewise.
5739 (movcc_internal1, QHI iterator): Likewise.
5740 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
5741 (movsf_from_si): Likewise.
5742 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
5743 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
5744 (mov<mode>, FMOVE128 iterator): Likewise.
5745 (movdi_internal64): Likewise.
5746 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
5748 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
5749 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
5750 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
5751 (vsx_splat_v4sf): Likewise.
5753 2019-07-03 Mark Wielaard <mark@klomp.org>
5756 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
5757 DW_AT_addr_base if there is actually a .debug_addr section with
5759 (output_addr_table): Add DWARF5 table header generation here after
5760 checking there are actually any addresses from...
5761 (dwarf2out_finish): ...here.
5763 2019-07-03 Richard Biener <rguenther@suse.de>
5766 * match.pd (vec_perm -> bit_insert): Fix element read from
5769 2019-07-03 Martin Liska <mliska@suse.cz>
5771 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
5772 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
5774 * generic-match-head.c: Include dbgcnt.h.
5775 * gimple-match-head.c: Likewise.
5777 2019-07-03 Martin Liska <mliska@suse.cz>
5779 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
5780 (GCOV_COUNTER_V_TOPN): New.
5781 (GCOV_COUNTER_V_INDIR): Use _topn.
5782 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
5783 (GCOV_TOPN_VALUES): New.
5784 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
5785 (GCOV_TOPN_VALUES_COUNTERS): New.
5786 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
5788 (gimple_init_gcov_profiler): Rename variables from one_value
5790 (gimple_gen_one_value_profiler): Remove.
5791 (gimple_gen_topn_values_profiler): New function.
5792 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
5793 names instead of SINGLE_VALUE.
5794 (stream_out_histogram_value): Likewise.
5795 (stream_in_histogram_value): Likewise.
5796 (get_most_common_single_value): Likewise.
5797 (gimple_divmod_fixed_value_transform): Likewise.
5798 (gimple_stringops_transform): Likewise.
5799 (gimple_divmod_values_to_profile): Likewise.
5800 (gimple_stringops_values_to_profile): Likewise.
5801 (gimple_find_values_to_profile): Likewise.
5802 * value-prof.h (enum hist_type): Rename to TOPN.
5803 (gimple_gen_one_value_profiler): Remove.
5804 (gimple_gen_topn_values_profiler): New.
5806 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
5808 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
5809 if it has the DW_AT_data_member_location attribute.
5811 2019-07-03 Richard Biener <rguenther@suse.de>
5813 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
5816 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
5818 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
5819 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
5820 (tlsdesc_small_sve_<mode>): Likewise.
5822 2019-07-03 Martin Liska <mliska@suse.cz>
5824 * Makefile.in: Define ZSTD_LIB.
5825 * common.opt: Adjust compression level
5826 to support also zstd levels.
5827 * config.in: Regenerate.
5828 * configure: Likewise.
5829 * configure.ac: Add --with-zstd and --with-zstd-include options
5831 * doc/install.texi: Mention zstd dependency.
5832 * gcc.c: Print supported LTO compression algorithms.
5833 * lto-compress.c (lto_normalized_zstd_level): Likewise.
5834 (lto_compression_zstd): Likewise.
5835 (lto_uncompression_zstd): Likewise.
5836 (lto_end_compression): Dispatch in between zlib and zstd.
5837 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
5838 (lto_uncompression_zlib): Make it static.
5839 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
5840 * lto-section-in.c (lto_get_section_data): Pass info
5841 about used compression.
5842 * lto-streamer-out.c: By default use zstd when possible.
5843 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
5844 (TV_IPA_LTO_COMPRESS): Likewise for compression.
5846 2019-07-03 Martin Liska <mliska@suse.cz>
5848 * lto-section-in.c (lto_get_section_data): Add "lto" section.
5849 * lto-section-out.c (lto_destroy_simple_output_block): Never
5850 compress LTO_section_lto section.
5851 * lto-streamer-out.c (produce_asm): Do not set major_version
5853 (lto_output_toplevel_asms): Likewise.
5854 (produce_lto_section): New function.
5855 (lto_output): Call produce_lto_section.
5856 (lto_write_mode_table): Do not set major_version and
5858 (produce_asm_for_decls): Likewise.
5859 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
5861 (struct lto_header): Remove.
5862 (struct lto_section): New struct.
5863 (struct lto_simple_header): Do not inherit from lto_header.
5864 (struct lto_file_decl_data): Add lto_section_header field.
5866 2019-07-03 Martin Liska <mliska@suse.cz>
5868 * lra-eliminations.c (eliminate_regs_in_insn): Remove
5870 * reg-stack.c (check_asm_stack_operands): Likewise.
5871 * tree-ssa-structalias.c (create_function_info_for): Likewise.
5872 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
5873 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
5876 2019-07-03 Martin Liska <mliska@suse.cz>
5878 PR tree-optimization/90892
5879 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
5880 in string constants.
5882 2019-07-03 Martin Liska <mliska@suse.cz>
5885 * multiple_target.c (create_dispatcher_calls): Add to comdat
5886 group only if set for ifunc.
5888 2019-07-03 Martin Liska <mliska@suse.cz>
5891 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
5892 Define local_object_name in outer scope in order to handle
5893 use-after-scope issue.
5895 2019-07-03 Martin Liska <mliska@suse.cz>
5897 * common.opt: Add fprofile-note.
5898 * coverage.c (coverage_init): Append the option
5900 * doc/invoke.texi: Document -fprofile-note.
5902 2019-07-03 Jakub Jelinek <jakub@redhat.com>
5904 PR tree-optimization/91033
5905 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
5906 vect_analyze_data_refs): Add bool * arguments.
5907 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
5908 if failure is due to scatter/gather, set *fatal to false if non-NULL.
5909 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
5910 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
5911 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
5912 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
5913 vect_analyze_data_refs caller.
5915 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
5917 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
5918 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
5919 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
5920 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5921 OMP_CLAUSE__SCANTEMP_ entry.
5922 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
5923 * tree-pretty-print.c (dump_omp_clause): Likewise.
5924 * tree-nested.c (convert_nonlocal_omp_clauses,
5925 convert_local_omp_clauses): Likewise.
5926 * omp-general.h (struct omp_for_data): Add have_scantemp and
5927 have_nonctrl_scantemp members.
5928 * omp-general.c (omp_extract_for_data): Initialize them.
5929 * omp-low.c (struct omp_context): Add scan_exclusive member.
5930 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
5931 result again with GF_OMP_FOR_KIND_MASK. Initialize also
5932 ctx->scan_exclusive.
5933 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
5934 of !ctx->scan_inclusive.
5935 (lower_rec_input_clauses): Simplify gimplification of dtors using
5936 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
5937 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
5938 loops. Don't add barrier for reduction_omp_orig_ref if
5939 ctx->scan_??xclusive.
5940 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
5941 (lower_omp_scan): Use ctx->scan_exclusive instead
5942 of !ctx->scan_inclusive. Handle worksharing loops with inscan
5943 reductions. Use new_vard != new_var instead of repeated
5944 omp_is_reference calls.
5945 (omp_find_scan, lower_omp_for_scan): New functions.
5946 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
5948 * omp-expand.c (expand_omp_scantemp_alloc): New function.
5949 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
5950 and fd->have_scantemp.
5952 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
5953 on worksharing loop propagate it as shared clause to containing
5956 * omp-expand.c (expand_omp_for_static_nochunk,
5957 expand_omp_for_static_chunk): For nowait worksharing loop with
5958 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
5961 2019-07-02 qing zhao <qing.zhao@oracle.com>
5963 PR preprocessor/90581
5964 * doc/cppopts.texi: Add document for -fmax-include-depth.
5965 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
5967 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
5969 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
5970 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
5971 (mmx_packssdw): Ditto.
5972 (mmx_punpckhbw): Ditto.
5973 (mmx_punpcklbw): Ditto.
5974 (mmx_punpckhwd): Ditto.
5975 (mmx_punpcklwd): Ditto.
5976 (mmx_punpckhdq): Ditto.
5977 (mmx_punpckldq): Ditto.
5978 (*vec_dupv4hi): Ditto.
5979 (*vec_dupv2si): Ditto.
5980 (mmx_pmovmskb): Ditto.
5981 * config/i386/sse.md (sse_cvtpi2ps): Use
5982 TARGET_SSE2 && SSE_REG_P in split condition.
5983 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
5984 TARGET_SSSE3 && SSE_REGNO_P in split condition.
5985 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
5986 (ssse3_pshufbv8qi3): Ditto.
5987 (ssse3_palignrdi): Ditto.
5989 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
5991 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
5992 with inlined save and restore.
5994 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
5996 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
5997 to be inserted on single successor edge of the entry block. Then call
5998 commit_edge_insertions instead of inserting the instructions manually.
5999 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
6000 RTL expansion and rebuild jump labels chain.
6002 2019-07-02 Richard Biener <rguenther@suse.de>
6004 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
6006 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6008 * tree.c (build_common_tree_nodes): Initialize them.
6009 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
6010 Make declarations comments.
6011 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
6012 chrec_known): Remove definitions.
6013 (initialize_scalar_evolutions_analyzer): Remove.
6014 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
6015 * tree-streamer.c (preload_common_nodes): Do not preload
6016 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
6018 2019-07-02 Jan Hubicka <jh@suse.cz>
6020 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
6023 2019-07-02 Jan Hubicka <jh@suse.cz>
6025 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
6027 (nonoverlapping_component_refs_since_match_p): ... this one;
6028 handle also non-decl bases; return -1 if search gave up.
6029 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
6030 nonoverlapping_component_refs_of_decl_p_no_alias to
6031 nonoverlapping_component_refs_since_match_p_may_alias,
6032 nonoverlapping_component_refs_since_match_p_no_alias.
6033 (dump_alias_stats): Update dumping.
6034 (aliasing_matching_component_refs_p): Break out from ...;
6035 dispatch to nonoverlapping_component_refs_for_decl_p
6036 and nonoverlapping_component_refs_since_match_p.
6037 (aliasing_component_refs_p): ... here; call
6038 nonoverlapping_component_refs_p in scenarios where we can not
6039 precisely determine base match.
6040 (decl_refs_may_alias_p): Use
6041 nonoverlapping_component_refs_since_match_p.
6042 (indirect_ref_may_alias_decl_p): Do not call
6043 nonoverlapping_component_refs_p.
6044 (indirect_refs_may_alias_p): Likewise.
6046 2019-07-02 Jan Hubicka <jh@suse.cz>
6048 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
6049 to clobber of return value.
6051 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6053 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
6054 for is_neon_type instructions that have not already been categorized.
6056 2019-07-02 Richard Biener <rguenther@suse.de>
6058 PR tree-optimization/58483
6059 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
6060 for MEM_REF base hashing.
6061 (equal_mem_array_ref_p): Likewise for base comparison.
6063 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6065 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
6067 (signbit<mode>2): Use that name. Simplify.
6069 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
6072 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
6073 Tune heuristic from PR71016 to allow MIN / MAX.
6075 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6077 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
6079 (abs<mode>2): Use that name. Simplify.
6081 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6083 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
6085 (neg<mode>2): Use that name. Simplify.
6087 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6089 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
6091 (abs<mode>2): Use that name. Simplify.
6093 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6095 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
6097 (neg<mode>2): Use that name. Simplify.
6099 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
6101 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
6102 ("enabled" attribute): Handle sse_noavx isa attribute.
6103 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
6104 Use TARGET_SSE && SSE_REGNO_P in split condition.
6105 (*vec_dupv2sf): Ditto.
6107 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6109 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
6111 (floatsi<mode>2): Use that name. Simplify.
6113 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6115 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
6117 (extenddf<mode>2_vsx): Make this a parameterized name.
6118 (extenddf<mode>2): Use those names. Simplify.
6120 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6122 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
6124 (eh_return): Use that name. Simplify.
6126 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6128 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
6129 (doloop_end): Use that name. Simplify.
6131 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6133 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
6135 (indirect_jump): Use that name. Simplify.
6137 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6139 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
6141 (abs<mode>2): Use that name. Simplify.
6143 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6145 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
6147 (fix_trunc<mode>si2): Use that name. Simplify.
6149 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6151 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
6152 (allocate_stack): Use that name. Simplify.
6154 2019-07-01 Martin Sebor <msebor@redhat.com>
6157 * hash-map.h (hash_map::put): On insertion invoke element ctor.
6158 (hash_map::get_or_insert): Same. Reformat comment.
6159 * hash-set.h (hash_set::add): On insertion invoke element ctor.
6160 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6161 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
6162 * hash-table.h (hash_table::operator=): Prevent copy assignment.
6163 (hash_table::hash_table (const hash_table&)): Use copy ctor
6164 instead of assignment to copy elements.
6166 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
6167 John David Anglin <danglin@gcc.gnu.org>
6170 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
6171 using saved frame pointer.
6173 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
6176 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
6177 Add frame clobber and schedule blockage.
6179 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
6181 * doc/invoke.texi (Link Options): Further editorial changes to
6182 -flinker-output docs.
6184 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
6186 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
6187 Load both operands of a PLUS into registers separately.
6189 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
6191 * config/s390/vector.md: Fix shift count operand printing.
6193 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6195 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
6197 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6199 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
6200 Use recog_data to test for an output operand.
6202 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6204 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
6205 exclude any others that are disparaged or that are bound to need
6207 (ira_get_dup_out_num): Expand comment.
6209 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6211 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
6212 constraint string for each operand/alternative combo. Only handle
6213 '%' at the start of constraint strings, and look for it outside
6216 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
6218 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
6219 alternative_mask instead of HARD_REG_SET to represent a
6220 bitmask of alternatives.
6221 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
6222 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
6224 2019-07-01 Martin Liska <mliska@suse.cz>
6226 * edit-context.c (test_applying_fixits_unreadable_file): Do not
6227 use () for a constructor call.
6228 (test_applying_fixits_line_out_of_range): Likewise.
6229 * ggc-page.c (alloc_page): Use (void *) for %p printf format
6231 (free_page): Likewise.
6233 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
6235 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
6236 parameter names to match usage (no functional change).
6237 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
6239 2019-07-01 Richard Biener <rguenther@suse.de>
6241 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
6243 (pass_fre::execute): Honor it.
6244 * passes.def: Adjust pass_fre invocations to allow iterating,
6245 add non-iterating pass_fre before late threading/dom.
6247 2019-07-01 Richard Biener <rguenther@suse.de>
6249 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
6250 TARGET_MEM_REF handling to also handle address-taken ones.
6252 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
6254 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6255 hardware attributes): Document avx512vp2intersect.
6257 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6259 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
6260 (abs<mode>2): New expander.
6261 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
6262 Use CODE_FOR_ssse3_absv8qi2.
6263 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
6264 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
6266 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6268 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
6269 to sse, sse_noavx and avx. Update all uses.
6271 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
6273 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
6274 (*mmx_<plusminus_insn><mode>3): Ditto.
6275 (*mmx_mulv4hi3"): Ditto.
6276 (*mmx_smulv4hi3_highpart): Ditto.
6277 (*mmx_umulv4hi3_highpart): Ditto.
6278 (*mmx_pmaddwd): Ditto.
6279 (*sse2_umulv1siv1di3): Ditto.
6280 (*mmx_<code>v4hi3): Ditto.
6281 (*mmx_<code>v8qi3): Ditto.
6282 (mmx_ashr<mode>3): Ditto.
6283 ("mmx_<shift_insn><mode>3): Ditto.
6284 (*mmx_eq<mode>3): Ditto.
6285 (mmx_gt<mode>3): Ditto.
6286 (mmx_andnot<mode>3): Ditto.
6287 (*mmx_<code><mode>3): Ditto.
6288 (*mmx_pinsrw): Ditto.
6289 (*mmx_pextrw): Ditto.
6290 (mmx_pshufw_1): Ditto.
6291 (*mmx_uavgv8qi3): Ditto.
6292 (*mmx_uavgv4hi3): Ditto.
6293 ("mmx_psadbw): Ditto.
6294 * config/i386/sse.md (sse_cvtps2pi): Ditto.
6295 (sse_cvttps2pi): Ditto.
6296 (ssse3_pmaddubsw): Ditto.
6297 (*ssse3_pmulhrswv4hi3): Ditto.
6298 (ssse3_psign<mode>3): Ditto.
6300 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
6302 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
6303 adjustment for bit-fields to all aggregate types.
6305 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
6307 * config/rs6000/predicates.md (pcrel_address): Use
6308 SYMBOL_REF_LOCAL_P to determine if a label is local.
6309 (pcrel_external_address): New predicate.
6310 (non_prefixed_mem_operand): Delete, predicate not used.
6311 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
6312 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
6314 (SYMBOL_REF_PCREL_P): Likewise.
6317 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
6319 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
6320 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
6321 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
6323 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6325 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
6326 override on extra_headers.
6328 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
6330 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
6331 * config/darwin-driver.c (darwin_default_min_version): Remove newline
6333 (darwin_driver_init): Likewise.
6335 2019-06-28 Jan Beulich <jbeulich@suse.com>
6337 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6338 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
6339 Eliminate redundant alternative.
6341 2019-06-28 Jan Beulich <jbeulich@suse.com>
6343 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
6344 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
6347 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
6349 * config/arc/arc.c (arc_rtx_costs): All short instructions are
6350 having a lower cost regardless of the speed option.
6352 2019-06-28 Jan Beulich <jbeulich@suse.com>
6354 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
6355 vector_operand plus, on both alternatives, "Bm" constraint.
6357 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
6359 * config/arm/arm.md: Remove redundant constraints from
6360 define_expand but leave reload_inm and reload_outm patterns
6361 untouched since they need special constraints to work.
6362 * config/arm/arm-fixed.md: Remove redundant constraints from
6364 * config/arm/iwmmxt.md: Likewise.
6365 * config/arm/neon.md: Likewise.
6366 * config/arm/sync.md: Likewise.
6367 * config/arm/thumb1.md: Likewise.
6368 * config/arm/vec-common.md: Likewise.
6370 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
6372 * doc/install.texi: Document --disable-tm-clone-registry.
6374 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6377 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
6380 PR tree-optimization/91010
6381 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
6382 return true. Otherwise, don't call operand_equal_p if offset1 or
6383 offset2 is NULL and just return false.
6385 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6387 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
6388 user-specified float mode choice for kernel mode code.
6390 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6392 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
6395 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
6397 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
6398 use longcall for 64b code.
6400 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
6402 * builtins.c (get_memory_rtx): Fix comment.
6403 * optabs.def (movmem_optab): Change to cpymem_optab.
6404 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
6405 (emit_block_move_hints): Change movmem to cpymem.
6406 * defaults.h: Change movmem to cpymem.
6407 * targhooks.c (get_move_ratio): Change movmem to cpymem.
6408 (default_use_by_pieces_infrastructure_p): Ditto.
6409 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
6410 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
6412 * config/aarch64/aarch64.h: Change movmem to cpymem.
6413 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
6414 * config/alpha/alpha.h: Change movmem to cpymem in comment.
6415 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
6417 * config/arc/arc-protos.h: Change movmem to cpymem.
6418 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
6419 * config/arc/arc.h: Change movmem to cpymem in comment.
6420 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
6421 * config/arm/arm-protos.h: Change movmem to cpymem in names.
6422 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
6423 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
6424 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
6425 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
6426 * config/avr/avr-protos.h: Change movmem to cpymem.
6427 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
6428 avr_out_movmem): Change movmem to cpymem.
6429 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
6430 Change movmem to cpymem.
6431 * config/bfin/bfin-protos.h: Change movmem to cpymem.
6432 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
6433 Change movmem to cpymem.
6434 * config/bfin/bfin.h: Change movmem to cpymem in comment.
6435 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
6436 * config/c6x/c6x-protos.h: Change movmem to cpymem.
6437 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
6438 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
6439 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
6440 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
6441 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
6442 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
6443 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
6444 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
6445 expand_small_cpymem_or_setmem,
6446 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
6447 expand_set_or_cpymem_constant_prologue,
6448 ix86_expand_set_or_cpymem): Change movmem to cpymem.
6449 * config/i386/i386-protos.h: Change movmem to cpymem.
6450 * config/i386/i386.h: Change movmem to cpymem in comment.
6451 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
6452 (setmem<mode>): Change expansion function name.
6453 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
6454 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
6455 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
6456 * config/m32c/m32c-protos.h: Change movmem to cpymem.
6457 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
6458 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
6459 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
6461 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
6462 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
6463 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
6464 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
6465 Change movmem to cpymem.
6466 * config/mips/mips.h: Change movmem to cpymem.
6467 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
6468 * config/nds32/nds32-memory-manipulation.c
6469 (nds32_expand_movmemsi_loop_unknown_size,
6470 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
6471 nds32_expand_movmemsi_unroll,
6472 nds32_expand_movmemsi): Change movmem to cpymem.
6473 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
6474 * config/nds32/nds32-protos.h: Change movmem to cpymem.
6475 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
6476 (pa_adjust_insn_length): Change call to compute_movmem_length.
6477 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
6478 movmemdi, movmemdi_prereload,
6479 movmemdi_postreload): Change movmem to cpymem.
6480 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
6481 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
6482 * config/riscv/riscv.c: Change movmem to cpymem in comment.
6483 * config/riscv/riscv.h: Change movmem to cpymem.
6484 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
6485 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
6486 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
6488 * config/s390/s390-protos.h: Change movmem to cpymem.
6489 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
6490 s390_expand_insv): Change movmem to cpymem.
6491 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
6492 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
6493 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
6494 * config/sparc/sparc.h: Change movmem to cpymem in comment.
6495 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
6496 for nonexistent function.
6497 * config/vax/vax.h: Change movmem to cpymem in comment.
6498 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
6499 * config/visium/visium.h: Change movmem to cpymem in comment.
6500 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
6501 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
6502 * doc/md.texi: Change movmem to cpymem and update description to match.
6503 * doc/rtl.texi: Change movmem to cpymem.
6504 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
6505 * doc/tm.texi: Regenerate.
6507 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
6509 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
6510 -fvariable-expansion-in-unroller by default.
6511 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
6514 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
6517 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6518 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6520 * config.gcc(rs6000-*-*): Define target_gtfiles.
6522 2019-06-27 Jan Hubicka <jh@suse.cz>
6524 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
6525 (add_type_duplicate): When odr hash is not allocated, to nothing.
6526 (odr_based_tbaa_p): New function.
6527 (set_type_canonical_for_odr_type): New function.
6528 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
6529 set_type_canonical_for_odr_type): New.
6530 * tree.c (gimple_canonical_types_compatible_p): ODR types with
6531 ODR based TBAA are not equivalent to non-ODR types.
6533 2019-06-27 Martin Liska <mliska@suse.cz>
6535 PR tree-optimization/90974
6536 PR rtl-optimization/90975
6537 PR rtl-optimization/90976
6539 PR tree-optimization/91017
6540 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
6542 * lra.c (lra_set_insn_recog_data): Remove a leftover from
6543 initial commit of IRA.
6544 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
6546 * tree-vect-loop.c (vect_create_epilog_for_reduction):
6547 Remove unused mode1.
6548 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
6551 2019-06-27 Jakub Jelinek <jakub@redhat.com>
6554 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
6555 instead of register_operand for operands[1], add m to its constraints
6556 if operands[2] uses "C" constraint. Ensure in condition that if
6557 operands[2] is not 0, then operands[1] is not a MEM. For last two
6558 alternatives, use unaligned loads instead of aligned if operands[1] is
6561 2019-06-27 Martin Liska <mliska@suse.cz>
6563 * asan.c (asan_emit_allocas_unpoison): Remove obviously
6565 * bt-load.c (move_btr_def): Likewise.
6566 * builtins.c (expand_builtin_apply_args_1): Likewise.
6567 (expand_builtin_apply): Likewise.
6568 * cfgexpand.c (expand_asm_stmt): Likewise.
6569 (construct_init_block): Likewise.
6570 * cfghooks.c (verify_flow_info): Likewise.
6571 * cfgloopmanip.c (remove_path): Likewise.
6572 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
6573 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
6574 * combine.c (simplify_if_then_else): Likewise.
6575 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
6576 (choose_basereg): Likewise.
6577 (ix86_expand_prologue): Likewise.
6578 (ix86_preferred_output_reload_class): Likewise.
6579 * cselib.c (cselib_record_sets): Likewise.
6580 * df-scan.c (df_scan_alloc): Likewise.
6581 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
6582 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
6583 * emit-rtl.c (try_split): Likewise.
6584 * graphite-scop-detection.c (assign_parameter_index_in_region):
6586 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
6587 * ira-color.c (setup_profitable_hard_regs): Likewise.
6588 * ira.c (rtx_moveable_p): Likewise.
6589 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6590 * read-rtl.c (read_subst_mapping): Likewise.
6591 * regrename.c (scan_rtx): Likewise.
6592 * reorg.c (fill_slots_from_thread): Likewise.
6593 * tree-inline.c (tree_function_versioning): Likewise.
6594 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6595 * tree-ssa-sink.c (statement_sink_location): Likewise.
6596 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6597 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
6598 (vect_create_epilog_for_reduction): Likewise.
6599 * tree.c (build_nonstandard_integer_type): Likewise.
6601 2019-06-27 Richard Biener <rguenther@suse.de>
6603 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
6605 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
6607 PR tree-optimization/89772
6608 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
6609 out-of-bound accesses checking.
6611 2019-06-27 Martin Liska <mliska@suse.cz>
6613 PR tree-optimization/91014
6614 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
6615 when LHS is NULL_TREE.
6617 2019-06-27 Martin Liska <mliska@suse.cz>
6619 * symbol-summary.h (traverse): Pass
6620 argument a to the call of callback.
6621 (gt_ggc_mx): Mark arguments as unused.
6622 (gt_pch_nx): Likewise.
6624 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
6627 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
6630 2019-06-26 Jeff Law <law@redhat.com>
6632 PR tree-optimization/90883
6633 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
6634 (delete_dead_or_redundant_assignment): Likewise.
6636 PR tree-optimization/90883
6637 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
6638 * tree-ssa-dse.c: Update various comments to distinguish between
6639 dead and redundant stores.
6640 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
6641 (dse_optimize_redundant_stores): New function.
6642 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
6643 Distinguish between dead and redundant calls in dump output. All
6645 (delete_dead_or_redundant_assignment): Similarly for assignments.
6646 (dse_optimize_stmt): Handle _CHK variants. For statements which
6647 store 0 into multiple memory locations, try to prove a subsequent
6650 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
6653 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
6654 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
6656 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6658 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
6659 (branch_islands): New extern.
6660 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
6661 * config/rs6000/rs6000.c: .. here.
6663 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
6665 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
6666 (powerpc*-*-*) ... to here.
6668 2019-06-26 Jeff Law <law@redhat.com>
6670 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
6671 memcpy, memmove and memset builtins.
6672 (maybe_trim_memstar_call): Likewise.
6674 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6676 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
6678 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
6680 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
6682 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6684 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
6686 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
6688 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
6691 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6693 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
6695 2019-06-26 Richard Biener <rguenther@suse.de>
6698 * tree-inline.c (remap_ssa_name): Copy SSA range info.
6700 2019-06-26 Richard Biener <rguenther@suse.de>
6702 * lto-streamer.h (lto_bitmap_alloc): Remove.
6703 (lto_bitmap_free): Likewise.
6704 * lto-streamer.c (lto_bitmap_alloc): Remove.
6705 (lto_bitmap_free): Likewise.
6706 (lto_obstack): Likewise.
6707 (lto_obstack_initialized): Likewise.
6708 * lto-streamer-out.c (lto_output): Use own obstack for local
6709 bitmap, free it consistently.
6711 2019-06-26 Jakub Jelinek <jakub@redhat.com>
6714 * config/i386/sse.md
6715 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
6716 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
6717 insns if operands[2] is misaligned_operand.
6719 2019-06-26 Li Jia He <helijia@linux.ibm.com>
6721 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
6723 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
6726 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
6728 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
6730 2019-06-26 Martin Liska <mliska@suse.cz>
6732 PR tree-optimization/90973
6733 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
6734 epilogue_cost_vec instead of prologue_cost_vec for
6737 2019-06-26 Martin Liska <mliska@suse.cz>
6739 * bb-reorder.c (connect_better_edge_p): Add missing else
6740 statement in the middle of if-else statements.
6742 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
6743 H.J. Lu <hongjiu.lu@intel.com>
6744 Olga Makhotina <olga.makhotina@intel.com>
6746 * common/config/i386/i386-common.c
6747 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
6748 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
6749 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
6750 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
6751 (ix86_handle_option): Handle -mavx512vp2intersect.
6752 * config/i386/avx512vp2intersectintrin.h: New.
6753 * config/i386/avx512vp2intersectvlintrin.h: New.
6754 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
6755 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
6757 * config/i386/i386-builtin-types.def: Add new types.
6758 * config/i386/i386-builtin.def: Add new builtins.
6759 * config/i386/i386-builtins.c: (enum processor_features): Add
6760 F_AVX512VP2INTERSECT.
6761 (static const _isa_names_table isa_names_table): Ditto.
6762 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6763 __AVX512VP2INTERSECT__.
6764 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
6765 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
6766 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
6767 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
6768 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
6769 * config/i386/i386-options.c (ix86_target_string): Add
6770 -mavx512vp2intersect.
6771 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
6772 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
6773 P2HImode and P2QImode.
6774 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
6775 number for P2QImode and P2HImode.
6776 (ix86_regmode_natural_size): New function.
6777 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
6778 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
6779 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
6780 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
6781 * config/i386/i386.opt: Add -mavx512vp2intersect.
6782 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
6783 avx512vp2intersectvlintrin.h.
6784 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
6785 (define_mode_iterator VI48_AVX512VP2VL): New.
6786 (avx512vp2intersect_2intersect<mode>,
6787 avx512vp2intersect_2intersectv16si): New define_insn patterns.
6788 * config.gcc: Add avx512vp2intersectvlintrin.h and
6789 avx512vp2intersectintrin.h to extra_headers.
6790 * doc/invoke.texi: Document -mavx512vp2intersect.
6792 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
6794 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
6796 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
6798 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
6799 savres_routine_syms, savres_routine_name, morestack_ref,
6800 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6801 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6802 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6803 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6804 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6805 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6806 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6807 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6808 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6809 get_stack_clash_protection_probe_interval,
6810 get_stack_clash_protection_guard_size,
6811 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6812 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6813 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6814 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6815 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6816 gen_frame_mem_offset, rs6000_savres_routine_name,
6817 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6818 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6819 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6820 rs6000_global_entry_point_prologue_needed_p,
6821 rs6000_get_separate_components, rs6000_components_for_bb,
6822 rs6000_disqualify_components, rs6000_emit_prologue_components,
6823 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6824 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6825 rs6000_output_savres_externs, rs6000_output_function_prologue,
6826 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6827 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6828 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6829 rs6000_output_function_epilogue, gen_add3_const,
6830 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6831 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6833 (machine_function): Moved to rs6000.h.
6834 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
6836 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
6837 savres_routine_syms, savres_routine_name, morestack_ref,
6838 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
6839 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
6840 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
6841 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
6842 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
6843 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
6844 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
6845 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
6846 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
6847 get_stack_clash_protection_probe_interval,
6848 get_stack_clash_protection_guard_size,
6849 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
6850 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
6851 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
6852 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
6853 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
6854 gen_frame_mem_offset, rs6000_savres_routine_name,
6855 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
6856 ptr_regno_for_savres, rs6000_emit_savres_rtx,
6857 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
6858 rs6000_global_entry_point_prologue_needed_p,
6859 rs6000_get_separate_components, rs6000_components_for_bb,
6860 rs6000_disqualify_components, rs6000_emit_prologue_components,
6861 rs6000_emit_epilogue_components, rs6000_set_handled_components,
6862 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
6863 rs6000_output_savres_externs, rs6000_output_function_prologue,
6864 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
6865 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
6866 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
6867 rs6000_output_function_epilogue, gen_add3_const,
6868 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
6869 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
6870 to here from rs6000.c.
6871 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
6872 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
6873 quad_address_offset_p) Moved to here from rs6000.c.
6874 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
6875 * config/config.gcc: Add new source file rs6000-logue.c to garbage
6878 2019-06-25 Martin Liska <mliska@suse.cz>
6880 * hash-table.c (hashtab_chk_error): Move here from ...
6881 * hash-table.h (hashtab_chk_error): ... here.
6883 2019-06-25 Martin Liska <mliska@suse.cz>
6885 PR tree-optimization/90978
6886 * df-scan.c (df_update_entry_block_defs): Remove dead else
6888 (df_update_exit_block_uses): Likewise.
6890 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
6891 Andrew Stubbs <ams@codesourcery.com>
6893 * config.gcc (thread_file): Set to gcn for AMD GCN.
6894 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
6895 (TARGET_EMUTLS_VAR_INIT): New hook.
6897 2019-06-25 Martin Jambor <mjambor@suse.cz>
6900 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
6902 2019-06-25 Richard Biener <rguenther@suse.de>
6904 PR tree-optimization/90930
6905 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
6906 into parallel form in the last pass instance.
6908 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
6910 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
6911 (arc_legitimize_pic_address): Simplify and cleanup the function.
6912 (SYMBOLIC_CONST): Remove.
6913 (prepare_pic_move): Likewise.
6914 (prepare_move_operands): Handle complex mov cases here.
6915 (arc_legitimize_address_0): Remove call to
6916 arc_legitimize_pic_address.
6917 (arc_legitimize_address): Remove call to
6918 arc_legitimize_tls_address.
6919 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
6920 (movhi_insn): Likewise.
6922 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6924 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
6926 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
6927 format of "__intN" types for UINTMAX_TYPE.
6928 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
6929 format of "__intN" types for SIZETYPE.
6930 * tree.c (build_common_tree_nodes): Accept "__intN__"
6931 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
6932 * doc/invoke.texi: Document that __intN__ disables pedantic
6935 2019-06-25 Jan Hubicka <jh@suse.cz>
6937 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
6938 base2_alias_set is non-zero before doing TBAA based disambiguation.
6940 2019-06-25 Martin Liska <mliska@suse.cz>
6942 PR tree-optimization/90973
6943 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
6944 of prologue and epilogue.
6946 2019-06-24 Jan Hubicka <jh@suse.cz>
6948 * ipa-utils.h (type_with_linkage_p): Verify that type is
6950 (odr_type_p): Remove extra return.
6951 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
6952 hash STRING_FLAG only for arrays and integers.
6953 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
6955 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6957 * print-tree.c (print_node): Print cxx-odr-p
6959 * tree.c (need_assembler_name_p): Also check that type
6961 (verify_type_variant): Update verification of SRING_FLAG;
6962 also check CXX_ODR_P.
6963 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
6964 (TYPE_STRING_FLAG): Use it.
6965 (TYPE_CXX_ODR_P): New macro.
6966 * dwarf2out.c (gen_array_type_die): First check that type
6967 is an array and then test string flag.
6969 2019-06-24 Richard Biener <rguenther@suse.de>
6971 PR tree-optimization/90972
6972 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
6973 in common code, dealing with STRING_CST properly.
6975 2019-06-24 Richard Biener <rguenther@suse.de>
6977 PR tree-optimization/90930
6978 PR tree-optimization/90316
6979 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
6982 2019-06-24 Martin Sebor <msebor@redhat.com>
6984 * tree-pretty-print.h: Remove unnecessary punctuation characters
6986 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
6988 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
6990 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
6991 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
6992 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
6994 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
6996 * config/rs6000/darwin.h: Handle GCC target pragma.
6998 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
7000 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
7002 2019-06-22 Jeff Law <law@redhat.com>
7004 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7006 2019-06-22 Jan Hubicka <jh@suse.cz>
7008 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
7009 give up on bitfields; continue searching for different refs
7012 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7014 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7015 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
7016 containing the offset as possible simd lane access. Look through
7017 widening conversion. Move the
7018 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
7020 2019-06-21 Richard Biener <rguenther@suse.de>
7022 PR tree-optimization/90930
7023 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
7024 flag on new stmts to avoid re-processing them.
7026 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
7028 PR c++/90875 - added -Wswitch-outside-range option
7029 * doc/invoke.texi (Wswitch-outside-range): Document.
7031 2019-06-21 Jeff Law <law@redhat.com>
7033 PR tree-optimization/90949
7034 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
7035 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
7037 2019-06-21 Richard Biener <rguenther@suse.de>
7040 * dwarf2out.c (prune_unused_types_walk): Always consider
7041 function-local extern declarations as used.
7043 2019-06-21 Richard Biener <rguenther@suse.de>
7045 PR tree-optimization/90913
7046 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
7047 the scalar variant of if-conversion versioning.
7049 2019-06-21 Jakub Jelinek <jakub@redhat.com>
7051 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
7052 create another "omp scan inscan exclusive" array if
7053 !ctx->scan_inclusive.
7054 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
7055 (lower_omp_scan): Likewise.
7056 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
7057 2-bit bitfield for simd_lane_access_p member.
7058 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
7059 aux == (void *)-4 as simd lane access.
7060 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
7061 comment with permutations to show the canonical permutation order.
7062 (vectorizable_scan_store): Handle exclusive scan.
7063 (vectorizable_store): Call vectorizable_scan_store even for
7064 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
7066 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
7067 "omp simd array" arrays with one byte elements.
7069 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
7071 * config/alpha/alpha.md (@unaligned_store<mode>):
7072 Rename from unaligned_store<mode>.
7073 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
7074 * config/alpha/sync.md (@load_locked_<mode>): Rename
7075 from load_locked_<mode>.
7076 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
7077 (@atomic_compare_and_swap<mode>_1): Rename
7078 from atomic_compare_and_swap<mode>_1.
7079 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
7080 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
7081 Use gen_reload_in_aligned and gen_unaligned_store.
7082 (emit_load_locked): Remove.
7083 (emit_store_conditional): Ditto.
7084 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
7085 (alpha_split_compare_and_swap): Ditto.
7086 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
7087 (alpha_split_compare_and_swap_12): Use gen_load_locked
7088 and gen_store_conditional.
7089 (alpha_split_atomic_exchange): Ditto.
7090 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
7091 (alpha_split_atomic_exchange_12): Use gen_load_locked
7092 and gen_store_conditional.
7094 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
7096 * config/aarch64/aarch64-errata.h: New file.
7097 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
7098 (CA53_ERR_843419_SPEC): Delete.
7099 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
7100 * config/aarch64/aarch64-linux.h: Likewise.
7101 * config/aarch64/aarch64-netbsd.h: Likewise.
7102 * config/aarch64/aarch64-freebsd.h: Likewise.
7104 2019-06-20 Marek Polacek <polacek@redhat.com>
7106 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
7108 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
7110 * config/rs6000/rs6000.md (isa attribute): Add support for
7111 for a future processor.
7113 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
7116 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
7117 standard scalar operation pattern for V2DF.
7118 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
7119 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
7120 (*ieee_<ieee_maxmin><mode>3): Likewise.
7121 (vec_setv2df_0): Likewise.
7123 2019-06-20 Jan Hubicka <jh@suse.cz>
7125 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
7126 parameter; it has no use in gimple memory model.
7127 (indirect_ref_may_alias_decl_p): Update.
7129 2019-06-20 Martin Liska <mliska@suse.cz>
7131 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
7134 2019-06-20 Jakub Jelinek <jakub@redhat.com>
7136 * tree-vect-stmts.c (enum scan_store_kind): New type.
7137 (scan_store_can_perm_p): Change last argument from int * to
7138 vec<enum scan_store_kind> *, record precisely which permutations
7139 need whole vector left shift or that plus VEC_COND_EXPR.
7140 (vectorizable_scan_store): Adjust caller, use whole vector left shift
7141 and additional VEC_COND_EXPR only for those iterations that need it.
7143 2019-06-20 Alexandre Oliva <oliva@adacore.com>
7145 * config.gcc: Fix ARM --with-fpu checking and error message.
7147 2019-06-19 Marek Polacek <polacek@redhat.com>
7149 PR c++/60364 - noreturn after first decl not diagnosed.
7150 * attribs.c (get_attribute_namespace): No longer static.
7151 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
7153 (attr_noreturn_exclusions): Make it extern.
7154 * attribs.h (get_attribute_namespace): Declare.
7155 * tree-inline.c (function_attribute_inlinable_p): Use
7158 2019-06-19 Martin Sebor <msebor@redhat.com>
7160 PR tree-optimization/90626
7161 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
7163 PR tree-optimization/90626
7164 * tree-ssa-strlen.c (strxcmp_unequal): New function.
7165 (handle_builtin_string_cmp): Call it.
7167 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7169 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
7170 and DARWIN_NOPIE_SPEC.
7171 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
7172 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
7173 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
7174 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
7175 (DARWIN_EXPORT_DYNAMIC): Delete.
7176 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
7177 and pie options processing to darwin.h.
7178 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
7180 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
7182 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
7183 in computing the number of options to be moved.
7185 2019-06-19 Maya Rashish <coypu@sdf.org>
7187 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
7188 (CLEAR_INSN_CACHE) Use it.
7190 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
7192 * config/i386/i386.md (cmpstrnsi): Remove dead code.
7194 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
7197 * builtins.c (expand_builtin_setjmp_setup): Save
7198 hard_frame_pointer_rtx.
7199 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
7201 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
7203 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
7205 (remove_reg_equal_offset_note): Remove unused function.
7206 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
7208 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7209 (arc_builtin_setjmp_frame_value): Remove function.
7210 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7211 (avr_builtin_setjmp_frame_value): Remove function.
7212 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7213 (ix86_builtin_setjmp_frame_value): Remove function.
7214 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
7215 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7216 (sparc_builtin_setjmp_frame_value): Remove function.
7217 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
7218 (vax_builtin_setjmp_frame_value): Remove function.
7219 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
7220 pointer if has_nonlocal_label.
7222 2019-06-19 Jakub Jelinek <jakub@redhat.com>
7224 * doc/md.texi: Document vec_shl_<mode> pattern.
7225 * optabs.def (vec_shl_optab): New optab.
7226 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
7227 argument, if == vec_shl_optab, check for left whole vector shift
7228 pattern rather than right shift.
7229 (expand_vec_perm_const): Add vec_shl_optab support.
7230 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
7232 * tree-vect-generic.c (lower_vec_perm): Support permutations which
7233 can be handled by vec_shl_optab.
7234 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
7235 (check_scan_store): Use it.
7236 (vectorizable_scan_store): If target can't do normal permutations,
7237 try to use whole vector left shifts and if needed a VEC_COND_EXPR
7239 * config/i386/sse.md (vec_shl_<mode>): New expander.
7241 * omp-low.c (lower_rec_input_clauses): Handle references properly
7243 (lower_omp_scan): Likewise.
7245 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7247 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
7248 mem_mode is BLKmode.
7250 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
7253 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
7254 pointer adjustment for the case of no callee-saved registers and
7255 stack frame bigger than 128 bytes.
7257 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
7260 * omp-low.c (check_omp_nesting_restrictions): Handle
7261 GF_OMP_TARGET_KIND_OACC_DECLARE.
7263 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
7265 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
7266 (@add<mode>3_carry): Rename from add<mode>3_carry.
7267 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
7268 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
7269 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
7270 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
7271 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
7272 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
7273 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
7274 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
7275 (cmpstrnsi): Use gen_cmp_1.
7276 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
7277 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
7278 (@umonitor_<mode>): Rename from umonitor_<mode>.
7279 * config/i386/i386-expand.c (ix86_expand_copysign):
7280 Use gen_copysign3_const and gen_copysign3_var.
7281 (ix86_expand_xorsign): Use gen_xorsign3_1.
7282 (ix86_expand_branch): Use gen_sub3_carry_ccc,
7283 gen_sub3_carry_ccgz and gen_cmp1.
7284 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
7285 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
7286 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
7287 (ix86_split_lshr): Ditto.
7288 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
7290 2019-06-18 Jason Merrill <jason@redhat.com>
7292 * tree.c (build_constructor): Add MEM_STAT_DECL.
7294 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7296 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
7297 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
7298 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
7299 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
7300 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
7301 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
7302 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
7303 Use CC_NZC instead of CC.
7304 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
7305 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
7306 (aarch64_print_operand): Handle E_CC_NZCmode.
7307 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
7308 of gen_set_clobber_cc.
7310 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7312 * config/aarch64/aarch64-sve.md: Tabify file.
7314 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7316 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
7317 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
7318 * config/aarch64/aarch64-sve.md: Use it.
7320 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7322 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
7323 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
7324 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
7325 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
7326 (aarch64_expand_sve_vec_cmp_int): Use it.
7327 (aarch64_expand_sve_vec_cmp_float): Likewise.
7328 * config/aarch64/aarch64-sve.md: Likewise throughout.
7330 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7331 Kugan Vivekanandarajah <kuganv@linaro.org>
7333 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
7334 (*cond_<optab><mode>_z): Fold into...
7335 (*cond_<optab><mode>_any): ...here. Also handle cases in which
7336 operand 4 can be tied to operand 0 (either inherently or via RA).
7338 2019-06-18 Richard Biener <rguenther@suse.de>
7341 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
7342 as if optimized away.
7344 2019-06-18 Tom de Vries <tdevries@suse.de>
7346 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
7347 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
7348 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
7350 (define_insn "@set_softstack_<mode>"): ... this.
7351 (define_insn "omp_simt_enter_<mode>"): Rename to ...
7352 (define_insn "@omp_simt_enter_<mode>"): ... this.
7353 (define_insn "omp_simt_exit_<mode>"): Rename to ...
7354 (define_insn "@omp_simt_exit_<mode>"): ... this.
7356 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
7358 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
7359 vf parameter. Restore the previous iv step of nscalars_step,
7360 but give it iv_type rather than compare_type. Tweak code order
7361 to match the comments.
7362 (vect_set_loop_condition_masked): Update accordingly.
7363 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
7364 for iv_precision. Tweak comment formatting.
7366 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7368 * config/darwin.c: Strip trailing whitespace.
7370 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
7372 * config/darwin.c (darwin_emit_unwind_label): New default to false.
7373 (darwin_override_options): Set darwin_emit_unwind_label as needed.
7375 2019-06-18 Martin Jambor <mjambor@suse.cz>
7378 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
7379 caller does not have flag_ipa_cp set.
7381 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7383 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
7384 from "*fold_left_plus_<mode>", updated operands order.
7385 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
7386 * internal-fn.c (mask_fold_left_direct): New define.
7387 (expand_mask_fold_left_optab_fn): Likewise.
7388 (direct_mask_fold_left_optab_supported_p): Likewise.
7389 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
7390 * optabs.def (mask_fold_left_plus_optab): New optab.
7391 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
7392 masked internal_fn for a reduction ifn.
7393 (vectorize_fold_left_reduction): Add support for masking reductions.
7395 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
7398 * target.def (predict_doloop_p): New hook.
7399 * targhooks.h (default_predict_doloop_p): New declaration.
7400 * targhooks.c (default_predict_doloop_p): New function.
7401 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
7402 * doc/tm.texi: Regenerate.
7403 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
7404 (TARGET_PREDICT_DOLOOP_P): New macro.
7405 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
7407 2019-06-17 Jakub Jelinek <jakub@redhat.com>
7409 * omp-low.c (struct omp_context): Add scan_inclusive field.
7410 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
7412 (struct omplow_simd_context): Add lastlane member.
7413 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
7414 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
7416 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
7417 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
7418 (lower_omp_scan): New function.
7419 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
7420 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
7421 check 3rd argument if present rather than 2nd.
7422 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
7423 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
7425 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7426 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
7428 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
7429 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
7430 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
7432 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
7433 IFN_GOMP_SIMD_LANE argument.
7434 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
7435 encoded ->aux value.
7436 * tree-vect-stmts.c: Include attribs.h.
7437 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
7438 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
7440 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
7441 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
7443 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
7446 * config/i386/i386.md (*nabstf2_1): New insn pattern.
7447 (*nabs<mode>2_1): Ditto.
7448 (nabs sse-reg splitter): New splitter.
7449 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
7451 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7454 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7457 2019-06-17 Tom de Vries <tdevries@suse.de>
7459 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
7460 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
7461 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
7463 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
7465 (define_insn "omp_simt_enter_insn"): Rename to ...
7466 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
7467 match_operand 0, 1 and 2, as well as the unspec_volatile result.
7468 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
7469 gen_omp_simt_enter_si.
7470 (define_expand "omp_simt_exit"): New.
7471 (define_insn "omp_simt_exit"): Rename to ...
7472 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
7475 2019-06-17 Matthew Green <mrg@eterna.com.au>
7476 Maya Rashish <coypu@sdf.org>
7478 * config.gcc (aarch64*-*-netbsd*): New target.
7479 * config/aarch64/aarch64-netbsd.h: New file.
7480 * config/aarch64/t-aarch64-netbsd: Likewise.
7482 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7484 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
7485 the access path from base to first VIEW_CONVERT_EXPR or
7488 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
7490 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
7491 access path on BIT_FIELD_REFs.
7493 2019-06-17 Martin Liska <mliska@suse.cz>
7496 * ipa-utils.h (odr_type_p): Remove dead code.
7498 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7500 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
7501 alternative Solaris 11.4 format.
7502 * configure: Regenerate.
7504 2019-06-17 Tom de Vries <tdevries@suse.de>
7506 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
7507 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
7509 (define_insn "call_value_insn"): Rename to ...
7510 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
7512 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
7515 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
7518 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
7519 frame clobbers and schedule block.
7520 (builtin_longjmp): Likewise.
7522 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7524 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
7525 describe how to perform MSPABI compliant 64-bit shift.
7526 * config/msp430/msp430.md (ashldi3): New define_expand.
7527 (ashrdi3): New define_expand.
7528 (lshrdi3): New define_expand.
7530 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7532 * doc/sourcebuild.texi: Document new effective target keyword
7535 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7537 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
7538 indirect_refs_may_alias_p): Revert accidental commits.
7540 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
7541 at the end of structures.
7543 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7545 * config/darwin.c (machopic_indirect_call_target): Use renamed
7546 darwin_picsymbol_stubs to decide on output.
7547 (darwin_override_options): Handle darwin_picsymbol_stubs.
7548 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
7549 (LD64_VERSION): Revise default.
7550 * config/darwin.opt: (mpic-symbol-stubs): New option.
7551 (darwin_picsymbol_stubs): New variable.
7552 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
7553 rename to TARGET_MACHO_PICSYM_STUBS.
7554 * config/i386/i386.c (output_pic_addr_const): Likewise.
7555 * config/i386/i386.h Likewise.
7556 * config/rs6000/darwin.h: Likewise.
7557 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
7558 darwin_picsymbol_stubs.
7560 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
7562 * config/darwin.opt (prebind, noprebind, seglinkedit,
7563 noseglinkedit): Add RejectNegative.
7565 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
7567 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
7568 in my previous patch.
7570 2019-06-16 Tom de Vries <tdevries@suse.de>
7572 PR tree-optimization/89376
7573 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
7575 2019-06-15 Maya Rashish <coypu@sdf.org>
7577 * doc/invoke.texi (Spec Files): Update location of the
7580 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
7582 * doc/extend.texi (Common Function Attributes): Clarify
7583 no_sanitize. Fix grammar.
7585 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
7587 * tree-ssa-alias.c (alias_stats): Add
7588 nonoverlapping_component_refs_p_may_alias,
7589 nonoverlapping_component_refs_p_no_alias,
7590 nonoverlapping_component_refs_of_decl_p_may_alias,
7591 nonoverlapping_component_refs_of_decl_p_no_alias.
7592 (dump_alias_stats): Dump them.
7593 (nonoverlapping_component_refs_of_decl_p): Add stats.
7594 (nonoverlapping_component_refs_p): Add stats; do not stop on first
7597 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
7599 * config/i386/i386.md (and<mode>3): Generate zero-extends for
7600 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
7602 (*anddi3_doubleword): Split before reload. Merge with
7603 anddi->zext pre-reload splitter.
7604 (*andndi3_doubleword): Split before reload.
7605 (*<code>di3_doubleword): Ditto.
7606 (*one_cmpldi2_doubleword): Ditto.
7608 2019-06-15 Jakub Jelinek <jakub@redhat.com>
7611 * gimplify.c: Include omp-offload.h and context.h.
7612 (gimplify_bind_expr): Add "omp declare target" attributes
7613 to static block scope variables inside of target region or target
7616 2019-06-15 Tom de Vries <tdevries@suse.de>
7618 PR tree-optimization/90009
7619 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
7620 Return NULL if bb contains IFN_UNIQUE.
7622 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
7624 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
7625 (un): New define_mode_attr.
7626 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
7627 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
7628 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
7630 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
7632 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
7634 * config/darwin.opt: Add RejectNegative where needed, reorder
7635 and add minimal functional descriptions.
7637 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7639 PR rtl-optimization/90765
7640 * calls.c (update_stack_alignment_for_call): New function.
7641 (expand_call): Call update_stack_alignment_for_call when
7642 outgoing parameter is passed in the stack.
7643 (emit_library_call_value_1): Likewise.
7644 * function.c (locate_and_pad_parm): Don't update
7645 stack_alignment_needed and preferred_stack_boundary.
7647 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
7650 * config/i386/i386-features.c
7651 (dimode_scalar_chain::compute_convert_gain): Replace
7652 mmxsse_to_integer with sse_to_integer.
7653 * config/i386/i386.c (ix86_register_move_cost): Verify that
7654 moves between MMX and non-MMX units require secondary memory.
7655 Correct costs of moves between SSE and integer units.
7656 * config/i386/i386.h (processor_costs): Rename cost of moving
7657 SSE register to integer to sse_to_integer. Rename cost of
7659 2019-06-14 Matt Thomas <matt@3am-software.com>
7660 Matthew Green <mrg@eterna.com.au>
7661 Nick Hudson <skrll@netbsd.org>
7662 Maya Rashish <coypu@sdf.org>
7663 Richard Earnshaw <rearnsha@arm.com>
7665 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
7666 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
7667 * config/arm/netbsd-eabi.h: New file.
7668 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
7670 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
7671 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
7672 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
7673 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
7675 2019-06-14 Richard Biener <rguenther@suse.de>
7677 * tree-loop-distribution.c (classify_partition): Return
7678 whether a reduction appeared in all partitions and do not
7679 stop builtin detection because of this.
7680 (distribute_loop): Sort a non-builtin partition last if
7681 there's a reduction in all partitions and make sure the
7682 partition prevailing as last is not a builtin.
7684 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
7687 * ipa-prop.c (add_to_agg_contents_list): New function.
7688 (clobber_by_agg_contents_list_p): Likewise.
7689 (extract_mem_content): Likewise.
7690 (get_place_in_agg_contents_list): Delete.
7691 (determine_known_aggregate_parts): Renamed from
7692 determine_locally_known_aggregate_parts. New parameter
7695 2019-06-13 Martin Sebor <msebor@redhat.com>
7697 PR tree-optimization/90662
7698 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
7701 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7704 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
7705 dbase is not TARGET_MEM_REF.
7707 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7709 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
7711 (and<mode>3): Use gen_extend_insn instead of indirect functions.
7712 Do not generate DImode extends for 32bit targets.
7713 (and->zext post-reload splitter): Use gen_extend_insn
7714 instead of indirect functions.
7715 (anddi->zext pre-reload splitter): New.
7716 (*zext<mode>_doubleword_and): Remove.
7717 (*zext<mode>_doubleword): Ditto.
7718 (*zextsi_doubleword): Dittto.
7720 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
7722 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
7723 Use gen_sub3_insn instead of indirect function.
7724 (ix86_expand_ashl_const): Use gen_add2_insn instead of
7726 (ix86_adjust_counter): Ditto.
7728 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
7729 Lijia He <helijia@linux.ibm.com>
7731 PR tree-optimization/77820
7732 * tree-ssa-threadedge.c
7733 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
7735 (thread_across_edge): Add call to
7736 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
7738 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
7740 * config/darwin-driver.c (validate_macosx_version_min): New.
7741 (darwin_default_min_version): Cleanup and validate supplied version.
7742 (darwin_driver_init): Likewise and push cleaned version into opts.
7744 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
7746 PR tree-optimization/90869
7747 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
7748 converts in MEM_REF referencing decl rather than view converts
7749 from decl type to MEM_REF type.
7751 2019-06-13 Richard Biener <rguenther@suse.de>
7753 PR tree-optimization/90856
7754 * tree-sra.c (build_ref_for_model): Only use
7755 build_reconstructed_reference when address-spaces are the same.
7757 2019-06-13 Jakub Jelinek <jakub@redhat.com>
7759 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
7760 wrap ei variable name in the declaration in ()s.
7761 (nvptx_single): Actually use mode_label variable. Formatting fix.
7763 2019-06-13 Richard Biener <rguenther@suse.de>
7765 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
7766 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
7767 also return the condition stmt.
7768 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
7769 loop we can version and version that, reusing the loop version
7770 created by if-conversion instead of versioning again.
7772 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
7774 * gimple-loop-versioning.cc (prune_loop_conditions): Use
7776 * tree-vrp (value_range_base::may_contain_p): Call into
7778 (value_inside_range): Make private inside value_range_base class.
7779 Take min/max from *this.
7780 (range_includes_p): Remove.
7781 * tree-vrp.h (value_range_base): Add value_inside_range.
7782 (range_includes_p): Remove.
7783 (range_includes_zero_p): Call may_contain_p.
7784 * vr-values.c (compare_range_with_value): Same.
7786 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
7788 * doc/extend.texi (ARC Function Attributes): Update info.
7790 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
7792 PR tree-optimization/89713
7793 * doc/invoke.texi (-ffinite-loops): Document new option.
7794 * common.opt (-ffinite-loops): New option.
7795 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
7796 IFN_GOACC_LOOP calls as necessary.
7797 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
7799 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
7800 IFN_GOACC_LOOP call is not used.
7801 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
7803 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7806 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
7807 compare_type is not with Pmode size, we will create an IV with
7808 Pmode size with truncated use (i.e. converted to the correct type).
7809 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
7810 (vect_iv_limit_for_full_masking): New. Factored out of
7811 vect_set_loop_condition_masked.
7812 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
7813 (vect_iv_limit_for_full_masking): Declare.
7815 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7818 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
7819 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
7820 (get_alias_ptr_type_for_ptr_address): Likewise.
7821 (add_iv_candidate_for_use): Add scaled index candidate if useful.
7822 * tree-ssa-address.c (preferred_mem_scale_factor): New.
7823 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
7826 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7828 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
7830 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
7832 * common/config/pru/pru-common.c: New file.
7833 * config.gcc: Add PRU target.
7834 * config/pru/alu-zext.md: New file.
7835 * config/pru/constraints.md: New file.
7836 * config/pru/predicates.md: New file.
7837 * config/pru/pru-opts.h: New file.
7838 * config/pru/pru-passes.c: New file.
7839 * config/pru/pru-pragma.c: New file.
7840 * config/pru/pru-protos.h: New file.
7841 * config/pru/pru.c: New file.
7842 * config/pru/pru.h: New file.
7843 * config/pru/pru.md: New file.
7844 * config/pru/pru.opt: New file.
7845 * config/pru/t-pru: New file.
7846 * doc/extend.texi: Document PRU pragmas.
7847 * doc/invoke.texi: Document PRU-specific options.
7848 * doc/md.texi: Document PRU asm constraints.
7850 2019-06-12 Martin Sebor <msebor@redhat.com>
7853 * tree-pretty-print.c (dump_mem_ref): New function. Include
7854 MEM_REF type in output when different size than operand.
7855 (dump_generic_node): Move code to dump_mem_ref and call it.
7857 2019-06-12 Martin Sebor <msebor@redhat.com>
7859 PR tree-optimization/90662
7860 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
7863 2019-06-12 Tom de Vries <tdevries@suse.de>
7865 PR tree-optimization/90009
7866 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
7868 2019-06-12 Martin Liska <mliska@suse.cz>
7870 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
7872 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
7873 * mem-stats.h (mem_alloc_description::mem_alloc_description):
7874 Do not sanitize created maps.
7876 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
7878 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
7879 value_range::singleton_p.
7880 * tree-vrp.c (value_range_constant_singleton): Remove.
7881 * tree-vrp.h (value_range_constant_singleton): Remove.
7882 * vr-values.c (vr_values::singleton): Use
7883 value_range::singleton_p.
7885 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7888 * cfgexpand.c (align_local_variable): Add really_expand argument,
7889 don't SET_DECL_ALIGN if it is false.
7890 (add_stack_var): Add really_expand argument, pass it through to
7891 align_local_variable.
7892 (expand_one_stack_var_1): Pass true as really_expand to
7893 align_local_variable.
7894 (expand_one_ssa_partition): Pass true as really_expand to
7896 (expand_one_var): Pass really_expand through to add_stack_var.
7898 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
7900 * config/arm/iterators.md (VABAL): New int iterator.
7901 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
7902 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
7903 UNSPEC_VABAL_U values.
7905 2019-06-12 Martin Liska <mliska@suse.cz>
7907 * value-prof.c (stream_out_histogram_value): Only first value
7910 2019-06-12 Jakub Jelinek <jakub@redhat.com>
7913 * symtab.c (symtab_node::set_section): Allow being called on aliases
7914 as long as they aren't analyzed yet.
7916 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
7918 * config/mips/mips.c (mips_final_postscan_insn): Modify call
7919 to `mips_set_text_contents_type' to indicate whether a
7920 non-debug insn follows.
7922 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
7924 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
7925 enabling -mpcrel by default.
7926 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
7927 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
7928 that the test against -mcpu=future is done first. Then test if
7929 -mprefixed-addr is on for -mpcrel.
7930 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
7932 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7935 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
7938 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7940 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
7942 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
7944 PR c++/90449 - add -Winaccessible-base option.
7945 * doc/invoke.texi (Winaccessible-base): Document.
7947 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
7949 PR tree-optimization/62041
7950 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
7952 2019-06-11 Jason Merrill <jason@redhat.com>
7954 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
7955 * tree.c (get_tree_code_name): Likewise.
7956 * print-tree.c (print_node): Only briefly print a node with an
7959 2019-06-11 Jakub Jelinek <jakub@redhat.com>
7962 * trans-mem.c (tm_memopt_compute_available): Add assertion
7963 that blocks is not empty. Formatting fix.
7965 2019-06-11 Martin Liska <mliska@suse.cz>
7968 * hash-table.h: Extend create_gcc, add one parameter
7969 that is passed into hash_table::hash_table.
7971 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
7973 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
7975 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
7976 Emit clobber also for non-sse operations.
7977 (ix86_split_fp_absneg_operator): New function.
7978 * config/i386/i386.md (SSEMODEF): New mode iterator.
7979 (ssevecmodef): New mode attribute.
7980 (<code>tf2): Use absneg code iterator.
7981 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
7982 Add three-operand AVX alternatives.
7983 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
7984 Use absneg code iterator and X87MODEF mode iterator.
7985 (absneg fp_reg non-sse splitter): Call absneg code iterator
7986 and X87MODEF mode iterator.
7987 (absneg general_reg non-sse splitter): Use absneg code iterator
7988 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
7989 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
7990 code iterator. Add three-operand AVX alternative.
7991 (absneg sse_reg splitter): Use absneg code iterator
7992 and SSEMODEF mode iterator. Handle AVX operands.
7993 (absneg fp_reg splitter): Use absneg code iterator
7994 and MODEF mode iterator.
7995 (absneg general_reg splitter): Merge splitters using MODEF mode
7996 iterator. Use absneg code iterator. Call
7997 ix86_split_fp_absneg_operator.
7998 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
7999 Do not enable for non-sse modes before reload.
8002 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
8003 ssevecmodef mode attribute instaed of CSGNVMODE.
8004 (copysign<mode>3_const): Ditto.
8005 (copysign<mode>3_var): Ditto.
8006 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
8007 Use absneg code iterator. Simplify code using std::swap.
8008 * config/i386/predicates.md (absneg_operator): Remove.
8010 2019-06-10 Martin Sebor <msebor@redhat.com>
8012 * gimple-fold.c (get_range_strlen): Update comment that didn't
8013 make it into r267503 or related commits.
8015 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
8017 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
8018 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
8020 2019-06-10 Jakub Jelinek <jakub@redhat.com>
8022 * tree.def (OMP_SCAN): New tree code.
8023 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
8024 OMP_CLAUSE_EXCLUSIVE.
8025 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
8026 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
8027 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
8028 OMP_CLAUSE_{IN,EX}CLUSIVE.
8029 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8030 * tree-nested.c (convert_nonlocal_reference_stmt,
8031 convert_local_reference_stmt, convert_gimple_call): Handle
8033 * tree-pretty-print.c (dump_omp_clause): Handle
8034 OMP_CLAUSE_{IN,EX}CLUSIVE.
8035 (dump_generic_node): Handle OMP_SCAN.
8036 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
8037 * gimple.h (gomp_scan): New type.
8038 (is_a_helper <gomp_scan *>::test,
8039 is_a_helper <const gomp_scan *>::test): New templates.
8040 (gimple_build_omp_scan): Declare.
8041 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
8042 gimple_omp_scan_set_clauses): New inline functions.
8043 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
8044 * gimple.c (gimple_build_omp_scan): New function.
8045 (gimple_copy): Handle GIMPLE_OMP_SCAN.
8046 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
8047 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
8048 GIMPLE_OMP_TASKGROUP.
8049 (dump_gimple_omp_scan): New function.
8050 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
8051 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
8052 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
8053 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
8054 (is_gimple_stmt): Handle OMP_SCAN.
8055 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
8056 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
8057 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
8058 mentioned in nested #pragma omp scan. Handle
8059 OMP_CLAUSE_{IN,EX}CLUSIVE.
8060 (gimplify_expr): Handle OMP_SCAN.
8061 * omp-low.c (check_omp_nesting_restrictions): For parent context,
8062 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
8064 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
8067 2019-06-10 Martin Liska <mliska@suse.cz>
8069 * ipa-cp.c (ignore_edge_p): New function.
8070 (build_toporder_info): Use it.
8071 * ipa-inline.c (ignore_edge_p): New function.
8072 (inline_small_functions): Use it.
8073 * ipa-pure-const.c (ignore_edge_for_nothrow):
8074 Verify opt_for_fn for caller and callee.
8075 (ignore_edge_for_pure_const): Likewise.
8076 * ipa-reference.c (ignore_edge_p): Extend to check
8078 * ipa-utils.c (searchc): Refactor.
8079 * ipa-utils.h: Fix coding style.
8081 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8083 * config/arc/arc.c (arc_rtx_costs): Update costs.
8085 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
8087 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
8088 (arc_split_ior): Likewise.
8089 (arc_check_mov_const): Likewise.
8090 (arc_split_mov_const): Likewise.
8091 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
8092 (arc_rtx_costs): Replace check Crr with Cax constraint.
8093 (prepare_move_operands): Cleanup, remove unused code.
8094 (arc_split_ior): New function.
8095 (arc_check_ior_const): Likewise.
8096 (arc_split_mov_const): Likewise.
8097 (arc_check_mov_const): Likewise.
8098 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
8099 in define_insn_and_split pattern.
8101 (mulsi3_v2): Add new matching variant.
8102 (andsi3_i): Cleanup pattern.
8103 (rotrsi3_cnt1): Update pattern.
8104 (rotrsi3_cnt8): New pattern.
8105 (ashlsi2_cnt8): Likewise.
8106 (ashlsi2_cnt16): Likewise.
8107 * config/arc/constraints.md (C0p): Update constraint.
8112 2019-06-10 Martin Liska <mliska@suse.cz>
8114 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
8115 Update coding style.
8116 (sem_item_optimizer::dump_cong_classes):
8117 Print how many items are in a non-singular class. Improve
8120 2019-06-10 Martin Liska <mliska@suse.cz>
8122 * value-prof.c (dump_histogram_value): Change dump format.
8123 (gimple_mod_subtract_transform): Remove legacy comment.
8125 2019-06-10 Martin Liska <mliska@suse.cz>
8127 * value-prof.c (dump_histogram_value): Print histogram values
8130 2019-06-10 Martin Liska <mliska@suse.cz>
8132 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
8133 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
8134 * ipa-profile.c (ipa_profile_generate_summary):
8135 Use get_most_common_single_value.
8136 * tree-profile.c (gimple_init_gcov_profiler):
8137 Instrument with __gcov_one_value_profiler_v2
8138 and __gcov_indirect_call_profiler_v4.
8139 * value-prof.c (dump_histogram_value):
8140 Print all values for HIST_TYPE_SINGLE_VALUE.
8141 (stream_out_histogram_value): Update assert for
8143 (stream_in_histogram_value): Set number of
8144 counters for HIST_TYPE_SINGLE_VALUE.
8145 (get_most_common_single_value): New.
8146 (gimple_divmod_fixed_value_transform):
8147 Use get_most_common_single_value.
8148 (gimple_ic_transform): Likewise.
8149 (gimple_stringops_transform): Likewise.
8150 (gimple_find_values_to_profile): Set number
8151 of counters for HIST_TYPE_SINGLE_VALUE.
8152 * value-prof.h (get_most_common_single_value): New.
8154 2019-06-10 Martin Liska <mliska@suse.cz>
8156 * hash-map.h: Pass default value to hash_table ctor.
8157 * hash-table.h: Add default value to call of a ctor.
8159 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
8161 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
8162 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
8164 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
8167 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
8168 Call pa_output_function_label.
8169 (TARGET_ASM_FUNCTION_PROLOGUE): define.
8170 * config/pa/pa-protos.h (pa_output_function_label): Declare.
8171 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
8173 (pa_linux_output_function_prologue): Declare.
8174 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
8175 (pa_output_function_label): New.
8176 (pa_output_function_prologue): Revise to use pa_output_function_label.
8177 (pa_linux_output_function_prologue): New.
8178 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
8180 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
8182 * tree-vrp.h (value_range_base::intersect): New.
8183 (value_range::intersect_helper): Move from here...
8184 (value_range_base::intersect_helper): ...to here.
8185 * tree-vrp.c (value_range::intersect_helper): Rename to...
8186 (value_range_base::intersect_helper): ...this, and rewrite to
8187 return a value instead of modifying THIS in place.
8188 Also, move equivalence handling...
8189 (value_range::intersect): ...here, while calling intersect_helper.
8190 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
8192 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
8194 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
8196 2019-06-07 Jakub Jelinek <jakub@redhat.com>
8198 * Makefile.in (genprogerr): Add condmd.
8199 (genprog): Remove it here.
8201 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
8203 * doc/invoke.texi (AMD GCN Options): Add gfx906.
8205 2019-06-07 Richard Biener <rguenther@suse.de>
8208 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
8209 that appear after user labels.
8211 2019-06-07 Martin Liska <mliska@suse.cz>
8213 * cselib.c (cselib_init): Disable hash table
8215 * hash-set.h: Pass new default argument to m_table.
8216 * hash-table.c: Add global variable with hash table
8218 * hash-table.h (Allocator>::hash_table): Add new argument
8220 (hashtab_chk_error): New.
8221 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
8222 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
8223 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
8225 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8227 * common.opt (flto-odr-type-merging): Ignore.
8228 * invoke.texi (-flto-odr-type-merging): Remove.
8229 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
8230 (can_be_vtable_hashed_p): Remove.
8231 (hash_odr_vtable): Remove.
8232 (odr_vtable_hasher::hash): Remove.
8233 (types_same_for_odr): Remove.
8234 (types_odr_comparable): Remove.
8235 (odr_vtable_hasher::equal): Remove.
8236 (odr_vtable_hash_type, odr_vtable_hash): Remove.
8237 (add_type_duplicate): Do not synchronize vtable and name hashtables.
8238 (get_odr_type): Do not use vtable hash.
8239 (dump_odr_type): Remove commented out code.
8240 (build_type_inheritance_graph): Do not allocate vtable hash.
8241 (rebuild_type_inheritance_graph): Do not delete vtable hash.
8242 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
8243 (odr_type_p): Likewise.
8244 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
8247 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
8249 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
8250 immediately after same_types_for_tbaa_p returns -1 and continue
8251 looking for possible exact match; if matching types are arrays
8252 watch for partial overlaps.
8253 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
8254 (indirect_refs_may_alias_p): Do type based disambiguation first;
8257 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
8259 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
8261 2019-06-07 Martin Liska <mliska@suse.cz>
8263 * doc/invoke.texi: Remove param.
8264 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
8266 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
8267 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
8268 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
8269 * profile.c (instrument_values): Remove
8270 HIST_TYPE_INDIR_CALL_TOPN.
8271 * tree-profile.c (init_ic_make_global_vars):
8272 Always build __gcov_indirect_call only.
8273 (gimple_init_gcov_profiler): Remove usage
8274 of PARAM_INDIR_CALL_TOPN_PROFILE.
8275 (gimple_gen_ic_profiler): Likewise.
8276 * value-prof.c (dump_histogram_value): Likewise.
8277 (stream_in_histogram_value): Likewise.
8278 (gimple_indirect_call_to_profile): Likewise.
8279 (gimple_find_values_to_profile): Likewise.
8280 * value-prof.h (enum hist_type): Likewise.
8282 2019-06-07 Martin Liska <mliska@suse.cz>
8284 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
8287 2019-06-07 Martin Liska <mliska@suse.cz>
8289 PR tree-optimization/78902
8290 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
8291 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
8292 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8293 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
8294 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
8295 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8296 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
8297 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
8298 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8299 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
8300 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
8301 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
8302 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
8304 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
8305 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
8306 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
8307 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8308 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
8309 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
8310 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8311 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
8312 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
8313 warn_unused_result attribute.
8314 (BUILT_IN_STRDUP): Likewise.
8315 (BUILT_IN_STRNDUP): Likewise.
8316 (BUILT_IN_ALLOCA): Likewise.
8317 (BUILT_IN_CALLOC): Likewise.
8318 (BUILT_IN_MALLOC): Likewise.
8319 (BUILT_IN_REALLOC): Likewise.
8321 2019-06-06 Jim Wilson <jimw@sifive.com>
8324 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
8325 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
8326 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8328 2019-06-06 Martin Sebor <msebor@redhat.com>
8330 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
8331 (handle_builtin_malloc): Remove trailing spaces.
8332 (handle_builtin_memset): Same.
8333 (handle_builtin_memcmp): Same.
8334 (compute_string_length): Same.
8335 (determine_min_objsize): Same.
8336 (handle_builtin_string_cmp): Same.
8337 (handle_char_store): Same. Break up excessively long line.
8339 2019-06-06 Martin Jambor <mjambor@suse.cz>
8341 * tree-sra.c (build_reconstructed_reference): Drop the alignment
8344 2019-06-06 Martin Jambor <mjambor@suse.cz>
8346 * tree-sra.c (struct access): New field grp_same_access_path.
8347 (dump_access): Dump it.
8348 (build_reconstructed_reference): New function.
8349 (build_ref_for_model): Use it if possible.
8350 (path_comparable_for_same_access): New function.
8351 (same_access_path_p): Likewise.
8352 (sort_and_splice_var_accesses): Set the new flag.
8353 (analyze_access_subtree): Likewise.
8354 (propagate_subaccesses_across_link): Propagate zero value of the new
8355 flag down the access tree.
8357 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
8359 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
8360 * config/gcn/gcn.opt (gpu_type): Add gfx906.
8361 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
8362 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
8365 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8367 PR tree-optimization/90332
8368 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
8369 Handle VALS containing two vectors.
8370 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
8372 (@aarch64_combinez<mode>): ... This.
8373 (*aarch64_combinez_be<mode>): Rename to...
8374 (@aarch64_combinez_be<mode>): ... This.
8375 (vec_init<mode><Vhalf>): New define_expand.
8376 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
8378 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8380 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
8381 library functions only when not optimizing for size.
8382 (ashlsi3): Likewise.
8383 (ashrhi3): Likewise.
8384 (ashrsi3): Likewise.
8385 (lshrhi3): Likewise.
8386 (lshrsi3): Likewise.
8388 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
8390 PR rtl-optimization/88751
8391 * ira.c (ira): Use the number of the actually referenced registers
8392 when calculating the threshold.
8394 2019-06-06 Jakub Jelinek <jakub@redhat.com>
8396 * configure: Regenerate.
8398 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8400 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
8401 register if it is in memory, so the shift can be emulated with a rotate
8403 (ashrhi3): Likewise.
8404 (lshrhi3): Likewise.
8406 2019-06-06 Martin Liska <mliska@suse.cz>
8408 PR tree-optimization/87954
8409 * match.pd: Simplify mult where both arguments are 0 or 1.
8411 2019-06-06 Richard Biener <rguenther@suse.de>
8413 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
8414 put equivalences on UNDEFINED ranges.
8415 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8416 Make sure to drop defs of stmts added during simplification
8419 2019-06-06 Richard Biener <rguenther@suse.de>
8421 * tree-ssa-structalias.c: Include tree-cfg.h.
8422 (make_heapvar): Do not make heap vars artificial.
8423 (find_func_aliases_for_builtin_call): Handle stack allocation
8425 (find_func_aliases): Delay processing of simple enough returns
8427 (set_uids_in_ptset): Adjust.
8428 (find_what_var_points_to): Likewise.
8429 (solve_constraints): Do not dump points-to sets here.
8430 (compute_points_to_sets): Post-process return statements,
8431 amending the escaped solution. Dump points-to sets afterwards.
8432 (ipa_pta_execute): Dump points-to sets.
8434 2019-06-06 Martin Liska <mliska@suse.cz>
8437 * doc/install.texi: Fix HTML headers and
8438 titles for 'Installing GCC' pages.
8440 2019-06-06 Martin Liska <mliska@suse.cz>
8442 * ipa-icf-gimple.h (dump_message_1): Remove.
8443 (dump_message): Likewise.
8444 (return_false_with_message_1): Print also file.
8445 (return_false_with_msg): Likewise.
8446 (return_with_result): Likewise.
8447 (return_with_debug): Likewise.
8448 * ipa-icf.c (sem_function::equals_private): Remove call
8451 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8453 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
8454 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
8455 memory operand for it.
8456 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
8458 2019-06-05 Martin Sebor <msebor@redhat.com>
8460 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
8461 Adjust quoting and hyphenation.
8462 * convert.c (convert_to_real_1): Same.
8463 * gcc.c (driver_wrong_lang_callback): Same.
8464 (driver::handle_unrecognized_options): Same.
8465 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
8466 * opts-common.c (cmdline_handle_error): Same.
8467 (read_cmdline_option): Same.
8468 * opts-global.c (complain_wrong_lang): Same.
8469 (print_ignored_options): Same.
8470 (handle_common_deferred_options): Same.
8471 * pretty-print.h: Same.
8472 * print-rtl.c (debug_bb_n_slim): Same.
8473 * sched-rgn.c (make_pass_sched_fusion): Same.
8474 * tree-cfg.c (verify_gimple_assign_unary): Same.
8475 (verify_gimple_label): Same.
8476 * tree-ssa-operands.c (verify_ssa_operands): Same.
8477 * varasm.c (do_assemble_alias): Same.
8478 (assemble_alias): Same.
8480 2019-06-05 Richard Henderson <rth@twiddle.net>
8482 * config/alpha/alpha.c (direct_return): Move down after
8483 struct machine_function definition; use saved frame_size;
8485 (struct machine_function): Add sa_mask, sa_size, frame_size.
8486 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
8487 (alpha_compute_frame_layout): ... new function.
8488 (TARGET_COMPUTE_FRAME_LAYOUT): New.
8489 (alpha_initial_elimination_offset): Use saved sa_size.
8490 (alpha_vms_initial_elimination_offset): Likewise.
8491 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
8492 (alpha_expand_prologue): Use saved frame data. Merge integer
8493 and fp register save loops.
8494 (alpha_expand_epilogue): Likewise.
8495 (alpha_start_function): Use saved frame data.
8496 * config/alpha/alpha-protos.h (direct_return): Update.
8497 (alpha_sa_size): Remove.
8499 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
8501 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
8502 multiplication by a power-of-two value.
8503 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
8504 and turn the modulo operation into a masking operation.
8506 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8509 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
8510 with VOIDmode inner operands.
8512 2019-06-05 Richard Biener <rguenther@suse.de>
8515 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8516 turn an expression graph into a tree.
8518 2019-06-05 Jakub Jelinek <jakub@redhat.com>
8520 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
8522 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
8523 treat it like explicit monotonic schedule modifier.
8524 (expand_omp_for): Initialize has_lastprivate_conditional.
8525 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
8528 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
8529 references, lookup in in hash map MEM_REF operand instead of the
8531 (lower_omp_1): When looking for lastprivate conditional assignments,
8532 handle MEM_REFs with REFERENCE_TYPE operands.
8534 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
8535 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
8536 and references a VLA. Handle references to non-VLAs if is_simd
8537 all privatization clauses like reductions.
8538 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
8539 If omp_is_reference, use always omp simd arrays and set
8540 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
8541 fails, emit reference initialization.
8543 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
8546 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
8547 _mm_mask_fpclass_sd_mask): New intrinsics.
8548 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
8549 * config/i386/i386-builtin.def
8550 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
8552 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
8553 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
8554 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
8555 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
8556 case QI_FTYPE_V2SF_INT): Ditto.
8557 * config/i386/sse.md
8558 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
8559 Extended to insnstructions with mask operands.
8561 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8563 * config/rs6000/constraints.md (define_register_constraint "wp"):
8565 (define_register_constraint "wq"): Delete.
8566 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8567 (rs6000_init_hard_regno_mode_ok): Adjust.
8568 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8569 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
8570 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
8571 (define_mode_attr VSa): Delete.
8572 (define_mode_attr VSisa): New.
8573 (rest of file): Adjust.
8574 * doc/md.texi (Machine Constraints): Adjust.
8576 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8578 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
8579 (define_attr "enabled"): Handle those new isa values.
8581 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8583 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
8584 (define_mode_attr VSr5): Delete.
8585 (define_mode_attr VStype_sqrt): Delete.
8586 (define_mode_iterator VSX_SPDP): Delete.
8587 (define_mode_attr VS_spdp_res): Delete.
8588 (define_mode_attr VS_spdp_insn): Delete.
8589 (define_mode_attr VS_spdp_type): Delete.
8590 (*vsx_sqrt<mode>2): Adjust.
8591 (vsx_<VS_spdp_insn>): Delete, split to...
8592 (vsx_xscvdpsp): ... this. New. And...
8593 (vsx_xvcvspdp): ... this. New. And...
8594 (vsx_xvcvdpsp): ... this. New.
8596 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8598 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
8600 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
8601 (rest of file): Adjust.
8603 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8605 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
8606 (vsx_extract_<mode>_var): Ditto.
8608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8610 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
8613 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8615 * config/rs6000/constraints.md (define_register_constraint "ww"):
8617 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8618 (rs6000_init_hard_regno_mode_ok): Adjust.
8619 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8620 RS6000_CONSTRAINT_ww.
8621 * config/rs6000/rs6000.md: Adjust.
8622 * config/rs6000/vsx.md: Adjust.
8623 * doc/md.texi (Machine Constraints): Adjust.
8625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8627 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
8628 (define_mode_attr sd): New.
8629 (define_mode_attr s): New.
8630 (define_mode_attr Ftrad): Delete.
8631 (define_mode_attr Fvsx): Delete.
8632 (define_mode_attr Fs): Delete.
8633 (rest of file): Use the new mode attributes.
8634 * config.rs6000/vsx.md: Use the new mode attributes.
8636 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8638 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
8641 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8643 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
8644 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
8645 used with VSX_B, VSX_D, or VSX_F, with just "wa".
8647 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
8650 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
8651 C++ with strict ANSI requirements.
8653 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
8655 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
8656 computations when step is 1.
8658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8660 * config/rs6000/constraints.md (define_register_constraint "wf"):
8662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8663 (rs6000_init_hard_regno_mode_ok): Adjust.
8664 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8665 RS6000_CONSTRAINT_wf.
8666 * config/rs6000/rs6000.md: Adjust.
8667 * config/rs6000/vsx.md: Adjust.
8668 * doc/md.texi (Machine Constraints): Adjust.
8670 2019-06-04 Andrew Pinski <apinski@marvell.com>
8672 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
8675 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8677 * config/rs6000/constraints.md (define_register_constraint "wd"):
8679 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8680 (rs6000_init_hard_regno_mode_ok): Adjust.
8681 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8682 RS6000_CONSTRAINT_wd.
8683 * config/rs6000/rs6000.md: Adjust.
8684 * config/rs6000/vsx.md: Adjust.
8685 * doc/md.texi (Machine Constraints): Adjust.
8687 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8689 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
8690 (rest of file): Adjust.
8692 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8694 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
8695 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
8696 (vsx_splat_<mode>_reg): Adjust.
8698 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8700 * config/rs6000/constraints.md (define_register_constraint "ws"):
8702 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8703 (rs6000_init_hard_regno_mode_ok): Adjust.
8704 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8705 RS6000_CONSTRAINT_ws.
8706 * config/rs6000/rs6000.md: Adjust.
8707 * config/rs6000/vsx.md: Adjust.
8708 * doc/md.texi (Machine Constraints): Adjust.
8710 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8712 * config/rs6000/constraints.md (define_register_constraint "wv"):
8714 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8715 (rs6000_init_hard_regno_mode_ok): Adjust.
8716 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8717 RS6000_CONSTRAINT_wv.
8718 * config/rs6000/rs6000.md: Adjust.
8719 * config/rs6000/vsx.md: Adjust.
8720 * doc/md.texi (Machine Constraints): Adjust.
8722 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
8724 * config/rs6000/constraints.md (define_register_constraint "wi"):
8726 (define_register_constraint "wt"): Delete.
8727 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8728 (rs6000_init_hard_regno_mode_ok): Adjust.
8729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8730 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
8731 * config/rs6000/rs6000.md: Adjust.
8732 * config/rs6000/vsx.md: Adjust.
8733 * doc/md.texi (Machine Constraints): Adjust.
8735 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
8737 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
8739 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
8740 default_elf_asm_output_external.
8742 2019-06-04 Martin Liska <mliska@suse.cz>
8744 * ipa-icf.c (INCLUDE_LIST): Remove.
8745 (sem_item_optimizer::execute): Remove call to init_wpa.
8746 * ipa-icf.h (init_wpa): Remove.
8748 2019-06-04 Jakub Jelinek <jakub@redhat.com>
8750 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
8751 conditional on combined for simd.
8752 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
8754 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
8755 constructs, don't remove lastprivate_conditional_map, but instead set
8756 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
8757 to parent construct temporaries.
8758 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
8759 like !ctx->lastprivate_conditional_map.
8760 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
8761 use up->outer context instead of up.
8762 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
8763 gimple_omp_for_combined_p.
8764 (expand_omp_for_static_nochunk): Likewise.
8765 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
8766 probably moved over into expand_omp_for_generic rather than being copied
8769 2019-06-04 Martin Liska <mliska@suse.cz>
8771 * value-prof.c (dump_histogram_value): Fix typo.
8772 (gimple_mod_subtract_transform): Likewise.
8774 2019-06-04 Richard Biener <rguenther@suse.de>
8777 * tree-chrec.c (chrec_contains_symbols): Add to visited.
8778 (tree_contains_chrecs): Likewise.
8779 (chrec_contains_symbols_defined_in_loop): Move here and avoid
8780 exponential behaivor from ...
8781 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8783 (expression_expensive_p): Avoid exponential behavior and compute
8784 expanded size, rejecting any expansion.
8785 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
8786 (idx_contains_abnormal_ssa_name_p): Likewise.
8787 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
8788 (contains_abnormal_ssa_name_p): Simplify and use
8789 walk_tree_without_duplicates.
8791 2019-06-04 Richard Biener <rguenther@suse.de>
8793 PR tree-optimization/90738
8795 2019-06-03 Richard Biener <rguenther@suse.de>
8797 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8798 full reference tree and record in ref->ref.
8799 (vn_reference_lookup_3): Pass in original ref to
8800 ao_ref_init_from_vn_reference.
8801 (vn_reference_lookup): Likewise.
8802 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8803 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8804 Handle non-decl bases in the original reference.
8806 2019-06-04 Martin Liska <mliska@suse.cz>
8808 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
8809 number of references.
8810 (sem_item_optimizer::do_congruence_step):
8811 (sem_item_optimizer::worklist_push): Dump how references
8813 (sem_item_optimizer::worklist_pop): Use heap.
8814 (sem_item_optimizer::process_cong_reduction): Likewise.
8815 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
8817 2019-06-04 Martin Liska <mliska@suse.cz>
8819 * ipa-icf.h (struct sem_usage_pair_hash): New.
8820 (sem_usage_pair_hash::hash): Likewise.
8821 (sem_usage_pair_hash::equal): Likewise.
8822 (struct sem_usage_hash): Likewise.
8823 * ipa-icf.c (sem_item::sem_item): Initialize
8824 referenced_by_count.
8825 (sem_item::add_reference): Register a reference
8826 in ref_map and not in target->usages.
8827 (sem_item::setup): Remove initialization of
8829 (sem_item::~sem_item): Remove usage of dead vectors.
8830 (sem_item::dump): Remove dump of references.
8831 (sem_item_optimizer::sem_item_optimizer): Initialize
8833 (sem_item_optimizer::read_section): Remove useless
8835 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
8836 (sem_item_optimizer::build_graph): Pass m_references
8838 (sem_item_optimizer::verify_classes): Remove usage of dead
8840 (sem_item_optimizer::traverse_congruence_split): Return true
8841 when a class is split.
8842 (sem_item_optimizer::do_congruence_step_for_index): Use
8843 hash_map for look up of (sem_item *, index). That brings
8844 significant speed up.
8845 (sem_item_optimizer::do_congruence_step): Return true
8846 when a split is done.
8847 (congruence_class::is_class_used): Use referenced_by_count.
8849 2019-06-04 Alan Modra <amodra@gmail.com>
8852 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
8855 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8857 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
8858 * config/rs6000/rs6000.c (direct_move_p): Adjust.
8859 (rs6000_secondary_reload_simple_move): Adjust.
8860 (rs6000_opt_masks): Neuter the "mfpgpr" option.
8861 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
8862 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
8865 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
8866 (floatunssi<mode>2_lfiwzx): Adjust.
8867 (fix_trunc<mode>si2_stfiwx): Adjust.
8868 (fixuns_trunc<mode>si2_stfiwx): Adjust.
8869 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
8870 (mfpgpr): Mark as deprecated.
8871 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
8872 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
8873 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
8875 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
8877 * config/rs6000/constraints.md (define_register_constraint "wg"):
8879 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8880 RS6000_CONSTRAINT_wg.
8881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8882 (rs6000_init_hard_regno_mode_ok): Adjust.
8883 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
8884 Delete "wg" alternatives.
8885 * doc/md.texi (Machine Constraints): Adjust.
8887 2019-06-03 Alan Modra <amodra@gmail.com>
8889 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
8890 (get_uncond_jump_length): Assert length less than INT_MAX and
8893 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8896 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
8898 (expand_builtin_nonlocal_goto): Likewise.
8900 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
8902 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
8903 (aarch64_asm_output_external): Declare.
8904 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
8905 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
8906 (aarch64_asm_output_alias): New.
8907 (aarch64_asm_output_external): New.
8908 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
8909 (ASM_OUTPUT_EXTERNAL): Define.
8911 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
8912 * tree-vrp.h (value_range_base::nonzero_p): New.
8913 (value_range_base::set_nonnull): Rename to...
8914 (value_range_base::set_nonzero): ...this.
8915 (value_range_base::set_null): Rename to...
8916 (value_range_base::set_zero): ...this.
8917 (value_range::set_nonnull): Remove.
8918 (value_range::set_null): Remove.
8919 * tree-vrp.c (range_is_null): Remove.
8920 (range_is_nonnull): Remove.
8921 (extract_range_from_binary_expr): Use value_range_base::*zero_p
8922 instead of range_is_*null.
8923 (extract_range_from_unary_expr): Same.
8924 (value_range_base::set_nonnull): Rename to...
8925 (value_range_base::set_nonzero): ...this.
8926 (value_range::set_nonnull): Remove.
8927 (value_range_base::set_null): Rename to...
8928 (value_range_base::set_zero): ...this.
8929 (value_range::set_null): Remove.
8930 (extract_range_from_binary_expr): Rename set_*null uses to
8932 (extract_range_from_unary_expr): Same.
8933 (union_helper): Same.
8934 * vr-values.c (get_value_range): Use set_*zero instead of
8936 (vr_values::extract_range_from_binary_expr): Same.
8937 (vr_values::extract_range_basic): Same.
8939 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
8942 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
8944 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8946 * config/aarch64/iterators.md (MAX_OPP): New code attr.
8947 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
8949 (aarch64_<su>abd<mode>_3): ... This.
8950 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
8952 2019-06-03 Richard Biener <rguenther@suse.de>
8954 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
8955 full reference tree and record in ref->ref.
8956 (vn_reference_lookup_3): Pass in original ref to
8957 ao_ref_init_from_vn_reference.
8958 (vn_reference_lookup): Likewise.
8959 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
8960 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
8961 Handle non-decl bases in the original reference.
8963 2019-06-03 Martin Liska <mliska@suse.cz>
8965 * doc/generic.texi: Remove Java Trees.
8967 2019-06-03 Martin Liska <mliska@suse.cz>
8969 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
8970 returns 0 when operands are equal.
8972 2019-06-03 Richard Biener <rguenther@suse.de>
8974 PR tree-optimization/90716
8975 * tree-loop-distribution.c (destroy_loop): Process blocks in
8978 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8981 * vector-builder.h (vector_builder::count_dups): New method.
8982 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
8984 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
8985 (vec_init<mode><Vel>): New pattern.
8986 * config/aarch64/aarch64.c (emit_insr): New function.
8987 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
8988 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
8989 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
8990 (aarch64_sve_expand_vector_init): Define two overloaded functions.
8992 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8994 PR tree-optimization/90681
8995 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
8996 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
8997 special case for SLP, but fail on non-groupped loads.
8999 2019-06-03 Martin Liska <mliska@suse.cz>
9001 * cfg.c (debug): Use TDF_DETAILS for debug and
9002 print edge info only once.
9004 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
9007 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
9009 2019-06-01 Martin Sebor <msebor@redhat.com>
9012 * tree-pretty-print.c (dump_generic_node): Add parentheses.
9014 2019-05-31 Jan Hubicka <jh@suse.cz>
9016 * alias.c: Include ipa-utils.h.
9017 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
9018 * ipa-devirt.c (prevailing_odr_type): New.
9019 * ipa-utils.h (previaling_odr_type): Declare.
9021 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
9022 Hongtao Liu <hongtao.liu@intel.com>
9025 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
9026 NOTE_INSN_DELETED_LABEL check.
9028 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
9029 Robert Suchanek <robert.suchanek@mips.com>
9031 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
9032 and 3rd operands of the fmadd/fmsub/maddv builtin.
9034 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9036 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
9037 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9038 on OMP_SIMD if not nested inside of worksharing loop that also has
9039 lastprivate conditional clause for the same decl.
9040 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
9041 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
9043 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
9045 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
9047 (lower_lastprivate_clauses): Likewise.
9048 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
9049 calling lower_rec_input_clauses.
9050 (lower_omp_for): Likewise.
9051 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
9052 clause on simd construct.
9053 * omp-expand.c (expand_omp_simd): Initialize cond_var if
9054 OMP_CLAUSE__CONDTEMP_ clause is present.
9056 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
9059 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
9062 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
9063 TEX_D32, TEX_D64 or TEX_D128.
9065 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9067 * match.pd (~(vec?cst1:cst2)): New transformation.
9069 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
9071 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
9072 ((size_t)(A /[ex] B) CMP C): New transformation.
9074 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
9076 * doc/md.texi: Document define_insn_and_rewrite.
9077 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
9078 * gensupport.c (queue_elem): Update comment.
9079 (replace_operands_with_dups): New function.
9080 (gen_rewrite_sequence): Likewise.
9081 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
9082 * read-rtl.c (apply_subst_iterator): Likewise.
9083 (add_condition_to_rtx, named_rtx_p): Likewise.
9084 (rtx_reader::read_rtx_operand): Likewise.
9085 * config/aarch64/aarch64-sve.md
9086 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
9087 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
9088 define_insn_and_rewrite.
9089 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
9090 Remove separate define_split.
9092 2019-05-31 Jan Hubicka <jh@suse.cz>
9094 * tree-ssa-alias.c (type_has_components_p): New function.
9095 (aliasing_component_refs_p): Use it.
9097 2019-05-31 Martin Liska <mliska@suse.cz>
9099 * gdbhooks.py: Add const_tree to TreePrinter.
9101 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
9104 * common.opt (feliminate-unused-debug-symbols): Enable by default.
9105 * doc/invoke.texi (Debugging Options): Document new default of
9106 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
9108 2019-05-31 Jakub Jelinek <jakub@redhat.com>
9110 PR tree-optimization/90671
9111 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
9112 template_block used to be empty on the first call, don't use
9113 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
9114 seq with bb_seq and set it with set_bb_seq.
9116 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
9118 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9120 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9121 Michael Meissner <meissner@linux.ibm.com>
9123 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
9124 (prefixed_mem_operand): Likewise.
9125 (non_prefixed_mem_operand): Likewise.
9126 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
9128 * config/rs6000/rs6000.c (print_operand_address): Handle
9129 PC-relative addresses.
9130 (mode_supports_prefixed_address_p): New function.
9131 (rs6000_prefixed_address): New function.
9132 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
9133 (SYMBOL_REF_PCREL_P): Likewise.
9135 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9137 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
9138 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
9139 (gimplify_omp_for): If worksharing loop with lastprivate conditional
9140 is nested inside of parallel region, add _condtemp_ clause to both.
9141 * tree-nested.c (convert_nonlocal_omp_clauses,
9142 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
9144 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
9146 * omp-general.c (omp_extract_for_data): Compute it.
9147 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
9148 (lower_rec_input_clauses): Likewise.
9149 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
9150 clause is already present, just add one further one after it.
9151 (lower_lastprivate_clauses): Handle cond_ptr with array type.
9152 (lower_send_shared_vars): Clear _condtemp_ vars.
9153 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
9154 or section or taskgroup.
9155 * omp-expand.c (determine_parallel_type): Disallow combining only if
9156 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
9157 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
9158 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9159 expand_omp_for_static_chunk, expand_omp_for): Use
9160 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
9161 determine if a special set of API routines are needed and if condtemp
9162 needs to be initialized, while always initialize cond_var if
9163 fd->lastprivate_conditional is non-zero.
9165 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9166 Michael Meissner <meissner@linux.ibm.com>
9168 * config/rs6000/constraints.md (eI): New constraint.
9169 * config/rs6000/predicates.md (cint34_operand): New predicate.
9170 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
9171 (SIGNED_34BIT_OFFSET_P): Likewise.
9172 * doc/md.texi (eI): Document constraint.
9174 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
9176 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
9178 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
9179 Michael Meissner <meissner@linux.ibm.com>
9181 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
9182 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
9183 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
9184 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
9185 (OTHER_FUTURE_MASKS): Likewise.
9186 (POWERPC_MASKS): Likewise.
9187 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
9188 specified without -mprefixed-addr or -mcpu=future. Error if
9189 -mprefixed-addr is specified without -mcpu=future.
9190 (rs6000_opt_masks): Add entry for prefixed-addr.
9191 * rs6000.opt (mprefixed-addr): New option.
9193 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
9195 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
9196 cfun->is_thunk check.
9198 2019-05-30 Jakub Jelinek <jakub@redhat.com>
9200 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
9203 2019-05-30 Martin Liska <mliska@suse.cz>
9205 * gdbinit.in: Fix 'ptc' command. Add trt
9206 that prints TREE_TYPE($).
9208 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
9209 Alan Modra <amodra@gmail.com>
9211 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
9213 (rs6000_indirect_call_template_1): ...and here.
9214 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
9215 plt16_ha, plt16_lo, mtctr indirect calls. Use
9217 (rs6000_decl_ok_for_sibcall): New function.
9218 (rs6000_function_ok_for_sibcall): Refactor.
9219 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
9220 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
9221 when pcrel. Reorganize.
9222 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
9223 * rs6000.h (rs6000_pltseq_enum): New enum.
9224 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
9225 (*pltseq_tocsave): Use rs6000_pltseq_enum.
9226 (*pltseq_plt16_ha): Likewise.
9227 (*pltseq_plt16_lo): Likewise.
9228 (*pltseq_mtctr): Likewise.
9229 (*pltseq_plt_pcrel): New insn.
9230 (*call_local_aix): Handle @notoc calls.
9231 (*call_value_local_aix): Likewise.
9232 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
9233 (*call_value_nonlocal_aix): Likewise.
9234 (*call_indirect_pcrel): New insn.
9235 (*call_value_indirect_pcrel): Likewise.
9237 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
9239 * config/i386/sse.md (*save_multiple<mode>): Rename from
9240 save_multiple<mode>.
9241 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
9242 (*restore_multiple_and_return<mode>): Rename from
9243 restore_multiple_and_return<mode>.
9244 (*restore_multiple_leave_return<mode>): Rename from
9245 restore_multiple_leave_return<mode>.
9247 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
9249 * config.gcc (rx-*-linux*): New target.
9250 * config/rx/elf.opt: New file.
9251 * config/rx/linux.h: Likewise.
9252 * config/rx/t-linux: Likewise.
9253 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
9255 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
9256 (ASM_APP_OFF): Likewise.
9257 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
9260 2019-05-29 Jan Hubicka <jh@suse.cz>
9262 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
9263 variants are pointer equivalent.
9265 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9267 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
9268 * config/aarch64/aarch64-sve2.md: New file.
9269 (<u>avg<mode>3_floor): New pattern.
9270 (<u>avg<mode>3_ceil): Likewise.
9271 (*<sur>h<addsub><mode>): Likewise.
9272 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
9273 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
9275 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9278 * optc-save-gen.awk: In cl_optimization_print, use correct condition
9279 for var_opt_string printing. In cl_optimization_print_diff, print
9280 (null) instead of invoking undefined behavior if one of the
9281 var_opt_string pointers is NULL and use && instead of first || in the
9282 guarding condition. For var_target_other options, handle const char *
9283 target variables similarly to const char * optimize node variables.
9285 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
9287 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
9288 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
9289 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
9290 Add autib1716 and pacib1716 initialisation.
9291 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
9292 for autib1716 and pacib1716.
9293 * config/aarch64/aarch64-protos.h (aarch64_key_type,
9294 aarch64_post_cfi_startproc): Define.
9295 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
9296 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
9297 aarch64_handle_pac_ret_protection): Set default sign key to A.
9298 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
9299 aarch64_expand_prologue): Add check for b-key.
9300 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
9301 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
9302 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
9303 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
9304 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
9305 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
9306 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9307 * config/aarch64/aarch64.md (do_return): Add check for b-key.
9308 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
9309 pauth_hint_num_a with pauth_hint_num.
9310 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
9311 pauth_hint_num_a with pauth_hint_num.
9312 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
9313 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
9314 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9315 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
9316 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
9317 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
9318 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
9319 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
9320 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
9321 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
9322 UNSPEC_AUTIA1716 respectively.
9323 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
9324 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
9325 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
9326 * doc/invoke.texi (-mbranch-protection): Add b-key type.
9327 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
9328 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
9330 2019-05-29 Jakub Jelinek <jakub@redhat.com>
9332 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
9333 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
9334 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
9335 explicit clause on combined parallel into implicit shared clause.
9336 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
9337 and firstprivate if the decl has one too from combined parallel to
9338 the worksharing construct.
9340 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
9341 Michael Meissner <meissner@linux.ibm.com>
9343 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
9345 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
9347 * rtl.h (LABEL_REF_P): New #define.
9349 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
9351 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
9353 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9355 * internal-fn.c: Marked mask_load_direct as vectorizable.
9356 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
9357 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
9358 combined even if masks different with allow_slp_p param.
9359 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
9360 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
9361 dissolve SLP-only vectorizable groups when SLP has been discarded.
9362 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
9363 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
9365 (vect_build_slp_tree_1): Fixed comment typo.
9366 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
9367 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
9369 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
9371 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
9373 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9375 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
9376 Remove obsolete use_thunk reference.
9377 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9378 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9379 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
9380 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
9381 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9382 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9383 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9384 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9385 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9387 2019-05-28 Nathan Sidwell <nathan@acm.org>
9389 * tree.h (IDENTIFIER_ANON_P): New.
9390 (anon_aggrname_format, anon_aggname_p): Don't declare.
9391 (make_anon_name): Declare.
9392 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
9393 (hash_tree): Likewise.
9394 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
9395 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
9396 (anon_cnt, make_anon_name): New.
9398 2019-05-28 Martin Liska <mliska@suse.cz>
9401 * opts-global.c (decode_options): Print help for all
9402 help_option_arguments.
9403 * opts.c (print_help): Add new argument.
9404 (common_handle_option): Remember all values into
9405 help_option_arguments.
9406 * opts.h (print_help): Add new argument.
9408 2019-05-28 Martin Liska <mliska@suse.cz>
9411 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
9412 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
9413 (func_checker::compare_bb): Call compare_loops.
9415 2019-05-27 Jakub Jelinek <jakub@redhat.com>
9417 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
9418 on sections construct.
9419 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
9421 (lower_omp_sections): Handle lastprivate conditional.
9422 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
9423 lastprivate_conditional_map.
9424 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
9426 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
9427 critical, taskgroup and section regions when looking for a region
9428 with non-NULL lastprivate_conditional_map.
9430 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9432 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
9433 (*ix86_gen_sub3): Ditto.
9434 (*ix86_gen_sub3_carry): Ditto.
9435 (*ix86_gen_one_cmpl2): Ditto.
9436 (*ix86_gen_andsp): Ditto.
9437 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
9438 (gen_and2_insn): New static function.
9439 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
9440 Use gen_add3_insn instead of ix86_gen_add3.
9441 (ix86_expand_split_stack_prologue): Use gen_add2_insn
9442 instead of ix86_gen_add3.
9443 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
9444 Use gen_sub3_insn instead of ix86_gen_sub3.
9445 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
9446 instead of ix86_gen_add3.
9447 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
9448 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
9449 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
9450 * config/i386/i386-options.c (ix86_option_override_internal):
9451 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
9452 ix86_gen_one_cmpl2 and ix86_gen_andsp.
9454 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
9456 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
9457 and DW_OP_GNU_const_index opcodes.
9459 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
9461 * config/i386/i386.h (STACK_SIZE_MODE): Define.
9463 2019-05-27 Richard Biener <rguenther@suse.de>
9465 PR tree-optimization/90637
9466 * tree-ssa-sink.c (statement_sink_location): Honor the
9467 computed sink location for single-uses.
9469 2019-05-27 Richard Biener <rguenther@suse.de>
9472 * match.pd (vec_perm): Avoid clobbering op0 when not generating
9475 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9477 * config/i386/i386.md (@sub<mode>3_carry): Rename
9478 from sub<mode>3_carry.
9479 (@leave_<mode>): New expander.
9480 (*leave): Rename from leave.
9481 (*leave_rex64): Rename from leave_rex64.
9482 (@monitorx_<mode>): Rename from monitorx_<mode>.
9483 (@clzero_<mode>): Rename from clzero_<mode>.
9484 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
9485 from sse3_monitor_<mode>.
9486 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
9487 (*ix86_gen_leave): Ditto.
9488 (*ix86_gen_monitor): Ditto.
9489 (*ix86_gen_monitorx): Ditto.
9490 (*ix86_gen_clzero): Ditto.
9491 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
9492 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
9493 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
9494 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
9495 Use gen_sse3_monitor instead of ix86_gen_monitor.
9496 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
9497 instead of ix86_gen_monitorx.
9498 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
9499 instead of ix86_gen_clzero.
9500 * config/i386/i386-options.c (ix86_option_override_internal):
9501 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
9502 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
9504 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9506 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
9507 Rename from tls_global_dynamic_64_<mode>.
9508 (@tls_local_dynamic_base_64_<mode>): Rename from
9509 tls_local_dynamic_base_64_<mode>.
9510 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
9511 Remove indirect function.
9512 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
9513 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
9514 instead of ix86_gen_tls_global_dynamic_64.
9515 Use gen_tls_local_dynamic_base_64 instead of
9516 ix86_gen_tls_local_dynamic_base_64.
9517 * config/i386/i386-options.c (ix86_option_override_internal):
9518 Do not initialize ix86_gen_tls_global_dynamic_64 and
9519 ix86_gen_tls_local_dynamic_base_64.
9521 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
9523 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
9524 Rename from pro_epilogue_adjust_stack_<mode>_add.
9525 (@pro_epilogue_adjust_stack_sub_<mode>)
9526 Rename from pro_epilogue_adjust_stack_<mode>_sub.
9527 (@allocate_stack_worker_probe_<mode>):
9528 Rename from allocate_stack_worker_probe_<mode>.
9529 (allocate_stack): Use gen_allocate_stack_worker_probe.
9530 (probe_stack): Use gen_probe_stack_1.
9531 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
9532 (@adjust_stack_and_probe_<mode>): Rename from
9533 adjust_stack_and_probe<mode>.
9534 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
9535 (stack_protect_set): Use gen_stack_protect_set_1.
9536 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
9537 (stack_protect_test): Use gen_stack_protect_test_1.
9538 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
9539 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
9540 Remove indirect function.
9541 (*ix86_gen_adjust_stack_and_probe): Ditto.
9542 (*ix86_gen_probe_stack_range): Ditto.
9543 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
9544 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
9545 (ix86_adjust_stack_and_probe_stack_clash): Use
9546 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
9547 (ix86_adjust_stack_and_probe): Ditto.
9548 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
9549 of ix86_gen_probe_stack_range.
9550 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
9551 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
9552 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
9553 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
9554 CODE_FOR_stack_protect_test_{si,di}.
9555 * config/i386/i386-options.c (ix86_option_override_internal):
9556 Do not initialize ix86_gen_allocate_stack_worker,
9557 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
9559 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
9561 * doc/invoke.texi (Link Options): Many editorial changes around
9564 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9566 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
9567 pre-Solaris 11 referene and most Studio compiler details.
9569 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
9572 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
9573 DImode to SImode in floating-point registers on 64-bit target.
9574 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
9575 register_operand in xmpyu patterns.
9577 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9579 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
9580 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
9581 OMP_CLAUSE__REDUCTEMP_.
9582 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9583 OMP_CLAUSE__CONDTEMP_.
9584 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
9585 * tree-pretty-print.c (dump_omp_clause): Likewise.
9586 * tree-nested.c (convert_nonlocal_omp_clauses,
9587 convert_local_omp_clauses): Likewise.
9588 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
9589 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
9590 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
9592 (gimplify_omp_for): Warn and disable conditional modifier from
9593 lastprivate on loop iterators.
9594 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
9596 * omp-general.c (omp_extract_for_data): Initialize it.
9597 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
9599 (delete_omp_context): Delete it.
9600 (lower_lastprivate_conditional_clauses): New function.
9601 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
9602 handle lastprivate conditional clauses.
9603 (lower_reduction_clauses): Add CLIST argument, emit it into
9604 the critical section if any.
9605 (lower_omp_sections): Adjust lower_lastprivate_clauses and
9606 lower_reduction_clauses callers.
9607 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
9608 to lower_lastprivate_clauses.
9609 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
9610 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
9611 clist into a critical section if not emitted there already by
9612 lower_reduction_clauses.
9613 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
9615 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
9616 conditional variables.
9617 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
9619 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9620 expand_omp_for_static_chunk): Handle lastprivate conditional.
9621 (expand_omp_for): Handle fd.lastprivate_conditional like
9624 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9626 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
9627 kernel does not exit cleanly.
9628 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
9630 2019-05-24 Jason Merrill <jason@redhat.com>
9633 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9635 2019-05-24 Richard Biener <rguenther@suse.de>
9638 * tree-loop-distribution.c (struct partition): Add location
9640 (partition_alloc): Initialize all fields.
9641 (generate_memset_builtin): Use the location recorded in the
9642 partition for the generated call.
9643 (generate_memcpy_builtin): Likewise.
9644 (classify_partition): Record the location of a single store
9645 as location for the partition.
9647 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
9649 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
9652 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
9655 * common/config/aarch64/aarch64-common.c
9656 (aarch64_rewrite_selected_cpu): Change local temporary variable
9657 type from unsigned long to uint64_t.
9658 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
9659 aarch64_get_extension_string_for_isa_flags): Change declaration to
9660 match new definition by replacing unsigned long with uint64_t.
9662 2019-05-24 Jakub Jelinek <jakub@redhat.com>
9665 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
9666 gen_attr_type just once instead of 4-7 times. Formatting fixes.
9667 Handle stack_protect_test_<mode> codegen similarly to corresponding
9670 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
9672 * config/i386/darwin.h: Reject -mfentry*.
9673 * doc/sourcebuild.texi: Document mfentry target support.
9675 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9677 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
9678 Rename to rs6000_global_entry_point_prologue_needed_p. Return
9679 false for PC-relative functions.
9680 (rs6000_output_function_prologue): Change called function name to
9681 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
9682 name,1" for PC-relative functions.
9683 (rs6000_elf_declare_function_name): Change called function name to
9684 rs6000_global_entry_point_prologue_needed_p.
9686 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
9689 * config/i386/i386.c (gen_rtx_cost):
9690 Use ix86_tune_cost instead of ix86_cost.
9692 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9693 Michael Meissner <meissner@linux.ibm.com>
9694 Segher Boessenkool <segher@kernel.crashing.org>
9696 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
9698 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
9699 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
9700 (rs6000_fndecl_pcrel_p): Likewise.
9701 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
9702 error if -mpcrel is requested without -mcpu=future.
9703 (rs6000_opt_masks): Add entry for pcrel.
9704 (rs6000_fndecl_pcrel_p): New function.
9705 (rs6000_pcrel_p): Likewise.
9706 * config/rs6000/rs6000.opt (mpcrel): New option.
9707 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
9709 2019-05-23 Jan Hubicka <jh@suse.cz>
9710 Martin Liska <mliska@suse.cz>
9712 PR tree-optimization/90576
9713 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
9715 (aliasing_component_refs_p): Fix three way size compare conditional;
9716 give up earlier in case we can not decide on equivalence.
9718 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
9719 Michael Meissner <meissner@linux.ibm.com>
9720 Segher Boessenkool <segher@kernel.crashing.org>
9722 * config.gcc: Add future cpu.
9723 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
9724 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
9726 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
9727 (RS6000_CPU): New instantiation for future cpu.
9728 * config/rs6000/rs6000-opts.h (enum processor_type): Add
9730 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
9731 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
9732 * config/rs6000/rs6000-tables.opt: Regenerate.
9733 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
9734 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
9735 (rs6000_machine_from_flags): Handle future cpu.
9736 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
9737 PROCESSOR_POWER9 for now.
9738 (rs6000_adjust_cost): Likewise.
9739 (rs6000_issue_rate): Likewise.
9740 (rs6000_register_move_cost): Likewise.
9741 (rs6000_opt_masks): Add entry for future.
9742 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
9743 (MASK_FUTURE): New #define.
9744 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
9745 * config/rs6000/rs6000.opt (mfuture): New target option.
9746 * doc/invoke.texi (mcpu): Add future cpu.
9748 2019-05-23 Martin Liska <mliska@suse.cz>
9751 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
9752 operation points to a temporary (pointed via tree_to_wide_ref)
9753 that is out of scope after the &.
9755 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
9758 * doc/extend.texi (Function Names): Add missing word.
9760 2019-05-23 Richard Biener <rguenther@suse.de>
9762 PR tree-optimization/88440
9763 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
9765 * tree-loop-distribution.c (generate_memset_builtin): Fold the
9767 (generate_memcpy_builtin): Likewise.
9768 (distribute_loop): Pass in whether to only distribute patterns.
9769 (prepare_perfect_loop_nest): Also allow size optimization.
9770 (pass_loop_distribution::execute): When optimizing a loop
9771 nest for size allow pattern replacement.
9773 2019-05-23 Jakub Jelinek <jakub@redhat.com>
9776 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
9779 2019-05-23 Martin Liska <mliska@suse.cz>
9782 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
9783 expression similarly to gimplify_decl_expr.
9785 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9787 * cse.c (cse_dump_path): s/dump_file/f.
9789 2019-05-22 David Malcolm <dmalcolm@redhat.com>
9792 * diagnostic-format-json.cc: Include "selftest.h".
9793 (json_from_expanded_location): Only add "file" key for non-NULL
9795 (json_from_location_range): Don't add "start" and "finish"
9796 children if they are UNKNOWN_LOCATION.
9797 (selftest::test_unknown_location): New selftest.
9798 (selftest::test_bad_endpoints): New selftest.
9799 (selftest::diagnostic_format_json_cc_tests): New function.
9800 * json.cc (json::object::get): New function.
9801 (selftest::test_object_get): New selftest.
9802 (selftest::json_cc_tests): Call it.
9803 * json.h (json::object::get): New decl.
9804 * selftest-run-tests.c (selftest::run_tests): Call
9805 selftest::diagnostic_format_json_cc_tests.
9806 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
9809 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
9810 Andrew Stubbs <amd@codesourcery.com>
9812 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
9813 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
9814 (kernel): Rename to...
9815 (main_kernel): ... this.
9816 (load_image): Load _init_array and _fini_array kernels.
9817 (run): Add argument for kernel to run.
9818 (main): Run init_array_kernel before main_kernel, and
9819 fini_array_kernel after.
9820 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
9821 amdgpu_hsa_kernel attribute on functions.
9822 (gcn_disable_constructors): Delete.
9823 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
9824 * config/gcn/crt0.c (size_t): Define.
9825 (_init_array, _fini_array): New.
9826 (__preinit_array_start, __preinit_array_end,
9827 __init_array_start, __init_array_end,
9828 __fini_array_start, __fini_array_end): Declare weak references.
9830 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
9832 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
9834 2019-05-22 Jason Merrill <jason@redhat.com>
9836 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
9838 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
9841 * config/i386/i386-options.c (ix86_init_machine_status): Set
9842 stack_frame_required to true.
9843 * config/i386/i386.c (ix86_get_frame_size): New function.
9844 (ix86_frame_pointer_required): Replace get_frame_size with
9845 ix86_get_frame_size.
9846 (ix86_compute_frame_layout): Likewise.
9847 (ix86_find_max_used_stack_alignment): Changed to void. Set
9848 stack_frame_required.
9849 (ix86_finalize_stack_frame_flags): Always call
9850 ix86_find_max_used_stack_alignment. Replace get_frame_size with
9851 ix86_get_frame_size.
9852 * config/i386/i386.h (machine_function): Add stack_frame_required.
9854 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
9856 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
9858 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
9860 * common/config/aarch64/aarch64-common.c
9861 (struct aarch64_option_extension, struct processor_name_to_arch,
9862 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
9863 aarch64_contains_opt,
9864 aarch64_get_extension_string_for_isa_flags): Change type of
9865 variables storing flags to uint64_t.
9866 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
9867 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
9868 * config/aarch64/aarch64.c (struct processor,
9869 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
9870 aarch64_validate_march, aarch64_override_options,
9871 aarch64_option_print, aarch64_handle_attr_isa_flags,
9872 aarch64_declare_function_name, aarch64_start_file): Make flag
9874 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
9875 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
9876 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
9877 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
9878 * config/aarch64/driver-aarch64.c
9879 (struct aarch64_arch_extension, struct aarch64_core_data,
9880 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
9881 flag variables uint64_t.
9882 * doc/invoke.texi: Add documentation for new arguments.
9884 2019-05-22 Richard Biener <rguenther@suse.de>
9886 * alias.c (ao_ref_from_mem): Move stack-slot sharing
9888 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
9890 2019-05-22 Martin Liska <mliska@suse.cz>
9893 * doc/extend.texi: Document the change.
9895 2019-05-22 Richard Biener <rguenther@suse.de>
9897 PR tree-optimization/90450
9898 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
9899 (mem_ref_hasher::equal): Check it.
9900 (mem_ref_alloc): Initialize it.
9901 (gather_mem_refs_stmt): Set it.
9903 2019-05-22 Richard Biener <rguenther@suse.de>
9905 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
9907 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
9910 2019-05-22 Alan Modra <amodra@gmail.com>
9912 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
9913 (ASM_CPU_SPEC): Conditionally add -many.
9914 * config/rs6000/rs6000.c (rs6000_machine): New static var.
9915 (rs6000_machine_from_flags, emit_asm_machine): New functions..
9916 (rs6000_file_start): ..extracted from here, and modified to
9918 (rs6000_output_function_prologue): Emit .machine as necessary.
9920 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
9923 * ira-lives.c (process_bb_node_lives): Consider defs
9924 for a call insn to be die before the call, not after.
9926 * function.c (assign_parm_setup_block): Raise alignment of
9927 stacked parameter only for STRICT_ALIGNMENT targets.
9929 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9931 * config/rs6000/constraints.md (define_register_constraint "wz"):
9933 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9934 RS6000_CONSTRAINT_wz.
9935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9936 (rs6000_init_hard_regno_mode_ok): Adjust.
9937 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
9938 * doc/md.texi (Machine Constraints): Adjust.
9940 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9942 * config/rs6000/constraints.md (define_register_constraint "wl"):
9944 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9945 RS6000_CONSTRAINT_wl.
9946 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9947 (rs6000_init_hard_regno_mode_ok): Adjust.
9948 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
9949 * doc/md.texi (Machine Constraints): Adjust.
9951 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9953 * config/rs6000/constraints.md (define_register_constraint "wm"):
9955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9956 RS6000_CONSTRAINT_wm.
9957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9958 (rs6000_init_hard_regno_mode_ok): Adjust.
9959 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
9960 * doc/md.texi (Machine Constraints): Adjust.
9962 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9964 * config/rs6000/constraints.md (define_register_constraint "wk"):
9966 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9967 RS6000_CONSTRAINT_wk.
9968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9969 (rs6000_init_hard_regno_mode_ok): Adjust.
9970 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
9971 * doc/md.texi (Machine Constraints): Adjust.
9973 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9975 * config/rs6000/constraints.md (define_register_constraint "wj"):
9977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9978 RS6000_CONSTRAINT_wj.
9979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9980 (rs6000_init_hard_regno_mode_ok): Adjust.
9981 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
9983 * config/rs6000/vsx.md: Ditto.
9984 * doc/md.texi (Machine Constraints): Adjust.
9986 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
9988 * config/rs6000/constraints.md (define_register_constraint "wh"):
9990 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9991 RS6000_CONSTRAINT_wh.
9992 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9993 (rs6000_init_hard_regno_mode_ok): Adjust.
9994 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
9995 * doc/md.texi (Machine Constraints): Adjust.
9997 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10000 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
10001 Avoid calling gen_lowpart with CONST operand.
10003 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
10005 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
10006 field template_last_to_copy.
10007 (ssa_create_duplicates): Set it, and use it. Attempt to
10008 preserve more debug stmts.
10010 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10012 * config/i386/sse.md (VF1_AVX2): New mode iterator.
10013 (signbit<mode>2): New expander
10015 2019-05-21 James Clarke <jrtc27@jrtc27.com>
10018 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
10019 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
10021 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
10023 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
10024 %ebx and %ecx bafore calling cpuid with leaf 1 or
10025 non-constant leaf argument.
10027 2019-05-21 Alan Modra <amodra@gmail.com>
10030 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
10031 power9 direct move cost.
10033 2019-05-21 Richard Biener <rguenther@suse.de>
10035 PR middle-end/90510
10036 * fold-const.c (fold_read_from_vector): New function.
10037 * fold-const.h (fold_read_from_vector): Declare.
10038 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
10039 single-element insert permutations. Canonicalize selector
10040 further and fix issue with last commit.
10042 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10044 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
10045 parameter with default value false to declaration.
10046 (split_edges_for_insertion): New inline function. Wrapper for
10047 split_critical_edges with for_edge_insertion_p = true.
10048 * tree-cfg.c (split_critical_edges): Don't split non-critical
10049 edges if for_edge_insertion_p is false. Fix whitespace.
10050 * tree-ssa-pre.c (pass_pre::execute): Call
10051 split_edges_for_insertion instead of split_critical_edges.
10052 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
10053 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
10054 (pass_data_sink_code): Update function name in the comment.
10056 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
10058 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
10059 around is_value_included_in that knows how to handle BIT_AND_EXPR.
10060 (is_pred_expr_subset_of): Use the new function. Handle more cases where
10061 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
10064 2019-05-21 Martin Liska <mliska@suse.cz>
10066 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
10068 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
10069 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
10071 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10073 (rs6000_function_arg): Likewise.
10074 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
10075 (rs6000_expand_ternop_builtin): Use interval syntax.
10076 (get_element_number): Likewise.
10077 (altivec_expand_builtin): Likewise.
10078 (rs6000_get_function_versions_dispatcher): Quote target_clones.
10080 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10084 * function.h (struct function): Add calls_eh_return member.
10085 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
10086 gimplifying __builtin_eh_return call.
10087 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
10089 (expand_call_inline): Or in src_cfun->calls_eh_return into
10090 dst_cfun->calls_eh_return.
10091 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
10092 cfun->calls_eh_return.
10093 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
10094 * lto-streamer-out.c (output_struct_function_base): Write
10097 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
10099 PR rtl-optimization/43147
10100 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
10101 IX86_BUILTIN_SHUFPD.
10103 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10105 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
10106 (refs_may_alias_p_1): ... here; update stats.
10107 (refs_may_alias_p): Do not update stats here.
10109 2019-05-20 Richard Biener <rguenther@suse.de>
10111 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
10112 doesn't produce pointers.
10113 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
10114 the first operand points to.
10116 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
10118 * tree-ssa-alias.c (compare_sizes): New function.
10119 (sompare_type_sizes): New function
10120 (aliasing_component_refs_p): Use it.
10121 (indirect_ref_may_alias_decl_p): Likewise.
10123 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10125 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
10127 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10129 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
10130 (LIBLSAN_EARLY_SPEC): Likewise.
10131 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
10133 2019-05-20 Martin Liska <mliska@suse.cz>
10135 * config/i386/i386.c (ix86_libc_has_fast_function):
10136 Add ATTRIBUTE_UNUSED for the argument.
10138 2019-05-20 Richard Biener <rguenther@suse.de>
10140 * gimple-match-head.c: Include vec-perm-indices.h.
10141 * generic-match-head.c: Likewise.
10142 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
10144 * fold-const.c (fold_vec_perm): Export.
10145 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
10146 (match.pd): ...here.
10148 2019-05-20 Jakub Jelinek <jakub@redhat.com>
10150 * cfgloop.h (struct loop): Add simdlen member.
10151 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
10152 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
10153 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
10154 as new argument to autovectorize_vector_sizes target hook. If
10155 loop->simdlen, pick up vector size where the vectorization factor
10156 is equal to loop->simd, and if there is none, fall back to the first
10158 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
10160 * omp-low.c (omp_clause_aligned_alignment): Likewise.
10161 * omp-general.c (omp_max_vf): Likewise.
10162 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
10163 * tree-vect-slp.c (vect_slp_bb): Likewise.
10164 * target.def (autovectorize_vector_sizes): Add ALL argument and
10166 * doc/tm.texi: Adjust documentation.
10167 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
10168 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
10169 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
10171 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
10172 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
10173 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
10174 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
10175 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
10176 preferred vector size is not 512-bit or 256-bit, just put those
10177 unpreferred ones last.
10179 2019-05-20 Martin Liska <mliska@suse.cz>
10181 * targhooks.c (default_libc_has_fast_function): New function.
10182 * targhooks.h (default_libc_has_fast_function): Likewise.
10184 2019-05-20 Martin Liska <mliska@suse.cz>
10186 PR middle-end/90263
10187 * builtins.c (expand_builtin_memory_copy_args): When having a
10188 target with fast mempcpy implementation do now use memcpy.
10189 * config/i386/i386.c (ix86_libc_has_fast_function): New.
10190 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
10191 * doc/tm.texi: Likewise.
10192 * doc/tm.texi.in: Likewise.
10194 * expr.c (emit_block_move_hints): Add 2 new arguments.
10195 * expr.h (emit_block_move_hints): Bail out when libcall
10196 to memcpy would be used.
10198 2019-05-20 Martin Liska <mliska@suse.cz>
10200 * profile-count.c: Add vertical spacing in order
10201 to separate functions.
10202 * profile-count.h: Likewise.
10204 2019-05-20 Martin Liska <mliska@suse.cz>
10206 * profile-count.h: Do not use full qualified
10208 * profile-count.c (profile_count::to_frequency): Likewise.
10210 2019-05-20 Martin Liska <mliska@suse.cz>
10212 * profile-count.h (enum profile_quality): Use capital letters
10213 for enum value names. Use the adjusted names.
10214 * profile-count.c: Use the adjusted names.
10216 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10218 * config/rs6000/constraints.md (define_register_constraint "wH"):
10220 (define_register_constraint "wI"): Delete.
10221 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10222 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
10223 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10224 (rs6000_init_hard_regno_mode_ok): Adjust.
10225 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
10226 resp. "d", or with "wa" as appropriate, all with "p8v".
10227 * config/rs6000/vsx.md: Ditto.
10228 * doc/md.texi (Machine Constraints): Adjust.
10230 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10232 * config/rs6000/constraints.md (define_register_constraint "wy"):
10234 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10235 RS6000_CONSTRAINT_wy.
10236 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10237 (rs6000_init_hard_regno_mode_ok): Adjust.
10238 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
10239 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
10240 (define_mode_attr Fisa): New.
10241 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
10242 * doc/md.texi (Machine Constraints): Adjust.
10244 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10246 * config/rs6000/constraints.md (define_register_constraint "wu"):
10248 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10249 RS6000_CONSTRAINT_wu.
10250 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10251 (rs6000_init_hard_regno_mode_ok): Adjust.
10252 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
10254 (define_mode_attr Fa): Delete.
10255 * config/rs6000/vsx.md: Ditto.
10256 * doc/md.texi (Machine Constraints): Adjust.
10258 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10260 * config/rs6000/constraints.md (define_register_constraint "wJ"):
10262 (define_register_constraint "wK"): Delete.
10263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10264 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
10265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10266 (rs6000_init_hard_regno_mode_ok): Adjust.
10267 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
10268 Replace "wK" constraint by "wH" with "p9v".
10269 * config/rs6000/vsx.md: Ditto.
10270 * doc/md.texi (Machine Constraints): Adjust.
10272 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10274 * config/rs6000/constraints.md (define_register_constraint "wb"):
10276 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10277 RS6000_CONSTRAINT_wb.
10278 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10279 (rs6000_init_hard_regno_mode_ok): Adjust.
10280 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
10281 * config/rs6000/vsx.md: Ditto.
10282 * doc/md.texi (Machine Constraints): Adjust.
10284 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
10286 * config/rs6000/constraints.md (define_register_constraint "wo"):
10288 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10289 RS6000_CONSTRAINT_wo.
10290 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10291 (rs6000_init_hard_regno_mode_ok): Adjust.
10292 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
10293 * config/rs6000/altivec.md: Ditto.
10294 * doc/md.texi (Machine Constraints): Adjust.
10296 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10298 * config/darwin-c.c (darwin_register_objc_includes): Do not
10299 prepend the sysroot when building gnu-runtime header search
10302 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
10304 * config/darwin.c (darwin_file_end): Use switch_to_section ()
10305 instead of direct output of the asm.
10307 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10309 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
10310 argument to be type bool (was int before).
10311 (rs6000_emit_epilogue): Simplify some code. Declare some variables
10312 at first use. Use type bool for some variables. Fix a theoretical
10313 eh_return bug for svr4.
10315 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
10317 * config/rs6000/rs6000.md (isa): New attribute.
10318 (enabled): New attribute.
10320 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
10322 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
10323 assemble_start_function and assemble_end_function.
10325 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
10327 PR middle-end/89433
10328 * omp-general.c (oacc_verify_routine_clauses): Change formal
10329 parameters. Add checking if already marked with an OpenACC
10330 'routine' directive. Adjust all users.
10332 PR middle-end/89433
10333 * omp-general.c (oacc_build_routine_dims): Move some of its
10335 (oacc_verify_routine_clauses): ... this new function.
10336 * omp-general.h (oacc_verify_routine_clauses): New prototype.
10338 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10340 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
10341 formating of picbase labels to match other ports.
10343 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
10345 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
10346 in the generated code.
10348 2019-05-16 Martin Sebor <msebor@redhat.com>
10350 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
10351 identifiers, keywords, operators, and types in diagnostics. Correct
10352 quoting, spelling, and sentence capitalization issues.
10353 (expand_builtin_atomic_is_lock_free): Same.
10354 (fold_builtin_next_arg): Same.
10355 * cfgexpand.c (expand_one_var): Same.
10356 (tree_conflicts_with_clobbers_p): Same.
10357 (expand_asm_stmt): Same.
10358 (verify_loop_structure): Same.
10359 * cgraphunit.c (process_function_and_variable_attributes): Same.
10360 * collect-utils.c (collect_execute): Same.
10361 * collect2.c (maybe_run_lto_and_relink): Same.
10362 (is_lto_object_file): Same.
10363 (scan_prog_file): Same.
10364 * convert.c (convert_to_real_1): Same.
10365 * dwarf2out.c (dwarf2out_begin_prologue): Same.
10366 * except.c (verify_eh_tree): Same.
10367 * gcc.c (execute): Same.
10368 (eval_spec_function): Same.
10369 (run_attempt): Same.
10370 (driver::set_up_specs): Same.
10371 (compare_debug_auxbase_opt_spec_function): Same.
10372 * gcov-tool.c (unlink_gcda_file): Same.
10374 (do_rewrite): Same.
10375 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
10376 * gimplify.c (gimplify_asm_expr): Same.
10377 (gimplify_adjust_omp_clauses): Same.
10378 * hsa-gen.c (gen_hsa_addr_insns): Same.
10379 (gen_hsa_insns_for_load): Same.
10380 (gen_hsa_cmp_insn_from_gimple): Same.
10381 (gen_hsa_insns_for_operation_assignment): Same.
10382 (gen_get_level): Same.
10383 (gen_hsa_alloca): Same.
10384 (omp_simple_builtin::generate): Same.
10385 (gen_hsa_atomic_for_builtin): Same.
10386 (gen_hsa_insns_for_call): Same.
10387 * input.c (dump_location_info): Same.
10388 * ipa-devirt.c (compare_virtual_tables): Same.
10389 * ira.c (ira_setup_eliminable_regset): Same.
10390 * lra-assigns.c (lra_assign): Same.
10391 * lra-constraints.c (lra_constraints): Same.
10392 * lto-streamer-in.c (lto_input_mode_table): Same.
10393 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
10394 (merge_and_complain): Same.
10395 (compile_offload_image): Same.
10396 (compile_images_for_offload_targets): Same.
10397 (debug_objcopy): Same.
10400 * opts.c (print_specific_help): Same.
10401 (parse_no_sanitize_attribute): Same.
10402 (print_help): Same.
10403 (handle_param): Same.
10404 * plugin.c (add_new_plugin): Same.
10405 (parse_plugin_arg_opt): Same.
10406 (try_init_one_plugin): Same.
10407 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
10408 operators, and types in diagnostics. Correct quoting and spelling
10410 * read-rtl-function.c (parse_edge_flag_token): Same.
10411 (function_reader::parse_enum_value): Same.
10412 * reg-stack.c (check_asm_stack_operands): Same.
10413 * regcprop.c (validate_value_data): Same.
10414 * sched-rgn.c (make_pass_sched_fusion): Same.
10415 * stmt.c (check_unique_operand_names): Same.
10416 * targhooks.c (default_target_option_pragma_parse): Same.
10417 * tlink.c (recompile_files): Same.
10418 * toplev.c (process_options): Same.
10419 (do_compile): Same.
10420 * trans-mem.c (diagnose_tm_1): Same.
10421 (ipa_tm_scan_irr_block): Same.
10422 (ipa_tm_diagnose_transaction): Same.
10423 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
10424 format a tree code name in a diagnostic.
10425 (verify_types_in_gimple_min_lval): Same.
10426 (verify_types_in_gimple_reference): Same.
10427 (verify_gimple_call): Same.
10428 (verify_gimple_assign_unary): Same.
10429 (verify_gimple_assign_binary): Same.
10430 (verify_gimple_assign_ternary): Same.
10431 (verify_gimple_assign_single): Same.
10432 (verify_gimple_switch): Same.
10433 (verify_gimple_label): Same.
10434 (verify_gimple_phi): Same.
10435 (verify_gimple_in_seq): Same.
10436 (verify_eh_throw_stmt_node): Same.
10437 (collect_subblocks): Same.
10438 (gimple_verify_flow_info): Same.
10439 (do_warn_unused_result): Same.
10440 * tree-inline.c (expand_call_inline): Same.
10441 * tree-into-ssa.c (update_ssa): Same.
10442 * tree.c (tree_int_cst_elt_check_failed): Same.
10443 (tree_vec_elt_check_failed): Same.
10444 (omp_clause_operand_check_failed): Same.
10445 (verify_type_variant): Same.
10446 (verify_type): Same.
10447 * value-prof.c (verify_histograms): Same.
10448 * varasm.c (assemble_start_function): Same.
10450 2019-05-16 Martin Sebor <msebor@redhat.com>
10452 * config/i386/i386-expand.c (get_element_number): Quote keywords
10453 and other internal names in diagnostics. Adjust other diagnostic
10454 formatting issues noted by -Wformat-diag.
10455 * config/i386/i386-features.c
10456 (ix86_mangle_function_version_assembler_name): Same.
10457 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
10458 * config/i386/i386.c (ix86_function_type_abi): Same.
10459 (ix86_function_ms_hook_prologue): Same.
10460 (classify_argument): Same.
10461 (ix86_expand_prologue): Same.
10462 (ix86_md_asm_adjust): Same.
10463 (ix86_memmodel_check): Same.
10465 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10467 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
10468 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
10471 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
10474 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
10475 intrinsics without SSE/SSE2/SSSE3.
10476 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
10478 (*mmx_uavgv8qi3): Likewise.
10480 2019-05-17 Richard Biener <rguenther@suse.de>
10482 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
10483 VEC_PERM_EXPR as __VEC_PERM with -gimple.
10485 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
10487 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
10488 vec_sldw insn pattern.
10490 2019-05-17 Richard Biener <rguenther@suse.de>
10492 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
10494 2019-05-17 Martin Liska <mliska@suse.cz>
10497 * toplev.c (output_stack_usage): With LTO and sanitizer it
10498 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
10499 has no file location.
10501 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10504 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
10505 sz0 is equal to sz1, instead return false in that case.
10507 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
10508 has non-constant expression, force sctx.lane and use two
10509 argument IFN_GOMP_SIMD_LANE instead of single argument.
10510 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
10511 two argument IFN_GOMP_SIMD_LANE without lhs.
10512 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
10514 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
10516 (LOOP_REQUIRES_VERSIONING): Or in
10517 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
10518 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
10520 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
10521 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
10522 from simd if clause if needed.
10524 2019-05-16 Richard Biener <rguenther@suse.de>
10526 * tree-affine.c (expr_to_aff_combination): New function split
10528 (tree_to_aff_combination): ... here.
10529 (aff_combination_expand): Avoid building a GENERIC tree.
10531 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
10533 * cgraphunit.c (cgraph_node::expand_thunk): Remove
10534 assemble_start_function and assemble_end_function calls.
10535 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
10536 assemble_start_function and assemble_end_function.
10537 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
10538 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
10539 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
10540 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
10541 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
10542 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
10543 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
10544 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
10545 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10546 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10547 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10548 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
10550 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
10551 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
10552 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
10553 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
10554 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10555 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10556 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
10557 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
10558 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10559 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
10560 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10561 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10562 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
10563 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
10565 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10566 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10567 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
10569 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
10571 * tree-ssa-alias.c (alias_stats): Add
10572 aliasing_component_refs_p_may_alias and
10573 aliasing_component_refs_p_no_alias.
10574 (dump_alias_stats): Print aliasing_component_refs_p stats.
10575 (aliasing_component_refs_p): Update stats.
10577 2019-05-16 Martin Liska <mliska@suse.cz>
10580 * multiple_target.c (expand_target_clones): Do not allow
10581 target_clones being used with a symbol that is an alias.
10583 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
10585 PR tree-optimization/90394
10586 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
10587 positives rather than ICE for cases where (code2 == NE_EXPR
10588 && code1 == BIT_AND_EXPR).
10590 2019-05-16 Jakub Jelinek <jakub@redhat.com>
10593 * tree-core.h (struct tree_decl_common): Document
10594 decl_nonshareable_flag for PARM_DECLs.
10595 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
10596 * calls.c (expand_call): Don't try tail call if caller
10597 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
10598 passed on the stack and callee needs to pass any arguments on the
10600 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
10601 else if instead of series of mutually exclusive ifs. Handle
10602 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
10603 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
10605 * lto-streamer.h (LTO_major_version): Bump to 9.
10607 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
10609 PR tree-optimization/90106
10610 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
10611 new parameter as new internal function call, also move it to new
10613 (use_internal_fn): Pass internal function call to
10614 shrink_wrap_one_built_in_call_with_conds.
10616 2019-05-15 Jakub Jelinek <jakub@redhat.com>
10618 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
10620 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
10621 safelen_int and set loop->dont_vectorize.
10623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10626 * config/i386/i386-builtin.def: Enable MMX intrinsics with
10628 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
10630 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
10631 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
10632 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
10635 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10638 * config/i386/mmx.md (*vec_dupv2sf): Changed to
10639 define_insn_and_split to support SSE emulation.
10640 (*vec_extractv2sf_0): Likewise.
10641 (*vec_extractv2sf_1): Likewise.
10642 (*vec_extractv2si_0): Likewise.
10643 (*vec_extractv2si_1): Likewise.
10644 (*vec_extractv2si_zext_mem): Likewise.
10645 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
10646 (vec_extractv2sf_1 splitter): Likewise.
10647 (vec_extractv2sfsf): Likewise.
10648 (vec_setv2si): Likewise.
10649 (vec_extractv2si_1 splitter): Likewise.
10650 (vec_extractv2sisi): Likewise.
10651 (vec_setv4hi): Likewise.
10652 (vec_extractv4hihi): Likewise.
10653 (vec_setv8qi): Likewise.
10654 (vec_extractv8qiqi): Likewise.
10655 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10656 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
10657 (vec_extractv2sisi): Likewise.
10658 (vec_extractv4hihi): Likewise.
10659 (vec_extractv8qiqi): Likewise.
10660 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
10661 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
10662 (vec_initv2sisi): Likewise.
10663 (vec_initv4hihi): Likewise.
10664 (vec_initv8qiqi): Likewise.
10665 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
10666 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
10667 (vec_setv4hi): Likewise.
10668 (vec_setv8qi): Likewise.
10670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10673 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
10674 TARGET_MMX_WITH_SSE.
10675 (MMXMODE:*mov<mode>_internal): Likewise.
10676 (MMXMODE:movmisalign<mode>): Likewise.
10678 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
10681 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
10682 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
10683 (sse2_cvtpd2pi): Ditto.
10684 (sse2_cvttpd2pi): Ditto.
10685 (*vec_concatv2sf_sse4_1): Ditto.
10686 (*vec_concatv2sf_sse): Ditto.
10687 (*vec_concatv2si_sse4_1): Ditto.
10688 (*vec_concatv2si): Ditto.
10689 (*vec_concatv4si_0): Ditto.
10690 (*vec_concatv2di_0): Ditto.
10692 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10695 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
10697 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10700 * config/i386/sse.md (ssse3_palignrdi): Changed to
10701 define_insn_and_split to support SSE emulation.
10703 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10706 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
10708 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10711 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
10712 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10718 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
10719 or TARGET_MMX_WITH_SSE.
10720 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
10722 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10725 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
10727 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10730 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
10731 Changed to define_insn_and_split to support SSE emulation.
10733 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10736 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
10737 Changed to define_insn_and_split to support SSE emulation.
10739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10742 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
10743 (*mmx_<emms>): This.
10744 (mmx_<emms>): New expander.
10746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10749 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
10751 (*sse2_umulv1siv1di3): Add SSE2 emulation.
10753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10756 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
10758 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10761 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
10763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10766 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
10767 TARGET_MMX_WITH_SSE.
10768 (*mmx_uavgv4hi3): Add SSE emulation.
10770 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10773 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
10774 and TARGET_MMX_WITH_SSE.
10775 (*mmx_uavgv8qi3): Add SSE emulation.
10777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10780 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
10781 maskmovdqu for __MMX_WITH_SSE__.
10783 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10786 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
10787 TARGET_MMX and TARGET_MMX_WITH_SSE.
10788 (*mmx_umulv4hi3_highpart): Add SSE emulation.
10790 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10793 * config/i386/mmx.md (mmx_pmovmskb): Changed to
10794 define_insn_and_split to support SSE emulation.
10796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10799 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
10800 and TARGET_MMX_WITH_SSE.
10801 (mmx_<code>v8qi3): Likewise.
10802 (smaxmin:<code>v4hi3): New.
10803 (umaxmin:<code>v8qi3): Likewise.
10804 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
10805 (umaxmin:*mmx_<code>v8qi3): Likewise.
10807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10810 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
10811 TARGET_MMX_WITH_SSE.
10812 (*mmx_pinsrw): Add SSE emulation.
10814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10817 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
10819 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10822 * config/i386/sse.md (sse_cvtpi2ps): Changed to
10823 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
10826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10829 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
10830 (sse_cvttps2pi): Likewise.
10832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10835 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
10836 TARGET_MMX_WITH_SSE.
10837 (mmx_pshufw_1): Add SSE emulation.
10838 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
10839 TARGET_MMX_WITH_SSE to support SSE emulation.
10841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10844 * config/i386/constraints.md (Yw): New constraint.
10845 * config/i386/mmx.md (*vec_dupv2si): Changed to
10846 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
10847 support SSE emulation.
10849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10852 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
10853 TARGET_MMX_WITH_SSE.
10854 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10856 (mmx_gt<mode>3): Likewise.
10858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10861 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
10862 TARGET_MMX_WITH_SSE. Add SSE support.
10864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10867 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
10868 TARGET_MMX_WITH_SSE.
10869 (any_logic:<code><mode>3): New.
10870 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
10873 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10876 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
10877 TARGET_MMX_WITH_SSE. Add SSE emulation.
10878 (mmx_<shift_insn><mode>3): Likewise.
10879 (ashr<mode>3): New.
10880 (<shift_insn><mode>3): Likewise.
10882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10885 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
10886 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
10888 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10891 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
10892 TARGET_MMX_WITH_SSE.
10893 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
10896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10899 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
10900 TARGET_MMX_WITH_SSE.
10902 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
10905 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10908 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
10909 (plusminus:mmx_<plusminus_insn><mode>3): Check
10910 TARGET_MMX_WITH_SSE.
10911 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
10912 (<plusminus_insn><mode>3): New.
10913 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
10914 (*mmx_<plusminus_insn><mode>3): Likewise.
10916 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10919 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
10920 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
10922 * config/i386/mmx.m (mmx_punpckhbw): Changed to
10923 define_insn_and_split to support SSE emulation.
10924 (mmx_punpcklbw): Likewise.
10925 (mmx_punpckhwd): Likewise.
10926 (mmx_punpcklwd): Likewise.
10927 (mmx_punpckhdq): Likewise.
10928 (mmx_punpckldq): Likewise.
10930 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10931 Uros Bizjak <ubizjak@gmail.com>
10934 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
10936 (ix86_split_mmx_pack): Likewise.
10937 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
10939 (ix86_split_mmx_pack): Likewise.
10940 * config/i386/i386.md (mmx_isa): New.
10941 (enabled): Also check mmx_isa.
10942 * config/i386/mmx.md (any_s_truncate): New code iterator.
10943 (s_trunsuffix): New code attr.
10944 (mmx_packsswb): Removed.
10945 (mmx_packssdw): Likewise.
10946 (mmx_packuswb): Likewise.
10947 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
10948 MMX packsswb/packuswb with SSE2.
10949 (mmx_packssdw): Likewise.
10950 * config/i386/predicates.md (register_mmxmem_operand): New.
10952 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
10955 * config/i386/i386-c.c (ix86_target_macros_internal): Define
10956 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
10957 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
10958 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
10959 (ix86_vector_mode_supported_p): Likewise.
10960 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
10962 2019-05-15 Martin Liska <mliska@suse.cz>
10964 PR middle-end/90478
10965 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
10966 Check for overflow.
10968 2019-05-15 Richard Biener <rguenther@suse.de>
10970 * tree-into-ssa.c (pass_build_ssa::execute): Run
10971 update_address_taken before going into SSA.
10973 2019-05-15 Richard Biener <rguenther@suse.de>
10975 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
10976 as __BIT_FIELD_REF with type with -gimple.
10978 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
10980 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
10981 semantically equivalent branches (left over after prior refactorings).
10983 2019-05-15 Richard Biener <rguenther@suse.de>
10985 PR tree-optimization/88828
10986 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
10989 2019-05-14 Richard Biener <rguenther@suse.de>
10991 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
10992 as __VIEW_CONVERT with -gimple.
10994 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
10997 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
11000 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11002 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
11003 define_split to become a define_insn_and_split.
11005 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
11007 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
11009 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
11010 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
11011 (sibcall_epilogue): Adjust.
11012 (epilogue): Adjust.
11014 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11016 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
11017 to unsupported ones.
11018 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
11019 * config.host: Likewise.
11020 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
11021 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
11022 __svr4__]: Remove "brand" fallback.
11023 [!KSTAT_DATA_STRING]: Remove.
11024 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
11026 (comdat_group): Likewise.
11027 (set_have_as_tls): Likewise.
11028 (gcc_cv_target_dl_iterate_phdr): Likewise.
11029 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
11030 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
11031 * configure: Regenerate.
11032 * doc/install.texi: Simplify Solaris target triplets.
11033 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
11034 (Specific, *-*-solaris2*): Document Solaris 10 removal.
11035 Remove Solaris 10 references.
11036 Remove obsolete Solaris bug reference.
11037 (Specific, sparc-sun-solaris2.10): Remove.
11039 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
11041 * config/i386/i386.md (any_div): New code iterator.
11042 (paired_mod): New code attribute.
11043 (sgnprefix): Handle DIV and UDIV RTXes.
11045 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
11046 and udivmod<mode>4 patterns using any_div code iterator.
11047 (divmod splitters): Macroize splitters using any_div code iterator.
11048 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
11049 (*udivmodsi4_pow2_zext_2): Ditto.
11050 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
11051 and *udivmod<mode>4_noext patterns using any_div code iterator.
11052 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
11053 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
11054 patterns using any_div code iterator.
11055 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
11056 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
11057 patterns using any_div code iterator.
11058 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
11059 udivmodhiqi3 patterns using any_extend code iterator.
11061 2019-05-14 Richard Biener <rguenther@suse.de>
11062 H.J. Lu <hongjiu.lu@intel.com>
11064 PR tree-optimization/88828
11065 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11066 permuting in a single non-constant element not extracted
11069 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11071 * internal-fn.def (SIGNBIT): New.
11072 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
11074 (signbitv4sf2): Likewise.
11076 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
11079 * config/mips/mips.c (mips_split_move): Skip forward SRC into
11080 next insn when the SRC reg is dead.
11082 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
11084 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
11085 (alloc_cand_and_find_basis): Ditto.
11086 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
11087 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
11088 (create_add_imm_cand, slsr_process_cast): Ditto.
11089 (slsr_process_copy, replace_mult_candidate): Ditto.
11090 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
11091 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
11092 (pass_strength_reduction::execute): Init the first NULL element.
11094 2019-05-13 Nathan Sidwell <nathan@acm.org>
11096 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
11097 (run_attempt): Reformat line break.
11099 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
11102 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
11103 data registers in sibcall epilogues.
11104 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11106 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
11109 * configure.ac (--enable-frame-pointer):
11110 Disable by default for cygwin and mingw.
11111 * configure: Regenerate.
11113 2019-05-13 Nathan Sidwell <nathan@acm.org>
11115 * dwarf2out.c (breakout_comdat_types): Move comment to correct
11117 (const_ok_for_output_1): Balance parens around #if/#else/#endif
11118 (gen_member_die): Move abstract origin check earlier. Only VARs
11119 can be static_inline_p. Simplify splicing control flow.
11121 2019-05-13 Richard Biener <rguenther@suse.de>
11123 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
11125 (vect_build_slp_tree_1): Likewise.
11127 2019-05-13 Richard Biener <rguenther@suse.de>
11129 PR tree-optimization/90402
11130 * tree-if-conv.c (tree_if_conversion): Value number only
11131 the loop body by making the latch an exit of the region
11133 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
11135 (do_rpo_vn): Deal with multiple edges into the entry block
11136 that are not backedges inside the region by skipping PHIs
11137 of the entry block.
11139 2019-05-13 Richard Biener <rguenther@suse.de>
11141 PR tree-optimization/90316
11142 * tree-ssa-pre.c (insert_aux): Fold into ...
11143 (insert): ... this function. Use a RPO walk to reduce the
11144 number of required iterations.
11146 2019-05-13 Martin Liska <mliska@suse.cz>
11148 PR tree-optimization/90416
11149 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
11150 string instead of passing the second part as va_arg argument.
11152 2019-05-13 Martin Liska <mliska@suse.cz>
11154 PR gcov-profile/90380
11155 * gcov.c (handle_cycle): Do not support zero cycle count,
11156 it should not be possible.
11157 (path_contains_zero_cycle_arc): New function.
11158 (circuit): Ignore zero cycle arc counts.
11160 2019-05-13 Martin Liska <mliska@suse.cz>
11162 PR gcov-profile/90380
11163 * gcov.c (enum loop_type): Remove the enum and
11165 (handle_cycle): Assert that we should not reach
11167 (circuit): Use loop_found instead of a tri-state loop_type.
11168 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
11171 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11174 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
11175 (ix86_output_indirect_branch_via_reg): Use output mechanism
11176 accounting for __USER_LABEL_PREFIX__.
11177 (ix86_output_indirect_branch_via_push): Likewise.
11178 (ix86_output_function_return): Likewise.
11179 (ix86_output_indirect_function_return): Likewise.
11181 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
11183 * doc/md.texi: Document use of code attributes in rtx patterns.
11184 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
11185 * read-rtl.c (find_code): Split out search loops into...
11186 (maybe_find_code): ...this new function.
11187 (check_code_iterator): Make the error message more informative.
11188 (check_code_attribute): New function.
11189 (rtx_reader::rtx_alloc_for_name): Likewise.
11190 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
11191 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
11192 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
11193 <max_opp> directly as an rtx code instead of via a match_operator.
11194 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
11195 (<su>abd<mode>_3): Update accordingly.
11197 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
11199 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
11200 is given, print the state of the EH "save world" computation for
11203 2019-05-11 Jakub Jelinek <jakub@redhat.com>
11206 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
11207 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
11209 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
11211 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
11212 Use pinsrd for TARGET_SSE4_1.
11213 * config/i386/sse.md (movdi_to_sse): Ditto.
11215 2019-05-10 Richard Biener <rguenther@suse.de>
11217 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
11218 (do_rpo_vn): Initialize next_value_id.
11220 2019-05-10 Martin Liska <mliska@suse.cz>
11222 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11225 2019-05-10 Jakub Jelinek <jakub@redhat.com>
11227 PR tree-optimization/90385
11228 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
11229 arguments of the exit phis.
11232 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
11233 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
11235 (copy_tree_body_r): Likewise.
11236 (copy_fn): Set id.do_not_fold to true.
11238 2019-05-10 Martin Liska <mliska@suse.cz>
11240 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
11241 Reapply changes from r269790.
11243 2019-05-10 Martin Liska <mliska@suse.cz>
11245 PR middle-end/90340
11246 * doc/invoke.texi: New params.
11247 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
11248 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
11249 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
11251 * tree-switch-conversion.h (struct jump_table_cluster):
11254 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
11256 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
11258 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
11260 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
11262 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
11264 PR rtl-optimization/88879
11265 * sel-sched.c (sel_target_adjust_priority): Remove assert.
11267 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
11270 * config/arm/arm.c (callee_saved_reg_p): Move before
11271 thumb_find_work_register.
11272 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
11273 thumb_find_work_register. Only call df_get_live_out once.
11274 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
11275 (thumb_find_work_register): Use
11276 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
11277 algorithms to locate a spare call clobbered reg.
11279 2019-05-09 Martin Liska <mliska@suse.cz>
11281 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
11282 and MAX_EXPR in GIMPLE FE format.
11284 2019-05-09 Martin Liska <mliska@suse.cz>
11286 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
11287 * gimple-pretty-print.c (dump_gimple_bb_header):
11289 (pp_cfg_jump): Dump edge probability.
11290 * profile-count.c (profile_quality_as_string): Simplify
11291 with a static array.
11292 (parse_profile_quality): New function.
11293 (profile_count::dump): Simplify with a static array.
11294 (profile_count::from_gcov_type): Add new argument.
11295 * profile-count.h (parse_profile_quality): Likewise.
11296 * predict.h (set_hot_bb_threshold): New.
11297 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
11299 * predict.c (get_hot_bb_threshold): Set from the new param.
11300 (set_hot_bb_threshold): New.
11302 2019-05-09 Richard Biener <rguenther@suse.de>
11304 PR tree-optimization/90395
11305 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
11306 rewrite vector stores that throw internally.
11308 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
11310 * cif-code.def (CHKP): Remove.
11313 * configure.ac (--enable-frame-pointer): Disable by default for
11315 * configure: Regenerate.
11317 2019-05-09 Alan Modra <amodra@gmail.com>
11320 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
11321 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
11322 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
11323 cost for general <-> vsx when direct moves are available.
11324 Cost union classes at minimal cost for any reg in the class.
11325 Correct calculation for moves between vsx, float, and altivec.
11326 Don't return a low cost for moves between special regs. Don't
11327 use hard coded register numbers.
11328 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
11329 (rs6000_ira_change_pseudo_allocno_class): New function.
11330 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
11331 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
11333 (movsi_internal1): Don't disparage vector alternatives.
11334 (mov<mode>_internal): Likewise, excepting alternative that
11336 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
11337 we <- b alternative.
11339 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11342 PR tree-optimization/89060
11343 * tree-ssa-live.h (live_vars_map): New typedef.
11344 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
11345 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
11346 (struct compute_live_vars_data): New type.
11347 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
11348 live_vars_at_stmt, destroy_live_vars): New functions.
11349 * tree-tailcall.c: Include tree-ssa-live.h.
11350 (live_vars, live_vars_vec): New global variables.
11351 (find_tail_calls): Perform variable life analysis before punting.
11352 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
11353 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
11355 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
11356 Perform variable life analysis to select variables that really need
11358 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
11359 instead set id->eh_landing_pad_dest and assert it is the same.
11360 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
11362 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
11363 Richard Earnshaw <rearnsha@arm.com>
11366 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
11368 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
11369 (thumb1_compute_save_core_reg_mask): Don't force a spare work
11370 register if both the epilogue and prologue can use call-clobbered
11372 (thumb1_unexpanded_epilogue): Use
11373 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
11374 picking temporaries for restoring high regs to match that of the
11375 prologue where possible.
11376 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
11377 the list of work registers. Detect if the return address is still live
11378 at the end of the prologue and avoid using it for a work register if so.
11379 If the return address is not live, add LR to the list of pushable regs
11380 after the first pass.
11382 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11384 PR tree-optimization/90078
11385 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
11386 (INFTY): Increase the value for infinite cost.
11387 (struct comp_cost): Promote type of members to int64_t.
11388 (infinite_cost): Don't set complexity in initialization.
11389 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
11390 overflows to infinite_cost.
11391 (adjust_setup_cost): Promote type of parameter and cost computation
11393 (struct ainc_cost_data, struct iv_ca): Promote type of member to
11395 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
11396 cost computation to int64_t.
11397 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
11398 int64_t's format specifier in dump.
11400 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
11402 PR tree-optimization/90240
11403 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
11404 with respect to scaling factor pre-computed for each basic block.
11405 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
11406 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
11407 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
11408 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
11409 live range for array of loop's basic blocks. Cleanup aux field of
11410 loop's basic blocks.
11412 2019-05-08 Jakub Jelinek <jakub@redhat.com>
11414 PR tree-optimization/90356
11415 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
11417 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
11419 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
11420 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
11421 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
11422 (ix86_handle_option): Handle -mavx512bf16.
11423 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
11425 * config/i386/avx512bf16vlintrin.h: New.
11426 * config/i386/avx512bf16intrin.h: New.
11427 * config/i386/cpuid.h (bit_AVX512BF16): New.
11428 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
11429 * config/i386/i386-builtin-types.def: Add new types.
11430 * config/i386/i386-builtin.def: Add new builtins.
11431 * config/i386/i386-c.c (ix86_target_macros_internal): Define
11433 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
11434 (ix86_option_override_internal): Handle BF16.
11435 (ix86_valid_target_attribute_inner_p): Ditto.
11436 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
11437 * config/i386/i386-builtin.c (enum processor_features): Add
11439 (static const _isa_names_table isa_names_table): Ditto.
11440 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
11441 (PTA_AVX512BF16): Ditto.
11442 * config/i386/i386.opt: Add -mavx512bf16.
11443 * config/i386/immintrin.h: Include avx512bf16intrin.h
11444 and avx512bf16vlintrin.h.
11445 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
11446 avx512f_cvtneps2bf16_<mode><mask_name>,
11447 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
11448 * config/i386/subst.md (mask_half): Add new subst.
11449 * doc/invoke.texi: Document -mavx512bf16.
11451 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
11453 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
11454 Delete declaration.
11455 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
11456 (rs6000_debug_legitimize_reload_address): Delete.
11457 (rs6000_legitimize_reload_address_ptr): Delete.
11458 (rs6000_option_override_internal): Adjust.
11459 (mem_operand_gpr): Adjust comment.
11460 (legitimate_lo_sum_address_p): Ditto.
11461 (rs6000_legitimize_reload_address): Delete.
11462 (rs6000_debug_legitimize_reload_address): Delete.
11463 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
11465 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
11468 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11469 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
11470 to compute vector element selector for both constant and variable
11473 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11475 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
11476 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
11477 ashrdi3_cvt using SWI48 mode iterator.
11479 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11481 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
11482 (aarch64_<su>abd<mode>_3): Likewise.
11483 (*aarch64_<su>abd<mode>_3): New define_insn.
11484 (<sur>sad<vsi2qi>): New define_expand.
11485 * config/aarch64/iterators.md: Added MAX_OPP attribute.
11486 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
11487 (build_vect_cond_expr): Likewise.
11489 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
11491 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
11492 clobbers outside of accessible_reg_set.
11493 * config/i386/i386.c (ix86_conditional_register_usage):
11494 Disable register sets by clearing corresponding bits in
11495 accessible_reg_set. Do not set corresponding bits in fixed_regs,
11496 call_used_regs and don't clear corresponding reg_names array members.
11498 2019-05-07 Richard Biener <rguenther@suse.de>
11500 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
11501 not specified still compute a comp_vectype for invariant
11504 2019-05-07 Richard Biener <rguenther@suse.de>
11506 PR tree-optimization/90316
11507 * tree-ssa-pre.c (translate_vuse_through_block): When
11508 same_valid is NULL do not bother to search for a virtual
11510 (phi_translate_1): When operands changed we cannot keep
11511 the same value-number so do not bother to ask whether
11512 that's possible from translate_vuse_through_block.
11514 2019-05-07 Martin Liska <mliska@suse.cz>
11516 * bitmap.c (bitmap_register): Come up with
11517 alloc_descriptor_max_uid and assign it for
11519 (register_overhead): Use get_descriptor as
11521 (release_overhead): New.
11522 (bitmap_elem_to_freelist): Call it.
11523 (bitmap_elt_clear_from): Likewise.
11524 (bitmap_obstack_free): Likewise.
11525 (bitmap_move): Sensitively release memory.
11526 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
11527 (bitmap_initialize): Initialize alloc_descriptor to zero.
11528 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
11530 2019-05-07 Richard Biener <rguenther@suse.de>
11532 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
11533 we build a SLP node. Remove max_size and limiting.
11534 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
11536 2019-05-07 Richard Biener <rguenther@suse.de>
11538 PR tree-optimization/90316
11539 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
11540 limit by reference.
11541 (walk_non_aliased_vuses): Take walking limit argument.
11542 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
11543 walking if it is reached instead of just counting.
11544 (get_continuation_for_phi): Likewise.
11545 (walk_non_aliased_vuses): Likewise, instead of leaving counter
11546 limiting to the callback.
11547 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
11548 (vn_reference_lookup_3): Likewise.
11549 (vn_reference_lookup_pieces): Likewise.
11550 (vn_reference_lookup): Likewise.
11551 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
11552 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
11553 (avail_exprs_stack::lookup_avail_expr): Likewise.
11555 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
11557 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
11558 for comparaible types in the second direction even if first one
11559 hits incomparable type.
11561 2019-05-07 Richard Biener <rguenther@suse.de>
11564 * lto-wrapper.c (debug_objcopy): Use the original filename
11565 including archive offset for the filename used for -save-temps.
11567 2019-05-07 Li Jia He <helijia@linux.ibm.com>
11569 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
11572 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
11573 Hongtao Liu <hongtao.liu@intel.com>
11577 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
11578 Modified, original implementation isn't correct.
11580 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11582 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
11583 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
11584 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
11585 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
11586 (FRAME_POINTER_REGNUM): Change numbering.
11587 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
11588 (alt_reg_names): Adjust.
11589 (rs6000_conditional_register_usage): Don't mark hard register 64 as
11591 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11592 (DWARF_FRAME_REGISTERS): Delete.
11593 (DWARF2_FRAME_REG_OUT): Fix whitespace.
11594 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11596 (REG_ALLOC_ORDER): Adjust.
11597 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
11598 (REG_CLASS_CONTENTS): Adjust.
11599 (RETURN_ADDR_RTX): Change comment.
11600 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
11602 (REGISTER_NAMES): Adjust.
11603 (ADDITIONAL_REGISTER_NAMES): Adjust.
11604 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11606 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11608 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
11610 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
11611 (DWARF_FRAME_REGISTERS): Adjust.
11612 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
11614 (REG_ALLOC_ORDER): Adjust.
11615 (enum reg_class): Delete SPR_REGS.
11616 (REG_CLASS_NAMES): Delete SPR_REGS.
11617 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
11618 (REGISTER_NAMES): Adjust.
11619 (ADDITIONAL_REGISTER_NAMES): Adjust.
11620 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
11621 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
11622 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
11623 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
11624 (htm_spr_regno): Delete.
11625 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
11627 (rs6000_dbx_register_number): Adjust.
11629 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11631 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
11633 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
11635 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
11636 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
11638 2019-05-06 Jakub Jelinek <jakub@redhat.com>
11640 PR tree-optimization/88709
11641 PR tree-optimization/90271
11642 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
11643 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
11644 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
11646 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
11647 of the store merging group is larger than
11648 PARAM_STORE_MERGING_MAX_SIZE parameter.
11649 (split_group): Add bzero_first argument. If set, always emit first
11650 the first store which must be = {} of the whole area and then for the
11651 rest of the stores consider all zero bytes as paddings.
11652 (imm_store_chain_info::output_merged_store): Check if first store
11653 is = {} of the whole area and if yes, determine which setting of
11654 bzero_first for split_group gives smaller number of stores. Adjust
11655 split_group callers.
11656 (lhs_valid_for_store_merging_p): Allow decls.
11657 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
11659 (pass_store_merging::process_store): Likewise.
11661 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
11664 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11665 handling of V1TImode.
11667 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
11670 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
11671 and enable_frame_pointer ...
11672 * configure.ac: ... here. Update help strings for
11673 --enable-frame-pointer.
11674 * configure: Regenerate.
11675 * config/i386/i386-options.c (ix86_option_override_internal): Remove
11676 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
11677 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
11678 (USE_X86_64_FRAME_POINTER): Ditto.
11680 2019-05-06 Martin Liska <mliska@suse.cz>
11682 * config.gcc: Append to target_gtfiles and fix indentation.
11684 2019-05-06 Richard Biener <rguenther@suse.de>
11686 PR tree-optimization/90358
11687 * tree-vect-stmts.c (get_group_load_store_type): Properly
11688 detect unused upper half of load.
11689 (vectorizable_load): Likewise.
11691 2019-05-06 Richard Biener <rguenther@suse.de>
11693 PR tree-optimization/88828
11694 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
11695 (simplify_vector_constructor): ...here. Handle constants in
11698 2019-05-06 Richard Biener <rguenther@suse.de>
11700 PR tree-optimization/90328
11701 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
11702 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
11703 is valid in the loop nest before using it.
11704 (initialize_data_dependence_relation): Adjust.
11705 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
11706 loop as loop-nest to dr_may_alias_p.
11708 2019-05-06 Richard Biener <rguenther@suse.de>
11710 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
11712 2019-05-06 Richard Biener <rguenther@suse.de>
11714 PR tree-optimization/90316
11715 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
11716 compute target on demand.
11717 (get_continuation_for_phi): Remove code walking stmts to
11718 get to a target virtual operand which could end up being
11721 2019-05-06 Martin Liska <mliska@suse.cz>
11724 * config/i386/i386-options.c (ix86_option_override_internal): Error only
11725 when -mabi is selected to a non-default version.
11727 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
11728 Martin Liska <mliska@suse.cz>
11730 * Makefile.in: Add lto-dump.texi.
11731 * cgraph.h: Add new functions get_visibility_string and
11732 get_symtab_type_string.
11733 * doc/gcc.texi: Include lto-dump section.
11734 * doc/lto-dump.texi: New file.
11735 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
11736 (parse_dump_option): Factor out this function.
11737 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
11738 (parse_dump_option): Export the function.
11739 * symtab.c (symtab_node::get_visibility_string): New function.
11740 (symtab_node::get_symtab_type_string): Likewise.
11742 2019-05-06 Martin Liska <mliska@suse.cz>
11744 * config/i386/i386-builtins.c: New file.
11745 * config/i386/i386-builtins.h: New file.
11746 * config/i386/i386-expand.c: New file.
11747 * config/i386/i386-expand.h: New file.
11748 * config/i386/i386-features.c: New file.
11749 * config/i386/i386-features.h: New file.
11750 * config/i386/i386-options.c: New file.
11751 * config/i386/i386-options.h: New file.
11752 * config.gcc: Add new files into extra_objs and
11754 * config/i386/i386.c: Split content of the file
11755 into newly introduced files.
11756 * config/i386/i386.h: Declare common variables
11758 * config/i386/t-i386: Define dependencies for new files.
11760 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
11763 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
11764 Restrict 'all' variant to 32-bit configurations.
11765 (unaligned_loadhiu): Likewise.
11766 (unaligned_storehi): Likewise.
11767 (unaligned_storesi): Likewise.
11768 (unaligned_loadhis): Disable when compiling for thumb1.
11770 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
11772 PR tree-optimization/90269
11773 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
11776 2019-05-03 Martin Liska <mliska@suse.cz>
11778 * hash-map.h: Add is_empty function.
11779 * hash-set.h: Likewise.
11780 * hash-table.h: Likewise.
11781 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
11782 elements () == 0 (and similar usages).
11783 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
11784 * gimplify.c (gimplify_bind_expr): Likewise.
11785 (gimplify_switch_expr): Likewise.
11786 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
11787 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
11788 * postreload-gcse.c (dump_hash_table): Likewise.
11789 (gcse_after_reload_main): Likewise.
11790 * predict.c (combine_predictions_for_bb): Likewise.
11791 * tree-parloops.c (reduction_phi): Likewise.
11792 (separate_decls_in_region): Likewise.
11793 (transform_to_exit_first_loop): Likewise.
11794 (gen_parallel_loop): Likewise.
11795 (gather_scalar_reductions): Likewise.
11796 (try_create_reduction_list): Likewise.
11797 * var-tracking.c (dump_vars): Likewise.
11798 (emit_notes_for_changes): Likewise.
11799 (vt_emit_notes): Likewise.
11801 2019-05-03 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/90316
11804 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
11807 2019-05-03 Richard Biener <rguenther@suse.de>
11809 * tree-vect-stmts.c (get_group_load_store_type): Avoid
11810 peeling for gaps by loading only lower halves of vectors
11812 (vectorizable_load): Likewise.
11814 2019-05-03 Richard Biener <rguenther@suse.de>
11816 PR middle-end/89518
11817 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
11819 2019-05-03 Richard Biener <rguenther@suse.de>
11821 PR middle-end/87314
11822 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
11823 Handle STRING_CST vs DECL or STRING_CST.
11825 2019-05-03 Richard Biener <rguenther@suse.de>
11827 PR tree-optimization/88963
11828 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
11829 vector loads feeding only BIT_FIELD_REFs to component
11830 loads. Rewrite stores fed by CONSTRUCTORs to component
11833 2019-05-03 Jakub Jelinek <jakub@redhat.com>
11835 * opts.h (finish_options): Remove lang_mask argument.
11836 (print_help, help_option_argument): Declare.
11837 * opts.c (print_help): Remove forward declaration, no longer static.
11838 (finish_options): Remove lang_mask argument, don't call print_help
11840 * opts-global.c (decode_options): Adjust finish_option caller, call
11843 PR tree-optimization/90303
11844 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
11845 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
11847 2019-05-03 Richard Biener <rguenther@suse.de>
11849 PR tree-optimization/89698
11850 * gimple-fold.c (canonicalize_constructor_val): Early out
11851 for constants, handle unfolded INTEGER_CSTs as they appear in
11852 C++ virtual table ctors.
11854 2019-05-03 Richard Biener <rguenther@suse.de>
11856 * passes.c (execute_function_todo): Remove dead code.
11858 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11860 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
11861 the internal register number, for any "real" register.
11863 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
11865 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
11866 correct numbers for TFHAR, TFIAR, TEXASR.
11868 2019-05-02 Richard Biener <rguenther@suse.de>
11870 PR tree-optimization/89653
11871 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
11872 update-address-taken before the pass.
11873 * passes.def (pass_tree_loop_init): Put comment before it.
11875 2019-05-02 Richard Biener <rguenther@suse.de>
11877 PR tree-optimization/89509
11878 * tree-ssa-structalias.c (compute_dependence_clique): Look
11879 at the first subvar when determining whether it is restrict.
11881 2019-05-02 Richard Biener <rguenther@suse.de>
11883 PR tree-optimization/90273
11884 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
11885 useless debug stmts.
11887 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11889 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
11891 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
11893 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
11894 VEC_COND_EXPR be inserted to emulate a conditional internal function.
11895 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
11896 (vectorizable_reduction): Use the functions above to vectorize in a
11897 fully masked loop codes that don't have a conditional internal
11900 2019-05-02 Martin Liska <mliska@suse.cz>
11902 * cgraphclones.c: Call valid_attribute_p with 1 for
11904 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
11905 it's for target attribute.
11906 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
11907 Add new boolean argument.
11908 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11910 (ix86_valid_target_attribute_tree): Pass target_clone_attr
11911 to ix86_valid_target_attribute_inner_p.
11912 (ix86_valid_target_attribute_p): Pass flags argument to
11913 ix86_valid_target_attribute_inner_p.
11914 (get_builtin_code_for_version): Use 0 as it's target attribute.
11916 2019-05-02 Martin Liska <mliska@suse.cz>
11918 * gcc.c (process_command): Add dummy file only
11920 * opts-global.c (decode_options): Pass lang_mask.
11921 * opts.c (print_help): New function.
11922 (finish_options): Print --help if help_option_argument
11924 (common_handle_option): Factor out content of OPT__help_
11926 * opts.h (finish_options): Add new argument.
11928 2019-05-02 Martin Liska <mliska@suse.cz>
11931 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
11932 With -minline-all-stringops use inline expansion using 4B loop.
11933 * doc/invoke.texi: Document the change of
11934 -minline-all-stringops.
11936 2019-05-01 Jeff Law <law@redhat.com>
11938 PR tree-optimization/88797
11939 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
11940 PHI feeds a conditional on the RHS of an assignment.
11942 2019-04-30 Andrew Waterman <andrew@sifive.com>
11943 Jim Wilson <jimw@sifive.com>
11945 * config/riscv/constraints.md (L): New.
11946 * config/riscv/predicates.md (lui_operand): New.
11947 (sfb_alu_operand): New.
11948 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
11949 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
11950 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
11951 * config/riscv/risc.md (type): Add sfb_alu.
11952 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
11953 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
11954 (branch_zero<mode>): Delete.
11955 (mov<mode>cc): New.
11956 (mov<GPR:mode><X:mode>cc): Likewise.
11957 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
11959 2019-04-30 Nathan Sidwell <nathan@acm.org>
11961 * tree.h (MARK_TS_EXP): New.
11963 2019-04-30 Martin Liska <mliska@suse.cz>
11965 * opts.c (enable_warning_as_error): Provide hints
11966 for unknown options.
11968 2019-04-30 Martin Liska <mliska@suse.cz>
11971 * doc/invoke.texi: Add missing dash for gas-locview-support
11972 and gno-as-locview-support.
11974 2019-04-30 Jakub Jelinek <jakub@redhat.com>
11977 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
11978 whitespace at the start of target attribute string.
11980 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11983 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
11984 Define __ARM_FEATURE_ATOMICS.
11986 2019-04-30 Martin Liska <mliska@suse.cz>
11988 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
11989 into built_in_function enum. Remove code for endp == 2 and
11990 use BUILT_IN_* constants.
11991 (gimple_fold_builtin): Call the function with fcode.
11993 2019-04-30 Martin Liska <mliska@suse.cz>
11995 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
11996 DECL_FUNCTION_CODE into ix86_builtins enum before
11997 the switch statement.
11999 2019-04-30 Jakub Jelinek <jakub@redhat.com>
12001 PR tree-optimization/89475
12002 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
12005 2019-04-30 Martin Liska <mliska@suse.cz>
12007 PR translation/90274
12008 * opts.c (print_filtered_help): Wrap string in _(...).
12010 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
12012 PR tree-optimization/90240
12014 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12016 PR tree-optimization/90078
12017 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12018 checks for infinite_cost overflow.
12020 2019-04-29 Jeff Law <law@redhat.com>
12022 * passes.def: Move -Wrestrict pass after copy propagation.
12024 2019-04-29 Maya Rashish <coypu@sdf.org>
12026 * config.gcc (default_gnu_indirect_function): Default to yes
12027 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
12028 sparc*-*-netbsd*, x86_64-*-netbsd*.
12030 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
12032 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
12033 where cond2 is NE_EXPR.
12034 (is_value_included_in): Update comment.
12036 2019-04-29 Richard Biener <rguenther@suse.de>
12038 PR tree-optimization/90278
12039 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
12040 EH on comparison simplification.
12042 2019-04-29 Jason Merrill <jason@redhat.com>
12044 PR c++/82081 - tail call optimization breaks noexcept
12045 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
12046 nothrow function to a might-throw function into a tail call.
12048 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
12050 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
12051 (DDR_INNER_LOOP): Likewise.
12052 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
12053 (initialize_data_dependence_relation): Likewise.
12054 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
12056 2019-04-29 Jakub Jelinek <jakub@redhat.com>
12058 PR rtl-optimization/90257
12059 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
12063 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12067 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12070 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12073 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12075 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12077 2019-04-29 Richard Biener <rguenther@suse.de>
12079 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
12082 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
12084 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
12085 varasm.h, and netbsd-protos.h.
12087 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
12090 * config/i386/i386-protos.h (ix86_data_alignment): Change
12091 the second argument type to unsigned int.
12092 * config/i386/i386.c (ix86_data_alignment): Change "align"
12093 argument type to unsigned int.
12095 2019-04-27 Martin Liska <mliska@suse.cz>
12097 PR middle-end/90258
12098 * opt-suggestions.c (option_proposer::build_option_suggestions):
12099 When get_valid_option_values returns empty values, add the
12100 misspelling candidate.
12102 2019-04-26 Jim Wilson <jimw@sifive.com>
12104 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
12106 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
12107 Pass orig_mode to riscv_build_integer.
12108 (riscv_split_integer): Pass mode to riscv_move_integer.
12109 (riscv_legitimize_const_move): Likewise.
12110 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
12111 promoted_mode. Replace force_reg call with code to load constant into
12112 promoted reg and then subreg it for the store.
12113 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
12114 riscv_move_integer.
12116 2018-04-26 Eugene Sharygin <eush@ispras.ru>
12118 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
12121 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
12123 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
12124 commentary about the encoding of precision.
12126 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
12128 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
12129 * config/i386/t-freebsd64: New file.
12130 * config.gcc: Add the t-freebsd64 for multilib support.
12132 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
12134 * doc/extend.texi (vector_size): Add missing comma after @xref.
12136 2019-04-25 Jakub Jelinek <jakub@redhat.com>
12138 * BASE-VER: Set to 10.0.0.
12140 2019-04-25 Richard Biener <rguenther@suse.de>
12142 PR middle-end/89765
12143 * gimplify.c (gimplify_expr): Avoid turning a lvalue
12144 VIEW_CONVERT_EXPR into one operating on an rvalue.
12146 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
12149 * config/i386/i386.c (feature_priority): Moved to file scope.
12150 (processor_features): Likewise.
12151 (processor_model): Likewise.
12152 (_arch_names_table): Likewise.
12153 (arch_names_table): Likewise.
12154 (_feature_list): Removed.
12155 (feature_list): Likewise.
12156 (_isa_names_table): Moved to file scope. Add priority.
12157 (isa_names_table): Likewise.
12158 (get_builtin_code_for_version): Replace feature_list with
12159 isa_names_table. Update error message for P_ZERO priority.
12161 2019-04-25 Richard Biener <rguenther@suse.de>
12163 * tree-pass.h (make_pass_phi_only_cprop): Remove.
12164 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
12166 2019-04-24 Jeff Law <law@redhat.com>
12168 PR tree-optimization/90037
12169 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
12170 * passes.def: Replace all instance of phi-only cprop with the
12171 lattice propagator. Move propagation pass from after erroneous
12172 path isolation to before erroneous path isolation.
12173 * tree-ssa-phionlycprop.c: Remove.
12175 2019-04-24 Richard Biener <rguenther@suse.de>
12177 PR middle-end/90213
12178 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
12179 by size and BITS_PER_UNIT on poly-wide-ints.
12181 2019-04-25 Richard Biener <rguenther@suse.de>
12183 PR middle-end/90194
12184 * match.pd: Add pattern to simplify view-conversion of an
12187 2019-04-24 Clement Chigot <clement.chigot@atos.net>
12189 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
12190 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
12191 for Go on 32 bit AIX.
12192 * config/rs6000/aix72.h: Likewise.
12194 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12197 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
12198 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
12200 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
12203 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
12204 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
12205 for restored hard frame pointer.
12206 (s390_sched_dependencies_evaluation): Implement new target hook.
12207 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
12209 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
12211 * config/arc/arc-options.def: Fix typos and spelling mistakes.
12212 * config/arc/arc.c (arc_init): Cleanup warning message.
12213 (arc_override_options): Likewise.
12215 2019-04-24 Jakub Jelinek <jakub@redhat.com>
12218 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
12219 a register if both if_true and if_false are MEMs.
12221 PR tree-optimization/90208
12222 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
12223 after labels of new_bb, not before them.
12225 PR tree-optimization/90211
12226 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
12227 which are not SSA_NAMEs.
12229 2018-04-23 Sudakshina Das <sudi.das@arm.com>
12231 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
12233 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
12235 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12237 PR rtl-optimization/87979
12238 * modulo-sched.c (sms_schedule): Start ii value "mii" should
12241 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
12243 PR rtl-optimization/84032
12244 * modulo-sched.c (ps_insn_find_column): Change condition so that
12245 branch will always be the last insn in a row inside partial
12248 2019-04-23 Richard Biener <rguenther@suse.de>
12251 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
12252 dest_single_pred_p argument.
12253 (remove_forwarder_block): Adjust.
12254 (remove_forwarder_block_with_phi): Likewise.
12256 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12257 Bernd Edlinger <bernd.edlinger@hotmail.de>
12258 Jakub Jelinek <jakub@redhat.com>
12261 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
12262 if used with general-regs-only.
12263 (arm_conditional_register_usage): Don't add non-general regs if
12265 (arm_valid_target_attribute_rec): Handle general-regs-only.
12266 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
12268 (TARGET_HARD_FLOAT_SUB): Define.
12269 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
12270 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
12271 (TARGET_REALLY_IWMMXT2): Likewise.
12272 * config/arm/arm.opt: Add -mgeneral-regs-only.
12273 * doc/extend.texi: Document ARM general-regs-only target.
12274 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
12276 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12278 PR tree-optimization/90078
12279 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
12280 checks for infinite_cost overflow.
12282 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
12284 PR tree-optimization/90021
12285 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
12286 and check univariate against it.
12287 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
12288 * tree-data-ref.c (add_other_self_distances): Pass new argument.
12290 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
12294 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
12297 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
12300 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
12302 * lra-spills.c (lra_final_code_change): Remove useless move insns.
12304 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
12306 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
12307 names using operand format, rather than hard-wired.
12308 (speculation_barrier): Likewise.
12310 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
12312 PR tree-optimization/88055
12313 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
12314 (gen_one_condition): Use it if !HONOR_NANS.
12316 2019-04-19 Jakub Jelinek <jakub@redhat.com>
12318 PR middle-end/90139
12319 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
12320 assign_temp instead of gen_reg_rtx.
12322 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
12324 PR translation/90118
12325 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12326 Add missing space before %<.
12328 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
12330 PR rtl-optimization/87871
12331 * ira-lives.c (make_object_dead): Don't add conflicts to
12332 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
12334 2019-04-18 Martin Sebor <msebor@redhat.com>
12336 PR middle-end/89797
12337 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
12338 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
12339 assuming type size fits in SHWI.
12341 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
12344 * ipa-inline.c (flatten_function): New parameter UPDATE.
12345 (ipa_inline, early_inliner): Use it.
12347 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12349 * fold-const.c (int_const_binop): Return early on failure.
12351 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
12353 PR middle-end/85164
12354 * combine.c (force_int_to_mode): Cast the argument rather than
12355 the result of known_alignment.
12356 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
12358 2019-04-18 Richard Biener <rguenther@suse.de>
12361 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
12363 (remove_forwarder_block): ... here.
12364 (remove_forwarder_block_with_phi): Also move debug stmts here.
12366 2019-04-18 Jakub Jelinek <jakub@redhat.com>
12368 PR translation/79183
12369 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
12370 inform where appropriate.
12372 2019-04-18 Richard Biener <rguenther@suse.de>
12374 * tree.c (get_qualified_type): Put found type variants at the
12375 head of the variant list.
12377 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12379 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
12381 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
12384 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
12385 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
12386 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
12387 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
12388 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
12390 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
12392 * ira-conflicts.c (print_allocno_conflicts): Always print something,
12393 even for allocno's with no conflicts.
12394 (print_conflicts): Print an extra newline.
12396 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12398 * auto-inc-dec.c (attempt_change): Set the alignment of the
12399 temporary memory to that of the original.
12401 2019-04-17 Joao Moreira <jmoreira@suse.de>
12403 * targhooks.c (default_print_patchable_function_entry): Emit
12404 __patchable_function_entries section with writable flags to allow
12405 relocation resolution.
12407 2019-04-17 Jonny Grant <jg@jguk.org>
12409 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
12411 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12413 PR middle-end/90095
12414 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
12415 on lowpart SUBREGs.
12417 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
12419 * config/arc/arc.c (arc_init): Format diagnostic string.
12420 (arc_override_options): Likewise.
12421 (check_if_valid_regno_const): Likewise.
12422 (arc_reorg): Likewise.
12424 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
12427 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
12429 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
12431 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
12432 (*movdi_update1): Use Pmode.
12433 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
12434 (movdi_<mode>_update_stack): Rename to ...
12435 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
12437 (*movsi_update1): Use Pmode.
12438 (*movsi_update2): Use Pmode.
12439 (movsi_update): Rename to ...
12440 (movsi_<mode>_update): ... this. Use Pmode.
12441 (movsi_update_stack): Fix condition.
12442 (*movhi_update1): Use Pmode. Fix argument to
12443 avoiding_indexed_address_p.
12444 (*movhi_update2): Ditto.
12445 (*movhi_update3): Ditto.
12446 (*movhi_update4): Ditto.
12447 (*movqi_update1): Ditto.
12448 (*movqi_update2): Ditto.
12449 (*movqi_update3): Ditto.
12450 (*movsf_update1, *movdf_update1): Merge, rename to...
12451 (*mov<mode>_update1): This. Use Pmode. Fix argument to
12452 avoiding_indexed_address_p. Add "size" attribute.
12453 (*movsf_update2, *movdf_update2): Merge, rename to...
12454 (*mov<mode>_update2): This. Ditto.
12455 (*movsf_update3): Use Pmode. Fix argument to
12456 avoiding_indexed_address_p.
12457 (*movsf_update4): Ditto.
12458 (allocate_stack): Simplify condition. Adjust pattern names.
12460 2019-04-17 Jakub Jelinek <jakub@redhat.com>
12463 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
12464 whitespace at the start of target attribute string.
12466 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
12469 * config/rs6000/power9.md: Add store forwarding bypass.
12471 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
12474 * valtrack.c (dead_debug_insert_temp): Reset debug references
12475 to the return value of a call being removed.
12477 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12479 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
12480 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
12481 implement target hook.
12482 (arc_memory_move_cost): New function.
12483 (TARGET_REGISTER_MOVE_COST): Define.
12484 (TARGET_MEMORY_MOVE_COST): Likewise.
12485 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
12486 (MEMORY_MOVE_COST): Likewise.
12488 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12490 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
12491 (sibcall_value_insn): Likewise.
12492 * config/arc/constraints.md (Rs5): Remove.
12494 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12496 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
12497 for last two fake registers.
12498 (arc_conditional_register_usage): Make sure fake frame and arg
12499 pointer regs are in general regs class.
12500 (FRAME_POINTER_MASK): Remove.
12501 (RETURN_ADDR_MASK): Remove.
12502 (arc_must_save_register): Use hard frame regnum.
12503 (frame_restore_reg): Use hard_frame_pointer_rtx.
12504 (arc_save_callee_saves): Likewise.
12505 (arc_restore_callee_saves): Likewise.
12506 (arc_save_callee_enter): Likewise.
12507 (arc_restore_callee_leave): Likewise.
12508 (arc_save_callee_milli): Likewise.
12509 (arc_eh_return_address_location): Likewise.
12510 (arc_check_multi): Use hard frame regnum.
12511 (arc_can_eliminate): Likewise.
12512 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
12513 for register allocator.
12514 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
12515 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
12516 (FRAME_POINTER_REGNUM): Change it to a fake register.
12517 (HARD_FRAME_POINTER_REGNUM): Defined.
12518 (ARG_POINTER_REGNUM): Change it to a new fake register.
12519 (ELIMINABLE_REGS): Update.
12520 (REGISTER_NAMES): Update names.
12521 * config/arc/arc.md (LP_START): Remove.
12522 (LP_END): Likewise.
12523 (shift_si3_loop): Update pattern.
12525 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
12527 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
12528 to avoid delay slot scheduling.
12529 (arc_must_save_register): Don't save SP.
12530 * config/arc/arc.md (stack_tie): Remove.
12531 (UNSPEC_ARC_STKTIE): Likewise.
12533 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
12534 Shiva Chen <shiva0217@gmail.com>
12536 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
12537 code gen with large shift amount.
12539 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
12541 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
12544 2019-04-16 Jakub Jelinek <jakub@redhat.com>
12547 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
12548 print -m64/-mx32/-m32 if it is true.
12549 (ix86_debug_options, ix86_function_specific_print): Pass true as
12550 ADD_ABI_P to ix86_target_string.
12551 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
12552 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
12553 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
12555 PR rtl-optimization/90082
12556 * dce.c (can_delete_call): New function.
12557 (deletable_insn_p, mark_insn): Use it.
12559 PR tree-optimization/90090
12560 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
12562 (is_division_by_square): Likewise. Formatting fix.
12564 2019-04-16 Richard Biener <rguenther@suse.de>
12566 PR tree-optimization/56049
12567 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
12568 equality check if alias-set zero will prevail.
12570 2019-04-15 Jeff Law <law@redhat.com>
12572 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
12573 size and alignment as unsigned.
12575 2019-04-15 Richard Biener <rguenther@suse.de>
12578 * tree-loop-distribution.c (destroy_loop): Preserve correct
12581 2019-04-15 Richard Biener <rguenther@suse.de>
12583 PR tree-optimization/90071
12584 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
12585 abnormal operands from def stmts.
12587 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
12589 PR rtl-optimization/89794
12590 * combine.c (count_auto_inc): New function.
12591 (try_combine): Count how many auto_inc expressions there were in the
12592 original instructions. Ensure we have the same number in the new
12593 instructions. Remove the code that tried to ensure auto_inc side
12594 effects on i1 and i0 are not lost.
12596 2019-04-15 Richard Biener <rguenther@suse.de>
12599 * tree.h (auto_var_p): Declare.
12600 * tree.c (auto_var_p): New function, split out from ...
12601 (auto_var_in_fn_p): ... here.
12602 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
12604 (new_var_info): Initialize it.
12605 (set_uids_in_ptset): Also set the shadow variable uid if required.
12606 (ipa_pta_execute): Postprocess points-to solutions assigning
12607 shadow variable uids for locals that may reach their containing
12608 function recursively.
12609 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
12610 assert but instead check whether the points-to solution is
12613 2019-04-15 Martin Jambor <mjambor@suse.cz>
12616 * cgraph.c (clone_of_p): Loop over clone chain for each step in
12619 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12621 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
12623 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
12624 Kito Cheng <kito.cheng@gmail.com>
12625 Shiva Chen <shiva0217@gmail.com>
12627 * config/nds32/nds32-md-auxiliary.c
12628 (nds32_legitimize_pic_address): Use new PIC pattern.
12629 (nds32_legitimize_tls_address): Use new TLS pattern.
12630 (nds32_output_symrel): New.
12631 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
12632 (nds32_alloc_relax_group_id): Ditto.
12633 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
12634 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
12636 (nds32_group_tls_insn): Ditto.
12637 (nds32_group_float_insns): Ditto.
12638 * config/nds32/nds32.md (tls_le): New.
12641 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
12643 * configure: Add nds32 target for dwarf2 debug_line checking.
12644 * configure.ac: Regenerated.
12646 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
12649 * ipa-devirt.c (skip_in_fields_list_p): New.
12650 (odr_types_equivalent_p): Use it.
12652 2019-04-13 Jakub Jelinek <jakub@redhat.com>
12655 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
12656 instead of strncmp when checking for thumb and arm. Formatting fixes.
12658 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
12660 * doc/install.texi: Document --with-target-system-zlib.
12662 2019-04-12 Martin Sebor <msebor@redhat.com>
12668 * targhooks.c (default_vector_alignment): Avoid assuming
12669 argument fits in SHWI.
12670 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
12671 a shift expression.
12672 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
12674 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12676 PR rtl-optimization/89965
12677 * dce.c: Include rtl-iter.h.
12678 (struct check_argument_load_data): New type.
12679 (check_argument_load): New function.
12680 (find_call_stack_args): Check for loads from stack slots still tracked
12681 in sp_bytes and punt if any is found.
12683 * config/mips/loongson-mmiintrin.h: Fix up #error message.
12685 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
12687 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
12688 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
12690 2019-04-12 Martin Liska <mliska@suse.cz>
12692 PR middle-end/89970
12693 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
12695 (separate_attrs): Handle multiple 'default's.
12696 (expand_target_clones): Rework error handling code.
12698 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
12701 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
12702 mode of vector rather than mode of destination for move instruction.
12703 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
12704 Use QI inner mode with V16QI vector mode.
12706 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12709 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
12710 "invalid %%t operand" in output_operand_lossage message.
12712 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
12714 * config/s390/predicates.md (permute_pattern_operand): New
12716 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
12717 operand for the permute pattern.
12718 ("*vec_perm<mode>"): New insn definition.
12719 ("bswap<mode>"): Generate the permute pattern operand in the
12720 expander and perform the operand reloads for pre arch13 level
12722 ("*bswap<mode>_emu"): Rename to ...
12723 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
12724 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
12725 Add the USE operand for the permute pattern.
12726 ("*vec_set_bswap_vec<mode>"): Likewise.
12728 2019-04-12 Jakub Jelinek <jakub@redhat.com>
12731 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
12732 and gcc_unreachable if it fails, just call tree_to_uhwi which
12733 verifies that too. Test TREE_CHAIN instead of list_length > 1.
12734 Start warning message with a lower-case letter. Formatting fixes.
12736 PR rtl-optimization/90026
12737 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
12738 successors, look for BARRIERs inside of the whole BB_FOOTER chain
12739 rather than just at the start of it. If e->src BB_FOOTER is not NULL
12740 in cfglayout mode, use emit_barrier_after_bb.
12742 2018-04-11 Steve Ellcey <sellcey@marvell.com>
12744 PR rtl-optimization/87763
12745 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
12748 2019-04-11 Tom de Vries <tdevries@suse.de>
12750 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
12751 max macro using statement expression.
12753 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
12755 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
12756 * xcoffout.c (xcoff_private_rodata_section_name): Define.
12757 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
12758 read_only_private_data_section using xcoff_private_rodata_section_name.
12759 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
12761 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
12764 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
12766 2019-04-11 Jakub Jelinek <jakub@redhat.com>
12768 PR rtl-optimization/89965
12769 * dce.c (sp_based_mem_offset): New function.
12770 (find_call_stack_args): Use sp_based_mem_offset.
12772 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
12774 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
12776 2019-04-11 Richard Biener <rguenther@suse.de>
12778 PR tree-optimization/90020
12779 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
12780 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
12781 * tree-ssa-pre.c (compute_avail): Use it to not put
12782 possibly trapping references after a call that might not
12783 return into EXP_GEN.
12784 * gcse.c (compute_hash_table_work): Do not elide
12785 marking a block containing a call if the call might not
12788 2019-04-11 Richard Biener <rguenther@suse.de>
12790 PR tree-optimization/90018
12791 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12792 Test both SLP and interleaving variants.
12794 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
12796 * config/s390/8561.md: New file.
12797 * config/s390/driver-native.c (s390_host_detect_local_cpu):
12798 Add arch13 cpu model.
12799 * config/s390/s390-opts.h (enum processor_type): Likewise.
12800 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
12801 (s390_get_unit_mask): Likewise.
12802 (s390_is_fpd): Likewise.
12803 (s390_is_fxd): Likewise.
12804 * config/s390/s390.h (s390_tune_attr): Likewise.
12805 * config/s390/s390.md: Include arch13 pipeline description.
12806 * config/s390/s390.opt: Add arch13.
12808 2018-04-10 Steve Ellcey <sellcey@marvell.com>
12810 PR rtl-optimization/87763
12811 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
12813 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
12815 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
12817 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
12818 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
12819 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
12820 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
12822 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
12824 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
12825 "Although" in -fipa-icf documentation.
12827 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
12828 of using multiple -g options.
12830 2019-04-10 Martin Liska <mliska@suse.cz>
12832 PR gcov-profile/89959
12833 * doc/gcov.texi: Make documentation of -x option
12836 2019-04-10 Richard Biener <rguenther@suse.de>
12838 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
12840 (DR_GROUP_SAME_DR_STMT): Remove.
12841 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
12842 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
12843 replace with assert.
12844 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
12845 (vect_record_grouped_load_vectors): Remove unreachable code.
12847 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
12850 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
12851 obsolete reference to N.
12853 2019-04-10 Jakub Jelinek <jakub@redhat.com>
12855 PR middle-end/90025
12856 * expr.c (store_expr): Set properly size on the MEM passed to
12860 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
12861 with strlen in between hostsz-3 and hostsz-1 inclusive when no
12862 translation is needed, and when translation is needed, only append
12863 ... if the string length is hostsz or more bytes long. Avoid using
12866 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
12869 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
12870 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
12872 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
12873 differences directly.
12874 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
12876 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12878 PR translation/90011
12879 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12881 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
12883 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
12884 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
12885 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
12886 trailing space from -gsplit-dwarf diagnostics.
12888 PR tree-optimization/89998
12889 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
12890 instead of integer_type_node if possible, don't add ranges if return
12891 type is not compatible with int.
12892 * gimple-fold.c (gimple_fold_builtin_sprintf,
12893 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
12896 2019-04-09 Martin Liska <mliska@suse.cz>
12898 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
12899 * doc/install.texi: Document the new config.
12901 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
12903 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
12904 use gimple_expr_type for load and store calls. Skip over the
12905 condition argument in a conditional internal function.
12906 Protect use of TREE_INT_CST_LOW.
12908 2019-04-09 Jakub Jelinek <jakub@redhat.com>
12911 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
12912 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
12913 trailing period from it too.
12915 2019-04-08 wu yuan <wuyuan5@huawei.com>
12917 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
12918 * config/aarch64/aarch64.md : Add "tsv110.md"
12919 * config/aarch64/tsv110.md: New file.
12921 2019-04-08 Richard Biener <rguenther@suse.de>
12923 PR tree-optimization/90006
12924 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
12927 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
12930 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
12932 (fma_root_node): Likewise.
12933 (func_fma_steering): Likewise.
12935 2019-04-08 Jakub Jelinek <jakub@redhat.com>
12937 PR rtl-optimization/89865
12938 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
12940 PR rtl-optimization/89865
12941 * config/i386/i386.md
12942 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
12943 numbers not to clash with the additional operands[4].
12944 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
12945 with extra register copy in the middle.
12947 2019-04-08 Martin Liska <mliska@suse.cz>
12949 PR gcov-profile/89961
12950 * doc/gcov.texi: Document data_file.
12951 * gcov.c (generate_results): Add data_info into JSON output.
12953 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
12955 PR tree-optimization/89725
12956 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
12957 loop's chrec as invariant symbol.
12958 * tree-chrec.h (chrec_contains_symbols): New parameter.
12959 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
12960 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
12961 function of loops not in DDR's loop_nest.
12962 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
12964 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
12967 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
12970 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
12973 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
12974 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
12976 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
12978 * sched-deps.c (sched_macro_fuse_insns): Check return value of
12979 targetm.fixed_condition_code_regs.
12981 2019-04-05 Richard Biener <rguenther@suse.de>
12985 * tree-cfgcleanup.c (remove_forwarder_block): Always move
12986 debug bind stmts but reset them if they are not valid at the
12989 2019-04-05 Martin Liska <mliska@suse.cz>
12991 PR translation/89936
12992 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
12993 order to wrap keywords or arguments.
12994 * collect2.c (main): Likewise.
12995 (scan_prog_file): Likewise.
12996 (scan_libraries): Likewise.
12997 * common/config/riscv/riscv-common.c
12998 (riscv_subset_list::parsing_subset_version): Likewise.
12999 (riscv_subset_list::parse_std_ext): Likewise.
13000 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13002 * config/arm/arm.c (arm_option_override): Likewise.
13003 * config/cris/cris.c (cris_print_operand): Likewise.
13004 * config/darwin-c.c (darwin_pragma_options): Likewise.
13005 (darwin_pragma_unused): Likewise.
13006 (darwin_pragma_ms_struct): Likewise.
13007 * config/ft32/ft32.c (ft32_print_operand): Likewise.
13008 * config/i386/i386.c (print_reg): Likewise.
13009 (ix86_print_operand): Likewise.
13010 * config/i386/xm-djgpp.h: Likewise.
13011 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
13012 * config/m32c/m32c.c (m32c_option_override): Likewise.
13013 * config/msp430/msp430.c (msp430_option_override): Likewise.
13014 * config/nds32/nds32.c (nds32_option_override): Likewise.
13015 * config/nvptx/mkoffload.c (main): Likewise.
13016 * config/rx/rx.c (rx_print_operand): Likewise.
13017 (valid_psw_flag): Likewise.
13018 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
13019 (vms_pragma_nomember_alignment): Likewise.
13020 (vms_pragma_extern_model): Likewise.
13021 * lto-wrapper.c (compile_offload_image): Likewise.
13022 * omp-offload.c (oacc_parse_default_dims): Likewise.
13023 * symtab.c (symtab_node::verify_base): Likewise.
13024 * tlink.c (recompile_files): Likewise.
13025 (start_tweaking): Likewise.
13026 * tree-profile.c (parse_profile_filter): Likewise.
13028 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
13030 PR tree-optimization/89956
13031 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
13032 multiple negates of the same value.
13034 2019-04-04 Martin Sebor <msebor@redhat.com>
13036 PR middle-end/89957
13037 PR middle-end/89911
13038 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
13039 have the same precision since the function crashes otherwise.
13040 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
13041 has non-zero arguments.
13043 2019-04-04 Martin Sebor <msebor@redhat.com>
13045 PR middle-end/89934
13046 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
13047 out if the number of arguments is less than expected.
13049 2019-04-04 Jeff Law <law@redhat.com>
13051 PR rtl-optimization/89399
13052 * ree.c (combine_set_extension): Use single_set rather than
13053 digging into PATTERN for items on the candidate list.
13054 (combine_reaching_defs): Likewise.
13056 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
13058 PR rtl-optimization/46590
13059 * loop-invariant.c (find_defs): Move df_remove_problem and
13060 df_process_deferred_rescans to move_invariants.
13061 Move df_live_add_problem and df_live_set_all_dirty calls
13062 to move_invariants.
13063 (move_invariants): Likewise.
13064 (move_loop_invariants): Likewise, making the df_live calls
13065 conditional on -O. Remove the problem again if we added it
13068 2019-04-03 qing zhao <qing.zhao@oracle.com>
13070 PR tree-optimization/89730
13071 * ipa-inline.c (can_inline_edge_p): Delete the checking for
13072 -flive-patching=inline-only-static.
13073 (can_inline_edge_by_limits_p): Add the checking for
13074 -flive-patching=inline-only-static and grant always_inline
13075 even when -flive-patching=inline-only-static is specified.
13077 2019-04-03 Jeff Law <law@redhat.com>
13079 PR rtl-optimization/81025
13080 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
13082 2019-04-03 Richard Biener <rguenther@suse.de>
13084 PR tree-optimization/84101
13085 * tree-vect-stmts.c: Include explow.h for hard_function_value,
13086 regs.h for hard_regno_nregs.
13087 (cfun_returns): New helper.
13088 (vect_model_store_cost): When vectorizing a store to a decl
13089 we return and the function ABI returns in a multi-reg location
13090 account for the possible spilling that will happen.
13092 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
13094 * config/s390/s390.c (s390_legitimate_address_p): Reject long
13095 displacement addresses for vector mode operands.
13097 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
13099 * config/arc/arc.c (GMASK_LEN): Define.
13100 (arc_restore_callee_saves): Restore first blink when
13103 2019-04-03 Sudakshina Das <sudi.das@arm.com>
13105 * doc/extend.texi: Add deprecated comment on sign-return-address
13106 function attribute and add mbranch-protection.
13107 * doc/invoke.texi: Add bti to the options for mbranch-protection.
13109 2019-04-03 Richard Biener <rguenther@suse.de>
13112 * lto-wrapper.c (run_gcc): Avoid implicit rules making
13113 the all target phony.
13115 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
13119 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
13120 Return false for variable DImode shifts.
13121 (dimode_scalar_chain::compute_convert_gain): Do not handle
13122 register count operand in variable DImode shifts.
13123 (dimode_scalar_chain::make_vector_copies): Remove support to copy
13124 count argument of a variable shift instruction to a vector register.
13125 (dimode_scalar_chain::convert_reg): Remove support to convert
13126 count argument of a variable shift instruction.
13128 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13130 PR rtl-optimization/84206
13131 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
13132 iterating over loop headers.
13134 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
13136 PR rtl-optimization/85876
13137 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
13138 beyond the original fence.
13140 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
13142 * config.gcc: Mark spu* targets as deprecated/obsolete.
13144 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13146 * config/s390/s390-builtin-types.def: New builtin function type
13147 definitions. Remove unused types.
13148 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
13149 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
13150 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
13151 overloaded builtins.
13152 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
13153 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
13154 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
13155 (vec_double, vec_signed, vec_unsigned): Define to use the new
13156 overloaded builtins.
13157 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
13160 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13162 * config/s390/s390-builtin-types.def: New builtin function type
13164 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
13165 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
13166 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
13167 (s390_vstrszh, s390_vstrszf): New low-level builtins.
13168 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
13169 constant definitions.
13170 * config/s390/vecintrin.h (vec_search_string_cc)
13171 (vec_search_string_until_zero_cc): New builtin name definitions.
13172 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
13174 ("vec_vstrs<mode>"): New insn definition.
13176 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13178 * config/s390/s390-builtin-types.def: Add new builtin function
13180 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
13181 New overloaded builtins.
13182 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
13184 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
13185 (UNSPEC_VEC_SLDBYTE): ... this.
13186 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
13187 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
13189 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
13190 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
13191 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
13193 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13195 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
13196 New insn definition.
13197 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
13198 * config/s390/vector.md (V_HW_HSD): ... here.
13200 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13202 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
13203 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
13204 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
13205 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
13206 New insn definitions.
13208 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13210 * config/s390/s390-builtin-types.def: Add new builtin function type.
13211 * config/s390/s390-builtins.def: Add overloaded builtin
13212 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
13213 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
13214 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
13215 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
13216 ("eltswap<mode>"): New expander.
13217 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
13220 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13222 * config/s390/s390-builtin-types.def: Add new builtin function types.
13223 * config/s390/s390-builtins.def: Add overloaded builtin
13224 s390_vec_revb. Add low-level builtins for vlbr and vstbr
13226 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
13227 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
13228 ("bswap<mode>"): New expander.
13229 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
13231 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13233 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
13234 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
13235 vector builtin version number in __VEC__.
13237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13239 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
13241 (SFSI): New mode attribute.
13242 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
13243 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
13245 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
13246 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
13247 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
13248 ("floatsi<mode>2"): Add wcefb instruction.
13250 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13252 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
13253 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
13255 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
13256 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
13257 support 32 bit fp-int conversions. Rename to ...
13258 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13259 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
13260 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
13261 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
13264 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13266 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
13267 if-then-else constructs if we can use the select instruction.
13268 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
13270 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13272 * config/s390/s390.md ("*popcountdi_arch13_cc")
13273 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
13275 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
13276 Append _z196 to make it ...
13277 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
13278 ("popcounthi2_z196"): ... this.
13279 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
13280 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
13282 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13284 * config/s390/s390.c (s390_canonicalize_comparison): Convert
13285 certain compares for arch13 in order to make use of the condition
13286 code result produced by the new instructions.
13287 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
13288 nxrk, and nxgrk instruction patterns.
13289 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
13290 (inv_no): Add new code iterator together with some attributes.
13291 ("*andc_split_<mode>"): Disable splitter for arch13.
13292 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
13293 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
13294 ("*<ANDOR:bitops_name>c<GPR:mode>")
13295 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
13296 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
13297 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
13298 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
13300 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
13302 * common/config/s390/s390-common.c (processor_flags_table): New
13304 * config.gcc: Support arch13 with the --with-arch= configure flag.
13305 * config/s390/driver-native.c (s390_host_detect_local_cpu):
13306 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
13307 * config/s390/s390.c (s390_get_sched_attrmask)
13308 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
13309 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
13310 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
13311 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
13312 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
13314 * config/s390/s390.opt: Support arch13 as processor type in
13315 command line options.
13317 2019-04-02 Martin Liska <mliska@suse.cz>
13319 PR translation/89912
13320 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
13321 Fix param description of graphite-max-arrays-per-scop.
13323 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
13325 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
13326 (ASAN_CC1_SPEC): Use it in 64-bit mode.
13327 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
13329 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13331 PR rtl-optimization/85412
13332 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
13333 sel_sched_region_1, not after.
13335 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13337 PR rtl-optimization/86928
13338 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
13339 compute_live if necessary.
13340 (sel_redirect_edge_and_branch): Likewise.
13342 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
13344 PR rtl-optimization/89865
13345 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
13346 register if it is a part of small class.
13348 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
13350 PR rtl-optimization/87273
13351 * sel-sched-ir.c (merge_fences): Remove assert.
13353 2019-04-01 Richard Biener <rguenther@suse.de>
13355 PR tree-optimization/46590
13356 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
13357 (dom_walker::m_reachability): Add in place of...
13358 (dom_walker::m_skip_unreachable_blocks): ...this.
13359 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
13360 Move complex initialization ...
13361 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
13362 lazily and initialize edge flags on each invocation.
13363 (dom_walker::bb_reachable): Use m_reachability.
13365 2019-04-01 Martin Liska <mliska@suse.cz>
13368 * opt-suggestions.c (option_proposer::build_option_suggestions):
13369 Add variant without any argument in order to provide better
13372 2019-04-01 Richard Biener <rguenther@suse.de>
13375 * gimple.c: Include langhooks.h.
13376 (gimple_get_alias_set): Treat enumeral types as the underlying
13379 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
13380 Eric Botcazou <ebotcazou@adacore.com>
13382 PR rtl-optimization/89862
13383 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
13384 that operates on the full registers for WORD_REGISTER_OPERATIONS
13387 2019-03-29 Jim Wilson <jimw@sifive.com>
13389 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
13390 Clear MASK_RVC and then set if C subset supported.
13392 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13395 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
13396 non-addressable complit into its initializer if it is volatile.
13398 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
13400 * opts-common.c (integral_argument): Set errno properly in one case.
13402 2019-03-29 Martin Liska <mliska@suse.cz>
13404 * doc/invoke.texi: Remove -Wchkp from documentation.
13406 2019-03-29 Martin Liska <mliska@suse.cz>
13408 * dbgcnt.c (print_limit_reach): New function.
13411 2019-03-29 Martin Liska <mliska@suse.cz>
13413 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
13414 (dbg_cnt_process_opt): Parse first tokens aas
13415 dbg_cnt_process_single_pair is also using strtok.
13417 2019-03-29 Jakub Jelinek <jakub@redhat.com>
13419 PR rtl-optimization/87485
13420 * function.c (expand_function_end): Move stack_protect_epilogue
13421 before loading of return value into hard register(s).
13423 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13425 PR middle-end/89621
13426 * tree-inline.h (struct copy_body_data): Add
13427 dont_remap_vla_if_no_change flag.
13428 * tree-inline.c (remap_type_3, remap_type_2): New functions.
13429 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
13430 and remap_type_2 returns false.
13431 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
13432 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
13433 only from where it is copied to nested contexts.
13435 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13438 * config/i386/i386.md (RMW operation with LEA peephole):
13439 Use LEAMODE mode attribute instead of SWI mode iterator for
13442 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
13445 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
13446 Also process XEXP (src, 0) of a shift insn.
13448 2019-03-28 David Malcolm <dmalcolm@redhat.com>
13450 PR middle-end/89725
13451 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
13452 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
13454 2019-03-28 Jakub Jelinek <jakub@redhat.com>
13456 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
13458 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
13459 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
13460 immediately after first one with df_analyze in between, but rather
13461 process all bbs, queueing ones that need second pass in a worklist,
13462 df_analyze, process queued debug insn changes and if second pass is
13463 needed, process bbs from worklist, df_analyze, process queued debug
13466 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
13467 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
13468 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
13470 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
13473 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
13476 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
13479 * config/i386/i386.c (ix86_function_value_1): Call the newly added
13480 function for 32-bit MS_ABI.
13481 (function_value_ms_32): New function.
13483 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
13485 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
13486 (movdi): Call gen_movdi_symbol_save_scc.
13487 (gen_movdi_symbol_save_scc): New insn and split.
13489 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
13491 PR rtl-optimization/89313
13492 * function.c (matching_constraint_num): New static function.
13493 (match_asm_constraints_1): Use it. Fixup white space and comment.
13494 Don't replace inputs with non-matching constraints which conflict
13495 with early clobber outputs.
13497 2019-03-27 Jeff Law <law@redhat.com>
13499 PR rtl-optimization/87761
13500 PR rtl-optimization/89826
13501 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
13503 (pass_cprop_hardreg::execute): Call df_analyze after adding the
13504 note problem to get REG_DEAD/REG_UNUSED notes updated.
13506 2019-03-27 Richard Biener <rguenther@suse.de>
13508 PR tree-optimization/89463
13509 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
13510 queue edges to remove.
13511 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
13512 dead stmts. Delay edge removal until PHIs are removed to
13513 make debug-stmt creation not confused by seemingly degenerate
13516 2019-03-27 Alan Modra <amodra@gmail.com>
13518 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
13520 * config/rs6000/darwin.h: Likewise.
13521 * config/rs6000/rs6000.c: Likewise.
13523 2019-03-27 Alan Modra <amodra@gmail.com>
13525 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
13526 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
13528 2019-03-26 Andrew Waterman <andrew@sifive.com>
13529 Jim Wilson <jimw@sifive.com>
13531 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
13532 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
13533 (generic_idivdi, generic_fmul_single, generic_fmul_double)
13534 (generic_fdiv, generic_fsqrt): Add check for generic tune.
13535 (generic_alu): Add auipc to type list.
13536 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
13537 (riscv_microarchitecture): Declare.
13538 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
13539 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
13541 (riscv_microarchitecture): New.
13542 (sifive_7_tune_info): New.
13543 (riscv_cpu_info_table): Add microarchitecture value for rocket and
13544 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
13546 (riscv_store_data_bypass_p): New.
13547 (riscv_option_override): Set riscv_microarchitecture from
13548 cpu->microarchitecture.
13549 * config/riscv/riscv.md: Include sifive-7.md.
13552 (auipc<mode>): Change type to auipc.
13553 (restore_stack_nonlocal): New.
13554 * config/riscv/sifive-7.md: New.
13555 * doc/invoke.texi (RISC-V Options): Update mtune docs.
13557 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
13560 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
13561 Also process XEXP (src, 0) of a shift insn.
13563 2019-03-26 Richard Biener <rguenther@suse.de>
13565 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
13566 (copy_debug_stmt): Likewise.
13567 (expand_call_inline): Likewise.
13568 (copy_bb): Avoid redundant lookup & set of gimple_block.
13569 * gimple-low.c (lower_gimple_return): Likewise.
13570 (lower_builtin_setjmp): Likewise.
13572 2019-03-26 Jakub Jelinek <jakub@redhat.com>
13574 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
13575 is constant 0, turn into static const data member initialized to false.
13576 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
13577 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
13579 2019-03-26 Jason Merrill <jason@redhat.com>
13580 Jakub Jelinek <jakub@redhat.com>
13582 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
13584 (mem_alloc_description::release_object_overhead): Fix comment typos.
13585 * hash-table.h (hash_table::~hash_table): Call
13586 release_instance_overhead only if m_entries is non-NULL, otherwise
13587 call unregister_descriptor.
13589 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
13591 PR tree-optimization/81740
13592 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13593 In case of outer loop vectorization, check for backward dependence
13594 at the inner loop if outer loop dependence is reversed.
13596 2019-03-26 Alan Modra <amodra@gmail.com>
13598 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
13599 rs6000_vector_mem init. Correct wI and wJ comment.
13601 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
13603 PR rtl-optimization/88347
13604 PR rtl-optimization/88423
13605 * sched-deps.c (sched_analyze_insn): Take into account that for
13606 tablejumps the barrier appears after a label and a jump_table_data.
13608 2019-03-25 Martin Sebor <msebor@redhat.com>
13611 * c-common.c (check_user_alignment): Rename local. Correct maximum
13612 alignment in diagnostic. Avoid assuming argument fits in SHWI,
13613 convert it to UHWI when it fits.
13615 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
13618 * dwarf2out.c (premark_used_variables): New function.
13619 (prune_unused_types_walk): Do not mark not premarked external
13621 (prune_unused_types): Call premark_used_variables.
13623 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
13625 PR rtl-optimization/89676
13626 * lra-constraints.c (curr_insn_transform): Do match reload for
13627 early clobbers when the match was successful only for different
13630 2019-03-25 Martin Sebor <msebor@redhat.com>
13632 * doc/extend.texi (Common Type Attributes): Document vector_size.
13633 (Common Variable Attributes): Mention size constraint. Correct
13635 (Vector Extensions): Use @dfn when defining bas type. Clarify
13636 base type and size constraints.
13638 2019-03-25 Richard Biener <rguenther@suse.de>
13640 PR tree-optimization/89789
13641 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
13642 changes from non-undefined back to undefined.
13644 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
13646 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
13647 heap string and a gc string, but since this variable is unknown to
13648 ggc the gc string might get reused and corrupted. Fixed by always
13649 using a heap string.
13651 2019-03-25 Richard Biener <rguenther@suse.de>
13653 PR tree-optimization/89779
13654 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
13655 to remove IV defs, delay actual removal.
13656 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
13657 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
13658 very end, properly also reset loop control IV information.
13660 2019-03-25 Richard Biener <rguenther@suse.de>
13662 PR tree-optimization/89802
13663 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
13664 move EH data to folded stmt.
13666 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13668 * config/s390/s390-builtin-types.def: Remove few unused types and
13669 fix sort order for others.
13671 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
13673 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
13674 expected and found types with -mdebug during builtin matching.
13676 2019-03-25 Richard Biener <rguenther@suse.de>
13678 PR middle-end/89790
13679 * fold-const.c (operand_equal_p): Revert last change with
13682 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
13684 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
13685 notes for the result of the __tls_get_addr calls.
13686 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
13688 2019-03-24 Jeff Law <law@redhat.com>
13690 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
13692 PR rtl-optimization/87761
13693 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
13694 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
13696 (pass_cprop_hardreg::execute): Add df note problem and defer insn
13697 rescans. Reprocess blocks as needed, calling df_analyze before
13698 reprocessing. Always call df_analyze before fixing up debug bind
13701 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
13703 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
13706 2019-03-22 Andrew Pinski <apinski@marvell.com>
13708 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
13709 attrribute for uxtw.
13711 2019-03-26 Jeff Law <law@redhat.com>
13713 PR rtl-optimization/87761
13714 * config/mips/mips-protos.h (mips_split_move): Add new argument.
13715 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
13716 (mips_split_move): Accept new INSN argument. Try to forward SRC
13717 into the next instruction.
13718 (mips_split_move_insn): Pass INSN through to mips_split_move.
13720 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
13722 PR rtl-optimization/89676
13723 * lra-constraints.c (curr_insn_transform): Do match reload for
13724 early clobbers even if the match was successful.
13726 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13729 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
13731 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
13733 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
13735 2019-03-22 Jakub Jelinek <jakub@redhat.com>
13737 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
13738 <avx512>_fmsub_<mode>_mask3<round_name>,
13739 <avx512>_fnmadd_<mode>_mask3<round_name>,
13740 <avx512>_fnmsub_<mode>_mask3<round_name>,
13741 avx512f_vmfmadd_<mode>_mask3<round_name>,
13742 avx512f_vmfmsub_<mode>_mask3<round_name>,
13743 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
13744 instead of register_operand and %v instead of v for match_operand 1.
13745 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
13746 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
13747 <round_nimm_predicate> instead of register_operand and %v instead of v
13748 for match_operand 1.
13750 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
13751 <avx512>_fmadd_<mode>_mask3<round_name>,
13752 <avx512>_fmsub_<mode>_mask<round_name>,
13753 <avx512>_fmsub_<mode>_mask3<round_name>,
13754 <avx512>_fnmadd_<mode>_mask<round_name>,
13755 <avx512>_fnmadd_<mode>_mask3<round_name>,
13756 <avx512>_fnmsub_<mode>_mask<round_name>,
13757 <avx512>_fnmsub_<mode>_mask3<round_name>,
13758 <avx512>_fmaddsub_<mode>_mask<round_name>,
13759 <avx512>_fmaddsub_<mode>_mask3<round_name>,
13760 <avx512>_fmsubadd_<mode>_mask<round_name>,
13761 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
13762 <round_nimm_predicate> instead of nonimmediate_operand.
13763 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
13764 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
13765 Use register_operand instead of <round_nimm_predicate> for the
13766 operand that needs to match output.
13767 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
13768 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
13769 Likewise. Formatting fixes.
13772 * config/i386/i386.c (enum ix86_builtins): Remove
13773 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
13774 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
13775 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
13776 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
13777 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
13778 __builtin_ia32_vfmsubss3_mask3): New builtins.
13779 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
13780 avx512f_vmfmadd_<mode>_mask3<round_name>,
13781 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
13782 *avx512f_vmfmsub_<mode>_mask<round_name>,
13783 avx512f_vmfmsub_<mode>_mask3<round_name>,
13784 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
13785 *avx512f_vmfnmadd_<mode>_mask<round_name>,
13786 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
13787 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
13788 *avx512f_vmfnmsub_<mode>_mask<round_name>,
13789 avx512f_vmfnmsub_<mode>_mask3<round_name>,
13790 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
13791 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
13792 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
13793 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
13794 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
13795 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
13796 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
13797 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
13798 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
13799 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
13800 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
13801 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
13802 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
13803 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
13804 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
13805 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
13806 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
13807 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
13808 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
13809 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
13810 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
13811 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
13813 2019-03-21 Martin Sebor <msebor@redhat.com>
13815 PR tree-optimization/89350
13816 * builtins.c (compute_objsize): Also ignore offsets whose upper
13818 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
13819 (builtin_memref::builtin_memref): Initialize new member.
13820 Allow EXPR to be null.
13821 (builtin_memref::extend_offset_range): Replace local with a member.
13822 Avoid assuming pointer offsets are unsigned.
13823 (builtin_memref::set_base_and_offset): Determine base object
13824 before computing offset range.
13825 (builtin_access::builtin_access): Handle memset.
13826 (builtin_access::generic_overlap): Replace local with a member.
13827 (builtin_access::strcat_overlap): Same.
13828 (builtin_access::overlap): Same.
13829 (maybe_diag_overlap): Same.
13830 (maybe_diag_access_bounds): Same.
13831 (wrestrict_dom_walker::check_call): Handle memset.
13832 (check_bounds_or_overlap): Same.
13834 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
13835 Jakub Jelinek <jakub@redhat.com>
13838 * tree.c (fld_type_variant, fld_incomplete_type_of,
13839 fld_process_array_type): Call fld->pset.add and don't call
13840 add_tree_to_fld_list if it returns true.
13841 (free_lang_data_in_type): Similarly with self-recursive call. Purge
13842 non-marked types from TYPE_NEXT_VARIANT list.
13843 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
13845 2019-03-21 Jakub Jelinek <jakub@redhat.com>
13847 * hash-table.h (hash_table): Add Lazy template parameter defaulted
13848 to false, if true, don't alloc_entries during construction, but defer
13849 it to the first method that needs m_entries allocated.
13850 (hash_table::hash_table, hash_table::~hash_table,
13851 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
13852 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
13853 hash_table::clear_slot, hash_table::traverse_noresize,
13854 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
13855 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
13857 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
13858 NO_INSERT instead of find_with_hash.
13859 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
13860 hash_set::m_table): Add Lazy to template params of hash_table.
13861 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
13862 * attribs.c (test_attribute_exclusions): Likewise.
13863 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
13864 hash_set. Add tests for hash_set with Lazy = true.
13866 2019-03-21 Richard Biener <rguenther@suse.de>
13868 PR tree-optimization/89779
13869 * tree.c (tree_nop_conversion): Consolidate and fix defensive
13870 checks with respect to released SSA names now having error_mark_node
13872 * fold-const.c (operand_equal_p): Likewise.
13874 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
13877 * config/s390/s390.c (global_not_special_regno_p): Move to make it
13879 (s390_optimize_register_info): Use global_not_special_regno_p to
13880 check for global regs.
13882 2019-03-20 Jakub Jelinek <jakub@redhat.com>
13885 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
13886 update this_alternative nor this_alternative_set.
13888 2019-03-19 Jim Wilson <jimw@sifive.com>
13891 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
13892 align, size, offset. Use them to handle a BLKmode reference. Update
13894 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
13896 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13898 PR rtl-optimization/89768
13899 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
13900 instead of GEN_INT.
13901 (unroll_loop_runtime_iterations): Likewise.
13903 2019-03-19 Martin Sebor <msebor@redhat.com>
13905 PR tree-optimization/89644
13906 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
13907 rather than endptr as an indicator of nul-termination.
13909 PR tree-optimization/89644
13910 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
13911 arrays in determining sequence sizes in strncpy and stpncpy.
13913 2019-03-19 Martin Liska <mliska@suse.cz>
13915 PR middle-end/89737
13916 * predict.c (combine_predictions_for_bb): Empty likely_edges and
13917 unlikely_edges if there's an edge that belongs to both these sets.
13919 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
13922 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
13923 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
13924 go via a stack temporary.
13926 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13929 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
13930 instead of gen_rtx_SUBREG.
13931 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
13933 2019-03-19 Richard Biener <rguenther@suse.de>
13936 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
13938 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
13942 * tree.c (free_lang_data_in_decl): Do not free context of C++
13945 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13948 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
13949 subs for the first alternative except when operands[3] is 1.
13952 * gimplify.c (gimplify_asm_expr): For output argument with
13953 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
13956 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
13958 PR rtl-optimization/89753
13959 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
13960 explicit unrolling factor even more robust.
13962 2019-03-19 Jakub Jelinek <jakub@redhat.com>
13965 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
13966 compensation use x2 += 1 instead of x2 -= -1 and when honoring
13967 signed zeros, do another copysign after the compensation.
13969 2019-03-18 Martin Sebor <msebor@redhat.com>
13971 PR tree-optimization/89720
13972 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
13973 more conservatively, the same as anti-range.
13975 2019-03-18 Richard Biener <rguenther@suse.de>
13977 PR middle-end/88945
13978 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
13979 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
13980 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
13981 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
13983 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
13985 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
13986 Extend queue to 1024 entries.
13987 Add "consumed" field.
13988 (gomp_print_output): Remove print_index parameter.
13989 Add final parameter.
13990 Change limit to unsigned.
13991 Use consumed field to implement circular buffer.
13992 Detect interrupted print in final pass.
13993 Flush output at the end.
13994 (run): Update gomp_print_output usage.
13995 (main): Initialize kernargs->output_data.consumed.
13997 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
13999 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
14000 calculation of the minimum number of scalar iterations for
14001 fully-predicated loops.
14003 2019-03-18 Martin Jambor <mjambor@suse.cz>
14005 PR tree-optimization/89546
14006 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
14007 any propagation to its children took place.
14009 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14012 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
14013 parameter, and make use of it.
14014 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
14016 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14018 * config/arc/arc.opt (mcode-density-frame): Get the inital value
14019 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
14020 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14021 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
14022 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
14023 match what the ops is doing.
14024 (push_multi_fp_blink): Likewise.
14025 * config/arc/arc.c (arc_override_options): Enable enter/leave when
14026 compiling for size and elf target.
14027 (arc_save_callee_enter): Adjust note to match what enter/leave
14030 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14032 * config/arc/arc.md (tst_movb): Fix constraint.
14034 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14036 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
14038 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
14040 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
14041 * config/arc/arc.c (arc_conditional_register_usage): Remove all
14042 reg_alloc_order references.
14043 (size_alloc_order): Define.
14044 (arc_adjust_reg_alloc_order): New function.
14045 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
14047 (ADJUST_REG_ALLOC_ORDER): Define.
14048 (HONOR_REG_ALLOC_ORDER): Likewise.
14050 2019-03-18 Richard Biener <rguenther@suse.de>
14053 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
14054 loads and stores a bit more.
14056 2019-03-18 Richard Biener <rguenther@suse.de>
14059 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
14060 load pessimization to stores as well.
14062 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
14064 PR middle-end/86979
14065 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
14066 successor, use NULL as its av set.
14068 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
14070 PR rtl-optimization/89721
14071 * lra-constraints (invariant_p): Return false if side_effects_p holds.
14073 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
14076 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14077 When handling vec_extract, use modular arithmetic to allow
14078 constant selectors greater than vector length.
14079 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
14080 V1TImode vectors to have constant selector values greater than 0.
14081 Use modular arithmetic to compute vector index.
14082 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
14083 index for in-memory vectors. Correct code generation for
14084 in-register vectors.
14085 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
14088 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
14092 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
14095 2019-03-15 Jakub Jelinek <jakub@redhat.com>
14098 * tree.c (inchash::add_expr): Strip any location wrappers.
14099 * fold-const.c (operand_equal_p): Move stripping of location wrapper
14100 after hash verification.
14103 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
14104 SIGN_EXTEND and ZERO_EXTEND.
14106 2019-03-14 Jason Merrill <jason@redhat.com>
14107 Jakub Jelinek <jakub@redhat.com>
14109 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
14110 than if is_empty (*slot).
14111 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
14112 existing elt and for elt removal.
14113 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
14114 of already removed elt.
14116 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
14119 * config/i386/i386.c (remove_partial_avx_dependency): Handle
14120 REG_EH_REGION note.
14122 2019-03-14 Martin Liska <mliska@suse.cz>
14125 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
14127 2019-03-14 Richard Biener <rguenther@suse.de>
14130 * config/i386/i386.c (make_resolver_func): Properly set
14131 DECL_CONTEXT on the RESULT_DECL.
14132 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
14134 2019-03-14 Richard Biener <rguenther@suse.de>
14136 * gimple-pretty-print.c: Include cfgloop.h.
14137 (dump_gimple_phi): Adjust.
14138 (dump_gimple_bb_header): Dump loop header for GIMPLE.
14139 (pp_cfg_jump): Adjust.
14140 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
14141 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
14142 (lower_phi_internal_fn): Remove.
14143 (verify_gimple_call): Remove IFN_PHI special-casing.
14144 (dump_function_to_file): Dump IL state.
14145 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
14146 done to deal with PHI nodes being present in non-SSA state.
14148 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14151 * multiple_target.c (create_dispatcher_calls): Change
14152 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
14153 In the node->iterate_referring loop, push *ref rather than ref, call
14154 ref->remove_reference () and always pass 0 to iterate_referring.
14156 PR rtl-optimization/89679
14157 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
14158 would contain a paradoxical SUBREG.
14160 2019-03-14 Richard Biener <rguenther@suse.de>
14162 PR tree-optimization/89710
14163 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
14166 2019-03-14 Martin Liska <mliska@suse.cz>
14168 * coverage.c (coverage_begin_function): Stream also
14170 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
14171 documentation about function declaration location.
14172 * gcov-dump.c (tag_function): Print whole range
14173 of function declaration.
14174 * gcov.c (struct function_info): Add end_column field.
14175 (function_info::function_info): Initialize it.
14176 (output_json_intermediate_file): Output {start,end}_column
14178 (read_graph_file): Read end_column.
14180 2019-03-14 Richard Biener <rguenther@suse.de>
14182 PR middle-end/89698
14183 * fold-const.c (operand_equal_p): For INDIRECT_REF check
14184 that the access types are similar.
14186 2019-03-14 Jakub Jelinek <jakub@redhat.com>
14188 PR tree-optimization/89703
14189 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
14190 aren't compatible also with builtin_decl_explicit. Check pure
14191 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
14192 and BUILT_IN_STPNCPY{,_CHK}.
14194 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
14197 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
14198 addr32 prefix to VSIB address for X32.
14199 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
14201 (*avx512pf_gatherpf<mode>df_mask): Likewise.
14202 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
14203 (*avx512pf_scatterpf<mode>df_mask): Likewise.
14204 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
14205 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
14206 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
14207 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
14208 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
14209 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
14210 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
14211 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
14212 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
14213 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
14214 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
14215 (*avx512f_scatterdi<mode>): Likewise.
14217 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
14220 * lra-constraints.c (inherit_in_ebb): Update
14221 potential_reload_hard_regs along with live_hard_regs.
14223 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14226 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
14228 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
14230 2019-03-13 Martin Sebor <msebor@redhat.com>
14232 PR tree-optimization/89662
14233 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
14236 2019-03-13 Richard Biener <rguenther@suse.de>
14238 PR middle-end/89677
14239 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
14240 throw FP expressions at tree-affine.
14242 2019-03-14 Richard Biener <rguenther@suse.de>
14244 * tree-pretty-print.c (dump_generic_node): For -gimple properly
14245 dump negative integer constants using _Literal (type) -num.
14247 2019-03-13 Jakub Jelinek <jakub@redhat.com>
14249 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
14250 nonlocal_value member.
14252 PR middle-end/88588
14253 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
14254 (ipa_simd_modify_function_body): Handle PHIs.
14256 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14258 * config/s390/s390.c (s390_option_override_internal): Use more
14259 aggressive inlining parameters.
14261 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14263 * config/s390/3906.md: New file.
14264 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14265 (LONGRUNNING_THRESHOLD): Remove.
14266 (MAX_SCHED_MIX_SCORE): Decrease.
14267 (MAX_SCHED_MIX_DISTANCE): Decrease.
14268 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
14269 (struct s390_sched_state): New struct to hold scheduling state.
14270 (S390_SCHED_STATE_NORMAL): Remove.
14271 (S390_SCHED_STATE_CRACKED): Remove.
14272 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
14273 (s390_get_sched_attrmask): Use new attribute.
14274 (s390_get_unit_mask): Use new units.
14275 (s390_is_fpd): New function.
14276 (s390_is_fxd): New function.
14277 (s390_is_longrunning): New function.
14278 (s390_sched_score): Use new functions.
14279 (s390_sched_reorder): Likewise.
14280 (s390_sched_variable_issue): Rework and use new functions.
14281 (s390_sched_init): Use new functions.
14282 * config/s390/s390.h (s390_tune_attr): Add z14.
14283 * config/s390/s390.md: Add z14.
14285 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
14287 * config/s390/2964.md: Update pipeline description.
14288 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
14289 (LONGRUNNING_THRESHOLD): Remove.
14290 (LATENCY_FACTOR): Remove.
14291 (s390_get_unit_mask): Add unit.
14292 (s390_sched_score): Use fxd/fpd.
14293 (s390_sched_variable_issue): Use fxd/fpd.
14295 2019-03-12 Martin Liska <mliska@suse.cz>
14297 * config/i386/i386.c: Reword an error message.
14299 2019-03-12 Martin Jambor <mjambor@suse.cz>
14301 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
14302 terminate with newline.
14304 2019-03-12 Jakub Jelinek <jakub@redhat.com>
14307 * config/s390/s390.md (tabort): Use %wd instead of
14308 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
14309 letters and periods.
14310 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
14311 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
14314 PR middle-end/89663
14315 * builtins.c (expand_builtin_int_roundingfn,
14316 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
14317 gcc_unreachable if validate_arglist fails.
14319 2019-03-12 Richard Biener <rguenther@suse.de>
14321 PR tree-optimization/89664
14322 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
14323 free the occurance tree after the early out.
14325 2019-03-11 Jakub Jelinek <jakub@redhat.com>
14327 PR middle-end/89655
14329 * vr-values.c (vr_values::update_value_range): If
14330 old_vr->varying_p (), don't update it, make new_vr also VARYING
14333 2019-03-11 Martin Liska <mliska@suse.cz>
14335 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14336 Fix double string quoting.
14338 2019-03-11 Martin Liska <mliska@suse.cz>
14340 * collect-utils.c (collect_wait): Wrap apostrophes
14341 in gcc internal format with %'.
14342 * collect2.c (main): Likewise.
14343 (scan_prog_file): Likewise.
14344 (scan_libraries): Likewise.
14345 * config/i386/i386.c (ix86_expand_call): Likewise.
14346 (ix86_handle_interrupt_attribute): Likewise.
14347 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14348 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
14349 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
14350 * lto-wrapper.c (find_crtoffloadtable): Likewise.
14351 * symtab.c (symtab_node::verify_base): Likewise.
14352 * tree-cfg.c (verify_gimple_label): Likewise.
14353 * tree.c (verify_type_variant): Likewise.
14355 2019-03-11 Martin Liska <mliska@suse.cz>
14357 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
14358 in a string format message and fix GNU coding style.
14359 (expand_builtin_set_thread_pointer): Likewise.
14360 * common/config/aarch64/aarch64-common.c
14361 (aarch64_rewrite_selected_cpu): Likewise.
14362 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
14363 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
14364 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
14365 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
14366 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
14367 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
14368 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
14369 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
14370 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
14371 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
14373 * common/config/riscv/riscv-common.c
14374 (riscv_subset_list::parsing_subset_version): Likewise.
14375 (riscv_subset_list::parse_std_ext): Likewise.
14376 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14377 (riscv_subset_list::parse): Likewise.
14378 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
14379 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
14380 (aarch64_override_options_internal): Likewise.
14381 (aarch64_validate_mcpu): Likewise.
14382 (aarch64_validate_march): Likewise.
14383 (aarch64_validate_mtune): Likewise.
14384 (aarch64_override_options): Likewise.
14385 * config/alpha/alpha.c (alpha_option_override): Likewise.
14386 * config/arc/arc.c (arc_init): Likewise.
14387 (parse_mrgf_banked_regs_option): Likewise.
14388 (arc_override_options): Likewise.
14389 (arc_expand_builtin_aligned): Likewise.
14390 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
14391 (arm_expand_builtin): Likewise.
14392 * config/arm/arm.c (arm_option_check_internal): Likewise.
14393 (arm_configure_build_target): Likewise.
14394 (arm_option_override): Likewise.
14395 (arm_options_perform_arch_sanity_checks): Likewise.
14396 (arm_handle_cmse_nonsecure_entry): Likewise.
14397 (arm_handle_cmse_nonsecure_call): Likewise.
14398 (arm_tls_referenced_p): Likewise.
14399 (thumb1_expand_prologue): Likewise.
14400 * config/avr/avr.c (avr_option_override): Likewise.
14401 * config/bfin/bfin.c (bfin_option_override): Likewise.
14402 * config/c6x/c6x.c (c6x_option_override): Likewise.
14403 * config/cr16/cr16.c (cr16_override_options): Likewise.
14404 * config/cris/cris.c (cris_option_override): Likewise.
14405 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
14406 * config/darwin-c.c (macosx_version_as_macro): Likewise.
14407 * config/darwin.c (darwin_override_options): Likewise.
14408 * config/frv/frv.c (frv_expand_builtin): Likewise.
14409 * config/h8300/h8300.c (h8300_option_override): Likewise.
14410 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
14411 (ix86_option_override_internal): Likewise.
14412 (warn_once_call_ms2sysv_xlogues): Likewise.
14413 (ix86_expand_prologue): Likewise.
14414 (split_stack_prologue_scratch_regno): Likewise.
14415 (ix86_warn_parameter_passing_abi): Likewise.
14416 * config/ia64/ia64.c (fix_range): Likewise.
14417 * config/m68k/m68k.c (m68k_option_override): Likewise.
14418 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
14419 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
14420 (mips_set_compression_mode): Likewise.
14421 * config/mmix/mmix.c (mmix_option_override): Likewise.
14422 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
14423 * config/msp430/msp430.c (msp430_option_override): Likewise.
14424 * config/nds32/nds32.c (nds32_option_override): Likewise.
14425 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
14426 (nios2_option_override): Likewise.
14427 (nios2_expand_custom_builtin): Likewise.
14428 * config/nvptx/mkoffload.c (main): Likewise.
14429 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
14430 * config/pa/pa.c (fix_range): Likewise.
14431 (pa_option_override): Likewise.
14432 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
14433 (riscv_option_override): Likewise.
14434 * config/rl78/rl78.c (rl78_option_override): Likewise.
14435 * config/rs6000/aix61.h: Likewise.
14436 * config/rs6000/aix71.h: Likewise.
14437 * config/rs6000/aix72.h: Likewise.
14438 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
14439 * config/rs6000/freebsd64.h: Likewise.
14440 * config/rs6000/linux64.h: Likewise.
14441 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
14442 (rs6000_expand_zeroop_builtin): Likewise.
14443 (rs6000_expand_mtfsb_builtin): Likewise.
14444 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
14445 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
14446 (rs6000_invalid_builtin): Likewise.
14447 (rs6000_expand_split_stack_prologue): Likewise.
14448 * config/rs6000/rtems.h: Likewise.
14449 * config/rx/rx.c (valid_psw_flag): Likewise.
14450 (rx_expand_builtin): Likewise.
14451 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14452 * config/s390/s390.c (s390_expand_builtin): Likewise.
14453 (s390_function_profiler): Likewise.
14454 (s390_option_override_internal): Likewise.
14455 (s390_option_override): Likewise.
14456 * config/sh/sh.c (sh_option_override): Likewise.
14457 (sh_builtin_saveregs): Likewise.
14458 (sh_fix_range): Likewise.
14459 * config/sh/vxworks.h: Likewise.
14460 * config/sparc/sparc.c (sparc_option_override): Likewise.
14461 * config/spu/spu.c (spu_option_override): Likewise.
14462 (fix_range): Likewise.
14463 * config/visium/visium.c (visium_option_override): Likewise.
14464 (visium_handle_interrupt_attr): Likewise.
14465 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
14466 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
14467 (dbg_cnt_process_opt): Likewise.
14468 * dwarf2out.c (output_dwarf_version): Likewise.
14469 * except.c (expand_eh_return): Likewise.
14470 * gcc.c (defined): Likewise.
14471 (driver_handle_option): Likewise.
14472 (process_command): Likewise.
14473 (compare_files): Likewise.
14474 (driver::prepare_infiles): Likewise.
14475 (driver::do_spec_on_infiles): Likewise.
14476 (driver::maybe_run_linker): Likewise.
14477 * omp-offload.c (oacc_parse_default_dims): Likewise.
14478 * opts-global.c (handle_common_deferred_options): Likewise.
14479 * opts.c (parse_sanitizer_options): Likewise.
14480 (common_handle_option): Likewise.
14481 (enable_warning_as_error): Likewise.
14482 * passes.c (enable_disable_pass): Likewise.
14483 * plugin.c (parse_plugin_arg_opt): Likewise.
14484 (default_plugin_dir_name): Likewise.
14485 * targhooks.c (default_expand_builtin_saveregs): Likewise.
14486 (default_pch_valid_p): Likewise.
14487 * toplev.c (init_asm_output): Likewise.
14488 (process_options): Likewise.
14489 (toplev::run_self_tests): Likewise.
14490 * tree-cfg.c (verify_gimple_call): Likewise.
14491 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
14492 (tree_inlinable_function_p): Likewise.
14493 * var-tracking.c (vt_find_locations): Likewise.
14495 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
14497 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
14498 only on the else branch.
14500 2019-03-11 Martin Liska <mliska@suse.cz>
14502 * gcov.c (output_intermediate_json_line): Print function
14504 (output_json_intermediate_file): Add new argument.
14505 * doc/gcov.texi: Document the change.
14507 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
14509 PR rtl-optimization/89588
14510 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
14511 explicit unrolling factor more robust.
14513 2019-03-11 Richard Biener <rguenther@suse.de>
14515 PR tree-optimization/89649
14516 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
14517 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
14518 on the prolog and epilog loops.
14519 (vect_loop_versioning): Return copy of loop.
14520 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
14521 on the non-vectorized version of the loop.
14523 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
14526 * config/i386/sse.md (*vec_extractv2di_0_sse):
14527 Add (=r,x) alternative and corresponding splitter.
14529 2019-03-10 Martin Jambor <mjambor@suse.cz>
14531 PR tree-optimization/85762
14532 PR tree-optimization/87008
14533 PR tree-optimization/85459
14534 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
14535 it points to if there is a type changing MEM_REF. Adjust all callers.
14536 (build_accesses_from_assign): Disable total scalarization if
14537 contains_vce_or_bfcref_p returns true through the new parameter, for
14540 2019-03-09 Jakub Jelinek <jakub@redhat.com>
14543 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
14544 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
14547 * common.opt (fdiagnostics-show-labels,
14548 fdiagnostics-show-line-numbers, fdiagnostics-format=,
14549 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
14550 gas-locview-support, ginline-points, ginternal-reset-location-views):
14551 Terminate description text with a dot.
14552 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
14553 * config/mcore/mcore.opt (m210, m340): Likewise.
14554 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
14555 mnops=): Start description text with a capital letter.
14556 * config/arc/arc.opt (msize-level=): Likewise.
14557 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
14558 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
14559 mnewlib): Likewise.
14560 * config/ft32/ft32.opt (msim): Likewise.
14561 (mft32b, mcompress): Likewise. Terminate description text with a dot.
14562 (mnodiv, mnopm): Terminate description text with a dot.
14563 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
14565 * config/i386/i386.opt (prefer_vector_width, instrument_return):
14567 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
14570 PR rtl-optimization/89634
14571 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
14572 are modified in BB_END (e->src) instruction.
14574 2019-03-08 David Malcolm <dmalcolm@redhat.com>
14577 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
14578 messages more amenable to translation, and improve wording.
14580 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
14582 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
14583 ud- and du-chains between phases.
14585 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
14588 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
14589 instead of POLY_INT_CST.
14591 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
14593 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
14596 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
14601 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
14602 (_mm_storeu_si64): Ditto.
14604 2019-03-08 Martin Liska <mliska@suse.cz>
14607 * config/i386/i386.c (ix86_option_override_internal): Disable
14608 jump tables when retpolines are used.
14610 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
14613 * ipa-split.c (execute_split_functions): Do not split
14614 'noinline' or 'section' function.
14616 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14619 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
14620 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
14621 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
14624 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14625 from diagnostics. Formatting fixes.
14628 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
14629 warn_odr diagnostics.
14632 * lra-constraints.c (process_alt_operands): Avoid one space before
14633 " at the end of line and another after " on another line in a string
14635 * attribs.c (handle_dll_attribute): Likewise.
14636 * config/avr/avr-devices.c (avr_texinfo): Likewise.
14638 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
14639 warning_at or inform messages in G_() if there is no ?:.
14641 PR tree-optimization/89550
14642 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
14643 returned true. Formatting fixes.
14644 (expand_builtin_strnlen): Formatting fixes.
14645 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
14646 if warning_at returned true.
14647 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
14649 2019-03-08 Richard Biener <rguenther@suse.de>
14651 PR middle-end/89578
14652 * cfgloop.h (struct loop): Add owned_clique field.
14653 * cfgloopmanip.c (copy_loop_info): Copy it.
14654 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
14656 * tree-inline.c (copy_loops): Remap owned_clique.
14657 * lto-streamer-in.c (input_cfg): Stream owned_clique.
14658 * lto-streamer-out.c (output_cfg): Likewise.
14660 2019-03-08 Jakub Jelinek <jakub@redhat.com>
14663 * config/darwin.c: Include intl.h.
14664 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
14665 composing the message out of two separate parts.
14667 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14670 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
14671 doesn't start with a capital letter and doesn't end with a dot.
14672 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
14673 with a capital letter.
14674 (ix86_mangle_function_version_assembler_name): Likewise.
14675 (ix86_generate_version_dispatcher_body): Likewise.
14676 (fold_builtin_cpu): Likewise.
14677 (get_builtin_code_for_version): Likewise. Remove extraneous space.
14678 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
14679 translators, wrap full type name in %qs.
14681 PR translation/79999
14682 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
14683 depend clause with source (or sink) modifier.
14684 * omp-expand.c (expand_omp_ordered_sink): Likewise.
14687 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
14688 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
14689 (avx512f_load<mode>_mask): New define_expand.
14690 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
14691 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
14692 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
14693 __builtin_ia32_movess_mask): New builtins.
14694 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
14695 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
14696 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
14697 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
14699 2019-03-07 Martin Jambor <mjambor@suse.cz>
14702 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
14703 for extern inline functions.
14705 2019-03-07 Martin Jambor <mjambor@suse.cz>
14708 * cgraph.h (cgraph_node): New inline method former_thunk_p.
14709 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
14710 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
14711 have multiple callees. At the end check if declarations match as
14712 opposed to cgraph_nodes.
14714 2019-03-07 Martin Liska <mliska@suse.cz>
14716 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
14717 which is equivalent to searching for this in clones chain.
14718 * symtab.c (symtab_node::verify_base): Similarly compare ASM
14719 names with a neighbour and special case first node in a chain.
14721 2019-01-25 Jason Merrill <jason@redhat.com>
14723 PR c++/80916 - spurious "static but not defined" warning.
14724 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
14725 for an internal symbol with DECL_EXTERNAL.
14727 2019-04-07 Richard Biener <rguenther@suse.de>
14729 PR middle-end/89618
14730 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
14731 * tree-inline.c (copy_loops): Simplify.
14733 2019-03-07 Martin Liska <mliska@suse.cz>
14735 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
14737 2019-03-07 Richard Biener <rguenther@suse.de>
14739 PR tree-optimization/89595
14740 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
14741 stmt iterator as reference, take boolean output parameter to
14742 indicate whether the stmt was removed and thus the iterator
14744 (dom_opt_dom_walker::before_dom_children): Re-iterate over
14745 stmts created by folding.
14747 2019-03-07 Jakub Jelinek <jakub@redhat.com>
14750 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
14753 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
14755 PR rtl-optimization/88845
14756 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
14758 * lra.c (remove_scratches_1): New function.
14759 (remove_scratches): Use it.
14760 (lra_emit_move): Likewise.
14762 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
14764 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
14765 unaligned_access variable.
14766 * config/arc/arc.c (arc_override_options): Set unaligned access
14767 default on for HS CPUs.
14768 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
14770 2019-03-06 Martin Liska <mliska@suse.cz>
14772 PR gcov-profile/89577
14773 * doc/gcov.texi: Prefer to use --coverage.
14774 * doc/sourcebuild.texi: Likewise.
14776 2019-03-02 Jason Merrill <jason@redhat.com>
14778 PR c++/86485 - -Wmaybe-unused with empty class ?:
14779 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
14781 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14784 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
14787 PR middle-end/89590
14788 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
14789 exactly one argument.
14791 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14792 Richard Sandiford <richard.sandiford@arm.com>
14794 PR tree-optimization/89570
14795 * match.pd (vec_cond into cond_op simplification): Don't use
14796 get_conditional_internal_fn, use as_internal_fn (cond_op).
14798 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
14801 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
14802 to decide when to split off a non-zero offset from a symbol.
14803 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
14804 in function symbols.
14806 2019-03-05 Richard Biener <rguenther@suse.de>
14808 PR tree-optimization/89594
14809 * tree-if-conv.c (pass_if_conversion::execute): Handle
14810 case where .LOOP_VECTORIZED_FUNCTION was removed.
14812 2019-03-05 Jakub Jelinek <jakub@redhat.com>
14815 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
14816 instead alloca it only when needed with the needed size.
14818 PR tree-optimization/89570
14819 * match.pd (vec_cond into cond_op simplification): Guard with
14820 vectorized_internal_fn_supported_p test and #if GIMPLE.
14822 PR tree-optimization/89566
14823 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
14824 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
14825 Punt if get_user_idx_format succeeds, but idx_format argument is
14826 not provided or doesn't have pointer type, or if idx_args is above
14827 number of provided arguments.
14829 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
14831 PR tree-optimization/89437
14832 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
14834 2019-03-04 Richard Biener <rguenther@suse.de>
14836 PR middle-end/89572
14837 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
14840 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
14842 PR tree-optimization/89487
14843 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
14844 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
14845 (distribute_loop): Don't do runtime alias check if there is non-
14846 addressable data reference.
14847 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
14848 is a register variable.
14850 2019-03-02 Jakub Jelinek <jakub@redhat.com>
14853 * config/arm/arm.md (cmpsi2_addneg): Use
14854 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
14855 If operands[2] is 0 or INT_MIN, force use of subs.
14856 (*compare_scc splitter): Use gen_int_mode.
14857 (*negscc): Likewise.
14858 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
14860 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
14861 Monk Chiang <sh.chiang04@gmail.com>
14863 * common/config/riscv/riscv-common.c: Include sstream.
14864 (riscv_subset_list::to_string): New.
14865 (riscv_arch_str): Likewise.
14866 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
14867 * config.in: Regen.
14868 * config/riscv/riscv-protos.h (riscv_arch_str): New.
14869 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
14870 (riscv_emit_attribute): New.
14871 (riscv_file_start): Emit attribute if needed.
14872 (riscv_option_override): Init riscv_emit_attribute_p.
14873 * config/riscv/riscv.opt (mriscv-attribute): New option.
14874 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
14875 * configure: Regen.
14876 * doc/install.texi: Document --with-riscv-attribute.
14877 * doc/invoke.texi: Document -mriscv-attribute.
14879 * common/config/riscv/riscv-common.c:
14880 Include config/riscv/riscv-protos.h.
14881 (INCLUDE_STRING): Defined.
14882 (RISCV_DONT_CARE_VERSION): Defined.
14883 (riscv_subset_t): Declare.
14884 (riscv_subset_t::riscv_subset_t): New.
14885 (riscv_subset_list): Declare.
14886 (riscv_subset_list::riscv_subset_list): New.
14887 (riscv_subset_list::~riscv_subset_list): Likewise.
14888 (riscv_subset_list::parsing_subset_version): Likewise.
14889 (riscv_subset_list::parse_std_ext): Likewise.
14890 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
14891 (riscv_subset_list::add): Likewise.
14892 (riscv_subset_list::lookup): Likewise.
14893 (riscv_subset_list::xlen): Likewise.
14894 (riscv_subset_list::parse): Likewise.
14895 (riscv_supported_std_ext): Likewise.
14896 (current_subset_list): Likewise.
14897 (riscv_parse_arch_string): Using riscv_subset_list::parse to
14900 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
14902 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
14903 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
14904 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
14906 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
14908 PR rtl-optimization/85899
14909 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
14910 fallthru edges leading to the exit block.
14912 2019-03-01 Tamar Christina <tamar.christina@arm.com>
14915 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
14916 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
14918 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
14920 PR tree-optimization/89535
14921 * tree-vect-stmts.c (vectorizable_call): Record the vector types
14922 for each operand. Calculate the fallback choice for mask operands
14923 and pass it to vect_get_vec_def_for_operand.
14925 2019-03-01 Richard Biener <rguenther@suse.de>
14927 PR middle-end/89541
14928 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
14929 get virtual operands.
14930 (get_expr_operands): Handle CONST_DECL like other decls.
14932 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14934 PR middle-end/89503
14935 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
14936 on DECL_P and EXPR_P.
14938 2019-03-01 Richard Biener <rguenther@suse.de>
14940 PR middle-end/89497
14941 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
14942 argument, defaulted to zero.
14943 * passes.c (execute_function_todo): Pass down SSA update flags
14944 to cleanup_tree_cfg.
14945 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
14946 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
14948 (cleanup_tree_cfg): Get and pass down SSA update flags.
14950 2019-03-01 Jakub Jelinek <jakub@redhat.com>
14953 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
14954 early_lto_debug argument.
14956 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
14958 PR tree-optimization/89536
14959 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
14960 only whether bit #0 of the value is 0 instead of the entire value.
14962 2019-02-28 Marek Polacek <polacek@redhat.com>
14964 PR c++/87068 - missing diagnostic with fallthrough statement.
14965 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
14966 at the end of a seq, save its location to walk_stmt_info.
14967 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
14970 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
14973 * tree.c (find_atomic_core_type): Move ahead in file.
14974 (check_base_type): Correctly compare alignments of atomic types.
14976 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
14979 * config/i386/i386.c (get_builtin_code_for_version): Identify
14980 Westmere from PCLMUL, instead of AES.
14982 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14985 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
14986 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
14989 2019-02-28 Tamar Christina <tamar.christina@arm.com>
14992 * config/aarch64/aarch64-option-extensions.def: Document it.
14993 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
14996 2019-02-28 Jakub Jelinek <jakub@redhat.com>
14999 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
15000 builtins if they don't have a single scalar floating point argument.
15003 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15005 PR rtl-optimization/89490
15006 * varasm.c (get_block_for_section): Bail out for mergeable sections.
15007 (default_use_anchors_for_symbol_p, output_object_block): Assert the
15008 block section is not mergeable.
15010 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15013 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
15014 old define_insn to ...
15015 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
15016 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
15017 Rename old define_insn to ...
15018 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
15019 (thumb2_casesi_internal_pic): New define_expand. Rename old
15021 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
15022 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
15023 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
15025 2019-02-27 Richard Biener <rguenther@suse.de>
15028 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
15030 2019-02-27 Richard Biener <rguenther@suse.de>
15032 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
15035 2019-02-27 Richard Biener <rguenther@suse.de>
15038 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
15039 parameter, prefix section name with .gnu.debuglto_ if true.
15040 (dwarf2out_finish): Pass false to output_comdat_type_unit.
15041 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
15043 2019-02-27 Richard Biener <rguenther@suse.de>
15046 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
15047 rather than on use_debug_types, doing what output_die does.
15048 (value_format): Likewise.
15050 2019-02-27 Martin Jambor <mjambor@suse.cz>
15051 Martin Sebor <msebor@redhat.com>
15053 * doc/invoke.texi (Warning Options): Reword description of
15054 -Wno-absolute-value.
15056 2019-02-27 Jakub Jelinek <jakub@redhat.com>
15058 PR tree-optimization/89280
15059 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
15060 builtin_setjmp_setup_bb): New functions.
15061 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
15062 When visiting __builtin_setjmp_setup block, queue in special
15063 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
15064 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
15065 from visited after the loop if they don't have any visited successor
15068 2018-02-26 Steve Ellcey <sellcey@marvell.com>
15070 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
15072 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
15074 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15077 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
15078 with types other than sizetype/ssizetype.
15080 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15082 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
15083 (enum sparc_processor_type): ...this.
15084 (enum sparc_code_model_type): New enumeration type.
15085 (enum sparc_memory_model_type): Tweak comments.
15086 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
15088 (mcmodel): Use sparc_code_model enumeration and variable.
15089 (sparc_code_model): New enumeration.
15090 (mdebug): Add Undocumented marker.
15091 * config/sparc/sparc.h (enum cmodel): Delete.
15092 (sparc_cmodel): Likewise.
15093 (TARGET_CM_MEDLOW): Adjust to above renaming.
15094 (TARGET_CM_MEDMID): Likewise.
15095 (TARGET_CM_MEDANY): Likewise.
15096 (TARGET_CM_EMBMEDANY): Likewise.
15097 * config/sparc/sparc.c (sparc_cmodel): Delete.
15098 (sparc_option_override): Remove string/value mapping support for the
15099 code model. Move code and memory model support to after the handling
15100 of target flags. Do private machine setup last.
15101 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
15102 (sparc_legitimize_reload_address): Likewise.
15103 (sparc_output_mi_thunk): Likewise.
15104 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
15106 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15108 PR tree-optimization/89500
15109 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
15110 (handle_builtin_strlen): Remove noncst_bound variable. Always
15111 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
15112 cst if the first cst bytes starting at x are known to be non-zero,
15113 even if the string is not zero terminated. Don't try to modify
15114 *si for strnlen. Update strlen_to_stridx only for strlen or if
15115 we can prove strnlen returns the same value as strlen would.
15117 2019-02-26 Martin Liska <mliska@suse.cz>
15119 * alloc-pool.h (struct pool_usage): Remove extra
15121 * bitmap.h (struct bitmap_usage): Likewise.
15122 * ggc-common.c (struct ggc_usage): Likewise.
15123 * mem-stats.h (struct mem_usage): Likewise.
15124 (mem_alloc_description::dump): Print dash lines
15125 here and repeat header at the end of a table report.
15126 It's then more readable.
15127 * tree-phinodes.c (phinodes_print_statistics): Make
15128 horizontal alignment.
15129 * tree-ssanames.c (ssanames_print_statistics): Likewise.
15130 * vec.c (struct vec_usage): Remove extra print_dash_line.
15131 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
15133 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
15135 * doc/extend.texi (__builtin_object_size):
15136 Use @pxref instead of @xref inside parenthesis.
15137 (__builtin_has_attribute): Add missing comma after @xref.
15138 (__builtin_object_size): Ditto.
15139 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
15141 2019-02-26 Jeff Law <law@redhat.com>
15143 PR rtl-optimization/87761
15144 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
15145 detect obviously dead insns and delete them.
15147 2019-02-26 Richard Biener <rguenther@suse.de>
15149 PR tree-optimization/89505
15150 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
15151 to handle restrict pointed-to vars with multiple subvars
15154 2019-02-26 Richard Biener <rguenther@suse.de>
15156 PR tree-optimization/89489
15157 * tree-parloops.c (create_loop_fn): Copy over last_clique.
15159 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
15161 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
15162 and move around comment.
15163 <BIT_AND_EXPR>: Likewise.
15164 <BIT_NOT_EXPR>: Add specific handling for boolean types.
15166 2019-02-26 Jakub Jelinek <jakub@redhat.com>
15169 * config/i386/i386.c (remove_partial_avx_dependency): Call
15170 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
15171 after changing possibly many instructions to use that pseudo. Fix up
15172 insertion of v4sf_const0 setter at the start of bb.
15174 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15177 * doc/extend.texi (Variadic Pointer Args): New section.
15179 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
15180 Martin Sebor <msebor@gmail.com>
15182 * common.opt (Wattribute-alias): Likewise.
15183 * doc/invoke.texi (Option Summary): List general form of
15184 -Wattribute-alias=. List positive form of -Wmissing-attributes.
15185 (-Wmissing-attributes): Invert entry, rewrite and correct default.
15186 Add cross-references.
15187 (-Wattribute-alias): Rewrite and correct default. Mention
15188 considered attributes (same as for -Wmissing-attributes).
15190 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
15192 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
15193 (_mm_cvtpd_ps): Likewise.
15194 (_mm_cvttpd_epi32): Likewise.
15197 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
15198 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
15201 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
15203 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15206 * common/config/aarch64/aarch64-common.c
15207 (struct aarch64_option_extension): Add is_synthetic.
15208 (all_extensions): Use it.
15209 (TARGET_OPTION_INIT_STRUCT): Define hook.
15210 (struct gcc_targetm_common): Moved to end.
15211 (all_extensions_by_on): New.
15212 (opt_ext_cmp, typedef opt_ext): New.
15213 (aarch64_option_init_struct): New.
15214 (aarch64_contains_opt): New.
15215 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
15216 * config/aarch64/aarch64-option-extensions.def
15217 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
15218 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
15219 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
15220 Set is_synthetic to false.
15221 (crypto): Set is_synthetic to true.
15222 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
15225 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15227 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15228 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
15229 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15230 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
15231 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
15232 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
15233 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
15234 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
15236 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
15237 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15238 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
15239 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
15240 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
15241 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
15242 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
15243 vfmlsl_laneq_high_f16): ... To this.
15244 * config/arm/neon.md: Update comments.
15246 2019-02-25 Tamar Christina <tamar.christina@arm.com>
15248 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
15249 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
15250 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
15251 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
15252 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
15253 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
15254 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
15255 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
15257 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
15258 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
15259 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
15260 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
15261 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
15262 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
15263 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
15264 vfmlslq_laneq_high_f16): ... To this.
15266 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
15268 PR rtl-optimization/86096
15269 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
15270 comparing mw_order values.
15272 2019-02-25 Jakub Jelinek <jakub@redhat.com>
15275 * config/arm/arm.md (*subsi3_carryin_const): Use
15276 arm_neg_immediate_operand predicate instead of
15277 arm_not_immediate_operand, "L" constraint instead of "K" and
15278 print it using %n2 instead of %B2.
15279 (*subsi3_carryin_const0): New define_insn.
15280 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
15281 instead of arm_not_operand and "I" constraint instead of "K" and
15282 print it using %n3 instead of %B2. Instead of using match_dup 2 add
15283 another match_operand and in the condition check that it is negation
15285 (*subsi3_carryin_compare_const0): New define_ins.
15286 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
15287 *subsi3_carryin_const.
15288 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
15289 split into *subsi3_carryin_compare_const0 if the highpart is zero.
15292 * config/arm.vfp.md (*negdf2_vfp): Use
15293 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
15294 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
15296 2019-02-24 Jakub Jelinek <jakub@redhat.com>
15298 PR rtl-optimization/89445
15299 * simplify-rtx.c (simplify_ternary_operation): Don't use
15300 simplify_merge_mask on operands that may trap.
15301 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
15302 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
15303 second operand is CONST_VECTOR, check if any element could be zero.
15304 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
15305 their operands can trap.
15307 2019-02-23 Martin Sebor <msebor@redhat.com>
15309 * gimple-ssa-sprintf.c (target_strtol): Rename...
15310 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
15311 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
15312 check for range error.
15314 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
15317 * opts-common.c (prune_options): Also prune joined switches
15318 with Negative and RejectNegative.
15319 * config/i386/i386.opt (march=): Add Negative(march=).
15320 (mtune=): Add Negative(mtune=).
15321 * doc/options.texi: Document Negative used together with Joined
15322 and RejectNegative.
15324 2019-02-22 Martin Sebor <msebor@redhat.com>
15326 * doc/extend.texi (Other Builtins): Add
15327 __builtin_is_constant_evaluated.
15329 2019-02-22 Richard Biener <rguenther@suse.de>
15331 PR tree-optimization/87609
15332 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
15334 2019-02-22 Jeff Law <law@redhat.com>
15336 PR rtl-optimization/87761
15337 * config/mips/mips.md: Add new combiner pattern to recognize
15338 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
15340 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
15343 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
15344 destination register in peepholes generating patterns for ADDS/SUBS.
15345 (add<mode>3_compare0,
15346 *addsi3_compare0_uxtw, add<mode>3_compareC,
15347 add<mode>3_compareV_imm, add<mode>3_compareV,
15348 *adds_<optab><ALLX:mode>_<GPI:mode>,
15349 *subs_<optab><ALLX:mode>_<GPI:mode>,
15350 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
15351 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
15352 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
15353 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
15354 sub<mode>3_compare1): Allow stack pointer for source register.
15355 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
15357 2019-02-22 Martin Sebor <msebor@redhat.com>
15359 PR tree-optimization/88993
15360 PR tree-optimization/88853
15361 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
15363 (sprintf_dom_walker::call_info::is_string_func): New helper.
15364 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
15365 for formatted string functions.
15366 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
15368 2019-02-22 Martin Sebor <msebor@redhat.com>
15371 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
15372 unreachable subexpressions.
15374 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
15375 Hongtao Liu <hongtao.liu@intel.com>
15376 Sunil K Pandey <sunil.k.pandey@intel.com>
15379 * config/i386/i386-passes.def: Add
15380 pass_remove_partial_avx_dependency.
15381 * config/i386/i386-protos.h
15382 (make_pass_remove_partial_avx_dependency): New.
15383 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
15385 (pass_data_remove_partial_avx_dependency): New.
15386 (pass_remove_partial_avx_dependency): Likewise.
15387 (make_pass_remove_partial_avx_dependency): Likewise.
15388 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
15389 (*extendsfdf2): Add avx_partial_xmm_update.
15390 (truncdfsf2): Likewise.
15391 (*float<SWI48:mode><MODEF:mode>2): Likewise.
15392 (SF/DF conversion splitters): Disabled for TARGET_AVX.
15394 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
15396 PR middle-end/85598
15397 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
15400 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
15403 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
15404 (PTA_SKYLAKE): Add PTA_AES.
15405 (PTA_GOLDMONT): Likewise.
15407 2019-02-22 Sudakshina Das <sudi.das@arm.com>
15409 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
15410 instruction if enabled.
15411 (aarch64_override_options): Remove reference to return address key.
15413 2019-02-22 Richard Biener <rguenther@suse.de>
15415 PR tree-optimization/89440
15416 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
15417 not necessary assert.
15419 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
15422 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
15423 (oacc_replace_fn_attrib_attr): ... this new function.
15424 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
15425 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
15427 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15429 * config/arm/arm-cpus.in (ares): Rename to...
15430 (neoverse-n1): ... This. Add ares as alias.
15431 * config/arm/arm-tables.opt: Regenerate.
15432 * config/arm/arm-tune.md: Likewise.
15433 * doc/invoke.txt (ARM Options): Document neoverse-n1.
15435 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15437 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
15438 * config/aarch64/aarch64-tune.md: Regenerate.
15439 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
15441 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15443 * config/aarch64/aarch64.c (ares_tunings): Rename to...
15444 (neoversen1_tunings): ... This.
15445 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
15446 (neoverse-n1): New CPU.
15447 * config/aarch64/aarch64-tune.md: Regenerate.
15448 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
15450 2019-02-22 Richard Biener <rguenther@suse.de>
15452 PR middle-end/87609
15453 * cfghooks.h (dependence_hash): New typedef.
15454 (struct copy_bb_data): New type.
15455 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
15456 (duplicate_block): Likewise.
15457 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
15458 (copy_bbs): Create and pass down copy_bb_data.
15459 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
15460 (rtl_duplicate_bb): Likewise.
15461 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
15462 remap dependence info.
15464 2019-02-22 Richard Biener <rguenther@suse.de>
15466 PR tree-optimization/87609
15467 * tree-core.h (tree_base): Document special clique values.
15468 * tree-inline.c (remap_dependence_clique): Do not use the
15469 special clique value of one.
15470 (maybe_set_dependence_info): Use clique one.
15471 (clear_dependence_clique): New callback.
15472 (compute_dependence_clique): Clear clique one from all refs
15473 before assigning it (again).
15475 2019-02-21 Martin Sebor <msebor@redhat.com>
15477 * doc/extend.texi (__clear_cache): Correct signature.
15479 2019-02-21 Ian Lance Taylor <iant@golang.org>
15482 * varasm.c (decode_addr_const): Call lookup_constant_def rather
15483 than output_constant_def.
15484 (add_constant_to_table): New static function.
15485 (output_constant_def): Call add_constant_to_table.
15486 (tree_output_constant_def): Likewise.
15488 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15491 * builtins.c (fold_builtin_arith_overflow): If first two args are
15492 INTEGER_CSTs, set intres and ovfres to constants rather than calls
15495 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
15498 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
15499 error for -mindirect-branch/-mfunction-return with incompatible
15502 2019-02-21 Jakub Jelinek <jakub@redhat.com>
15505 * constraints.md (q): Remove.
15506 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
15509 2019-02-21 Martin Jambor <mjambor@suse.cz>
15512 * omp-general.c (omp_extract_for_data): Removed a duplicate call
15513 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
15514 (omp_adjust_for_condition): ...here. Added necessary parameters.
15515 * omp-general.h (omp_adjust_for_condition): Updated declaration.
15516 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
15517 proper values to new parameters of omp_adjust_for_condition.
15519 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15521 PR middle-end/89412
15522 * expr.c (expand_assignment): If result is a MEM, use change_address
15523 instead of simplify_gen_subreg.
15525 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15526 David Malcolm <dmalcolm@redhat.com>
15528 PR middle-end/89091
15529 * fold-const.c (decode_field_reference): Return NULL_TREE if
15530 lang_hooks.types.type_for_size returns NULL. Check it before
15531 overwriting *exp_. Use return NULL_TREE instead of return 0.
15533 2019-02-20 Jakub Jelinek <jakub@redhat.com>
15535 PR middle-end/88074
15536 PR middle-end/89415
15537 * toplev.c (do_compile): Double the emin/emax exponents to workaround
15540 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
15543 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
15544 TARGET_SSE in addition to TARGET_SSE_MATH.
15546 (ix86_excess_precision): Ditto.
15547 (ix86_float_exceptions_rounding_supported_p): Ditto.
15548 (use_rsqrt_p): Ditto.
15549 * config/i386/sse.md (rsqrt<mode>2): Ditto.
15551 2019-02-20 David Malcolm <dmalcolm@redhat.com>
15554 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
15555 linenum_arith_t when determining if two adjacent line spans are
15556 close enough to merge.
15557 (diagnostic_show_locus): Use linenum_arith_t when iterating over
15558 lines within each line_span.
15560 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
15563 * lra-constraints.c(uses_hard_regs_p): Fix handling of
15564 paradoxical SUBREGS.
15566 2019-02-20 Li Jia He <helijia@linux.ibm.com>
15569 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
15570 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
15571 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
15574 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
15576 * config/gcn/gcn.c (print_operand): Fix typo.
15578 2019-02-19 Richard Biener <rguenther@suse.de>
15580 PR middle-end/88074
15581 * toplev.c (do_compile): Initialize mpfr's exponent range
15582 based on available float modes.
15584 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
15586 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
15587 as long as the epilogue isn't completed.
15589 2019-02-18 Martin Sebor <msebor@redhat.com>
15591 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
15592 __has_cpp_attribute, and __has_include.
15594 2019-02-18 Martin Sebor <msebor@redhat.com>
15596 * doc/invoke.texi (-Wreturn-type): Correct and expand.
15598 2019-02-18 Martin Sebor <msebor@redhat.com>
15600 PR middle-end/89294
15601 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
15603 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
15605 2019-02-18 Richard Biener <rguenther@suse.de>
15607 PR tree-optimization/89296
15608 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
15609 of no-warning flag to cases that might emit the bogus warning.
15611 2019-02-18 Jakub Jelinek <jakub@redhat.com>
15614 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
15616 * config/arm/vfp.md (*movdi_vfp): Likewise.
15617 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
15618 "q" constraint for operands[0].
15621 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
15622 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
15623 pattern in a temporary buffer.
15624 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
15625 than 64-operands[2].
15628 * config/s390/s390.c (s390_indirect_branch_attrvalue,
15629 s390_indirect_branch_settings): Define unconditionally.
15630 (s390_set_current_function): Likewise, but guard the whole body except
15631 the s390_indirect_branch_settings call with
15632 #if S390_USE_TARGET_ATTRIBUTE.
15633 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
15635 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
15636 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
15637 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
15638 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
15639 HOST_WIDE_INT_1U instead of 1ULL.
15640 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
15641 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
15642 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
15643 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
15645 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
15648 2019-02-18 Martin Jambor <mjambor@suse.cz>
15650 PR tree-optimization/89209
15651 * tree-sra.c (create_access_replacement): New optional parameter
15652 reg_tree. Use it as a type if non-NULL and access type is not of
15654 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
15655 to create_access_replacement.
15656 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
15657 Check lacc is non-NULL before attempting to re-create it on the RHS.
15659 2019-02-18 Martin Liska <mliska@suse.cz>
15662 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
15664 (symbol_table::free_edge): Recycle m_summary_id.
15665 * cgraph.h (get_summary_id): New.
15666 (symbol_table::release_symbol): Set m_summary_id to -1
15668 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
15669 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
15670 function_summary to fast_function_summary.
15671 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
15672 * ipa-pure-const.c (class funct_state_summary_t):
15673 Switch from function_summary to fast_function_summary.
15674 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
15675 (class ipa_ref_opt_summary_t): Switch from function_summary
15676 to fast_function_summary.
15677 * symbol-summary.h (class function_summary_base): New class
15678 that is created from base of former function_summary.
15679 (function_summary_base::unregister_hooks): New.
15680 (class function_summary): Inherit from function_summary_base.
15681 (class call_summary_base): New class
15682 that is created from base of former call_summary.
15683 (class call_summary): Inherit from call_summary_base.
15684 (struct is_same): New.
15685 (class fast_function_summary): New summary class.
15686 (class fast_call_summary): New summary class.
15687 * vec.h (vec_safe_grow_cleared): New function.
15689 2019-02-18 Martin Liska <mliska@suse.cz>
15691 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
15692 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
15693 * doc/tm.texi: Document new target hook.
15694 * doc/tm.texi.in: Likewise.
15695 * target.def: Add new target macro.
15696 * gcc.c (find_fortran_preinclude_file): Do not search multilib
15699 2019-02-17 Alan Modra <amodra@gmail.com>
15702 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
15703 output reg on add insn.
15704 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
15706 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15709 * config/i386/sse.md (ssedoublemode): Remove V4HI.
15710 (PMULHRSW): Likewise.
15711 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
15713 (ssse3_pmulhrswv4hi3): New expander.
15715 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
15717 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
15718 MMX. Add isa attribute.
15720 2019-02-16 Jakub Jelinek <jakub@redhat.com>
15722 PR rtl-optimization/66152
15723 * builtins.h (c_readstr): Declare.
15724 * builtins.c (c_readstr): Remove forward declaration. Add
15725 null_terminated_p argument, if false, read all bytes from the
15726 string instead of stopping after '\0'.
15727 * expr.c (string_cst_read_str): New function.
15728 (store_expr): Use string_cst_read_str instead of
15729 builtin_strncpy_read_str. Try to store by pieces the whole
15730 exp_len first, and only if that fails, split it up into
15731 store by pieces followed by clear_storage. Formatting fix.
15733 * config/i386/i386.md (*movqi_internal): Remove static from
15734 buf variable. Use output_asm_insn (buf, operands); return "";
15735 instead of return buf;.
15736 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
15737 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
15738 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
15740 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15742 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
15743 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
15744 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
15745 (CC1_SPEC): Likewise.
15746 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
15748 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15750 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
15751 the base address on 64-bit strict-alignment platforms.
15753 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
15755 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
15757 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15759 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
15761 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
15763 PR rtl-optimization/88308
15764 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
15765 on copied instruction.
15767 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
15769 * final.c (insn_current_reference_address): Replace test on JUMP_P
15770 with test on jump_to_label_p.
15771 * config/visium/visium-passes.def: New file.
15772 * config/visium/t-visium (PASSES_EXTRA): Define.
15773 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
15774 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
15775 (TRAMPOLINE_ALIGNMENT): Define.
15776 * config/visium/visium.c (visium_option_override): Do not register
15777 the machine-specific reorg pass here.
15778 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
15780 (output_branch): Adjust threshold for long branch instruction.
15781 * config/visium/visium.md (cpu): Move around.
15782 (length): Adjust for the GR6.
15784 2019-02-15 Richard Biener <rguenther@suse.de>
15785 Jakub Jelinek <jakub@redhat.com>
15787 PR tree-optimization/89278
15788 * tree-loop-distribution.c: Include tree-eh.h.
15789 (generate_memset_builtin, generate_memcpy_builtin): Call
15790 rewrite_to_non_trapping_overflow on builtin->size before passing it
15791 to force_gimple_operand_gsi.
15793 2019-02-15 Jakub Jelinek <jakub@redhat.com>
15796 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
15798 * opth-gen.awk: Likewise.
15800 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
15802 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
15803 Enable MMX, SSE and SSE2 by default.
15804 * config/i386/i386.c (ix86_option_override_internal): Do not
15805 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
15807 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15809 PR rtl-optimization/89354
15810 * combine.c (make_extraction): Punt if extraction_mode is narrower
15813 2019-02-14 Maya Rashish <coypu@sdf.org>
15815 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
15816 * config/netbsd-d.c: New file.
15817 * config/t-netbsd: Add netbsd-d.o
15819 2018-02-14 Steve Ellcey <sellcey@marvell.com>
15821 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
15822 affects_type_identity to true for aarch64_vector_pcs.
15823 (aarch64_comp_type_attributes): New function.
15824 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
15826 2019-02-14 Tamar Christina <tamar.christina@arm.com>
15829 * config/arm/iterators.md (ANY64): Add V4HF.
15831 2019-02-14 Martin Liska <mliska@suse.cz>
15833 PR rtl-optimization/89242
15834 * dce.c (delete_unmarked_insns): Call free_dominance_info we
15835 process a transformation.
15837 2019-02-14 Jakub Jelinek <jakub@redhat.com>
15839 PR tree-optimization/89314
15840 * fold-const.c (fold_binary_loc): Cast strlen argument to
15841 const char * before dereferencing it. Formatting fixes.
15843 PR middle-end/89284
15844 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
15846 2019-02-13 Ian Lance Taylor <iant@golang.org>
15848 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
15849 and set current index for other optimizations.
15851 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
15853 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
15854 nonimmediate_operand as operand 2 predicate.
15855 (vec_set<VF2_512_256:mode>_0): Ditto.
15856 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
15857 (*vec_concatv2si): Remove alternative 2.
15858 (*vec_concatv4si_0): Use vm constraint for alternative 0.
15859 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
15860 (vec_concatv2di): Split alternatives 4,5,6 to ...
15861 (*vec_concatv2di_0) ... new pattern.
15863 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
15866 * config/arm/arm.c (ldm_stm_operation_p) Set
15867 addr_reg_in_reglist correctly for first register.
15868 (load_multiple_sequence): Remove dead base check.
15869 (gen_ldm_seq): Correctly set write_back for Thumb-1.
15871 2019-02-13 Tamar Christina <tamar.christina@arm.com>
15874 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
15875 Expose as @aarch64_pred_mov.
15876 * config/aarch64/aarch64.c (aarch64_classify_address):
15877 Use expand_insn which legitimizes operands.
15879 2019-02-13 Martin Liska <mliska@suse.cz>
15881 * builtins.h (expand_builtin_with_bounds): Remove declaration.
15882 * calls.c (struct arg_data): Remove special_slot, pointer_arg
15883 and pointer_offset fields.
15884 (initialize_argument_information): Remove usage of dead
15886 * cgraph.h (struct cgraph_thunk_info): Remove
15887 add_pointer_bounds_args.
15888 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
15890 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
15892 * config/i386/i386.c (ix86_function_arg_advance): Remove
15894 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
15895 (def_builtin): Remove usage of dead fields.
15896 (ix86_add_new_builtins): Likewise.
15897 * ipa-fnsummary.c (compute_fn_summary): Likewise.
15898 * ipa-icf.c (sem_function::equals_wpa): Likewise.
15899 (sem_function::init): Likewise.
15900 (sem_variable::merge): Likewise.
15901 * ipa-visibility.c (function_and_variable_visibility): Likewise.
15902 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
15903 * lto-cgraph.c (lto_output_node): Likewise.
15904 (lto_output_varpool_node): Likewise.
15905 (input_node): Likewise.
15906 (input_varpool_node): Likewise.
15907 * lto-streamer-out.c (lto_output): Likewise.
15908 * tree-inline.c (expand_call_inline): Remove usage of
15910 * tree-inline.h (struct copy_body_data): Likewise.
15911 * varpool.c (varpool_node::dump): Likewise.
15913 2019-02-13 Jakub Jelinek <jakub@redhat.com>
15915 PR middle-end/89303
15916 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
15917 into pt->vars_contains_escaped_heap instead of setting
15918 pt->vars_contains_escaped_heap to it.
15920 PR middle-end/89281
15921 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
15922 INTVAL (size), compare it to GET_MODE_MASK instead of
15923 1 << GET_MODE_BITSIZE.
15926 * config/i386/predicates.md (x86_64_immediate_operand): Allow
15927 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
15930 2019-02-13 Martin Liska <mliska@suse.cz>
15933 * cfgrtl.c (remove_barriers_from_footer): New function.
15934 (try_redirect_by_replacing_jump): Use it.
15935 (cfg_layout_redirect_edge_and_branch): Likewise.
15937 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15939 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
15940 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
15941 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
15942 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
15943 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
15944 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
15946 * config/rs6000/rs6000.c (builtin_function_type)
15947 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
15948 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
15949 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
15950 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
15951 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
15953 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
15955 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
15956 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
15958 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
15961 * config/i386/i386.md (*movoi_internal_avx): Revert revision
15962 268678 and revision 268657.
15963 (*movti_internal): Likewise.
15965 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
15968 * config/s390/s390.c (s390_decompose_address): Update comment.
15969 (s390_check_qrst_address): Reject invalid address forms after
15972 2019-02-12 Martin Liska <mliska@suse.cz>
15975 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
15976 we need default values of funct_state for a function that
15979 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
15981 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
15982 the object to pick the size of stores on strict-alignment platforms.
15984 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
15985 (*movdi_insn_sp32): Likewise.
15986 (*movdi_insn_sp64): Likewise.
15988 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
15991 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
15992 types that needs constructiong.
15993 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
15995 2019-02-12 Richard Biener <rguenther@suse.de>
15997 PR tree-optimization/89253
15998 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
15999 duplicate the loop.
16001 2019-02-11 David Malcolm <dmalcolm@redhat.com>
16004 * input.c (selftest::test_line_offset_overflow): New selftest.
16005 (selftest::input_c_tests): Call it.
16007 2019-02-11 Martin Sebor <msebor@redhat.com>
16009 PR tree-optimization/88771
16010 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
16011 when -Wstringop-overflow is set.
16012 (builtin_memref::builtin_memref): Adjust excessive upper bound
16013 only when lower bound is not excessive.
16014 (maybe_diag_overlap): Detect and diagnose excessive bounds via
16015 -Wstringop-ovefflow.
16016 (maybe_diag_offset_bounds): Rename...
16017 (maybe_diag_access_bounds): ...to this.
16018 (check_bounds_or_overlap): Adjust for name change above.
16020 2019-02-11 Martin Sebor <msebor@redhat.com>
16023 * builtins.c (max_object_size): Move from here...
16024 * builtins.h (max_object_size): ...and here...
16025 * tree.c (max_object_size): ...to here...
16026 * tree.h (max_object_size): ...and here.
16028 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
16030 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
16031 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
16032 for correct semantics.
16034 2019-02-11 Alan Modra <amodra@gmail.com>
16036 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
16037 -mlongcall and -mpltseq.
16038 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
16039 (RS/6000 and PowerPC Options <-mpltseq>): Document.
16040 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
16041 * config/rs6000/sysv4.opt (mpltseq): New option.
16042 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
16043 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
16044 support is lacking. Don't allow -mpltseq with -mbss-plt.
16045 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
16046 -mpltseq given for ELFv1.
16047 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
16048 Only use UNSPEC_PLTSEQ for inline PLT calls.
16049 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
16050 use UNSPEC_PLTSEQ for inline PLT calls.
16051 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
16052 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
16053 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
16054 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16055 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16056 (pltseq_mtctr_<mode>): Likewise.
16058 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16060 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
16062 * configure: Regenerate.
16064 2019-02-11 Jakub Jelinek <jakub@redhat.com>
16067 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
16070 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16072 * function.c (assign_parm_setup_block): Use the stored
16073 size, not the passed size, when allocating stack-space,
16074 also for a parameter with alignment larger than
16075 MAX_SUPPORTED_STACK_ALIGNMENT.
16077 2019-02-11 Martin Liska <mliska@suse.cz>
16080 * ipa-cp.c (build_toporder_info): Remove usage of a param.
16081 * ipa-inline.c (inline_small_functions): Likewise.
16082 * ipa-pure-const.c (propagate_pure_const): Likewise.
16083 (propagate_nothrow): Likewise.
16084 * ipa-reference.c (propagate): Likewise.
16085 * ipa-utils.c (struct searchc_env): Remove unused field.
16086 (searchc): Always search across AVAIL_INTERPOSABLE.
16087 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
16088 the only called IPA pure const can properly not propagate
16089 across interposable boundary.
16090 * ipa-utils.h (ipa_reduced_postorder): Remove param.
16092 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
16094 * config/nds32/nds32.md (call_internal, call_value_internal,
16095 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
16097 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
16099 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
16102 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
16104 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
16107 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16109 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
16111 2019-02-10 Jakub Jelinek <jakub@redhat.com>
16113 PR tree-optimization/89268
16114 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
16115 if preds is non-NULL.
16117 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16120 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
16123 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16125 * config/nds32/nds32.md (trap): New pattern.
16127 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
16129 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
16132 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
16134 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
16137 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16139 * ipa-visibility.c (localize_node): Also do not localize
16140 LDPR_PREVAILING_DEF_IRONLY_EXP.
16142 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16145 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
16146 instead of type_with_linkage.
16148 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
16151 * params.def (uninlined-function-insns, uninlined-function-time,
16152 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
16153 bound so we don't get overflows.
16155 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
16157 * config/rs6000/rs6000-string.c (expand_compare_loop,
16158 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
16161 2019-02-09 Jakub Jelinek <jakub@redhat.com>
16163 PR middle-end/89246
16164 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16165 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
16166 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
16168 2019-02-09 Alan Modra <amodra@gmail.com>
16171 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
16172 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
16175 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
16177 PR middle-end/88560
16178 * lra-constraints.c (process_alt_operands): Don't increase reject
16179 for memory when offset memory is required.
16181 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
16183 * config/s390/vector.md: Implement vector copysign.
16185 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16187 * expr.c (expand_constructor): Correct indentations.
16189 2019-02-08 Richard Biener <rguenther@suse.de>
16191 PR tree-optimization/89247
16192 * tree-if-conv.c: Include tree-cfgcleanup.h.
16193 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
16194 (tree_if_conversion): Pass through predicate vector.
16195 (pass_if_conversion::execute): Do CFG cleanup and SSA update
16196 inline, see if any if-converted loops we refrece in
16197 LOOP_VECTORIZED calls vanished and fixup.
16198 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
16200 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
16202 * config/s390/constraints.md (jdd): New constraint.
16204 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
16207 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
16208 upper 16 vector registers without TARGET_AVX512VL.
16209 (*movti_internal): Likewise.
16211 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16213 PR rtl-optimization/89234
16214 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
16215 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
16216 (copy_reg_eh_region_note_backward): Likewise.
16218 2019-02-08 Richard Biener <rguenther@suse.de>
16220 PR middle-end/89223
16221 * tree-data-ref.c (initialize_matrix_A): Fail if constant
16222 doesn't fit in HWI.
16223 (analyze_subscript_affine_affine): Handle failure from
16224 initialize_matrix_A.
16226 2019-02-08 Jakub Jelinek <jakub@redhat.com>
16228 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
16231 2019-02-07 David Malcolm <dmalcolm@redhat.com>
16233 PR tree-optimization/86637
16234 PR tree-optimization/89235
16235 * tree-vect-loop.c (optimize_mask_stores): Add an
16236 auto_purge_vect_location sentinel to ensure that vect_location is
16238 * tree-vectorizer.c
16239 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
16240 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
16241 to ensure that vect_location is purged on exit.
16242 (pass_slp_vectorize::execute): Likewise, replacing the manual
16244 * tree-vectorizer.h (class auto_purge_vect_location): New class.
16246 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16248 * config/aarch64/iterators.md (max_opp): New code_attr.
16249 (USMAX): New code iterator.
16250 * config/aarch64/predicates.md (aarch64_smin): New predicate.
16251 (aarch64_smax): Likewise.
16252 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
16253 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
16256 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
16259 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
16260 for TARGET_AVX512VL.
16261 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
16263 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
16265 * config/s390/s390-builtin-types.def: Add new types.
16266 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
16267 (s390_vec_xlw4): Make the memory operand into a const pointer.
16268 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
16270 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
16271 a new vector type with the alignment of the scalar memory operand.
16273 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
16274 Jakub Jelinek <jakub@redhat.com>
16277 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
16278 arm_count_ldrdstrd_insns): New declarations.
16279 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
16281 (valid_operands_ldrd_strd): New function.
16282 (arm_count_ldrdstrd_insns): New function.
16283 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
16284 sets instead of single DImode set and define new insns to match this.
16286 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16288 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
16289 Make it a C initializer.
16291 2019-02-07 Tamar Christina <tamar.christina@arm.com>
16294 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
16296 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16298 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
16299 Use neon_dot<q> for type.
16300 (neon_<sup>dot_lane<vsi2qi>): Likewise.
16302 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16304 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
16305 Use neon_dot<q> for type.
16306 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
16307 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
16309 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
16311 PR rtl-optimization/89225
16312 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
16315 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
16317 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
16318 after restoring registers saved to allocate the frame on Windows.
16320 2019-02-06 Richard Biener <rguenther@suse.de>
16322 PR tree-optimization/89182
16323 * graphite.h (cached_scalar_evolution_in_region): Declare.
16324 * graphite.c (struct seir_cache_key): New.
16325 (struct sese_scev_hash): Likewise.
16326 (seir_cache): New global.
16327 (cached_scalar_evolution_in_region): New function.
16328 (graphite_transform_loops): Allocate and release seir_cache.
16329 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
16330 cached_scalar_evolution_in_region.
16331 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16333 (scop_detection::graphite_can_represent_expr: Use
16334 cached_scalar_evolution_in_region.
16335 (scop_detection::stmt_simple_for_scop_p): Likewise.
16336 (find_params_in_bb): Likewise.
16337 (gather_bbs::before_dom_children): Likewise.
16338 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
16339 (add_loop_constraints): Likewise.
16341 2019-02-06 Jakub Jelinek <jakub@redhat.com>
16343 PR middle-end/89210
16344 * fold-const-call.c (fold_const_vec_convert): Pass true as last
16345 operand to new_unary_operation only if both element types are integral
16346 and it isn't a widening conversion. Return NULL_TREE if
16347 new_unary_operation failed.
16349 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
16352 * config/s390/s390.md: Remove load and test FP splitter.
16354 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16357 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
16358 expand_compare_loop, expand_block_compare_gpr,
16359 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
16360 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
16361 #include "profile-count.h" and "predict.h" for types and functions
16362 needed to work with REG_BR_PROB notes.
16364 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
16367 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
16368 for the long branch case.
16370 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16373 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
16374 can throw, non-call exceptions are enabled and we can't delete
16375 dead exceptions or alter cfg. Set must_clean if
16376 delete_insn_and_edges returns true, don't set it blindly for calls.
16377 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
16379 PR rtl-optimization/89195
16380 * combine.c (make_extraction): For MEMs, don't extract bytes outside
16381 of the original MEM.
16383 2019-02-05 Martin Liska <mliska@suse.cz>
16385 PR gcov-profile/89000
16386 * gcov.c (function_summary): Remove argument.
16387 (file_summary): New function.
16388 (print_usage): Replace tabs with spaces.
16389 (generate_results): Use new function file_summary.
16391 2019-02-05 Jakub Jelinek <jakub@redhat.com>
16394 * optabs.c (prepare_cmp_insn): Pass x and y to
16395 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
16397 2019-02-05 Richard Biener <rguenther@suse.de>
16399 PR middle-end/89150
16400 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
16401 (struct bitmap_element): Drop chain_prev so we properly recurse on
16402 the prev member, supporting tree views.
16403 (struct bitmap_head): GTY skip the obstack member.
16405 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
16408 * doc/extend.texi (Vector Extensions): Add an example of using vector
16409 types together with x86 intrinsics.
16411 2019-02-04 Alan Modra <amodra@gmail.com>
16413 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
16414 str[] size to 160, and comment.
16416 2019-02-04 Alan Modra <amodra@gmail.com>
16418 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
16419 (rs6000_pltseq_template): Guard output of TLS markers with
16420 TARGET_TLS_MARKERS.
16421 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
16422 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
16423 to use inline PLT sequences.
16424 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
16425 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
16426 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
16428 2019-02-04 Martin Liska <mliska@suse.cz>
16431 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
16432 out when ipa_fn_summaries does not contain entry for callee.
16434 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
16436 * config/sparc/sparc.h: Remove superfluous blank lines.
16437 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
16438 (got_register_rtx): ...this.
16439 (sparc_got): Adjust to above renaming.
16440 (sparc_tls_got): Likewise.
16441 (sparc_delegitimize_address): Likewise.
16442 (sparc_output_mi_thunk): Likewise.
16443 (sparc_init_pic_reg): Likewise.
16444 (save_local_or_in_reg_p): Fix test on the GOT register.
16445 (USE_HIDDEN_LINKONCE): Move around.
16446 (get_pc_thunk_name): Likewise.
16447 (gen_load_pcrel_sym): Likewise.
16448 (load_got_register): Likewise.
16450 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
16452 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
16453 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
16455 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16457 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
16458 into consideration.
16460 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
16462 * config.gcc (with_nds32_lib, glibc):
16463 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
16464 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
16465 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
16467 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
16470 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
16471 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
16472 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
16473 (*rcpsf2_sse): Ditto.
16474 (*rsqrtsf2_sse): Ditto.
16475 (sse4_1_round<mode<2): Ditto.
16477 2019-02-03 Richard Biener <rguenther@suse.de>
16480 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
16483 2019-02-02 Jakub Jelinek <jakub@redhat.com>
16485 PR middle-end/87887
16486 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16487 Punt with warning on aggregate return or argument types. Ignore
16488 type/mode checking for uniform arguments.
16490 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
16492 * combine.c (try_combine): Do not print "Can't combine" messages unless
16493 printing failed combination attempts.
16495 2019-02-01 Martin Jambor <mjambor@suse.cz>
16498 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
16499 segment and global segment variables before making them static.
16501 2019-02-01 Martin Jambor <mjambor@suse.cz>
16503 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
16504 missed optimization dump with dump_enabled_p.
16506 2019-02-01 Richard Biener <rguenther@suse.de>
16508 PR middle-end/88597
16509 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
16510 the instantiate cache.
16511 (instantiate_scev_binary): Elide second operand procesing
16512 if equal to the first.
16513 * tree-chrec.c (chrec_contains_symbols): Add visited set.
16514 (chrec_contains_undetermined): Likewise.
16515 (tree_contains_chrecs): Likewise.
16517 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
16519 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
16521 2019-02-01 Jakub Jelinek <jakub@redhat.com>
16523 PR tree-optimization/89143
16524 * wide-int-range.h (wide_int_range_absu): Declare.
16525 * wide-int-range.cc (wide_int_range_absu): New function.
16526 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
16528 PR tree-optimization/88107
16529 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
16530 instead of assertion that eh_region_outermost is non-NULL, if it
16531 is NULL, set *ALL to true and return NULL.
16532 (move_sese_region_to_fn): Adjust caller, if all is set, call
16533 duplicate_eh_regions with NULL region.
16535 2019-02-01 Richard Biener <rguenth@suse.de>
16537 PR rtl-optimization/88593
16538 * mode-switching.c (optimize_mode_switching): Free dominators before
16539 calling cleanup_cfg.
16541 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
16543 PR tree-optimization/88932
16544 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
16546 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16548 PR middle-end/89137
16549 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
16550 bogus clang warning.
16552 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
16555 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
16556 alternative to avoid partial SSE register stall for TARGET_AVX.
16557 (truncdfsf2): Ditto.
16558 (sse4_1_round<mode>2): Ditto.
16560 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
16562 PR tree-optimization/89008
16563 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
16564 process anything of the form X * 0.
16566 2019-01-31 Richard Biener <rguenther@suse.de>
16568 PR tree-optimization/89135
16569 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
16570 with abnormal preds.
16572 2019-01-31 Jakub Jelinek <jakub@redhat.com>
16575 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
16576 always_inline callees into no_sanitize_address callers.
16578 2019-01-31 Richard Biener <rguenther@suse.de>
16580 PR rtl-optimization/89115
16581 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
16583 2019-01-30 Martin Sebor <msebor@redhat.com>
16586 * doc/extend.texi (cast to a union): Correct and expand.
16588 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
16590 PR rtl-optimization/87246
16591 * lra-constraints.c (simplify_operand_subreg): Reload memory
16592 in subreg if the address became invalid.
16594 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
16597 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
16598 Disable for little-endian.
16600 2019-01-30 Richard Biener <rguenther@suse.de>
16602 PR rtl-optimization/89115
16603 * opts.c (default_options_optimization): Reduce
16604 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
16605 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
16608 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
16610 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
16611 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
16612 type of vector element when vec_extract is implemented by direct
16615 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
16617 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
16619 2019-01-30 Richard Biener <rguenther@suse.de>
16621 PR tree-optimization/89111
16622 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
16623 canonicalization to appropriately sized access types.
16625 2019-01-30 Jakub Jelinek <jakub@redhat.com>
16628 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
16629 for arguments to functions that are TU-local and shouldn't be
16630 referenced by assembly.
16632 2019-01-30 Ulrich Drepper <drepper@redhat.com>
16634 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
16637 2019-01-29 Martin Sebor <msebor@redhat.com>
16640 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
16642 2019-01-29 Jakub Jelinek <jakub@redhat.com>
16646 * omp-simd-clone.c (simd_clone_clauses_extract)
16647 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
16648 OMP_CLAUSE_ALIGNED_ALIGNMENT.
16650 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
16652 * config.gcc: Force .init_array for ARC.
16654 2019-01-29 Richard Biener <rguenther@suse.de>
16657 * dwarf2out.c (collect_skeleton_dies): New helper.
16658 (copy_decls_for_unworthy_types): Call it.
16659 (build_abbrev_table): Assert we do not try to replace
16660 DW_AT_signature refs with local refs.
16662 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16664 PR middle-end/89002
16665 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
16666 for lastprivate/linear IV, push gimplify context around gimplify_assign
16667 and, if it needed any temporaries, pop it into a gimple bind around the
16670 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
16672 * common.opt (-Wattribute-alias): Remove "no-" from name.
16673 Make -Wattribute-alias command line option and
16674 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
16676 2019-01-28 Jakub Jelinek <jakub@redhat.com>
16679 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
16680 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
16682 (bmi2): Add missing @opindex.
16683 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
16684 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
16685 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
16686 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
16687 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
16688 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
16689 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
16690 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
16691 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
16692 xsavec, xsaveopt and xsaves options.
16694 2019-01-28 Richard Biener <rguenther@suse.de>
16697 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
16700 2019-01-28 Richard Biener <rguenther@suse.de>
16702 PR tree-optimization/88739
16703 * tree-cfg.c (verify_types_in_gimple_reference): Verify
16704 BIT_FIELD_REFs only are applied to mode-precision operands
16705 when they are integral.
16706 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
16707 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
16708 BIT_FIELD_REFs of non-mode-precision integral operands.
16710 2019-01-27 Jakub Jelinek <jakub@redhat.com>
16713 * config/i386/sse.md
16714 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
16715 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
16716 first constants in pairs are multiples of 2. Formatting fixes.
16717 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
16718 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
16719 first constants in each quadruple are multiples of 4. Formatting fixes.
16721 2019-01-26 Martin Jambor <mjambor@suse.cz>
16724 * tree-inline.c: Include tree-cfgcleanup.h.
16725 (delete_unreachable_blocks_update_callgraph): Move...
16726 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
16727 ...here, make externally visible, make second argument bool, adjust
16729 * tree-cfgcleanup.c: Include cgraph.h.
16730 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
16732 * ipa-prop.c: Include tree-cfgcleanup.h.
16733 (ipcp_transform_function): Call
16734 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
16736 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
16738 PR rtl-optimization/88846
16739 * ira.c (process_set_for_memref_referenced_p): New.
16740 (memref_referenced_p): Add new param. Use
16741 process_set_for_memref_referenced_p. Add new switch cases.
16742 (memref_used_between_p): Pass new arg to memref_referenced_p.
16744 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
16747 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
16748 argument ABI_BREAK. Set to true if the calculated alignment has
16749 changed in gcc-9. Check bit-fields for their base type alignment.
16750 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
16751 (aarch64_function_arg_boundary): Likewise.
16752 (aarch64_gimplify_va_arg_expr): Likewise.
16754 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16756 PR middle-end/89037
16757 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
16758 instead of accessing TREE_INT_CST_ELT directly.
16760 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
16762 * doc/sourcebuild.texi (Environment attributes): Add fenv and
16763 fenv_exceptions description.
16765 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
16767 PR rtl-optimization/87763
16768 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
16769 Allow SUBREG when matching CC_NZmode compare.
16771 2019-01-25 Richard Biener <rguenther@suse.de>
16773 PR tree-optimization/89049
16774 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16775 Look at the pattern stmt to determine if the stmt is vectorized.
16777 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
16779 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
16780 (pred_mov<mode>): Handle all-register forms using both a new
16781 alternative and a split.
16783 2019-01-25 Richard Biener <rguenther@suse.de>
16785 PR tree-optimization/86865
16786 * graphite-scop-detection.c (scop_detection::can_represent_loop):
16787 Reject non-do-while loops.
16789 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
16791 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
16792 * config/rs6000/constraints.md (Q constraint): Use REG_P.
16793 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
16794 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16795 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
16796 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16797 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
16798 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
16799 vlogical_operand, gpc_reg_operand, int_reg_operand,
16800 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
16801 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
16802 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
16803 (save_world_operation, restore_world_operation, lmw_operation,
16804 stmw_operation): Use MEM_P and REG_P.
16805 (tie_operand): Use MEM_P.
16806 (vrsave_operation, crsave_operation): Use REG_P.
16807 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
16808 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
16809 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
16810 (call_operand): Use HARD_REGISTER_P.
16811 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
16813 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
16814 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
16815 quad_aligned_load_p, replace_swapped_aligned_store,
16816 recombine_lvx_pattern, replace_swapped_aligned_load,
16817 recombine_stvx_pattern): Use MEM_P.
16818 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
16819 Use MEM_P and SYMBOL_REF_P.
16820 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
16821 (insn_is_swappable_p): Use REG_P and MEM_P.
16822 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
16823 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
16825 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
16826 Use CONST_DOUBLE_P.
16827 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
16829 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
16830 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
16831 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
16832 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
16834 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16835 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
16836 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
16837 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
16838 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
16839 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
16840 rs6000_split_logical_di): Use CONST_INT_P.
16841 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
16842 REG_P and SYMBOL_REF_P.
16843 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
16844 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
16845 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
16846 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
16847 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
16848 (small_data_operand, print_operand_address): Use CONST_INT_P and
16850 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
16851 (rs6000_init_hard_regno_mode_ok, direct_move_p):
16852 Use HARD_REGISTER_NUM_P.
16853 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
16854 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
16855 SUBREG_P and SYMBOL_REF_P.
16856 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
16857 and HARD_REGISTER_NUM_P.
16858 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
16860 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
16861 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
16863 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
16864 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
16865 find_addr_reg): Use REG_P.
16866 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
16867 (rs6000_emit_le_vsx_move): Use SUBREG_P.
16868 (offsettable_ok_by_alignment, constant_pool_expr_p,
16869 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
16870 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
16871 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
16872 rs6000_assemble_integer, create_TOC_reference,
16873 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
16874 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
16875 (rs6000_split_vec_extract_var): Use reg_or_subregno.
16876 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
16877 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
16878 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16879 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16880 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
16881 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
16882 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
16883 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
16884 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
16885 and cbranch<mode>4): Use CONST_INT_P.
16886 (multiple define_splits): Use REG_P and SUBREG_P.
16887 (define_expands call, call_value): Use MEM_P.
16888 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
16889 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
16890 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
16891 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
16892 and HARD_REGISTER_NUM_P.
16893 (multiple define_splits): Use HARD_REGISTER_NUM_P.
16895 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
16897 PR rtl-optimization/88948
16898 * rtl.h (prepare_copy_insn): New prototype.
16899 * gcse.c (prepare_copy_insn): New function, split out from
16900 process_insert_insn.
16901 (process_insert_insn): Use prepare_copy_insn.
16902 * store-motion.c (replace_store_insn): Use prepare_copy_insn
16903 instead of gen_move_insn.
16905 2019-01-24 Jakub Jelinek <jakub@redhat.com>
16908 * config/i386/i386.c (ix86_pic_register_p): Return true for
16909 UNSPEC_SET_GOT too.
16911 PR tree-optimization/88964
16912 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
16913 punt if HONOR_SNANS (chrec).
16915 PR middle-end/89015
16916 * tree-nested.c (convert_nonlocal_reference_stmt,
16917 convert_local_reference_stmt, convert_tramp_reference_stmt,
16918 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
16919 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
16920 or GIMPLE_OMP_TASK.
16922 PR tree-optimization/89027
16923 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
16924 for "omp simd array" variables.
16926 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
16929 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
16930 force the alignment of m_val.
16932 2019-01-24 Richard Biener <rguenther@suse.de>
16935 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
16936 When in "legacy" debug mode make sure to reset self-origins.
16938 2019-01-24 Martin Liska <mliska@suse.cz>
16940 PR gcov-profile/88994
16941 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
16942 result will be always smaller or equal to the original.
16943 * gcov.c (mangle_name): Fix else branch where we should
16944 also copy to PTR and shift the pointer.
16946 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
16948 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
16949 * vr-values.c (find_case_label_ranges): Fix a comment typo.
16951 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
16953 * common/config/i386/i386-common.c
16954 (OPTION_MASK_ISA_ENQCMD_SET,
16955 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
16956 (ix86_handle_option): Handle -menqcmd.
16957 * config.gcc (enqcmdintrin.h): New header file.
16958 * config/i386/cpuid.h (bit_ENQCMD): New bit.
16959 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16961 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
16963 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
16964 __builtin_ia32_enqcmds): New builtins.
16965 * config/i386/i386-c.c (__ENQCMD__): New macro.
16966 * config/i386/i386-option.c (ix86_target_string): Add
16968 (ix86_valid_target_attribute_inner_p): Likewise.
16969 * config/i386/i386-expand.c
16970 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
16971 IX86_BUILTIN_ENQCMDS.
16972 * config/i386/i386.h (TARGET_ENQCMD): New.
16973 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
16974 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
16975 (movdir64b_<mode>): Parameterize to enable share expansion code
16976 with ENQCMD in function ix86_expand_builtin.
16977 * config/i386/i386.opt: Add -menqcmd.
16978 * config/i386/immintrin.h: Include enqcmdintrin.h.
16979 * config/i386/enqcmdintrin.h: New intrinsic file.
16980 * doc/invoke.texi: Add -menqcmd.
16982 2019-01-23 Bin Cheng <bin.cheng@arm.com>
16983 Steve Ellcey <sellcey@marvell.com>
16986 * recog.c (address_operand): Return false on wrong mode for address.
16987 (constrain_operands): Check for mode with 'p' constraint.
16989 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
16992 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
16993 Disparage MMX alternative.
16994 (sse2_cvtpd2pi): Ditto.
16995 (sse2_cvttpd2pi): Ditto.
16997 2019-01-23 David Malcolm <dmalcolm@redhat.com>
17000 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
17001 use-after-free of the result of
17002 aarch64_get_extension_string_for_isa_flags.
17004 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17007 * doc/extend.texi: Document break and continue behavior in
17008 statement expressions.
17010 2019-01-23 Richard Biener <rguenther@suse.de>
17012 PR tree-optimization/89008
17013 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
17014 not leave another stray operand.
17016 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17018 * BASE-VER: Bump to 9.0.1.
17020 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
17022 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
17023 thunk that returns by reference, use the type of the return object
17024 of the thunk instead of that of the alias to build the dereference.
17026 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
17028 * config/arc/atomic.md: Add operand to DMB instruction.
17030 2019-01-23 Jakub Jelinek <jakub@redhat.com>
17032 PR tree-optimization/88964
17033 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
17034 build_zero_cst instead of build_int_cst. Return false for loop
17035 invariants which honor signed zeros.
17037 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
17039 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
17041 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17044 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
17045 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
17046 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
17048 PR middle-end/88968
17049 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
17050 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
17053 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
17054 Disable for little endian.
17056 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17059 * config/arm/arm.c (arm_needs_double_word_align): Check
17060 DECL_BIT_FIELD_TYPE.
17062 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
17063 H.J. Lu <hongjiu.lu@intel.com>
17066 * config/i386/i386-builtin.def: Add mask2 to all builtin
17067 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
17069 * config/i386/i386.c (BDESC): Add mask2 to the definition.
17070 (BDESC_FIRST): Likewise.
17071 (define_builtin): Add an argument for mask2. Updated to handle
17072 both ix86_isa_flags and ix86_isa_flags2.
17073 (define_builtin_const): Likewise.
17074 (define_builtin_pure): Likewise.
17075 (define_builtin2): Deleted.
17076 (define_builtin_const2): Likewise.
17077 (builtin_description): Add a member, mask2.
17078 (bdesc_*): Add mask2 to builtin initializations.
17079 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
17080 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
17082 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
17084 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
17087 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
17090 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
17093 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
17094 alignment is dominated by a bitfield with 64-bit aligned base type.
17095 (arm_function_arg): Emit a warning if the alignment has changed since
17096 earlier GCC releases.
17097 (arm_function_arg_boundary): Likewise.
17098 (arm_setup_incoming_varargs): Likewise.
17100 2019-01-22 Richard Biener <rguenther@suse.de>
17102 PR tree-optimization/88862
17103 * graphite-scop-detection.c
17104 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
17106 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
17108 * doc/extend.tex (AMD GCN Function Attributes): New section.
17109 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
17110 * doc/invoke.texi (AMD GCN Options): New section.
17111 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
17113 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
17115 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
17116 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
17118 2019-01-22 Jakub Jelinek <jakub@redhat.com>
17120 PR tree-optimization/88044
17121 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
17122 is false in the first iteration, but !every_iteration, return false
17123 instead of true with niter->niter zero.
17125 PR rtl-optimization/88904
17126 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
17127 any nonequal registers before processing BB_END (b).
17130 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
17132 (expand_binop_directly, expand_doubleword_clz,
17133 expand_doubleword_popcount, expand_ctz, expand_ffs,
17134 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
17136 PR rtl-optimization/49429
17138 PR rtl-optimization/86334
17140 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
17141 addressable from here...
17142 (emit_block_op_via_libcall): ... to here.
17144 2019-01-22 Richard Biener <rguenther@suse.de>
17146 * tree-vect-loop.c (vect_analyze_loop_operations): Use
17147 auto_vec for cost vector to fix memleak.
17148 (vectorize_fold_left_reduction): Properly gather SLP defs.
17149 (vectorizable_comparison): Do not swap operands to properly
17152 2019-01-22 Alan Modra <amodra@gmail.com>
17155 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
17156 stays a reg. Allow a const_int.
17157 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
17158 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
17159 (IS_NOMARK_TLSGETADDR): Define.
17160 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
17161 (rs6000_output_tlsargs): New function.
17162 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
17163 __tls_get_addr call takes an arg.
17164 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
17165 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
17167 (call_value_nonlocal_sysv): ..or here, delete split.
17168 (tls_gdld_nomark): Delete.
17169 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
17170 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
17171 (call_value_nonlocal_sysv): Likewise.
17172 (call_value_nonlocal_sysv_secure): Likewise.
17173 (call_value_nonlocal_aix): Likewise.
17174 (call_value_indirect_aix): Likewise.
17175 (call_value_indirect_elfv2): Likewise.
17176 (call_value_local32, call_value_local64): Disable for no-mark tls.
17177 (call_value_local_aix): Likewise.
17179 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
17182 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
17183 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
17185 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
17187 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
17188 string contents as hash_map keys.
17190 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17193 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
17194 for rvalue context. Handle rvalues correctly. Use min_align_of_type
17195 instead of TYPE_ALIGN.
17196 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
17197 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
17198 pointer from TYPE_STUB_DECL.
17200 2019-01-21 Richard Biener <rguenther@suse.de>
17202 PR tree-optimization/88934
17203 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
17204 at the possibly non-constant operand.
17205 (vect_get_constant_vectors): Adjust.
17207 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
17210 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
17211 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
17212 instead of _X86INTRIN_H_INCLUDED.
17213 * onfig/i386/clwbintrin.h: Likewise.
17214 * config/i386/pkuintrin.h: Likewise.
17215 * config/i386/prfchwintrin.h: Likewise.
17216 * config/i386/rdseedintrin.h: Likewise.
17217 * config/i386/wbnoinvdintrin.h: Likewise.
17218 * config/i386/xsavecintrin.h: Likewise.
17219 * config/i386/xsavesintrin.h: Likewise.
17220 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
17221 * config/i386/xsaveintrin.h: Likewise.
17222 * config/i386/xsaveoptintrin.h: Likewise.
17223 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
17224 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
17225 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
17226 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
17227 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
17228 * config/i386/immintrin.h: Here.
17230 2019-01-20 Martin Jambor <mjambor@suse.cz>
17233 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
17234 with aa_walk_budget.
17235 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
17236 aa_walk_budget_p parameter.
17237 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
17238 walk. Updated all callers.
17239 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
17240 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
17242 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
17243 parameter info. Extract info from fbi. Pass fbi to recursive calls
17244 and to unmodified_parm.
17245 (phi_result_unknown_predicate): New parameter fbi, removed parameter
17246 info, updated call to will_be_nonconstant_expr_predicate.
17247 (param_change_prob): New parameter fbi, limit AA walking.
17248 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
17249 calls to various above functions.
17250 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
17251 parameter. Use it to limit AA walking.
17252 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
17253 fbi, limit AA walk.
17254 (detect_type_change): New parameter fbi, pass it on to
17255 detect_type_change_from_memory_writes.
17256 (detect_type_change_ssa): Likewise.
17257 (aa_overwalked): Removed.
17258 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
17259 accordingly, adjust to the neew AA limiting scheme.
17260 (parm_ref_data_preserved_p): Likewise.
17261 (ipa_compute_jump_functions_for_edge): Adjust call to
17263 (ipa_analyze_call_uses): Likewise.
17264 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
17265 (ipa_analyze_node): Initialize aa_walk_budget.
17266 (ipcp_transform_function): Likewise.
17267 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
17268 to get_dynamic_type.
17270 2019-01-19 Jakub Jelinek <jakub@redhat.com>
17272 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
17273 outside of #if CHECKING_P code.
17275 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
17277 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
17278 New function, split out from...
17279 (loop_versioning::analyze_stride): ...here.
17280 (loop_versioning::find_per_loop_multiplication): Use gassign.
17281 (loop_versioning::analyze_term_using_scevs): Return a success code.
17282 (loop_versioning::analyze_arbitrary_term): New function.
17283 (loop_versioning::analyze_address_fragment): Use
17284 analyze_arbitrary_term if all else fails.
17286 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
17289 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
17292 2019-01-18 Richard Biener <rguenther@suse.de>
17294 PR tree-optimization/88903
17295 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
17296 scalar stmts a SLP shift amount is composed of when detecting
17299 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
17302 * config/arm/arm-cpus.in (mp): New feature.
17303 (sec): New feature.
17304 (fgroup ARMv7ve): Add mp and sec features.
17305 (arch armv7-a): Add options to allow mp and sec extensions.
17306 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
17307 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
17308 extenstions to the base architecture.
17309 (cpu cortex-a8): Add sec extension to the base architecture.
17310 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
17311 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
17312 variants down to the base v7-a varaint.
17313 * config/arm/t-multilib (v7_a_arch_variants): New variable.
17314 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
17315 of permitted extensions for -march=armv7-a and for
17316 -mcpu=generic-armv7-a.
17318 2019-01-18 Martin Liska <mliska@suse.cz>
17320 * params.def: Fix comment.
17321 * tree-profile.c (gimple_init_gcov_profiler): Bump function
17323 (gimple_gen_ic_func_profiler): Likewise.
17325 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17327 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
17328 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
17329 and put in error checks for stack protector guard options.
17330 (aarch64_stack_protect_guard): New.
17331 (TARGET_STACK_PROTECT_GUARD): Define.
17332 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
17333 (reg_stack_protect_address<mode>): New.
17334 (stack_protect_set): Adjust for SSP_GLOBAL.
17335 (stack_protect_test): Likewise.
17336 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
17337 (-mstack-protector-guard): Likewise.
17338 (-mstack-protector-guard-offset): Likewise.
17340 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17342 PR tree-optimization/86214
17343 * tree-inline.h (struct copy_body_data): Add
17344 add_clobbers_to_eh_landing_pads member.
17345 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
17346 (copy_edges_for_bb): Call it if EH edge destination is <
17347 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
17348 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
17349 if flag_stack_reuse != SR_NONE and clear it afterwards.
17351 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
17354 * doc/install.texi (with-multilib-list): Document for aarch64.
17356 2019-01-18 Jakub Jelinek <jakub@redhat.com>
17359 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
17360 (("..."))) with ("...").
17362 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17364 * doc/extend.texi (Built-in Functions for Memory Model Aware
17365 Atomic Operations): Document atomic fetch and nand.
17367 2019-01-18 Martin Liska <mliska@suse.cz>
17368 Richard Biener <rguenther@suse.de>
17370 PR middle-end/88587
17371 * cgraph.h (create_version_clone_with_body): Add new argument
17373 * cgraphclones.c (cgraph_node::create_version_clone): Add
17374 DECL_ATTRIBUTES to a newly created decl. And call
17375 valid_attribute_p so that proper cl_target_optimization_node
17376 is set for the newly created declaration.
17377 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
17379 (expand_target_clones): Do not call valid_attribute_p, it must
17381 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
17384 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17387 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
17388 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
17389 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
17391 2019-01-17 Martin Sebor <msebor@redhat.com>
17393 PR middle-end/88273
17394 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
17395 Handle anti-ranges the same as no range at all.
17397 2018-01-17 Steve Ellcey <sellcey@cavium.com>
17399 * config/aarch64/aarch64.c (cgraph.h): New include.
17400 (intl.h): New include.
17401 (supported_simd_type): New function.
17402 (currently_supported_simd_type): Ditto.
17403 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
17404 (aarch64_simd_clone_adjust): Ditto.
17405 (aarch64_simd_clone_usable): Ditto.
17406 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
17407 (TARGET_SIMD_CLONE_ADJUST): Ditto.
17408 (TARGET_SIMD_CLONE_USABLE): Ditto.
17409 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
17410 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
17413 2019-01-17 Martin Sebor <msebor@redhat.com>
17415 PR tree-optimization/88800
17416 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
17417 NO_WARNING bit here. Avoid folding out-of-bounds calls.
17418 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
17419 redundant argument. Add new argument and issue diagnostics under
17420 its control. Detect out-of-bounds access even with warnings
17422 (check_bounds_or_overlap): Change return type. Add argument.
17423 (wrestrict_dom_walker::check_call): Adjust.
17424 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
17425 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
17426 check_bounds_or_overlap's return value.
17427 (handle_builtin_stxncpy): Same.
17428 (handle_builtin_strcat): Same.
17430 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17431 Kwok Cheung Yeung <kcy@codesourcery.com>
17432 Julian Brown <julian@codesourcery.com>
17433 Tom de Vries <tom@codesourcery.com>
17435 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
17437 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17439 * doc/sourcebuild.texi: Document dg-require-effective-target
17440 llvm_binutils and offload_gcn.
17442 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17443 Kwok Cheung Yeung <kcy@codesourcery.com>
17444 Julian Brown <julian@codesourcery.com>
17445 Tom de Vries <tom@codesourcery.com>
17447 * doc/sourcebuild.texi: Document dg-required-effective-target
17450 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17451 Kwok Cheung Yeung <kcy@codesourcery.com>
17452 Julian Brown <julian@codesourcery.com>
17453 Tom de Vries <tom@codesourcery.com>
17454 Jan Hubicka <hubicka@ucw.cz>
17455 Martin Jambor <mjambor@suse.cz>
17457 * config.gcc: Add amdgcn*-*-amdhsa configuration.
17458 * configure.ac: Check for dlopen.
17459 * configure: Regenerate.
17461 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17462 Kwok Cheung Yeung <kcy@codesourcery.com>
17463 Julian Brown <julian@codesourcery.com>
17464 Tom de Vries <tom@codesourcery.com>
17465 Jan Hubicka <hubicka@ucw.cz>
17466 Martin Jambor <mjambor@suse.cz>
17468 * common/config/gcn/gcn-common.c: New file.
17469 * config/gcn/driver-gcn.c: New file.
17470 * config/gcn/gcn-builtins.def: New file.
17471 * config/gcn/gcn-hsa.h: New file.
17472 * config/gcn/gcn-modes.def: New file.
17473 * config/gcn/gcn-opts.h: New file.
17474 * config/gcn/gcn-passes.def: New file.
17475 * config/gcn/gcn-protos.h: New file.
17476 * config/gcn/gcn-run.c: New file.
17477 * config/gcn/gcn-tree.c: New file.
17478 * config/gcn/gcn.c: New file.
17479 * config/gcn/gcn.h: New file.
17480 * config/gcn/gcn.opt: New file.
17481 * config/gcn/t-gcn-hsa: New file.
17483 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
17484 Kwok Cheung Yeung <kcy@codesourcery.com>
17485 Julian Brown <julian@codesourcery.com>
17486 Tom de Vries <tom@codesourcery.com>
17487 Jan Hubicka <hubicka@ucw.cz>
17488 Martin Jambor <mjambor@suse.cz>
17490 * config/gcn/constraints.md: New file.
17491 * config/gcn/gcn-valu.md: New file.
17492 * config/gcn/gcn.md: New file.
17493 * config/gcn/predicates.md: New file.
17495 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
17497 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
17498 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
17499 (stmt_uses_0_or_null_in_undefined_way): Likewise.
17500 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
17502 2019-01-17 Tamar Christina <tamar.christina@arm.com>
17505 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
17506 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
17507 it and document registers.
17509 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17511 * config/aarch64/aarch64.c (ares_tunings): Define.
17512 * config/aarch64/aarch64-cores.def (ares): Use the above.
17514 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17518 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
17520 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
17521 (_mm512_fixupimm_round_pd): Update parameters and builtin.
17522 (_mm512_maskz_fixupimm_round_pd): Ditto.
17523 (_mm512_fixupimm_round_ps): Ditto.
17524 (_mm512_maskz_fixupimm_round_ps): Ditto.
17525 (_mm_fixupimm_round_sd): Ditto.
17526 (_mm_maskz_fixupimm_round_sd): Ditto.
17527 (_mm_fixupimm_round_ss): Ditto.
17528 (_mm_maskz_fixupimm_round_ss): Ditto.
17529 (_mm512_fixupimm_pd): Ditto.
17530 (_mm512_maskz_fixupimm_pd): Ditto.
17531 (_mm512_fixupimm_ps): Ditto.
17532 (_mm512_maskz_fixupimm_ps): Ditto.
17533 (_mm_fixupimm_sd): Ditto.
17534 (_mm_maskz_fixupimm_sd): Ditto.
17535 (_mm_fixupimm_ss): Ditto.
17536 (_mm_maskz_fixupimm_ss): Ditto.
17537 (_mm512_mask_fixupimm_round_pd): Update builtin.
17538 (_mm512_mask_fixupimm_round_ps): Ditto.
17539 (_mm_mask_fixupimm_round_sd): Ditto.
17540 (_mm_mask_fixupimm_round_ss): Ditto.
17541 (_mm512_mask_fixupimm_pd): Ditto.
17542 (_mm512_mask_fixupimm_ps): Ditto.
17543 (_mm_mask_fixupimm_sd): Ditto.
17544 (_mm_mask_fixupimm_ss): Ditto.
17545 * config/i386/avx512vlintrin.h:
17546 (_mm256_fixupimm_pd): Update parameters and builtin.
17547 (_mm256_maskz_fixupimm_pd): Ditto.
17548 (_mm256_fixupimm_ps): Ditto.
17549 (_mm256_maskz_fixupimm_ps): Ditto.
17550 (_mm_fixupimm_pd): Ditto.
17551 (_mm_maskz_fixupimm_pd): Ditto.
17552 (_mm_fixupimm_ps): Ditto.
17553 (_mm_maskz_fixupimm_ps): Ditto.
17554 (_mm256_mask_fixupimm_pd): Update builtin.
17555 (_mm256_mask_fixupimm_ps): Ditto.
17556 (_mm_mask_fixupimm_pd): Ditto.
17557 (_mm_mask_fixupimm_ps): Ditto.
17558 * config/i386/i386-builtin-types.def: Add new types and remove
17560 * config/i386/i386-builtin.def: Update builtin definitions.
17561 * config/i386/i386.c: Handle new builtin types and remove useless ones.
17562 * config/i386/sse.md: Update VFIXUPIMM* patterns.
17563 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17564 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17565 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
17566 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17567 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17568 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
17569 * config/i386/subst.md:
17570 (round_saeonly_sd_mask_operand4): Add new subst_attr.
17571 (round_saeonly_sd_mask_op4): Ditto.
17572 (round_saeonly_expand_operand5): Ditto.
17573 (round_saeonly_expand): Update.
17575 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17579 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
17581 * config/i386/sse.md: Combine VFIXUPIMM* patterns
17582 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17583 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17584 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
17585 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
17586 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
17587 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
17589 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
17593 2018-12-15 Jakub Jelinek <jakub@redhat.com>
17596 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
17597 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
17598 instead of UNSPEC_FIXUPIMM.
17600 2019-01-17 Richard Biener <rguenther@suse.de>
17603 * dwarf2out.c (want_pubnames): Never generate pubnames sections
17604 and friends for the LTO part of debug info.
17606 2019-01-17 Jakub Jelinek <jakub@redhat.com>
17608 PR tree-optimization/86214
17609 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
17612 PR rtl-optimization/88870
17613 * dce.c (deletable_insn_p): Never delete const/pure calls that can
17614 throw if we can't alter the cfg or delete dead exceptions.
17615 (mark_insn): Don't call find_call_stack_args for such calls.
17617 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
17619 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
17620 prototypes for vec_st.
17621 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
17622 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
17623 mainly on signed/unsigned long long and double.
17625 2019-01-16 David Malcolm <dmalcolm@redhat.com>
17628 * combine.c (delete_noop_moves): Convert to "bool" return,
17629 returning true if any edges are eliminated.
17630 (combine_instructions): Also return true if delete_noop_moves
17633 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17635 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
17636 correct max nunits for endian swap.
17637 (aarch64_expand_fcmla_builtin): Correct subreg code.
17638 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
17639 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
17642 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
17644 * config/alpha/alpha.c (alpha_gimplify_va_arg):
17645 Handle split indirect COMPLEX_TYPE arguments.
17647 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
17650 * config/aarch64/aarch64-modes.def: Add comment about how the carry
17651 bit is set by add and compare.
17652 (CC_ADC): New CC_MODE.
17653 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
17654 to cache the code and mode of X. Adjust the shape of a CC_Cmode
17655 comparison. Add detection for CC_ADCmode.
17656 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
17658 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
17659 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
17660 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
17661 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
17662 to eliminate the need for zero-extending the operands.
17663 (add<mode>3_compareC_imm): Delete. Merge into ...
17664 (add<mode>3_compareC): ... this. Restructure the comparison to
17665 eliminate the need for zero-extending the operands.
17666 (add<mode>3_carryin): Use LTU for the overflow detection.
17667 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
17668 Reexpress comparison for overflow.
17669 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
17670 (add<mode>3_carryinC): Likewise.
17671 (add<mode>3_carryinV): Use LTU for carry between partials.
17672 * config/aarch64/predicates.md (aarch64_carry_operation): Update
17673 handling of CC_Cmode and add CC_ADCmode.
17674 (aarch64_borrow_operation): Likewise.
17676 2019-01-16 Tamar Christina <tamar.christina@arm.com>
17678 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
17679 Remove patternmode.
17680 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
17681 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
17682 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
17683 Remove endianness conversion.
17685 2019-01-16 Martin Liska <mliska@suse.cz>
17687 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
17689 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
17691 * gcc.c (add_sysrooted_hdrs_prefix): New function.
17692 (path_prefix_reset): Move up in the source file.
17693 (find_fortran_preinclude_file): Make complex search for the
17694 fortran header files.
17696 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
17698 * godump.c (go_output_typedef): When outputting a typedef, refer
17699 to the underlying type by its name and not its structure.
17701 2019-01-15 David Malcolm <dmalcolm@redhat.com>
17704 * tree.c (build_function_type): Assert that arg_types is not
17707 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
17709 PR inline-asm/52813
17710 * doc/extend.texi: Document that listing the stack pointer in the
17711 clobber list of an asm is a deprecated feature.
17712 * common.opt (Wdeprecated): Moved from c-family/c.opt.
17713 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
17714 warning instead of an error for clobbers of the stack pointer.
17715 Add a note explaining why.
17717 2019-01-15 Richard Biener <rguenther@suse.de>
17720 * dwarf2out.c (gen_member_die): Do not generate inheritance
17723 2019-01-15 Richard Biener <rguenther@suse.de>
17725 PR tree-optimization/88855
17726 * tree-if-conv.c (combine_blocks): Collect
17727 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
17729 2019-01-15 Tom de Vries <tdevries@suse.de>
17732 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
17733 lhs == NULL_TREE for gang-level reduction.
17735 2019-01-15 Richard Biener <rguenther@suse.de>
17736 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17739 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
17740 return true if SSA_NAME is already marked in visited bitmap.
17741 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
17743 2019-01-15 Jakub Jelinek <jakub@redhat.com>
17745 PR tree-optimization/88775
17746 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
17747 equal == 0 equality pointer comparisons some more if compared in
17748 integral types and either one points to an automatic var and the
17749 other to a global, or we can prove at least one points to the middle
17750 or both point to start or both point to end.
17752 2019-01-14 Andi Kleen <ak@linux.intel.com>
17754 * Makefile.in: Lower autofdo sampling rate by 10x.
17755 * Makefile.tpl: Dito.
17757 2019-01-14 Tom Honermann <tom@honermann.net>
17759 * defaults.h: Define CHAR8_TYPE.
17761 2019-01-14 Martin Sebor <msebor@redhat.com>
17764 * doc/extend.texi (Darwin Format Checks): Clarify.
17766 2019-01-14 Richard Biener <rguenther@suse.de>
17768 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
17769 whether we are in (simplify ...) or (match ...) context.
17771 2019-01-14 Jakub Jelinek <jakub@redhat.com>
17773 PR rtl-optimization/88796
17774 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
17775 * cfgexpand.c (stack_protect_prologue): Initialize
17776 crtl->stack_protect_guard_decl.
17777 * function.c (stack_protect_epilogue): Use it instead of calling
17778 targetm.stack_protect_guard again.
17779 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
17780 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
17781 crtl->stack_protect_guard_decl.
17782 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
17783 on the returned MEM_EXPR.
17785 2019-01-12 Tom de Vries <tdevries@suse.de>
17787 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
17788 vector length using -fopenacc-dim.
17790 2019-01-12 Tom de Vries <tdevries@suse.de>
17792 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
17793 lengths into account.
17795 2019-01-12 Svante Signell <svante.signell@gmail.com>
17797 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
17798 (TARGET_CAN_SPLIT_STACK): Define.
17799 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
17801 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17803 * params.def (inline-unit-growth): Set to 40.
17805 2019-01-12 Jakub Jelinek <jakub@redhat.com>
17807 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
17809 2019-01-12 Tom de Vries <tdevries@suse.de>
17811 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
17812 region calling vector-partitionable routine, set default_vector_length
17815 2019-01-12 Tom de Vries <tdevries@suse.de>
17817 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
17818 variable default_vector_length.
17820 2019-01-12 Tom de Vries <tdevries@suse.de>
17822 PR middle-end/88703
17823 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
17824 from oacc_default_dims, as oacc_validate_dims would do it, and apply
17827 2019-01-12 Tom de Vries <tdevries@suse.de>
17829 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
17830 (nvptx_goacc_validate_dims): Add used parameter.
17831 * doc/tm.texi: Regenerate.
17832 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
17833 argument to call to targetm.goacc.validate_dims.
17834 (default_goacc_validate_dims): Add used
17836 * target.def (validate_dims): Add used parameter in DEFHOOK.
17837 * targhooks.h (default_goacc_validate_dims): Add used parameter.
17839 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17841 PR middle-end/85956
17843 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
17845 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
17846 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
17847 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
17848 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
17850 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
17852 PR rtl-optimization/87305
17854 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
17855 for little endian pseudos used as paradoxical subreg.
17857 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17859 PR tree-optimization/88693
17860 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
17861 for STRING_CSTs that don't contain any NUL characters in the first
17862 TREE_STRING_LENGTH bytes.
17864 2019-01-11 Alan Modra <amodra@gmail.com>
17868 * genattrtab.c (min_fn): Don't translate values.
17869 (min_attr_value): Return INT_MAX when the value can't be calculated.
17870 Return minimum among any values that can be calculated.
17871 (max_attr_value): Adjust.
17873 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17875 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
17877 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17879 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17880 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
17881 (aarch64_return_call_with_max_clobbers): New function.
17882 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
17883 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
17885 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
17886 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
17887 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
17888 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
17889 * cselib.c (cselib_process_insn): Add argument to
17890 targetm.hard_regno_call_part_clobbered call.
17891 * ira-conflicts.c (ira_build_conflicts): Ditto.
17892 * ira-costs.c (ira_tune_allocno_costs): Ditto.
17893 * lra-constraints.c (inherit_reload_reg): Ditto.
17894 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
17895 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
17896 argument. Call targetm.return_call_with_max_clobbers.
17897 Add argument to targetm.hard_regno_call_part_clobbered call.
17898 (calls_have_same_clobbers_p): New function.
17899 (process_bb_lives): Add call_insn and last_call_insn variables.
17900 Pass call_insn to check_pseudos_live_through_calls.
17901 Modify if stmt to check targetm.return_call_with_max_clobbers.
17902 Update setting of flush variable.
17903 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
17905 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
17906 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
17907 targetm.hard_regno_call_part_clobbered call.
17908 * reginfo.c (choose_hard_reg_mode): Ditto.
17909 * regrename.c (check_new_reg_p): Ditto.
17910 * reload.c (find_equiv_reg): Ditto.
17911 * reload1.c (emit_reload_insns): Ditto.
17912 * sched-deps.c (deps_analyze_insn): Ditto.
17913 * sel-sched.c (init_regs_for_mode): Ditto.
17914 (mark_unavailable_hard_regs): Ditto.
17915 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
17916 * target.def (hard_regno_call_part_clobbered): Add insn argument.
17917 (return_call_with_max_clobbers): New target function.
17918 * doc/tm.texi: Regenerate.
17919 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
17920 * hooks.c (hook_bool_uint_mode_false): Change to
17921 hook_bool_insn_uint_mode_false.
17922 * hooks.h (hook_bool_uint_mode_false): Ditto.
17924 2019-01-11 Steve Ellcey <sellcey@marvell.com>
17926 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
17927 (aarch64_remove_extra_call_preserved_regs): New function.
17928 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
17929 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
17930 * doc/tm.texi: Regenerate.
17931 * final.c (get_call_reg_set_usage): Call new hook.
17932 * target.def (remove_extra_call_preserved_regs): New hook.
17933 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
17934 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
17936 2019-01-11 Jakub Jelinek <jakub@redhat.com>
17939 * passes.c (finish_optimization_passes): Call print_combine_total_stats
17940 inside of pass_combine_1 dump rather than pass_profile_1.
17942 2019-01-11 Tom de Vries <tdevries@suse.de>
17944 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
17945 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
17946 (PTX_NUM_PER_WORKER_BARRIERS): Define.
17947 (nvptx_apply_dim_limits): Prevent vector_length 64 and
17950 2019-01-11 Tom de Vries <tdevries@suse.de>
17952 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
17954 2019-01-11 Jan Beulich <jbeulich@suse.com>
17956 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
17957 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
17958 sse2_cvtsi2sd): Add {l}.
17959 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
17962 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17965 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
17967 (*float<floatunssuffix>v2div2sf2): New define_insn.
17968 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
17969 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
17970 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
17971 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
17972 match_operands with "const0_operand" "C".
17974 2019-01-10 Tamar Christina <tamar.christina@arm.com>
17976 * config/aarch64/aarch64-builtins.c
17977 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
17978 (aarch64_init_simd_builtins): ...Here
17980 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
17982 PR rtl-optimization/87305
17984 (setup_live_pseudos_and_spill_after_risky_transforms): Check
17985 allocation for big endian pseudos used as paradoxical subregs and
17986 spill them if it is wrong.
17987 * lra-constraints.c (lra_constraints): Add a comment.
17989 2019-01-10 Richard Biener <rguenther@suse.de>
17991 PR tree-optimization/88792
17992 * tree-ssa-pre.c (get_representative_for): Do not return a
17995 2019-01-10 Jakub Jelinek <jakub@redhat.com>
17997 PR middle-end/84877
17999 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
18000 (assign_parm_setup_block): Do the argument slot realignment here
18003 2019-01-10 Stefan Agner <stefan@agner.ch>
18006 * config/arm/arm.c (arm_option_override_internal): Force
18007 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
18009 2019-01-10 Jakub Jelinek <jakub@redhat.com>
18012 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
18015 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18017 * config/arm/arm-builtins.c
18018 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
18019 (MAC_LANE_PAIR_QUALIFIERS): New.
18020 (arm_expand_builtin_args): Use it.
18021 (arm_expand_builtin_1): Likewise.
18022 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
18023 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
18024 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
18025 * config/arm/arm_neon.h:
18026 (vcadd_rot90_f16): New.
18027 (vcaddq_rot90_f16): New.
18028 (vcadd_rot270_f16): New.
18029 (vcaddq_rot270_f16): New.
18032 (vcmla_lane_f16): New.
18033 (vcmla_laneq_f16): New.
18034 (vcmlaq_lane_f16): New.
18035 (vcmlaq_laneq_f16): New.
18036 (vcmla_rot90_f16): New.
18037 (vcmlaq_rot90_f16): New.
18038 (vcmla_rot90_lane_f16): New.
18039 (vcmla_rot90_laneq_f16): New.
18040 (vcmlaq_rot90_lane_f16): New.
18041 (vcmlaq_rot90_laneq_f16): New.
18042 (vcmla_rot180_f16): New.
18043 (vcmlaq_rot180_f16): New.
18044 (vcmla_rot180_lane_f16): New.
18045 (vcmla_rot180_laneq_f16): New.
18046 (vcmlaq_rot180_lane_f16): New.
18047 (vcmlaq_rot180_laneq_f16): New.
18048 (vcmla_rot270_f16): New.
18049 (vcmlaq_rot270_f16): New.
18050 (vcmla_rot270_lane_f16): New.
18051 (vcmla_rot270_laneq_f16): New.
18052 (vcmlaq_rot270_lane_f16): New.
18053 (vcmlaq_rot270_laneq_f16): New.
18054 (vcadd_rot90_f32): New.
18055 (vcaddq_rot90_f32): New.
18056 (vcadd_rot270_f32): New.
18057 (vcaddq_rot270_f32): New.
18060 (vcmla_lane_f32): New.
18061 (vcmla_laneq_f32): New.
18062 (vcmlaq_lane_f32): New.
18063 (vcmlaq_laneq_f32): New.
18064 (vcmla_rot90_f32): New.
18065 (vcmlaq_rot90_f32): New.
18066 (vcmla_rot90_lane_f32): New.
18067 (vcmla_rot90_laneq_f32): New.
18068 (vcmlaq_rot90_lane_f32): New.
18069 (vcmlaq_rot90_laneq_f32): New.
18070 (vcmla_rot180_f32): New.
18071 (vcmlaq_rot180_f32): New.
18072 (vcmla_rot180_lane_f32): New.
18073 (vcmla_rot180_laneq_f32): New.
18074 (vcmlaq_rot180_lane_f32): New.
18075 (vcmlaq_rot180_laneq_f32): New.
18076 (vcmla_rot270_f32): New.
18077 (vcmlaq_rot270_f32): New.
18078 (vcmla_rot270_lane_f32): New.
18079 (vcmla_rot270_laneq_f32): New.
18080 (vcmlaq_rot270_lane_f32): New.
18081 (vcmlaq_rot270_laneq_f32): New.
18082 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
18083 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
18084 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
18085 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
18086 vcmlaq_lane270): New.
18087 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18088 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
18089 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
18090 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
18091 (arm_option_reconfigure_globals): Use them.
18092 * config/arm/iterators.md (VDF, VQ_HSF): New.
18093 (VCADD, VCMLA): New.
18094 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
18095 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
18097 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
18098 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
18100 2019-01-10 Tamar Christina <tamar.christina@arm.com>
18102 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
18103 Add qualifier_lane_pair_index.
18104 (emit-rtl.h): Include.
18105 (TYPES_QUADOP_LANE_PAIR): New.
18106 (aarch64_simd_expand_args): Use it.
18107 (aarch64_simd_expand_builtin): Likewise.
18108 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
18110 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
18111 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
18112 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
18113 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
18114 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
18115 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
18116 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
18117 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
18118 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
18119 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
18120 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
18121 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
18122 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
18123 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18124 Add __ARM_FEATURE_COMPLEX.
18125 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
18126 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
18127 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
18128 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
18129 fcmlaq_lane270): New.
18130 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18131 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
18132 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
18133 * config/aarch64/arm_neon.h:
18134 (vcadd_rot90_f16): New.
18135 (vcaddq_rot90_f16): New.
18136 (vcadd_rot270_f16): New.
18137 (vcaddq_rot270_f16): New.
18140 (vcmla_lane_f16): New.
18141 (vcmla_laneq_f16): New.
18142 (vcmlaq_lane_f16): New.
18143 (vcmlaq_rot90_lane_f16): New.
18144 (vcmla_rot90_laneq_f16): New.
18145 (vcmla_rot90_lane_f16): New.
18146 (vcmlaq_rot90_f16): New.
18147 (vcmla_rot90_f16): New.
18148 (vcmlaq_laneq_f16): New.
18149 (vcmla_rot180_laneq_f16): New.
18150 (vcmla_rot180_lane_f16): New.
18151 (vcmlaq_rot180_f16): New.
18152 (vcmla_rot180_f16): New.
18153 (vcmlaq_rot90_laneq_f16): New.
18154 (vcmlaq_rot270_laneq_f16): New.
18155 (vcmlaq_rot270_lane_f16): New.
18156 (vcmla_rot270_laneq_f16): New.
18157 (vcmlaq_rot270_f16): New.
18158 (vcmla_rot270_f16): New.
18159 (vcmlaq_rot180_laneq_f16): New.
18160 (vcmlaq_rot180_lane_f16): New.
18161 (vcmla_rot270_lane_f16): New.
18162 (vcadd_rot90_f32): New.
18163 (vcaddq_rot90_f32): New.
18164 (vcaddq_rot90_f64): New.
18165 (vcadd_rot270_f32): New.
18166 (vcaddq_rot270_f32): New.
18167 (vcaddq_rot270_f64): New.
18171 (vcmla_lane_f32): New.
18172 (vcmla_laneq_f32): New.
18173 (vcmlaq_lane_f32): New.
18174 (vcmlaq_laneq_f32): New.
18175 (vcmla_rot90_f32): New.
18176 (vcmlaq_rot90_f32): New.
18177 (vcmlaq_rot90_f64): New.
18178 (vcmla_rot90_lane_f32): New.
18179 (vcmla_rot90_laneq_f32): New.
18180 (vcmlaq_rot90_lane_f32): New.
18181 (vcmlaq_rot90_laneq_f32): New.
18182 (vcmla_rot180_f32): New.
18183 (vcmlaq_rot180_f32): New.
18184 (vcmlaq_rot180_f64): New.
18185 (vcmla_rot180_lane_f32): New.
18186 (vcmla_rot180_laneq_f32): New.
18187 (vcmlaq_rot180_lane_f32): New.
18188 (vcmlaq_rot180_laneq_f32): New.
18189 (vcmla_rot270_f32): New.
18190 (vcmlaq_rot270_f32): New.
18191 (vcmlaq_rot270_f64): New.
18192 (vcmla_rot270_lane_f32): New.
18193 (vcmla_rot270_laneq_f32): New.
18194 (vcmlaq_rot270_lane_f32): New.
18195 (vcmlaq_rot270_laneq_f32): New.
18196 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
18197 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
18198 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
18199 (FCADD, FCMLA): New.
18201 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
18203 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18207 * config/pa/pa.c: Change "can not" to "cannot".
18208 * gimple-ssa-evrp-analyze.c: Likewise.
18209 * ipa-icf.c: Likewise.
18210 * ipa-polymorphic-call.c: Likewise.
18211 * ipa-pure-const.c: Likewise.
18212 * lra-constraints.c: Likewise.
18213 * lra-remat.c: Likewise.
18214 * reload1.c: Likewise.
18215 * reorg.c: Likewise.
18216 * tree-ssa-uninit.c: Likewise.
18218 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
18222 * Makefile.in: Mechanically replace "can not" with "cannot".
18223 * alias.c: Likewise.
18224 * builtins.c: Likewise.
18225 * calls.c: Likewise.
18226 * cgraph.c: Likewise.
18227 * cgraph.h: Likewise.
18228 * cgraphclones.c: Likewise.
18229 * cgraphunit.c: Likewise.
18230 * combine-stack-adj.c: Likewise.
18231 * combine.c: Likewise.
18232 * common/config/i386/i386-common.c: Likewise.
18233 * config/aarch64/aarch64.c: Likewise.
18234 * config/alpha/sync.md: Likewise.
18235 * config/arc/arc.c: Likewise.
18236 * config/arc/predicates.md: Likewise.
18237 * config/arm/arm-c.c: Likewise.
18238 * config/arm/arm.c: Likewise.
18239 * config/arm/arm.h: Likewise.
18240 * config/arm/arm.md: Likewise.
18241 * config/arm/cortex-r4f.md: Likewise.
18242 * config/csky/csky.c: Likewise.
18243 * config/csky/csky.h: Likewise.
18244 * config/darwin-f.c: Likewise.
18245 * config/epiphany/epiphany.md: Likewise.
18246 * config/i386/i386.c: Likewise.
18247 * config/i386/sol2.h: Likewise.
18248 * config/m68k/m68k.c: Likewise.
18249 * config/mcore/mcore.h: Likewise.
18250 * config/microblaze/microblaze.md: Likewise.
18251 * config/mips/20kc.md: Likewise.
18252 * config/mips/sb1.md: Likewise.
18253 * config/nds32/nds32.c: Likewise.
18254 * config/nds32/predicates.md: Likewise.
18255 * config/pa/pa.c: Likewise.
18256 * config/rs6000/e300c2c3.md: Likewise.
18257 * config/rs6000/rs6000.c: Likewise.
18258 * config/s390/s390.h: Likewise.
18259 * config/sh/sh.c: Likewise.
18260 * config/sh/sh.md: Likewise.
18261 * config/spu/vmx2spu.h: Likewise.
18262 * cprop.c: Likewise.
18263 * dbxout.c: Likewise.
18264 * df-scan.c: Likewise.
18265 * doc/cfg.texi: Likewise.
18266 * doc/extend.texi: Likewise.
18267 * doc/fragments.texi: Likewise.
18268 * doc/gty.texi: Likewise.
18269 * doc/invoke.texi: Likewise.
18270 * doc/lto.texi: Likewise.
18271 * doc/md.texi: Likewise.
18272 * doc/objc.texi: Likewise.
18273 * doc/rtl.texi: Likewise.
18274 * doc/tm.texi: Likewise.
18276 * emit-rtl.c: Likewise.
18277 * emit-rtl.h: Likewise.
18278 * except.c: Likewise.
18279 * expmed.c: Likewise.
18280 * expr.c: Likewise.
18281 * fold-const.c: Likewise.
18282 * genautomata.c: Likewise.
18283 * gimple-fold.c: Likewise.
18284 * hard-reg-set.h: Likewise.
18285 * ifcvt.c: Likewise.
18286 * ipa-comdats.c: Likewise.
18287 * ipa-cp.c: Likewise.
18288 * ipa-devirt.c: Likewise.
18289 * ipa-fnsummary.c: Likewise.
18290 * ipa-icf.c: Likewise.
18291 * ipa-inline-transform.c: Likewise.
18292 * ipa-inline.c: Likewise.
18293 * ipa-polymorphic-call.c: Likewise.
18294 * ipa-profile.c: Likewise.
18295 * ipa-prop.c: Likewise.
18296 * ipa-pure-const.c: Likewise.
18297 * ipa-reference.c: Likewise.
18298 * ipa-split.c: Likewise.
18299 * ipa-visibility.c: Likewise.
18301 * ira-build.c: Likewise.
18302 * ira-color.c: Likewise.
18303 * ira-conflicts.c: Likewise.
18304 * ira-costs.c: Likewise.
18305 * ira-int.h: Likewise.
18306 * ira-lives.c: Likewise.
18309 * loop-invariant.c: Likewise.
18310 * loop-unroll.c: Likewise.
18311 * lower-subreg.c: Likewise.
18312 * lra-assigns.c: Likewise.
18313 * lra-constraints.c: Likewise.
18314 * lra-eliminations.c: Likewise.
18315 * lra-lives.c: Likewise.
18316 * lra-remat.c: Likewise.
18317 * lra-spills.c: Likewise.
18319 * lto-cgraph.c: Likewise.
18320 * lto-streamer-out.c: Likewise.
18321 * postreload-gcse.c: Likewise.
18322 * predict.c: Likewise.
18323 * profile-count.h: Likewise.
18324 * profile.c: Likewise.
18325 * recog.c: Likewise.
18327 * reload.c: Likewise.
18328 * reload1.c: Likewise.
18329 * reorg.c: Likewise.
18330 * resource.c: Likewise.
18331 * rtl.def: Likewise.
18333 * rtlanal.c: Likewise.
18334 * sched-deps.c: Likewise.
18335 * sched-ebb.c: Likewise.
18336 * sched-rgn.c: Likewise.
18337 * sel-sched-ir.c: Likewise.
18338 * sel-sched.c: Likewise.
18339 * shrink-wrap.c: Likewise.
18340 * simplify-rtx.c: Likewise.
18341 * symtab.c: Likewise.
18342 * target.def: Likewise.
18343 * toplev.c: Likewise.
18344 * tree-call-cdce.c: Likewise.
18345 * tree-cfg.c: Likewise.
18346 * tree-complex.c: Likewise.
18347 * tree-core.h: Likewise.
18348 * tree-eh.c: Likewise.
18349 * tree-inline.c: Likewise.
18350 * tree-loop-distribution.c: Likewise.
18351 * tree-nrv.c: Likewise.
18352 * tree-profile.c: Likewise.
18353 * tree-sra.c: Likewise.
18354 * tree-ssa-alias.c: Likewise.
18355 * tree-ssa-dce.c: Likewise.
18356 * tree-ssa-dom.c: Likewise.
18357 * tree-ssa-forwprop.c: Likewise.
18358 * tree-ssa-loop-im.c: Likewise.
18359 * tree-ssa-loop-ivcanon.c: Likewise.
18360 * tree-ssa-loop-ivopts.c: Likewise.
18361 * tree-ssa-loop-niter.c: Likewise.
18362 * tree-ssa-phionlycprop.c: Likewise.
18363 * tree-ssa-phiopt.c: Likewise.
18364 * tree-ssa-propagate.c: Likewise.
18365 * tree-ssa-threadedge.c: Likewise.
18366 * tree-ssa-threadupdate.c: Likewise.
18367 * tree-ssa-uninit.c: Likewise.
18368 * tree-ssanames.c: Likewise.
18369 * tree-streamer-out.c: Likewise.
18370 * tree.c: Likewise.
18371 * tree.h: Likewise.
18372 * vr-values.c: Likewise.
18374 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
18376 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
18377 (ix86_split_xorsign): Ditto.
18378 * config/i386/i386.c (ix86_expand_xorsign): New function.
18379 (ix86_split_xorsign): Ditto.
18380 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
18381 (xorsign<mode>3): New expander.
18382 (xorsign<mode>3_1): New insn_and_split pattern.
18383 * config/i386/sse.md (xorsign<mode>3): New expander.
18385 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18387 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
18388 (*tablejump_sp64): Likewise.
18389 (*tablejump<P:mode>): ...this.
18390 (*call_address_sp32): Merge into...
18391 (*call_address_sp64): Likewise.
18392 (*call_address<P:mode>): ...this.
18393 (*call_symbolic_sp32): Merge into...
18394 (*call_symbolic_sp64): Likewise.
18395 (*call_symbolic<P:mode>): ...this.
18396 (call_value): Remove constraint and add predicate.
18397 (*call_value_address_sp32): Merge into...
18398 (*call_value_address_sp64): Likewise.
18399 (*call_value_address<P:mode>): ...this.
18400 (*call_value_symbolic_sp32): Merge into...
18401 (*call_value_symbolic_sp64): Likewise.
18402 (*call_value_symbolic<P:mode>): ...this.
18403 (*sibcall_symbolic_sp32): Merge into...
18404 (*sibcall_symbolic_sp64): Likewise.
18405 (*sibcall_symbolic<P:mode>): ...this.
18406 (sibcall_value): Remove constraint and add predicate.
18407 (*sibcall_value_symbolic_sp32): Merge into...
18408 (*sibcall_value_symbolic_sp64): Likewise.
18409 (*sibcall_value_symbolic<P:mode>): ...this.
18410 (window_save): Minor tweak.
18411 (*branch_sp32): Merge into...
18412 (*branch_sp64): Likewise.
18413 (*branch<P:mode>): ...this.
18415 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18416 James Clarke <jrtc27@jrtc27.com>
18419 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
18420 consistently in TLS address generation and adjust code to the renaming
18421 of patterns. Mark calls to __tls_get_addr as const.
18422 * config/sparc/sparc.md (tgd_hi22): Turn into...
18423 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
18424 (tgd_lo10): Turn into...
18425 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
18426 (tgd_add32): Merge into...
18427 (tgd_add64): Likewise.
18428 (tgd_add<P:mode>): ...this and use Pmode throughout.
18429 (tldm_hi22): Turn into...
18430 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
18431 (tldm_lo10): Turn into...
18432 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
18433 (tldm_add32): Merge into...
18434 (tldm_add64): Likewise.
18435 (tldm_add<P:mode>): ...this and use Pmode throughout.
18436 (tldm_call32): Merge into...
18437 (tldm_call64): Likewise.
18438 (tldm_call<P:mode>): ...this and use Pmode throughout.
18439 (tldo_hix22): Turn into...
18440 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
18441 (tldo_lox10): Turn into...
18442 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
18443 (tldo_add32): Merge into...
18444 (tldo_add64): Likewise.
18445 (tldo_add<P:mode>): ...this and use Pmode throughout.
18446 (tie_hi22): Turn into...
18447 (tie_hi22<P:mode>): ...this and use Pmode throughout.
18448 (tie_lo10): Turn into...
18449 (tie_lo10<P:mode>): ...this and use Pmode throughout.
18450 (tie_ld64): Use DImode throughout.
18451 (tie_add32): Merge into...
18452 (tie_add64): Likewise.
18453 (tie_add<P:mode>): ...this and use Pmode throughout.
18454 (tle_hix22_sp32): Merge into...
18455 (tle_hix22_sp64): Likewise.
18456 (tle_hix22<P:mode>): ...this and use Pmode throughout.
18457 (tle_lox22_sp32): Merge into...
18458 (tle_lox22_sp64): Likewise.
18459 (tle_lox22<P:mode>): ...this and use Pmode throughout.
18460 (*tldo_ldub_sp32): Merge into...
18461 (*tldo_ldub_sp64): Likewise.
18462 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
18463 (*tldo_ldub1_sp32): Merge into...
18464 (*tldo_ldub1_sp64): Likewise.
18465 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
18466 (*tldo_ldub2_sp32): Merge into...
18467 (*tldo_ldub2_sp64): Likewise.
18468 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
18469 (*tldo_ldsb1_sp32): Merge into...
18470 (*tldo_ldsb1_sp64): Likewise.
18471 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
18472 (*tldo_ldsb2_sp32): Merge into...
18473 (*tldo_ldsb2_sp64): Likewise.
18474 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
18475 (*tldo_ldub3_sp64): Use DImode throughout.
18476 (*tldo_ldsb3_sp64): Likewise.
18477 (*tldo_lduh_sp32): Merge into...
18478 (*tldo_lduh_sp64): Likewise.
18479 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
18480 (*tldo_lduh1_sp32): Merge into...
18481 (*tldo_lduh1_sp64): Likewise.
18482 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
18483 (*tldo_ldsh1_sp32): Merge into...
18484 (*tldo_ldsh1_sp64): Likewise.
18485 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
18486 (*tldo_lduh2_sp64): Use DImode throughout.
18487 (*tldo_ldsh2_sp64): Likewise.
18488 (*tldo_lduw_sp32): Merge into...
18489 (*tldo_lduw_sp64): Likewise.
18490 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
18491 (*tldo_lduw1_sp64): Use DImode throughout.
18492 (*tldo_ldsw1_sp64): Likewise.
18493 (*tldo_ldx_sp64): Likewise.
18494 (*tldo_stb_sp32): Merge into...
18495 (*tldo_stb_sp64): Likewise.
18496 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
18497 (*tldo_sth_sp32): Merge into...
18498 (*tldo_sth_sp64): Likewise.
18499 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
18500 (*tldo_stw_sp32): Merge into...
18501 (*tldo_stw_sp64): Likewise.
18502 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
18503 (*tldo_stx_sp64): Use DImode throughout.
18505 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18507 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
18508 check configure option to set BTI and Return Address Signing.
18509 * configure.ac: Add --enable-standard-branch-protection and
18510 --disable-standard-branch-protection.
18511 * configure: Regenerated.
18512 * doc/install.texi: Document the same.
18514 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18515 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18517 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
18518 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
18519 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
18521 * config/aarch64/aarch64-bti-insert.c: New file.
18522 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
18524 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
18526 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
18527 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
18528 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
18529 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
18531 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18533 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
18534 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
18535 Disable bti for -mbranch-protection=none.
18536 (aarch64_handle_standard_branch_protection): Enable bti for
18537 -mbranch-protection=standard.
18538 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
18539 -mbranch-protection.
18540 (aarch64_bti_enabled): Check if bti is enabled.
18541 * config/aarch64/aarch64.opt: Declare target variable.
18542 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
18544 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18546 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
18547 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
18548 (aarch64_expand_epilogue): Likewise.
18549 (aarch64_output_mi_thunk): Likewise.
18550 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
18551 TAILCALL_ADDR_REGS to x16 and x17.
18552 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
18554 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18556 * config/aarch64/aarch64-option-extensions.def: Define
18557 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
18558 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
18559 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
18560 (AARCH64_FL_PREDRES): New.
18561 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
18562 AARCH64_FL_PREDRES by default.
18563 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
18565 2018-01-09 Sudakshina Das <sudi.das@arm.com>
18567 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
18569 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
18570 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
18571 * doc/invoke.texi: Document ARMv8.5-A.
18573 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
18575 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
18576 (xorsign<mode>3): Likewise.
18578 2019-01-09 Jelinek <jakub@redhat.com>
18580 PR middle-end/88758
18581 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
18582 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
18584 PR rtl-optimization/88331
18585 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
18586 not currently_expanding_to_rtl.
18588 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
18590 * doc/invoke.texi (-Os): Remove trailing spaces.
18591 (-finline-functions): Remove reference to -O2.
18593 2019-01-08 Jakub Jelinek <jakub@redhat.com>
18595 PR rtl-optimization/79593
18596 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
18598 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
18599 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
18601 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
18604 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
18608 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
18609 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
18611 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
18614 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
18615 ix86_avx_u128_mode_entry.
18617 2019-01-08 Martin Liska <mliska@suse.cz>
18619 PR tree-optimization/88753
18620 * tree-switch-conversion.c (switch_conversion::build_one_array):
18621 Come up with local variable constructor. Convert first to
18622 type of constructor values.
18624 2019-01-08 Richard Biener <rguenther@suse.de>
18626 PR tree-optimization/86554
18627 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
18628 rpo_avail): Move earlier.
18629 (visit_nary_op): When value-numbering to expressions
18630 with different overflow behavior make sure there's an
18631 available expression on the path.
18633 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
18635 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
18636 aarch64_parse_branch_protection,
18637 struct aarch64_branch_protect_type,
18638 aarch64_handle_no_branch_protection,
18639 aarch64_handle_standard_branch_protection,
18640 aarch64_validate_mbranch_protection,
18641 aarch64_handle_pac_ret_protection,
18642 aarch64_handle_attr_branch_protection,
18643 accepted_branch_protection_string,
18644 aarch64_pac_ret_subtypes,
18645 aarch64_branch_protect_types,
18646 aarch64_handle_pac_ret_leaf): Define.
18647 (aarch64_override_options_after_change_1, aarch64_override_options):
18648 Add check for accepted_branch_protection_string.
18649 (aarch64_option_save): Save accepted_branch_protection_string.
18650 (aarch64_option_restore): Save accepted_branch_protection_string.
18651 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
18652 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
18653 msign-return-address.
18654 * doc/invoke.texi: Add mbranch-protection.
18656 2019-01-08 Alan Modra <amodra@gmail.com>
18659 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
18660 Delete "unknownp" parameter. Adjust callers. Handle
18661 CONST_INT, PLUS, MINUS, and MULT.
18662 (attr_value_aligned): Renamed from or_attr_value.
18663 (min_attr_value): Return INT_MIN for unhandled rtl case..
18664 (min_fn): ..and translate to INT_MAX here.
18665 (write_length_unit_log): Modify to cope without "unknown".
18666 (write_attr_value): Handle IF_THEN_ELSE.
18668 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18670 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
18671 optimization for masked stores.
18673 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18675 PR middle-end/88567
18676 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
18677 output vector directly to duplicate_and_interleave instead of
18678 going through a temporary. Postpone insertion of ctor_seq to
18679 the end of the loop.
18681 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
18684 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
18685 unsigned_p. Handle signed and unsigned overflow correction as
18687 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
18689 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
18691 (add<mode>3_compareV_imm): Make this callable for expanding.
18692 (subv<GPI:mode>4): Use register_operand for operand 1. Use
18693 aarch64_plus_operand for operand 2.
18694 (subv<GPI:mode>_insn): New insn pattern.
18695 (subv<GPI:mode>_imm): Likewise.
18696 (negv<GPI:mode>3): New expand pattern.
18697 (negv<GPI:mode>_insn): New insn pattern.
18698 (negv<GPI:mode>_cmp_only): Likewise.
18699 (cmpv<GPI:mode>_insn): Likewise.
18700 (subvti4): Use register_operand for operand 1. Update call to
18701 aarch64_expand_subvti.
18702 (usubvti4): Likewise.
18703 (negvti3): New expand pattern.
18704 (negdi_carryout): New insn pattern.
18705 (negvdi_carryinV): New insn pattern.
18706 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
18707 version the named version.
18708 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
18710 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
18712 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
18714 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
18715 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
18716 (sub<mode>3_carryinCV): Delete.
18717 (sub<GPI:mode>3_carryinV): New expand pattern.
18718 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
18720 2019-01-07 Richard Biener <rguenther@suse.de>
18722 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
18723 of tree_operand_hash.
18725 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18727 PR tree-optimization/88598
18728 * tree.h (single_nonzero_element): Declare.
18729 * tree.c (single_nonzero_element): New function.
18730 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
18731 if I is the only nonzero element of CST.
18733 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
18735 PR tree-optimization/88598
18736 * tree.h (initializer_each_zero_or_onep): Declare.
18737 * tree.c (initializer_each_zero_or_onep): New function.
18738 (signed_or_unsigned_type_for): Handle float types too.
18739 (unsigned_type_for, signed_type_for): Update comments accordingly.
18740 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
18741 x & { 0 or -1, 0 or -1, ... }.
18743 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
18745 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
18746 with x86_64-pc-linux-gnu.
18748 2019-01-07 Tom de Vries <tdevries@suse.de>
18751 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
18753 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
18756 2019-01-07 Jakub Jelinek <jakub@redhat.com>
18758 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
18759 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
18760 TARGET_AVX512F as condition.
18763 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
18764 const_not_ok_for_debug_p target hook.
18765 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
18766 on UNSPEC and subexpressions thereof if all subexpressions of the
18767 UNSPEC are CONSTANT_P.
18769 PR tree-optimization/88676
18770 * tree-ssa-phiopt.c (two_value_replacement): New function.
18771 (tree_ssa_phiopt_worker): Call it.
18774 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
18775 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
18778 * tree-vect-generic.c: Include insn-config.h and recog.h.
18779 (expand_vector_piecewise): Add defaulted ret_type argument,
18780 if non-NULL, use that in preference to type for the result type.
18781 (expand_vector_parallel): Formatting fix.
18782 (do_vec_conversion, do_vec_narrowing_conversion,
18783 expand_vector_conversion): New functions.
18784 (expand_vector_operations_1): Call expand_vector_conversion
18785 for VEC_CONVERT ifn calls.
18786 * internal-fn.def (VEC_CONVERT): New internal function.
18787 * internal-fn.c (expand_VEC_CONVERT): New function.
18788 * fold-const-call.c (fold_const_vec_convert): New function.
18789 (fold_const_call): Use it for CFN_VEC_CONVERT.
18790 * doc/extend.texi (__builtin_convertvector): Document.
18792 2019-01-07 Tom de Vries <tdevries@suse.de>
18794 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
18795 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
18796 vector_red_partition, vector_red_sym): New global variables.
18797 (nvptx_option_override): Initialize vector_red_sym.
18798 (nvptx_declare_function_name): Restore red_partition register.
18799 (nvptx_file_end): Emit code to declare the vector reduction variables.
18800 (nvptx_output_red_partition): New function.
18801 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
18802 large vector reductions.
18803 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
18804 (nvptx_init_builtins): Add VECTOR_ADDR.
18805 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
18806 Handle nvptx_expand_shared_addr.
18807 (nvptx_get_shared_red_addr): Add vector argument and handle large
18809 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
18811 (nvptx_goacc_reduction_init): Likewise.
18812 (nvptx_goacc_reduction_fini): Likewise.
18813 (nvptx_goacc_reduction_teardown): Likewise.
18814 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
18815 init,fini,teardown}.
18816 (nvptx_init_axis_predicate): Initialize vector_red_partition.
18817 (nvptx_set_current_function): Init vector_red_partition.
18818 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
18819 (nvptx_red_partition): New insn.
18820 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
18822 2019-01-07 Tom de Vries <tdevries@suse.de>
18825 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
18828 2019-01-07 Tom de Vries <tdevries@suse.de>
18830 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
18831 (nvptx_option_override): Init oacc_bcast_partition.
18832 (nvptx_init_oacc_workers): New function.
18833 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
18834 (nvptx_needs_shared_bcast): New function.
18835 (nvptx_find_par): Generalize to enable vectors to use shared-memory
18836 to propagate state.
18837 (nvptx_shared_propagate): Initialize vector bcast partition and
18838 synchronization state.
18839 (nvptx_single): Generalize to enable vectors to use shared-memory
18840 to propagate state.
18841 (nvptx_process_pars): Likewise.
18842 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
18843 * config/nvptx/nvptx.h (struct machine_function): Add
18844 bcast_partition and sync_bar members.
18846 2019-01-07 Tom de Vries <tdevries@suse.de>
18848 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
18849 (nvptx_apply_dim_limits): New function.
18850 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
18853 2019-01-07 Tom de Vries <tdevries@suse.de>
18855 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
18856 as late as possible.
18858 2019-01-07 Tom de Vries <tdevries@suse.de>
18860 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
18861 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
18862 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
18863 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
18864 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
18866 2019-01-07 Tom de Vries <tdevries@suse.de>
18868 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
18870 2019-01-07 Tom de Vries <tdevries@suse.de>
18872 * omp-offload.c (oacc_get_min_dim): New function.
18873 * omp-offload.h (oacc_get_min_dim): Declare.
18875 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
18878 * config/i386/i386.c (function_value_ms_64): Return small sturct in
18879 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
18881 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18885 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
18887 * ipa-inline.c (edge_badness): Use inlined_time instead of
18888 inline_summaries->get.
18890 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18892 * opts.c (enable_fdo_optimizations): Enable
18893 version-loops-for-strides, loop-interchange, unrol-and-jam
18894 and tree-loop-distribution.
18895 * invoke.texi: Document newly enabled options.
18897 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18899 * doc/invoke.texi (max-inline-insns-small): New parameters.
18900 * ipa-inline.c (want_early_inline_function_p): simplify.
18901 (want_inline_small_function_p): Fix pasto from previous patch;
18902 use max-inline-insns-small bound.
18903 * params.def (max-inline-insns-small): New param.
18904 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
18905 variables correctly.
18907 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18909 * doc/invoke.texi: Document max-inline-insns-size,
18910 uninlined-function-insns, uninlined-function-time,
18911 uninlined-thunk-insns and uninlined-thunk-time.
18912 * params.def: Add max-inline-insns-size,
18913 uninlined-function-insns, uninlined-function-time,
18914 uninlined-thunk-insns and uninlined-thunk-time.
18915 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
18917 * ipa-inline.c (can_inline_edge_by_limits_p,
18918 want_inline_small_function_p): Use new parameters.
18920 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
18922 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
18924 2019-01-05 Jakub Jelinek <jakub@redhat.com>
18926 PR middle-end/82564
18928 * expr.c (expand_assignment): For calls returning VLA structures
18929 if to_rtx is not a MEM, force it into a stack temporary.
18932 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
18933 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
18934 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
18935 subexpressions of both operands.
18936 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
18937 subrtxes are CONSTANT_P.
18938 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
18939 2018-11-09 changes.
18941 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
18943 * params.def (hot-bb-count-ws-permille): Set to 990.
18945 2019-01-04 Martin Sebor <msebor@redhat.com>
18948 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
18951 2019-01-04 Martin Sebor <msebor@redhat.com>
18954 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
18956 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18958 * gdbinit.in: Turn off pagination for the skip commands, restore
18959 it to previous state afterwards.
18961 2019-01-04 Jakub Jelinek <jakub@redhat.com>
18964 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
18965 of GET_MODE (opN) as modes of the libcall arguments.
18967 2019-01-04 Jan Beulich <jbeulich@suse.com>
18969 * config/i386/sse.md
18970 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
18971 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
18972 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18973 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
18974 avx512f_vmcmp<mode>3<round_saeonly_name>,
18975 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
18976 avx512f_maskcmp<mode>3,
18977 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18978 <avx512>_cvt<ssemodesuffix>2mask<mode>,
18979 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18980 *<avx512>_cvtmask2<ssemodesuffix><mode>,
18981 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18982 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
18983 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18984 <avx512>_gt<mode>3<mask_scalar_merge_name>,
18985 <avx512>_testm<mode>3<mask_scalar_merge_name>,
18986 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
18987 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
18988 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
18989 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
18990 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
18991 avx512cd_maskb_vec_dup<mode>,
18992 avx512cd_maskw_vec_dup<mode>,
18993 avx512dq_fpclass<mode><mask_scalar_merge_name>,
18994 avx512dq_vmfpclass<mode>,
18995 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
18998 2019-01-03 Martin Sebor <msebor@redhat.com>
19000 PR tree-optimization/88659
19001 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
19003 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
19005 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
19006 unaligned vsx and avoid lxvd2x/stxvd2x.
19007 (gen_lvx_v4si_move): New function.
19009 2019-01-03 Tom de Vries <tdevries@suse.de>
19011 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
19012 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
19014 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
19016 2019-01-03 Tom de Vries <tdevries@suse.de>
19018 * config/nvptx/nvptx.c (struct offload_attrs): New.
19019 (populate_offload_attrs): New function. Factor mask extraction out of
19020 nvptx_reorg. Add extraction of dimensions.
19021 (nvptx_reorg): Use populate_offload_attrs.
19023 2019-01-03 Tom de Vries <tdevries@suse.de>
19025 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
19026 cases for oacc_min_dims_p and routine_p. Add asserts for
19027 oacc_default_dims_p and offload_region_p.
19029 2019-01-03 Tom de Vries <tdevries@suse.de>
19031 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
19032 factored out of ...
19033 (nvptx_goacc_validate_dims): ... here.
19035 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19037 PR tree-optimization/85574
19038 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
19040 (struct ssa_equip_hash_traits): Declare.
19041 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
19043 2019-01-03 Jakub Jelinek <jakub@redhat.com>
19046 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
19047 change it to qualified_type.
19049 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
19051 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
19052 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
19054 2019-01-02 Martin Sebor <msebor@redhat.com>
19055 Jeff Law <law@redhat.com>
19057 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
19058 (get_range_strlen_tree): Update appropriately.
19060 * gimple-fold.h (get_range_strlen): Drop unused last argument.
19062 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
19063 rather than set_range_info.
19064 * tree-ssa-strlen.c (set_strlen_range): Extracted from
19065 maybe_set_strlen_range. Handle potentially boundary crossing
19066 cases more conservatively.
19067 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
19068 Call set_strlen_range.
19069 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
19071 PR middle-end/88663
19072 * gimple-fold.c (get_range_strlen): Update prototype to no longer
19073 need the flexp argument.
19074 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
19075 from calls to get_range_strlen. Update comments. Just update
19076 VAL for an unterminated const char array and let the reset of the
19077 code handle it normally. No longer try to set *flexp. Adjust
19079 (get_range_strlen): Update for the new get_range_strlen API.
19080 (get_maxval_strlen): Similarly.
19081 (gimple_fold_builtin_strlen): Handle update meaning of return value
19082 from get_range_strlen.
19083 * gimple-ssa-sprintf.c (get_string_length): Update for the new
19084 get_range_strlen API.
19086 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
19089 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
19090 false at WPA time when body was removed.
19092 2019-01-02 Martin Liska <mliska@suse.cz>
19094 PR tree-optimization/88650
19095 * predict.c (set_even_probabilities): Calculate probability
19096 remainer only when really used.
19098 2019-01-02 Richard Biener <rguenther@suse.de>
19100 PR middle-end/88651
19101 * tree-data-ref.c (analyze_subscript_affine_affine): Use
19102 widest_ints when mangling max_stmt_execution results.
19104 2019-01-02 Richard Biener <rguenther@suse.de>
19106 PR tree-optimization/88621
19107 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
19108 bitfields when canoncalizing.
19110 2019-01-02 Richard Biener <rguenther@suse.de>
19113 * config/i386/x86-tune-costs.h (intel_cost): Adjust
19114 cost of cheap SSE instruction.
19116 2019-01-02 Richard Biener <rguenther@suse.de>
19119 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
19120 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
19122 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
19123 set after UIDs before splitting them.
19125 2019-01-01 Martin Sebor <msebor@redhat.com>
19126 Jeff Law <law@redhat.com>
19128 * gimple-fold.c (get_range_strlen_tree): Record if the computed
19129 length is optimistic. If it is, then arrange to compute the
19130 conservative length as well.
19132 * gimple-fold.h (get_range_strlen): Update prototype.
19133 * builtins.c (check_access): Update call to get_range_strlen to use
19134 c_strlen_data pointer. Change various variable accesses to instead
19135 pull data from the c_strlen_data structure.
19136 (check_strncat_sizes, expand_builtin_strncat): Likewise.
19137 * calls.c (maybe_warn_nonstring_arg): Likewise.
19138 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
19139 minimum length if maximum lengh is unknown.
19140 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
19141 that used c_strlen, it's no longer needed. Restructure slightly.
19142 (format_string): Set unlikely range appropriately.
19143 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
19145 (get_range_strlen): Accept c_strlen_data pointer for external
19146 call sites as well. Pass through to call to internal get_range_strlen.
19147 Adjust minlen, maxlen and maxbound as needed.
19148 (get_maxval_strlen): Update comments.
19149 (gimple_fold_builtin_strlen): Update call to get_range_strlen
19150 to use c_strlen_data pointer. Change variable accesses to instead
19151 use c_strlen_data data members.
19153 * gimple-fold.c (get_range_strlen): Update prototype.
19154 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
19155 local variables. Use pdata to return information to caller.
19156 Update calls to get_range_strlen. Update pdata->maxbound.
19157 (get_range_strlen -- static version): Similarly.
19158 (get_range_strlen -- extern version): Update for internal
19159 get_range_strlen API change. Convert to external data format.
19160 (get_maxval_strlen): Similarly.
19162 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
19164 * coverage.c (get_coverage_counts): Use current_function_decl.
19165 * profile.c (read_thunk_profile): New function.
19166 (branch_prob): Add THUNK parameter.
19167 * tree-profile.c (tree_profiling): Handle thunks.
19168 * value-prof.c (init_node_map): Handle thunks.
19169 * value-prof.h (branch_prob): Upate prototype.
19170 (read_thunk_profile): Declare.
19172 2019-01-01 Jakub Jelinek <jakub@redhat.com>
19174 Update copyright years.
19176 * gcc.c (process_command): Update copyright notice dates.
19177 * gcov-dump.c (print_version): Ditto.
19178 * gcov.c (print_version): Ditto.
19179 * gcov-tool.c (print_version): Ditto.
19180 * gengtype.c (create_file): Ditto.
19181 * doc/cpp.texi: Bump @copying's copyright year.
19182 * doc/cppinternals.texi: Ditto.
19183 * doc/gcc.texi: Ditto.
19184 * doc/gccint.texi: Ditto.
19185 * doc/gcov.texi: Ditto.
19186 * doc/install.texi: Ditto.
19187 * doc/invoke.texi: Ditto.
19189 Copyright (C) 2019 Free Software Foundation, Inc.
19191 Copying and distribution of this file, with or without modification,
19192 are permitted in any medium without royalty provided the copyright
19193 notice and this notice are preserved.